~ubuntu-branches/ubuntu/natty/zziplib/natty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2005-02-18 12:45:00 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050218124500-4lx3ggkymvi6bf01
Tags: 0.12.83-4
Libtool update for kfreebsd-gnu in zziplib/ directory (closes:
bug#294730).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# From configure.ac Revision: 0.0.
3
3
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated by Autoconf 2.52.
 
4
# Generated by GNU Autoconf 2.59.
5
5
#
6
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7
 
# Free Software Foundation, Inc.
 
6
# Copyright (C) 2003 Free Software Foundation, Inc.
8
7
# This configure script is free software; the Free Software Foundation
9
8
# gives unlimited permission to copy, distribute and modify it.
10
9
#
11
10
# Guido Draheim <guido@gmx.de> for ZZipLib.SF.net
12
 
 
13
 
# Find the correct PATH separator.  Usually this is `:', but
14
 
# DJGPP uses `;' like DOS.
15
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
16
 
  UNAME=${UNAME-`uname 2>/dev/null`}
17
 
  case X$UNAME in
18
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
19
 
    *)     lt_cv_sys_path_separator=':' ;;
20
 
  esac
21
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
22
 
fi
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be Bourne compatible
 
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
17
  emulate sh
 
18
  NULLCMD=:
 
19
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20
  # is contrary to our usage.  Disable this feature.
 
21
  alias -g '${1+"$@"}'='"$@"'
 
22
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
23
  set -o posix
 
24
fi
 
25
DUALCASE=1; export DUALCASE # for MKS sh
 
26
 
 
27
# Support unset when possible.
 
28
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
29
  as_unset=unset
 
30
else
 
31
  as_unset=false
 
32
fi
 
33
 
 
34
 
 
35
# Work around bugs in pre-3.0 UWIN ksh.
 
36
$as_unset ENV MAIL MAILPATH
 
37
PS1='$ '
 
38
PS2='> '
 
39
PS4='+ '
 
40
 
 
41
# NLS nuisances.
 
42
for as_var in \
 
43
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
44
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
45
  LC_TELEPHONE LC_TIME
 
46
do
 
47
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
48
    eval $as_var=C; export $as_var
 
49
  else
 
50
    $as_unset $as_var
 
51
  fi
 
52
done
 
53
 
 
54
# Required to use basename.
 
55
if expr a : '\(a\)' >/dev/null 2>&1; then
 
56
  as_expr=expr
 
57
else
 
58
  as_expr=false
 
59
fi
 
60
 
 
61
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
62
  as_basename=basename
 
63
else
 
64
  as_basename=false
 
65
fi
 
66
 
 
67
 
 
68
# Name of the executable.
 
69
as_me=`$as_basename "$0" ||
 
70
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
71
         X"$0" : 'X\(//\)$' \| \
 
72
         X"$0" : 'X\(/\)$' \| \
 
73
         .     : '\(.\)' 2>/dev/null ||
 
74
echo X/"$0" |
 
75
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
76
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
77
          /^X\/\(\/\).*/{ s//\1/; q; }
 
78
          s/.*/./; q'`
 
79
 
 
80
 
 
81
# PATH needs CR, and LINENO needs CR and PATH.
 
82
# Avoid depending upon Character Ranges.
 
83
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
84
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
85
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
86
as_cr_digits='0123456789'
 
87
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
88
 
 
89
# The user is always right.
 
90
if test "${PATH_SEPARATOR+set}" != set; then
 
91
  echo "#! /bin/sh" >conf$$.sh
 
92
  echo  "exit 0"   >>conf$$.sh
 
93
  chmod +x conf$$.sh
 
94
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
95
    PATH_SEPARATOR=';'
 
96
  else
 
97
    PATH_SEPARATOR=:
 
98
  fi
 
99
  rm -f conf$$.sh
 
100
fi
 
101
 
 
102
 
 
103
  as_lineno_1=$LINENO
 
104
  as_lineno_2=$LINENO
 
105
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
106
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
107
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
108
  # Find who we are.  Look in the path if we contain no path at all
 
109
  # relative or not.
 
110
  case $0 in
 
111
    *[\\/]* ) as_myself=$0 ;;
 
112
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
113
for as_dir in $PATH
 
114
do
 
115
  IFS=$as_save_IFS
 
116
  test -z "$as_dir" && as_dir=.
 
117
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
118
done
 
119
 
 
120
       ;;
 
121
  esac
 
122
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
123
  # in which case we are not to be found in the path.
 
124
  if test "x$as_myself" = x; then
 
125
    as_myself=$0
 
126
  fi
 
127
  if test ! -f "$as_myself"; then
 
128
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
129
   { (exit 1); exit 1; }; }
 
130
  fi
 
131
  case $CONFIG_SHELL in
 
132
  '')
 
133
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
134
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
135
do
 
136
  IFS=$as_save_IFS
 
137
  test -z "$as_dir" && as_dir=.
 
138
  for as_base in sh bash ksh sh5; do
 
139
         case $as_dir in
 
140
         /*)
 
141
           if ("$as_dir/$as_base" -c '
 
142
  as_lineno_1=$LINENO
 
143
  as_lineno_2=$LINENO
 
144
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
145
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
146
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
147
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
148
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
149
             CONFIG_SHELL=$as_dir/$as_base
 
150
             export CONFIG_SHELL
 
151
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
152
           fi;;
 
153
         esac
 
154
       done
 
155
done
 
156
;;
 
157
  esac
 
158
 
 
159
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
160
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
161
  # line-number line before each line; the second 'sed' does the real
 
162
  # work.  The second script uses 'N' to pair each line-number line
 
163
  # with the numbered line, and appends trailing '-' during
 
164
  # substitution so that $LINENO is not a special case at line end.
 
165
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
166
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
167
  sed '=' <$as_myself |
 
168
    sed '
 
169
      N
 
170
      s,$,-,
 
171
      : loop
 
172
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
173
      t loop
 
174
      s,-$,,
 
175
      s,^['$as_cr_digits']*\n,,
 
176
    ' >$as_me.lineno &&
 
177
  chmod +x $as_me.lineno ||
 
178
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
179
   { (exit 1); exit 1; }; }
 
180
 
 
181
  # Don't try to exec as it changes $[0], causing all sort of problems
 
182
  # (the dirname of $[0] is not the place where we might find the
 
183
  # original and so on.  Autoconf is especially sensible to this).
 
184
  . ./$as_me.lineno
 
185
  # Exit status is that of the last command.
 
186
  exit
 
187
}
 
188
 
 
189
 
 
190
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
191
  *c*,-n*) ECHO_N= ECHO_C='
 
192
' ECHO_T='      ' ;;
 
193
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
194
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
195
esac
 
196
 
 
197
if expr a : '\(a\)' >/dev/null 2>&1; then
 
198
  as_expr=expr
 
199
else
 
200
  as_expr=false
 
201
fi
 
202
 
 
203
rm -f conf$$ conf$$.exe conf$$.file
 
204
echo >conf$$.file
 
205
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
206
  # We could just check for DJGPP; but this test a) works b) is more generic
 
207
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
208
  if test -f conf$$.exe; then
 
209
    # Don't use ln at all; we don't have any links
 
210
    as_ln_s='cp -p'
 
211
  else
 
212
    as_ln_s='ln -s'
 
213
  fi
 
214
elif ln conf$$.file conf$$ 2>/dev/null; then
 
215
  as_ln_s=ln
 
216
else
 
217
  as_ln_s='cp -p'
 
218
fi
 
219
rm -f conf$$ conf$$.exe conf$$.file
 
220
 
 
221
if mkdir -p . 2>/dev/null; then
 
222
  as_mkdir_p=:
 
223
else
 
224
  test -d ./-p && rmdir ./-p
 
225
  as_mkdir_p=false
 
226
fi
 
227
 
 
228
as_executable_p="test -f"
 
229
 
 
230
# Sed expression to map a string onto a valid CPP name.
 
231
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
# Sed expression to map a string onto a valid variable name.
 
234
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
235
 
 
236
 
 
237
# IFS
 
238
# We need space, tab and new line, in precisely that order.
 
239
as_nl='
 
240
'
 
241
IFS="   $as_nl"
 
242
 
 
243
# CDPATH.
 
244
$as_unset CDPATH
 
245
 
 
246
 
23
247
 
24
248
# Check that we are running under the correct shell.
25
249
SHELL=${CONFIG_SHELL-/bin/sh}
38
262
elif test "X$1" = X--fallback-echo; then
39
263
  # Avoid inline document here, it may be left over
40
264
  :
41
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
265
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
42
266
  # Yippee, $echo works!
43
267
  :
44
268
else
50
274
  # used as fallback echo
51
275
  shift
52
276
  cat <<EOF
53
 
 
 
277
$*
54
278
EOF
55
279
  exit 0
56
280
fi
84
308
  #
85
309
  # So, first we look for a working echo in the user's PATH.
86
310
 
87
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
88
312
  for dir in $PATH /usr/ucb; do
 
313
    IFS="$lt_save_ifs"
89
314
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
90
315
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
91
316
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
94
319
      break
95
320
    fi
96
321
  done
97
 
  IFS="$save_ifs"
 
322
  IFS="$lt_save_ifs"
98
323
 
99
324
  if test "X$echo" = Xecho; then
100
325
    # We didn't find a better echo, so look for alternatives.
166
391
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
167
392
fi
168
393
 
169
 
# Avoid depending upon Character Ranges.
170
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
171
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
172
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
173
 
as_cr_digits='0123456789'
174
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
175
 
 
176
 
# Sed expression to map a string onto a valid variable name.
177
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
178
 
 
179
 
# Sed expression to map a string onto a valid CPP name.
180
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
181
 
 
182
 
# Be Bourne compatible
183
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
184
 
  emulate sh
185
 
  NULLCMD=:
186
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187
 
  set -o posix
188
 
fi
189
 
 
190
 
# Name of the executable.
191
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
192
 
 
193
 
if expr a : '\(a\)' >/dev/null 2>&1; then
194
 
  as_expr=expr
195
 
else
196
 
  as_expr=false
197
 
fi
198
 
 
199
 
rm -f conf$$ conf$$.exe conf$$.file
200
 
echo >conf$$.file
201
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
202
 
  # We could just check for DJGPP; but this test a) works b) is more generic
203
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204
 
  if test -f conf$$.exe; then
205
 
    # Don't use ln at all; we don't have any links
206
 
    as_ln_s='cp -p'
207
 
  else
208
 
    as_ln_s='ln -s'
209
 
  fi
210
 
elif ln conf$$.file conf$$ 2>/dev/null; then
211
 
  as_ln_s=ln
212
 
else
213
 
  as_ln_s='cp -p'
214
 
fi
215
 
rm -f conf$$ conf$$.exe conf$$.file
216
 
 
217
 
as_executable_p="test -f"
218
 
 
219
 
# Support unset when possible.
220
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
221
 
  as_unset=unset
222
 
else
223
 
  as_unset=false
224
 
fi
225
 
 
226
 
# NLS nuisances.
227
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
228
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
229
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
230
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
231
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
232
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
233
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
234
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
235
 
 
236
 
# IFS
237
 
# We need space, tab and new line, in precisely that order.
238
 
as_nl='
239
 
'
240
 
IFS="   $as_nl"
241
 
 
242
 
# CDPATH.
243
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
394
 
 
395
 
 
396
 
 
397
tagnames=${tagnames+${tagnames},}CXX
 
398
 
 
399
tagnames=${tagnames+${tagnames},}F77
244
400
 
245
401
# Name of the host.
246
402
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
253
409
# Initializations.
254
410
#
255
411
ac_default_prefix=/usr/local
 
412
ac_config_libobj_dir=.
256
413
cross_compiling=no
257
414
subdirs=
258
 
MFLAGS= MAKEFLAGS=
 
415
MFLAGS=
 
416
MAKEFLAGS=
259
417
SHELL=${CONFIG_SHELL-/bin/sh}
260
418
 
261
419
# Maximum number of lines to put in a shell here document.
263
421
# only ac_max_sed_lines should be used.
264
422
: ${ac_max_here_lines=38}
265
423
 
 
424
# Identity of this package.
 
425
PACKAGE_NAME=
 
426
PACKAGE_TARNAME=
 
427
PACKAGE_VERSION=
 
428
PACKAGE_STRING=
 
429
PACKAGE_BUGREPORT=
 
430
 
266
431
ac_unique_file="zziplib.spec"
267
432
# Factoring default headers for most tests.
268
433
ac_includes_default="\
301
466
# include <unistd.h>
302
467
#endif"
303
468
 
 
469
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 ax_enable_builddir_sed THREAD_SAFE ZLIB_INCL ZLIB_LDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL RELEASE_INFO VERSION_INFO MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT PERL PYTHON MKZIP XMLTO LARGEFILE_CFLAGS ZLIB_VERSION docdir SDL ZIPTESTS ZZIPLIB_LDFLAGS RESOLVES PKG_CONFIG CONFIG_FILES LIBOBJS LTLIBOBJS'
 
470
ac_subst_files=''
 
471
 
304
472
# Initialize some variables set by options.
305
473
ac_init_help=
306
474
ac_init_version=false
339
507
infodir='${prefix}/info'
340
508
mandir='${prefix}/man'
341
509
 
342
 
# Identity of this package.
343
 
PACKAGE_NAME=
344
 
PACKAGE_TARNAME=
345
 
PACKAGE_VERSION=
346
 
PACKAGE_STRING=
347
 
PACKAGE_BUGREPORT=
348
 
 
349
510
ac_prev=
350
511
for ac_option
351
512
do
478
639
    with_fp=no ;;
479
640
 
480
641
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481
 
  | --no-cr | --no-c)
 
642
  | --no-cr | --no-c | -n)
482
643
    no_create=yes ;;
483
644
 
484
645
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657
818
  eval ac_val=$`echo $ac_var`
658
819
  case $ac_val in
659
820
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
660
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
821
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661
822
   { (exit 1); exit 1; }; };;
662
823
  esac
663
824
done
664
825
 
665
826
# Be sure to have absolute paths.
666
827
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
828
              localstatedir libdir includedir oldincludedir infodir mandir
668
829
do
669
830
  eval ac_val=$`echo $ac_var`
670
831
  case $ac_val in
671
832
    [\\/$]* | ?:[\\/]* ) ;;
672
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
833
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
673
834
   { (exit 1); exit 1; }; };;
674
835
  esac
675
836
done
676
837
 
677
838
# There might be people who depend on the old broken behavior: `$host'
678
839
# used to hold the argument of --host etc.
 
840
# FIXME: To remove some day.
679
841
build=$build_alias
680
842
host=$host_alias
681
843
target=$target_alias
682
844
 
683
 
# FIXME: should be removed in autoconf 3.0.
 
845
# FIXME: To remove some day.
684
846
if test "x$host_alias" != x; then
685
847
  if test "x$build_alias" = x; then
686
848
    cross_compiling=maybe
696
858
 
697
859
test "$silent" = yes && exec 6>/dev/null
698
860
 
 
861
 
699
862
# Find the source files, if location was not specified.
700
863
if test -z "$srcdir"; then
701
864
  ac_srcdir_defaulted=yes
702
865
  # Try the directory containing this script, then its parent.
703
 
  ac_prog=$0
704
 
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
705
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
866
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
867
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
868
         X"$0" : 'X\(//\)[^/]' \| \
 
869
         X"$0" : 'X\(//\)$' \| \
 
870
         X"$0" : 'X\(/\)' \| \
 
871
         .     : '\(.\)' 2>/dev/null ||
 
872
echo X"$0" |
 
873
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
874
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
875
          /^X\(\/\/\)$/{ s//\1/; q; }
 
876
          /^X\(\/\).*/{ s//\1/; q; }
 
877
          s/.*/./; q'`
706
878
  srcdir=$ac_confdir
707
879
  if test ! -r $srcdir/$ac_unique_file; then
708
880
    srcdir=..
712
884
fi
713
885
if test ! -r $srcdir/$ac_unique_file; then
714
886
  if test "$ac_srcdir_defaulted" = yes; then
715
 
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716
888
   { (exit 1); exit 1; }; }
717
889
  else
718
 
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
890
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719
891
   { (exit 1); exit 1; }; }
720
892
  fi
721
893
fi
 
894
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
895
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
896
   { (exit 1); exit 1; }; }
722
897
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723
898
ac_env_build_alias_set=${build_alias+set}
724
899
ac_env_build_alias_value=$build_alias
752
927
ac_env_CPP_value=$CPP
753
928
ac_cv_env_CPP_set=${CPP+set}
754
929
ac_cv_env_CPP_value=$CPP
 
930
ac_env_CXX_set=${CXX+set}
 
931
ac_env_CXX_value=$CXX
 
932
ac_cv_env_CXX_set=${CXX+set}
 
933
ac_cv_env_CXX_value=$CXX
 
934
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
935
ac_env_CXXFLAGS_value=$CXXFLAGS
 
936
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
937
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
938
ac_env_CXXCPP_set=${CXXCPP+set}
 
939
ac_env_CXXCPP_value=$CXXCPP
 
940
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
941
ac_cv_env_CXXCPP_value=$CXXCPP
 
942
ac_env_F77_set=${F77+set}
 
943
ac_env_F77_value=$F77
 
944
ac_cv_env_F77_set=${F77+set}
 
945
ac_cv_env_F77_value=$F77
 
946
ac_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_env_FFLAGS_value=$FFLAGS
 
948
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
949
ac_cv_env_FFLAGS_value=$FFLAGS
755
950
 
756
951
#
757
952
# Report the --help message.
759
954
if test "$ac_init_help" = "long"; then
760
955
  # Omit some internal or obsolete options to make the list less imposing.
761
956
  # This message is too long to be a string in the A/UX 3.1 sh.
762
 
  cat <<EOF
 
957
  cat <<_ACEOF
763
958
\`configure' configures this package to adapt to many kinds of systems.
764
959
 
765
960
Usage: $0 [OPTION]... [VAR=VALUE]...
780
975
  -n, --no-create         do not create output files
781
976
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
782
977
 
783
 
EOF
 
978
_ACEOF
784
979
 
785
 
  cat <<EOF
 
980
  cat <<_ACEOF
786
981
Installation directories:
787
982
  --prefix=PREFIX         install architecture-independent files in PREFIX
788
 
                          [$ac_default_prefix]
 
983
                          [$ac_default_prefix]
789
984
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
790
 
                          [PREFIX]
 
985
                          [PREFIX]
791
986
 
792
987
By default, \`make install' will install all the files in
793
988
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
809
1004
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
810
1005
  --infodir=DIR          info documentation [PREFIX/info]
811
1006
  --mandir=DIR           man documentation [PREFIX/man]
812
 
EOF
 
1007
_ACEOF
813
1008
 
814
 
  cat <<\EOF
 
1009
  cat <<\_ACEOF
815
1010
 
816
1011
Program names:
817
1012
  --program-prefix=PREFIX            prepend PREFIX to installed program names
820
1015
 
821
1016
System types:
822
1017
  --build=BUILD     configure for building on BUILD [guessed]
823
 
  --host=HOST       build programs to run on HOST [BUILD]
 
1018
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
824
1019
  --target=TARGET   configure for building compilers for TARGET [HOST]
825
 
EOF
 
1020
_ACEOF
826
1021
fi
827
1022
 
828
1023
if test -n "$ac_init_help"; then
829
1024
 
830
 
  cat <<\EOF
 
1025
  cat <<\_ACEOF
831
1026
 
832
1027
Optional Features:
833
1028
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
838
1033
 
839
1034
  --disable-dependency-tracking Speeds up one-time builds
840
1035
  --enable-dependency-tracking  Do not reject slow dependency extractors
841
 
  --enable-shared=PKGS  build shared libraries default=yes
842
 
  --enable-static=PKGS  build static libraries default=yes
843
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
1036
  --enable-shared[=PKGS]
 
1037
                          build shared libraries [default=yes]
 
1038
  --enable-static[=PKGS]
 
1039
                          build static libraries [default=yes]
 
1040
  --enable-fast-install[=PKGS]
 
1041
                          optimize for fast installation [default=yes]
844
1042
  --disable-libtool-lock  avoid locking (might break parallel builds)
845
1043
  --enable-maintainer-mode enable make rules and dependencies not useful
846
1044
                          (and sometimes confusing) to the casual installer
856
1054
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
857
1055
  --with-zlib             zlib prefix (e.g. '$HOME/software')
858
1056
 
859
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
860
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
1057
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1058
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1059
                          both]
 
1060
  --with-tags[=TAGS]
 
1061
                          include additional configurations [automatic]
861
1062
  --with-largefile        compile as off64_t instead of 32bit off_t
862
1063
 
863
1064
  --with-docdir           docdir prefix (prefix/share/doc)
868
1069
 
869
1070
  --with-lowstk           limited thread stack
870
1071
 
 
1072
 
871
1073
Some influential environment variables:
872
1074
  CC          C compiler command
873
1075
  CFLAGS      C compiler flags
876
1078
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
877
1079
              headers in a nonstandard directory <include dir>
878
1080
  CPP         C preprocessor
 
1081
  CXX         C++ compiler command
 
1082
  CXXFLAGS    C++ compiler flags
 
1083
  CXXCPP      C++ preprocessor
 
1084
  F77         Fortran 77 compiler command
 
1085
  FFLAGS      Fortran 77 compiler flags
879
1086
 
880
1087
Use these variables to override the choices made by `configure' or to help
881
1088
it to find libraries and programs with nonstandard names/locations.
882
1089
 
883
 
EOF
 
1090
_ACEOF
884
1091
fi
885
1092
 
886
1093
if test "$ac_init_help" = "recursive"; then
887
1094
  # If there are subdirs, report their specific --help.
888
1095
  ac_popdir=`pwd`
889
 
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
890
 
    cd $ac_subdir
891
 
    # A "../" for each directory in /$ac_subdir.
892
 
    ac_dots=`echo $ac_subdir |
893
 
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
894
 
 
895
 
    case $srcdir in
896
 
    .) # No --srcdir option.  We are building in place.
897
 
      ac_sub_srcdir=$srcdir ;;
898
 
    [\\/]* | ?:[\\/]* ) # Absolute path.
899
 
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
900
 
    *) # Relative path.
901
 
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
902
 
    esac
903
 
 
 
1096
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1097
    test -d $ac_dir || continue
 
1098
    ac_builddir=.
 
1099
 
 
1100
if test "$ac_dir" != .; then
 
1101
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1102
  # A "../" for each directory in $ac_dir_suffix.
 
1103
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1104
else
 
1105
  ac_dir_suffix= ac_top_builddir=
 
1106
fi
 
1107
 
 
1108
case $srcdir in
 
1109
  .)  # No --srcdir option.  We are building in place.
 
1110
    ac_srcdir=.
 
1111
    if test -z "$ac_top_builddir"; then
 
1112
       ac_top_srcdir=.
 
1113
    else
 
1114
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1115
    fi ;;
 
1116
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1117
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1118
    ac_top_srcdir=$srcdir ;;
 
1119
  *) # Relative path.
 
1120
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1121
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1122
esac
 
1123
 
 
1124
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1125
# the directories may not exist.
 
1126
case `pwd` in
 
1127
.) ac_abs_builddir="$ac_dir";;
 
1128
*)
 
1129
  case "$ac_dir" in
 
1130
  .) ac_abs_builddir=`pwd`;;
 
1131
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1132
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1133
  esac;;
 
1134
esac
 
1135
case $ac_abs_builddir in
 
1136
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1137
*)
 
1138
  case ${ac_top_builddir}. in
 
1139
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1140
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1141
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1142
  esac;;
 
1143
esac
 
1144
case $ac_abs_builddir in
 
1145
.) ac_abs_srcdir=$ac_srcdir;;
 
1146
*)
 
1147
  case $ac_srcdir in
 
1148
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1149
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1150
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1151
  esac;;
 
1152
esac
 
1153
case $ac_abs_builddir in
 
1154
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1155
*)
 
1156
  case $ac_top_srcdir in
 
1157
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1158
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1159
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1160
  esac;;
 
1161
esac
 
1162
 
 
1163
    cd $ac_dir
904
1164
    # Check for guested configure; otherwise get Cygnus style configure.
905
 
    if test -f $ac_sub_srcdir/configure.gnu; then
906
 
      echo
907
 
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
908
 
    elif test -f $ac_sub_srcdir/configure; then
909
 
      echo
910
 
      $SHELL $ac_sub_srcdir/configure  --help=recursive
911
 
    elif test -f $ac_sub_srcdir/configure.ac ||
912
 
           test -f $ac_sub_srcdir/configure.in; then
 
1165
    if test -f $ac_srcdir/configure.gnu; then
 
1166
      echo
 
1167
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1168
    elif test -f $ac_srcdir/configure; then
 
1169
      echo
 
1170
      $SHELL $ac_srcdir/configure  --help=recursive
 
1171
    elif test -f $ac_srcdir/configure.ac ||
 
1172
           test -f $ac_srcdir/configure.in; then
913
1173
      echo
914
1174
      $ac_configure --help
915
1175
    else
916
 
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
1176
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
917
1177
    fi
918
 
    cd $ac_popdir
 
1178
    cd "$ac_popdir"
919
1179
  done
920
1180
fi
921
1181
 
922
1182
test -n "$ac_init_help" && exit 0
923
1183
if $ac_init_version; then
924
 
  cat <<\EOF
 
1184
  cat <<\_ACEOF
925
1185
 
926
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
927
 
Free Software Foundation, Inc.
 
1186
Copyright (C) 2003 Free Software Foundation, Inc.
928
1187
This configure script is free software; the Free Software Foundation
929
1188
gives unlimited permission to copy, distribute and modify it.
930
1189
 
931
1190
Guido Draheim <guido@gmx.de> for ZZipLib.SF.net
932
 
EOF
 
1191
_ACEOF
933
1192
  exit 0
934
1193
fi
935
1194
exec 5>config.log
936
 
cat >&5 <<EOF
 
1195
cat >&5 <<_ACEOF
937
1196
This file contains any messages produced by compilers while
938
1197
running configure, to aid debugging if configure makes a mistake.
939
1198
 
940
1199
It was created by $as_me, which was
941
 
generated by GNU Autoconf 2.52.  Invocation command line was
 
1200
generated by GNU Autoconf 2.59.  Invocation command line was
942
1201
 
943
1202
  $ $0 $@
944
1203
 
945
 
EOF
 
1204
_ACEOF
946
1205
{
947
1206
cat <<_ASUNAME
948
 
## ---------- ##
949
 
## Platform.  ##
950
 
## ---------- ##
 
1207
## --------- ##
 
1208
## Platform. ##
 
1209
## --------- ##
951
1210
 
952
1211
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
953
1212
uname -m = `(uname -m) 2>/dev/null || echo unknown`
966
1225
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
967
1226
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
968
1227
 
969
 
PATH = $PATH
970
 
 
971
1228
_ASUNAME
 
1229
 
 
1230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1231
for as_dir in $PATH
 
1232
do
 
1233
  IFS=$as_save_IFS
 
1234
  test -z "$as_dir" && as_dir=.
 
1235
  echo "PATH: $as_dir"
 
1236
done
 
1237
 
972
1238
} >&5
973
1239
 
974
 
cat >&5 <<EOF
975
 
## ------------ ##
976
 
## Core tests.  ##
977
 
## ------------ ##
978
 
 
979
 
EOF
 
1240
cat >&5 <<_ACEOF
 
1241
 
 
1242
 
 
1243
## ----------- ##
 
1244
## Core tests. ##
 
1245
## ----------- ##
 
1246
 
 
1247
_ACEOF
 
1248
 
980
1249
 
981
1250
# Keep a trace of the command line.
982
1251
# Strip out --no-create and --no-recursion so they do not pile up.
 
1252
# Strip out --silent because we don't want to record it for future runs.
983
1253
# Also quote any args containing shell meta-characters.
 
1254
# Make two passes to allow for proper duplicate-argument suppression.
984
1255
ac_configure_args=
 
1256
ac_configure_args0=
 
1257
ac_configure_args1=
985
1258
ac_sep=
986
 
for ac_arg
 
1259
ac_must_keep_next=false
 
1260
for ac_pass in 1 2
987
1261
do
988
 
  case $ac_arg in
989
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990
 
  | --no-cr | --no-c) ;;
991
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
993
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
994
 
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
995
 
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
996
 
    ac_sep=" " ;;
997
 
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
998
 
     ac_sep=" " ;;
999
 
  esac
1000
 
  # Get rid of the leading space.
 
1262
  for ac_arg
 
1263
  do
 
1264
    case $ac_arg in
 
1265
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1266
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1267
    | -silent | --silent | --silen | --sile | --sil)
 
1268
      continue ;;
 
1269
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1270
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1271
    esac
 
1272
    case $ac_pass in
 
1273
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1274
    2)
 
1275
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1276
      if test $ac_must_keep_next = true; then
 
1277
        ac_must_keep_next=false # Got value, back to normal.
 
1278
      else
 
1279
        case $ac_arg in
 
1280
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1281
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1282
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1283
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1284
            case "$ac_configure_args0 " in
 
1285
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1286
            esac
 
1287
            ;;
 
1288
          -* ) ac_must_keep_next=true ;;
 
1289
        esac
 
1290
      fi
 
1291
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1292
      # Get rid of the leading space.
 
1293
      ac_sep=" "
 
1294
      ;;
 
1295
    esac
 
1296
  done
1001
1297
done
 
1298
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1299
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1002
1300
 
1003
1301
# When interrupted or exit'd, cleanup temporary files, and complete
1004
1302
# config.log.  We remove comments because anyway the quotes in there
1005
1303
# would cause problems or look ugly.
 
1304
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1305
# such as our DU 5.0 friend, will then `close' the trap.
1006
1306
trap 'exit_status=$?
1007
1307
  # Save into config.log some information that might help in debugging.
1008
 
  echo >&5
1009
 
  echo "## ----------------- ##" >&5
1010
 
  echo "## Cache variables.  ##" >&5
1011
 
  echo "## ----------------- ##" >&5
1012
 
  echo >&5
1013
 
  # The following way of writing the cache mishandles newlines in values,
 
1308
  {
 
1309
    echo
 
1310
 
 
1311
    cat <<\_ASBOX
 
1312
## ---------------- ##
 
1313
## Cache variables. ##
 
1314
## ---------------- ##
 
1315
_ASBOX
 
1316
    echo
 
1317
    # The following way of writing the cache mishandles newlines in values,
1014
1318
{
1015
1319
  (set) 2>&1 |
1016
1320
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1017
1321
    *ac_space=\ *)
1018
1322
      sed -n \
1019
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1020
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1323
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1324
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1021
1325
      ;;
1022
1326
    *)
1023
1327
      sed -n \
1024
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1328
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1025
1329
      ;;
1026
1330
    esac;
1027
 
} >&5
1028
 
  sed "/^$/d" confdefs.h >conftest.log
1029
 
  if test -s conftest.log; then
1030
 
    echo >&5
1031
 
    echo "## ------------ ##" >&5
1032
 
    echo "## confdefs.h.  ##" >&5
1033
 
    echo "## ------------ ##" >&5
1034
 
    echo >&5
1035
 
    cat conftest.log >&5
1036
 
  fi
1037
 
  (echo; echo) >&5
1038
 
  test "$ac_signal" != 0 &&
1039
 
    echo "$as_me: caught signal $ac_signal" >&5
1040
 
  echo "$as_me: exit $exit_status" >&5
1041
 
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
1331
}
 
1332
    echo
 
1333
 
 
1334
    cat <<\_ASBOX
 
1335
## ----------------- ##
 
1336
## Output variables. ##
 
1337
## ----------------- ##
 
1338
_ASBOX
 
1339
    echo
 
1340
    for ac_var in $ac_subst_vars
 
1341
    do
 
1342
      eval ac_val=$`echo $ac_var`
 
1343
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1344
    done | sort
 
1345
    echo
 
1346
 
 
1347
    if test -n "$ac_subst_files"; then
 
1348
      cat <<\_ASBOX
 
1349
## ------------- ##
 
1350
## Output files. ##
 
1351
## ------------- ##
 
1352
_ASBOX
 
1353
      echo
 
1354
      for ac_var in $ac_subst_files
 
1355
      do
 
1356
        eval ac_val=$`echo $ac_var`
 
1357
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1358
      done | sort
 
1359
      echo
 
1360
    fi
 
1361
 
 
1362
    if test -s confdefs.h; then
 
1363
      cat <<\_ASBOX
 
1364
## ----------- ##
 
1365
## confdefs.h. ##
 
1366
## ----------- ##
 
1367
_ASBOX
 
1368
      echo
 
1369
      sed "/^$/d" confdefs.h | sort
 
1370
      echo
 
1371
    fi
 
1372
    test "$ac_signal" != 0 &&
 
1373
      echo "$as_me: caught signal $ac_signal"
 
1374
    echo "$as_me: exit $exit_status"
 
1375
  } >&5
 
1376
  rm -f core *.core &&
 
1377
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1042
1378
    exit $exit_status
1043
1379
     ' 0
1044
1380
for ac_signal in 1 2 13 15; do
1051
1387
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1052
1388
echo >confdefs.h
1053
1389
 
 
1390
# Predefined preprocessor variables.
 
1391
 
 
1392
cat >>confdefs.h <<_ACEOF
 
1393
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1394
_ACEOF
 
1395
 
 
1396
 
 
1397
cat >>confdefs.h <<_ACEOF
 
1398
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1399
_ACEOF
 
1400
 
 
1401
 
 
1402
cat >>confdefs.h <<_ACEOF
 
1403
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1404
_ACEOF
 
1405
 
 
1406
 
 
1407
cat >>confdefs.h <<_ACEOF
 
1408
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1409
_ACEOF
 
1410
 
 
1411
 
 
1412
cat >>confdefs.h <<_ACEOF
 
1413
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1414
_ACEOF
 
1415
 
 
1416
 
1054
1417
# Let the site file select an alternate cache file if it wants to.
1055
1418
# Prefer explicitly selected file to automatically selected ones.
1056
1419
if test -z "$CONFIG_SITE"; then
1062
1425
fi
1063
1426
for ac_site_file in $CONFIG_SITE; do
1064
1427
  if test -r "$ac_site_file"; then
1065
 
    { echo "$as_me:1065: loading site script $ac_site_file" >&5
 
1428
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1066
1429
echo "$as_me: loading site script $ac_site_file" >&6;}
1067
 
    cat "$ac_site_file" >&5
 
1430
    sed 's/^/| /' "$ac_site_file" >&5
1068
1431
    . "$ac_site_file"
1069
1432
  fi
1070
1433
done
1073
1436
  # Some versions of bash will fail to source /dev/null (special
1074
1437
  # files actually), so we avoid doing that.
1075
1438
  if test -f "$cache_file"; then
1076
 
    { echo "$as_me:1076: loading cache $cache_file" >&5
 
1439
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1077
1440
echo "$as_me: loading cache $cache_file" >&6;}
1078
1441
    case $cache_file in
1079
1442
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1081
1444
    esac
1082
1445
  fi
1083
1446
else
1084
 
  { echo "$as_me:1084: creating cache $cache_file" >&5
 
1447
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1085
1448
echo "$as_me: creating cache $cache_file" >&6;}
1086
1449
  >$cache_file
1087
1450
fi
1090
1453
# value.
1091
1454
ac_cache_corrupted=false
1092
1455
for ac_var in `(set) 2>&1 |
1093
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1456
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1094
1457
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1095
1458
  eval ac_new_set=\$ac_env_${ac_var}_set
1096
1459
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1097
1460
  eval ac_new_val="\$ac_env_${ac_var}_value"
1098
1461
  case $ac_old_set,$ac_new_set in
1099
1462
    set,)
1100
 
      { echo "$as_me:1100: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1463
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1101
1464
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1102
1465
      ac_cache_corrupted=: ;;
1103
1466
    ,set)
1104
 
      { echo "$as_me:1104: error: \`$ac_var' was not set in the previous run" >&5
 
1467
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1105
1468
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1106
1469
      ac_cache_corrupted=: ;;
1107
1470
    ,);;
1108
1471
    *)
1109
1472
      if test "x$ac_old_val" != "x$ac_new_val"; then
1110
 
        { echo "$as_me:1110: error: \`$ac_var' has changed since the previous run:" >&5
 
1473
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1111
1474
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1112
 
        { echo "$as_me:1112:   former value:  $ac_old_val" >&5
 
1475
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1113
1476
echo "$as_me:   former value:  $ac_old_val" >&2;}
1114
 
        { echo "$as_me:1114:   current value: $ac_new_val" >&5
 
1477
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1115
1478
echo "$as_me:   current value: $ac_new_val" >&2;}
1116
 
        ac_cache_corrupted=:
 
1479
        ac_cache_corrupted=:
1117
1480
      fi;;
1118
1481
  esac
1119
 
  # Pass precious variables to config.status.  It doesn't matter if
1120
 
  # we pass some twice (in addition to the command line arguments).
 
1482
  # Pass precious variables to config.status.
1121
1483
  if test "$ac_new_set" = set; then
1122
1484
    case $ac_new_val in
1123
1485
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1124
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1125
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
1126
 
      ;;
1127
 
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1128
 
       ;;
 
1486
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1487
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1488
    esac
 
1489
    case " $ac_configure_args " in
 
1490
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1491
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1129
1492
    esac
1130
1493
  fi
1131
1494
done
1132
1495
if $ac_cache_corrupted; then
1133
 
  { echo "$as_me:1133: error: changes in the environment can compromise the build" >&5
 
1496
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1134
1497
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1135
 
  { { echo "$as_me:1135: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1498
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1136
1499
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1137
1500
   { (exit 1); exit 1; }; }
1138
1501
fi
1143
1506
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1144
1507
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1145
1508
 
1146
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1147
 
  *c*,-n*) ECHO_N= ECHO_C='
1148
 
' ECHO_T='      ' ;;
1149
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1150
 
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1151
 
esac
1152
 
echo "#! $SHELL" >conftest.sh
1153
 
echo  "exit 0"   >>conftest.sh
1154
 
chmod +x conftest.sh
1155
 
if { (echo "$as_me:1155: PATH=\".;.\"; conftest.sh") >&5
1156
 
  (PATH=".;."; conftest.sh) 2>&5
1157
 
  ac_status=$?
1158
 
  echo "$as_me:1158: \$? = $ac_status" >&5
1159
 
  (exit $ac_status); }; then
1160
 
  ac_path_separator=';'
1161
 
else
1162
 
  ac_path_separator=:
1163
 
fi
1164
 
PATH_SEPARATOR="$ac_path_separator"
1165
 
rm -f conftest.sh
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
 
1166
1529
 
1167
1530
ac_aux_dir=
1168
1531
for ac_dir in uses $srcdir/uses; do
1181
1544
  fi
1182
1545
done
1183
1546
if test -z "$ac_aux_dir"; then
1184
 
  { { echo "$as_me:1184: error: cannot find install-sh or install.sh in uses $srcdir/uses" >&5
 
1547
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in uses $srcdir/uses" >&5
1185
1548
echo "$as_me: error: cannot find install-sh or install.sh in uses $srcdir/uses" >&2;}
1186
1549
   { (exit 1); exit 1; }; }
1187
1550
fi
1192
1555
# =======================================================================
1193
1556
# Make sure we can run config.sub.
1194
1557
$ac_config_sub sun4 >/dev/null 2>&1 ||
1195
 
  { { echo "$as_me:1195: error: cannot run $ac_config_sub" >&5
 
1558
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1196
1559
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1197
1560
   { (exit 1); exit 1; }; }
1198
1561
 
1199
 
echo "$as_me:1199: checking build system type" >&5
 
1562
echo "$as_me:$LINENO: checking build system type" >&5
1200
1563
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1201
1564
if test "${ac_cv_build+set}" = set; then
1202
1565
  echo $ECHO_N "(cached) $ECHO_C" >&6
1205
1568
test -z "$ac_cv_build_alias" &&
1206
1569
  ac_cv_build_alias=`$ac_config_guess`
1207
1570
test -z "$ac_cv_build_alias" &&
1208
 
  { { echo "$as_me:1208: error: cannot guess build type; you must specify one" >&5
 
1571
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1209
1572
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1210
1573
   { (exit 1); exit 1; }; }
1211
1574
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1212
 
  { { echo "$as_me:1212: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1213
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
 
1575
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1576
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1214
1577
   { (exit 1); exit 1; }; }
1215
1578
 
1216
1579
fi
1217
 
echo "$as_me:1217: result: $ac_cv_build" >&5
 
1580
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1218
1581
echo "${ECHO_T}$ac_cv_build" >&6
1219
1582
build=$ac_cv_build
1220
1583
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1221
1584
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1222
1585
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1223
1586
 
1224
 
echo "$as_me:1224: checking host system type" >&5
 
1587
 
 
1588
echo "$as_me:$LINENO: checking host system type" >&5
1225
1589
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1226
1590
if test "${ac_cv_host+set}" = set; then
1227
1591
  echo $ECHO_N "(cached) $ECHO_C" >&6
1230
1594
test -z "$ac_cv_host_alias" &&
1231
1595
  ac_cv_host_alias=$ac_cv_build_alias
1232
1596
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1233
 
  { { echo "$as_me:1233: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1597
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1234
1598
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1235
1599
   { (exit 1); exit 1; }; }
1236
1600
 
1237
1601
fi
1238
 
echo "$as_me:1238: result: $ac_cv_host" >&5
 
1602
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1239
1603
echo "${ECHO_T}$ac_cv_host" >&6
1240
1604
host=$ac_cv_host
1241
1605
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1242
1606
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1243
1607
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1244
1608
 
1245
 
echo "$as_me:1245: checking target system type" >&5
 
1609
 
 
1610
echo "$as_me:$LINENO: checking target system type" >&5
1246
1611
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1247
1612
if test "${ac_cv_target+set}" = set; then
1248
1613
  echo $ECHO_N "(cached) $ECHO_C" >&6
1251
1616
test "x$ac_cv_target_alias" = "x" &&
1252
1617
  ac_cv_target_alias=$ac_cv_host_alias
1253
1618
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1254
 
  { { echo "$as_me:1254: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1619
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1255
1620
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1256
1621
   { (exit 1); exit 1; }; }
1257
1622
 
1258
1623
fi
1259
 
echo "$as_me:1259: result: $ac_cv_target" >&5
 
1624
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1260
1625
echo "${ECHO_T}$ac_cv_target" >&6
1261
1626
target=$ac_cv_target
1262
1627
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1263
1628
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1264
1629
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1265
1630
 
 
1631
 
1266
1632
# The aliases save the names the user supplied, while $host etc.
1267
1633
# will get canonicalized.
1268
1634
test -n "$target_alias" &&
1274
1640
  if test ".$srcdir" = ".." ; then
1275
1641
    # Extract the first word of "gsed sed", so it can be a program name with args.
1276
1642
set dummy gsed sed; ac_word=$2
1277
 
echo "$as_me:1277: checking for $ac_word" >&5
 
1643
echo "$as_me:$LINENO: checking for $ac_word" >&5
1278
1644
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1279
1645
if test "${ac_cv_path_ax_enable_builddir_sed+set}" = set; then
1280
1646
  echo $ECHO_N "(cached) $ECHO_C" >&6
1284
1650
  ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
1285
1651
  ;;
1286
1652
  *)
1287
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1288
 
ac_dummy="$PATH"
1289
 
for ac_dir in $ac_dummy; do
1290
 
  IFS=$ac_save_IFS
1291
 
  test -z "$ac_dir" && ac_dir=.
1292
 
  if $as_executable_p "$ac_dir/$ac_word"; then
1293
 
   ac_cv_path_ax_enable_builddir_sed="$ac_dir/$ac_word"
1294
 
   echo "$as_me:1294: found $ac_dir/$ac_word" >&5
1295
 
   break
1296
 
fi
 
1653
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1654
for as_dir in $PATH
 
1655
do
 
1656
  IFS=$as_save_IFS
 
1657
  test -z "$as_dir" && as_dir=.
 
1658
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1659
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1660
    ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
 
1661
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1662
    break 2
 
1663
  fi
 
1664
done
1297
1665
done
1298
1666
 
1299
1667
  test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
1303
1671
ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
1304
1672
 
1305
1673
if test -n "$ax_enable_builddir_sed"; then
1306
 
  echo "$as_me:1306: result: $ax_enable_builddir_sed" >&5
 
1674
  echo "$as_me:$LINENO: result: $ax_enable_builddir_sed" >&5
1307
1675
echo "${ECHO_T}$ax_enable_builddir_sed" >&6
1308
1676
else
1309
 
  echo "$as_me:1309: result: no" >&5
 
1677
  echo "$as_me:$LINENO: result: no" >&5
1310
1678
echo "${ECHO_T}no" >&6
1311
1679
fi
1312
1680
 
1324
1692
    if test ! -f config.status ; then # srcdir not yet configured
1325
1693
      test ".$HOST" = "." && HOST="$host"
1326
1694
      test ".$ax_enable_builddir" = ".yes" && ax_enable_builddir="$HOST"
1327
 
      { case $ax_enable_builddir in
1328
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
1329
 
  *)                      as_incr_dir=.;;
1330
 
esac
1331
 
as_dummy=$ax_enable_builddir
1332
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
1333
 
  case $as_mkdir_dir in
1334
 
    # Skip DOS drivespec
1335
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
1336
 
    *)
1337
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
1338
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
1339
 
    ;;
1340
 
  esac
1341
 
done; }
 
1695
      { if $as_mkdir_p; then
 
1696
    mkdir -p $ax_enable_builddir
 
1697
  else
 
1698
    as_dir=$ax_enable_builddir
 
1699
    as_dirs=
 
1700
    while test ! -d "$as_dir"; do
 
1701
      as_dirs="$as_dir $as_dirs"
 
1702
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
1703
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1704
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
1705
         X"$as_dir" : 'X\(//\)$' \| \
 
1706
         X"$as_dir" : 'X\(/\)' \| \
 
1707
         .     : '\(.\)' 2>/dev/null ||
 
1708
echo X"$as_dir" |
 
1709
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
1710
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
1711
          /^X\(\/\/\)$/{ s//\1/; q; }
 
1712
          /^X\(\/\).*/{ s//\1/; q; }
 
1713
          s/.*/./; q'`
 
1714
    done
 
1715
    test ! -n "$as_dirs" || mkdir $as_dirs
 
1716
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $ax_enable_builddir" >&5
 
1717
echo "$as_me: error: cannot create directory $ax_enable_builddir" >&2;}
 
1718
   { (exit 1); exit 1; }; }; }
1342
1719
 
1343
1720
      echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
1344
1721
      cd $ax_enable_builddir
1345
1722
      if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
1346
1723
        rm conftest.tmp
1347
 
        echo "$as_me:1347: result: continue configure in default builddir ./$ax_enable_builddir" >&5
 
1724
        echo "$as_me:$LINENO: result: continue configure in default builddir ./$ax_enable_builddir" >&5
1348
1725
echo "${ECHO_T}continue configure in default builddir ./$ax_enable_builddir" >&6
1349
1726
      else
1350
 
        { { echo "$as_me:1350: error: could not change to default builddir ./$ax_enable_builddir" >&5
 
1727
        { { echo "$as_me:$LINENO: error: could not change to default builddir ./$ax_enable_builddir" >&5
1351
1728
echo "$as_me: error: could not change to default builddir ./$ax_enable_builddir" >&2;}
1352
1729
   { (exit 1); exit 1; }; }
1353
1730
      fi
1367
1744
    fi fi
1368
1745
  fi
1369
1746
fi
1370
 
ac_config_commands="$ac_config_commands buildir"
 
1747
          ac_config_commands="$ac_config_commands buildir"
1371
1748
 
1372
1749
 # --------------------------------------------
1373
1750
case "$prefix:$ac_default_prefix" in
1374
1751
  NONE:/usr/local)
1375
1752
    result=""
1376
 
    echo "$as_me:1376: checking default prefix path" >&5
 
1753
    echo "$as_me:$LINENO: checking default prefix path" >&5
1377
1754
echo $ECHO_N "checking default prefix path... $ECHO_C" >&6
1378
1755
    case "${target_os}" in
1379
1756
      *cygwin* | *mingw* | *uwin* | *djgpp | *emx* )
1395
1772
        fi
1396
1773
    ;;
1397
1774
    esac
1398
 
    echo "$as_me:1398: result: $ac_default_prefix $result" >&5
 
1775
    echo "$as_me:$LINENO: result: $ac_default_prefix $result" >&5
1399
1776
echo "${ECHO_T}$ac_default_prefix $result" >&6
1400
1777
  ;;
1401
1778
esac
1402
 
echo "$as_me:1402: checking default prefix system" >&5
 
1779
echo "$as_me:$LINENO: checking default prefix system" >&5
1403
1780
echo $ECHO_N "checking default prefix system... $ECHO_C" >&6
1404
1781
result="$prefix" ; test "$result" = "NONE" && result="$ac_default_prefix"
1405
1782
case ${result} in
1456
1833
                     |sed -e 's:^..prefix./com$:${sysconfdir}/default:'`
1457
1834
  ;;
1458
1835
esac
1459
 
echo "$as_me:1459: result: $result" >&5
 
1836
echo "$as_me:$LINENO: result: $result" >&5
1460
1837
echo "${ECHO_T}$result" >&6
1461
1838
# --------------------------------------------------------
1462
1839
 
1473
1850
test "$enable_thread_safe" = "$host_os" && THREAD_SAFE="-thread-safe"
1474
1851
 
1475
1852
if test -n "$THREAD_SAFE" ; then
1476
 
  echo "$as_me:1476: result: ...using thread-safe linkage" >&5
 
1853
  echo "$as_me:$LINENO: result: ...using thread-safe linkage" >&5
1477
1854
echo "${ECHO_T}...using thread-safe linkage" >&6
1478
1855
else
1479
 
  echo "$as_me:1479: result: disabled thread-safe linkage" >&5
 
1856
  echo "$as_me:$LINENO: result: disabled thread-safe linkage" >&5
1480
1857
echo "${ECHO_T}disabled thread-safe linkage" >&6
1481
1858
fi
1482
1859
# ----------------------------------------------------------------
1483
 
echo "$as_me:1483: checking zlib install prefix" >&5
 
1860
echo "$as_me:$LINENO: checking zlib install prefix" >&5
1484
1861
echo $ECHO_N "checking zlib install prefix... $ECHO_C" >&6
1485
1862
 
1486
1863
# Check whether --with-zlib or --without-zlib was given.
1492
1869
fi;
1493
1870
if test "${with_zlib}" = yes ; then # choose --prefix paths
1494
1871
   if test "${prefix}" = NONE ; then
1495
 
      echo "$as_me:1495: result: oops" >&5
 
1872
      echo "$as_me:$LINENO: result: oops" >&5
1496
1873
echo "${ECHO_T}oops" >&6
1497
 
      { { echo "$as_me:1497: error: --with-zlib requires a path argument or a --prefix path set" >&5
 
1874
      { { echo "$as_me:$LINENO: error: --with-zlib requires a path argument or a --prefix path set" >&5
1498
1875
echo "$as_me: error: --with-zlib requires a path argument or a --prefix path set" >&2;}
1499
1876
   { (exit 1); exit 1; }; }
1500
1877
   fi
1503
1880
 
1504
1881
case ".$with_zlib" in
1505
1882
   .no|.no,*)
1506
 
      echo "$as_me:1506: result: none" >&5
 
1883
      echo "$as_me:$LINENO: result: none" >&5
1507
1884
echo "${ECHO_T}none" >&6
1508
1885
      with_zlib="no, not configured" ;;
1509
1886
  ./usr)
1510
 
      echo "$as_me:1510: result: oops, ignored (may try --with-zlib=/usr/.)" >&5
 
1887
      echo "$as_me:$LINENO: result: oops, ignored (may try --with-zlib=/usr/.)" >&5
1511
1888
echo "${ECHO_T}oops, ignored (may try --with-zlib=/usr/.)" >&6
1512
1889
      with_zlib="no, /usr ignored" ;;
1513
1890
  *)  if test ! -d "$with_zlib/include" ; then
1514
 
         echo "$as_me:1514: result: oops" >&5
 
1891
         echo "$as_me:$LINENO: result: oops" >&5
1515
1892
echo "${ECHO_T}oops" >&6
1516
 
         { { echo "$as_me:1516: error: \"$with_zlib/include\" is not a directory" >&5
 
1893
         { { echo "$as_me:$LINENO: error: \"$with_zlib/include\" is not a directory" >&5
1517
1894
echo "$as_me: error: \"$with_zlib/include\" is not a directory" >&2;}
1518
1895
   { (exit 1); exit 1; }; }
1519
1896
      fi
1520
1897
      if test ! -d "$with_zlib/lib" ; then
1521
 
         echo "$as_me:1521: result: oops" >&5
 
1898
         echo "$as_me:$LINENO: result: oops" >&5
1522
1899
echo "${ECHO_T}oops" >&6
1523
 
         { { echo "$as_me:1523: error: \"$with_zlib/lib\" is not a directory" >&5
 
1900
         { { echo "$as_me:$LINENO: error: \"$with_zlib/lib\" is not a directory" >&5
1524
1901
echo "$as_me: error: \"$with_zlib/lib\" is not a directory" >&2;}
1525
1902
   { (exit 1); exit 1; }; }
1526
1903
      fi
1527
 
      echo "$as_me:1527: result: $with_zlib" >&5
 
1904
      echo "$as_me:$LINENO: result: $with_zlib" >&5
1528
1905
echo "${ECHO_T}$with_zlib" >&6
1529
1906
      ZLIB_INCL="-I$with_zlib/include"
1530
1907
      ZLIB_LDIR="-L$with_zlib/lib"
1531
 
      echo "$as_me:1531: result: ..adding CPPFLAGS $ZLIB_INCL" >&5
 
1908
      echo "$as_me:$LINENO: result: ..adding CPPFLAGS $ZLIB_INCL" >&5
1532
1909
echo "${ECHO_T}..adding CPPFLAGS $ZLIB_INCL" >&6
1533
 
      echo "$as_me:1533: result: ..adding LDFLAGS  $ZLIB_LDIR" >&5
 
1910
      echo "$as_me:$LINENO: result: ..adding LDFLAGS  $ZLIB_LDIR" >&5
1534
1911
echo "${ECHO_T}..adding LDFLAGS  $ZLIB_LDIR" >&6
1535
1912
      CPPFLAGS="$CPPFLAGS $ZLIB_INCL"
1536
1913
      LDFLAGS="$LDFLAGS $ZLIB_LDIR"
1537
1914
  ;;
1538
1915
esac
1539
1916
 
 
1917
 
1540
1918
# -----------------------------------------------------------------------
1541
1919
 
1542
 
   echo "$as_me:1542: checking rpm spec file" >&5
 
1920
   echo "$as_me:$LINENO: checking rpm spec file" >&5
1543
1921
echo $ECHO_N "checking rpm spec file... $ECHO_C" >&6
1544
1922
  if test "." != "." ; then
1545
1923
    ax_spec_file_=""
1578
1956
   ./*) if test "$ax_spec_file" = "./$ax_spec_file_" ; then
1579
1957
          ax_spec_file="$ax_spec_file_"
1580
1958
        fi
1581
 
        echo "$as_me:1581: result: $ax_spec_file" >&5
1582
 
echo "${ECHO_T}$ax_spec_file" >&6 ;;
1583
 
   */*) echo "$as_me:1583: result: $ax_spec_file" >&5
1584
 
echo "${ECHO_T}$ax_spec_file" >&6 ;;
1585
 
   *)   { { echo "$as_me:1585: error: no rpm spec file found" >&5
 
1959
        echo "$as_me:$LINENO: result: $ax_spec_file" >&5
 
1960
echo "${ECHO_T}$ax_spec_file" >&6 ;;
 
1961
   */*) echo "$as_me:$LINENO: result: $ax_spec_file" >&5
 
1962
echo "${ECHO_T}$ax_spec_file" >&6 ;;
 
1963
   *)   { { echo "$as_me:$LINENO: error: no rpm spec file found" >&5
1586
1964
echo "$as_me: error: no rpm spec file found" >&2;}
1587
1965
   { (exit 1); exit 1; }; } ;;
1588
1966
  esac
1589
1967
 
1590
 
      echo "$as_me:1590: checking for spec package" >&5
 
1968
 
 
1969
      echo "$as_me:$LINENO: checking for spec package" >&5
1591
1970
echo $ECHO_N "checking for spec package... $ECHO_C" >&6
1592
1971
  if test ".$PACKAGE_NAME" = "." ; then if test ! -f $ax_spec_file
1593
1972
  then k="(w/o spec)"
1621
2000
  test ".$PACKAGE_NAME"   = ".TODO" && PACKAGE_NAME="foo"
1622
2001
 
1623
2002
  test "PACKAGE_NAME" = "PACKAGE_NAME" && test ".$PACKAGE" = "." && PACKAGE="$PACKAGE_NAME"
1624
 
  echo "$as_me:1624: result: $PACKAGE_NAME $k" >&5
 
2003
  echo "$as_me:$LINENO: result: $PACKAGE_NAME $k" >&5
1625
2004
echo "${ECHO_T}$PACKAGE_NAME $k" >&6
1626
2005
 
1627
 
      echo "$as_me:1627: checking for spec version" >&5
 
2006
      echo "$as_me:$LINENO: checking for spec version" >&5
1628
2007
echo $ECHO_N "checking for spec version... $ECHO_C" >&6
1629
2008
  if test ".$PACKAGE_VERSION" = "." ; then if test ! -f $ax_spec_file
1630
2009
  then k="(w/o spec)"
1664
2043
  *) PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | $as_tr_sh` ; PACKAGE_VERSION="$PACKAGE_VERSION.`date +%y.%W%w`" ;;
1665
2044
  esac
1666
2045
  PACKAGE_VERSION=`echo $PACKAGE_VERSION | sed -e "s/[.]0\\(0-9\\)/.\\1/g"`
1667
 
  echo "$as_me:1667: result: $PACKAGE_VERSION $k" >&5
 
2046
  echo "$as_me:$LINENO: result: $PACKAGE_VERSION $k" >&5
1668
2047
echo "${ECHO_T}$PACKAGE_VERSION $k" >&6
1669
2048
 
1670
 
      echo "$as_me:1670: checking for spec license type" >&5
 
2049
      echo "$as_me:$LINENO: checking for spec license type" >&5
1671
2050
echo $ECHO_N "checking for spec license type... $ECHO_C" >&6
1672
2051
  if test ".$PACKAGE_LICENSE" = "." ; then if test ! -f $ax_spec_file
1673
2052
  then k="(w/o spec)"
1727
2106
 
1728
2107
  test "$PACKAGE_LICENSE" = "GPL" && PACKAGE_LICENSE="GNU GPL"
1729
2108
  test "$PACKAGE_LICENSE" = "LGPL" && PACKAGE_LICENSE="GNU LGPL"
1730
 
  echo "$as_me:1730: result: $PACKAGE_LICENSE $k" >&5
 
2109
  echo "$as_me:$LINENO: result: $PACKAGE_LICENSE $k" >&5
1731
2110
echo "${ECHO_T}$PACKAGE_LICENSE $k" >&6
1732
2111
 
1733
 
      echo "$as_me:1733: checking for spec summary" >&5
 
2112
      echo "$as_me:$LINENO: checking for spec summary" >&5
1734
2113
echo $ECHO_N "checking for spec summary... $ECHO_C" >&6
1735
2114
  if test ".$PACKAGE_SUMMARY" = "." ; then if test ! -f $ax_spec_file
1736
2115
  then k="(w/o spec)"
1763
2142
     test ".$ltmain" != "." && PACKAGE_SUMMARY="$PACKAGE_SUMMARY library"
1764
2143
  fi
1765
2144
 
1766
 
  echo "$as_me:1766: result: $PACKAGE_SUMMARY $k" >&5
 
2145
  echo "$as_me:$LINENO: result: $PACKAGE_SUMMARY $k" >&5
1767
2146
echo "${ECHO_T}$PACKAGE_SUMMARY $k" >&6
1768
2147
 
1769
 
      echo "$as_me:1769: checking for spec category" >&5
 
2148
      echo "$as_me:$LINENO: checking for spec category" >&5
1770
2149
echo $ECHO_N "checking for spec category... $ECHO_C" >&6
1771
2150
  if test ".$PACKAGE_CATEGORY" = "." ; then if test ! -f $ax_spec_file
1772
2151
  then k="(w/o spec)"
1800
2179
     else PACKAGE_CATEGORY="Development/Other"
1801
2180
  fi fi
1802
2181
 
1803
 
  echo "$as_me:1803: result: $PACKAGE_CATEGORY $k" >&5
 
2182
  echo "$as_me:$LINENO: result: $PACKAGE_CATEGORY $k" >&5
1804
2183
echo "${ECHO_T}$PACKAGE_CATEGORY $k" >&6
1805
2184
 
1806
 
      echo "$as_me:1806: checking for spec icon" >&5
 
2185
      echo "$as_me:$LINENO: checking for spec icon" >&5
1807
2186
echo $ECHO_N "checking for spec icon... $ECHO_C" >&6
1808
2187
  if test ".$PACKAGE_ICON" = "." ; then if test ! -f $ax_spec_file
1809
2188
  then k="(w/o spec)"
1833
2212
  test ".$PACKAGE_ICON" = "." && k="(fallback)"
1834
2213
    if test ".$PACKAGE_ICON"   = "."  ; then PACKAGE_ICON="$PACKAGE-icon.png" ; fi
1835
2214
 
1836
 
  echo "$as_me:1836: result: $PACKAGE_ICON $k" >&5
 
2215
  echo "$as_me:$LINENO: result: $PACKAGE_ICON $k" >&5
1837
2216
echo "${ECHO_T}$PACKAGE_ICON $k" >&6
1838
2217
 
 
2218
 
 
2219
am__api_version="1.6"
1839
2220
# Find a good install program.  We prefer a C program (faster),
1840
2221
# so one script is as good as another.  But avoid the broken or
1841
2222
# incompatible versions:
1847
2228
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1848
2229
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1849
2230
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2231
# OS/2's system install, which has a completely different semantic
1850
2232
# ./install, which can be erroneously created by make from ./install.sh.
1851
 
echo "$as_me:1851: checking for a BSD compatible install" >&5
1852
 
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
2233
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2234
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1853
2235
if test -z "$INSTALL"; then
1854
2236
if test "${ac_cv_path_install+set}" = set; then
1855
2237
  echo $ECHO_N "(cached) $ECHO_C" >&6
1856
2238
else
1857
 
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1858
 
  for ac_dir in $PATH; do
1859
 
    IFS=$ac_save_IFS
1860
 
    # Account for people who put trailing slashes in PATH elements.
1861
 
    case $ac_dir/ in
1862
 
    / | ./ | .// | /cC/* \
1863
 
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1864
 
    | /usr/ucb/* ) ;;
1865
 
    *)
1866
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
1867
 
      # Don't use installbsd from OSF since it installs stuff as root
1868
 
      # by default.
1869
 
      for ac_prog in ginstall scoinst install; do
1870
 
        if $as_executable_p "$ac_dir/$ac_prog"; then
 
2239
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2240
for as_dir in $PATH
 
2241
do
 
2242
  IFS=$as_save_IFS
 
2243
  test -z "$as_dir" && as_dir=.
 
2244
  # Account for people who put trailing slashes in PATH elements.
 
2245
case $as_dir/ in
 
2246
  ./ | .// | /cC/* | \
 
2247
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2248
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2249
  /usr/ucb/* ) ;;
 
2250
  *)
 
2251
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2252
    # Don't use installbsd from OSF since it installs stuff as root
 
2253
    # by default.
 
2254
    for ac_prog in ginstall scoinst install; do
 
2255
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2256
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1871
2257
          if test $ac_prog = install &&
1872
 
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
2258
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1873
2259
            # AIX install.  It has an incompatible calling convention.
1874
2260
            :
1875
2261
          elif test $ac_prog = install &&
1876
 
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
2262
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1877
2263
            # program-specific install script used by HP pwplus--don't use.
1878
2264
            :
1879
2265
          else
1880
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1881
 
            break 2
 
2266
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2267
            break 3
1882
2268
          fi
1883
2269
        fi
1884
2270
      done
1885
 
      ;;
1886
 
    esac
1887
 
  done
 
2271
    done
 
2272
    ;;
 
2273
esac
 
2274
done
 
2275
 
1888
2276
 
1889
2277
fi
1890
2278
  if test "${ac_cv_path_install+set}" = set; then
1897
2285
    INSTALL=$ac_install_sh
1898
2286
  fi
1899
2287
fi
1900
 
echo "$as_me:1900: result: $INSTALL" >&5
 
2288
echo "$as_me:$LINENO: result: $INSTALL" >&5
1901
2289
echo "${ECHO_T}$INSTALL" >&6
1902
2290
 
1903
2291
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1908
2296
 
1909
2297
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1910
2298
 
1911
 
echo "$as_me:1911: checking whether build environment is sane" >&5
 
2299
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1912
2300
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1913
2301
# Just in case
1914
2302
sleep 1
1932
2320
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1933
2321
      # broken ls alias from the environment.  This has actually
1934
2322
      # happened.  Such a system could not be considered "sane".
1935
 
      { { echo "$as_me:1935: error: ls -t appears to fail.  Make sure there is not a broken
 
2323
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1936
2324
alias in your environment" >&5
1937
2325
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1938
2326
alias in your environment" >&2;}
1945
2333
   # Ok.
1946
2334
   :
1947
2335
else
1948
 
   { { echo "$as_me:1948: error: newly created file is older than distributed files!
 
2336
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1949
2337
Check your system clock" >&5
1950
2338
echo "$as_me: error: newly created file is older than distributed files!
1951
2339
Check your system clock" >&2;}
1952
2340
   { (exit 1); exit 1; }; }
1953
2341
fi
1954
 
echo "$as_me:1954: result: yes" >&5
 
2342
echo "$as_me:$LINENO: result: yes" >&5
1955
2343
echo "${ECHO_T}yes" >&6
1956
2344
test "$program_prefix" != NONE &&
1957
2345
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1966
2354
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1967
2355
rm conftest.sed
1968
2356
 
 
2357
 
1969
2358
# expand $ac_aux_dir to an absolute path
1970
 
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
 
2359
am_aux_dir=`cd $ac_aux_dir && pwd`
1971
2360
 
1972
2361
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1973
2362
# Use eval to expand $SHELL
1975
2364
  am_missing_run="$MISSING --run "
1976
2365
else
1977
2366
  am_missing_run=
1978
 
  am_backtick='`'
1979
 
  { echo "$as_me:1979: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1980
 
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
 
2367
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2368
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1981
2369
fi
1982
2370
 
1983
 
for ac_prog in mawk gawk nawk awk
 
2371
for ac_prog in gawk mawk nawk awk
1984
2372
do
1985
2373
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1986
2374
set dummy $ac_prog; ac_word=$2
1987
 
echo "$as_me:1987: checking for $ac_word" >&5
 
2375
echo "$as_me:$LINENO: checking for $ac_word" >&5
1988
2376
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989
2377
if test "${ac_cv_prog_AWK+set}" = set; then
1990
2378
  echo $ECHO_N "(cached) $ECHO_C" >&6
1992
2380
  if test -n "$AWK"; then
1993
2381
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1994
2382
else
1995
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1996
 
ac_dummy="$PATH"
1997
 
for ac_dir in $ac_dummy; do
1998
 
  IFS=$ac_save_IFS
1999
 
  test -z "$ac_dir" && ac_dir=.
2000
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2001
 
ac_cv_prog_AWK="$ac_prog"
2002
 
echo "$as_me:2002: found $ac_dir/$ac_word" >&5
2003
 
break
 
2383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2384
for as_dir in $PATH
 
2385
do
 
2386
  IFS=$as_save_IFS
 
2387
  test -z "$as_dir" && as_dir=.
 
2388
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2389
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2390
    ac_cv_prog_AWK="$ac_prog"
 
2391
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2392
    break 2
 
2393
  fi
 
2394
done
2004
2395
done
2005
2396
 
2006
2397
fi
2007
2398
fi
2008
2399
AWK=$ac_cv_prog_AWK
2009
2400
if test -n "$AWK"; then
2010
 
  echo "$as_me:2010: result: $AWK" >&5
 
2401
  echo "$as_me:$LINENO: result: $AWK" >&5
2011
2402
echo "${ECHO_T}$AWK" >&6
2012
2403
else
2013
 
  echo "$as_me:2013: result: no" >&5
 
2404
  echo "$as_me:$LINENO: result: no" >&5
2014
2405
echo "${ECHO_T}no" >&6
2015
2406
fi
2016
2407
 
2017
2408
  test -n "$AWK" && break
2018
2409
done
2019
2410
 
2020
 
echo "$as_me:2020: checking whether ${MAKE-make} sets \${MAKE}" >&5
2021
 
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2022
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
2411
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2412
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
2413
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2023
2414
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2024
2415
  echo $ECHO_N "(cached) $ECHO_C" >&6
2025
2416
else
2026
 
  cat >conftest.make <<\EOF
 
2417
  cat >conftest.make <<\_ACEOF
2027
2418
all:
2028
 
        @echo 'ac_maketemp="${MAKE}"'
2029
 
EOF
 
2419
        @echo 'ac_maketemp="$(MAKE)"'
 
2420
_ACEOF
2030
2421
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2031
2422
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2032
2423
if test -n "$ac_maketemp"; then
2037
2428
rm -f conftest.make
2038
2429
fi
2039
2430
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2040
 
  echo "$as_me:2040: result: yes" >&5
 
2431
  echo "$as_me:$LINENO: result: yes" >&5
2041
2432
echo "${ECHO_T}yes" >&6
2042
2433
  SET_MAKE=
2043
2434
else
2044
 
  echo "$as_me:2044: result: no" >&5
 
2435
  echo "$as_me:$LINENO: result: no" >&5
2045
2436
echo "${ECHO_T}no" >&6
2046
2437
  SET_MAKE="MAKE=${MAKE-make}"
2047
2438
fi
2048
2439
 
2049
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2050
 
if test "${enable_dependency_tracking+set}" = set; then
2051
 
  enableval="$enable_dependency_tracking"
2052
 
 
2053
 
fi;
2054
 
if test "x$enable_dependency_tracking" != xno; then
2055
 
  am_depcomp="$ac_aux_dir/depcomp"
2056
 
  AMDEPBACKSLASH='\'
2057
 
fi
2058
 
 
2059
 
if test "x$enable_dependency_tracking" != xno; then
2060
 
  AMDEP_TRUE=
2061
 
  AMDEP_FALSE='#'
2062
 
else
2063
 
  AMDEP_TRUE='#'
2064
 
  AMDEP_FALSE=
2065
 
fi
2066
 
 
2067
 
rm -f .deps 2>/dev/null
2068
 
mkdir .deps 2>/dev/null
2069
 
if test -d .deps; then
2070
 
  DEPDIR=.deps
2071
 
else
2072
 
  # MS-DOS does not allow filenames that begin with a dot.
2073
 
  DEPDIR=_deps
2074
 
fi
2075
 
rmdir .deps 2>/dev/null
2076
 
 
2077
 
# test to see if srcdir already configured
2078
 
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
 
2440
 # test to see if srcdir already configured
 
2441
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2079
2442
   test -f $srcdir/config.status; then
2080
 
  { { echo "$as_me:2080: error: source directory already configured; run \"make distclean\" there first" >&5
 
2443
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2081
2444
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2082
2445
   { (exit 1); exit 1; }; }
2083
2446
fi
2084
2447
 
2085
2448
# Define the identity of the package.
2086
 
PACKAGE=$PACKAGE
2087
 
VERSION=$VERSION
2088
 
 
2089
 
cat >>confdefs.h <<EOF
 
2449
 PACKAGE=$PACKAGE
 
2450
 VERSION=$VERSION
 
2451
 
 
2452
 
 
2453
cat >>confdefs.h <<_ACEOF
2090
2454
#define PACKAGE "$PACKAGE"
2091
 
EOF
2092
 
 
2093
 
cat >>confdefs.h <<EOF
 
2455
_ACEOF
 
2456
 
 
2457
 
 
2458
cat >>confdefs.h <<_ACEOF
2094
2459
#define VERSION "$VERSION"
2095
 
EOF
2096
 
 
2097
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
2098
 
# the ones we care about.
2099
 
 
2100
 
# Autoconf 2.50 always computes EXEEXT.  However we need to be
2101
 
# compatible with 2.13, for now.  So we always define EXEEXT, but we
2102
 
# don't compute it.
2103
 
 
2104
 
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
2105
 
# requests that it be used.  This is a bit dumb.
2106
 
: ${OBJEXT=o}
 
2460
_ACEOF
2107
2461
 
2108
2462
# Some tools Automake needs.
2109
2463
 
2110
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
 
2464
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2465
 
2111
2466
 
2112
2467
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2113
2468
 
2114
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
 
2469
 
 
2470
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2471
 
2115
2472
 
2116
2473
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2117
2474
 
 
2475
 
2118
2476
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2119
2477
 
 
2478
 
2120
2479
AMTAR=${AMTAR-"${am_missing_run}tar"}
2121
2480
 
2122
2481
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2123
2482
 
 
2483
# Installed binaries are usually stripped using `strip' when the user
 
2484
# run `make install-strip'.  However `strip' might not be the right
 
2485
# tool to use in cross-compilation environments, therefore Automake
 
2486
# will honor the `STRIP' environment variable to overrule this program.
 
2487
if test "$cross_compiling" != no; then
 
2488
  if test -n "$ac_tool_prefix"; then
 
2489
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2490
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2491
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2492
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2493
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2495
else
 
2496
  if test -n "$STRIP"; then
 
2497
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2498
else
 
2499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2500
for as_dir in $PATH
 
2501
do
 
2502
  IFS=$as_save_IFS
 
2503
  test -z "$as_dir" && as_dir=.
 
2504
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2505
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2506
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2507
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2508
    break 2
 
2509
  fi
 
2510
done
 
2511
done
 
2512
 
 
2513
fi
 
2514
fi
 
2515
STRIP=$ac_cv_prog_STRIP
 
2516
if test -n "$STRIP"; then
 
2517
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
2518
echo "${ECHO_T}$STRIP" >&6
 
2519
else
 
2520
  echo "$as_me:$LINENO: result: no" >&5
 
2521
echo "${ECHO_T}no" >&6
 
2522
fi
 
2523
 
 
2524
fi
 
2525
if test -z "$ac_cv_prog_STRIP"; then
 
2526
  ac_ct_STRIP=$STRIP
 
2527
  # Extract the first word of "strip", so it can be a program name with args.
 
2528
set dummy strip; ac_word=$2
 
2529
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2530
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2531
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2533
else
 
2534
  if test -n "$ac_ct_STRIP"; then
 
2535
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2536
else
 
2537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2538
for as_dir in $PATH
 
2539
do
 
2540
  IFS=$as_save_IFS
 
2541
  test -z "$as_dir" && as_dir=.
 
2542
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2543
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2544
    ac_cv_prog_ac_ct_STRIP="strip"
 
2545
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2546
    break 2
 
2547
  fi
 
2548
done
 
2549
done
 
2550
 
 
2551
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
2552
fi
 
2553
fi
 
2554
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2555
if test -n "$ac_ct_STRIP"; then
 
2556
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2557
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2558
else
 
2559
  echo "$as_me:$LINENO: result: no" >&5
 
2560
echo "${ECHO_T}no" >&6
 
2561
fi
 
2562
 
 
2563
  STRIP=$ac_ct_STRIP
 
2564
else
 
2565
  STRIP="$ac_cv_prog_STRIP"
 
2566
fi
 
2567
 
 
2568
fi
2124
2569
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2125
2570
 
2126
2571
# We need awk for the "check" target.  The system "awk" is bad on
2127
2572
# some platforms.
2128
2573
 
 
2574
 
 
2575
 
2129
2576
ac_ext=c
2130
2577
ac_cpp='$CPP $CPPFLAGS'
2131
2578
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2134
2581
if test -n "$ac_tool_prefix"; then
2135
2582
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2136
2583
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2137
 
echo "$as_me:2137: checking for $ac_word" >&5
 
2584
echo "$as_me:$LINENO: checking for $ac_word" >&5
2138
2585
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139
2586
if test "${ac_cv_prog_CC+set}" = set; then
2140
2587
  echo $ECHO_N "(cached) $ECHO_C" >&6
2142
2589
  if test -n "$CC"; then
2143
2590
  ac_cv_prog_CC="$CC" # Let the user override the test.
2144
2591
else
2145
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2146
 
ac_dummy="$PATH"
2147
 
for ac_dir in $ac_dummy; do
2148
 
  IFS=$ac_save_IFS
2149
 
  test -z "$ac_dir" && ac_dir=.
2150
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2151
 
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2152
 
echo "$as_me:2152: found $ac_dir/$ac_word" >&5
2153
 
break
 
2592
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2593
for as_dir in $PATH
 
2594
do
 
2595
  IFS=$as_save_IFS
 
2596
  test -z "$as_dir" && as_dir=.
 
2597
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2598
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2599
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2600
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2601
    break 2
 
2602
  fi
 
2603
done
2154
2604
done
2155
2605
 
2156
2606
fi
2157
2607
fi
2158
2608
CC=$ac_cv_prog_CC
2159
2609
if test -n "$CC"; then
2160
 
  echo "$as_me:2160: result: $CC" >&5
 
2610
  echo "$as_me:$LINENO: result: $CC" >&5
2161
2611
echo "${ECHO_T}$CC" >&6
2162
2612
else
2163
 
  echo "$as_me:2163: result: no" >&5
 
2613
  echo "$as_me:$LINENO: result: no" >&5
2164
2614
echo "${ECHO_T}no" >&6
2165
2615
fi
2166
2616
 
2169
2619
  ac_ct_CC=$CC
2170
2620
  # Extract the first word of "gcc", so it can be a program name with args.
2171
2621
set dummy gcc; ac_word=$2
2172
 
echo "$as_me:2172: checking for $ac_word" >&5
 
2622
echo "$as_me:$LINENO: checking for $ac_word" >&5
2173
2623
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174
2624
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2175
2625
  echo $ECHO_N "(cached) $ECHO_C" >&6
2177
2627
  if test -n "$ac_ct_CC"; then
2178
2628
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2179
2629
else
2180
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2181
 
ac_dummy="$PATH"
2182
 
for ac_dir in $ac_dummy; do
2183
 
  IFS=$ac_save_IFS
2184
 
  test -z "$ac_dir" && ac_dir=.
2185
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2186
 
ac_cv_prog_ac_ct_CC="gcc"
2187
 
echo "$as_me:2187: found $ac_dir/$ac_word" >&5
2188
 
break
 
2630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2631
for as_dir in $PATH
 
2632
do
 
2633
  IFS=$as_save_IFS
 
2634
  test -z "$as_dir" && as_dir=.
 
2635
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2636
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2637
    ac_cv_prog_ac_ct_CC="gcc"
 
2638
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2639
    break 2
 
2640
  fi
 
2641
done
2189
2642
done
2190
2643
 
2191
2644
fi
2192
2645
fi
2193
2646
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2194
2647
if test -n "$ac_ct_CC"; then
2195
 
  echo "$as_me:2195: result: $ac_ct_CC" >&5
 
2648
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2196
2649
echo "${ECHO_T}$ac_ct_CC" >&6
2197
2650
else
2198
 
  echo "$as_me:2198: result: no" >&5
 
2651
  echo "$as_me:$LINENO: result: no" >&5
2199
2652
echo "${ECHO_T}no" >&6
2200
2653
fi
2201
2654
 
2208
2661
  if test -n "$ac_tool_prefix"; then
2209
2662
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2210
2663
set dummy ${ac_tool_prefix}cc; ac_word=$2
2211
 
echo "$as_me:2211: checking for $ac_word" >&5
 
2664
echo "$as_me:$LINENO: checking for $ac_word" >&5
2212
2665
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213
2666
if test "${ac_cv_prog_CC+set}" = set; then
2214
2667
  echo $ECHO_N "(cached) $ECHO_C" >&6
2216
2669
  if test -n "$CC"; then
2217
2670
  ac_cv_prog_CC="$CC" # Let the user override the test.
2218
2671
else
2219
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2220
 
ac_dummy="$PATH"
2221
 
for ac_dir in $ac_dummy; do
2222
 
  IFS=$ac_save_IFS
2223
 
  test -z "$ac_dir" && ac_dir=.
2224
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2225
 
ac_cv_prog_CC="${ac_tool_prefix}cc"
2226
 
echo "$as_me:2226: found $ac_dir/$ac_word" >&5
2227
 
break
 
2672
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2673
for as_dir in $PATH
 
2674
do
 
2675
  IFS=$as_save_IFS
 
2676
  test -z "$as_dir" && as_dir=.
 
2677
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2678
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2679
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2680
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2681
    break 2
 
2682
  fi
 
2683
done
2228
2684
done
2229
2685
 
2230
2686
fi
2231
2687
fi
2232
2688
CC=$ac_cv_prog_CC
2233
2689
if test -n "$CC"; then
2234
 
  echo "$as_me:2234: result: $CC" >&5
 
2690
  echo "$as_me:$LINENO: result: $CC" >&5
2235
2691
echo "${ECHO_T}$CC" >&6
2236
2692
else
2237
 
  echo "$as_me:2237: result: no" >&5
 
2693
  echo "$as_me:$LINENO: result: no" >&5
2238
2694
echo "${ECHO_T}no" >&6
2239
2695
fi
2240
2696
 
2243
2699
  ac_ct_CC=$CC
2244
2700
  # Extract the first word of "cc", so it can be a program name with args.
2245
2701
set dummy cc; ac_word=$2
2246
 
echo "$as_me:2246: checking for $ac_word" >&5
 
2702
echo "$as_me:$LINENO: checking for $ac_word" >&5
2247
2703
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2248
2704
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2249
2705
  echo $ECHO_N "(cached) $ECHO_C" >&6
2251
2707
  if test -n "$ac_ct_CC"; then
2252
2708
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2253
2709
else
2254
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2255
 
ac_dummy="$PATH"
2256
 
for ac_dir in $ac_dummy; do
2257
 
  IFS=$ac_save_IFS
2258
 
  test -z "$ac_dir" && ac_dir=.
2259
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2260
 
ac_cv_prog_ac_ct_CC="cc"
2261
 
echo "$as_me:2261: found $ac_dir/$ac_word" >&5
2262
 
break
 
2710
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2711
for as_dir in $PATH
 
2712
do
 
2713
  IFS=$as_save_IFS
 
2714
  test -z "$as_dir" && as_dir=.
 
2715
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2716
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2717
    ac_cv_prog_ac_ct_CC="cc"
 
2718
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2719
    break 2
 
2720
  fi
 
2721
done
2263
2722
done
2264
2723
 
2265
2724
fi
2266
2725
fi
2267
2726
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268
2727
if test -n "$ac_ct_CC"; then
2269
 
  echo "$as_me:2269: result: $ac_ct_CC" >&5
 
2728
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270
2729
echo "${ECHO_T}$ac_ct_CC" >&6
2271
2730
else
2272
 
  echo "$as_me:2272: result: no" >&5
 
2731
  echo "$as_me:$LINENO: result: no" >&5
2273
2732
echo "${ECHO_T}no" >&6
2274
2733
fi
2275
2734
 
2282
2741
if test -z "$CC"; then
2283
2742
  # Extract the first word of "cc", so it can be a program name with args.
2284
2743
set dummy cc; ac_word=$2
2285
 
echo "$as_me:2285: checking for $ac_word" >&5
 
2744
echo "$as_me:$LINENO: checking for $ac_word" >&5
2286
2745
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287
2746
if test "${ac_cv_prog_CC+set}" = set; then
2288
2747
  echo $ECHO_N "(cached) $ECHO_C" >&6
2291
2750
  ac_cv_prog_CC="$CC" # Let the user override the test.
2292
2751
else
2293
2752
  ac_prog_rejected=no
2294
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2295
 
ac_dummy="$PATH"
2296
 
for ac_dir in $ac_dummy; do
2297
 
  IFS=$ac_save_IFS
2298
 
  test -z "$ac_dir" && ac_dir=.
2299
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2300
 
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2301
 
  ac_prog_rejected=yes
2302
 
  continue
2303
 
fi
2304
 
ac_cv_prog_CC="cc"
2305
 
echo "$as_me:2305: found $ac_dir/$ac_word" >&5
2306
 
break
 
2753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2754
for as_dir in $PATH
 
2755
do
 
2756
  IFS=$as_save_IFS
 
2757
  test -z "$as_dir" && as_dir=.
 
2758
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2759
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2760
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2761
       ac_prog_rejected=yes
 
2762
       continue
 
2763
     fi
 
2764
    ac_cv_prog_CC="cc"
 
2765
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2766
    break 2
 
2767
  fi
 
2768
done
2307
2769
done
2308
2770
 
2309
2771
if test $ac_prog_rejected = yes; then
2315
2777
    # However, it has the same basename, so the bogon will be chosen
2316
2778
    # first if we set CC to just the basename; use the full file name.
2317
2779
    shift
2318
 
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
2319
 
    shift
2320
 
    ac_cv_prog_CC="$@"
 
2780
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2321
2781
  fi
2322
2782
fi
2323
2783
fi
2324
2784
fi
2325
2785
CC=$ac_cv_prog_CC
2326
2786
if test -n "$CC"; then
2327
 
  echo "$as_me:2327: result: $CC" >&5
 
2787
  echo "$as_me:$LINENO: result: $CC" >&5
2328
2788
echo "${ECHO_T}$CC" >&6
2329
2789
else
2330
 
  echo "$as_me:2330: result: no" >&5
 
2790
  echo "$as_me:$LINENO: result: no" >&5
2331
2791
echo "${ECHO_T}no" >&6
2332
2792
fi
2333
2793
 
2338
2798
  do
2339
2799
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2340
2800
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2341
 
echo "$as_me:2341: checking for $ac_word" >&5
 
2801
echo "$as_me:$LINENO: checking for $ac_word" >&5
2342
2802
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343
2803
if test "${ac_cv_prog_CC+set}" = set; then
2344
2804
  echo $ECHO_N "(cached) $ECHO_C" >&6
2346
2806
  if test -n "$CC"; then
2347
2807
  ac_cv_prog_CC="$CC" # Let the user override the test.
2348
2808
else
2349
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2350
 
ac_dummy="$PATH"
2351
 
for ac_dir in $ac_dummy; do
2352
 
  IFS=$ac_save_IFS
2353
 
  test -z "$ac_dir" && ac_dir=.
2354
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2355
 
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2356
 
echo "$as_me:2356: found $ac_dir/$ac_word" >&5
2357
 
break
 
2809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2810
for as_dir in $PATH
 
2811
do
 
2812
  IFS=$as_save_IFS
 
2813
  test -z "$as_dir" && as_dir=.
 
2814
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2815
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2816
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2817
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2818
    break 2
 
2819
  fi
 
2820
done
2358
2821
done
2359
2822
 
2360
2823
fi
2361
2824
fi
2362
2825
CC=$ac_cv_prog_CC
2363
2826
if test -n "$CC"; then
2364
 
  echo "$as_me:2364: result: $CC" >&5
 
2827
  echo "$as_me:$LINENO: result: $CC" >&5
2365
2828
echo "${ECHO_T}$CC" >&6
2366
2829
else
2367
 
  echo "$as_me:2367: result: no" >&5
 
2830
  echo "$as_me:$LINENO: result: no" >&5
2368
2831
echo "${ECHO_T}no" >&6
2369
2832
fi
2370
2833
 
2377
2840
do
2378
2841
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2379
2842
set dummy $ac_prog; ac_word=$2
2380
 
echo "$as_me:2380: checking for $ac_word" >&5
 
2843
echo "$as_me:$LINENO: checking for $ac_word" >&5
2381
2844
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2382
2845
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2383
2846
  echo $ECHO_N "(cached) $ECHO_C" >&6
2385
2848
  if test -n "$ac_ct_CC"; then
2386
2849
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2387
2850
else
2388
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2389
 
ac_dummy="$PATH"
2390
 
for ac_dir in $ac_dummy; do
2391
 
  IFS=$ac_save_IFS
2392
 
  test -z "$ac_dir" && ac_dir=.
2393
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2394
 
ac_cv_prog_ac_ct_CC="$ac_prog"
2395
 
echo "$as_me:2395: found $ac_dir/$ac_word" >&5
2396
 
break
 
2851
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2852
for as_dir in $PATH
 
2853
do
 
2854
  IFS=$as_save_IFS
 
2855
  test -z "$as_dir" && as_dir=.
 
2856
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2857
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2858
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2859
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2860
    break 2
 
2861
  fi
 
2862
done
2397
2863
done
2398
2864
 
2399
2865
fi
2400
2866
fi
2401
2867
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2402
2868
if test -n "$ac_ct_CC"; then
2403
 
  echo "$as_me:2403: result: $ac_ct_CC" >&5
 
2869
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2404
2870
echo "${ECHO_T}$ac_ct_CC" >&6
2405
2871
else
2406
 
  echo "$as_me:2406: result: no" >&5
 
2872
  echo "$as_me:$LINENO: result: no" >&5
2407
2873
echo "${ECHO_T}no" >&6
2408
2874
fi
2409
2875
 
2415
2881
 
2416
2882
fi
2417
2883
 
2418
 
test -z "$CC" && { { echo "$as_me:2418: error: no acceptable cc found in \$PATH" >&5
2419
 
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
2884
 
 
2885
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2886
See \`config.log' for more details." >&5
 
2887
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2888
See \`config.log' for more details." >&2;}
2420
2889
   { (exit 1); exit 1; }; }
2421
2890
 
2422
2891
# Provide some information about the compiler.
2423
 
echo "$as_me:2423:" \
 
2892
echo "$as_me:$LINENO:" \
2424
2893
     "checking for C compiler version" >&5
2425
2894
ac_compiler=`set X $ac_compile; echo $2`
2426
 
{ (eval echo "$as_me:2426: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2895
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2427
2896
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2428
2897
  ac_status=$?
2429
 
  echo "$as_me:2429: \$? = $ac_status" >&5
 
2898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430
2899
  (exit $ac_status); }
2431
 
{ (eval echo "$as_me:2431: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2900
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2432
2901
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2433
2902
  ac_status=$?
2434
 
  echo "$as_me:2434: \$? = $ac_status" >&5
 
2903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435
2904
  (exit $ac_status); }
2436
 
{ (eval echo "$as_me:2436: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2905
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2437
2906
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2438
2907
  ac_status=$?
2439
 
  echo "$as_me:2439: \$? = $ac_status" >&5
 
2908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440
2909
  (exit $ac_status); }
2441
2910
 
2442
2911
cat >conftest.$ac_ext <<_ACEOF
2443
 
#line 2443 "configure"
2444
 
#include "confdefs.h"
 
2912
/* confdefs.h.  */
 
2913
_ACEOF
 
2914
cat confdefs.h >>conftest.$ac_ext
 
2915
cat >>conftest.$ac_ext <<_ACEOF
 
2916
/* end confdefs.h.  */
2445
2917
 
2446
2918
int
2447
2919
main ()
2452
2924
}
2453
2925
_ACEOF
2454
2926
ac_clean_files_save=$ac_clean_files
2455
 
ac_clean_files="$ac_clean_files a.out a.exe"
 
2927
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2456
2928
# Try to create an executable without -o first, disregard a.out.
2457
2929
# It will help us diagnose broken compilers, and finding out an intuition
2458
2930
# of exeext.
2459
 
echo "$as_me:2459: checking for C compiler default output" >&5
2460
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2931
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2932
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2461
2933
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2462
 
if { (eval echo "$as_me:2462: \"$ac_link_default\"") >&5
 
2934
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2463
2935
  (eval $ac_link_default) 2>&5
2464
2936
  ac_status=$?
2465
 
  echo "$as_me:2465: \$? = $ac_status" >&5
 
2937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466
2938
  (exit $ac_status); }; then
2467
2939
  # Find the output, starting from the most likely.  This scheme is
2468
2940
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2469
2941
# resort.
2470
 
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
2471
 
                ls a.out conftest 2>/dev/null;
2472
 
                ls a.* conftest.* 2>/dev/null`; do
 
2942
 
 
2943
# Be careful to initialize this variable, since it used to be cached.
 
2944
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2945
ac_cv_exeext=
 
2946
# b.out is created by i960 compilers.
 
2947
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2948
do
 
2949
  test -f "$ac_file" || continue
2473
2950
  case $ac_file in
2474
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2475
 
    a.out ) # We found the default executable, but exeext='' is most
2476
 
            # certainly right.
2477
 
            break;;
2478
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479
 
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2480
 
          export ac_cv_exeext
2481
 
          break;;
2482
 
    * ) break;;
 
2951
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2952
        ;;
 
2953
    conftest.$ac_ext )
 
2954
        # This is the source file.
 
2955
        ;;
 
2956
    [ab].out )
 
2957
        # We found the default executable, but exeext='' is most
 
2958
        # certainly right.
 
2959
        break;;
 
2960
    *.* )
 
2961
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2962
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2963
        # but it would be cool to find out if it's true.  Does anybody
 
2964
        # maintain Libtool? --akim.
 
2965
        export ac_cv_exeext
 
2966
        break;;
 
2967
    * )
 
2968
        break;;
2483
2969
  esac
2484
2970
done
2485
2971
else
2486
2972
  echo "$as_me: failed program was:" >&5
2487
 
cat conftest.$ac_ext >&5
2488
 
{ { echo "$as_me:2488: error: C compiler cannot create executables" >&5
2489
 
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
2973
sed 's/^/| /' conftest.$ac_ext >&5
 
2974
 
 
2975
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2976
See \`config.log' for more details." >&5
 
2977
echo "$as_me: error: C compiler cannot create executables
 
2978
See \`config.log' for more details." >&2;}
2490
2979
   { (exit 77); exit 77; }; }
2491
2980
fi
2492
2981
 
2493
2982
ac_exeext=$ac_cv_exeext
2494
 
echo "$as_me:2494: result: $ac_file" >&5
 
2983
echo "$as_me:$LINENO: result: $ac_file" >&5
2495
2984
echo "${ECHO_T}$ac_file" >&6
2496
2985
 
2497
2986
# Check the compiler produces executables we can run.  If not, either
2498
2987
# the compiler is broken, or we cross compile.
2499
 
echo "$as_me:2499: checking whether the C compiler works" >&5
 
2988
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2500
2989
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2501
2990
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2502
2991
# If not cross compiling, check that we can run a simple program.
2503
2992
if test "$cross_compiling" != yes; then
2504
2993
  if { ac_try='./$ac_file'
2505
 
  { (eval echo "$as_me:2505: \"$ac_try\"") >&5
 
2994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506
2995
  (eval $ac_try) 2>&5
2507
2996
  ac_status=$?
2508
 
  echo "$as_me:2508: \$? = $ac_status" >&5
 
2997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509
2998
  (exit $ac_status); }; }; then
2510
2999
    cross_compiling=no
2511
3000
  else
2512
3001
    if test "$cross_compiling" = maybe; then
2513
3002
        cross_compiling=yes
2514
3003
    else
2515
 
        { { echo "$as_me:2515: error: cannot run C compiled programs.
2516
 
If you meant to cross compile, use \`--host'." >&5
 
3004
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3005
If you meant to cross compile, use \`--host'.
 
3006
See \`config.log' for more details." >&5
2517
3007
echo "$as_me: error: cannot run C compiled programs.
2518
 
If you meant to cross compile, use \`--host'." >&2;}
 
3008
If you meant to cross compile, use \`--host'.
 
3009
See \`config.log' for more details." >&2;}
2519
3010
   { (exit 1); exit 1; }; }
2520
3011
    fi
2521
3012
  fi
2522
3013
fi
2523
 
echo "$as_me:2523: result: yes" >&5
 
3014
echo "$as_me:$LINENO: result: yes" >&5
2524
3015
echo "${ECHO_T}yes" >&6
2525
3016
 
2526
 
rm -f a.out a.exe conftest$ac_cv_exeext
 
3017
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2527
3018
ac_clean_files=$ac_clean_files_save
2528
3019
# Check the compiler produces executables we can run.  If not, either
2529
3020
# the compiler is broken, or we cross compile.
2530
 
echo "$as_me:2530: checking whether we are cross compiling" >&5
 
3021
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2531
3022
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2532
 
echo "$as_me:2532: result: $cross_compiling" >&5
 
3023
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2533
3024
echo "${ECHO_T}$cross_compiling" >&6
2534
3025
 
2535
 
echo "$as_me:2535: checking for executable suffix" >&5
2536
 
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2537
 
if { (eval echo "$as_me:2537: \"$ac_link\"") >&5
 
3026
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3027
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
3028
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2538
3029
  (eval $ac_link) 2>&5
2539
3030
  ac_status=$?
2540
 
  echo "$as_me:2540: \$? = $ac_status" >&5
 
3031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541
3032
  (exit $ac_status); }; then
2542
3033
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2543
3034
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2544
3035
# work properly (i.e., refer to `conftest.exe'), while it won't with
2545
3036
# `rm'.
2546
 
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
3037
for ac_file in conftest.exe conftest conftest.*; do
 
3038
  test -f "$ac_file" || continue
2547
3039
  case $ac_file in
2548
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
3040
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2549
3041
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550
 
          export ac_cv_exeext
2551
 
          break;;
 
3042
          export ac_cv_exeext
 
3043
          break;;
2552
3044
    * ) break;;
2553
3045
  esac
2554
3046
done
2555
3047
else
2556
 
  { { echo "$as_me:2556: error: cannot compute EXEEXT: cannot compile and link" >&5
2557
 
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
3048
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3049
See \`config.log' for more details." >&5
 
3050
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3051
See \`config.log' for more details." >&2;}
2558
3052
   { (exit 1); exit 1; }; }
2559
3053
fi
2560
3054
 
2561
3055
rm -f conftest$ac_cv_exeext
2562
 
echo "$as_me:2562: result: $ac_cv_exeext" >&5
 
3056
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2563
3057
echo "${ECHO_T}$ac_cv_exeext" >&6
2564
3058
 
2565
3059
rm -f conftest.$ac_ext
2566
3060
EXEEXT=$ac_cv_exeext
2567
3061
ac_exeext=$EXEEXT
2568
 
echo "$as_me:2568: checking for object suffix" >&5
2569
 
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
3062
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3063
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2570
3064
if test "${ac_cv_objext+set}" = set; then
2571
3065
  echo $ECHO_N "(cached) $ECHO_C" >&6
2572
3066
else
2573
3067
  cat >conftest.$ac_ext <<_ACEOF
2574
 
#line 2574 "configure"
2575
 
#include "confdefs.h"
 
3068
/* confdefs.h.  */
 
3069
_ACEOF
 
3070
cat confdefs.h >>conftest.$ac_ext
 
3071
cat >>conftest.$ac_ext <<_ACEOF
 
3072
/* end confdefs.h.  */
2576
3073
 
2577
3074
int
2578
3075
main ()
2583
3080
}
2584
3081
_ACEOF
2585
3082
rm -f conftest.o conftest.obj
2586
 
if { (eval echo "$as_me:2586: \"$ac_compile\"") >&5
 
3083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587
3084
  (eval $ac_compile) 2>&5
2588
3085
  ac_status=$?
2589
 
  echo "$as_me:2589: \$? = $ac_status" >&5
 
3086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590
3087
  (exit $ac_status); }; then
2591
3088
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2592
3089
  case $ac_file in
2593
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
3090
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2594
3091
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2595
3092
       break;;
2596
3093
  esac
2597
3094
done
2598
3095
else
2599
3096
  echo "$as_me: failed program was:" >&5
2600
 
cat conftest.$ac_ext >&5
2601
 
{ { echo "$as_me:2601: error: cannot compute OBJEXT: cannot compile" >&5
2602
 
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
3097
sed 's/^/| /' conftest.$ac_ext >&5
 
3098
 
 
3099
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3100
See \`config.log' for more details." >&5
 
3101
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3102
See \`config.log' for more details." >&2;}
2603
3103
   { (exit 1); exit 1; }; }
2604
3104
fi
2605
3105
 
2606
3106
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2607
3107
fi
2608
 
echo "$as_me:2608: result: $ac_cv_objext" >&5
 
3108
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2609
3109
echo "${ECHO_T}$ac_cv_objext" >&6
2610
3110
OBJEXT=$ac_cv_objext
2611
3111
ac_objext=$OBJEXT
2612
 
echo "$as_me:2612: checking whether we are using the GNU C compiler" >&5
 
3112
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2613
3113
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2614
3114
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2615
3115
  echo $ECHO_N "(cached) $ECHO_C" >&6
2616
3116
else
2617
3117
  cat >conftest.$ac_ext <<_ACEOF
2618
 
#line 2618 "configure"
2619
 
#include "confdefs.h"
 
3118
/* confdefs.h.  */
 
3119
_ACEOF
 
3120
cat confdefs.h >>conftest.$ac_ext
 
3121
cat >>conftest.$ac_ext <<_ACEOF
 
3122
/* end confdefs.h.  */
2620
3123
 
2621
3124
int
2622
3125
main ()
2630
3133
}
2631
3134
_ACEOF
2632
3135
rm -f conftest.$ac_objext
2633
 
if { (eval echo "$as_me:2633: \"$ac_compile\"") >&5
2634
 
  (eval $ac_compile) 2>&5
 
3136
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3137
  (eval $ac_compile) 2>conftest.er1
2635
3138
  ac_status=$?
2636
 
  echo "$as_me:2636: \$? = $ac_status" >&5
 
3139
  grep -v '^ *+' conftest.er1 >conftest.err
 
3140
  rm -f conftest.er1
 
3141
  cat conftest.err >&5
 
3142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637
3143
  (exit $ac_status); } &&
2638
 
         { ac_try='test -s conftest.$ac_objext'
2639
 
  { (eval echo "$as_me:2639: \"$ac_try\"") >&5
2640
 
  (eval $ac_try) 2>&5
2641
 
  ac_status=$?
2642
 
  echo "$as_me:2642: \$? = $ac_status" >&5
 
3144
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3146
  (eval $ac_try) 2>&5
 
3147
  ac_status=$?
 
3148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3149
  (exit $ac_status); }; } &&
 
3150
         { ac_try='test -s conftest.$ac_objext'
 
3151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3152
  (eval $ac_try) 2>&5
 
3153
  ac_status=$?
 
3154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643
3155
  (exit $ac_status); }; }; then
2644
3156
  ac_compiler_gnu=yes
2645
3157
else
2646
3158
  echo "$as_me: failed program was:" >&5
2647
 
cat conftest.$ac_ext >&5
 
3159
sed 's/^/| /' conftest.$ac_ext >&5
 
3160
 
2648
3161
ac_compiler_gnu=no
2649
3162
fi
2650
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3163
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651
3164
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2652
3165
 
2653
3166
fi
2654
 
echo "$as_me:2654: result: $ac_cv_c_compiler_gnu" >&5
 
3167
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2655
3168
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2656
3169
GCC=`test $ac_compiler_gnu = yes && echo yes`
2657
3170
ac_test_CFLAGS=${CFLAGS+set}
2658
3171
ac_save_CFLAGS=$CFLAGS
2659
3172
CFLAGS="-g"
2660
 
echo "$as_me:2660: checking whether $CC accepts -g" >&5
 
3173
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661
3174
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2662
3175
if test "${ac_cv_prog_cc_g+set}" = set; then
2663
3176
  echo $ECHO_N "(cached) $ECHO_C" >&6
2664
3177
else
2665
3178
  cat >conftest.$ac_ext <<_ACEOF
2666
 
#line 2666 "configure"
2667
 
#include "confdefs.h"
 
3179
/* confdefs.h.  */
 
3180
_ACEOF
 
3181
cat confdefs.h >>conftest.$ac_ext
 
3182
cat >>conftest.$ac_ext <<_ACEOF
 
3183
/* end confdefs.h.  */
2668
3184
 
2669
3185
int
2670
3186
main ()
2675
3191
}
2676
3192
_ACEOF
2677
3193
rm -f conftest.$ac_objext
2678
 
if { (eval echo "$as_me:2678: \"$ac_compile\"") >&5
2679
 
  (eval $ac_compile) 2>&5
 
3194
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3195
  (eval $ac_compile) 2>conftest.er1
2680
3196
  ac_status=$?
2681
 
  echo "$as_me:2681: \$? = $ac_status" >&5
 
3197
  grep -v '^ *+' conftest.er1 >conftest.err
 
3198
  rm -f conftest.er1
 
3199
  cat conftest.err >&5
 
3200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682
3201
  (exit $ac_status); } &&
2683
 
         { ac_try='test -s conftest.$ac_objext'
2684
 
  { (eval echo "$as_me:2684: \"$ac_try\"") >&5
2685
 
  (eval $ac_try) 2>&5
2686
 
  ac_status=$?
2687
 
  echo "$as_me:2687: \$? = $ac_status" >&5
 
3202
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
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); }; } &&
 
3208
         { ac_try='test -s conftest.$ac_objext'
 
3209
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3210
  (eval $ac_try) 2>&5
 
3211
  ac_status=$?
 
3212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688
3213
  (exit $ac_status); }; }; then
2689
3214
  ac_cv_prog_cc_g=yes
2690
3215
else
2691
3216
  echo "$as_me: failed program was:" >&5
2692
 
cat conftest.$ac_ext >&5
 
3217
sed 's/^/| /' conftest.$ac_ext >&5
 
3218
 
2693
3219
ac_cv_prog_cc_g=no
2694
3220
fi
2695
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3221
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696
3222
fi
2697
 
echo "$as_me:2697: result: $ac_cv_prog_cc_g" >&5
 
3223
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2698
3224
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2699
3225
if test "$ac_test_CFLAGS" = set; then
2700
3226
  CFLAGS=$ac_save_CFLAGS
2711
3237
    CFLAGS=
2712
3238
  fi
2713
3239
fi
 
3240
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3241
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3242
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3243
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3244
else
 
3245
  ac_cv_prog_cc_stdc=no
 
3246
ac_save_CC=$CC
 
3247
cat >conftest.$ac_ext <<_ACEOF
 
3248
/* confdefs.h.  */
 
3249
_ACEOF
 
3250
cat confdefs.h >>conftest.$ac_ext
 
3251
cat >>conftest.$ac_ext <<_ACEOF
 
3252
/* end confdefs.h.  */
 
3253
#include <stdarg.h>
 
3254
#include <stdio.h>
 
3255
#include <sys/types.h>
 
3256
#include <sys/stat.h>
 
3257
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3258
struct buf { int x; };
 
3259
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3260
static char *e (p, i)
 
3261
     char **p;
 
3262
     int i;
 
3263
{
 
3264
  return p[i];
 
3265
}
 
3266
static char *f (char * (*g) (char **, int), char **p, ...)
 
3267
{
 
3268
  char *s;
 
3269
  va_list v;
 
3270
  va_start (v,p);
 
3271
  s = g (p, va_arg (v,int));
 
3272
  va_end (v);
 
3273
  return s;
 
3274
}
 
3275
 
 
3276
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3277
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3278
   These don't provoke an error unfortunately, instead are silently treated
 
3279
   as 'x'.  The following induces an error, until -std1 is added to get
 
3280
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3281
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3282
   that's true only with -std1.  */
 
3283
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3284
 
 
3285
int test (int i, double x);
 
3286
struct s1 {int (*f) (int a);};
 
3287
struct s2 {int (*f) (double a);};
 
3288
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3289
int argc;
 
3290
char **argv;
 
3291
int
 
3292
main ()
 
3293
{
 
3294
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3295
  ;
 
3296
  return 0;
 
3297
}
 
3298
_ACEOF
 
3299
# Don't try gcc -ansi; that turns off useful extensions and
 
3300
# breaks some systems' header files.
 
3301
# AIX                   -qlanglvl=ansi
 
3302
# Ultrix and OSF/1      -std1
 
3303
# HP-UX 10.20 and later -Ae
 
3304
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3305
# SVR4                  -Xc -D__EXTENSIONS__
 
3306
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3307
do
 
3308
  CC="$ac_save_CC $ac_arg"
 
3309
  rm -f conftest.$ac_objext
 
3310
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3311
  (eval $ac_compile) 2>conftest.er1
 
3312
  ac_status=$?
 
3313
  grep -v '^ *+' conftest.er1 >conftest.err
 
3314
  rm -f conftest.er1
 
3315
  cat conftest.err >&5
 
3316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3317
  (exit $ac_status); } &&
 
3318
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3320
  (eval $ac_try) 2>&5
 
3321
  ac_status=$?
 
3322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3323
  (exit $ac_status); }; } &&
 
3324
         { ac_try='test -s conftest.$ac_objext'
 
3325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3326
  (eval $ac_try) 2>&5
 
3327
  ac_status=$?
 
3328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3329
  (exit $ac_status); }; }; then
 
3330
  ac_cv_prog_cc_stdc=$ac_arg
 
3331
break
 
3332
else
 
3333
  echo "$as_me: failed program was:" >&5
 
3334
sed 's/^/| /' conftest.$ac_ext >&5
 
3335
 
 
3336
fi
 
3337
rm -f conftest.err conftest.$ac_objext
 
3338
done
 
3339
rm -f conftest.$ac_ext conftest.$ac_objext
 
3340
CC=$ac_save_CC
 
3341
 
 
3342
fi
 
3343
 
 
3344
case "x$ac_cv_prog_cc_stdc" in
 
3345
  x|xno)
 
3346
    echo "$as_me:$LINENO: result: none needed" >&5
 
3347
echo "${ECHO_T}none needed" >&6 ;;
 
3348
  *)
 
3349
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3350
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3351
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3352
esac
 
3353
 
2714
3354
# Some people use a C++ compiler to compile C.  Since we use `exit',
2715
3355
# in C++ we need to declare it.  In case someone uses the same compiler
2716
3356
# for both compiling C and C++ we need to have the C++ compiler decide
2721
3361
#endif
2722
3362
_ACEOF
2723
3363
rm -f conftest.$ac_objext
2724
 
if { (eval echo "$as_me:2724: \"$ac_compile\"") >&5
2725
 
  (eval $ac_compile) 2>&5
 
3364
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3365
  (eval $ac_compile) 2>conftest.er1
2726
3366
  ac_status=$?
2727
 
  echo "$as_me:2727: \$? = $ac_status" >&5
 
3367
  grep -v '^ *+' conftest.er1 >conftest.err
 
3368
  rm -f conftest.er1
 
3369
  cat conftest.err >&5
 
3370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728
3371
  (exit $ac_status); } &&
2729
 
         { ac_try='test -s conftest.$ac_objext'
2730
 
  { (eval echo "$as_me:2730: \"$ac_try\"") >&5
2731
 
  (eval $ac_try) 2>&5
2732
 
  ac_status=$?
2733
 
  echo "$as_me:2733: \$? = $ac_status" >&5
 
3372
         { ac_try='test -z "$ac_c_werror_flag"                   || 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
2734
3383
  (exit $ac_status); }; }; then
2735
3384
  for ac_declaration in \
2736
 
   ''\
2737
 
   '#include <stdlib.h>' \
 
3385
   '' \
2738
3386
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2739
3387
   'extern "C" void std::exit (int); using std::exit;' \
2740
3388
   'extern "C" void exit (int) throw ();' \
2742
3390
   'void exit (int);'
2743
3391
do
2744
3392
  cat >conftest.$ac_ext <<_ACEOF
2745
 
#line 2745 "configure"
2746
 
#include "confdefs.h"
 
3393
/* confdefs.h.  */
 
3394
_ACEOF
 
3395
cat confdefs.h >>conftest.$ac_ext
 
3396
cat >>conftest.$ac_ext <<_ACEOF
 
3397
/* end confdefs.h.  */
 
3398
$ac_declaration
2747
3399
#include <stdlib.h>
2748
 
$ac_declaration
2749
3400
int
2750
3401
main ()
2751
3402
{
2755
3406
}
2756
3407
_ACEOF
2757
3408
rm -f conftest.$ac_objext
2758
 
if { (eval echo "$as_me:2758: \"$ac_compile\"") >&5
2759
 
  (eval $ac_compile) 2>&5
 
3409
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3410
  (eval $ac_compile) 2>conftest.er1
2760
3411
  ac_status=$?
2761
 
  echo "$as_me:2761: \$? = $ac_status" >&5
 
3412
  grep -v '^ *+' conftest.er1 >conftest.err
 
3413
  rm -f conftest.er1
 
3414
  cat conftest.err >&5
 
3415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762
3416
  (exit $ac_status); } &&
2763
 
         { ac_try='test -s conftest.$ac_objext'
2764
 
  { (eval echo "$as_me:2764: \"$ac_try\"") >&5
2765
 
  (eval $ac_try) 2>&5
2766
 
  ac_status=$?
2767
 
  echo "$as_me:2767: \$? = $ac_status" >&5
 
3417
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3419
  (eval $ac_try) 2>&5
 
3420
  ac_status=$?
 
3421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3422
  (exit $ac_status); }; } &&
 
3423
         { ac_try='test -s conftest.$ac_objext'
 
3424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3425
  (eval $ac_try) 2>&5
 
3426
  ac_status=$?
 
3427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768
3428
  (exit $ac_status); }; }; then
2769
3429
  :
2770
3430
else
2771
3431
  echo "$as_me: failed program was:" >&5
2772
 
cat conftest.$ac_ext >&5
 
3432
sed 's/^/| /' conftest.$ac_ext >&5
 
3433
 
2773
3434
continue
2774
3435
fi
2775
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3436
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2776
3437
  cat >conftest.$ac_ext <<_ACEOF
2777
 
#line 2777 "configure"
2778
 
#include "confdefs.h"
 
3438
/* confdefs.h.  */
 
3439
_ACEOF
 
3440
cat confdefs.h >>conftest.$ac_ext
 
3441
cat >>conftest.$ac_ext <<_ACEOF
 
3442
/* end confdefs.h.  */
2779
3443
$ac_declaration
2780
3444
int
2781
3445
main ()
2786
3450
}
2787
3451
_ACEOF
2788
3452
rm -f conftest.$ac_objext
2789
 
if { (eval echo "$as_me:2789: \"$ac_compile\"") >&5
2790
 
  (eval $ac_compile) 2>&5
 
3453
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3454
  (eval $ac_compile) 2>conftest.er1
2791
3455
  ac_status=$?
2792
 
  echo "$as_me:2792: \$? = $ac_status" >&5
 
3456
  grep -v '^ *+' conftest.er1 >conftest.err
 
3457
  rm -f conftest.er1
 
3458
  cat conftest.err >&5
 
3459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793
3460
  (exit $ac_status); } &&
2794
 
         { ac_try='test -s conftest.$ac_objext'
2795
 
  { (eval echo "$as_me:2795: \"$ac_try\"") >&5
2796
 
  (eval $ac_try) 2>&5
2797
 
  ac_status=$?
2798
 
  echo "$as_me:2798: \$? = $ac_status" >&5
 
3461
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3463
  (eval $ac_try) 2>&5
 
3464
  ac_status=$?
 
3465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3466
  (exit $ac_status); }; } &&
 
3467
         { ac_try='test -s conftest.$ac_objext'
 
3468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3469
  (eval $ac_try) 2>&5
 
3470
  ac_status=$?
 
3471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799
3472
  (exit $ac_status); }; }; then
2800
3473
  break
2801
3474
else
2802
3475
  echo "$as_me: failed program was:" >&5
2803
 
cat conftest.$ac_ext >&5
 
3476
sed 's/^/| /' conftest.$ac_ext >&5
 
3477
 
2804
3478
fi
2805
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3479
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806
3480
done
2807
3481
rm -f conftest*
2808
3482
if test -n "$ac_declaration"; then
2813
3487
 
2814
3488
else
2815
3489
  echo "$as_me: failed program was:" >&5
2816
 
cat conftest.$ac_ext >&5
 
3490
sed 's/^/| /' conftest.$ac_ext >&5
 
3491
 
2817
3492
fi
2818
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3493
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819
3494
ac_ext=c
2820
3495
ac_cpp='$CPP $CPPFLAGS'
2821
3496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822
3497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823
3498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824
 
 
2825
 
ac_config_commands="$ac_config_commands default-1"
 
3499
rm -f .deps 2>/dev/null
 
3500
mkdir .deps 2>/dev/null
 
3501
if test -d .deps; then
 
3502
  DEPDIR=.deps
 
3503
else
 
3504
  # MS-DOS does not allow filenames that begin with a dot.
 
3505
  DEPDIR=_deps
 
3506
fi
 
3507
rmdir .deps 2>/dev/null
 
3508
 
 
3509
 
 
3510
          ac_config_commands="$ac_config_commands depfiles"
 
3511
 
2826
3512
 
2827
3513
am_make=${MAKE-make}
2828
3514
cat > confinc << 'END'
2830
3516
        @echo done
2831
3517
END
2832
3518
# If we don't find an include directive, just comment out the code.
2833
 
echo "$as_me:2833: checking for style of include used by $am_make" >&5
 
3519
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2834
3520
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2835
 
am__include='#'
 
3521
am__include="#"
2836
3522
am__quote=
2837
3523
_am_result=none
2838
3524
# First try GNU make style include.
2852
3538
   echo '.include "confinc"' > confmf
2853
3539
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2854
3540
      am__include=.include
2855
 
      am__quote='"'
 
3541
      am__quote="\""
2856
3542
      _am_result=BSD
2857
3543
   fi
2858
3544
fi
2859
3545
 
2860
 
echo "$as_me:2860: result: $_am_result" >&5
 
3546
 
 
3547
echo "$as_me:$LINENO: result: $_am_result" >&5
2861
3548
echo "${ECHO_T}$_am_result" >&6
2862
3549
rm -f confinc confmf
2863
3550
 
 
3551
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3552
if test "${enable_dependency_tracking+set}" = set; then
 
3553
  enableval="$enable_dependency_tracking"
 
3554
 
 
3555
fi;
 
3556
if test "x$enable_dependency_tracking" != xno; then
 
3557
  am_depcomp="$ac_aux_dir/depcomp"
 
3558
  AMDEPBACKSLASH='\'
 
3559
fi
 
3560
 
 
3561
 
 
3562
if test "x$enable_dependency_tracking" != xno; then
 
3563
  AMDEP_TRUE=
 
3564
  AMDEP_FALSE='#'
 
3565
else
 
3566
  AMDEP_TRUE='#'
 
3567
  AMDEP_FALSE=
 
3568
fi
 
3569
 
 
3570
 
 
3571
 
 
3572
 
2864
3573
depcc="$CC"   am_compiler_list=
2865
3574
 
2866
 
echo "$as_me:2866: checking dependency style of $depcc" >&5
 
3575
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2867
3576
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2868
3577
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2869
3578
  echo $ECHO_N "(cached) $ECHO_C" >&6
2925
3634
fi
2926
3635
 
2927
3636
fi
2928
 
echo "$as_me:2928: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3637
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2929
3638
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2930
 
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
 
3639
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3640
 
2931
3641
 
2932
3642
# Find a good install program.  We prefer a C program (faster),
2933
3643
# so one script is as good as another.  But avoid the broken or
2940
3650
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2941
3651
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2942
3652
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3653
# OS/2's system install, which has a completely different semantic
2943
3654
# ./install, which can be erroneously created by make from ./install.sh.
2944
 
echo "$as_me:2944: checking for a BSD compatible install" >&5
2945
 
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
3655
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3656
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2946
3657
if test -z "$INSTALL"; then
2947
3658
if test "${ac_cv_path_install+set}" = set; then
2948
3659
  echo $ECHO_N "(cached) $ECHO_C" >&6
2949
3660
else
2950
 
    ac_save_IFS=$IFS; IFS=$ac_path_separator
2951
 
  for ac_dir in $PATH; do
2952
 
    IFS=$ac_save_IFS
2953
 
    # Account for people who put trailing slashes in PATH elements.
2954
 
    case $ac_dir/ in
2955
 
    / | ./ | .// | /cC/* \
2956
 
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2957
 
    | /usr/ucb/* ) ;;
2958
 
    *)
2959
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
2960
 
      # Don't use installbsd from OSF since it installs stuff as root
2961
 
      # by default.
2962
 
      for ac_prog in ginstall scoinst install; do
2963
 
        if $as_executable_p "$ac_dir/$ac_prog"; then
 
3661
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3662
for as_dir in $PATH
 
3663
do
 
3664
  IFS=$as_save_IFS
 
3665
  test -z "$as_dir" && as_dir=.
 
3666
  # Account for people who put trailing slashes in PATH elements.
 
3667
case $as_dir/ in
 
3668
  ./ | .// | /cC/* | \
 
3669
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3670
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3671
  /usr/ucb/* ) ;;
 
3672
  *)
 
3673
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3674
    # Don't use installbsd from OSF since it installs stuff as root
 
3675
    # by default.
 
3676
    for ac_prog in ginstall scoinst install; do
 
3677
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3678
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2964
3679
          if test $ac_prog = install &&
2965
 
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
3680
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2966
3681
            # AIX install.  It has an incompatible calling convention.
2967
3682
            :
2968
3683
          elif test $ac_prog = install &&
2969
 
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
3684
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970
3685
            # program-specific install script used by HP pwplus--don't use.
2971
3686
            :
2972
3687
          else
2973
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
2974
 
            break 2
 
3688
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3689
            break 3
2975
3690
          fi
2976
3691
        fi
2977
3692
      done
2978
 
      ;;
2979
 
    esac
2980
 
  done
 
3693
    done
 
3694
    ;;
 
3695
esac
 
3696
done
 
3697
 
2981
3698
 
2982
3699
fi
2983
3700
  if test "${ac_cv_path_install+set}" = set; then
2990
3707
    INSTALL=$ac_install_sh
2991
3708
  fi
2992
3709
fi
2993
 
echo "$as_me:2993: result: $INSTALL" >&5
 
3710
echo "$as_me:$LINENO: result: $INSTALL" >&5
2994
3711
echo "${ECHO_T}$INSTALL" >&6
2995
3712
 
2996
3713
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3001
3718
 
3002
3719
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003
3720
 
 
3721
 
 
3722
 
3004
3723
# Check whether --enable-shared or --disable-shared was given.
3005
3724
if test "${enable_shared+set}" = set; then
3006
3725
  enableval="$enable_shared"
3007
3726
  p=${PACKAGE-default}
3008
 
case $enableval in
3009
 
yes) enable_shared=yes ;;
3010
 
no) enable_shared=no ;;
3011
 
*)
3012
 
  enable_shared=no
3013
 
  # Look at the argument we got.  We use all the common list separators.
3014
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3015
 
  for pkg in $enableval; do
3016
 
    if test "X$pkg" = "X$p"; then
3017
 
      enable_shared=yes
3018
 
    fi
3019
 
  done
3020
 
  IFS="$ac_save_ifs"
3021
 
  ;;
3022
 
esac
 
3727
    case $enableval in
 
3728
    yes) enable_shared=yes ;;
 
3729
    no) enable_shared=no ;;
 
3730
    *)
 
3731
      enable_shared=no
 
3732
      # Look at the argument we got.  We use all the common list separators.
 
3733
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3734
      for pkg in $enableval; do
 
3735
        IFS="$lt_save_ifs"
 
3736
        if test "X$pkg" = "X$p"; then
 
3737
          enable_shared=yes
 
3738
        fi
 
3739
      done
 
3740
      IFS="$lt_save_ifs"
 
3741
      ;;
 
3742
    esac
3023
3743
else
3024
3744
  enable_shared=yes
3025
3745
fi;
 
3746
 
3026
3747
# Check whether --enable-static or --disable-static was given.
3027
3748
if test "${enable_static+set}" = set; then
3028
3749
  enableval="$enable_static"
3029
3750
  p=${PACKAGE-default}
3030
 
case $enableval in
3031
 
yes) enable_static=yes ;;
3032
 
no) enable_static=no ;;
3033
 
*)
3034
 
  enable_static=no
3035
 
  # Look at the argument we got.  We use all the common list separators.
3036
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3037
 
  for pkg in $enableval; do
3038
 
    if test "X$pkg" = "X$p"; then
3039
 
      enable_static=yes
3040
 
    fi
3041
 
  done
3042
 
  IFS="$ac_save_ifs"
3043
 
  ;;
3044
 
esac
 
3751
    case $enableval in
 
3752
    yes) enable_static=yes ;;
 
3753
    no) enable_static=no ;;
 
3754
    *)
 
3755
     enable_static=no
 
3756
      # Look at the argument we got.  We use all the common list separators.
 
3757
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3758
      for pkg in $enableval; do
 
3759
        IFS="$lt_save_ifs"
 
3760
        if test "X$pkg" = "X$p"; then
 
3761
          enable_static=yes
 
3762
        fi
 
3763
      done
 
3764
      IFS="$lt_save_ifs"
 
3765
      ;;
 
3766
    esac
3045
3767
else
3046
3768
  enable_static=yes
3047
3769
fi;
 
3770
 
3048
3771
# Check whether --enable-fast-install or --disable-fast-install was given.
3049
3772
if test "${enable_fast_install+set}" = set; then
3050
3773
  enableval="$enable_fast_install"
3051
3774
  p=${PACKAGE-default}
3052
 
case $enableval in
3053
 
yes) enable_fast_install=yes ;;
3054
 
no) enable_fast_install=no ;;
3055
 
*)
3056
 
  enable_fast_install=no
3057
 
  # Look at the argument we got.  We use all the common list separators.
3058
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3059
 
  for pkg in $enableval; do
3060
 
    if test "X$pkg" = "X$p"; then
3061
 
      enable_fast_install=yes
3062
 
    fi
3063
 
  done
3064
 
  IFS="$ac_save_ifs"
3065
 
  ;;
3066
 
esac
 
3775
    case $enableval in
 
3776
    yes) enable_fast_install=yes ;;
 
3777
    no) enable_fast_install=no ;;
 
3778
    *)
 
3779
      enable_fast_install=no
 
3780
      # Look at the argument we got.  We use all the common list separators.
 
3781
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3782
      for pkg in $enableval; do
 
3783
        IFS="$lt_save_ifs"
 
3784
        if test "X$pkg" = "X$p"; then
 
3785
          enable_fast_install=yes
 
3786
        fi
 
3787
      done
 
3788
      IFS="$lt_save_ifs"
 
3789
      ;;
 
3790
    esac
3067
3791
else
3068
3792
  enable_fast_install=yes
3069
3793
fi;
3070
 
# Find the correct PATH separator.  Usually this is `:', but
3071
 
# DJGPP uses `;' like DOS.
3072
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
3073
 
  UNAME=${UNAME-`uname 2>/dev/null`}
3074
 
  case X$UNAME in
3075
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
3076
 
    *)     lt_cv_sys_path_separator=':' ;;
3077
 
  esac
3078
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
3079
 
fi
 
3794
 
 
3795
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3796
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3797
if test "${lt_cv_path_SED+set}" = set; then
 
3798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3799
else
 
3800
  # Loop through the user's path and test for sed and gsed.
 
3801
# Then use that list of sed's as ones to test for truncation.
 
3802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3803
for as_dir in $PATH
 
3804
do
 
3805
  IFS=$as_save_IFS
 
3806
  test -z "$as_dir" && as_dir=.
 
3807
  for lt_ac_prog in sed gsed; do
 
3808
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3809
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3810
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3811
      fi
 
3812
    done
 
3813
  done
 
3814
done
 
3815
lt_ac_max=0
 
3816
lt_ac_count=0
 
3817
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3818
# along with /bin/sed that truncates output.
 
3819
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3820
  test ! -f $lt_ac_sed && break
 
3821
  cat /dev/null > conftest.in
 
3822
  lt_ac_count=0
 
3823
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3824
  # Check for GNU sed and select it if it is found.
 
3825
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3826
    lt_cv_path_SED=$lt_ac_sed
 
3827
    break
 
3828
  fi
 
3829
  while true; do
 
3830
    cat conftest.in conftest.in >conftest.tmp
 
3831
    mv conftest.tmp conftest.in
 
3832
    cp conftest.in conftest.nl
 
3833
    echo >>conftest.nl
 
3834
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3835
    cmp -s conftest.out conftest.nl || break
 
3836
    # 10000 chars as input seems more than enough
 
3837
    test $lt_ac_count -gt 10 && break
 
3838
    lt_ac_count=`expr $lt_ac_count + 1`
 
3839
    if test $lt_ac_count -gt $lt_ac_max; then
 
3840
      lt_ac_max=$lt_ac_count
 
3841
      lt_cv_path_SED=$lt_ac_sed
 
3842
    fi
 
3843
  done
 
3844
done
 
3845
SED=$lt_cv_path_SED
 
3846
 
 
3847
fi
 
3848
 
 
3849
echo "$as_me:$LINENO: result: $SED" >&5
 
3850
echo "${ECHO_T}$SED" >&6
 
3851
 
 
3852
echo "$as_me:$LINENO: checking for egrep" >&5
 
3853
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3854
if test "${ac_cv_prog_egrep+set}" = set; then
 
3855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3856
else
 
3857
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3858
    then ac_cv_prog_egrep='grep -E'
 
3859
    else ac_cv_prog_egrep='egrep'
 
3860
    fi
 
3861
fi
 
3862
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3863
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3864
 EGREP=$ac_cv_prog_egrep
 
3865
 
 
3866
 
3080
3867
 
3081
3868
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3082
3869
if test "${with_gnu_ld+set}" = set; then
3088
3875
ac_prog=ld
3089
3876
if test "$GCC" = yes; then
3090
3877
  # Check if gcc -print-prog-name=ld gives a path.
3091
 
  echo "$as_me:3091: checking for ld used by GCC" >&5
3092
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
3878
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3879
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3093
3880
  case $host in
3094
3881
  *-*-mingw*)
3095
3882
    # gcc leaves a trailing carriage return which upsets mingw
3099
3886
  esac
3100
3887
  case $ac_prog in
3101
3888
    # Accept absolute paths.
3102
 
    [\\/]* | [A-Za-z]:[\\/]*)
 
3889
    [\\/]* | ?:[\\/]*)
3103
3890
      re_direlt='/[^/][^/]*/\.\./'
3104
 
      # Canonicalize the path of ld
3105
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3891
      # Canonicalize the pathname of ld
 
3892
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3106
3893
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3107
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3894
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3108
3895
      done
3109
3896
      test -z "$LD" && LD="$ac_prog"
3110
3897
      ;;
3118
3905
    ;;
3119
3906
  esac
3120
3907
elif test "$with_gnu_ld" = yes; then
3121
 
  echo "$as_me:3121: checking for GNU ld" >&5
 
3908
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3122
3909
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3123
3910
else
3124
 
  echo "$as_me:3124: checking for non-GNU ld" >&5
 
3911
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3125
3912
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3126
3913
fi
3127
3914
if test "${lt_cv_path_LD+set}" = set; then
3128
3915
  echo $ECHO_N "(cached) $ECHO_C" >&6
3129
3916
else
3130
3917
  if test -z "$LD"; then
3131
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3918
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3132
3919
  for ac_dir in $PATH; do
 
3920
    IFS="$lt_save_ifs"
3133
3921
    test -z "$ac_dir" && ac_dir=.
3134
3922
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3135
3923
      lt_cv_path_LD="$ac_dir/$ac_prog"
3136
3924
      # Check to see if the program is GNU ld.  I'd rather use --version,
3137
3925
      # but apparently some GNU ld's only accept -v.
3138
3926
      # Break only if it was the GNU/non-GNU ld that we prefer.
3139
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3927
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3928
      *GNU* | *'with BFD'*)
3140
3929
        test "$with_gnu_ld" != no && break
3141
 
      else
 
3930
        ;;
 
3931
      *)
3142
3932
        test "$with_gnu_ld" != yes && break
3143
 
      fi
 
3933
        ;;
 
3934
      esac
3144
3935
    fi
3145
3936
  done
3146
 
  IFS="$ac_save_ifs"
 
3937
  IFS="$lt_save_ifs"
3147
3938
else
3148
3939
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3149
3940
fi
3151
3942
 
3152
3943
LD="$lt_cv_path_LD"
3153
3944
if test -n "$LD"; then
3154
 
  echo "$as_me:3154: result: $LD" >&5
 
3945
  echo "$as_me:$LINENO: result: $LD" >&5
3155
3946
echo "${ECHO_T}$LD" >&6
3156
3947
else
3157
 
  echo "$as_me:3157: result: no" >&5
 
3948
  echo "$as_me:$LINENO: result: no" >&5
3158
3949
echo "${ECHO_T}no" >&6
3159
3950
fi
3160
 
test -z "$LD" && { { echo "$as_me:3160: error: no acceptable ld found in \$PATH" >&5
 
3951
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3161
3952
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3162
3953
   { (exit 1); exit 1; }; }
3163
 
echo "$as_me:3163: checking if the linker ($LD) is GNU ld" >&5
 
3954
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3164
3955
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3165
3956
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3166
3957
  echo $ECHO_N "(cached) $ECHO_C" >&6
3167
3958
else
3168
3959
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3169
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3960
case `$LD -v 2>&1 </dev/null` in
 
3961
*GNU* | *'with BFD'*)
3170
3962
  lt_cv_prog_gnu_ld=yes
3171
 
else
 
3963
  ;;
 
3964
*)
3172
3965
  lt_cv_prog_gnu_ld=no
3173
 
fi
3174
 
fi
3175
 
echo "$as_me:3175: result: $lt_cv_prog_gnu_ld" >&5
 
3966
  ;;
 
3967
esac
 
3968
fi
 
3969
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3176
3970
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3177
3971
with_gnu_ld=$lt_cv_prog_gnu_ld
3178
3972
 
3179
 
echo "$as_me:3179: checking for $LD option to reload object files" >&5
 
3973
 
 
3974
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3180
3975
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3181
3976
if test "${lt_cv_ld_reload_flag+set}" = set; then
3182
3977
  echo $ECHO_N "(cached) $ECHO_C" >&6
3183
3978
else
3184
3979
  lt_cv_ld_reload_flag='-r'
3185
3980
fi
3186
 
echo "$as_me:3186: result: $lt_cv_ld_reload_flag" >&5
 
3981
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3187
3982
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3188
3983
reload_flag=$lt_cv_ld_reload_flag
3189
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
3984
case $reload_flag in
 
3985
"" | " "*) ;;
 
3986
*) reload_flag=" $reload_flag" ;;
 
3987
esac
 
3988
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3190
3989
 
3191
 
echo "$as_me:3191: checking for BSD-compatible nm" >&5
 
3990
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3192
3991
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3193
3992
if test "${lt_cv_path_NM+set}" = set; then
3194
3993
  echo $ECHO_N "(cached) $ECHO_C" >&6
3197
3996
  # Let the user override the test.
3198
3997
  lt_cv_path_NM="$NM"
3199
3998
else
3200
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3999
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3201
4000
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4001
    IFS="$lt_save_ifs"
3202
4002
    test -z "$ac_dir" && ac_dir=.
3203
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3204
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
4003
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
4004
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3205
4005
      # Check to see if the nm accepts a BSD-compat flag.
3206
4006
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3207
4007
      #   nm: unknown option "B" ignored
3208
4008
      # Tru64's nm complains that /dev/null is an invalid object file
3209
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
4009
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4010
      */dev/null* | *'Invalid file or object type'*)
3210
4011
        lt_cv_path_NM="$tmp_nm -B"
3211
4012
        break
3212
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3213
 
        lt_cv_path_NM="$tmp_nm -p"
3214
 
        break
3215
 
      else
3216
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3217
 
        continue # so that we can try to find one that supports BSD flags
3218
 
      fi
 
4013
        ;;
 
4014
      *)
 
4015
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4016
        */dev/null*)
 
4017
          lt_cv_path_NM="$tmp_nm -p"
 
4018
          break
 
4019
          ;;
 
4020
        *)
 
4021
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4022
          continue # so that we can try to find one that supports BSD flags
 
4023
          ;;
 
4024
        esac
 
4025
      esac
3219
4026
    fi
3220
4027
  done
3221
 
  IFS="$ac_save_ifs"
 
4028
  IFS="$lt_save_ifs"
3222
4029
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3223
4030
fi
3224
4031
fi
3225
 
 
 
4032
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4033
echo "${ECHO_T}$lt_cv_path_NM" >&6
3226
4034
NM="$lt_cv_path_NM"
3227
 
echo "$as_me:3227: result: $NM" >&5
3228
 
echo "${ECHO_T}$NM" >&6
3229
 
 
3230
 
echo "$as_me:3230: checking for a sed that does not truncate output" >&5
3231
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3232
 
if test "${lt_cv_path_SED+set}" = set; then
3233
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3234
 
else
3235
 
  # Loop through the user's path and test for sed and gsed.
3236
 
# Then use that list of sed's as ones to test for truncation.
3237
 
as_executable_p="test -f"
3238
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239
 
for as_dir in $PATH
3240
 
do
3241
 
  IFS=$as_save_IFS
3242
 
  test -z "$as_dir" && as_dir=.
3243
 
  for ac_prog in sed gsed; do
3244
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3245
 
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3246
 
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3247
 
      fi
3248
 
    done
3249
 
  done
3250
 
done
3251
 
 
3252
 
  # Create a temporary directory, and hook for its removal unless debugging.
3253
 
$debug ||
3254
 
{
3255
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3256
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3257
 
}
3258
 
 
3259
 
# Create a (secure) tmp directory for tmp files.
3260
 
: ${TMPDIR=/tmp}
3261
 
{
3262
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3263
 
  test -n "$tmp" && test -d "$tmp"
3264
 
}  ||
3265
 
{
3266
 
  tmp=$TMPDIR/sed$$-$RANDOM
3267
 
  (umask 077 && mkdir $tmp)
3268
 
} ||
3269
 
{
3270
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3271
 
   { (exit 1); exit 1; }
3272
 
}
3273
 
  _max=0
3274
 
  _count=0
3275
 
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3276
 
  # along with /bin/sed that truncates output.
3277
 
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
3278
 
    test ! -f ${_sed} && break
3279
 
    cat /dev/null > "$tmp/sed.in"
3280
 
    _count=0
3281
 
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3282
 
    # Check for GNU sed and select it if it is found.
3283
 
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3284
 
      lt_cv_path_SED=${_sed}
3285
 
      break
3286
 
    fi
3287
 
    while true; do
3288
 
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3289
 
      mv "$tmp/sed.tmp" "$tmp/sed.in"
3290
 
      cp "$tmp/sed.in" "$tmp/sed.nl"
3291
 
      echo >>"$tmp/sed.nl"
3292
 
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3293
 
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3294
 
      # 40000 chars as input seems more than enough
3295
 
      test $_count -gt 10 && break
3296
 
      _count=`expr $_count + 1`
3297
 
      if test $_count -gt $_max; then
3298
 
        _max=$_count
3299
 
        lt_cv_path_SED=$_sed
3300
 
      fi
3301
 
    done
3302
 
  done
3303
 
  rm -rf "$tmp"
3304
 
 
3305
 
fi
3306
 
 
3307
 
if test "X$SED" != "X"; then
3308
 
  lt_cv_path_SED=$SED
3309
 
else
3310
 
  SED=$lt_cv_path_SED
3311
 
fi
3312
 
echo "$as_me:3312: result: $SED" >&5
3313
 
echo "${ECHO_T}$SED" >&6
3314
 
 
3315
 
echo "$as_me:3315: checking whether ln -s works" >&5
 
4035
 
 
4036
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3316
4037
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3317
4038
LN_S=$as_ln_s
3318
4039
if test "$LN_S" = "ln -s"; then
3319
 
  echo "$as_me:3319: result: yes" >&5
 
4040
  echo "$as_me:$LINENO: result: yes" >&5
3320
4041
echo "${ECHO_T}yes" >&6
3321
4042
else
3322
 
  echo "$as_me:3322: result: no, using $LN_S" >&5
 
4043
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3323
4044
echo "${ECHO_T}no, using $LN_S" >&6
3324
4045
fi
3325
4046
 
3326
 
echo "$as_me:3326: checking how to recognise dependent libraries" >&5
 
4047
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3327
4048
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3328
4049
if test "${lt_cv_deplibs_check_method+set}" = set; then
3329
4050
  echo $ECHO_N "(cached) $ECHO_C" >&6
3338
4059
# 'pass_all' -- all dependencies passed with no checks.
3339
4060
# 'test_compile' -- check by making test program.
3340
4061
# 'file_magic [[regex]]' -- check by looking for files in library path
3341
 
# which responds to the $file_magic_cmd with a given egrep regex.
 
4062
# which responds to the $file_magic_cmd with a given extended regex.
3342
4063
# If you have `file' or equivalent on your system and you're not sure
3343
4064
# whether `pass_all' will *always* work, you probably want this one.
3344
4065
 
3357
4078
  lt_cv_file_magic_test_file=/shlib/libc.so
3358
4079
  ;;
3359
4080
 
3360
 
cygwin* | mingw* | pw32*)
 
4081
cygwin*)
 
4082
  # func_win32_libid is a shell function defined in ltmain.sh
 
4083
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4084
  lt_cv_file_magic_cmd='func_win32_libid'
 
4085
  ;;
 
4086
 
 
4087
mingw* | pw32*)
 
4088
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4089
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3361
4090
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3362
4091
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3363
4092
  ;;
3364
4093
 
3365
4094
darwin* | rhapsody*)
3366
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3367
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3368
 
  case "$host_os" in
3369
 
  rhapsody* | darwin1.[012])
3370
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3371
 
    ;;
3372
 
  *) # Darwin 1.3 on
3373
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3374
 
    ;;
3375
 
  esac
 
4095
  lt_cv_deplibs_check_method=pass_all
3376
4096
  ;;
3377
4097
 
3378
 
freebsd*)
 
4098
freebsd* | kfreebsd*-gnu)
3379
4099
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3380
4100
    case $host_cpu in
3381
4101
    i*86 )
3395
4115
  lt_cv_deplibs_check_method=pass_all
3396
4116
  ;;
3397
4117
 
3398
 
hpux10.20*|hpux11*)
3399
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4118
hpux10.20* | hpux11*)
3400
4119
  lt_cv_file_magic_cmd=/usr/bin/file
3401
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4120
  case "$host_cpu" in
 
4121
  ia64*)
 
4122
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4123
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4124
    ;;
 
4125
  hppa*64*)
 
4126
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
4127
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4128
    ;;
 
4129
  *)
 
4130
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4131
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4132
    ;;
 
4133
  esac
3402
4134
  ;;
3403
4135
 
3404
4136
irix5* | irix6* | nonstopux*)
3405
 
  case $host_os in
3406
 
  irix5* | nonstopux*)
3407
 
    # this will be overridden with pass_all, but let us keep it just in case
3408
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3409
 
    ;;
3410
 
  *)
3411
 
    case $LD in
3412
 
    *-32|*"-32 ") libmagic=32-bit;;
3413
 
    *-n32|*"-n32 ") libmagic=N32;;
3414
 
    *-64|*"-64 ") libmagic=64-bit;;
3415
 
    *) libmagic=never-match;;
3416
 
    esac
3417
 
    # this will be overridden with pass_all, but let us keep it just in case
3418
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3419
 
    ;;
 
4137
  case $LD in
 
4138
  *-32|*"-32 ") libmagic=32-bit;;
 
4139
  *-n32|*"-n32 ") libmagic=N32;;
 
4140
  *-64|*"-64 ") libmagic=64-bit;;
 
4141
  *) libmagic=never-match;;
3420
4142
  esac
3421
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3422
4143
  lt_cv_deplibs_check_method=pass_all
3423
4144
  ;;
3424
4145
 
3425
4146
# This must be Linux ELF.
3426
 
linux-gnu*)
3427
 
  case $host_cpu in
3428
 
  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*)
3429
 
    lt_cv_deplibs_check_method=pass_all ;;
3430
 
  *)
3431
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3432
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3433
 
  esac
3434
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
4147
linux*)
 
4148
  lt_cv_deplibs_check_method=pass_all
3435
4149
  ;;
3436
4150
 
3437
 
netbsd*)
 
4151
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3438
4152
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3439
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
4153
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3440
4154
  else
3441
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
4155
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3442
4156
  fi
3443
4157
  ;;
3444
4158
 
3448
4162
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3449
4163
  ;;
3450
4164
 
 
4165
nto-qnx*)
 
4166
  lt_cv_deplibs_check_method=unknown
 
4167
  ;;
 
4168
 
3451
4169
openbsd*)
3452
4170
  lt_cv_file_magic_cmd=/usr/bin/file
3453
4171
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3459
4177
  ;;
3460
4178
 
3461
4179
osf3* | osf4* | osf5*)
3462
 
  # this will be overridden with pass_all, but let us keep it just in case
3463
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3464
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3465
4180
  lt_cv_deplibs_check_method=pass_all
3466
4181
  ;;
3467
4182
 
3471
4186
 
3472
4187
solaris*)
3473
4188
  lt_cv_deplibs_check_method=pass_all
3474
 
  lt_cv_file_magic_test_file=/lib/libc.so
3475
 
  ;;
3476
 
 
3477
 
sysv5uw[78]* | sysv4*uw2*)
3478
 
  lt_cv_deplibs_check_method=pass_all
3479
4189
  ;;
3480
4190
 
3481
4191
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3501
4211
    ;;
3502
4212
  esac
3503
4213
  ;;
 
4214
 
 
4215
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
4216
  lt_cv_deplibs_check_method=pass_all
 
4217
  ;;
3504
4218
esac
3505
4219
 
3506
4220
fi
3507
 
echo "$as_me:3507: result: $lt_cv_deplibs_check_method" >&5
 
4221
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3508
4222
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3509
4223
file_magic_cmd=$lt_cv_file_magic_cmd
3510
4224
deplibs_check_method=$lt_cv_deplibs_check_method
3511
 
 
3512
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
3513
 
echo "$as_me:3513: checking command to parse $NM output" >&5
3514
 
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3515
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3516
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3517
 
else
3518
 
 
3519
 
# These are sane defaults that work on at least a few old systems.
3520
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3521
 
 
3522
 
# Character class describing NM global symbol codes.
3523
 
symcode='[BCDEGRST]'
3524
 
 
3525
 
# Regexp to match symbols that can be accessed directly from C.
3526
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3527
 
 
3528
 
# Transform the above into a raw symbol and a C symbol.
3529
 
symxfrm='\1 \2\3 \3'
3530
 
 
3531
 
# Transform an extracted symbol line into a proper C declaration
3532
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3533
 
 
3534
 
# Transform an extracted symbol line into symbol name and symbol address
3535
 
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'"
3536
 
 
3537
 
# Define system-specific variables.
3538
 
case $host_os in
3539
 
aix*)
3540
 
  symcode='[BCDT]'
3541
 
  ;;
3542
 
cygwin* | mingw* | pw32*)
3543
 
  symcode='[ABCDGISTW]'
3544
 
  ;;
3545
 
hpux*) # Its linker distinguishes data from code symbols
3546
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3547
 
  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'"
3548
 
  ;;
3549
 
irix* | nonstopux*)
3550
 
  symcode='[BCDEGRST]'
3551
 
  ;;
3552
 
osf*)
3553
 
  symcode='[BCDEGQRST]'
3554
 
  ;;
3555
 
solaris* | sysv5*)
3556
 
  symcode='[BDT]'
3557
 
  ;;
3558
 
sysv4)
3559
 
  symcode='[DFNSTU]'
3560
 
  ;;
3561
 
esac
3562
 
 
3563
 
# Handle CRLF in mingw tool chain
3564
 
opt_cr=
3565
 
case $host_os in
3566
 
mingw*)
3567
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3568
 
  ;;
3569
 
esac
3570
 
 
3571
 
# If we're using GNU nm, then use its standard symbol codes.
3572
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3573
 
  symcode='[ABCDGISTW]'
3574
 
fi
3575
 
 
3576
 
# Try without a prefix undercore, then with it.
3577
 
for ac_symprfx in "" "_"; do
3578
 
 
3579
 
  # Write the raw and C identifiers.
3580
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3581
 
 
3582
 
  # Check to see that the pipe works correctly.
3583
 
  pipe_works=no
3584
 
  rm -f conftest*
3585
 
  cat > conftest.$ac_ext <<EOF
3586
 
#ifdef __cplusplus
3587
 
extern "C" {
3588
 
#endif
3589
 
char nm_test_var;
3590
 
void nm_test_func(){}
3591
 
#ifdef __cplusplus
3592
 
}
3593
 
#endif
3594
 
int main(){nm_test_var='a';nm_test_func();return(0);}
3595
 
EOF
3596
 
 
3597
 
  if { (eval echo "$as_me:3597: \"$ac_compile\"") >&5
3598
 
  (eval $ac_compile) 2>&5
3599
 
  ac_status=$?
3600
 
  echo "$as_me:3600: \$? = $ac_status" >&5
3601
 
  (exit $ac_status); }; then
3602
 
    # Now try to grab the symbols.
3603
 
    nlist=conftest.nm
3604
 
    if { (eval echo "$as_me:3604: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3605
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3606
 
  ac_status=$?
3607
 
  echo "$as_me:3607: \$? = $ac_status" >&5
3608
 
  (exit $ac_status); } && test -s "$nlist"; then
3609
 
      # Try sorting and uniquifying the output.
3610
 
      if sort "$nlist" | uniq > "$nlist"T; then
3611
 
        mv -f "$nlist"T "$nlist"
3612
 
      else
3613
 
        rm -f "$nlist"T
3614
 
      fi
3615
 
 
3616
 
      # Make sure that we snagged all the symbols we need.
3617
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3618
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3619
 
          cat <<EOF > conftest.$ac_ext
3620
 
#ifdef __cplusplus
3621
 
extern "C" {
3622
 
#endif
3623
 
 
3624
 
EOF
3625
 
          # Now generate the symbol file.
3626
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3627
 
 
3628
 
          cat <<EOF >> conftest.$ac_ext
3629
 
#if defined (__STDC__) && __STDC__
3630
 
# define lt_ptr void *
3631
 
#else
3632
 
# define lt_ptr char *
3633
 
# define const
3634
 
#endif
3635
 
 
3636
 
/* The mapping between symbol names and symbols. */
3637
 
const struct {
3638
 
  const char *name;
3639
 
  lt_ptr address;
3640
 
}
3641
 
lt_preloaded_symbols[] =
3642
 
{
3643
 
EOF
3644
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3645
 
          cat <<\EOF >> conftest.$ac_ext
3646
 
  {0, (lt_ptr) 0}
3647
 
};
3648
 
 
3649
 
#ifdef __cplusplus
3650
 
}
3651
 
#endif
3652
 
EOF
3653
 
          # Now try linking the two files.
3654
 
          mv conftest.$ac_objext conftstm.$ac_objext
3655
 
          save_LIBS="$LIBS"
3656
 
          save_CFLAGS="$CFLAGS"
3657
 
          LIBS="conftstm.$ac_objext"
3658
 
          CFLAGS="$CFLAGS$no_builtin_flag"
3659
 
          if { (eval echo "$as_me:3659: \"$ac_link\"") >&5
3660
 
  (eval $ac_link) 2>&5
3661
 
  ac_status=$?
3662
 
  echo "$as_me:3662: \$? = $ac_status" >&5
3663
 
  (exit $ac_status); } && test -s conftest$ac_exeext; then
3664
 
            pipe_works=yes
3665
 
          fi
3666
 
          LIBS="$save_LIBS"
3667
 
          CFLAGS="$save_CFLAGS"
3668
 
        else
3669
 
          echo "cannot find nm_test_func in $nlist" >&5
3670
 
        fi
3671
 
      else
3672
 
        echo "cannot find nm_test_var in $nlist" >&5
3673
 
      fi
3674
 
    else
3675
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3676
 
    fi
3677
 
  else
3678
 
    echo "$progname: failed program was:" >&5
3679
 
    cat conftest.$ac_ext >&5
3680
 
  fi
3681
 
  rm -f conftest* conftst*
3682
 
 
3683
 
  # Do not use the global_symbol_pipe unless it works.
3684
 
  if test "$pipe_works" = yes; then
3685
 
    break
3686
 
  else
3687
 
    lt_cv_sys_global_symbol_pipe=
3688
 
  fi
3689
 
done
3690
 
 
3691
 
fi
3692
 
 
3693
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3694
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3695
 
  global_symbol_to_cdecl=
3696
 
  global_symbol_to_c_name_address=
3697
 
else
3698
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3699
 
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3700
 
fi
3701
 
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3702
 
then
3703
 
  echo "$as_me:3703: result: failed" >&5
3704
 
echo "${ECHO_T}failed" >&6
3705
 
else
3706
 
  echo "$as_me:3706: result: ok" >&5
3707
 
echo "${ECHO_T}ok" >&6
3708
 
fi
3709
 
 
3710
 
ac_ext=c
3711
 
ac_cpp='$CPP $CPPFLAGS'
3712
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715
 
echo "$as_me:3715: checking how to run the C preprocessor" >&5
3716
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3717
 
# On Suns, sometimes $CPP names a directory.
3718
 
if test -n "$CPP" && test -d "$CPP"; then
3719
 
  CPP=
3720
 
fi
3721
 
if test -z "$CPP"; then
3722
 
  if test "${ac_cv_prog_CPP+set}" = set; then
3723
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3724
 
else
3725
 
      # Double quotes because CPP needs to be expanded
3726
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3727
 
    do
3728
 
      ac_preproc_ok=false
3729
 
for ac_c_preproc_warn_flag in '' yes
3730
 
do
3731
 
  # Use a header file that comes with gcc, so configuring glibc
3732
 
  # with a fresh cross-compiler works.
3733
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3734
 
  # not just through cpp. "Syntax error" is here to catch this case.
3735
 
  cat >conftest.$ac_ext <<_ACEOF
3736
 
#line 3736 "configure"
3737
 
#include "confdefs.h"
3738
 
#include <assert.h>
3739
 
                     Syntax error
3740
 
_ACEOF
3741
 
if { (eval echo "$as_me:3741: \"$ac_cpp conftest.$ac_ext\"") >&5
3742
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3743
 
  ac_status=$?
3744
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3745
 
  rm -f conftest.er1
3746
 
  cat conftest.err >&5
3747
 
  echo "$as_me:3747: \$? = $ac_status" >&5
3748
 
  (exit $ac_status); } >/dev/null; then
3749
 
  if test -s conftest.err; then
3750
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3751
 
  else
3752
 
    ac_cpp_err=
3753
 
  fi
3754
 
else
3755
 
  ac_cpp_err=yes
3756
 
fi
3757
 
if test -z "$ac_cpp_err"; then
3758
 
  :
3759
 
else
3760
 
  echo "$as_me: failed program was:" >&5
3761
 
  cat conftest.$ac_ext >&5
3762
 
  # Broken: fails on valid input.
3763
 
continue
3764
 
fi
3765
 
rm -f conftest.err conftest.$ac_ext
3766
 
 
3767
 
  # OK, works on sane cases.  Now check whether non-existent headers
3768
 
  # can be detected and how.
3769
 
  cat >conftest.$ac_ext <<_ACEOF
3770
 
#line 3770 "configure"
3771
 
#include "confdefs.h"
3772
 
#include <ac_nonexistent.h>
3773
 
_ACEOF
3774
 
if { (eval echo "$as_me:3774: \"$ac_cpp conftest.$ac_ext\"") >&5
3775
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3776
 
  ac_status=$?
3777
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3778
 
  rm -f conftest.er1
3779
 
  cat conftest.err >&5
3780
 
  echo "$as_me:3780: \$? = $ac_status" >&5
3781
 
  (exit $ac_status); } >/dev/null; then
3782
 
  if test -s conftest.err; then
3783
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3784
 
  else
3785
 
    ac_cpp_err=
3786
 
  fi
3787
 
else
3788
 
  ac_cpp_err=yes
3789
 
fi
3790
 
if test -z "$ac_cpp_err"; then
3791
 
  # Broken: success on invalid input.
3792
 
continue
3793
 
else
3794
 
  echo "$as_me: failed program was:" >&5
3795
 
  cat conftest.$ac_ext >&5
3796
 
  # Passes both tests.
3797
 
ac_preproc_ok=:
3798
 
break
3799
 
fi
3800
 
rm -f conftest.err conftest.$ac_ext
3801
 
 
3802
 
done
3803
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3804
 
rm -f conftest.err conftest.$ac_ext
3805
 
if $ac_preproc_ok; then
3806
 
  break
3807
 
fi
3808
 
 
3809
 
    done
3810
 
    ac_cv_prog_CPP=$CPP
3811
 
 
3812
 
fi
3813
 
  CPP=$ac_cv_prog_CPP
3814
 
else
3815
 
  ac_cv_prog_CPP=$CPP
3816
 
fi
3817
 
echo "$as_me:3817: result: $CPP" >&5
3818
 
echo "${ECHO_T}$CPP" >&6
3819
 
ac_preproc_ok=false
3820
 
for ac_c_preproc_warn_flag in '' yes
3821
 
do
3822
 
  # Use a header file that comes with gcc, so configuring glibc
3823
 
  # with a fresh cross-compiler works.
3824
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
3825
 
  # not just through cpp. "Syntax error" is here to catch this case.
3826
 
  cat >conftest.$ac_ext <<_ACEOF
3827
 
#line 3827 "configure"
3828
 
#include "confdefs.h"
3829
 
#include <assert.h>
3830
 
                     Syntax error
3831
 
_ACEOF
3832
 
if { (eval echo "$as_me:3832: \"$ac_cpp conftest.$ac_ext\"") >&5
3833
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3834
 
  ac_status=$?
3835
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3836
 
  rm -f conftest.er1
3837
 
  cat conftest.err >&5
3838
 
  echo "$as_me:3838: \$? = $ac_status" >&5
3839
 
  (exit $ac_status); } >/dev/null; then
3840
 
  if test -s conftest.err; then
3841
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3842
 
  else
3843
 
    ac_cpp_err=
3844
 
  fi
3845
 
else
3846
 
  ac_cpp_err=yes
3847
 
fi
3848
 
if test -z "$ac_cpp_err"; then
3849
 
  :
3850
 
else
3851
 
  echo "$as_me: failed program was:" >&5
3852
 
  cat conftest.$ac_ext >&5
3853
 
  # Broken: fails on valid input.
3854
 
continue
3855
 
fi
3856
 
rm -f conftest.err conftest.$ac_ext
3857
 
 
3858
 
  # OK, works on sane cases.  Now check whether non-existent headers
3859
 
  # can be detected and how.
3860
 
  cat >conftest.$ac_ext <<_ACEOF
3861
 
#line 3861 "configure"
3862
 
#include "confdefs.h"
3863
 
#include <ac_nonexistent.h>
3864
 
_ACEOF
3865
 
if { (eval echo "$as_me:3865: \"$ac_cpp conftest.$ac_ext\"") >&5
3866
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3867
 
  ac_status=$?
3868
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3869
 
  rm -f conftest.er1
3870
 
  cat conftest.err >&5
3871
 
  echo "$as_me:3871: \$? = $ac_status" >&5
3872
 
  (exit $ac_status); } >/dev/null; then
3873
 
  if test -s conftest.err; then
3874
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3875
 
  else
3876
 
    ac_cpp_err=
3877
 
  fi
3878
 
else
3879
 
  ac_cpp_err=yes
3880
 
fi
3881
 
if test -z "$ac_cpp_err"; then
3882
 
  # Broken: success on invalid input.
3883
 
continue
3884
 
else
3885
 
  echo "$as_me: failed program was:" >&5
3886
 
  cat conftest.$ac_ext >&5
3887
 
  # Passes both tests.
3888
 
ac_preproc_ok=:
3889
 
break
3890
 
fi
3891
 
rm -f conftest.err conftest.$ac_ext
3892
 
 
3893
 
done
3894
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895
 
rm -f conftest.err conftest.$ac_ext
3896
 
if $ac_preproc_ok; then
3897
 
  :
3898
 
else
3899
 
  { { echo "$as_me:3899: error: C preprocessor \"$CPP\" fails sanity check" >&5
3900
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3901
 
   { (exit 1); exit 1; }; }
3902
 
fi
3903
 
 
3904
 
ac_ext=c
3905
 
ac_cpp='$CPP $CPPFLAGS'
3906
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
 
 
3910
 
for ac_header in dlfcn.h
3911
 
do
3912
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3913
 
echo "$as_me:3913: checking for $ac_header" >&5
3914
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3915
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3916
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3917
 
else
3918
 
  cat >conftest.$ac_ext <<_ACEOF
3919
 
#line 3919 "configure"
3920
 
#include "confdefs.h"
3921
 
#include <$ac_header>
3922
 
_ACEOF
3923
 
if { (eval echo "$as_me:3923: \"$ac_cpp conftest.$ac_ext\"") >&5
3924
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3925
 
  ac_status=$?
3926
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3927
 
  rm -f conftest.er1
3928
 
  cat conftest.err >&5
3929
 
  echo "$as_me:3929: \$? = $ac_status" >&5
3930
 
  (exit $ac_status); } >/dev/null; then
3931
 
  if test -s conftest.err; then
3932
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3933
 
  else
3934
 
    ac_cpp_err=
3935
 
  fi
3936
 
else
3937
 
  ac_cpp_err=yes
3938
 
fi
3939
 
if test -z "$ac_cpp_err"; then
3940
 
  eval "$as_ac_Header=yes"
3941
 
else
3942
 
  echo "$as_me: failed program was:" >&5
3943
 
  cat conftest.$ac_ext >&5
3944
 
  eval "$as_ac_Header=no"
3945
 
fi
3946
 
rm -f conftest.err conftest.$ac_ext
3947
 
fi
3948
 
echo "$as_me:3948: result: `eval echo '${'$as_ac_Header'}'`" >&5
3949
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3950
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3951
 
  cat >>confdefs.h <<EOF
3952
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3953
 
EOF
3954
 
 
3955
 
fi
3956
 
done
3957
 
 
3958
 
# Only perform the check for file, if the check method requires it
3959
 
case $deplibs_check_method in
3960
 
file_magic*)
3961
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3962
 
    echo "$as_me:3962: checking for ${ac_tool_prefix}file" >&5
3963
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3964
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3966
 
else
3967
 
  case $MAGIC_CMD in
3968
 
  /*)
3969
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3970
 
  ;;
3971
 
  ?:/*)
3972
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3973
 
  ;;
3974
 
  *)
3975
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
3976
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3977
 
  ac_dummy="/usr/bin:$PATH"
3978
 
  for ac_dir in $ac_dummy; do
3979
 
    test -z "$ac_dir" && ac_dir=.
3980
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
3981
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3982
 
      if test -n "$file_magic_test_file"; then
3983
 
        case $deplibs_check_method in
3984
 
        "file_magic "*)
3985
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3986
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3987
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3988
 
            egrep "$file_magic_regex" > /dev/null; then
3989
 
            :
3990
 
          else
3991
 
            cat <<EOF 1>&2
3992
 
 
3993
 
*** Warning: the command libtool uses to detect shared libraries,
3994
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3995
 
*** The result is that libtool may fail to recognize shared libraries
3996
 
*** as such.  This will affect the creation of libtool libraries that
3997
 
*** depend on shared libraries, but programs linked with such libtool
3998
 
*** libraries will work regardless of this problem.  Nevertheless, you
3999
 
*** may want to report the problem to your system manager and/or to
4000
 
*** bug-libtool@gnu.org
4001
 
 
4002
 
EOF
4003
 
          fi ;;
4004
 
        esac
4005
 
      fi
4006
 
      break
4007
 
    fi
4008
 
  done
4009
 
  IFS="$ac_save_ifs"
4010
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4011
 
  ;;
4012
 
esac
4013
 
fi
4014
 
 
4015
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4016
 
if test -n "$MAGIC_CMD"; then
4017
 
  echo "$as_me:4017: result: $MAGIC_CMD" >&5
4018
 
echo "${ECHO_T}$MAGIC_CMD" >&6
4019
 
else
4020
 
  echo "$as_me:4020: result: no" >&5
4021
 
echo "${ECHO_T}no" >&6
4022
 
fi
4023
 
 
4024
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
4025
 
  if test -n "$ac_tool_prefix"; then
4026
 
    echo "$as_me:4026: checking for file" >&5
4027
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
4028
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4029
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4030
 
else
4031
 
  case $MAGIC_CMD in
4032
 
  /*)
4033
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4034
 
  ;;
4035
 
  ?:/*)
4036
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4037
 
  ;;
4038
 
  *)
4039
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4040
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4041
 
  ac_dummy="/usr/bin:$PATH"
4042
 
  for ac_dir in $ac_dummy; do
4043
 
    test -z "$ac_dir" && ac_dir=.
4044
 
    if test -f $ac_dir/file; then
4045
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4046
 
      if test -n "$file_magic_test_file"; then
4047
 
        case $deplibs_check_method in
4048
 
        "file_magic "*)
4049
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4050
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4051
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4052
 
            egrep "$file_magic_regex" > /dev/null; then
4053
 
            :
4054
 
          else
4055
 
            cat <<EOF 1>&2
4056
 
 
4057
 
*** Warning: the command libtool uses to detect shared libraries,
4058
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
4059
 
*** The result is that libtool may fail to recognize shared libraries
4060
 
*** as such.  This will affect the creation of libtool libraries that
4061
 
*** depend on shared libraries, but programs linked with such libtool
4062
 
*** libraries will work regardless of this problem.  Nevertheless, you
4063
 
*** may want to report the problem to your system manager and/or to
4064
 
*** bug-libtool@gnu.org
4065
 
 
4066
 
EOF
4067
 
          fi ;;
4068
 
        esac
4069
 
      fi
4070
 
      break
4071
 
    fi
4072
 
  done
4073
 
  IFS="$ac_save_ifs"
4074
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4075
 
  ;;
4076
 
esac
4077
 
fi
4078
 
 
4079
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4080
 
if test -n "$MAGIC_CMD"; then
4081
 
  echo "$as_me:4081: result: $MAGIC_CMD" >&5
4082
 
echo "${ECHO_T}$MAGIC_CMD" >&6
4083
 
else
4084
 
  echo "$as_me:4084: result: no" >&5
4085
 
echo "${ECHO_T}no" >&6
4086
 
fi
4087
 
 
4088
 
  else
4089
 
    MAGIC_CMD=:
4090
 
  fi
4091
 
fi
4092
 
 
4093
 
  fi
4094
 
  ;;
4095
 
esac
4096
 
 
4097
 
if test -n "$ac_tool_prefix"; then
4098
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4099
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4100
 
echo "$as_me:4100: checking for $ac_word" >&5
4101
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
4103
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4104
 
else
4105
 
  if test -n "$RANLIB"; then
4106
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4107
 
else
4108
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4109
 
ac_dummy="$PATH"
4110
 
for ac_dir in $ac_dummy; do
4111
 
  IFS=$ac_save_IFS
4112
 
  test -z "$ac_dir" && ac_dir=.
4113
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4114
 
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4115
 
echo "$as_me:4115: found $ac_dir/$ac_word" >&5
4116
 
break
4117
 
done
4118
 
 
4119
 
fi
4120
 
fi
4121
 
RANLIB=$ac_cv_prog_RANLIB
4122
 
if test -n "$RANLIB"; then
4123
 
  echo "$as_me:4123: result: $RANLIB" >&5
4124
 
echo "${ECHO_T}$RANLIB" >&6
4125
 
else
4126
 
  echo "$as_me:4126: result: no" >&5
4127
 
echo "${ECHO_T}no" >&6
4128
 
fi
4129
 
 
4130
 
fi
4131
 
if test -z "$ac_cv_prog_RANLIB"; then
4132
 
  ac_ct_RANLIB=$RANLIB
4133
 
  # Extract the first word of "ranlib", so it can be a program name with args.
4134
 
set dummy ranlib; ac_word=$2
4135
 
echo "$as_me:4135: checking for $ac_word" >&5
4136
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4137
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4138
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4139
 
else
4140
 
  if test -n "$ac_ct_RANLIB"; then
4141
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4142
 
else
4143
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4144
 
ac_dummy="$PATH"
4145
 
for ac_dir in $ac_dummy; do
4146
 
  IFS=$ac_save_IFS
4147
 
  test -z "$ac_dir" && ac_dir=.
4148
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4149
 
ac_cv_prog_ac_ct_RANLIB="ranlib"
4150
 
echo "$as_me:4150: found $ac_dir/$ac_word" >&5
4151
 
break
4152
 
done
4153
 
 
4154
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4155
 
fi
4156
 
fi
4157
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4158
 
if test -n "$ac_ct_RANLIB"; then
4159
 
  echo "$as_me:4159: result: $ac_ct_RANLIB" >&5
4160
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4161
 
else
4162
 
  echo "$as_me:4162: result: no" >&5
4163
 
echo "${ECHO_T}no" >&6
4164
 
fi
4165
 
 
4166
 
  RANLIB=$ac_ct_RANLIB
4167
 
else
4168
 
  RANLIB="$ac_cv_prog_RANLIB"
4169
 
fi
4170
 
 
4171
 
if test -n "$ac_tool_prefix"; then
4172
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4173
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
4174
 
echo "$as_me:4174: checking for $ac_word" >&5
4175
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176
 
if test "${ac_cv_prog_STRIP+set}" = set; then
4177
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4178
 
else
4179
 
  if test -n "$STRIP"; then
4180
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4181
 
else
4182
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4183
 
ac_dummy="$PATH"
4184
 
for ac_dir in $ac_dummy; do
4185
 
  IFS=$ac_save_IFS
4186
 
  test -z "$ac_dir" && ac_dir=.
4187
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4188
 
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4189
 
echo "$as_me:4189: found $ac_dir/$ac_word" >&5
4190
 
break
4191
 
done
4192
 
 
4193
 
fi
4194
 
fi
4195
 
STRIP=$ac_cv_prog_STRIP
4196
 
if test -n "$STRIP"; then
4197
 
  echo "$as_me:4197: result: $STRIP" >&5
4198
 
echo "${ECHO_T}$STRIP" >&6
4199
 
else
4200
 
  echo "$as_me:4200: result: no" >&5
4201
 
echo "${ECHO_T}no" >&6
4202
 
fi
4203
 
 
4204
 
fi
4205
 
if test -z "$ac_cv_prog_STRIP"; then
4206
 
  ac_ct_STRIP=$STRIP
4207
 
  # Extract the first word of "strip", so it can be a program name with args.
4208
 
set dummy strip; ac_word=$2
4209
 
echo "$as_me:4209: checking for $ac_word" >&5
4210
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4211
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4212
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4213
 
else
4214
 
  if test -n "$ac_ct_STRIP"; then
4215
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4216
 
else
4217
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4218
 
ac_dummy="$PATH"
4219
 
for ac_dir in $ac_dummy; do
4220
 
  IFS=$ac_save_IFS
4221
 
  test -z "$ac_dir" && ac_dir=.
4222
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4223
 
ac_cv_prog_ac_ct_STRIP="strip"
4224
 
echo "$as_me:4224: found $ac_dir/$ac_word" >&5
4225
 
break
4226
 
done
4227
 
 
4228
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4229
 
fi
4230
 
fi
4231
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4232
 
if test -n "$ac_ct_STRIP"; then
4233
 
  echo "$as_me:4233: result: $ac_ct_STRIP" >&5
4234
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
4235
 
else
4236
 
  echo "$as_me:4236: result: no" >&5
4237
 
echo "${ECHO_T}no" >&6
4238
 
fi
4239
 
 
4240
 
  STRIP=$ac_ct_STRIP
4241
 
else
4242
 
  STRIP="$ac_cv_prog_STRIP"
4243
 
fi
4244
 
 
4245
 
enable_dlopen=no
4246
 
enable_win32_dll=yes
 
4225
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4226
 
 
4227
 
 
4228
 
 
4229
 
 
4230
# If no C compiler was specified, use CC.
 
4231
LTCC=${LTCC-"$CC"}
 
4232
 
 
4233
# Allow CC to be a program name with arguments.
 
4234
compiler=$CC
 
4235
 
4247
4236
 
4248
4237
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4249
4238
if test "${enable_libtool_lock+set}" = set; then
4255
4244
# Some flags need to be propagated to the compiler or linker for good
4256
4245
# libtool support.
4257
4246
case $host in
 
4247
ia64-*-hpux*)
 
4248
  # Find out which ABI we are using.
 
4249
  echo 'int i;' > conftest.$ac_ext
 
4250
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4251
  (eval $ac_compile) 2>&5
 
4252
  ac_status=$?
 
4253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4254
  (exit $ac_status); }; then
 
4255
    case `/usr/bin/file conftest.$ac_objext` in
 
4256
    *ELF-32*)
 
4257
      HPUX_IA64_MODE="32"
 
4258
      ;;
 
4259
    *ELF-64*)
 
4260
      HPUX_IA64_MODE="64"
 
4261
      ;;
 
4262
    esac
 
4263
  fi
 
4264
  rm -rf conftest*
 
4265
  ;;
4258
4266
*-*-irix6*)
4259
4267
  # Find out which ABI we are using.
4260
 
  echo '#line 4260 "configure"' > conftest.$ac_ext
4261
 
  if { (eval echo "$as_me:4261: \"$ac_compile\"") >&5
 
4268
  echo '#line 4268 "configure"' > conftest.$ac_ext
 
4269
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262
4270
  (eval $ac_compile) 2>&5
4263
4271
  ac_status=$?
4264
 
  echo "$as_me:4264: \$? = $ac_status" >&5
 
4272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265
4273
  (exit $ac_status); }; then
 
4274
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4275
    case `/usr/bin/file conftest.$ac_objext` in
 
4276
    *32-bit*)
 
4277
      LD="${LD-ld} -melf32bsmip"
 
4278
      ;;
 
4279
    *N32*)
 
4280
      LD="${LD-ld} -melf32bmipn32"
 
4281
      ;;
 
4282
    *64-bit*)
 
4283
      LD="${LD-ld} -melf64bmip"
 
4284
      ;;
 
4285
    esac
 
4286
   else
4266
4287
    case `/usr/bin/file conftest.$ac_objext` in
4267
4288
    *32-bit*)
4268
4289
      LD="${LD-ld} -32"
4274
4295
      LD="${LD-ld} -64"
4275
4296
      ;;
4276
4297
    esac
 
4298
   fi
4277
4299
  fi
4278
4300
  rm -rf conftest*
4279
4301
  ;;
4280
4302
 
4281
 
*-*-linux*)
4282
 
  # Test if the compiler is 64bit
 
4303
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4304
  # Find out which ABI we are using.
4283
4305
  echo 'int i;' > conftest.$ac_ext
4284
 
  lt_cv_cc_64bit_output=no
4285
 
  if { (eval echo "$as_me:4285: \"$ac_compile\"") >&5
 
4306
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286
4307
  (eval $ac_compile) 2>&5
4287
4308
  ac_status=$?
4288
 
  echo "$as_me:4288: \$? = $ac_status" >&5
 
4309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289
4310
  (exit $ac_status); }; then
4290
 
    case `/usr/bin/file conftest.$ac_objext` in
4291
 
    *"ELF 64"*)
4292
 
      lt_cv_cc_64bit_output=yes
 
4311
    case "`/usr/bin/file conftest.o`" in
 
4312
    *32-bit*)
 
4313
      case $host in
 
4314
        x86_64-*linux*)
 
4315
          LD="${LD-ld} -m elf_i386"
 
4316
          ;;
 
4317
        ppc64-*linux*|powerpc64-*linux*)
 
4318
          LD="${LD-ld} -m elf32ppclinux"
 
4319
          ;;
 
4320
        s390x-*linux*)
 
4321
          LD="${LD-ld} -m elf_s390"
 
4322
          ;;
 
4323
        sparc64-*linux*)
 
4324
          LD="${LD-ld} -m elf32_sparc"
 
4325
          ;;
 
4326
      esac
 
4327
      ;;
 
4328
    *64-bit*)
 
4329
      case $host in
 
4330
        x86_64-*linux*)
 
4331
          LD="${LD-ld} -m elf_x86_64"
 
4332
          ;;
 
4333
        ppc*-*linux*|powerpc*-*linux*)
 
4334
          LD="${LD-ld} -m elf64ppc"
 
4335
          ;;
 
4336
        s390*-*linux*)
 
4337
          LD="${LD-ld} -m elf64_s390"
 
4338
          ;;
 
4339
        sparc*-*linux*)
 
4340
          LD="${LD-ld} -m elf64_sparc"
 
4341
          ;;
 
4342
      esac
4293
4343
      ;;
4294
4344
    esac
4295
4345
  fi
4300
4350
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4301
4351
  SAVE_CFLAGS="$CFLAGS"
4302
4352
  CFLAGS="$CFLAGS -belf"
4303
 
  echo "$as_me:4303: checking whether the C compiler needs -belf" >&5
 
4353
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4304
4354
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4305
4355
if test "${lt_cv_cc_needs_belf+set}" = set; then
4306
4356
  echo $ECHO_N "(cached) $ECHO_C" >&6
4307
4357
else
4308
 
 
4309
 
     ac_ext=c
 
4358
  ac_ext=c
4310
4359
ac_cpp='$CPP $CPPFLAGS'
4311
4360
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312
4361
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313
4362
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314
4363
 
4315
4364
     cat >conftest.$ac_ext <<_ACEOF
4316
 
#line 4316 "configure"
4317
 
#include "confdefs.h"
 
4365
/* confdefs.h.  */
 
4366
_ACEOF
 
4367
cat confdefs.h >>conftest.$ac_ext
 
4368
cat >>conftest.$ac_ext <<_ACEOF
 
4369
/* end confdefs.h.  */
4318
4370
 
4319
4371
int
4320
4372
main ()
4325
4377
}
4326
4378
_ACEOF
4327
4379
rm -f conftest.$ac_objext conftest$ac_exeext
4328
 
if { (eval echo "$as_me:4328: \"$ac_link\"") >&5
4329
 
  (eval $ac_link) 2>&5
 
4380
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4381
  (eval $ac_link) 2>conftest.er1
4330
4382
  ac_status=$?
4331
 
  echo "$as_me:4331: \$? = $ac_status" >&5
 
4383
  grep -v '^ *+' conftest.er1 >conftest.err
 
4384
  rm -f conftest.er1
 
4385
  cat conftest.err >&5
 
4386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332
4387
  (exit $ac_status); } &&
4333
 
         { ac_try='test -s conftest$ac_exeext'
4334
 
  { (eval echo "$as_me:4334: \"$ac_try\"") >&5
4335
 
  (eval $ac_try) 2>&5
4336
 
  ac_status=$?
4337
 
  echo "$as_me:4337: \$? = $ac_status" >&5
 
4388
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4390
  (eval $ac_try) 2>&5
 
4391
  ac_status=$?
 
4392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4393
  (exit $ac_status); }; } &&
 
4394
         { ac_try='test -s conftest$ac_exeext'
 
4395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4396
  (eval $ac_try) 2>&5
 
4397
  ac_status=$?
 
4398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338
4399
  (exit $ac_status); }; }; then
4339
4400
  lt_cv_cc_needs_belf=yes
4340
4401
else
4341
4402
  echo "$as_me: failed program was:" >&5
4342
 
cat conftest.$ac_ext >&5
 
4403
sed 's/^/| /' conftest.$ac_ext >&5
 
4404
 
4343
4405
lt_cv_cc_needs_belf=no
4344
4406
fi
4345
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4407
rm -f conftest.err conftest.$ac_objext \
 
4408
      conftest$ac_exeext conftest.$ac_ext
4346
4409
     ac_ext=c
4347
4410
ac_cpp='$CPP $CPPFLAGS'
4348
4411
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350
4413
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351
4414
 
4352
4415
fi
4353
 
echo "$as_me:4353: result: $lt_cv_cc_needs_belf" >&5
 
4416
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4354
4417
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4355
4418
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4356
4419
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4357
4420
    CFLAGS="$SAVE_CFLAGS"
4358
4421
  fi
4359
4422
  ;;
4360
 
 
4361
4423
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4362
4424
  if test -n "$ac_tool_prefix"; then
4363
4425
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4364
4426
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4365
 
echo "$as_me:4365: checking for $ac_word" >&5
 
4427
echo "$as_me:$LINENO: checking for $ac_word" >&5
4366
4428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367
4429
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4368
4430
  echo $ECHO_N "(cached) $ECHO_C" >&6
4370
4432
  if test -n "$DLLTOOL"; then
4371
4433
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4372
4434
else
4373
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4374
 
ac_dummy="$PATH"
4375
 
for ac_dir in $ac_dummy; do
4376
 
  IFS=$ac_save_IFS
4377
 
  test -z "$ac_dir" && ac_dir=.
4378
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4379
 
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4380
 
echo "$as_me:4380: found $ac_dir/$ac_word" >&5
4381
 
break
 
4435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4436
for as_dir in $PATH
 
4437
do
 
4438
  IFS=$as_save_IFS
 
4439
  test -z "$as_dir" && as_dir=.
 
4440
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4441
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4442
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
4443
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4444
    break 2
 
4445
  fi
 
4446
done
4382
4447
done
4383
4448
 
4384
4449
fi
4385
4450
fi
4386
4451
DLLTOOL=$ac_cv_prog_DLLTOOL
4387
4452
if test -n "$DLLTOOL"; then
4388
 
  echo "$as_me:4388: result: $DLLTOOL" >&5
 
4453
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4389
4454
echo "${ECHO_T}$DLLTOOL" >&6
4390
4455
else
4391
 
  echo "$as_me:4391: result: no" >&5
 
4456
  echo "$as_me:$LINENO: result: no" >&5
4392
4457
echo "${ECHO_T}no" >&6
4393
4458
fi
4394
4459
 
4397
4462
  ac_ct_DLLTOOL=$DLLTOOL
4398
4463
  # Extract the first word of "dlltool", so it can be a program name with args.
4399
4464
set dummy dlltool; ac_word=$2
4400
 
echo "$as_me:4400: checking for $ac_word" >&5
 
4465
echo "$as_me:$LINENO: checking for $ac_word" >&5
4401
4466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402
4467
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4403
4468
  echo $ECHO_N "(cached) $ECHO_C" >&6
4405
4470
  if test -n "$ac_ct_DLLTOOL"; then
4406
4471
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4407
4472
else
4408
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4409
 
ac_dummy="$PATH"
4410
 
for ac_dir in $ac_dummy; do
4411
 
  IFS=$ac_save_IFS
4412
 
  test -z "$ac_dir" && ac_dir=.
4413
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4414
 
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4415
 
echo "$as_me:4415: found $ac_dir/$ac_word" >&5
4416
 
break
 
4473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4474
for as_dir in $PATH
 
4475
do
 
4476
  IFS=$as_save_IFS
 
4477
  test -z "$as_dir" && as_dir=.
 
4478
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4479
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4480
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4481
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4482
    break 2
 
4483
  fi
 
4484
done
4417
4485
done
4418
4486
 
4419
4487
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4421
4489
fi
4422
4490
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4423
4491
if test -n "$ac_ct_DLLTOOL"; then
4424
 
  echo "$as_me:4424: result: $ac_ct_DLLTOOL" >&5
 
4492
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4425
4493
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4426
4494
else
4427
 
  echo "$as_me:4427: result: no" >&5
 
4495
  echo "$as_me:$LINENO: result: no" >&5
4428
4496
echo "${ECHO_T}no" >&6
4429
4497
fi
4430
4498
 
4436
4504
  if test -n "$ac_tool_prefix"; then
4437
4505
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4438
4506
set dummy ${ac_tool_prefix}as; ac_word=$2
4439
 
echo "$as_me:4439: checking for $ac_word" >&5
 
4507
echo "$as_me:$LINENO: checking for $ac_word" >&5
4440
4508
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4441
4509
if test "${ac_cv_prog_AS+set}" = set; then
4442
4510
  echo $ECHO_N "(cached) $ECHO_C" >&6
4444
4512
  if test -n "$AS"; then
4445
4513
  ac_cv_prog_AS="$AS" # Let the user override the test.
4446
4514
else
4447
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4448
 
ac_dummy="$PATH"
4449
 
for ac_dir in $ac_dummy; do
4450
 
  IFS=$ac_save_IFS
4451
 
  test -z "$ac_dir" && ac_dir=.
4452
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4453
 
ac_cv_prog_AS="${ac_tool_prefix}as"
4454
 
echo "$as_me:4454: found $ac_dir/$ac_word" >&5
4455
 
break
 
4515
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4516
for as_dir in $PATH
 
4517
do
 
4518
  IFS=$as_save_IFS
 
4519
  test -z "$as_dir" && as_dir=.
 
4520
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4521
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4522
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
4523
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4524
    break 2
 
4525
  fi
 
4526
done
4456
4527
done
4457
4528
 
4458
4529
fi
4459
4530
fi
4460
4531
AS=$ac_cv_prog_AS
4461
4532
if test -n "$AS"; then
4462
 
  echo "$as_me:4462: result: $AS" >&5
 
4533
  echo "$as_me:$LINENO: result: $AS" >&5
4463
4534
echo "${ECHO_T}$AS" >&6
4464
4535
else
4465
 
  echo "$as_me:4465: result: no" >&5
 
4536
  echo "$as_me:$LINENO: result: no" >&5
4466
4537
echo "${ECHO_T}no" >&6
4467
4538
fi
4468
4539
 
4471
4542
  ac_ct_AS=$AS
4472
4543
  # Extract the first word of "as", so it can be a program name with args.
4473
4544
set dummy as; ac_word=$2
4474
 
echo "$as_me:4474: checking for $ac_word" >&5
 
4545
echo "$as_me:$LINENO: checking for $ac_word" >&5
4475
4546
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476
4547
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4477
4548
  echo $ECHO_N "(cached) $ECHO_C" >&6
4479
4550
  if test -n "$ac_ct_AS"; then
4480
4551
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4481
4552
else
4482
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4483
 
ac_dummy="$PATH"
4484
 
for ac_dir in $ac_dummy; do
4485
 
  IFS=$ac_save_IFS
4486
 
  test -z "$ac_dir" && ac_dir=.
4487
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4488
 
ac_cv_prog_ac_ct_AS="as"
4489
 
echo "$as_me:4489: found $ac_dir/$ac_word" >&5
4490
 
break
 
4553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4554
for as_dir in $PATH
 
4555
do
 
4556
  IFS=$as_save_IFS
 
4557
  test -z "$as_dir" && as_dir=.
 
4558
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4559
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4560
    ac_cv_prog_ac_ct_AS="as"
 
4561
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4562
    break 2
 
4563
  fi
 
4564
done
4491
4565
done
4492
4566
 
4493
4567
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4495
4569
fi
4496
4570
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4497
4571
if test -n "$ac_ct_AS"; then
4498
 
  echo "$as_me:4498: result: $ac_ct_AS" >&5
 
4572
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4499
4573
echo "${ECHO_T}$ac_ct_AS" >&6
4500
4574
else
4501
 
  echo "$as_me:4501: result: no" >&5
 
4575
  echo "$as_me:$LINENO: result: no" >&5
4502
4576
echo "${ECHO_T}no" >&6
4503
4577
fi
4504
4578
 
4510
4584
  if test -n "$ac_tool_prefix"; then
4511
4585
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4512
4586
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4513
 
echo "$as_me:4513: checking for $ac_word" >&5
 
4587
echo "$as_me:$LINENO: checking for $ac_word" >&5
4514
4588
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4515
4589
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4516
4590
  echo $ECHO_N "(cached) $ECHO_C" >&6
4518
4592
  if test -n "$OBJDUMP"; then
4519
4593
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4520
4594
else
4521
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4522
 
ac_dummy="$PATH"
4523
 
for ac_dir in $ac_dummy; do
4524
 
  IFS=$ac_save_IFS
4525
 
  test -z "$ac_dir" && ac_dir=.
4526
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4527
 
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4528
 
echo "$as_me:4528: found $ac_dir/$ac_word" >&5
4529
 
break
 
4595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4596
for as_dir in $PATH
 
4597
do
 
4598
  IFS=$as_save_IFS
 
4599
  test -z "$as_dir" && as_dir=.
 
4600
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4601
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4602
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4603
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4604
    break 2
 
4605
  fi
 
4606
done
4530
4607
done
4531
4608
 
4532
4609
fi
4533
4610
fi
4534
4611
OBJDUMP=$ac_cv_prog_OBJDUMP
4535
4612
if test -n "$OBJDUMP"; then
4536
 
  echo "$as_me:4536: result: $OBJDUMP" >&5
 
4613
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4537
4614
echo "${ECHO_T}$OBJDUMP" >&6
4538
4615
else
4539
 
  echo "$as_me:4539: result: no" >&5
 
4616
  echo "$as_me:$LINENO: result: no" >&5
4540
4617
echo "${ECHO_T}no" >&6
4541
4618
fi
4542
4619
 
4545
4622
  ac_ct_OBJDUMP=$OBJDUMP
4546
4623
  # Extract the first word of "objdump", so it can be a program name with args.
4547
4624
set dummy objdump; ac_word=$2
4548
 
echo "$as_me:4548: checking for $ac_word" >&5
 
4625
echo "$as_me:$LINENO: checking for $ac_word" >&5
4549
4626
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550
4627
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4551
4628
  echo $ECHO_N "(cached) $ECHO_C" >&6
4553
4630
  if test -n "$ac_ct_OBJDUMP"; then
4554
4631
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4555
4632
else
4556
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4557
 
ac_dummy="$PATH"
4558
 
for ac_dir in $ac_dummy; do
4559
 
  IFS=$ac_save_IFS
4560
 
  test -z "$ac_dir" && ac_dir=.
4561
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4562
 
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4563
 
echo "$as_me:4563: found $ac_dir/$ac_word" >&5
4564
 
break
 
4633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4634
for as_dir in $PATH
 
4635
do
 
4636
  IFS=$as_save_IFS
 
4637
  test -z "$as_dir" && as_dir=.
 
4638
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4639
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4640
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4641
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4642
    break 2
 
4643
  fi
 
4644
done
4565
4645
done
4566
4646
 
4567
4647
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4569
4649
fi
4570
4650
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4571
4651
if test -n "$ac_ct_OBJDUMP"; then
4572
 
  echo "$as_me:4572: result: $ac_ct_OBJDUMP" >&5
 
4652
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4573
4653
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4574
4654
else
4575
 
  echo "$as_me:4575: result: no" >&5
 
4655
  echo "$as_me:$LINENO: result: no" >&5
4576
4656
echo "${ECHO_T}no" >&6
4577
4657
fi
4578
4658
 
4581
4661
  OBJDUMP="$ac_cv_prog_OBJDUMP"
4582
4662
fi
4583
4663
 
4584
 
  # recent cygwin and mingw systems supply a stub DllMain which the user
4585
 
  # can override, but on older systems we have to supply one
4586
 
  echo "$as_me:4586: checking if libtool should supply DllMain function" >&5
4587
 
echo $ECHO_N "checking if libtool should supply DllMain function... $ECHO_C" >&6
4588
 
if test "${lt_cv_need_dllmain+set}" = set; then
4589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4590
 
else
4591
 
  cat >conftest.$ac_ext <<_ACEOF
4592
 
#line 4592 "configure"
4593
 
#include "confdefs.h"
4594
 
 
4595
 
int
4596
 
main ()
4597
 
{
4598
 
extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4599
 
      DllMain (0, 0, 0);
4600
 
  ;
4601
 
  return 0;
4602
 
}
4603
 
_ACEOF
4604
 
rm -f conftest.$ac_objext conftest$ac_exeext
4605
 
if { (eval echo "$as_me:4605: \"$ac_link\"") >&5
4606
 
  (eval $ac_link) 2>&5
4607
 
  ac_status=$?
4608
 
  echo "$as_me:4608: \$? = $ac_status" >&5
4609
 
  (exit $ac_status); } &&
4610
 
         { ac_try='test -s conftest$ac_exeext'
4611
 
  { (eval echo "$as_me:4611: \"$ac_try\"") >&5
4612
 
  (eval $ac_try) 2>&5
4613
 
  ac_status=$?
4614
 
  echo "$as_me:4614: \$? = $ac_status" >&5
4615
 
  (exit $ac_status); }; }; then
4616
 
  lt_cv_need_dllmain=no
4617
 
else
4618
 
  echo "$as_me: failed program was:" >&5
4619
 
cat conftest.$ac_ext >&5
4620
 
lt_cv_need_dllmain=yes
4621
 
fi
4622
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4623
 
fi
4624
 
echo "$as_me:4624: result: $lt_cv_need_dllmain" >&5
4625
 
echo "${ECHO_T}$lt_cv_need_dllmain" >&6
4626
 
 
4627
 
  case $host/$CC in
4628
 
  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4629
 
    # old mingw systems require "-dll" to link a DLL, while more recent ones
4630
 
    # require "-mdll"
4631
 
    SAVE_CFLAGS="$CFLAGS"
4632
 
    CFLAGS="$CFLAGS -mdll"
4633
 
    echo "$as_me:4633: checking how to link DLLs" >&5
4634
 
echo $ECHO_N "checking how to link DLLs... $ECHO_C" >&6
4635
 
if test "${lt_cv_cc_dll_switch+set}" = set; then
4636
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4637
 
else
4638
 
  cat >conftest.$ac_ext <<_ACEOF
4639
 
#line 4639 "configure"
4640
 
#include "confdefs.h"
4641
 
 
4642
 
int
4643
 
main ()
4644
 
{
4645
 
 
4646
 
  ;
4647
 
  return 0;
4648
 
}
4649
 
_ACEOF
4650
 
rm -f conftest.$ac_objext conftest$ac_exeext
4651
 
if { (eval echo "$as_me:4651: \"$ac_link\"") >&5
4652
 
  (eval $ac_link) 2>&5
4653
 
  ac_status=$?
4654
 
  echo "$as_me:4654: \$? = $ac_status" >&5
4655
 
  (exit $ac_status); } &&
4656
 
         { ac_try='test -s conftest$ac_exeext'
4657
 
  { (eval echo "$as_me:4657: \"$ac_try\"") >&5
4658
 
  (eval $ac_try) 2>&5
4659
 
  ac_status=$?
4660
 
  echo "$as_me:4660: \$? = $ac_status" >&5
4661
 
  (exit $ac_status); }; }; then
4662
 
  lt_cv_cc_dll_switch=-mdll
4663
 
else
4664
 
  echo "$as_me: failed program was:" >&5
4665
 
cat conftest.$ac_ext >&5
4666
 
lt_cv_cc_dll_switch=-dll
4667
 
fi
4668
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4669
 
fi
4670
 
echo "$as_me:4670: result: $lt_cv_cc_dll_switch" >&5
4671
 
echo "${ECHO_T}$lt_cv_cc_dll_switch" >&6
4672
 
    CFLAGS="$SAVE_CFLAGS" ;;
4673
 
  *-*-cygwin* | *-*-pw32*)
4674
 
    # cygwin systems need to pass --dll to the linker, and not link
4675
 
    # crt.o which will require a WinMain@16 definition.
4676
 
    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
 
4664
  ;;
 
4665
 
 
4666
esac
 
4667
 
 
4668
need_locks="$enable_libtool_lock"
 
4669
 
 
4670
 
 
4671
ac_ext=c
 
4672
ac_cpp='$CPP $CPPFLAGS'
 
4673
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4674
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4675
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4676
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4677
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4678
# On Suns, sometimes $CPP names a directory.
 
4679
if test -n "$CPP" && test -d "$CPP"; then
 
4680
  CPP=
 
4681
fi
 
4682
if test -z "$CPP"; then
 
4683
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4685
else
 
4686
      # Double quotes because CPP needs to be expanded
 
4687
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4688
    do
 
4689
      ac_preproc_ok=false
 
4690
for ac_c_preproc_warn_flag in '' yes
 
4691
do
 
4692
  # Use a header file that comes with gcc, so configuring glibc
 
4693
  # with a fresh cross-compiler works.
 
4694
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4695
  # <limits.h> exists even on freestanding compilers.
 
4696
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4697
  # not just through cpp. "Syntax error" is here to catch this case.
 
4698
  cat >conftest.$ac_ext <<_ACEOF
 
4699
/* confdefs.h.  */
 
4700
_ACEOF
 
4701
cat confdefs.h >>conftest.$ac_ext
 
4702
cat >>conftest.$ac_ext <<_ACEOF
 
4703
/* end confdefs.h.  */
 
4704
#ifdef __STDC__
 
4705
# include <limits.h>
 
4706
#else
 
4707
# include <assert.h>
 
4708
#endif
 
4709
                     Syntax error
 
4710
_ACEOF
 
4711
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4712
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4713
  ac_status=$?
 
4714
  grep -v '^ *+' conftest.er1 >conftest.err
 
4715
  rm -f conftest.er1
 
4716
  cat conftest.err >&5
 
4717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4718
  (exit $ac_status); } >/dev/null; then
 
4719
  if test -s conftest.err; then
 
4720
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4721
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4722
  else
 
4723
    ac_cpp_err=
 
4724
  fi
 
4725
else
 
4726
  ac_cpp_err=yes
 
4727
fi
 
4728
if test -z "$ac_cpp_err"; then
 
4729
  :
 
4730
else
 
4731
  echo "$as_me: failed program was:" >&5
 
4732
sed 's/^/| /' conftest.$ac_ext >&5
 
4733
 
 
4734
  # Broken: fails on valid input.
 
4735
continue
 
4736
fi
 
4737
rm -f conftest.err conftest.$ac_ext
 
4738
 
 
4739
  # OK, works on sane cases.  Now check whether non-existent headers
 
4740
  # can be detected and how.
 
4741
  cat >conftest.$ac_ext <<_ACEOF
 
4742
/* confdefs.h.  */
 
4743
_ACEOF
 
4744
cat confdefs.h >>conftest.$ac_ext
 
4745
cat >>conftest.$ac_ext <<_ACEOF
 
4746
/* end confdefs.h.  */
 
4747
#include <ac_nonexistent.h>
 
4748
_ACEOF
 
4749
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4750
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4751
  ac_status=$?
 
4752
  grep -v '^ *+' conftest.er1 >conftest.err
 
4753
  rm -f conftest.er1
 
4754
  cat conftest.err >&5
 
4755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4756
  (exit $ac_status); } >/dev/null; then
 
4757
  if test -s conftest.err; then
 
4758
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4759
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4760
  else
 
4761
    ac_cpp_err=
 
4762
  fi
 
4763
else
 
4764
  ac_cpp_err=yes
 
4765
fi
 
4766
if test -z "$ac_cpp_err"; then
 
4767
  # Broken: success on invalid input.
 
4768
continue
 
4769
else
 
4770
  echo "$as_me: failed program was:" >&5
 
4771
sed 's/^/| /' conftest.$ac_ext >&5
 
4772
 
 
4773
  # Passes both tests.
 
4774
ac_preproc_ok=:
 
4775
break
 
4776
fi
 
4777
rm -f conftest.err conftest.$ac_ext
 
4778
 
 
4779
done
 
4780
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4781
rm -f conftest.err conftest.$ac_ext
 
4782
if $ac_preproc_ok; then
 
4783
  break
 
4784
fi
 
4785
 
 
4786
    done
 
4787
    ac_cv_prog_CPP=$CPP
 
4788
 
 
4789
fi
 
4790
  CPP=$ac_cv_prog_CPP
 
4791
else
 
4792
  ac_cv_prog_CPP=$CPP
 
4793
fi
 
4794
echo "$as_me:$LINENO: result: $CPP" >&5
 
4795
echo "${ECHO_T}$CPP" >&6
 
4796
ac_preproc_ok=false
 
4797
for ac_c_preproc_warn_flag in '' yes
 
4798
do
 
4799
  # Use a header file that comes with gcc, so configuring glibc
 
4800
  # with a fresh cross-compiler works.
 
4801
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4802
  # <limits.h> exists even on freestanding compilers.
 
4803
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4804
  # not just through cpp. "Syntax error" is here to catch this case.
 
4805
  cat >conftest.$ac_ext <<_ACEOF
 
4806
/* confdefs.h.  */
 
4807
_ACEOF
 
4808
cat confdefs.h >>conftest.$ac_ext
 
4809
cat >>conftest.$ac_ext <<_ACEOF
 
4810
/* end confdefs.h.  */
 
4811
#ifdef __STDC__
 
4812
# include <limits.h>
 
4813
#else
 
4814
# include <assert.h>
 
4815
#endif
 
4816
                     Syntax error
 
4817
_ACEOF
 
4818
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4819
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4820
  ac_status=$?
 
4821
  grep -v '^ *+' conftest.er1 >conftest.err
 
4822
  rm -f conftest.er1
 
4823
  cat conftest.err >&5
 
4824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4825
  (exit $ac_status); } >/dev/null; then
 
4826
  if test -s conftest.err; then
 
4827
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4828
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4829
  else
 
4830
    ac_cpp_err=
 
4831
  fi
 
4832
else
 
4833
  ac_cpp_err=yes
 
4834
fi
 
4835
if test -z "$ac_cpp_err"; then
 
4836
  :
 
4837
else
 
4838
  echo "$as_me: failed program was:" >&5
 
4839
sed 's/^/| /' conftest.$ac_ext >&5
 
4840
 
 
4841
  # Broken: fails on valid input.
 
4842
continue
 
4843
fi
 
4844
rm -f conftest.err conftest.$ac_ext
 
4845
 
 
4846
  # OK, works on sane cases.  Now check whether non-existent headers
 
4847
  # can be detected and how.
 
4848
  cat >conftest.$ac_ext <<_ACEOF
 
4849
/* confdefs.h.  */
 
4850
_ACEOF
 
4851
cat confdefs.h >>conftest.$ac_ext
 
4852
cat >>conftest.$ac_ext <<_ACEOF
 
4853
/* end confdefs.h.  */
 
4854
#include <ac_nonexistent.h>
 
4855
_ACEOF
 
4856
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4857
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4858
  ac_status=$?
 
4859
  grep -v '^ *+' conftest.er1 >conftest.err
 
4860
  rm -f conftest.er1
 
4861
  cat conftest.err >&5
 
4862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4863
  (exit $ac_status); } >/dev/null; then
 
4864
  if test -s conftest.err; then
 
4865
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4866
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4867
  else
 
4868
    ac_cpp_err=
 
4869
  fi
 
4870
else
 
4871
  ac_cpp_err=yes
 
4872
fi
 
4873
if test -z "$ac_cpp_err"; then
 
4874
  # Broken: success on invalid input.
 
4875
continue
 
4876
else
 
4877
  echo "$as_me: failed program was:" >&5
 
4878
sed 's/^/| /' conftest.$ac_ext >&5
 
4879
 
 
4880
  # Passes both tests.
 
4881
ac_preproc_ok=:
 
4882
break
 
4883
fi
 
4884
rm -f conftest.err conftest.$ac_ext
 
4885
 
 
4886
done
 
4887
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4888
rm -f conftest.err conftest.$ac_ext
 
4889
if $ac_preproc_ok; then
 
4890
  :
 
4891
else
 
4892
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4893
See \`config.log' for more details." >&5
 
4894
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4895
See \`config.log' for more details." >&2;}
 
4896
   { (exit 1); exit 1; }; }
 
4897
fi
 
4898
 
 
4899
ac_ext=c
 
4900
ac_cpp='$CPP $CPPFLAGS'
 
4901
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4902
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4903
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4904
 
 
4905
 
 
4906
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4907
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4908
if test "${ac_cv_header_stdc+set}" = set; then
 
4909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4910
else
 
4911
  cat >conftest.$ac_ext <<_ACEOF
 
4912
/* confdefs.h.  */
 
4913
_ACEOF
 
4914
cat confdefs.h >>conftest.$ac_ext
 
4915
cat >>conftest.$ac_ext <<_ACEOF
 
4916
/* end confdefs.h.  */
 
4917
#include <stdlib.h>
 
4918
#include <stdarg.h>
 
4919
#include <string.h>
 
4920
#include <float.h>
 
4921
 
 
4922
int
 
4923
main ()
 
4924
{
 
4925
 
 
4926
  ;
 
4927
  return 0;
 
4928
}
 
4929
_ACEOF
 
4930
rm -f conftest.$ac_objext
 
4931
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4932
  (eval $ac_compile) 2>conftest.er1
 
4933
  ac_status=$?
 
4934
  grep -v '^ *+' conftest.er1 >conftest.err
 
4935
  rm -f conftest.er1
 
4936
  cat conftest.err >&5
 
4937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4938
  (exit $ac_status); } &&
 
4939
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4941
  (eval $ac_try) 2>&5
 
4942
  ac_status=$?
 
4943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4944
  (exit $ac_status); }; } &&
 
4945
         { ac_try='test -s conftest.$ac_objext'
 
4946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4947
  (eval $ac_try) 2>&5
 
4948
  ac_status=$?
 
4949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4950
  (exit $ac_status); }; }; then
 
4951
  ac_cv_header_stdc=yes
 
4952
else
 
4953
  echo "$as_me: failed program was:" >&5
 
4954
sed 's/^/| /' conftest.$ac_ext >&5
 
4955
 
 
4956
ac_cv_header_stdc=no
 
4957
fi
 
4958
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4959
 
 
4960
if test $ac_cv_header_stdc = yes; then
 
4961
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4962
  cat >conftest.$ac_ext <<_ACEOF
 
4963
/* confdefs.h.  */
 
4964
_ACEOF
 
4965
cat confdefs.h >>conftest.$ac_ext
 
4966
cat >>conftest.$ac_ext <<_ACEOF
 
4967
/* end confdefs.h.  */
 
4968
#include <string.h>
 
4969
 
 
4970
_ACEOF
 
4971
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4972
  $EGREP "memchr" >/dev/null 2>&1; then
 
4973
  :
 
4974
else
 
4975
  ac_cv_header_stdc=no
 
4976
fi
 
4977
rm -f conftest*
 
4978
 
 
4979
fi
 
4980
 
 
4981
if test $ac_cv_header_stdc = yes; then
 
4982
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4983
  cat >conftest.$ac_ext <<_ACEOF
 
4984
/* confdefs.h.  */
 
4985
_ACEOF
 
4986
cat confdefs.h >>conftest.$ac_ext
 
4987
cat >>conftest.$ac_ext <<_ACEOF
 
4988
/* end confdefs.h.  */
 
4989
#include <stdlib.h>
 
4990
 
 
4991
_ACEOF
 
4992
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4993
  $EGREP "free" >/dev/null 2>&1; then
 
4994
  :
 
4995
else
 
4996
  ac_cv_header_stdc=no
 
4997
fi
 
4998
rm -f conftest*
 
4999
 
 
5000
fi
 
5001
 
 
5002
if test $ac_cv_header_stdc = yes; then
 
5003
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5004
  if test "$cross_compiling" = yes; then
 
5005
  :
 
5006
else
 
5007
  cat >conftest.$ac_ext <<_ACEOF
 
5008
/* confdefs.h.  */
 
5009
_ACEOF
 
5010
cat confdefs.h >>conftest.$ac_ext
 
5011
cat >>conftest.$ac_ext <<_ACEOF
 
5012
/* end confdefs.h.  */
 
5013
#include <ctype.h>
 
5014
#if ((' ' & 0x0FF) == 0x020)
 
5015
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5016
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5017
#else
 
5018
# define ISLOWER(c) \
 
5019
                   (('a' <= (c) && (c) <= 'i') \
 
5020
                     || ('j' <= (c) && (c) <= 'r') \
 
5021
                     || ('s' <= (c) && (c) <= 'z'))
 
5022
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5023
#endif
 
5024
 
 
5025
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5026
int
 
5027
main ()
 
5028
{
 
5029
  int i;
 
5030
  for (i = 0; i < 256; i++)
 
5031
    if (XOR (islower (i), ISLOWER (i))
 
5032
        || toupper (i) != TOUPPER (i))
 
5033
      exit(2);
 
5034
  exit (0);
 
5035
}
 
5036
_ACEOF
 
5037
rm -f conftest$ac_exeext
 
5038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5039
  (eval $ac_link) 2>&5
 
5040
  ac_status=$?
 
5041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5042
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5044
  (eval $ac_try) 2>&5
 
5045
  ac_status=$?
 
5046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5047
  (exit $ac_status); }; }; then
 
5048
  :
 
5049
else
 
5050
  echo "$as_me: program exited with status $ac_status" >&5
 
5051
echo "$as_me: failed program was:" >&5
 
5052
sed 's/^/| /' conftest.$ac_ext >&5
 
5053
 
 
5054
( exit $ac_status )
 
5055
ac_cv_header_stdc=no
 
5056
fi
 
5057
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5058
fi
 
5059
fi
 
5060
fi
 
5061
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5062
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5063
if test $ac_cv_header_stdc = yes; then
 
5064
 
 
5065
cat >>confdefs.h <<\_ACEOF
 
5066
#define STDC_HEADERS 1
 
5067
_ACEOF
 
5068
 
 
5069
fi
 
5070
 
 
5071
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5072
 
 
5073
 
 
5074
 
 
5075
 
 
5076
 
 
5077
 
 
5078
 
 
5079
 
 
5080
 
 
5081
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5082
                  inttypes.h stdint.h unistd.h
 
5083
do
 
5084
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5085
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5086
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5087
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5089
else
 
5090
  cat >conftest.$ac_ext <<_ACEOF
 
5091
/* confdefs.h.  */
 
5092
_ACEOF
 
5093
cat confdefs.h >>conftest.$ac_ext
 
5094
cat >>conftest.$ac_ext <<_ACEOF
 
5095
/* end confdefs.h.  */
 
5096
$ac_includes_default
 
5097
 
 
5098
#include <$ac_header>
 
5099
_ACEOF
 
5100
rm -f conftest.$ac_objext
 
5101
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5102
  (eval $ac_compile) 2>conftest.er1
 
5103
  ac_status=$?
 
5104
  grep -v '^ *+' conftest.er1 >conftest.err
 
5105
  rm -f conftest.er1
 
5106
  cat conftest.err >&5
 
5107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5108
  (exit $ac_status); } &&
 
5109
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5111
  (eval $ac_try) 2>&5
 
5112
  ac_status=$?
 
5113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5114
  (exit $ac_status); }; } &&
 
5115
         { ac_try='test -s conftest.$ac_objext'
 
5116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5117
  (eval $ac_try) 2>&5
 
5118
  ac_status=$?
 
5119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5120
  (exit $ac_status); }; }; then
 
5121
  eval "$as_ac_Header=yes"
 
5122
else
 
5123
  echo "$as_me: failed program was:" >&5
 
5124
sed 's/^/| /' conftest.$ac_ext >&5
 
5125
 
 
5126
eval "$as_ac_Header=no"
 
5127
fi
 
5128
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5129
fi
 
5130
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5131
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5132
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5133
  cat >>confdefs.h <<_ACEOF
 
5134
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5135
_ACEOF
 
5136
 
 
5137
fi
 
5138
 
 
5139
done
 
5140
 
 
5141
 
 
5142
 
 
5143
for ac_header in dlfcn.h
 
5144
do
 
5145
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5146
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5147
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5148
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5149
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5151
fi
 
5152
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5153
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5154
else
 
5155
  # Is the header compilable?
 
5156
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5157
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5158
cat >conftest.$ac_ext <<_ACEOF
 
5159
/* confdefs.h.  */
 
5160
_ACEOF
 
5161
cat confdefs.h >>conftest.$ac_ext
 
5162
cat >>conftest.$ac_ext <<_ACEOF
 
5163
/* end confdefs.h.  */
 
5164
$ac_includes_default
 
5165
#include <$ac_header>
 
5166
_ACEOF
 
5167
rm -f conftest.$ac_objext
 
5168
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5169
  (eval $ac_compile) 2>conftest.er1
 
5170
  ac_status=$?
 
5171
  grep -v '^ *+' conftest.er1 >conftest.err
 
5172
  rm -f conftest.er1
 
5173
  cat conftest.err >&5
 
5174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5175
  (exit $ac_status); } &&
 
5176
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5178
  (eval $ac_try) 2>&5
 
5179
  ac_status=$?
 
5180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5181
  (exit $ac_status); }; } &&
 
5182
         { ac_try='test -s conftest.$ac_objext'
 
5183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5184
  (eval $ac_try) 2>&5
 
5185
  ac_status=$?
 
5186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5187
  (exit $ac_status); }; }; then
 
5188
  ac_header_compiler=yes
 
5189
else
 
5190
  echo "$as_me: failed program was:" >&5
 
5191
sed 's/^/| /' conftest.$ac_ext >&5
 
5192
 
 
5193
ac_header_compiler=no
 
5194
fi
 
5195
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5196
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5197
echo "${ECHO_T}$ac_header_compiler" >&6
 
5198
 
 
5199
# Is the header present?
 
5200
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5201
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5202
cat >conftest.$ac_ext <<_ACEOF
 
5203
/* confdefs.h.  */
 
5204
_ACEOF
 
5205
cat confdefs.h >>conftest.$ac_ext
 
5206
cat >>conftest.$ac_ext <<_ACEOF
 
5207
/* end confdefs.h.  */
 
5208
#include <$ac_header>
 
5209
_ACEOF
 
5210
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5211
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5212
  ac_status=$?
 
5213
  grep -v '^ *+' conftest.er1 >conftest.err
 
5214
  rm -f conftest.er1
 
5215
  cat conftest.err >&5
 
5216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5217
  (exit $ac_status); } >/dev/null; then
 
5218
  if test -s conftest.err; then
 
5219
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5220
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5221
  else
 
5222
    ac_cpp_err=
 
5223
  fi
 
5224
else
 
5225
  ac_cpp_err=yes
 
5226
fi
 
5227
if test -z "$ac_cpp_err"; then
 
5228
  ac_header_preproc=yes
 
5229
else
 
5230
  echo "$as_me: failed program was:" >&5
 
5231
sed 's/^/| /' conftest.$ac_ext >&5
 
5232
 
 
5233
  ac_header_preproc=no
 
5234
fi
 
5235
rm -f conftest.err conftest.$ac_ext
 
5236
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5237
echo "${ECHO_T}$ac_header_preproc" >&6
 
5238
 
 
5239
# So?  What about this header?
 
5240
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5241
  yes:no: )
 
5242
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5243
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5244
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5245
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5246
    ac_header_preproc=yes
 
5247
    ;;
 
5248
  no:yes:* )
 
5249
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5250
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5251
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5252
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5253
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5254
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5255
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5256
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5257
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5258
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5259
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5260
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5261
    (
 
5262
      cat <<\_ASBOX
 
5263
## ------------------------------------------ ##
 
5264
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5265
## ------------------------------------------ ##
 
5266
_ASBOX
 
5267
    ) |
 
5268
      sed "s/^/$as_me: WARNING:     /" >&2
 
5269
    ;;
 
5270
esac
 
5271
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5272
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5273
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5275
else
 
5276
  eval "$as_ac_Header=\$ac_header_preproc"
 
5277
fi
 
5278
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5279
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5280
 
 
5281
fi
 
5282
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5283
  cat >>confdefs.h <<_ACEOF
 
5284
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5285
_ACEOF
 
5286
 
 
5287
fi
 
5288
 
 
5289
done
 
5290
 
 
5291
ac_ext=cc
 
5292
ac_cpp='$CXXCPP $CPPFLAGS'
 
5293
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5294
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5295
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5296
if test -n "$ac_tool_prefix"; then
 
5297
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5298
  do
 
5299
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5300
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5301
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5302
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5303
if test "${ac_cv_prog_CXX+set}" = set; then
 
5304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5305
else
 
5306
  if test -n "$CXX"; then
 
5307
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5308
else
 
5309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5310
for as_dir in $PATH
 
5311
do
 
5312
  IFS=$as_save_IFS
 
5313
  test -z "$as_dir" && as_dir=.
 
5314
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5315
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5316
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5317
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5318
    break 2
 
5319
  fi
 
5320
done
 
5321
done
 
5322
 
 
5323
fi
 
5324
fi
 
5325
CXX=$ac_cv_prog_CXX
 
5326
if test -n "$CXX"; then
 
5327
  echo "$as_me:$LINENO: result: $CXX" >&5
 
5328
echo "${ECHO_T}$CXX" >&6
 
5329
else
 
5330
  echo "$as_me:$LINENO: result: no" >&5
 
5331
echo "${ECHO_T}no" >&6
 
5332
fi
 
5333
 
 
5334
    test -n "$CXX" && break
 
5335
  done
 
5336
fi
 
5337
if test -z "$CXX"; then
 
5338
  ac_ct_CXX=$CXX
 
5339
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5340
do
 
5341
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5342
set dummy $ac_prog; ac_word=$2
 
5343
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5345
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5347
else
 
5348
  if test -n "$ac_ct_CXX"; then
 
5349
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5350
else
 
5351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5352
for as_dir in $PATH
 
5353
do
 
5354
  IFS=$as_save_IFS
 
5355
  test -z "$as_dir" && as_dir=.
 
5356
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5357
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5358
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5359
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5360
    break 2
 
5361
  fi
 
5362
done
 
5363
done
 
5364
 
 
5365
fi
 
5366
fi
 
5367
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5368
if test -n "$ac_ct_CXX"; then
 
5369
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5370
echo "${ECHO_T}$ac_ct_CXX" >&6
 
5371
else
 
5372
  echo "$as_me:$LINENO: result: no" >&5
 
5373
echo "${ECHO_T}no" >&6
 
5374
fi
 
5375
 
 
5376
  test -n "$ac_ct_CXX" && break
 
5377
done
 
5378
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
5379
 
 
5380
  CXX=$ac_ct_CXX
 
5381
fi
 
5382
 
 
5383
 
 
5384
# Provide some information about the compiler.
 
5385
echo "$as_me:$LINENO:" \
 
5386
     "checking for C++ compiler version" >&5
 
5387
ac_compiler=`set X $ac_compile; echo $2`
 
5388
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5389
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5390
  ac_status=$?
 
5391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5392
  (exit $ac_status); }
 
5393
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5394
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5395
  ac_status=$?
 
5396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5397
  (exit $ac_status); }
 
5398
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5399
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5400
  ac_status=$?
 
5401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5402
  (exit $ac_status); }
 
5403
 
 
5404
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5405
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
5406
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5408
else
 
5409
  cat >conftest.$ac_ext <<_ACEOF
 
5410
/* confdefs.h.  */
 
5411
_ACEOF
 
5412
cat confdefs.h >>conftest.$ac_ext
 
5413
cat >>conftest.$ac_ext <<_ACEOF
 
5414
/* end confdefs.h.  */
 
5415
 
 
5416
int
 
5417
main ()
 
5418
{
 
5419
#ifndef __GNUC__
 
5420
       choke me
 
5421
#endif
 
5422
 
 
5423
  ;
 
5424
  return 0;
 
5425
}
 
5426
_ACEOF
 
5427
rm -f conftest.$ac_objext
 
5428
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5429
  (eval $ac_compile) 2>conftest.er1
 
5430
  ac_status=$?
 
5431
  grep -v '^ *+' conftest.er1 >conftest.err
 
5432
  rm -f conftest.er1
 
5433
  cat conftest.err >&5
 
5434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5435
  (exit $ac_status); } &&
 
5436
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5438
  (eval $ac_try) 2>&5
 
5439
  ac_status=$?
 
5440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5441
  (exit $ac_status); }; } &&
 
5442
         { ac_try='test -s conftest.$ac_objext'
 
5443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5444
  (eval $ac_try) 2>&5
 
5445
  ac_status=$?
 
5446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5447
  (exit $ac_status); }; }; then
 
5448
  ac_compiler_gnu=yes
 
5449
else
 
5450
  echo "$as_me: failed program was:" >&5
 
5451
sed 's/^/| /' conftest.$ac_ext >&5
 
5452
 
 
5453
ac_compiler_gnu=no
 
5454
fi
 
5455
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5456
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5457
 
 
5458
fi
 
5459
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5460
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5461
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5462
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5463
ac_save_CXXFLAGS=$CXXFLAGS
 
5464
CXXFLAGS="-g"
 
5465
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5466
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5467
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5469
else
 
5470
  cat >conftest.$ac_ext <<_ACEOF
 
5471
/* confdefs.h.  */
 
5472
_ACEOF
 
5473
cat confdefs.h >>conftest.$ac_ext
 
5474
cat >>conftest.$ac_ext <<_ACEOF
 
5475
/* end confdefs.h.  */
 
5476
 
 
5477
int
 
5478
main ()
 
5479
{
 
5480
 
 
5481
  ;
 
5482
  return 0;
 
5483
}
 
5484
_ACEOF
 
5485
rm -f conftest.$ac_objext
 
5486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5487
  (eval $ac_compile) 2>conftest.er1
 
5488
  ac_status=$?
 
5489
  grep -v '^ *+' conftest.er1 >conftest.err
 
5490
  rm -f conftest.er1
 
5491
  cat conftest.err >&5
 
5492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5493
  (exit $ac_status); } &&
 
5494
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5496
  (eval $ac_try) 2>&5
 
5497
  ac_status=$?
 
5498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5499
  (exit $ac_status); }; } &&
 
5500
         { ac_try='test -s conftest.$ac_objext'
 
5501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5502
  (eval $ac_try) 2>&5
 
5503
  ac_status=$?
 
5504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5505
  (exit $ac_status); }; }; then
 
5506
  ac_cv_prog_cxx_g=yes
 
5507
else
 
5508
  echo "$as_me: failed program was:" >&5
 
5509
sed 's/^/| /' conftest.$ac_ext >&5
 
5510
 
 
5511
ac_cv_prog_cxx_g=no
 
5512
fi
 
5513
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5514
fi
 
5515
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5516
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5517
if test "$ac_test_CXXFLAGS" = set; then
 
5518
  CXXFLAGS=$ac_save_CXXFLAGS
 
5519
elif test $ac_cv_prog_cxx_g = yes; then
 
5520
  if test "$GXX" = yes; then
 
5521
    CXXFLAGS="-g -O2"
 
5522
  else
 
5523
    CXXFLAGS="-g"
 
5524
  fi
 
5525
else
 
5526
  if test "$GXX" = yes; then
 
5527
    CXXFLAGS="-O2"
 
5528
  else
 
5529
    CXXFLAGS=
 
5530
  fi
 
5531
fi
 
5532
for ac_declaration in \
 
5533
   '' \
 
5534
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
5535
   'extern "C" void std::exit (int); using std::exit;' \
 
5536
   'extern "C" void exit (int) throw ();' \
 
5537
   'extern "C" void exit (int);' \
 
5538
   'void exit (int);'
 
5539
do
 
5540
  cat >conftest.$ac_ext <<_ACEOF
 
5541
/* confdefs.h.  */
 
5542
_ACEOF
 
5543
cat confdefs.h >>conftest.$ac_ext
 
5544
cat >>conftest.$ac_ext <<_ACEOF
 
5545
/* end confdefs.h.  */
 
5546
$ac_declaration
 
5547
#include <stdlib.h>
 
5548
int
 
5549
main ()
 
5550
{
 
5551
exit (42);
 
5552
  ;
 
5553
  return 0;
 
5554
}
 
5555
_ACEOF
 
5556
rm -f conftest.$ac_objext
 
5557
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5558
  (eval $ac_compile) 2>conftest.er1
 
5559
  ac_status=$?
 
5560
  grep -v '^ *+' conftest.er1 >conftest.err
 
5561
  rm -f conftest.er1
 
5562
  cat conftest.err >&5
 
5563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5564
  (exit $ac_status); } &&
 
5565
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5567
  (eval $ac_try) 2>&5
 
5568
  ac_status=$?
 
5569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5570
  (exit $ac_status); }; } &&
 
5571
         { ac_try='test -s conftest.$ac_objext'
 
5572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5573
  (eval $ac_try) 2>&5
 
5574
  ac_status=$?
 
5575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5576
  (exit $ac_status); }; }; then
 
5577
  :
 
5578
else
 
5579
  echo "$as_me: failed program was:" >&5
 
5580
sed 's/^/| /' conftest.$ac_ext >&5
 
5581
 
 
5582
continue
 
5583
fi
 
5584
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5585
  cat >conftest.$ac_ext <<_ACEOF
 
5586
/* confdefs.h.  */
 
5587
_ACEOF
 
5588
cat confdefs.h >>conftest.$ac_ext
 
5589
cat >>conftest.$ac_ext <<_ACEOF
 
5590
/* end confdefs.h.  */
 
5591
$ac_declaration
 
5592
int
 
5593
main ()
 
5594
{
 
5595
exit (42);
 
5596
  ;
 
5597
  return 0;
 
5598
}
 
5599
_ACEOF
 
5600
rm -f conftest.$ac_objext
 
5601
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5602
  (eval $ac_compile) 2>conftest.er1
 
5603
  ac_status=$?
 
5604
  grep -v '^ *+' conftest.er1 >conftest.err
 
5605
  rm -f conftest.er1
 
5606
  cat conftest.err >&5
 
5607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5608
  (exit $ac_status); } &&
 
5609
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5611
  (eval $ac_try) 2>&5
 
5612
  ac_status=$?
 
5613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5614
  (exit $ac_status); }; } &&
 
5615
         { ac_try='test -s conftest.$ac_objext'
 
5616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5617
  (eval $ac_try) 2>&5
 
5618
  ac_status=$?
 
5619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5620
  (exit $ac_status); }; }; then
 
5621
  break
 
5622
else
 
5623
  echo "$as_me: failed program was:" >&5
 
5624
sed 's/^/| /' conftest.$ac_ext >&5
 
5625
 
 
5626
fi
 
5627
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5628
done
 
5629
rm -f conftest*
 
5630
if test -n "$ac_declaration"; then
 
5631
  echo '#ifdef __cplusplus' >>confdefs.h
 
5632
  echo $ac_declaration      >>confdefs.h
 
5633
  echo '#endif'             >>confdefs.h
 
5634
fi
 
5635
 
 
5636
ac_ext=cc
 
5637
ac_cpp='$CXXCPP $CPPFLAGS'
 
5638
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5639
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5640
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5641
 
 
5642
depcc="$CXX"  am_compiler_list=
 
5643
 
 
5644
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5645
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5646
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5647
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5648
else
 
5649
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5650
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5651
  # making bogus files that we don't know about and never remove.  For
 
5652
  # instance it was reported that on HP-UX the gcc test will end up
 
5653
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5654
  # in D'.
 
5655
  mkdir conftest.dir
 
5656
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5657
  # using a relative directory.
 
5658
  cp "$am_depcomp" conftest.dir
 
5659
  cd conftest.dir
 
5660
 
 
5661
  am_cv_CXX_dependencies_compiler_type=none
 
5662
  if test "$am_compiler_list" = ""; then
 
5663
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5664
  fi
 
5665
  for depmode in $am_compiler_list; do
 
5666
    # We need to recreate these files for each test, as the compiler may
 
5667
    # overwrite some of them when testing with obscure command lines.
 
5668
    # This happens at least with the AIX C compiler.
 
5669
    echo '#include "conftest.h"' > conftest.c
 
5670
    echo 'int i;' > conftest.h
 
5671
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
5672
 
 
5673
    case $depmode in
 
5674
    nosideeffect)
 
5675
      # after this tag, mechanisms are not by side-effect, so they'll
 
5676
      # only be used when explicitly requested
 
5677
      if test "x$enable_dependency_tracking" = xyes; then
 
5678
        continue
 
5679
      else
 
5680
        break
 
5681
      fi
 
5682
      ;;
 
5683
    none) break ;;
 
5684
    esac
 
5685
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5686
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5687
    # handle `-M -o', and we need to detect this.
 
5688
    if depmode=$depmode \
 
5689
       source=conftest.c object=conftest.o \
 
5690
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
5691
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
5692
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
5693
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5694
      am_cv_CXX_dependencies_compiler_type=$depmode
 
5695
      break
 
5696
    fi
 
5697
  done
 
5698
 
 
5699
  cd ..
 
5700
  rm -rf conftest.dir
 
5701
else
 
5702
  am_cv_CXX_dependencies_compiler_type=none
 
5703
fi
 
5704
 
 
5705
fi
 
5706
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5707
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
5708
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5709
 
 
5710
 
 
5711
ac_ext=cc
 
5712
ac_cpp='$CXXCPP $CPPFLAGS'
 
5713
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5714
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5715
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5716
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5717
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5718
if test -z "$CXXCPP"; then
 
5719
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5721
else
 
5722
      # Double quotes because CXXCPP needs to be expanded
 
5723
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5724
    do
 
5725
      ac_preproc_ok=false
 
5726
for ac_cxx_preproc_warn_flag in '' yes
 
5727
do
 
5728
  # Use a header file that comes with gcc, so configuring glibc
 
5729
  # with a fresh cross-compiler works.
 
5730
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5731
  # <limits.h> exists even on freestanding compilers.
 
5732
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5733
  # not just through cpp. "Syntax error" is here to catch this case.
 
5734
  cat >conftest.$ac_ext <<_ACEOF
 
5735
/* confdefs.h.  */
 
5736
_ACEOF
 
5737
cat confdefs.h >>conftest.$ac_ext
 
5738
cat >>conftest.$ac_ext <<_ACEOF
 
5739
/* end confdefs.h.  */
 
5740
#ifdef __STDC__
 
5741
# include <limits.h>
 
5742
#else
 
5743
# include <assert.h>
 
5744
#endif
 
5745
                     Syntax error
 
5746
_ACEOF
 
5747
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5748
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5749
  ac_status=$?
 
5750
  grep -v '^ *+' conftest.er1 >conftest.err
 
5751
  rm -f conftest.er1
 
5752
  cat conftest.err >&5
 
5753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5754
  (exit $ac_status); } >/dev/null; then
 
5755
  if test -s conftest.err; then
 
5756
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5757
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5758
  else
 
5759
    ac_cpp_err=
 
5760
  fi
 
5761
else
 
5762
  ac_cpp_err=yes
 
5763
fi
 
5764
if test -z "$ac_cpp_err"; then
 
5765
  :
 
5766
else
 
5767
  echo "$as_me: failed program was:" >&5
 
5768
sed 's/^/| /' conftest.$ac_ext >&5
 
5769
 
 
5770
  # Broken: fails on valid input.
 
5771
continue
 
5772
fi
 
5773
rm -f conftest.err conftest.$ac_ext
 
5774
 
 
5775
  # OK, works on sane cases.  Now check whether non-existent headers
 
5776
  # can be detected and how.
 
5777
  cat >conftest.$ac_ext <<_ACEOF
 
5778
/* confdefs.h.  */
 
5779
_ACEOF
 
5780
cat confdefs.h >>conftest.$ac_ext
 
5781
cat >>conftest.$ac_ext <<_ACEOF
 
5782
/* end confdefs.h.  */
 
5783
#include <ac_nonexistent.h>
 
5784
_ACEOF
 
5785
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5786
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5787
  ac_status=$?
 
5788
  grep -v '^ *+' conftest.er1 >conftest.err
 
5789
  rm -f conftest.er1
 
5790
  cat conftest.err >&5
 
5791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5792
  (exit $ac_status); } >/dev/null; then
 
5793
  if test -s conftest.err; then
 
5794
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5795
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5796
  else
 
5797
    ac_cpp_err=
 
5798
  fi
 
5799
else
 
5800
  ac_cpp_err=yes
 
5801
fi
 
5802
if test -z "$ac_cpp_err"; then
 
5803
  # Broken: success on invalid input.
 
5804
continue
 
5805
else
 
5806
  echo "$as_me: failed program was:" >&5
 
5807
sed 's/^/| /' conftest.$ac_ext >&5
 
5808
 
 
5809
  # Passes both tests.
 
5810
ac_preproc_ok=:
 
5811
break
 
5812
fi
 
5813
rm -f conftest.err conftest.$ac_ext
 
5814
 
 
5815
done
 
5816
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5817
rm -f conftest.err conftest.$ac_ext
 
5818
if $ac_preproc_ok; then
 
5819
  break
 
5820
fi
 
5821
 
 
5822
    done
 
5823
    ac_cv_prog_CXXCPP=$CXXCPP
 
5824
 
 
5825
fi
 
5826
  CXXCPP=$ac_cv_prog_CXXCPP
 
5827
else
 
5828
  ac_cv_prog_CXXCPP=$CXXCPP
 
5829
fi
 
5830
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5831
echo "${ECHO_T}$CXXCPP" >&6
 
5832
ac_preproc_ok=false
 
5833
for ac_cxx_preproc_warn_flag in '' yes
 
5834
do
 
5835
  # Use a header file that comes with gcc, so configuring glibc
 
5836
  # with a fresh cross-compiler works.
 
5837
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5838
  # <limits.h> exists even on freestanding compilers.
 
5839
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5840
  # not just through cpp. "Syntax error" is here to catch this case.
 
5841
  cat >conftest.$ac_ext <<_ACEOF
 
5842
/* confdefs.h.  */
 
5843
_ACEOF
 
5844
cat confdefs.h >>conftest.$ac_ext
 
5845
cat >>conftest.$ac_ext <<_ACEOF
 
5846
/* end confdefs.h.  */
 
5847
#ifdef __STDC__
 
5848
# include <limits.h>
 
5849
#else
 
5850
# include <assert.h>
 
5851
#endif
 
5852
                     Syntax error
 
5853
_ACEOF
 
5854
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5855
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5856
  ac_status=$?
 
5857
  grep -v '^ *+' conftest.er1 >conftest.err
 
5858
  rm -f conftest.er1
 
5859
  cat conftest.err >&5
 
5860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5861
  (exit $ac_status); } >/dev/null; then
 
5862
  if test -s conftest.err; then
 
5863
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5864
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5865
  else
 
5866
    ac_cpp_err=
 
5867
  fi
 
5868
else
 
5869
  ac_cpp_err=yes
 
5870
fi
 
5871
if test -z "$ac_cpp_err"; then
 
5872
  :
 
5873
else
 
5874
  echo "$as_me: failed program was:" >&5
 
5875
sed 's/^/| /' conftest.$ac_ext >&5
 
5876
 
 
5877
  # Broken: fails on valid input.
 
5878
continue
 
5879
fi
 
5880
rm -f conftest.err conftest.$ac_ext
 
5881
 
 
5882
  # OK, works on sane cases.  Now check whether non-existent headers
 
5883
  # can be detected and how.
 
5884
  cat >conftest.$ac_ext <<_ACEOF
 
5885
/* confdefs.h.  */
 
5886
_ACEOF
 
5887
cat confdefs.h >>conftest.$ac_ext
 
5888
cat >>conftest.$ac_ext <<_ACEOF
 
5889
/* end confdefs.h.  */
 
5890
#include <ac_nonexistent.h>
 
5891
_ACEOF
 
5892
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5893
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5894
  ac_status=$?
 
5895
  grep -v '^ *+' conftest.er1 >conftest.err
 
5896
  rm -f conftest.er1
 
5897
  cat conftest.err >&5
 
5898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5899
  (exit $ac_status); } >/dev/null; then
 
5900
  if test -s conftest.err; then
 
5901
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5902
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5903
  else
 
5904
    ac_cpp_err=
 
5905
  fi
 
5906
else
 
5907
  ac_cpp_err=yes
 
5908
fi
 
5909
if test -z "$ac_cpp_err"; then
 
5910
  # Broken: success on invalid input.
 
5911
continue
 
5912
else
 
5913
  echo "$as_me: failed program was:" >&5
 
5914
sed 's/^/| /' conftest.$ac_ext >&5
 
5915
 
 
5916
  # Passes both tests.
 
5917
ac_preproc_ok=:
 
5918
break
 
5919
fi
 
5920
rm -f conftest.err conftest.$ac_ext
 
5921
 
 
5922
done
 
5923
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5924
rm -f conftest.err conftest.$ac_ext
 
5925
if $ac_preproc_ok; then
 
5926
  :
 
5927
else
 
5928
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5929
See \`config.log' for more details." >&5
 
5930
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5931
See \`config.log' for more details." >&2;}
 
5932
   { (exit 1); exit 1; }; }
 
5933
fi
 
5934
 
 
5935
ac_ext=cc
 
5936
ac_cpp='$CXXCPP $CPPFLAGS'
 
5937
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5938
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5939
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5940
 
 
5941
 
 
5942
ac_ext=f
 
5943
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5944
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5945
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5946
if test -n "$ac_tool_prefix"; then
 
5947
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5948
  do
 
5949
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5950
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5951
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5953
if test "${ac_cv_prog_F77+set}" = set; then
 
5954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5955
else
 
5956
  if test -n "$F77"; then
 
5957
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5958
else
 
5959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5960
for as_dir in $PATH
 
5961
do
 
5962
  IFS=$as_save_IFS
 
5963
  test -z "$as_dir" && as_dir=.
 
5964
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5965
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5966
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5967
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5968
    break 2
 
5969
  fi
 
5970
done
 
5971
done
 
5972
 
 
5973
fi
 
5974
fi
 
5975
F77=$ac_cv_prog_F77
 
5976
if test -n "$F77"; then
 
5977
  echo "$as_me:$LINENO: result: $F77" >&5
 
5978
echo "${ECHO_T}$F77" >&6
 
5979
else
 
5980
  echo "$as_me:$LINENO: result: no" >&5
 
5981
echo "${ECHO_T}no" >&6
 
5982
fi
 
5983
 
 
5984
    test -n "$F77" && break
 
5985
  done
 
5986
fi
 
5987
if test -z "$F77"; then
 
5988
  ac_ct_F77=$F77
 
5989
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5990
do
 
5991
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5992
set dummy $ac_prog; ac_word=$2
 
5993
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5995
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5997
else
 
5998
  if test -n "$ac_ct_F77"; then
 
5999
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6000
else
 
6001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6002
for as_dir in $PATH
 
6003
do
 
6004
  IFS=$as_save_IFS
 
6005
  test -z "$as_dir" && as_dir=.
 
6006
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6007
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6008
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6009
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6010
    break 2
 
6011
  fi
 
6012
done
 
6013
done
 
6014
 
 
6015
fi
 
6016
fi
 
6017
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6018
if test -n "$ac_ct_F77"; then
 
6019
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6020
echo "${ECHO_T}$ac_ct_F77" >&6
 
6021
else
 
6022
  echo "$as_me:$LINENO: result: no" >&5
 
6023
echo "${ECHO_T}no" >&6
 
6024
fi
 
6025
 
 
6026
  test -n "$ac_ct_F77" && break
 
6027
done
 
6028
 
 
6029
  F77=$ac_ct_F77
 
6030
fi
 
6031
 
 
6032
 
 
6033
# Provide some information about the compiler.
 
6034
echo "$as_me:6034:" \
 
6035
     "checking for Fortran 77 compiler version" >&5
 
6036
ac_compiler=`set X $ac_compile; echo $2`
 
6037
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6038
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6039
  ac_status=$?
 
6040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6041
  (exit $ac_status); }
 
6042
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6043
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6044
  ac_status=$?
 
6045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6046
  (exit $ac_status); }
 
6047
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6048
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6049
  ac_status=$?
 
6050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6051
  (exit $ac_status); }
 
6052
rm -f a.out
 
6053
 
 
6054
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6055
# input file.  (Note that this only needs to work for GNU compilers.)
 
6056
ac_save_ext=$ac_ext
 
6057
ac_ext=F
 
6058
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6059
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6060
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6062
else
 
6063
  cat >conftest.$ac_ext <<_ACEOF
 
6064
      program main
 
6065
#ifndef __GNUC__
 
6066
       choke me
 
6067
#endif
 
6068
 
 
6069
      end
 
6070
_ACEOF
 
6071
rm -f conftest.$ac_objext
 
6072
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6073
  (eval $ac_compile) 2>conftest.er1
 
6074
  ac_status=$?
 
6075
  grep -v '^ *+' conftest.er1 >conftest.err
 
6076
  rm -f conftest.er1
 
6077
  cat conftest.err >&5
 
6078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6079
  (exit $ac_status); } &&
 
6080
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6081
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6082
  (eval $ac_try) 2>&5
 
6083
  ac_status=$?
 
6084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6085
  (exit $ac_status); }; } &&
 
6086
         { ac_try='test -s conftest.$ac_objext'
 
6087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6088
  (eval $ac_try) 2>&5
 
6089
  ac_status=$?
 
6090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6091
  (exit $ac_status); }; }; then
 
6092
  ac_compiler_gnu=yes
 
6093
else
 
6094
  echo "$as_me: failed program was:" >&5
 
6095
sed 's/^/| /' conftest.$ac_ext >&5
 
6096
 
 
6097
ac_compiler_gnu=no
 
6098
fi
 
6099
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6100
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6101
 
 
6102
fi
 
6103
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6104
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6105
ac_ext=$ac_save_ext
 
6106
ac_test_FFLAGS=${FFLAGS+set}
 
6107
ac_save_FFLAGS=$FFLAGS
 
6108
FFLAGS=
 
6109
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6110
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6111
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6113
else
 
6114
  FFLAGS=-g
 
6115
cat >conftest.$ac_ext <<_ACEOF
 
6116
      program main
 
6117
 
 
6118
      end
 
6119
_ACEOF
 
6120
rm -f conftest.$ac_objext
 
6121
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6122
  (eval $ac_compile) 2>conftest.er1
 
6123
  ac_status=$?
 
6124
  grep -v '^ *+' conftest.er1 >conftest.err
 
6125
  rm -f conftest.er1
 
6126
  cat conftest.err >&5
 
6127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6128
  (exit $ac_status); } &&
 
6129
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6131
  (eval $ac_try) 2>&5
 
6132
  ac_status=$?
 
6133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6134
  (exit $ac_status); }; } &&
 
6135
         { ac_try='test -s conftest.$ac_objext'
 
6136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6137
  (eval $ac_try) 2>&5
 
6138
  ac_status=$?
 
6139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6140
  (exit $ac_status); }; }; then
 
6141
  ac_cv_prog_f77_g=yes
 
6142
else
 
6143
  echo "$as_me: failed program was:" >&5
 
6144
sed 's/^/| /' conftest.$ac_ext >&5
 
6145
 
 
6146
ac_cv_prog_f77_g=no
 
6147
fi
 
6148
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6149
 
 
6150
fi
 
6151
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6152
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6153
if test "$ac_test_FFLAGS" = set; then
 
6154
  FFLAGS=$ac_save_FFLAGS
 
6155
elif test $ac_cv_prog_f77_g = yes; then
 
6156
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6157
    FFLAGS="-g -O2"
 
6158
  else
 
6159
    FFLAGS="-g"
 
6160
  fi
 
6161
else
 
6162
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6163
    FFLAGS="-O2"
 
6164
  else
 
6165
    FFLAGS=
 
6166
  fi
 
6167
fi
 
6168
 
 
6169
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6170
ac_ext=c
 
6171
ac_cpp='$CPP $CPPFLAGS'
 
6172
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6173
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6174
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6175
 
 
6176
 
 
6177
 
 
6178
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6179
 
 
6180
# find the maximum length of command line arguments
 
6181
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6182
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6183
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6185
else
 
6186
    i=0
 
6187
  teststring="ABCD"
 
6188
 
 
6189
  case $build_os in
 
6190
  msdosdjgpp*)
 
6191
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6192
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6193
    # during glob expansion).  Even if it were fixed, the result of this
 
6194
    # check would be larger than it should be.
 
6195
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6196
    ;;
 
6197
 
 
6198
  gnu*)
 
6199
    # Under GNU Hurd, this test is not required because there is
 
6200
    # no limit to the length of command line arguments.
 
6201
    # Libtool will interpret -1 as no limit whatsoever
 
6202
    lt_cv_sys_max_cmd_len=-1;
 
6203
    ;;
 
6204
 
 
6205
  cygwin* | mingw*)
 
6206
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6207
    # about 5 minutes as the teststring grows exponentially.
 
6208
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6209
    # you end up with a "frozen" computer, even though with patience
 
6210
    # the test eventually succeeds (with a max line length of 256k).
 
6211
    # Instead, let's just punt: use the minimum linelength reported by
 
6212
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6213
    lt_cv_sys_max_cmd_len=8192;
 
6214
    ;;
 
6215
 
 
6216
  amigaos*)
 
6217
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6218
    # So we just punt and use a minimum line length of 8192.
 
6219
    lt_cv_sys_max_cmd_len=8192;
 
6220
    ;;
 
6221
 
 
6222
 *)
 
6223
    # If test is not a shell built-in, we'll probably end up computing a
 
6224
    # maximum length that is only half of the actual maximum length, but
 
6225
    # we can't tell.
 
6226
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6227
               = "XX$teststring") >/dev/null 2>&1 &&
 
6228
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6229
            lt_cv_sys_max_cmd_len=$new_result &&
 
6230
            test $i != 17 # 1/2 MB should be enough
 
6231
    do
 
6232
      i=`expr $i + 1`
 
6233
      teststring=$teststring$teststring
 
6234
    done
 
6235
    teststring=
 
6236
    # Add a significant safety factor because C++ compilers can tack on massive
 
6237
    # amounts of additional arguments before passing them to the linker.
 
6238
    # It appears as though 1/2 is a usable value.
 
6239
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6240
    ;;
4677
6241
  esac
4678
 
  ;;
4679
 
 
 
6242
 
 
6243
fi
 
6244
 
 
6245
if test -n $lt_cv_sys_max_cmd_len ; then
 
6246
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6247
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6248
else
 
6249
  echo "$as_me:$LINENO: result: none" >&5
 
6250
echo "${ECHO_T}none" >&6
 
6251
fi
 
6252
 
 
6253
 
 
6254
 
 
6255
 
 
6256
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6257
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6258
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6259
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6260
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6261
else
 
6262
 
 
6263
# These are sane defaults that work on at least a few old systems.
 
6264
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6265
 
 
6266
# Character class describing NM global symbol codes.
 
6267
symcode='[BCDEGRST]'
 
6268
 
 
6269
# Regexp to match symbols that can be accessed directly from C.
 
6270
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6271
 
 
6272
# Transform the above into a raw symbol and a C symbol.
 
6273
symxfrm='\1 \2\3 \3'
 
6274
 
 
6275
# Transform an extracted symbol line into a proper C declaration
 
6276
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6277
 
 
6278
# Transform an extracted symbol line into symbol name and symbol address
 
6279
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6280
 
 
6281
# Define system-specific variables.
 
6282
case $host_os in
 
6283
aix*)
 
6284
  symcode='[BCDT]'
 
6285
  ;;
 
6286
cygwin* | mingw* | pw32*)
 
6287
  symcode='[ABCDGISTW]'
 
6288
  ;;
 
6289
hpux*) # Its linker distinguishes data from code symbols
 
6290
  if test "$host_cpu" = ia64; then
 
6291
    symcode='[ABCDEGRST]'
 
6292
  fi
 
6293
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6294
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6295
  ;;
 
6296
irix* | nonstopux*)
 
6297
  symcode='[BCDEGRST]'
 
6298
  ;;
 
6299
osf*)
 
6300
  symcode='[BCDEGQRST]'
 
6301
  ;;
 
6302
solaris* | sysv5*)
 
6303
  symcode='[BDRT]'
 
6304
  ;;
 
6305
sysv4)
 
6306
  symcode='[DFNSTU]'
 
6307
  ;;
 
6308
esac
 
6309
 
 
6310
# Handle CRLF in mingw tool chain
 
6311
opt_cr=
 
6312
case $build_os in
 
6313
mingw*)
 
6314
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6315
  ;;
 
6316
esac
 
6317
 
 
6318
# If we're using GNU nm, then use its standard symbol codes.
 
6319
case `$NM -V 2>&1` in
 
6320
*GNU* | *'with BFD'*)
 
6321
  symcode='[ABCDGIRSTW]' ;;
 
6322
esac
 
6323
 
 
6324
# Try without a prefix undercore, then with it.
 
6325
for ac_symprfx in "" "_"; do
 
6326
 
 
6327
  # Write the raw and C identifiers.
 
6328
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6329
 
 
6330
  # Check to see that the pipe works correctly.
 
6331
  pipe_works=no
 
6332
 
 
6333
  rm -f conftest*
 
6334
  cat > conftest.$ac_ext <<EOF
 
6335
#ifdef __cplusplus
 
6336
extern "C" {
 
6337
#endif
 
6338
char nm_test_var;
 
6339
void nm_test_func(){}
 
6340
#ifdef __cplusplus
 
6341
}
 
6342
#endif
 
6343
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6344
EOF
 
6345
 
 
6346
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6347
  (eval $ac_compile) 2>&5
 
6348
  ac_status=$?
 
6349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6350
  (exit $ac_status); }; then
 
6351
    # Now try to grab the symbols.
 
6352
    nlist=conftest.nm
 
6353
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6354
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6355
  ac_status=$?
 
6356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6357
  (exit $ac_status); } && test -s "$nlist"; then
 
6358
      # Try sorting and uniquifying the output.
 
6359
      if sort "$nlist" | uniq > "$nlist"T; then
 
6360
        mv -f "$nlist"T "$nlist"
 
6361
      else
 
6362
        rm -f "$nlist"T
 
6363
      fi
 
6364
 
 
6365
      # Make sure that we snagged all the symbols we need.
 
6366
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6367
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6368
          cat <<EOF > conftest.$ac_ext
 
6369
#ifdef __cplusplus
 
6370
extern "C" {
 
6371
#endif
 
6372
 
 
6373
EOF
 
6374
          # Now generate the symbol file.
 
6375
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6376
 
 
6377
          cat <<EOF >> conftest.$ac_ext
 
6378
#if defined (__STDC__) && __STDC__
 
6379
# define lt_ptr_t void *
 
6380
#else
 
6381
# define lt_ptr_t char *
 
6382
# define const
 
6383
#endif
 
6384
 
 
6385
/* The mapping between symbol names and symbols. */
 
6386
const struct {
 
6387
  const char *name;
 
6388
  lt_ptr_t address;
 
6389
}
 
6390
lt_preloaded_symbols[] =
 
6391
{
 
6392
EOF
 
6393
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6394
          cat <<\EOF >> conftest.$ac_ext
 
6395
  {0, (lt_ptr_t) 0}
 
6396
};
 
6397
 
 
6398
#ifdef __cplusplus
 
6399
}
 
6400
#endif
 
6401
EOF
 
6402
          # Now try linking the two files.
 
6403
          mv conftest.$ac_objext conftstm.$ac_objext
 
6404
          lt_save_LIBS="$LIBS"
 
6405
          lt_save_CFLAGS="$CFLAGS"
 
6406
          LIBS="conftstm.$ac_objext"
 
6407
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6408
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6409
  (eval $ac_link) 2>&5
 
6410
  ac_status=$?
 
6411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6412
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6413
            pipe_works=yes
 
6414
          fi
 
6415
          LIBS="$lt_save_LIBS"
 
6416
          CFLAGS="$lt_save_CFLAGS"
 
6417
        else
 
6418
          echo "cannot find nm_test_func in $nlist" >&5
 
6419
        fi
 
6420
      else
 
6421
        echo "cannot find nm_test_var in $nlist" >&5
 
6422
      fi
 
6423
    else
 
6424
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6425
    fi
 
6426
  else
 
6427
    echo "$progname: failed program was:" >&5
 
6428
    cat conftest.$ac_ext >&5
 
6429
  fi
 
6430
  rm -f conftest* conftst*
 
6431
 
 
6432
  # Do not use the global_symbol_pipe unless it works.
 
6433
  if test "$pipe_works" = yes; then
 
6434
    break
 
6435
  else
 
6436
    lt_cv_sys_global_symbol_pipe=
 
6437
  fi
 
6438
done
 
6439
 
 
6440
fi
 
6441
 
 
6442
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6443
  lt_cv_sys_global_symbol_to_cdecl=
 
6444
fi
 
6445
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6446
  echo "$as_me:$LINENO: result: failed" >&5
 
6447
echo "${ECHO_T}failed" >&6
 
6448
else
 
6449
  echo "$as_me:$LINENO: result: ok" >&5
 
6450
echo "${ECHO_T}ok" >&6
 
6451
fi
 
6452
 
 
6453
echo "$as_me:$LINENO: checking for objdir" >&5
 
6454
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6455
if test "${lt_cv_objdir+set}" = set; then
 
6456
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6457
else
 
6458
  rm -f .libs 2>/dev/null
 
6459
mkdir .libs 2>/dev/null
 
6460
if test -d .libs; then
 
6461
  lt_cv_objdir=.libs
 
6462
else
 
6463
  # MS-DOS does not allow filenames that begin with a dot.
 
6464
  lt_cv_objdir=_libs
 
6465
fi
 
6466
rmdir .libs 2>/dev/null
 
6467
fi
 
6468
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6469
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6470
objdir=$lt_cv_objdir
 
6471
 
 
6472
 
 
6473
 
 
6474
 
 
6475
 
 
6476
case $host_os in
 
6477
aix3*)
 
6478
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6479
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6480
  # vanish in a puff of smoke.
 
6481
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6482
    COLLECT_NAMES=
 
6483
    export COLLECT_NAMES
 
6484
  fi
 
6485
  ;;
4680
6486
esac
4681
6487
 
4682
6488
# Sed substitution that helps us do robust quoting.  It backslashifies
4691
6497
# double_quote_subst'ed string.
4692
6498
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4693
6499
 
 
6500
# Sed substitution to avoid accidental globbing in evaled expressions
 
6501
no_glob_subst='s/\*/\\\*/g'
 
6502
 
4694
6503
# Constants:
4695
6504
rm="rm -f"
4696
6505
 
4704
6513
ltmain="$ac_aux_dir/ltmain.sh"
4705
6514
ofile="$default_ofile"
4706
6515
with_gnu_ld="$lt_cv_prog_gnu_ld"
4707
 
need_locks="$enable_libtool_lock"
 
6516
 
 
6517
if test -n "$ac_tool_prefix"; then
 
6518
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6519
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6520
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6521
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6522
if test "${ac_cv_prog_AR+set}" = set; then
 
6523
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6524
else
 
6525
  if test -n "$AR"; then
 
6526
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6527
else
 
6528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6529
for as_dir in $PATH
 
6530
do
 
6531
  IFS=$as_save_IFS
 
6532
  test -z "$as_dir" && as_dir=.
 
6533
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6534
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6535
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6536
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6537
    break 2
 
6538
  fi
 
6539
done
 
6540
done
 
6541
 
 
6542
fi
 
6543
fi
 
6544
AR=$ac_cv_prog_AR
 
6545
if test -n "$AR"; then
 
6546
  echo "$as_me:$LINENO: result: $AR" >&5
 
6547
echo "${ECHO_T}$AR" >&6
 
6548
else
 
6549
  echo "$as_me:$LINENO: result: no" >&5
 
6550
echo "${ECHO_T}no" >&6
 
6551
fi
 
6552
 
 
6553
fi
 
6554
if test -z "$ac_cv_prog_AR"; then
 
6555
  ac_ct_AR=$AR
 
6556
  # Extract the first word of "ar", so it can be a program name with args.
 
6557
set dummy ar; ac_word=$2
 
6558
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6559
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6560
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6562
else
 
6563
  if test -n "$ac_ct_AR"; then
 
6564
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6565
else
 
6566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6567
for as_dir in $PATH
 
6568
do
 
6569
  IFS=$as_save_IFS
 
6570
  test -z "$as_dir" && as_dir=.
 
6571
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6572
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6573
    ac_cv_prog_ac_ct_AR="ar"
 
6574
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6575
    break 2
 
6576
  fi
 
6577
done
 
6578
done
 
6579
 
 
6580
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
6581
fi
 
6582
fi
 
6583
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6584
if test -n "$ac_ct_AR"; then
 
6585
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6586
echo "${ECHO_T}$ac_ct_AR" >&6
 
6587
else
 
6588
  echo "$as_me:$LINENO: result: no" >&5
 
6589
echo "${ECHO_T}no" >&6
 
6590
fi
 
6591
 
 
6592
  AR=$ac_ct_AR
 
6593
else
 
6594
  AR="$ac_cv_prog_AR"
 
6595
fi
 
6596
 
 
6597
if test -n "$ac_tool_prefix"; then
 
6598
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6599
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6600
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6602
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6604
else
 
6605
  if test -n "$RANLIB"; then
 
6606
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6607
else
 
6608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6609
for as_dir in $PATH
 
6610
do
 
6611
  IFS=$as_save_IFS
 
6612
  test -z "$as_dir" && as_dir=.
 
6613
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6614
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6615
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6616
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6617
    break 2
 
6618
  fi
 
6619
done
 
6620
done
 
6621
 
 
6622
fi
 
6623
fi
 
6624
RANLIB=$ac_cv_prog_RANLIB
 
6625
if test -n "$RANLIB"; then
 
6626
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6627
echo "${ECHO_T}$RANLIB" >&6
 
6628
else
 
6629
  echo "$as_me:$LINENO: result: no" >&5
 
6630
echo "${ECHO_T}no" >&6
 
6631
fi
 
6632
 
 
6633
fi
 
6634
if test -z "$ac_cv_prog_RANLIB"; then
 
6635
  ac_ct_RANLIB=$RANLIB
 
6636
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6637
set dummy ranlib; ac_word=$2
 
6638
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6640
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6642
else
 
6643
  if test -n "$ac_ct_RANLIB"; then
 
6644
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6645
else
 
6646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6647
for as_dir in $PATH
 
6648
do
 
6649
  IFS=$as_save_IFS
 
6650
  test -z "$as_dir" && as_dir=.
 
6651
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6652
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6653
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6655
    break 2
 
6656
  fi
 
6657
done
 
6658
done
 
6659
 
 
6660
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6661
fi
 
6662
fi
 
6663
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6664
if test -n "$ac_ct_RANLIB"; then
 
6665
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6666
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6667
else
 
6668
  echo "$as_me:$LINENO: result: no" >&5
 
6669
echo "${ECHO_T}no" >&6
 
6670
fi
 
6671
 
 
6672
  RANLIB=$ac_ct_RANLIB
 
6673
else
 
6674
  RANLIB="$ac_cv_prog_RANLIB"
 
6675
fi
 
6676
 
 
6677
if test -n "$ac_tool_prefix"; then
 
6678
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6679
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6680
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6681
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6682
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6684
else
 
6685
  if test -n "$STRIP"; then
 
6686
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6687
else
 
6688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6689
for as_dir in $PATH
 
6690
do
 
6691
  IFS=$as_save_IFS
 
6692
  test -z "$as_dir" && as_dir=.
 
6693
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6694
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6695
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6696
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6697
    break 2
 
6698
  fi
 
6699
done
 
6700
done
 
6701
 
 
6702
fi
 
6703
fi
 
6704
STRIP=$ac_cv_prog_STRIP
 
6705
if test -n "$STRIP"; then
 
6706
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6707
echo "${ECHO_T}$STRIP" >&6
 
6708
else
 
6709
  echo "$as_me:$LINENO: result: no" >&5
 
6710
echo "${ECHO_T}no" >&6
 
6711
fi
 
6712
 
 
6713
fi
 
6714
if test -z "$ac_cv_prog_STRIP"; then
 
6715
  ac_ct_STRIP=$STRIP
 
6716
  # Extract the first word of "strip", so it can be a program name with args.
 
6717
set dummy strip; ac_word=$2
 
6718
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6719
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6720
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6722
else
 
6723
  if test -n "$ac_ct_STRIP"; then
 
6724
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6725
else
 
6726
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6727
for as_dir in $PATH
 
6728
do
 
6729
  IFS=$as_save_IFS
 
6730
  test -z "$as_dir" && as_dir=.
 
6731
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6732
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6733
    ac_cv_prog_ac_ct_STRIP="strip"
 
6734
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6735
    break 2
 
6736
  fi
 
6737
done
 
6738
done
 
6739
 
 
6740
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6741
fi
 
6742
fi
 
6743
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6744
if test -n "$ac_ct_STRIP"; then
 
6745
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6746
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6747
else
 
6748
  echo "$as_me:$LINENO: result: no" >&5
 
6749
echo "${ECHO_T}no" >&6
 
6750
fi
 
6751
 
 
6752
  STRIP=$ac_ct_STRIP
 
6753
else
 
6754
  STRIP="$ac_cv_prog_STRIP"
 
6755
fi
 
6756
 
4708
6757
 
4709
6758
old_CC="$CC"
4710
6759
old_CFLAGS="$CFLAGS"
4714
6763
test -z "$AR_FLAGS" && AR_FLAGS=cru
4715
6764
test -z "$AS" && AS=as
4716
6765
test -z "$CC" && CC=cc
 
6766
test -z "$LTCC" && LTCC=$CC
4717
6767
test -z "$DLLTOOL" && DLLTOOL=dlltool
4718
6768
test -z "$LD" && LD=ld
4719
6769
test -z "$LN_S" && LN_S="ln -s"
4720
6770
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4721
6771
test -z "$NM" && NM=nm
 
6772
test -z "$SED" && SED=sed
4722
6773
test -z "$OBJDUMP" && OBJDUMP=objdump
4723
6774
test -z "$RANLIB" && RANLIB=:
4724
6775
test -z "$STRIP" && STRIP=:
4725
6776
test -z "$ac_objext" && ac_objext=o
4726
6777
 
4727
 
if test x"$host" != x"$build"; then
4728
 
  ac_tool_prefix=${host_alias}-
4729
 
else
4730
 
  ac_tool_prefix=
4731
 
fi
4732
 
 
4733
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4734
 
case $host_os in
4735
 
linux-gnu*) ;;
4736
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4737
 
esac
4738
 
 
4739
 
case $host_os in
4740
 
aix3*)
4741
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
4742
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
4743
 
  # vanish in a puff of smoke.
4744
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
4745
 
    COLLECT_NAMES=
4746
 
    export COLLECT_NAMES
4747
 
  fi
4748
 
  ;;
4749
 
esac
4750
 
 
4751
6778
# Determine commands to create old-style static archives.
4752
6779
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4753
6780
old_postinstall_cmds='chmod 644 $oldlib'
4765
6792
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4766
6793
fi
4767
6794
 
4768
 
# Allow CC to be a program name with arguments.
4769
 
set dummy $CC
4770
 
compiler="$2"
4771
 
 
4772
 
echo "$as_me:4772: checking for objdir" >&5
4773
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4774
 
rm -f .libs 2>/dev/null
4775
 
mkdir .libs 2>/dev/null
4776
 
if test -d .libs; then
4777
 
  objdir=.libs
4778
 
else
4779
 
  # MS-DOS does not allow filenames that begin with a dot.
4780
 
  objdir=_libs
4781
 
fi
4782
 
rmdir .libs 2>/dev/null
4783
 
echo "$as_me:4783: result: $objdir" >&5
4784
 
echo "${ECHO_T}$objdir" >&6
 
6795
# Only perform the check for file, if the check method requires it
 
6796
case $deplibs_check_method in
 
6797
file_magic*)
 
6798
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6799
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6800
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6801
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6803
else
 
6804
  case $MAGIC_CMD in
 
6805
[\\/*] |  ?:[\\/]*)
 
6806
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6807
  ;;
 
6808
*)
 
6809
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6810
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6811
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6812
  for ac_dir in $ac_dummy; do
 
6813
    IFS="$lt_save_ifs"
 
6814
    test -z "$ac_dir" && ac_dir=.
 
6815
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6816
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6817
      if test -n "$file_magic_test_file"; then
 
6818
        case $deplibs_check_method in
 
6819
        "file_magic "*)
 
6820
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6821
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6822
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6823
            $EGREP "$file_magic_regex" > /dev/null; then
 
6824
            :
 
6825
          else
 
6826
            cat <<EOF 1>&2
 
6827
 
 
6828
*** Warning: the command libtool uses to detect shared libraries,
 
6829
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6830
*** The result is that libtool may fail to recognize shared libraries
 
6831
*** as such.  This will affect the creation of libtool libraries that
 
6832
*** depend on shared libraries, but programs linked with such libtool
 
6833
*** libraries will work regardless of this problem.  Nevertheless, you
 
6834
*** may want to report the problem to your system manager and/or to
 
6835
*** bug-libtool@gnu.org
 
6836
 
 
6837
EOF
 
6838
          fi ;;
 
6839
        esac
 
6840
      fi
 
6841
      break
 
6842
    fi
 
6843
  done
 
6844
  IFS="$lt_save_ifs"
 
6845
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6846
  ;;
 
6847
esac
 
6848
fi
 
6849
 
 
6850
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6851
if test -n "$MAGIC_CMD"; then
 
6852
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6853
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6854
else
 
6855
  echo "$as_me:$LINENO: result: no" >&5
 
6856
echo "${ECHO_T}no" >&6
 
6857
fi
 
6858
 
 
6859
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6860
  if test -n "$ac_tool_prefix"; then
 
6861
    echo "$as_me:$LINENO: checking for file" >&5
 
6862
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6863
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6864
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6865
else
 
6866
  case $MAGIC_CMD in
 
6867
[\\/*] |  ?:[\\/]*)
 
6868
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6869
  ;;
 
6870
*)
 
6871
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6872
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6873
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6874
  for ac_dir in $ac_dummy; do
 
6875
    IFS="$lt_save_ifs"
 
6876
    test -z "$ac_dir" && ac_dir=.
 
6877
    if test -f $ac_dir/file; then
 
6878
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6879
      if test -n "$file_magic_test_file"; then
 
6880
        case $deplibs_check_method in
 
6881
        "file_magic "*)
 
6882
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6883
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6884
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6885
            $EGREP "$file_magic_regex" > /dev/null; then
 
6886
            :
 
6887
          else
 
6888
            cat <<EOF 1>&2
 
6889
 
 
6890
*** Warning: the command libtool uses to detect shared libraries,
 
6891
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6892
*** The result is that libtool may fail to recognize shared libraries
 
6893
*** as such.  This will affect the creation of libtool libraries that
 
6894
*** depend on shared libraries, but programs linked with such libtool
 
6895
*** libraries will work regardless of this problem.  Nevertheless, you
 
6896
*** may want to report the problem to your system manager and/or to
 
6897
*** bug-libtool@gnu.org
 
6898
 
 
6899
EOF
 
6900
          fi ;;
 
6901
        esac
 
6902
      fi
 
6903
      break
 
6904
    fi
 
6905
  done
 
6906
  IFS="$lt_save_ifs"
 
6907
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6908
  ;;
 
6909
esac
 
6910
fi
 
6911
 
 
6912
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6913
if test -n "$MAGIC_CMD"; then
 
6914
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6915
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6916
else
 
6917
  echo "$as_me:$LINENO: result: no" >&5
 
6918
echo "${ECHO_T}no" >&6
 
6919
fi
 
6920
 
 
6921
  else
 
6922
    MAGIC_CMD=:
 
6923
  fi
 
6924
fi
 
6925
 
 
6926
  fi
 
6927
  ;;
 
6928
esac
 
6929
 
 
6930
enable_dlopen=no
 
6931
enable_win32_dll=yes
 
6932
 
 
6933
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6934
if test "${enable_libtool_lock+set}" = set; then
 
6935
  enableval="$enable_libtool_lock"
 
6936
 
 
6937
fi;
 
6938
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6939
 
4785
6940
 
4786
6941
# Check whether --with-pic or --without-pic was given.
4787
6942
if test "${with_pic+set}" = set; then
4792
6947
fi;
4793
6948
test -z "$pic_mode" && pic_mode=default
4794
6949
 
4795
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4796
 
# in isolation, and that seeing it set (from the cache) indicates that
4797
 
# the associated values are set (in the cache) correctly too.
4798
 
echo "$as_me:4798: checking for $compiler option to produce PIC" >&5
4799
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4800
 
if test "${lt_cv_prog_cc_pic+set}" = set; then
4801
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4802
 
else
4803
 
   lt_cv_prog_cc_pic=
4804
 
  lt_cv_prog_cc_shlib=
4805
 
  lt_cv_prog_cc_wl=
4806
 
  lt_cv_prog_cc_static=
4807
 
  lt_cv_prog_cc_no_builtin=
4808
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
4809
 
 
4810
 
  if test "$GCC" = yes; then
4811
 
    lt_cv_prog_cc_wl='-Wl,'
4812
 
    lt_cv_prog_cc_static='-static'
4813
 
 
4814
 
    case $host_os in
4815
 
    aix*)
4816
 
      # Below there is a dirty hack to force normal static linking with -ldl
4817
 
      # The problem is because libdl dynamically linked with both libc and
4818
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
4819
 
      # list by gcc. This cause undefined symbols with -static flags.
4820
 
      # This hack allows C programs to be linked with "-static -ldl", but
4821
 
      # not sure about C++ programs.
4822
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4823
 
      ;;
4824
 
    amigaos*)
4825
 
      # FIXME: we need at least 68020 code to build shared libraries, but
4826
 
      # adding the `-m68020' flag to GCC prevents building anything better,
4827
 
      # like `-m68040'.
4828
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4829
 
      ;;
4830
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4831
 
      # PIC is the default for these OSes.
4832
 
      ;;
4833
 
    darwin* | rhapsody*)
4834
 
      # PIC is the default on this platform
4835
 
      # Common symbols not allowed in MH_DYLIB files
4836
 
      lt_cv_prog_cc_pic='-fno-common'
4837
 
      ;;
4838
 
    cygwin* | mingw* | pw32* | os2*)
4839
 
      # This hack is so that the source file can tell whether it is being
4840
 
      # built for inclusion in a dll (and should export symbols for example).
4841
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4842
 
      ;;
4843
 
    sysv4*MP*)
4844
 
      if test -d /usr/nec; then
4845
 
         lt_cv_prog_cc_pic=-Kconform_pic
4846
 
      fi
4847
 
      ;;
4848
 
    *)
4849
 
      lt_cv_prog_cc_pic='-fPIC'
4850
 
      ;;
4851
 
    esac
4852
 
  else
4853
 
    # PORTME Check for PIC flags for the system compiler.
4854
 
    case $host_os in
4855
 
    aix3* | aix4* | aix5*)
4856
 
      lt_cv_prog_cc_wl='-Wl,'
4857
 
      # All AIX code is PIC.
4858
 
      if test "$host_cpu" = ia64; then
4859
 
        # AIX 5 now supports IA64 processor
4860
 
        lt_cv_prog_cc_static='-Bstatic'
4861
 
      else
4862
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4863
 
      fi
4864
 
      ;;
4865
 
 
4866
 
    hpux9* | hpux10* | hpux11*)
4867
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4868
 
      lt_cv_prog_cc_wl='-Wl,'
4869
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4870
 
      lt_cv_prog_cc_pic='+Z'
4871
 
      ;;
4872
 
 
4873
 
    irix5* | irix6* | nonstopux*)
4874
 
      lt_cv_prog_cc_wl='-Wl,'
4875
 
      lt_cv_prog_cc_static='-non_shared'
4876
 
      # PIC (with -KPIC) is the default.
4877
 
      ;;
4878
 
 
4879
 
    cygwin* | mingw* | pw32* | os2*)
4880
 
      # This hack is so that the source file can tell whether it is being
4881
 
      # built for inclusion in a dll (and should export symbols for example).
4882
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4883
 
      ;;
4884
 
 
4885
 
    newsos6)
4886
 
      lt_cv_prog_cc_pic='-KPIC'
4887
 
      lt_cv_prog_cc_static='-Bstatic'
4888
 
      ;;
4889
 
 
4890
 
    osf3* | osf4* | osf5*)
4891
 
      # All OSF/1 code is PIC.
4892
 
      lt_cv_prog_cc_wl='-Wl,'
4893
 
      lt_cv_prog_cc_static='-non_shared'
4894
 
      ;;
4895
 
 
4896
 
    sco3.2v5*)
4897
 
      lt_cv_prog_cc_pic='-Kpic'
4898
 
      lt_cv_prog_cc_static='-dn'
4899
 
      lt_cv_prog_cc_shlib='-belf'
4900
 
      ;;
4901
 
 
4902
 
    solaris*)
4903
 
      lt_cv_prog_cc_pic='-KPIC'
4904
 
      lt_cv_prog_cc_static='-Bstatic'
4905
 
      lt_cv_prog_cc_wl='-Wl,'
4906
 
      ;;
4907
 
 
4908
 
    sunos4*)
4909
 
      lt_cv_prog_cc_pic='-PIC'
4910
 
      lt_cv_prog_cc_static='-Bstatic'
4911
 
      lt_cv_prog_cc_wl='-Qoption ld '
4912
 
      ;;
4913
 
 
4914
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4915
 
      lt_cv_prog_cc_pic='-KPIC'
4916
 
      lt_cv_prog_cc_static='-Bstatic'
4917
 
      lt_cv_prog_cc_wl='-Wl,'
4918
 
      ;;
4919
 
 
4920
 
    uts4*)
4921
 
      lt_cv_prog_cc_pic='-pic'
4922
 
      lt_cv_prog_cc_static='-Bstatic'
4923
 
      ;;
4924
 
 
4925
 
    sysv4*MP*)
4926
 
      if test -d /usr/nec ;then
4927
 
        lt_cv_prog_cc_pic='-Kconform_pic'
4928
 
        lt_cv_prog_cc_static='-Bstatic'
4929
 
      fi
4930
 
      ;;
4931
 
 
4932
 
    *)
4933
 
      lt_cv_prog_cc_can_build_shared=no
4934
 
      ;;
4935
 
    esac
4936
 
  fi
4937
 
 
4938
 
fi
4939
 
 
4940
 
if test -z "$lt_cv_prog_cc_pic"; then
4941
 
  echo "$as_me:4941: result: none" >&5
4942
 
echo "${ECHO_T}none" >&6
4943
 
else
4944
 
  echo "$as_me:4944: result: $lt_cv_prog_cc_pic" >&5
4945
 
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4946
 
 
4947
 
  # Check to make sure the pic_flag actually works.
4948
 
  echo "$as_me:4948: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4949
 
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4950
 
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4951
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4952
 
else
4953
 
      save_CFLAGS="$CFLAGS"
4954
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4955
 
    cat >conftest.$ac_ext <<_ACEOF
4956
 
#line 4956 "configure"
4957
 
#include "confdefs.h"
4958
 
 
4959
 
int
4960
 
main ()
4961
 
{
4962
 
 
4963
 
  ;
4964
 
  return 0;
4965
 
}
4966
 
_ACEOF
4967
 
rm -f conftest.$ac_objext
4968
 
if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5
4969
 
  (eval $ac_compile) 2>&5
4970
 
  ac_status=$?
4971
 
  echo "$as_me:4971: \$? = $ac_status" >&5
4972
 
  (exit $ac_status); } &&
4973
 
         { ac_try='test -s conftest.$ac_objext'
4974
 
  { (eval echo "$as_me:4974: \"$ac_try\"") >&5
4975
 
  (eval $ac_try) 2>&5
4976
 
  ac_status=$?
4977
 
  echo "$as_me:4977: \$? = $ac_status" >&5
4978
 
  (exit $ac_status); }; }; then
4979
 
        case $host_os in
4980
 
      hpux9* | hpux10* | hpux11*)
4981
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
4982
 
        # they create non-PIC objects.  So, if there were any warnings, we
4983
 
        # assume that PIC is not supported.
4984
 
        if test -s conftest.err; then
4985
 
          lt_cv_prog_cc_pic_works=no
4986
 
        else
4987
 
          lt_cv_prog_cc_pic_works=yes
4988
 
        fi
4989
 
        ;;
4990
 
      *)
4991
 
        lt_cv_prog_cc_pic_works=yes
4992
 
        ;;
4993
 
      esac
4994
 
 
4995
 
else
4996
 
  echo "$as_me: failed program was:" >&5
4997
 
cat conftest.$ac_ext >&5
4998
 
      lt_cv_prog_cc_pic_works=no
4999
 
 
5000
 
fi
5001
 
rm -f conftest.$ac_objext conftest.$ac_ext
5002
 
    CFLAGS="$save_CFLAGS"
5003
 
 
5004
 
fi
5005
 
 
5006
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5007
 
    lt_cv_prog_cc_pic=
5008
 
    lt_cv_prog_cc_can_build_shared=no
5009
 
  else
5010
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5011
 
  fi
5012
 
 
5013
 
  echo "$as_me:5013: result: $lt_cv_prog_cc_pic_works" >&5
5014
 
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5015
 
fi
5016
 
 
 
6950
# Use C for the default configuration in the libtool script
 
6951
tagname=
 
6952
lt_save_CC="$CC"
 
6953
ac_ext=c
 
6954
ac_cpp='$CPP $CPPFLAGS'
 
6955
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6956
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6957
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6958
 
 
6959
 
 
6960
# Source file extension for C test sources.
 
6961
ac_ext=c
 
6962
 
 
6963
# Object file extension for compiled C test sources.
 
6964
objext=o
 
6965
objext=$objext
 
6966
 
 
6967
# Code to be used in simple compile tests
 
6968
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6969
 
 
6970
# Code to be used in simple link tests
 
6971
lt_simple_link_test_code='int main(){return(0);}\n'
 
6972
 
 
6973
 
 
6974
# If no C compiler was specified, use CC.
 
6975
LTCC=${LTCC-"$CC"}
 
6976
 
 
6977
# Allow CC to be a program name with arguments.
 
6978
compiler=$CC
 
6979
 
 
6980
 
 
6981
#
5017
6982
# Check for any special shared library compilation flags.
5018
 
if test -n "$lt_cv_prog_cc_shlib"; then
5019
 
  { echo "$as_me:5019: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5020
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5021
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
6983
#
 
6984
lt_prog_cc_shlib=
 
6985
if test "$GCC" = no; then
 
6986
  case $host_os in
 
6987
  sco3.2v5*)
 
6988
    lt_prog_cc_shlib='-belf'
 
6989
    ;;
 
6990
  esac
 
6991
fi
 
6992
if test -n "$lt_prog_cc_shlib"; then
 
6993
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6994
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6995
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5022
6996
  else
5023
 
   { echo "$as_me:5023: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5024
 
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6997
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6998
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5025
6999
    lt_cv_prog_cc_can_build_shared=no
5026
7000
  fi
5027
7001
fi
5028
7002
 
5029
 
echo "$as_me:5029: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5030
 
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5031
 
if test "${lt_cv_prog_cc_static_works+set}" = set; then
5032
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5033
 
else
5034
 
    lt_cv_prog_cc_static_works=no
5035
 
  save_LDFLAGS="$LDFLAGS"
5036
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5037
 
  cat >conftest.$ac_ext <<_ACEOF
5038
 
#line 5038 "configure"
5039
 
#include "confdefs.h"
5040
 
 
5041
 
int
5042
 
main ()
5043
 
{
5044
 
 
5045
 
  ;
5046
 
  return 0;
5047
 
}
5048
 
_ACEOF
5049
 
rm -f conftest.$ac_objext conftest$ac_exeext
5050
 
if { (eval echo "$as_me:5050: \"$ac_link\"") >&5
5051
 
  (eval $ac_link) 2>&5
5052
 
  ac_status=$?
5053
 
  echo "$as_me:5053: \$? = $ac_status" >&5
5054
 
  (exit $ac_status); } &&
5055
 
         { ac_try='test -s conftest$ac_exeext'
5056
 
  { (eval echo "$as_me:5056: \"$ac_try\"") >&5
5057
 
  (eval $ac_try) 2>&5
5058
 
  ac_status=$?
5059
 
  echo "$as_me:5059: \$? = $ac_status" >&5
5060
 
  (exit $ac_status); }; }; then
5061
 
  lt_cv_prog_cc_static_works=yes
5062
 
else
5063
 
  echo "$as_me: failed program was:" >&5
5064
 
cat conftest.$ac_ext >&5
5065
 
fi
5066
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5067
 
  LDFLAGS="$save_LDFLAGS"
5068
 
 
5069
 
fi
5070
 
 
5071
 
# Belt *and* braces to stop my trousers falling down:
5072
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5073
 
echo "$as_me:5073: result: $lt_cv_prog_cc_static_works" >&5
5074
 
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5075
 
 
5076
 
pic_flag="$lt_cv_prog_cc_pic"
5077
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5078
 
wl="$lt_cv_prog_cc_wl"
5079
 
link_static_flag="$lt_cv_prog_cc_static"
5080
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5081
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
5082
 
 
5083
 
# Check to see if options -o and -c are simultaneously supported by compiler
5084
 
echo "$as_me:5084: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7003
 
 
7004
#
 
7005
# Check to make sure the static flag actually works.
 
7006
#
 
7007
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
7008
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
7009
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7010
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7011
else
 
7012
  lt_prog_compiler_static_works=no
 
7013
   save_LDFLAGS="$LDFLAGS"
 
7014
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
7015
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7016
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7017
     # The compiler can only warn and ignore the option if not recognized
 
7018
     # So say no if there are warnings
 
7019
     if test -s conftest.err; then
 
7020
       # Append any errors to the config.log.
 
7021
       cat conftest.err 1>&5
 
7022
     else
 
7023
       lt_prog_compiler_static_works=yes
 
7024
     fi
 
7025
   fi
 
7026
   $rm conftest*
 
7027
   LDFLAGS="$save_LDFLAGS"
 
7028
 
 
7029
fi
 
7030
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7031
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7032
 
 
7033
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7034
    :
 
7035
else
 
7036
    lt_prog_compiler_static=
 
7037
fi
 
7038
 
 
7039
 
 
7040
 
 
7041
 
 
7042
lt_prog_compiler_no_builtin_flag=
 
7043
 
 
7044
if test "$GCC" = yes; then
 
7045
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7046
 
 
7047
 
 
7048
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7049
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7050
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7052
else
 
7053
  lt_cv_prog_compiler_rtti_exceptions=no
 
7054
  ac_outfile=conftest.$ac_objext
 
7055
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7056
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7057
   # Insert the option either (1) after the last *FLAGS variable, or
 
7058
   # (2) before a word containing "conftest.", or (3) at the end.
 
7059
   # Note that $ac_compile itself does not contain backslashes and begins
 
7060
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7061
   # The option is referenced via a variable to avoid confusing sed.
 
7062
   lt_compile=`echo "$ac_compile" | $SED \
 
7063
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7064
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7065
   -e 's:$: $lt_compiler_flag:'`
 
7066
   (eval echo "\"\$as_me:7066: $lt_compile\"" >&5)
 
7067
   (eval "$lt_compile" 2>conftest.err)
 
7068
   ac_status=$?
 
7069
   cat conftest.err >&5
 
7070
   echo "$as_me:7070: \$? = $ac_status" >&5
 
7071
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7072
     # The compiler can only warn and ignore the option if not recognized
 
7073
     # So say no if there are warnings
 
7074
     if test ! -s conftest.err; then
 
7075
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7076
     fi
 
7077
   fi
 
7078
   $rm conftest*
 
7079
 
 
7080
fi
 
7081
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7082
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7083
 
 
7084
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7085
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7086
else
 
7087
    :
 
7088
fi
 
7089
 
 
7090
fi
 
7091
 
 
7092
lt_prog_compiler_wl=
 
7093
lt_prog_compiler_pic=
 
7094
lt_prog_compiler_static=
 
7095
 
 
7096
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7097
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7098
 
 
7099
  if test "$GCC" = yes; then
 
7100
    lt_prog_compiler_wl='-Wl,'
 
7101
    lt_prog_compiler_static='-static'
 
7102
 
 
7103
    case $host_os in
 
7104
      aix*)
 
7105
      # All AIX code is PIC.
 
7106
      if test "$host_cpu" = ia64; then
 
7107
        # AIX 5 now supports IA64 processor
 
7108
        lt_prog_compiler_static='-Bstatic'
 
7109
      fi
 
7110
      ;;
 
7111
 
 
7112
    amigaos*)
 
7113
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7114
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7115
      # like `-m68040'.
 
7116
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7117
      ;;
 
7118
 
 
7119
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7120
      # PIC is the default for these OSes.
 
7121
      ;;
 
7122
 
 
7123
    mingw* | pw32* | os2*)
 
7124
      # This hack is so that the source file can tell whether it is being
 
7125
      # built for inclusion in a dll (and should export symbols for example).
 
7126
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7127
      ;;
 
7128
 
 
7129
    darwin* | rhapsody*)
 
7130
      # PIC is the default on this platform
 
7131
      # Common symbols not allowed in MH_DYLIB files
 
7132
      lt_prog_compiler_pic='-fno-common'
 
7133
      ;;
 
7134
 
 
7135
    msdosdjgpp*)
 
7136
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7137
      # on systems that don't support them.
 
7138
      lt_prog_compiler_can_build_shared=no
 
7139
      enable_shared=no
 
7140
      ;;
 
7141
 
 
7142
    sysv4*MP*)
 
7143
      if test -d /usr/nec; then
 
7144
        lt_prog_compiler_pic=-Kconform_pic
 
7145
      fi
 
7146
      ;;
 
7147
 
 
7148
    hpux*)
 
7149
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7150
      # not for PA HP-UX.
 
7151
      case "$host_cpu" in
 
7152
      hppa*64*|ia64*)
 
7153
        # +Z the default
 
7154
        ;;
 
7155
      *)
 
7156
        lt_prog_compiler_pic='-fPIC'
 
7157
        ;;
 
7158
      esac
 
7159
      ;;
 
7160
 
 
7161
    *)
 
7162
      lt_prog_compiler_pic='-fPIC'
 
7163
      ;;
 
7164
    esac
 
7165
  else
 
7166
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7167
    case $host_os in
 
7168
    aix*)
 
7169
      lt_prog_compiler_wl='-Wl,'
 
7170
      if test "$host_cpu" = ia64; then
 
7171
        # AIX 5 now supports IA64 processor
 
7172
        lt_prog_compiler_static='-Bstatic'
 
7173
      else
 
7174
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7175
      fi
 
7176
      ;;
 
7177
 
 
7178
    mingw* | pw32* | os2*)
 
7179
      # This hack is so that the source file can tell whether it is being
 
7180
      # built for inclusion in a dll (and should export symbols for example).
 
7181
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7182
      ;;
 
7183
 
 
7184
    hpux9* | hpux10* | hpux11*)
 
7185
      lt_prog_compiler_wl='-Wl,'
 
7186
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7187
      # not for PA HP-UX.
 
7188
      case "$host_cpu" in
 
7189
      hppa*64*|ia64*)
 
7190
        # +Z the default
 
7191
        ;;
 
7192
      *)
 
7193
        lt_prog_compiler_pic='+Z'
 
7194
        ;;
 
7195
      esac
 
7196
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7197
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7198
      ;;
 
7199
 
 
7200
    irix5* | irix6* | nonstopux*)
 
7201
      lt_prog_compiler_wl='-Wl,'
 
7202
      # PIC (with -KPIC) is the default.
 
7203
      lt_prog_compiler_static='-non_shared'
 
7204
      ;;
 
7205
 
 
7206
    newsos6)
 
7207
      lt_prog_compiler_pic='-KPIC'
 
7208
      lt_prog_compiler_static='-Bstatic'
 
7209
      ;;
 
7210
 
 
7211
    linux*)
 
7212
      case $CC in
 
7213
      icc* | ecc*)
 
7214
        lt_prog_compiler_wl='-Wl,'
 
7215
        lt_prog_compiler_pic='-KPIC'
 
7216
        lt_prog_compiler_static='-static'
 
7217
        ;;
 
7218
      ccc*)
 
7219
        lt_prog_compiler_wl='-Wl,'
 
7220
        # All Alpha code is PIC.
 
7221
        lt_prog_compiler_static='-non_shared'
 
7222
        ;;
 
7223
      esac
 
7224
      ;;
 
7225
 
 
7226
    osf3* | osf4* | osf5*)
 
7227
      lt_prog_compiler_wl='-Wl,'
 
7228
      # All OSF/1 code is PIC.
 
7229
      lt_prog_compiler_static='-non_shared'
 
7230
      ;;
 
7231
 
 
7232
    sco3.2v5*)
 
7233
      lt_prog_compiler_pic='-Kpic'
 
7234
      lt_prog_compiler_static='-dn'
 
7235
      ;;
 
7236
 
 
7237
    solaris*)
 
7238
      lt_prog_compiler_wl='-Wl,'
 
7239
      lt_prog_compiler_pic='-KPIC'
 
7240
      lt_prog_compiler_static='-Bstatic'
 
7241
      ;;
 
7242
 
 
7243
    sunos4*)
 
7244
      lt_prog_compiler_wl='-Qoption ld '
 
7245
      lt_prog_compiler_pic='-PIC'
 
7246
      lt_prog_compiler_static='-Bstatic'
 
7247
      ;;
 
7248
 
 
7249
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7250
      lt_prog_compiler_wl='-Wl,'
 
7251
      lt_prog_compiler_pic='-KPIC'
 
7252
      lt_prog_compiler_static='-Bstatic'
 
7253
      ;;
 
7254
 
 
7255
    sysv4*MP*)
 
7256
      if test -d /usr/nec ;then
 
7257
        lt_prog_compiler_pic='-Kconform_pic'
 
7258
        lt_prog_compiler_static='-Bstatic'
 
7259
      fi
 
7260
      ;;
 
7261
 
 
7262
    uts4*)
 
7263
      lt_prog_compiler_pic='-pic'
 
7264
      lt_prog_compiler_static='-Bstatic'
 
7265
      ;;
 
7266
 
 
7267
    *)
 
7268
      lt_prog_compiler_can_build_shared=no
 
7269
      ;;
 
7270
    esac
 
7271
  fi
 
7272
 
 
7273
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7274
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7275
 
 
7276
#
 
7277
# Check to make sure the PIC flag actually works.
 
7278
#
 
7279
if test -n "$lt_prog_compiler_pic"; then
 
7280
 
 
7281
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7282
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
7283
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7284
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7285
else
 
7286
  lt_prog_compiler_pic_works=no
 
7287
  ac_outfile=conftest.$ac_objext
 
7288
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7289
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7290
   # Insert the option either (1) after the last *FLAGS variable, or
 
7291
   # (2) before a word containing "conftest.", or (3) at the end.
 
7292
   # Note that $ac_compile itself does not contain backslashes and begins
 
7293
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7294
   # The option is referenced via a variable to avoid confusing sed.
 
7295
   lt_compile=`echo "$ac_compile" | $SED \
 
7296
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7297
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7298
   -e 's:$: $lt_compiler_flag:'`
 
7299
   (eval echo "\"\$as_me:7299: $lt_compile\"" >&5)
 
7300
   (eval "$lt_compile" 2>conftest.err)
 
7301
   ac_status=$?
 
7302
   cat conftest.err >&5
 
7303
   echo "$as_me:7303: \$? = $ac_status" >&5
 
7304
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7305
     # The compiler can only warn and ignore the option if not recognized
 
7306
     # So say no if there are warnings
 
7307
     if test ! -s conftest.err; then
 
7308
       lt_prog_compiler_pic_works=yes
 
7309
     fi
 
7310
   fi
 
7311
   $rm conftest*
 
7312
 
 
7313
fi
 
7314
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7315
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7316
 
 
7317
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7318
    case $lt_prog_compiler_pic in
 
7319
     "" | " "*) ;;
 
7320
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7321
     esac
 
7322
else
 
7323
    lt_prog_compiler_pic=
 
7324
     lt_prog_compiler_can_build_shared=no
 
7325
fi
 
7326
 
 
7327
fi
 
7328
case "$host_os" in
 
7329
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7330
  *djgpp*)
 
7331
    lt_prog_compiler_pic=
 
7332
    ;;
 
7333
  *)
 
7334
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7335
    ;;
 
7336
esac
 
7337
 
 
7338
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5085
7339
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5086
 
if test "${lt_cv_compiler_c_o+set}" = set; then
5087
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5088
 
else
5089
 
 
5090
 
$rm -r conftest 2>/dev/null
5091
 
mkdir conftest
5092
 
cd conftest
5093
 
echo "int some_variable = 0;" > conftest.$ac_ext
5094
 
mkdir out
5095
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5096
 
# that will create temporary files in the current directory regardless of
5097
 
# the output directory.  Thus, making CWD read-only will cause this test
5098
 
# to fail, enabling locking or at least warning the user not to do parallel
5099
 
# builds.
5100
 
chmod -w .
5101
 
save_CFLAGS="$CFLAGS"
5102
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5103
 
compiler_c_o=no
5104
 
if { (eval echo configure:5104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5105
 
  # The compiler can only warn and ignore the option if not recognized
5106
 
  # So say no if there are warnings
5107
 
  if test -s out/conftest.err; then
5108
 
    lt_cv_compiler_c_o=no
5109
 
  else
5110
 
    lt_cv_compiler_c_o=yes
5111
 
  fi
5112
 
else
5113
 
  # Append any errors to the config.log.
5114
 
  cat out/conftest.err 1>&5
5115
 
  lt_cv_compiler_c_o=no
5116
 
fi
5117
 
CFLAGS="$save_CFLAGS"
5118
 
chmod u+w .
5119
 
$rm conftest* out/*
5120
 
rmdir out
5121
 
cd ..
5122
 
rmdir conftest
5123
 
$rm -r conftest 2>/dev/null
5124
 
 
5125
 
fi
5126
 
 
5127
 
compiler_c_o=$lt_cv_compiler_c_o
5128
 
echo "$as_me:5128: result: $compiler_c_o" >&5
5129
 
echo "${ECHO_T}$compiler_c_o" >&6
5130
 
 
5131
 
if test x"$compiler_c_o" = x"yes"; then
5132
 
  # Check to see if we can write to a .lo
5133
 
  echo "$as_me:5133: checking if $compiler supports -c -o file.lo" >&5
5134
 
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5135
 
  if test "${lt_cv_compiler_o_lo+set}" = set; then
5136
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5137
 
else
5138
 
 
5139
 
  lt_cv_compiler_o_lo=no
5140
 
  save_CFLAGS="$CFLAGS"
5141
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
5142
 
  save_objext="$ac_objext"
5143
 
  ac_objext=lo
5144
 
  cat >conftest.$ac_ext <<_ACEOF
5145
 
#line 5145 "configure"
5146
 
#include "confdefs.h"
5147
 
 
5148
 
int
5149
 
main ()
5150
 
{
5151
 
int some_variable = 0;
5152
 
  ;
5153
 
  return 0;
5154
 
}
5155
 
_ACEOF
5156
 
rm -f conftest.$ac_objext
5157
 
if { (eval echo "$as_me:5157: \"$ac_compile\"") >&5
5158
 
  (eval $ac_compile) 2>&5
5159
 
  ac_status=$?
5160
 
  echo "$as_me:5160: \$? = $ac_status" >&5
5161
 
  (exit $ac_status); } &&
5162
 
         { ac_try='test -s conftest.$ac_objext'
5163
 
  { (eval echo "$as_me:5163: \"$ac_try\"") >&5
5164
 
  (eval $ac_try) 2>&5
5165
 
  ac_status=$?
5166
 
  echo "$as_me:5166: \$? = $ac_status" >&5
5167
 
  (exit $ac_status); }; }; then
5168
 
      # The compiler can only warn and ignore the option if not recognized
5169
 
    # So say no if there are warnings
5170
 
    if test -s conftest.err; then
5171
 
      lt_cv_compiler_o_lo=no
5172
 
    else
5173
 
      lt_cv_compiler_o_lo=yes
5174
 
    fi
5175
 
 
5176
 
else
5177
 
  echo "$as_me: failed program was:" >&5
5178
 
cat conftest.$ac_ext >&5
5179
 
fi
5180
 
rm -f conftest.$ac_objext conftest.$ac_ext
5181
 
  ac_objext="$save_objext"
5182
 
  CFLAGS="$save_CFLAGS"
5183
 
 
5184
 
fi
5185
 
 
5186
 
  compiler_o_lo=$lt_cv_compiler_o_lo
5187
 
  echo "$as_me:5187: result: $compiler_o_lo" >&5
5188
 
echo "${ECHO_T}$compiler_o_lo" >&6
5189
 
else
5190
 
  compiler_o_lo=no
5191
 
fi
5192
 
 
5193
 
# Check to see if we can do hard links to lock some files if needed
 
7340
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7342
else
 
7343
  lt_cv_prog_compiler_c_o=no
 
7344
   $rm -r conftest 2>/dev/null
 
7345
   mkdir conftest
 
7346
   cd conftest
 
7347
   mkdir out
 
7348
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7349
 
 
7350
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7351
   # Insert the option either (1) after the last *FLAGS variable, or
 
7352
   # (2) before a word containing "conftest.", or (3) at the end.
 
7353
   # Note that $ac_compile itself does not contain backslashes and begins
 
7354
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7355
   lt_compile=`echo "$ac_compile" | $SED \
 
7356
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7357
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7358
   -e 's:$: $lt_compiler_flag:'`
 
7359
   (eval echo "\"\$as_me:7359: $lt_compile\"" >&5)
 
7360
   (eval "$lt_compile" 2>out/conftest.err)
 
7361
   ac_status=$?
 
7362
   cat out/conftest.err >&5
 
7363
   echo "$as_me:7363: \$? = $ac_status" >&5
 
7364
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7365
   then
 
7366
     # The compiler can only warn and ignore the option if not recognized
 
7367
     # So say no if there are warnings
 
7368
     if test ! -s out/conftest.err; then
 
7369
       lt_cv_prog_compiler_c_o=yes
 
7370
     fi
 
7371
   fi
 
7372
   chmod u+w .
 
7373
   $rm conftest*
 
7374
   # SGI C++ compiler will create directory out/ii_files/ for
 
7375
   # template instantiation
 
7376
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7377
   $rm out/* && rmdir out
 
7378
   cd ..
 
7379
   rmdir conftest
 
7380
   $rm conftest*
 
7381
 
 
7382
fi
 
7383
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7384
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7385
 
 
7386
 
5194
7387
hard_links="nottested"
5195
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
7388
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5196
7389
  # do not overwrite the value of need_locks provided by the user
5197
 
  echo "$as_me:5197: checking if we can lock with hard links" >&5
 
7390
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5198
7391
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5199
7392
  hard_links=yes
5200
7393
  $rm conftest*
5202
7395
  touch conftest.a
5203
7396
  ln conftest.a conftest.b 2>&5 || hard_links=no
5204
7397
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5205
 
  echo "$as_me:5205: result: $hard_links" >&5
 
7398
  echo "$as_me:$LINENO: result: $hard_links" >&5
5206
7399
echo "${ECHO_T}$hard_links" >&6
5207
7400
  if test "$hard_links" = no; then
5208
 
    { echo "$as_me:5208: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7401
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5209
7402
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5210
7403
    need_locks=warn
5211
7404
  fi
5213
7406
  need_locks=no
5214
7407
fi
5215
7408
 
5216
 
if test "$GCC" = yes; then
5217
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5218
 
  echo "$as_me:5218: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5219
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5220
 
  echo "int some_variable = 0;" > conftest.$ac_ext
5221
 
  save_CFLAGS="$CFLAGS"
5222
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5223
 
  compiler_rtti_exceptions=no
5224
 
  cat >conftest.$ac_ext <<_ACEOF
5225
 
#line 5225 "configure"
5226
 
#include "confdefs.h"
5227
 
 
5228
 
int
5229
 
main ()
5230
 
{
5231
 
int some_variable = 0;
5232
 
  ;
5233
 
  return 0;
5234
 
}
5235
 
_ACEOF
5236
 
rm -f conftest.$ac_objext
5237
 
if { (eval echo "$as_me:5237: \"$ac_compile\"") >&5
5238
 
  (eval $ac_compile) 2>&5
5239
 
  ac_status=$?
5240
 
  echo "$as_me:5240: \$? = $ac_status" >&5
5241
 
  (exit $ac_status); } &&
5242
 
         { ac_try='test -s conftest.$ac_objext'
5243
 
  { (eval echo "$as_me:5243: \"$ac_try\"") >&5
5244
 
  (eval $ac_try) 2>&5
5245
 
  ac_status=$?
5246
 
  echo "$as_me:5246: \$? = $ac_status" >&5
5247
 
  (exit $ac_status); }; }; then
5248
 
      # The compiler can only warn and ignore the option if not recognized
5249
 
    # So say no if there are warnings
5250
 
    if test -s conftest.err; then
5251
 
      compiler_rtti_exceptions=no
5252
 
    else
5253
 
      compiler_rtti_exceptions=yes
 
7409
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7410
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
7411
 
 
7412
  runpath_var=
 
7413
  allow_undefined_flag=
 
7414
  enable_shared_with_static_runtimes=no
 
7415
  archive_cmds=
 
7416
  archive_expsym_cmds=
 
7417
  old_archive_From_new_cmds=
 
7418
  old_archive_from_expsyms_cmds=
 
7419
  export_dynamic_flag_spec=
 
7420
  whole_archive_flag_spec=
 
7421
  thread_safe_flag_spec=
 
7422
  hardcode_libdir_flag_spec=
 
7423
  hardcode_libdir_flag_spec_ld=
 
7424
  hardcode_libdir_separator=
 
7425
  hardcode_direct=no
 
7426
  hardcode_minus_L=no
 
7427
  hardcode_shlibpath_var=unsupported
 
7428
  link_all_deplibs=unknown
 
7429
  hardcode_automatic=no
 
7430
  module_cmds=
 
7431
  module_expsym_cmds=
 
7432
  always_export_symbols=no
 
7433
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7434
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7435
  # included in the symbol list
 
7436
  include_expsyms=
 
7437
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7438
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7439
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7440
  # as well as any symbol that contains `d'.
 
7441
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7442
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7443
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7444
  # the symbol is explicitly referenced.  Since portable code cannot
 
7445
  # rely on this symbol name, it's probably fine to never include it in
 
7446
  # preloaded symbol tables.
 
7447
  extract_expsyms_cmds=
 
7448
 
 
7449
  case $host_os in
 
7450
  cygwin* | mingw* | pw32*)
 
7451
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7452
    # When not using gcc, we currently assume that we are using
 
7453
    # Microsoft Visual C++.
 
7454
    if test "$GCC" != yes; then
 
7455
      with_gnu_ld=no
5254
7456
    fi
5255
 
 
5256
 
else
5257
 
  echo "$as_me: failed program was:" >&5
5258
 
cat conftest.$ac_ext >&5
5259
 
fi
5260
 
rm -f conftest.$ac_objext conftest.$ac_ext
5261
 
  CFLAGS="$save_CFLAGS"
5262
 
  echo "$as_me:5262: result: $compiler_rtti_exceptions" >&5
5263
 
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5264
 
 
5265
 
  if test "$compiler_rtti_exceptions" = "yes"; then
5266
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5267
 
  else
5268
 
    no_builtin_flag=' -fno-builtin'
5269
 
  fi
5270
 
fi
5271
 
 
5272
 
# See if the linker supports building shared libraries.
5273
 
echo "$as_me:5273: checking whether the linker ($LD) supports shared libraries" >&5
5274
 
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5275
 
 
5276
 
allow_undefined_flag=
5277
 
no_undefined_flag=
5278
 
need_lib_prefix=unknown
5279
 
need_version=unknown
5280
 
# when you set need_version to no, make sure it does not cause -set_version
5281
 
# flags to be left without arguments
5282
 
archive_cmds=
5283
 
archive_expsym_cmds=
5284
 
old_archive_from_new_cmds=
5285
 
old_archive_from_expsyms_cmds=
5286
 
export_dynamic_flag_spec=
5287
 
whole_archive_flag_spec=
5288
 
thread_safe_flag_spec=
5289
 
hardcode_into_libs=no
5290
 
hardcode_libdir_flag_spec=
5291
 
hardcode_libdir_separator=
5292
 
hardcode_direct=no
5293
 
hardcode_minus_L=no
5294
 
hardcode_shlibpath_var=unsupported
5295
 
runpath_var=
5296
 
link_all_deplibs=unknown
5297
 
always_export_symbols=no
5298
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5299
 
# include_expsyms should be a list of space-separated symbols to be *always*
5300
 
# included in the symbol list
5301
 
include_expsyms=
5302
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5303
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5304
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5305
 
# as well as any symbol that contains `d'.
5306
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5307
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5308
 
# platforms (ab)use it in PIC code, but their linkers get confused if
5309
 
# the symbol is explicitly referenced.  Since portable code cannot
5310
 
# rely on this symbol name, it's probably fine to never include it in
5311
 
# preloaded symbol tables.
5312
 
extract_expsyms_cmds=
5313
 
 
5314
 
case $host_os in
5315
 
cygwin* | mingw* | pw32*)
5316
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5317
 
  # When not using gcc, we currently assume that we are using
5318
 
  # Microsoft Visual C++.
5319
 
  if test "$GCC" != yes; then
 
7457
    ;;
 
7458
  openbsd*)
5320
7459
    with_gnu_ld=no
5321
 
  fi
5322
 
  ;;
5323
 
openbsd*)
5324
 
  with_gnu_ld=no
5325
 
  ;;
5326
 
esac
5327
 
 
5328
 
ld_shlibs=yes
5329
 
if test "$with_gnu_ld" = yes; then
5330
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
5331
 
  wlarc='${wl}'
5332
 
 
5333
 
  # See if GNU ld supports shared libraries.
5334
 
  case $host_os in
5335
 
  aix3* | aix4* | aix5*)
5336
 
    # On AIX, the GNU linker is very broken
5337
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5338
 
    ld_shlibs=no
5339
 
    cat <<EOF 1>&2
 
7460
    ;;
 
7461
  esac
 
7462
 
 
7463
  ld_shlibs=yes
 
7464
  if test "$with_gnu_ld" = yes; then
 
7465
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7466
    wlarc='${wl}'
 
7467
 
 
7468
    # See if GNU ld supports shared libraries.
 
7469
    case $host_os in
 
7470
    aix3* | aix4* | aix5*)
 
7471
      # On AIX/PPC, the GNU linker is very broken
 
7472
      if test "$host_cpu" != ia64; then
 
7473
        ld_shlibs=no
 
7474
        cat <<EOF 1>&2
5340
7475
 
5341
7476
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5342
7477
*** to be unable to reliably create shared libraries on AIX.
5345
7480
*** so that a non-GNU linker is found, and then restart.
5346
7481
 
5347
7482
EOF
5348
 
    ;;
5349
 
 
5350
 
  amigaos*)
5351
 
    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)'
5352
 
    hardcode_libdir_flag_spec='-L$libdir'
5353
 
    hardcode_minus_L=yes
5354
 
 
5355
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5356
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
5357
 
    # to version 4, is to share data among multiple programs linked
5358
 
    # with the same dynamic library.  Since this doesn't match the
5359
 
    # behavior of shared libraries on other platforms, we can use
5360
 
    # them.
5361
 
    ld_shlibs=no
5362
 
    ;;
5363
 
 
5364
 
  beos*)
5365
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
7483
      fi
 
7484
      ;;
 
7485
 
 
7486
    amigaos*)
 
7487
      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)'
 
7488
      hardcode_libdir_flag_spec='-L$libdir'
 
7489
      hardcode_minus_L=yes
 
7490
 
 
7491
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7492
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7493
      # to version 4, is to share data among multiple programs linked
 
7494
      # with the same dynamic library.  Since this doesn't match the
 
7495
      # behavior of shared libraries on other platforms, we can't use
 
7496
      # them.
 
7497
      ld_shlibs=no
 
7498
      ;;
 
7499
 
 
7500
    beos*)
 
7501
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7502
        allow_undefined_flag=unsupported
 
7503
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7504
        # support --undefined.  This deserves some investigation.  FIXME
 
7505
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7506
      else
 
7507
        ld_shlibs=no
 
7508
      fi
 
7509
      ;;
 
7510
 
 
7511
    cygwin* | mingw* | pw32*)
 
7512
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7513
      # as there is no search path for DLLs.
 
7514
      hardcode_libdir_flag_spec='-L$libdir'
5366
7515
      allow_undefined_flag=unsupported
5367
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5368
 
      # support --undefined.  This deserves some investigation.  FIXME
5369
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5370
 
    else
5371
 
      ld_shlibs=no
5372
 
    fi
5373
 
    ;;
5374
 
 
5375
 
  cygwin* | mingw* | pw32*)
5376
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5377
 
    # no search path for DLLs.
5378
 
    hardcode_libdir_flag_spec='-L$libdir'
5379
 
    allow_undefined_flag=unsupported
5380
 
    always_export_symbols=yes
5381
 
 
5382
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5383
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5384
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5385
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5386
 
      else $CC -o impgen impgen.c ; fi)~
5387
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5388
 
 
5389
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5390
 
 
5391
 
    # cygwin and mingw dlls have different entry points and sets of symbols
5392
 
    # to exclude.
5393
 
    # FIXME: what about values for MSVC?
5394
 
    dll_entry=__cygwin_dll_entry@12
5395
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5396
 
    case $host_os in
5397
 
    mingw*)
5398
 
      # mingw values
5399
 
      dll_entry=_DllMainCRTStartup@12
5400
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5401
 
      ;;
5402
 
    esac
5403
 
 
5404
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
5405
 
    # of the two symbol sets.
5406
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5407
 
 
5408
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
5409
 
    # can override, but on older systems we have to supply one (in ltdll.c)
5410
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
5411
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5412
 
      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~
5413
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5414
 
    else
5415
 
      ltdll_obj=
5416
 
      ltdll_cmds=
5417
 
    fi
5418
 
 
5419
 
    # Extract the symbol export list from an `--export-all' def file,
5420
 
    # then regenerate the def file from the symbol export list, so that
5421
 
    # the compiled dll only exports the symbol export list.
5422
 
    # Be careful not to strip the DATA tag left be newer dlltools.
5423
 
    export_symbols_cmds="$ltdll_cmds"'
5424
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5425
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5426
 
 
5427
 
    # If the export-symbols file already is a .def file (1st line
5428
 
    # is EXPORTS), use it as is.
5429
 
    # If DATA tags from a recent dlltool are present, honour them!
5430
 
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5431
 
        cp $export_symbols $output_objdir/$soname-def;
5432
 
      else
5433
 
        echo EXPORTS > $output_objdir/$soname-def;
5434
 
        _lt_hint=1;
5435
 
        cat $export_symbols | while read symbol; do
5436
 
         set dummy \$symbol;
5437
 
         case \$# in
5438
 
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5439
 
           4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5440
 
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5441
 
         esac;
5442
 
         _lt_hint=`expr 1 + \$_lt_hint`;
5443
 
        done;
5444
 
      fi~
5445
 
      '"$ltdll_cmds"'
5446
 
      $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~
5447
 
      $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~
5448
 
      $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~
5449
 
      $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~
5450
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5451
 
    ;;
5452
 
 
5453
 
  netbsd*)
5454
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5455
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5456
 
      wlarc=
5457
 
    else
5458
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5459
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5460
 
    fi
5461
 
    ;;
5462
 
 
5463
 
  solaris* | sysv5*)
5464
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5465
 
      ld_shlibs=no
5466
 
      cat <<EOF 1>&2
 
7516
      always_export_symbols=no
 
7517
      enable_shared_with_static_runtimes=yes
 
7518
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7519
 
 
7520
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7521
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7522
        # If the export-symbols file already is a .def file (1st line
 
7523
        # is EXPORTS), use it as is; otherwise, prepend...
 
7524
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7525
          cp $export_symbols $output_objdir/$soname.def;
 
7526
        else
 
7527
          echo EXPORTS > $output_objdir/$soname.def;
 
7528
          cat $export_symbols >> $output_objdir/$soname.def;
 
7529
        fi~
 
7530
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7531
      else
 
7532
        ld_shlibs=no
 
7533
      fi
 
7534
      ;;
 
7535
 
 
7536
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7537
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7538
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7539
        wlarc=
 
7540
      else
 
7541
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7542
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7543
      fi
 
7544
      ;;
 
7545
 
 
7546
    solaris* | sysv5*)
 
7547
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7548
        ld_shlibs=no
 
7549
        cat <<EOF 1>&2
5467
7550
 
5468
7551
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5469
7552
*** create shared libraries on Solaris systems.  Therefore, libtool
5473
7556
*** used, and then restart.
5474
7557
 
5475
7558
EOF
5476
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5477
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5478
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5479
 
    else
5480
 
      ld_shlibs=no
5481
 
    fi
5482
 
    ;;
5483
 
 
5484
 
  sunos4*)
5485
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5486
 
    wlarc=
5487
 
    hardcode_direct=yes
5488
 
    hardcode_shlibpath_var=no
5489
 
    ;;
5490
 
 
5491
 
  *)
5492
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5493
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5494
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5495
 
    else
5496
 
      ld_shlibs=no
5497
 
    fi
5498
 
    ;;
5499
 
  esac
5500
 
 
5501
 
  if test "$ld_shlibs" = yes; then
5502
 
    runpath_var=LD_RUN_PATH
5503
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5504
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
5505
 
    case $host_os in
5506
 
    cygwin* | mingw* | pw32*)
5507
 
      # dlltool doesn't understand --whole-archive et. al.
5508
 
      whole_archive_flag_spec=
5509
 
      ;;
 
7559
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7560
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7561
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7562
      else
 
7563
        ld_shlibs=no
 
7564
      fi
 
7565
      ;;
 
7566
 
 
7567
    sunos4*)
 
7568
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7569
      wlarc=
 
7570
      hardcode_direct=yes
 
7571
      hardcode_shlibpath_var=no
 
7572
      ;;
 
7573
 
 
7574
  linux*)
 
7575
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7576
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7577
        archive_cmds="$tmp_archive_cmds"
 
7578
      supports_anon_versioning=no
 
7579
      case `$LD -v 2>/dev/null` in
 
7580
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7581
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7582
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7583
        *\ 2.11.*) ;; # other 2.11 versions
 
7584
        *) supports_anon_versioning=yes ;;
 
7585
      esac
 
7586
      if test $supports_anon_versioning = yes; then
 
7587
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7588
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7589
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
7590
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7591
      else
 
7592
        archive_expsym_cmds="$tmp_archive_cmds"
 
7593
      fi
 
7594
      link_all_deplibs=no
 
7595
    else
 
7596
      ld_shlibs=no
 
7597
    fi
 
7598
    ;;
 
7599
 
5510
7600
    *)
 
7601
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7602
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7603
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7604
      else
 
7605
        ld_shlibs=no
 
7606
      fi
 
7607
      ;;
 
7608
    esac
 
7609
 
 
7610
    if test "$ld_shlibs" = yes; then
 
7611
      runpath_var=LD_RUN_PATH
 
7612
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7613
      export_dynamic_flag_spec='${wl}--export-dynamic'
5511
7614
      # ancient GNU ld didn't support --whole-archive et. al.
5512
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5513
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7615
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7616
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5514
7617
      else
5515
 
        whole_archive_flag_spec=
 
7618
        whole_archive_flag_spec=
5516
7619
      fi
5517
 
      ;;
5518
 
    esac
5519
 
  fi
5520
 
else
5521
 
  # PORTME fill in a description of your system's linker (not GNU ld)
5522
 
  case $host_os in
5523
 
  aix3*)
5524
 
    allow_undefined_flag=unsupported
5525
 
    always_export_symbols=yes
5526
 
    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'
5527
 
    # Note: this linker hardcodes the directories in LIBPATH if there
5528
 
    # are no directories specified by -L.
5529
 
    hardcode_minus_L=yes
5530
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
5531
 
      # Neither direct hardcoding nor static linking is supported with a
5532
 
      # broken collect2.
5533
 
      hardcode_direct=unsupported
5534
7620
    fi
5535
 
    ;;
5536
 
 
5537
 
  aix4* | aix5*)
5538
 
    if test "$host_cpu" = ia64; then
5539
 
      # On IA64, the linker does run time linking by default, so we don't
5540
 
      # have to do anything special.
5541
 
      aix_use_runtimelinking=no
5542
 
      exp_sym_flag='-Bexport'
5543
 
      no_entry_flag=""
 
7621
  else
 
7622
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7623
    case $host_os in
 
7624
    aix3*)
 
7625
      allow_undefined_flag=unsupported
 
7626
      always_export_symbols=yes
 
7627
      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'
 
7628
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7629
      # are no directories specified by -L.
 
7630
      hardcode_minus_L=yes
 
7631
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7632
        # Neither direct hardcoding nor static linking is supported with a
 
7633
        # broken collect2.
 
7634
        hardcode_direct=unsupported
 
7635
      fi
 
7636
      ;;
 
7637
 
 
7638
    aix4* | aix5*)
 
7639
      if test "$host_cpu" = ia64; then
 
7640
        # On IA64, the linker does run time linking by default, so we don't
 
7641
        # have to do anything special.
 
7642
        aix_use_runtimelinking=no
 
7643
        exp_sym_flag='-Bexport'
 
7644
        no_entry_flag=""
 
7645
      else
 
7646
        # If we're using GNU nm, then we don't want the "-C" option.
 
7647
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7648
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7649
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
7650
        else
 
7651
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
7652
        fi
 
7653
        aix_use_runtimelinking=no
 
7654
 
 
7655
        # Test if we are trying to use run time linking or normal
 
7656
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7657
        # need to do runtime linking.
 
7658
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7659
          for ld_flag in $LDFLAGS; do
 
7660
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7661
            aix_use_runtimelinking=yes
 
7662
            break
 
7663
          fi
 
7664
          done
 
7665
        esac
 
7666
 
 
7667
        exp_sym_flag='-bexport'
 
7668
        no_entry_flag='-bnoentry'
 
7669
      fi
 
7670
 
 
7671
      # When large executables or shared objects are built, AIX ld can
 
7672
      # have problems creating the table of contents.  If linking a library
 
7673
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7674
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7675
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7676
 
 
7677
      archive_cmds=''
 
7678
      hardcode_direct=yes
 
7679
      hardcode_libdir_separator=':'
 
7680
      link_all_deplibs=yes
 
7681
 
 
7682
      if test "$GCC" = yes; then
 
7683
        case $host_os in aix4.012|aix4.012.*)
 
7684
        # We only want to do this on AIX 4.2 and lower, the check
 
7685
        # below for broken collect2 doesn't work under 4.3+
 
7686
          collect2name=`${CC} -print-prog-name=collect2`
 
7687
          if test -f "$collect2name" && \
 
7688
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7689
          then
 
7690
          # We have reworked collect2
 
7691
          hardcode_direct=yes
 
7692
          else
 
7693
          # We have old collect2
 
7694
          hardcode_direct=unsupported
 
7695
          # It fails to find uninstalled libraries when the uninstalled
 
7696
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7697
          # to unsupported forces relinking
 
7698
          hardcode_minus_L=yes
 
7699
          hardcode_libdir_flag_spec='-L$libdir'
 
7700
          hardcode_libdir_separator=
 
7701
          fi
 
7702
        esac
 
7703
        shared_flag='-shared'
 
7704
      else
 
7705
        # not using gcc
 
7706
        if test "$host_cpu" = ia64; then
 
7707
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7708
        # chokes on -Wl,-G. The following line is correct:
 
7709
          shared_flag='-G'
 
7710
        else
 
7711
        if test "$aix_use_runtimelinking" = yes; then
 
7712
            shared_flag='${wl}-G'
 
7713
          else
 
7714
            shared_flag='${wl}-bM:SRE'
 
7715
        fi
 
7716
        fi
 
7717
      fi
 
7718
 
 
7719
      # It seems that -bexpall does not export symbols beginning with
 
7720
      # underscore (_), so it is better to generate a list of symbols to export.
 
7721
      always_export_symbols=yes
 
7722
      if test "$aix_use_runtimelinking" = yes; then
 
7723
        # Warning - without using the other runtime loading flags (-brtl),
 
7724
        # -berok will link without error, but may produce a broken library.
 
7725
        allow_undefined_flag='-berok'
 
7726
       # Determine the default libpath from the value encoded in an empty executable.
 
7727
       cat >conftest.$ac_ext <<_ACEOF
 
7728
/* confdefs.h.  */
 
7729
_ACEOF
 
7730
cat confdefs.h >>conftest.$ac_ext
 
7731
cat >>conftest.$ac_ext <<_ACEOF
 
7732
/* end confdefs.h.  */
 
7733
 
 
7734
int
 
7735
main ()
 
7736
{
 
7737
 
 
7738
  ;
 
7739
  return 0;
 
7740
}
 
7741
_ACEOF
 
7742
rm -f conftest.$ac_objext conftest$ac_exeext
 
7743
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7744
  (eval $ac_link) 2>conftest.er1
 
7745
  ac_status=$?
 
7746
  grep -v '^ *+' conftest.er1 >conftest.err
 
7747
  rm -f conftest.er1
 
7748
  cat conftest.err >&5
 
7749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7750
  (exit $ac_status); } &&
 
7751
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7753
  (eval $ac_try) 2>&5
 
7754
  ac_status=$?
 
7755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7756
  (exit $ac_status); }; } &&
 
7757
         { ac_try='test -s conftest$ac_exeext'
 
7758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7759
  (eval $ac_try) 2>&5
 
7760
  ac_status=$?
 
7761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7762
  (exit $ac_status); }; }; then
 
7763
 
 
7764
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7765
}'`
 
7766
# Check for a 64-bit object if we didn't find anything.
 
7767
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7768
}'`; fi
 
7769
else
 
7770
  echo "$as_me: failed program was:" >&5
 
7771
sed 's/^/| /' conftest.$ac_ext >&5
 
7772
 
 
7773
fi
 
7774
rm -f conftest.err conftest.$ac_objext \
 
7775
      conftest$ac_exeext conftest.$ac_ext
 
7776
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7777
 
 
7778
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7779
        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"
 
7780
       else
 
7781
        if test "$host_cpu" = ia64; then
 
7782
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7783
          allow_undefined_flag="-z nodefs"
 
7784
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
7785
        else
 
7786
         # Determine the default libpath from the value encoded in an empty executable.
 
7787
         cat >conftest.$ac_ext <<_ACEOF
 
7788
/* confdefs.h.  */
 
7789
_ACEOF
 
7790
cat confdefs.h >>conftest.$ac_ext
 
7791
cat >>conftest.$ac_ext <<_ACEOF
 
7792
/* end confdefs.h.  */
 
7793
 
 
7794
int
 
7795
main ()
 
7796
{
 
7797
 
 
7798
  ;
 
7799
  return 0;
 
7800
}
 
7801
_ACEOF
 
7802
rm -f conftest.$ac_objext conftest$ac_exeext
 
7803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7804
  (eval $ac_link) 2>conftest.er1
 
7805
  ac_status=$?
 
7806
  grep -v '^ *+' conftest.er1 >conftest.err
 
7807
  rm -f conftest.er1
 
7808
  cat conftest.err >&5
 
7809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7810
  (exit $ac_status); } &&
 
7811
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7813
  (eval $ac_try) 2>&5
 
7814
  ac_status=$?
 
7815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7816
  (exit $ac_status); }; } &&
 
7817
         { ac_try='test -s conftest$ac_exeext'
 
7818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7819
  (eval $ac_try) 2>&5
 
7820
  ac_status=$?
 
7821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7822
  (exit $ac_status); }; }; then
 
7823
 
 
7824
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7825
}'`
 
7826
# Check for a 64-bit object if we didn't find anything.
 
7827
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7828
}'`; fi
 
7829
else
 
7830
  echo "$as_me: failed program was:" >&5
 
7831
sed 's/^/| /' conftest.$ac_ext >&5
 
7832
 
 
7833
fi
 
7834
rm -f conftest.err conftest.$ac_objext \
 
7835
      conftest$ac_exeext conftest.$ac_ext
 
7836
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7837
 
 
7838
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7839
          # Warning - without using the other run time loading flags,
 
7840
          # -berok will link without error, but may produce a broken library.
 
7841
          no_undefined_flag=' ${wl}-bernotok'
 
7842
          allow_undefined_flag=' ${wl}-berok'
 
7843
          # -bexpall does not export symbols beginning with underscore (_)
 
7844
          always_export_symbols=yes
 
7845
          # Exported symbols can be pulled into shared objects from archives
 
7846
          whole_archive_flag_spec=' '
 
7847
          archive_cmds_need_lc=yes
 
7848
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7849
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7850
        fi
 
7851
      fi
 
7852
      ;;
 
7853
 
 
7854
    amigaos*)
 
7855
      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)'
 
7856
      hardcode_libdir_flag_spec='-L$libdir'
 
7857
      hardcode_minus_L=yes
 
7858
      # see comment about different semantics on the GNU ld section
 
7859
      ld_shlibs=no
 
7860
      ;;
 
7861
 
 
7862
    bsdi4*)
 
7863
      export_dynamic_flag_spec=-rdynamic
 
7864
      ;;
 
7865
 
 
7866
    cygwin* | mingw* | pw32*)
 
7867
      # When not using gcc, we currently assume that we are using
 
7868
      # Microsoft Visual C++.
 
7869
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7870
      # no search path for DLLs.
 
7871
      hardcode_libdir_flag_spec=' '
 
7872
      allow_undefined_flag=unsupported
 
7873
      # Tell ltmain to make .lib files, not .a files.
 
7874
      libext=lib
 
7875
      # Tell ltmain to make .dll files, not .so files.
 
7876
      shrext_cmds=".dll"
 
7877
      # FIXME: Setting linknames here is a bad hack.
 
7878
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7879
      # The linker will automatically build a .lib file if we build a DLL.
 
7880
      old_archive_From_new_cmds='true'
 
7881
      # FIXME: Should let the user specify the lib program.
 
7882
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7883
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7884
      enable_shared_with_static_runtimes=yes
 
7885
      ;;
 
7886
 
 
7887
    darwin* | rhapsody*)
 
7888
    if test "$GXX" = yes ; then
 
7889
      archive_cmds_need_lc=no
 
7890
      case "$host_os" in
 
7891
      rhapsody* | darwin1.[012])
 
7892
        allow_undefined_flag='-undefined suppress'
 
7893
        ;;
 
7894
      *) # Darwin 1.3 on
 
7895
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7896
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
7897
      else
 
7898
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
7899
          10.[012])
 
7900
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
7901
            ;;
 
7902
          10.*)
 
7903
            allow_undefined_flag='-undefined dynamic_lookup'
 
7904
            ;;
 
7905
        esac
 
7906
      fi
 
7907
        ;;
 
7908
      esac
 
7909
        lt_int_apple_cc_single_mod=no
 
7910
        output_verbose_link_cmd='echo'
 
7911
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
7912
          lt_int_apple_cc_single_mod=yes
 
7913
        fi
 
7914
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7915
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7916
        else
 
7917
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7918
      fi
 
7919
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7920
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7921
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7922
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7923
        else
 
7924
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7925
        fi
 
7926
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7927
      hardcode_direct=no
 
7928
      hardcode_automatic=yes
 
7929
      hardcode_shlibpath_var=unsupported
 
7930
      whole_archive_flag_spec='-all_load $convenience'
 
7931
      link_all_deplibs=yes
5544
7932
    else
5545
 
      aix_use_runtimelinking=no
5546
 
 
5547
 
      # Test if we are trying to use run time linking or normal
5548
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5549
 
      # need to do runtime linking.
5550
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5551
 
        for ld_flag in $LDFLAGS; do
5552
 
          case $ld_flag in
5553
 
          *-brtl*)
5554
 
            aix_use_runtimelinking=yes
5555
 
            break
5556
 
          ;;
5557
 
          esac
5558
 
        done
5559
 
      esac
5560
 
 
5561
 
      exp_sym_flag='-bexport'
5562
 
      no_entry_flag='-bnoentry'
 
7933
      ld_shlibs=no
5563
7934
    fi
5564
 
 
5565
 
    # When large executables or shared objects are built, AIX ld can
5566
 
    # have problems creating the table of contents.  If linking a library
5567
 
    # or program results in "error TOC overflow" add -mminimal-toc to
5568
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5569
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5570
 
 
5571
 
    hardcode_direct=yes
5572
 
    archive_cmds=''
5573
 
    hardcode_libdir_separator=':'
5574
 
    if test "$GCC" = yes; then
5575
 
      case $host_os in aix4.[012]|aix4.[012].*)
5576
 
        collect2name=`${CC} -print-prog-name=collect2`
5577
 
        if test -f "$collect2name" && \
5578
 
          strings "$collect2name" | grep resolve_lib_name >/dev/null
5579
 
        then
5580
 
          # We have reworked collect2
 
7935
      ;;
 
7936
 
 
7937
    dgux*)
 
7938
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7939
      hardcode_libdir_flag_spec='-L$libdir'
 
7940
      hardcode_shlibpath_var=no
 
7941
      ;;
 
7942
 
 
7943
    freebsd1*)
 
7944
      ld_shlibs=no
 
7945
      ;;
 
7946
 
 
7947
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7948
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7949
    # does not break anything, and helps significantly (at the cost of a little
 
7950
    # extra space).
 
7951
    freebsd2.2*)
 
7952
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7953
      hardcode_libdir_flag_spec='-R$libdir'
 
7954
      hardcode_direct=yes
 
7955
      hardcode_shlibpath_var=no
 
7956
      ;;
 
7957
 
 
7958
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7959
    freebsd2*)
 
7960
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7961
      hardcode_direct=yes
 
7962
      hardcode_minus_L=yes
 
7963
      hardcode_shlibpath_var=no
 
7964
      ;;
 
7965
 
 
7966
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7967
    freebsd* | kfreebsd*-gnu)
 
7968
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7969
      hardcode_libdir_flag_spec='-R$libdir'
 
7970
      hardcode_direct=yes
 
7971
      hardcode_shlibpath_var=no
 
7972
      ;;
 
7973
 
 
7974
    hpux9*)
 
7975
      if test "$GCC" = yes; then
 
7976
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
7977
      else
 
7978
        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'
 
7979
      fi
 
7980
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7981
      hardcode_libdir_separator=:
 
7982
      hardcode_direct=yes
 
7983
 
 
7984
      # hardcode_minus_L: Not really in the search PATH,
 
7985
      # but as the default location of the library.
 
7986
      hardcode_minus_L=yes
 
7987
      export_dynamic_flag_spec='${wl}-E'
 
7988
      ;;
 
7989
 
 
7990
    hpux10* | hpux11*)
 
7991
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7992
        case "$host_cpu" in
 
7993
        hppa*64*|ia64*)
 
7994
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7995
          ;;
 
7996
        *)
 
7997
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7998
          ;;
 
7999
        esac
 
8000
      else
 
8001
        case "$host_cpu" in
 
8002
        hppa*64*|ia64*)
 
8003
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8004
          ;;
 
8005
        *)
 
8006
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8007
          ;;
 
8008
        esac
 
8009
      fi
 
8010
      if test "$with_gnu_ld" = no; then
 
8011
        case "$host_cpu" in
 
8012
        hppa*64*)
 
8013
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8014
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8015
          hardcode_libdir_separator=:
 
8016
          hardcode_direct=no
 
8017
          hardcode_shlibpath_var=no
 
8018
          ;;
 
8019
        ia64*)
 
8020
          hardcode_libdir_flag_spec='-L$libdir'
 
8021
          hardcode_direct=no
 
8022
          hardcode_shlibpath_var=no
 
8023
 
 
8024
          # hardcode_minus_L: Not really in the search PATH,
 
8025
          # but as the default location of the library.
 
8026
          hardcode_minus_L=yes
 
8027
          ;;
 
8028
        *)
 
8029
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8030
          hardcode_libdir_separator=:
5581
8031
          hardcode_direct=yes
5582
 
        else
5583
 
          # We have old collect2
5584
 
          hardcode_direct=unsupported
5585
 
          # It fails to find uninstalled libraries when the uninstalled
5586
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5587
 
          # to unsupported forces relinking
 
8032
          export_dynamic_flag_spec='${wl}-E'
 
8033
 
 
8034
          # hardcode_minus_L: Not really in the search PATH,
 
8035
          # but as the default location of the library.
5588
8036
          hardcode_minus_L=yes
5589
 
          hardcode_libdir_flag_spec='-L$libdir'
5590
 
          hardcode_libdir_separator=
5591
 
        fi
5592
 
      esac
5593
 
 
5594
 
      shared_flag='-shared'
5595
 
    else
5596
 
      # not using gcc
5597
 
      if test "$host_cpu" = ia64; then
5598
 
        shared_flag='${wl}-G'
5599
 
      else
5600
 
        if test "$aix_use_runtimelinking" = yes; then
5601
 
          shared_flag='${wl}-G'
5602
 
        else
5603
 
          shared_flag='${wl}-bM:SRE'
5604
 
        fi
5605
 
      fi
5606
 
    fi
5607
 
 
5608
 
    # It seems that -bexpall can do strange things, so it is better to
5609
 
    # generate a list of symbols to export.
5610
 
    always_export_symbols=yes
5611
 
    if test "$aix_use_runtimelinking" = yes; then
5612
 
      # Warning - without using the other runtime loading flags (-brtl),
5613
 
      # -berok will link without error, but may produce a broken library.
5614
 
      allow_undefined_flag='-berok'
5615
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5616
 
      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"
5617
 
    else
5618
 
      if test "$host_cpu" = ia64; then
5619
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5620
 
        allow_undefined_flag="-z nodefs"
5621
 
        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"
5622
 
      else
5623
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5624
 
        # Warning - without using the other run time loading flags,
5625
 
        # -berok will link without error, but may produce a broken library.
5626
 
        allow_undefined_flag='${wl}-berok'
5627
 
        # This is a bit strange, but is similar to how AIX traditionally builds
5628
 
        # it's shared libraries.
5629
 
        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'
5630
 
      fi
5631
 
    fi
5632
 
    ;;
5633
 
 
5634
 
  amigaos*)
5635
 
    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)'
5636
 
    hardcode_libdir_flag_spec='-L$libdir'
5637
 
    hardcode_minus_L=yes
5638
 
    # see comment about different semantics on the GNU ld section
5639
 
    ld_shlibs=no
5640
 
    ;;
5641
 
 
5642
 
  cygwin* | mingw* | pw32*)
5643
 
    # When not using gcc, we currently assume that we are using
5644
 
    # Microsoft Visual C++.
5645
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5646
 
    # no search path for DLLs.
5647
 
    hardcode_libdir_flag_spec=' '
5648
 
    allow_undefined_flag=unsupported
5649
 
    # Tell ltmain to make .lib files, not .a files.
5650
 
    libext=lib
5651
 
    # FIXME: Setting linknames here is a bad hack.
5652
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5653
 
    # The linker will automatically build a .lib file if we build a DLL.
5654
 
    old_archive_from_new_cmds='true'
5655
 
    # FIXME: Should let the user specify the lib program.
5656
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5657
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
5658
 
    ;;
5659
 
 
5660
 
  darwin* | rhapsody*)
5661
 
    case "$host_os" in
5662
 
    rhapsody* | darwin1.[012])
5663
 
      allow_undefined_flag='-undefined suppress'
5664
 
      ;;
5665
 
    *) # Darwin 1.3 on
5666
 
      allow_undefined_flag='-flat_namespace -undefined suppress'
5667
 
      ;;
5668
 
    esac
5669
 
    # FIXME: Relying on posixy $() will cause problems for
5670
 
    #        cross-compilation, but unfortunately the echo tests do not
5671
 
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5672
 
    #        `"' quotes if we put them in here... so don't!
5673
 
    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)'
5674
 
    # We need to add '_' to the symbols in $export_symbols first
5675
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5676
 
    hardcode_direct=yes
5677
 
    hardcode_shlibpath_var=no
5678
 
    whole_archive_flag_spec='-all_load $convenience'
5679
 
    ;;
5680
 
 
5681
 
  freebsd1*)
5682
 
    ld_shlibs=no
5683
 
    ;;
5684
 
 
5685
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5686
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
5687
 
  # does not break anything, and helps significantly (at the cost of a little
5688
 
  # extra space).
5689
 
  freebsd2.2*)
5690
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5691
 
    hardcode_libdir_flag_spec='-R$libdir'
5692
 
    hardcode_direct=yes
5693
 
    hardcode_shlibpath_var=no
5694
 
    ;;
5695
 
 
5696
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5697
 
  freebsd2*)
5698
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5699
 
    hardcode_direct=yes
5700
 
    hardcode_minus_L=yes
5701
 
    hardcode_shlibpath_var=no
5702
 
    ;;
5703
 
 
5704
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5705
 
  freebsd*)
5706
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5707
 
    hardcode_libdir_flag_spec='-R$libdir'
5708
 
    hardcode_direct=yes
5709
 
    hardcode_shlibpath_var=no
5710
 
    ;;
5711
 
 
5712
 
  hpux9* | hpux10* | hpux11*)
5713
 
    case $host_os in
5714
 
    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' ;;
5715
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5716
 
    esac
5717
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5718
 
    hardcode_libdir_separator=:
5719
 
    hardcode_direct=yes
5720
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
5721
 
                         # location of the library.
5722
 
    export_dynamic_flag_spec='${wl}-E'
5723
 
    ;;
5724
 
 
5725
 
  irix5* | irix6* | nonstopux*)
5726
 
    if test "$GCC" = yes; then
5727
 
      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'
5728
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5729
 
    else
5730
 
      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'
5731
 
      hardcode_libdir_flag_spec='-rpath $libdir'
5732
 
    fi
5733
 
    hardcode_libdir_separator=:
5734
 
    link_all_deplibs=yes
5735
 
    ;;
5736
 
 
5737
 
  netbsd*)
5738
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5739
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5740
 
    else
5741
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5742
 
    fi
5743
 
    hardcode_libdir_flag_spec='-R$libdir'
5744
 
    hardcode_direct=yes
5745
 
    hardcode_shlibpath_var=no
5746
 
    ;;
5747
 
 
5748
 
  newsos6)
5749
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5750
 
    hardcode_direct=yes
5751
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5752
 
    hardcode_libdir_separator=:
5753
 
    hardcode_shlibpath_var=no
5754
 
    ;;
5755
 
 
5756
 
  openbsd*)
5757
 
    hardcode_direct=yes
5758
 
    hardcode_shlibpath_var=no
5759
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5760
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5761
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5762
 
      export_dynamic_flag_spec='${wl}-E'
5763
 
    else
5764
 
      case "$host_os" in
5765
 
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5766
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5767
 
        hardcode_libdir_flag_spec='-R$libdir'
5768
 
        ;;
5769
 
      *)
5770
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5771
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5772
 
        ;;
5773
 
      esac
5774
 
    fi
5775
 
    ;;
5776
 
 
5777
 
  os2*)
5778
 
    hardcode_libdir_flag_spec='-L$libdir'
5779
 
    hardcode_minus_L=yes
5780
 
    allow_undefined_flag=unsupported
5781
 
    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'
5782
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5783
 
    ;;
5784
 
 
5785
 
  osf3*)
5786
 
    if test "$GCC" = yes; then
5787
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5788
 
      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'
5789
 
    else
5790
 
      allow_undefined_flag=' -expect_unresolved \*'
5791
 
      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'
5792
 
    fi
5793
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5794
 
    hardcode_libdir_separator=:
5795
 
    ;;
5796
 
 
5797
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
5798
 
    if test "$GCC" = yes; then
5799
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5800
 
      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'
5801
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5802
 
    else
5803
 
      allow_undefined_flag=' -expect_unresolved \*'
5804
 
      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'
5805
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5806
 
      $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'
5807
 
 
5808
 
      #Both c and cxx compiler support -rpath directly
5809
 
      hardcode_libdir_flag_spec='-rpath $libdir'
5810
 
    fi
5811
 
    hardcode_libdir_separator=:
5812
 
    ;;
5813
 
 
5814
 
  sco3.2v5*)
5815
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5816
 
    hardcode_shlibpath_var=no
5817
 
    runpath_var=LD_RUN_PATH
5818
 
    hardcode_runpath_var=yes
5819
 
    export_dynamic_flag_spec='${wl}-Bexport'
5820
 
    ;;
5821
 
 
5822
 
  solaris*)
5823
 
    # gcc --version < 3.0 without binutils cannot create self contained
5824
 
    # shared libraries reliably, requiring libgcc.a to resolve some of
5825
 
    # the object symbols generated in some cases.  Libraries that use
5826
 
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5827
 
    # a copy of libgcc.a into every shared library to guarantee resolving
5828
 
    # such symbols causes other problems:  According to Tim Van Holder
5829
 
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5830
 
    # (to the application) exception stack for one thing.
5831
 
    no_undefined_flag=' -z defs'
5832
 
    if test "$GCC" = yes; then
5833
 
      case `$CC --version 2>/dev/null` in
5834
 
      [12].*)
5835
 
        cat <<EOF 1>&2
5836
 
 
5837
 
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5838
 
*** create self contained shared libraries on Solaris systems, without
5839
 
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5840
 
*** -no-undefined support, which will at least allow you to build shared
5841
 
*** libraries.  However, you may find that when you link such libraries
5842
 
*** into an application without using GCC, you have to manually add
5843
 
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5844
 
*** upgrade to a newer version of GCC.  Another option is to rebuild your
5845
 
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5846
 
 
5847
 
EOF
5848
 
        no_undefined_flag=
5849
 
        ;;
5850
 
      esac
5851
 
    fi
5852
 
    # $CC -shared without GNU ld will not create a library from C++
5853
 
    # object files and a static libstdc++, better avoid it by now
5854
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5855
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5856
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5857
 
    hardcode_libdir_flag_spec='-R$libdir'
5858
 
    hardcode_shlibpath_var=no
5859
 
    case $host_os in
5860
 
    solaris2.[0-5] | solaris2.[0-5].*) ;;
5861
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5862
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5863
 
    esac
5864
 
    link_all_deplibs=yes
5865
 
    ;;
5866
 
 
5867
 
  sunos4*)
5868
 
    if test "x$host_vendor" = xsequent; then
5869
 
      # Use $CC to link under sequent, because it throws in some extra .o
5870
 
      # files that make .init and .fini sections work.
5871
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5872
 
    else
5873
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5874
 
    fi
5875
 
    hardcode_libdir_flag_spec='-L$libdir'
5876
 
    hardcode_direct=yes
5877
 
    hardcode_minus_L=yes
5878
 
    hardcode_shlibpath_var=no
5879
 
    ;;
5880
 
 
5881
 
  sysv4)
5882
 
    case $host_vendor in
5883
 
      sni)
5884
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5885
 
        hardcode_direct=yes # is this really true???
5886
 
        ;;
5887
 
      siemens)
5888
 
        ## LD is ld it makes a PLAMLIB
5889
 
        ## CC just makes a GrossModule.
5890
 
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5891
 
        reload_cmds='$CC -r -o $output$reload_objs'
5892
 
        hardcode_direct=no
5893
 
        ;;
5894
 
      motorola)
5895
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5896
 
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5897
 
        ;;
5898
 
    esac
5899
 
    runpath_var='LD_RUN_PATH'
5900
 
    hardcode_shlibpath_var=no
5901
 
    ;;
5902
 
 
5903
 
  sysv4.3*)
5904
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5905
 
    hardcode_shlibpath_var=no
5906
 
    export_dynamic_flag_spec='-Bexport'
5907
 
    ;;
5908
 
 
5909
 
  sysv5*)
5910
 
    no_undefined_flag=' -z text'
5911
 
    # $CC -shared without GNU ld will not create a library from C++
5912
 
    # object files and a static libstdc++, better avoid it by now
5913
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5914
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5915
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5916
 
    hardcode_libdir_flag_spec=
5917
 
    hardcode_shlibpath_var=no
5918
 
    runpath_var='LD_RUN_PATH'
5919
 
    ;;
5920
 
 
5921
 
  uts4*)
5922
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5923
 
    hardcode_libdir_flag_spec='-L$libdir'
5924
 
    hardcode_shlibpath_var=no
5925
 
    ;;
5926
 
 
5927
 
  dgux*)
5928
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5929
 
    hardcode_libdir_flag_spec='-L$libdir'
5930
 
    hardcode_shlibpath_var=no
5931
 
    ;;
5932
 
 
5933
 
  sysv4*MP*)
5934
 
    if test -d /usr/nec; then
5935
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5936
 
      hardcode_shlibpath_var=no
5937
 
      runpath_var=LD_RUN_PATH
5938
 
      hardcode_runpath_var=yes
5939
 
      ld_shlibs=yes
5940
 
    fi
5941
 
    ;;
5942
 
 
5943
 
  sysv4.2uw2*)
5944
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5945
 
    hardcode_direct=yes
5946
 
    hardcode_minus_L=no
5947
 
    hardcode_shlibpath_var=no
5948
 
    hardcode_runpath_var=yes
5949
 
    runpath_var=LD_RUN_PATH
5950
 
    ;;
5951
 
 
5952
 
  sysv5uw7* | unixware7*)
5953
 
    no_undefined_flag='${wl}-z ${wl}text'
5954
 
    if test "$GCC" = yes; then
5955
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5956
 
    else
5957
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5958
 
    fi
5959
 
    runpath_var='LD_RUN_PATH'
5960
 
    hardcode_shlibpath_var=no
5961
 
    ;;
5962
 
 
5963
 
  *)
5964
 
    ld_shlibs=no
5965
 
    ;;
5966
 
  esac
5967
 
fi
5968
 
echo "$as_me:5968: result: $ld_shlibs" >&5
 
8037
          ;;
 
8038
        esac
 
8039
      fi
 
8040
      ;;
 
8041
 
 
8042
    irix5* | irix6* | nonstopux*)
 
8043
      if test "$GCC" = yes; then
 
8044
        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'
 
8045
      else
 
8046
        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'
 
8047
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8048
      fi
 
8049
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8050
      hardcode_libdir_separator=:
 
8051
      link_all_deplibs=yes
 
8052
      ;;
 
8053
 
 
8054
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
8055
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8056
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8057
      else
 
8058
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8059
      fi
 
8060
      hardcode_libdir_flag_spec='-R$libdir'
 
8061
      hardcode_direct=yes
 
8062
      hardcode_shlibpath_var=no
 
8063
      ;;
 
8064
 
 
8065
    newsos6)
 
8066
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8067
      hardcode_direct=yes
 
8068
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8069
      hardcode_libdir_separator=:
 
8070
      hardcode_shlibpath_var=no
 
8071
      ;;
 
8072
 
 
8073
    openbsd*)
 
8074
      hardcode_direct=yes
 
8075
      hardcode_shlibpath_var=no
 
8076
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8077
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8078
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8079
        export_dynamic_flag_spec='${wl}-E'
 
8080
      else
 
8081
       case $host_os in
 
8082
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8083
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8084
           hardcode_libdir_flag_spec='-R$libdir'
 
8085
           ;;
 
8086
         *)
 
8087
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8088
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8089
           ;;
 
8090
       esac
 
8091
      fi
 
8092
      ;;
 
8093
 
 
8094
    os2*)
 
8095
      hardcode_libdir_flag_spec='-L$libdir'
 
8096
      hardcode_minus_L=yes
 
8097
      allow_undefined_flag=unsupported
 
8098
      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'
 
8099
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8100
      ;;
 
8101
 
 
8102
    osf3*)
 
8103
      if test "$GCC" = yes; then
 
8104
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8105
        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'
 
8106
      else
 
8107
        allow_undefined_flag=' -expect_unresolved \*'
 
8108
        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'
 
8109
      fi
 
8110
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8111
      hardcode_libdir_separator=:
 
8112
      ;;
 
8113
 
 
8114
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8115
      if test "$GCC" = yes; then
 
8116
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8117
        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'
 
8118
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8119
      else
 
8120
        allow_undefined_flag=' -expect_unresolved \*'
 
8121
        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'
 
8122
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8123
        $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'
 
8124
 
 
8125
        # Both c and cxx compiler support -rpath directly
 
8126
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8127
      fi
 
8128
      hardcode_libdir_separator=:
 
8129
      ;;
 
8130
 
 
8131
    sco3.2v5*)
 
8132
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8133
      hardcode_shlibpath_var=no
 
8134
      export_dynamic_flag_spec='${wl}-Bexport'
 
8135
      runpath_var=LD_RUN_PATH
 
8136
      hardcode_runpath_var=yes
 
8137
      ;;
 
8138
 
 
8139
    solaris*)
 
8140
      no_undefined_flag=' -z text'
 
8141
      if test "$GCC" = yes; then
 
8142
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8143
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8144
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8145
      else
 
8146
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8147
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8148
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8149
      fi
 
8150
      hardcode_libdir_flag_spec='-R$libdir'
 
8151
      hardcode_shlibpath_var=no
 
8152
      case $host_os in
 
8153
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8154
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8155
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8156
      esac
 
8157
      link_all_deplibs=yes
 
8158
      ;;
 
8159
 
 
8160
    sunos4*)
 
8161
      if test "x$host_vendor" = xsequent; then
 
8162
        # Use $CC to link under sequent, because it throws in some extra .o
 
8163
        # files that make .init and .fini sections work.
 
8164
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8165
      else
 
8166
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8167
      fi
 
8168
      hardcode_libdir_flag_spec='-L$libdir'
 
8169
      hardcode_direct=yes
 
8170
      hardcode_minus_L=yes
 
8171
      hardcode_shlibpath_var=no
 
8172
      ;;
 
8173
 
 
8174
    sysv4)
 
8175
      case $host_vendor in
 
8176
        sni)
 
8177
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8178
          hardcode_direct=yes # is this really true???
 
8179
        ;;
 
8180
        siemens)
 
8181
          ## LD is ld it makes a PLAMLIB
 
8182
          ## CC just makes a GrossModule.
 
8183
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8184
          reload_cmds='$CC -r -o $output$reload_objs'
 
8185
          hardcode_direct=no
 
8186
        ;;
 
8187
        motorola)
 
8188
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8189
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8190
        ;;
 
8191
      esac
 
8192
      runpath_var='LD_RUN_PATH'
 
8193
      hardcode_shlibpath_var=no
 
8194
      ;;
 
8195
 
 
8196
    sysv4.3*)
 
8197
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8198
      hardcode_shlibpath_var=no
 
8199
      export_dynamic_flag_spec='-Bexport'
 
8200
      ;;
 
8201
 
 
8202
    sysv4*MP*)
 
8203
      if test -d /usr/nec; then
 
8204
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8205
        hardcode_shlibpath_var=no
 
8206
        runpath_var=LD_RUN_PATH
 
8207
        hardcode_runpath_var=yes
 
8208
        ld_shlibs=yes
 
8209
      fi
 
8210
      ;;
 
8211
 
 
8212
    sysv4.2uw2*)
 
8213
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8214
      hardcode_direct=yes
 
8215
      hardcode_minus_L=no
 
8216
      hardcode_shlibpath_var=no
 
8217
      hardcode_runpath_var=yes
 
8218
      runpath_var=LD_RUN_PATH
 
8219
      ;;
 
8220
 
 
8221
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
8222
      no_undefined_flag='${wl}-z ${wl}text'
 
8223
      if test "$GCC" = yes; then
 
8224
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8225
      else
 
8226
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8227
      fi
 
8228
      runpath_var='LD_RUN_PATH'
 
8229
      hardcode_shlibpath_var=no
 
8230
      ;;
 
8231
 
 
8232
    sysv5*)
 
8233
      no_undefined_flag=' -z text'
 
8234
      # $CC -shared without GNU ld will not create a library from C++
 
8235
      # object files and a static libstdc++, better avoid it by now
 
8236
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8237
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8238
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8239
      hardcode_libdir_flag_spec=
 
8240
      hardcode_shlibpath_var=no
 
8241
      runpath_var='LD_RUN_PATH'
 
8242
      ;;
 
8243
 
 
8244
    uts4*)
 
8245
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8246
      hardcode_libdir_flag_spec='-L$libdir'
 
8247
      hardcode_shlibpath_var=no
 
8248
      ;;
 
8249
 
 
8250
    *)
 
8251
      ld_shlibs=no
 
8252
      ;;
 
8253
    esac
 
8254
  fi
 
8255
 
 
8256
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5969
8257
echo "${ECHO_T}$ld_shlibs" >&6
5970
8258
test "$ld_shlibs" = no && can_build_shared=no
5971
8259
 
5972
 
# Check hardcoding attributes.
5973
 
echo "$as_me:5973: checking how to hardcode library paths into programs" >&5
 
8260
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8261
if test "$GCC" = yes; then
 
8262
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8263
fi
 
8264
 
 
8265
#
 
8266
# Do we need to explicitly link libc?
 
8267
#
 
8268
case "x$archive_cmds_need_lc" in
 
8269
x|xyes)
 
8270
  # Assume -lc should be added
 
8271
  archive_cmds_need_lc=yes
 
8272
 
 
8273
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8274
    case $archive_cmds in
 
8275
    *'~'*)
 
8276
      # FIXME: we may have to deal with multi-command sequences.
 
8277
      ;;
 
8278
    '$CC '*)
 
8279
      # Test whether the compiler implicitly links with -lc since on some
 
8280
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8281
      # to ld, don't add -lc before -lgcc.
 
8282
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8283
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8284
      $rm conftest*
 
8285
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8286
 
 
8287
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8288
  (eval $ac_compile) 2>&5
 
8289
  ac_status=$?
 
8290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8291
  (exit $ac_status); } 2>conftest.err; then
 
8292
        soname=conftest
 
8293
        lib=conftest
 
8294
        libobjs=conftest.$ac_objext
 
8295
        deplibs=
 
8296
        wl=$lt_prog_compiler_wl
 
8297
        compiler_flags=-v
 
8298
        linker_flags=-v
 
8299
        verstring=
 
8300
        output_objdir=.
 
8301
        libname=conftest
 
8302
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8303
        allow_undefined_flag=
 
8304
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8305
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8306
  ac_status=$?
 
8307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8308
  (exit $ac_status); }
 
8309
        then
 
8310
          archive_cmds_need_lc=no
 
8311
        else
 
8312
          archive_cmds_need_lc=yes
 
8313
        fi
 
8314
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8315
      else
 
8316
        cat conftest.err 1>&5
 
8317
      fi
 
8318
      $rm conftest*
 
8319
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8320
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
8321
      ;;
 
8322
    esac
 
8323
  fi
 
8324
  ;;
 
8325
esac
 
8326
 
 
8327
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8328
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8329
library_names_spec=
 
8330
libname_spec='lib$name'
 
8331
soname_spec=
 
8332
shrext_cmds=".so"
 
8333
postinstall_cmds=
 
8334
postuninstall_cmds=
 
8335
finish_cmds=
 
8336
finish_eval=
 
8337
shlibpath_var=
 
8338
shlibpath_overrides_runpath=unknown
 
8339
version_type=none
 
8340
dynamic_linker="$host_os ld.so"
 
8341
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8342
if test "$GCC" = yes; then
 
8343
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8344
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8345
    # if the path contains ";" then we assume it to be the separator
 
8346
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8347
    # assumed that no part of a normal pathname contains ";" but that should
 
8348
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8349
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8350
  else
 
8351
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8352
  fi
 
8353
else
 
8354
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8355
fi
 
8356
need_lib_prefix=unknown
 
8357
hardcode_into_libs=no
 
8358
 
 
8359
# when you set need_version to no, make sure it does not cause -set_version
 
8360
# flags to be left without arguments
 
8361
need_version=unknown
 
8362
 
 
8363
case $host_os in
 
8364
aix3*)
 
8365
  version_type=linux
 
8366
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8367
  shlibpath_var=LIBPATH
 
8368
 
 
8369
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8370
  soname_spec='${libname}${release}${shared_ext}$major'
 
8371
  ;;
 
8372
 
 
8373
aix4* | aix5*)
 
8374
  version_type=linux
 
8375
  need_lib_prefix=no
 
8376
  need_version=no
 
8377
  hardcode_into_libs=yes
 
8378
  if test "$host_cpu" = ia64; then
 
8379
    # AIX 5 supports IA64
 
8380
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8381
    shlibpath_var=LD_LIBRARY_PATH
 
8382
  else
 
8383
    # With GCC up to 2.95.x, collect2 would create an import file
 
8384
    # for dependence libraries.  The import file would start with
 
8385
    # the line `#! .'.  This would cause the generated library to
 
8386
    # depend on `.', always an invalid library.  This was fixed in
 
8387
    # development snapshots of GCC prior to 3.0.
 
8388
    case $host_os in
 
8389
      aix4 | aix4.[01] | aix4.[01].*)
 
8390
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8391
           echo ' yes '
 
8392
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8393
        :
 
8394
      else
 
8395
        can_build_shared=no
 
8396
      fi
 
8397
      ;;
 
8398
    esac
 
8399
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8400
    # soname into executable. Probably we can add versioning support to
 
8401
    # collect2, so additional links can be useful in future.
 
8402
    if test "$aix_use_runtimelinking" = yes; then
 
8403
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8404
      # instead of lib<name>.a to let people know that these are not
 
8405
      # typical AIX shared libraries.
 
8406
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8407
    else
 
8408
      # We preserve .a as extension for shared libraries through AIX4.2
 
8409
      # and later when we are not doing run time linking.
 
8410
      library_names_spec='${libname}${release}.a $libname.a'
 
8411
      soname_spec='${libname}${release}${shared_ext}$major'
 
8412
    fi
 
8413
    shlibpath_var=LIBPATH
 
8414
  fi
 
8415
  ;;
 
8416
 
 
8417
amigaos*)
 
8418
  library_names_spec='$libname.ixlibrary $libname.a'
 
8419
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8420
  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'
 
8421
  ;;
 
8422
 
 
8423
beos*)
 
8424
  library_names_spec='${libname}${shared_ext}'
 
8425
  dynamic_linker="$host_os ld.so"
 
8426
  shlibpath_var=LIBRARY_PATH
 
8427
  ;;
 
8428
 
 
8429
bsdi4*)
 
8430
  version_type=linux
 
8431
  need_version=no
 
8432
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8433
  soname_spec='${libname}${release}${shared_ext}$major'
 
8434
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8435
  shlibpath_var=LD_LIBRARY_PATH
 
8436
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8437
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8438
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8439
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8440
  # libtool to hard-code these into programs
 
8441
  ;;
 
8442
 
 
8443
cygwin* | mingw* | pw32*)
 
8444
  version_type=windows
 
8445
  shrext_cmds=".dll"
 
8446
  need_version=no
 
8447
  need_lib_prefix=no
 
8448
 
 
8449
  case $GCC,$host_os in
 
8450
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8451
    library_names_spec='$libname.dll.a'
 
8452
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8453
    postinstall_cmds='base_file=`basename \${file}`~
 
8454
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8455
      dldir=$destdir/`dirname \$dlpath`~
 
8456
      test -d \$dldir || mkdir -p \$dldir~
 
8457
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8458
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8459
      dlpath=$dir/\$dldll~
 
8460
       $rm \$dlpath'
 
8461
    shlibpath_overrides_runpath=yes
 
8462
 
 
8463
    case $host_os in
 
8464
    cygwin*)
 
8465
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8466
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8467
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8468
      ;;
 
8469
    mingw*)
 
8470
      # MinGW DLLs use traditional 'lib' prefix
 
8471
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8472
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8473
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8474
        # It is most probably a Windows format PATH printed by
 
8475
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8476
        # path with ; separators, and with drive letters. We can handle the
 
8477
        # drive letters (cygwin fileutils understands them), so leave them,
 
8478
        # especially as we might pass files found there to a mingw objdump,
 
8479
        # which wouldn't understand a cygwinified path. Ahh.
 
8480
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8481
      else
 
8482
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8483
      fi
 
8484
      ;;
 
8485
    pw32*)
 
8486
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8487
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8488
      ;;
 
8489
    esac
 
8490
    ;;
 
8491
 
 
8492
  *)
 
8493
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8494
    ;;
 
8495
  esac
 
8496
  dynamic_linker='Win32 ld.exe'
 
8497
  # FIXME: first we should search . and the directory the executable is in
 
8498
  shlibpath_var=PATH
 
8499
  ;;
 
8500
 
 
8501
darwin* | rhapsody*)
 
8502
  dynamic_linker="$host_os dyld"
 
8503
  version_type=darwin
 
8504
  need_lib_prefix=no
 
8505
  need_version=no
 
8506
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8507
  soname_spec='${libname}${release}${major}$shared_ext'
 
8508
  shlibpath_overrides_runpath=yes
 
8509
  shlibpath_var=DYLD_LIBRARY_PATH
 
8510
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8511
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8512
  if test "$GCC" = yes; then
 
8513
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
8514
  else
 
8515
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8516
  fi
 
8517
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8518
  ;;
 
8519
 
 
8520
dgux*)
 
8521
  version_type=linux
 
8522
  need_lib_prefix=no
 
8523
  need_version=no
 
8524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8525
  soname_spec='${libname}${release}${shared_ext}$major'
 
8526
  shlibpath_var=LD_LIBRARY_PATH
 
8527
  ;;
 
8528
 
 
8529
freebsd1*)
 
8530
  dynamic_linker=no
 
8531
  ;;
 
8532
 
 
8533
kfreebsd*-gnu)
 
8534
  version_type=linux
 
8535
  need_lib_prefix=no
 
8536
  need_version=no
 
8537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8538
  soname_spec='${libname}${release}${shared_ext}$major'
 
8539
  shlibpath_var=LD_LIBRARY_PATH
 
8540
  shlibpath_overrides_runpath=no
 
8541
  hardcode_into_libs=yes
 
8542
  dynamic_linker='GNU ld.so'
 
8543
  ;;
 
8544
 
 
8545
freebsd*)
 
8546
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8547
  version_type=freebsd-$objformat
 
8548
  case $version_type in
 
8549
    freebsd-elf*)
 
8550
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8551
      need_version=no
 
8552
      need_lib_prefix=no
 
8553
      ;;
 
8554
    freebsd-*)
 
8555
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8556
      need_version=yes
 
8557
      ;;
 
8558
  esac
 
8559
  shlibpath_var=LD_LIBRARY_PATH
 
8560
  case $host_os in
 
8561
  freebsd2*)
 
8562
    shlibpath_overrides_runpath=yes
 
8563
    ;;
 
8564
  freebsd3.01* | freebsdelf3.01*)
 
8565
    shlibpath_overrides_runpath=yes
 
8566
    hardcode_into_libs=yes
 
8567
    ;;
 
8568
  *) # from 3.2 on
 
8569
    shlibpath_overrides_runpath=no
 
8570
    hardcode_into_libs=yes
 
8571
    ;;
 
8572
  esac
 
8573
  ;;
 
8574
 
 
8575
gnu*)
 
8576
  version_type=linux
 
8577
  need_lib_prefix=no
 
8578
  need_version=no
 
8579
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8580
  soname_spec='${libname}${release}${shared_ext}$major'
 
8581
  shlibpath_var=LD_LIBRARY_PATH
 
8582
  hardcode_into_libs=yes
 
8583
  ;;
 
8584
 
 
8585
hpux9* | hpux10* | hpux11*)
 
8586
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8587
  # link against other versions.
 
8588
  version_type=sunos
 
8589
  need_lib_prefix=no
 
8590
  need_version=no
 
8591
  case "$host_cpu" in
 
8592
  ia64*)
 
8593
    shrext_cmds='.so'
 
8594
    hardcode_into_libs=yes
 
8595
    dynamic_linker="$host_os dld.so"
 
8596
    shlibpath_var=LD_LIBRARY_PATH
 
8597
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8598
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8599
    soname_spec='${libname}${release}${shared_ext}$major'
 
8600
    if test "X$HPUX_IA64_MODE" = X32; then
 
8601
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8602
    else
 
8603
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8604
    fi
 
8605
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8606
    ;;
 
8607
   hppa*64*)
 
8608
     shrext_cmds='.sl'
 
8609
     hardcode_into_libs=yes
 
8610
     dynamic_linker="$host_os dld.sl"
 
8611
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8612
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8613
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8614
     soname_spec='${libname}${release}${shared_ext}$major'
 
8615
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8616
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8617
     ;;
 
8618
   *)
 
8619
    shrext_cmds='.sl'
 
8620
    dynamic_linker="$host_os dld.sl"
 
8621
    shlibpath_var=SHLIB_PATH
 
8622
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8623
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8624
    soname_spec='${libname}${release}${shared_ext}$major'
 
8625
    ;;
 
8626
  esac
 
8627
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8628
  postinstall_cmds='chmod 555 $lib'
 
8629
  ;;
 
8630
 
 
8631
irix5* | irix6* | nonstopux*)
 
8632
  case $host_os in
 
8633
    nonstopux*) version_type=nonstopux ;;
 
8634
    *)
 
8635
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8636
                version_type=linux
 
8637
        else
 
8638
                version_type=irix
 
8639
        fi ;;
 
8640
  esac
 
8641
  need_lib_prefix=no
 
8642
  need_version=no
 
8643
  soname_spec='${libname}${release}${shared_ext}$major'
 
8644
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8645
  case $host_os in
 
8646
  irix5* | nonstopux*)
 
8647
    libsuff= shlibsuff=
 
8648
    ;;
 
8649
  *)
 
8650
    case $LD in # libtool.m4 will add one of these switches to LD
 
8651
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8652
      libsuff= shlibsuff= libmagic=32-bit;;
 
8653
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8654
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8655
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8656
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8657
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8658
    esac
 
8659
    ;;
 
8660
  esac
 
8661
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8662
  shlibpath_overrides_runpath=no
 
8663
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8664
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8665
  hardcode_into_libs=yes
 
8666
  ;;
 
8667
 
 
8668
# No shared lib support for Linux oldld, aout, or coff.
 
8669
linux*oldld* | linux*aout* | linux*coff*)
 
8670
  dynamic_linker=no
 
8671
  ;;
 
8672
 
 
8673
# This must be Linux ELF.
 
8674
linux*)
 
8675
  version_type=linux
 
8676
  need_lib_prefix=no
 
8677
  need_version=no
 
8678
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8679
  soname_spec='${libname}${release}${shared_ext}$major'
 
8680
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8681
  shlibpath_var=LD_LIBRARY_PATH
 
8682
  shlibpath_overrides_runpath=no
 
8683
  # This implies no fast_install, which is unacceptable.
 
8684
  # Some rework will be needed to allow for fast_install
 
8685
  # before this can be enabled.
 
8686
  hardcode_into_libs=yes
 
8687
 
 
8688
  # Append ld.so.conf contents to the search path
 
8689
  if test -f /etc/ld.so.conf; then
 
8690
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
8691
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8692
  fi
 
8693
 
 
8694
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8695
  # powerpc, because MkLinux only supported shared libraries with the
 
8696
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8697
  # most powerpc-linux boxes support dynamic linking these days and
 
8698
  # people can always --disable-shared, the test was removed, and we
 
8699
  # assume the GNU/Linux dynamic linker is in use.
 
8700
  dynamic_linker='GNU/Linux ld.so'
 
8701
  ;;
 
8702
 
 
8703
netbsdelf*-gnu)
 
8704
  version_type=linux
 
8705
  need_lib_prefix=no
 
8706
  need_version=no
 
8707
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8708
  soname_spec='${libname}${release}${shared_ext}$major'
 
8709
  shlibpath_var=LD_LIBRARY_PATH
 
8710
  shlibpath_overrides_runpath=no
 
8711
  hardcode_into_libs=yes
 
8712
  dynamic_linker='NetBSD ld.elf_so'
 
8713
  ;;
 
8714
 
 
8715
knetbsd*-gnu)
 
8716
  version_type=linux
 
8717
  need_lib_prefix=no
 
8718
  need_version=no
 
8719
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8720
  soname_spec='${libname}${release}${shared_ext}$major'
 
8721
  shlibpath_var=LD_LIBRARY_PATH
 
8722
  shlibpath_overrides_runpath=no
 
8723
  hardcode_into_libs=yes
 
8724
  dynamic_linker='GNU ld.so'
 
8725
  ;;
 
8726
 
 
8727
netbsd*)
 
8728
  version_type=sunos
 
8729
  need_lib_prefix=no
 
8730
  need_version=no
 
8731
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8732
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8733
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8734
    dynamic_linker='NetBSD (a.out) ld.so'
 
8735
  else
 
8736
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8737
    soname_spec='${libname}${release}${shared_ext}$major'
 
8738
    dynamic_linker='NetBSD ld.elf_so'
 
8739
  fi
 
8740
  shlibpath_var=LD_LIBRARY_PATH
 
8741
  shlibpath_overrides_runpath=yes
 
8742
  hardcode_into_libs=yes
 
8743
  ;;
 
8744
 
 
8745
newsos6)
 
8746
  version_type=linux
 
8747
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8748
  shlibpath_var=LD_LIBRARY_PATH
 
8749
  shlibpath_overrides_runpath=yes
 
8750
  ;;
 
8751
 
 
8752
nto-qnx*)
 
8753
  version_type=linux
 
8754
  need_lib_prefix=no
 
8755
  need_version=no
 
8756
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8757
  soname_spec='${libname}${release}${shared_ext}$major'
 
8758
  shlibpath_var=LD_LIBRARY_PATH
 
8759
  shlibpath_overrides_runpath=yes
 
8760
  ;;
 
8761
 
 
8762
openbsd*)
 
8763
  version_type=sunos
 
8764
  need_lib_prefix=no
 
8765
  need_version=yes
 
8766
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8767
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8768
  shlibpath_var=LD_LIBRARY_PATH
 
8769
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8770
    case $host_os in
 
8771
      openbsd2.[89] | openbsd2.[89].*)
 
8772
        shlibpath_overrides_runpath=no
 
8773
        ;;
 
8774
      *)
 
8775
        shlibpath_overrides_runpath=yes
 
8776
        ;;
 
8777
      esac
 
8778
  else
 
8779
    shlibpath_overrides_runpath=yes
 
8780
  fi
 
8781
  ;;
 
8782
 
 
8783
os2*)
 
8784
  libname_spec='$name'
 
8785
  shrext_cmds=".dll"
 
8786
  need_lib_prefix=no
 
8787
  library_names_spec='$libname${shared_ext} $libname.a'
 
8788
  dynamic_linker='OS/2 ld.exe'
 
8789
  shlibpath_var=LIBPATH
 
8790
  ;;
 
8791
 
 
8792
osf3* | osf4* | osf5*)
 
8793
  version_type=osf
 
8794
  need_lib_prefix=no
 
8795
  need_version=no
 
8796
  soname_spec='${libname}${release}${shared_ext}$major'
 
8797
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8798
  shlibpath_var=LD_LIBRARY_PATH
 
8799
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8800
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8801
  ;;
 
8802
 
 
8803
sco3.2v5*)
 
8804
  version_type=osf
 
8805
  soname_spec='${libname}${release}${shared_ext}$major'
 
8806
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8807
  shlibpath_var=LD_LIBRARY_PATH
 
8808
  ;;
 
8809
 
 
8810
solaris*)
 
8811
  version_type=linux
 
8812
  need_lib_prefix=no
 
8813
  need_version=no
 
8814
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8815
  soname_spec='${libname}${release}${shared_ext}$major'
 
8816
  shlibpath_var=LD_LIBRARY_PATH
 
8817
  shlibpath_overrides_runpath=yes
 
8818
  hardcode_into_libs=yes
 
8819
  # ldd complains unless libraries are executable
 
8820
  postinstall_cmds='chmod +x $lib'
 
8821
  ;;
 
8822
 
 
8823
sunos4*)
 
8824
  version_type=sunos
 
8825
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8826
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8827
  shlibpath_var=LD_LIBRARY_PATH
 
8828
  shlibpath_overrides_runpath=yes
 
8829
  if test "$with_gnu_ld" = yes; then
 
8830
    need_lib_prefix=no
 
8831
  fi
 
8832
  need_version=yes
 
8833
  ;;
 
8834
 
 
8835
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8836
  version_type=linux
 
8837
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8838
  soname_spec='${libname}${release}${shared_ext}$major'
 
8839
  shlibpath_var=LD_LIBRARY_PATH
 
8840
  case $host_vendor in
 
8841
    sni)
 
8842
      shlibpath_overrides_runpath=no
 
8843
      need_lib_prefix=no
 
8844
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8845
      runpath_var=LD_RUN_PATH
 
8846
      ;;
 
8847
    siemens)
 
8848
      need_lib_prefix=no
 
8849
      ;;
 
8850
    motorola)
 
8851
      need_lib_prefix=no
 
8852
      need_version=no
 
8853
      shlibpath_overrides_runpath=no
 
8854
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8855
      ;;
 
8856
  esac
 
8857
  ;;
 
8858
 
 
8859
sysv4*MP*)
 
8860
  if test -d /usr/nec ;then
 
8861
    version_type=linux
 
8862
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8863
    soname_spec='$libname${shared_ext}.$major'
 
8864
    shlibpath_var=LD_LIBRARY_PATH
 
8865
  fi
 
8866
  ;;
 
8867
 
 
8868
uts4*)
 
8869
  version_type=linux
 
8870
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8871
  soname_spec='${libname}${release}${shared_ext}$major'
 
8872
  shlibpath_var=LD_LIBRARY_PATH
 
8873
  ;;
 
8874
 
 
8875
*)
 
8876
  dynamic_linker=no
 
8877
  ;;
 
8878
esac
 
8879
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8880
echo "${ECHO_T}$dynamic_linker" >&6
 
8881
test "$dynamic_linker" = no && can_build_shared=no
 
8882
 
 
8883
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5974
8884
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5975
8885
hardcode_action=
5976
8886
if test -n "$hardcode_libdir_flag_spec" || \
5977
 
   test -n "$runpath_var"; then
 
8887
   test -n "$runpath_var " || \
 
8888
   test "X$hardcode_automatic"="Xyes" ; then
5978
8889
 
5979
8890
  # We can hardcode non-existant directories.
5980
8891
  if test "$hardcode_direct" != no &&
5981
8892
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5982
8893
     # have to relink, otherwise we might link with an installed library
5983
8894
     # when we should be linking with a yet-to-be-installed one
5984
 
     ## test "$hardcode_shlibpath_var" != no &&
 
8895
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
5985
8896
     test "$hardcode_minus_L" != no; then
5986
8897
    # Linking always hardcodes the temporary library directory.
5987
8898
    hardcode_action=relink
5994
8905
  # directories.
5995
8906
  hardcode_action=unsupported
5996
8907
fi
5997
 
echo "$as_me:5997: result: $hardcode_action" >&5
 
8908
echo "$as_me:$LINENO: result: $hardcode_action" >&5
5998
8909
echo "${ECHO_T}$hardcode_action" >&6
5999
8910
 
 
8911
if test "$hardcode_action" = relink; then
 
8912
  # Fast installation is not supported
 
8913
  enable_fast_install=no
 
8914
elif test "$shlibpath_overrides_runpath" = yes ||
 
8915
     test "$enable_shared" = no; then
 
8916
  # Fast installation is not necessary
 
8917
  enable_fast_install=needless
 
8918
fi
 
8919
 
6000
8920
striplib=
6001
8921
old_striplib=
6002
 
echo "$as_me:6002: checking whether stripping libraries is possible" >&5
 
8922
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6003
8923
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6004
8924
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6005
8925
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6006
8926
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6007
 
  echo "$as_me:6007: result: yes" >&5
6008
 
echo "${ECHO_T}yes" >&6
6009
 
else
6010
 
  echo "$as_me:6010: result: no" >&5
6011
 
echo "${ECHO_T}no" >&6
6012
 
fi
6013
 
 
6014
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6015
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6016
 
 
6017
 
# PORTME Fill in your ld.so characteristics
6018
 
echo "$as_me:6018: checking dynamic linker characteristics" >&5
6019
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6020
 
library_names_spec=
6021
 
libname_spec='lib$name'
6022
 
soname_spec=
6023
 
postinstall_cmds=
6024
 
postuninstall_cmds=
6025
 
finish_cmds=
6026
 
finish_eval=
6027
 
shlibpath_var=
6028
 
shlibpath_overrides_runpath=unknown
6029
 
version_type=none
6030
 
dynamic_linker="$host_os ld.so"
6031
 
sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"
6032
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"
6033
 
 
6034
 
case $host_os in
6035
 
aix3*)
6036
 
  version_type=linux
6037
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
6038
 
  shlibpath_var=LIBPATH
6039
 
 
6040
 
  # AIX has no versioning support, so we append a major version to the name.
6041
 
  soname_spec='${libname}${release}.so$major'
6042
 
  ;;
6043
 
 
6044
 
aix4* | aix5*)
6045
 
  version_type=linux
6046
 
  need_lib_prefix=no
6047
 
  need_version=no
6048
 
  hardcode_into_libs=yes
6049
 
  if test "$host_cpu" = ia64; then
6050
 
    # AIX 5 supports IA64
6051
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6052
 
    shlibpath_var=LD_LIBRARY_PATH
 
8927
  echo "$as_me:$LINENO: result: yes" >&5
 
8928
echo "${ECHO_T}yes" >&6
 
8929
else
 
8930
# FIXME - insert some real tests, host_os isn't really good enough
 
8931
  case $host_os in
 
8932
   darwin*)
 
8933
       if test -n "$STRIP" ; then
 
8934
         striplib="$STRIP -x"
 
8935
         echo "$as_me:$LINENO: result: yes" >&5
 
8936
echo "${ECHO_T}yes" >&6
 
8937
       else
 
8938
  echo "$as_me:$LINENO: result: no" >&5
 
8939
echo "${ECHO_T}no" >&6
 
8940
fi
 
8941
       ;;
 
8942
   *)
 
8943
  echo "$as_me:$LINENO: result: no" >&5
 
8944
echo "${ECHO_T}no" >&6
 
8945
    ;;
 
8946
  esac
 
8947
fi
 
8948
 
 
8949
if test "x$enable_dlopen" != xyes; then
 
8950
  enable_dlopen=unknown
 
8951
  enable_dlopen_self=unknown
 
8952
  enable_dlopen_self_static=unknown
 
8953
else
 
8954
  lt_cv_dlopen=no
 
8955
  lt_cv_dlopen_libs=
 
8956
 
 
8957
  case $host_os in
 
8958
  beos*)
 
8959
    lt_cv_dlopen="load_add_on"
 
8960
    lt_cv_dlopen_libs=
 
8961
    lt_cv_dlopen_self=yes
 
8962
    ;;
 
8963
 
 
8964
  mingw* | pw32*)
 
8965
    lt_cv_dlopen="LoadLibrary"
 
8966
    lt_cv_dlopen_libs=
 
8967
   ;;
 
8968
 
 
8969
  cygwin*)
 
8970
    lt_cv_dlopen="dlopen"
 
8971
    lt_cv_dlopen_libs=
 
8972
   ;;
 
8973
 
 
8974
  darwin*)
 
8975
  # if libdl is installed we need to link against it
 
8976
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8977
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8978
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8980
else
 
8981
  ac_check_lib_save_LIBS=$LIBS
 
8982
LIBS="-ldl  $LIBS"
 
8983
cat >conftest.$ac_ext <<_ACEOF
 
8984
/* confdefs.h.  */
 
8985
_ACEOF
 
8986
cat confdefs.h >>conftest.$ac_ext
 
8987
cat >>conftest.$ac_ext <<_ACEOF
 
8988
/* end confdefs.h.  */
 
8989
 
 
8990
/* Override any gcc2 internal prototype to avoid an error.  */
 
8991
#ifdef __cplusplus
 
8992
extern "C"
 
8993
#endif
 
8994
/* We use char because int might match the return type of a gcc2
 
8995
   builtin and then its argument prototype would still apply.  */
 
8996
char dlopen ();
 
8997
int
 
8998
main ()
 
8999
{
 
9000
dlopen ();
 
9001
  ;
 
9002
  return 0;
 
9003
}
 
9004
_ACEOF
 
9005
rm -f conftest.$ac_objext conftest$ac_exeext
 
9006
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9007
  (eval $ac_link) 2>conftest.er1
 
9008
  ac_status=$?
 
9009
  grep -v '^ *+' conftest.er1 >conftest.err
 
9010
  rm -f conftest.er1
 
9011
  cat conftest.err >&5
 
9012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9013
  (exit $ac_status); } &&
 
9014
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9016
  (eval $ac_try) 2>&5
 
9017
  ac_status=$?
 
9018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9019
  (exit $ac_status); }; } &&
 
9020
         { ac_try='test -s conftest$ac_exeext'
 
9021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9022
  (eval $ac_try) 2>&5
 
9023
  ac_status=$?
 
9024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9025
  (exit $ac_status); }; }; then
 
9026
  ac_cv_lib_dl_dlopen=yes
 
9027
else
 
9028
  echo "$as_me: failed program was:" >&5
 
9029
sed 's/^/| /' conftest.$ac_ext >&5
 
9030
 
 
9031
ac_cv_lib_dl_dlopen=no
 
9032
fi
 
9033
rm -f conftest.err conftest.$ac_objext \
 
9034
      conftest$ac_exeext conftest.$ac_ext
 
9035
LIBS=$ac_check_lib_save_LIBS
 
9036
fi
 
9037
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9038
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9039
if test $ac_cv_lib_dl_dlopen = yes; then
 
9040
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9041
else
 
9042
 
 
9043
    lt_cv_dlopen="dyld"
 
9044
    lt_cv_dlopen_libs=
 
9045
    lt_cv_dlopen_self=yes
 
9046
 
 
9047
fi
 
9048
 
 
9049
   ;;
 
9050
 
 
9051
  *)
 
9052
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
9053
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
9054
if test "${ac_cv_func_shl_load+set}" = set; then
 
9055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9056
else
 
9057
  cat >conftest.$ac_ext <<_ACEOF
 
9058
/* confdefs.h.  */
 
9059
_ACEOF
 
9060
cat confdefs.h >>conftest.$ac_ext
 
9061
cat >>conftest.$ac_ext <<_ACEOF
 
9062
/* end confdefs.h.  */
 
9063
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9064
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9065
#define shl_load innocuous_shl_load
 
9066
 
 
9067
/* System header to define __stub macros and hopefully few prototypes,
 
9068
    which can conflict with char shl_load (); below.
 
9069
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9070
    <limits.h> exists even on freestanding compilers.  */
 
9071
 
 
9072
#ifdef __STDC__
 
9073
# include <limits.h>
 
9074
#else
 
9075
# include <assert.h>
 
9076
#endif
 
9077
 
 
9078
#undef shl_load
 
9079
 
 
9080
/* Override any gcc2 internal prototype to avoid an error.  */
 
9081
#ifdef __cplusplus
 
9082
extern "C"
 
9083
{
 
9084
#endif
 
9085
/* We use char because int might match the return type of a gcc2
 
9086
   builtin and then its argument prototype would still apply.  */
 
9087
char shl_load ();
 
9088
/* The GNU C library defines this for functions which it implements
 
9089
    to always fail with ENOSYS.  Some functions are actually named
 
9090
    something starting with __ and the normal name is an alias.  */
 
9091
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
9092
choke me
 
9093
#else
 
9094
char (*f) () = shl_load;
 
9095
#endif
 
9096
#ifdef __cplusplus
 
9097
}
 
9098
#endif
 
9099
 
 
9100
int
 
9101
main ()
 
9102
{
 
9103
return f != shl_load;
 
9104
  ;
 
9105
  return 0;
 
9106
}
 
9107
_ACEOF
 
9108
rm -f conftest.$ac_objext conftest$ac_exeext
 
9109
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9110
  (eval $ac_link) 2>conftest.er1
 
9111
  ac_status=$?
 
9112
  grep -v '^ *+' conftest.er1 >conftest.err
 
9113
  rm -f conftest.er1
 
9114
  cat conftest.err >&5
 
9115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9116
  (exit $ac_status); } &&
 
9117
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9118
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9119
  (eval $ac_try) 2>&5
 
9120
  ac_status=$?
 
9121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9122
  (exit $ac_status); }; } &&
 
9123
         { ac_try='test -s conftest$ac_exeext'
 
9124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9125
  (eval $ac_try) 2>&5
 
9126
  ac_status=$?
 
9127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9128
  (exit $ac_status); }; }; then
 
9129
  ac_cv_func_shl_load=yes
 
9130
else
 
9131
  echo "$as_me: failed program was:" >&5
 
9132
sed 's/^/| /' conftest.$ac_ext >&5
 
9133
 
 
9134
ac_cv_func_shl_load=no
 
9135
fi
 
9136
rm -f conftest.err conftest.$ac_objext \
 
9137
      conftest$ac_exeext conftest.$ac_ext
 
9138
fi
 
9139
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9140
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
9141
if test $ac_cv_func_shl_load = yes; then
 
9142
  lt_cv_dlopen="shl_load"
 
9143
else
 
9144
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9145
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
9146
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9147
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9148
else
 
9149
  ac_check_lib_save_LIBS=$LIBS
 
9150
LIBS="-ldld  $LIBS"
 
9151
cat >conftest.$ac_ext <<_ACEOF
 
9152
/* confdefs.h.  */
 
9153
_ACEOF
 
9154
cat confdefs.h >>conftest.$ac_ext
 
9155
cat >>conftest.$ac_ext <<_ACEOF
 
9156
/* end confdefs.h.  */
 
9157
 
 
9158
/* Override any gcc2 internal prototype to avoid an error.  */
 
9159
#ifdef __cplusplus
 
9160
extern "C"
 
9161
#endif
 
9162
/* We use char because int might match the return type of a gcc2
 
9163
   builtin and then its argument prototype would still apply.  */
 
9164
char shl_load ();
 
9165
int
 
9166
main ()
 
9167
{
 
9168
shl_load ();
 
9169
  ;
 
9170
  return 0;
 
9171
}
 
9172
_ACEOF
 
9173
rm -f conftest.$ac_objext conftest$ac_exeext
 
9174
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9175
  (eval $ac_link) 2>conftest.er1
 
9176
  ac_status=$?
 
9177
  grep -v '^ *+' conftest.er1 >conftest.err
 
9178
  rm -f conftest.er1
 
9179
  cat conftest.err >&5
 
9180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9181
  (exit $ac_status); } &&
 
9182
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9184
  (eval $ac_try) 2>&5
 
9185
  ac_status=$?
 
9186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9187
  (exit $ac_status); }; } &&
 
9188
         { ac_try='test -s conftest$ac_exeext'
 
9189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9190
  (eval $ac_try) 2>&5
 
9191
  ac_status=$?
 
9192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9193
  (exit $ac_status); }; }; then
 
9194
  ac_cv_lib_dld_shl_load=yes
 
9195
else
 
9196
  echo "$as_me: failed program was:" >&5
 
9197
sed 's/^/| /' conftest.$ac_ext >&5
 
9198
 
 
9199
ac_cv_lib_dld_shl_load=no
 
9200
fi
 
9201
rm -f conftest.err conftest.$ac_objext \
 
9202
      conftest$ac_exeext conftest.$ac_ext
 
9203
LIBS=$ac_check_lib_save_LIBS
 
9204
fi
 
9205
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9206
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
9207
if test $ac_cv_lib_dld_shl_load = yes; then
 
9208
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9209
else
 
9210
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
9211
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
9212
if test "${ac_cv_func_dlopen+set}" = set; then
 
9213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9214
else
 
9215
  cat >conftest.$ac_ext <<_ACEOF
 
9216
/* confdefs.h.  */
 
9217
_ACEOF
 
9218
cat confdefs.h >>conftest.$ac_ext
 
9219
cat >>conftest.$ac_ext <<_ACEOF
 
9220
/* end confdefs.h.  */
 
9221
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9222
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9223
#define dlopen innocuous_dlopen
 
9224
 
 
9225
/* System header to define __stub macros and hopefully few prototypes,
 
9226
    which can conflict with char dlopen (); below.
 
9227
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9228
    <limits.h> exists even on freestanding compilers.  */
 
9229
 
 
9230
#ifdef __STDC__
 
9231
# include <limits.h>
 
9232
#else
 
9233
# include <assert.h>
 
9234
#endif
 
9235
 
 
9236
#undef dlopen
 
9237
 
 
9238
/* Override any gcc2 internal prototype to avoid an error.  */
 
9239
#ifdef __cplusplus
 
9240
extern "C"
 
9241
{
 
9242
#endif
 
9243
/* We use char because int might match the return type of a gcc2
 
9244
   builtin and then its argument prototype would still apply.  */
 
9245
char dlopen ();
 
9246
/* The GNU C library defines this for functions which it implements
 
9247
    to always fail with ENOSYS.  Some functions are actually named
 
9248
    something starting with __ and the normal name is an alias.  */
 
9249
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9250
choke me
 
9251
#else
 
9252
char (*f) () = dlopen;
 
9253
#endif
 
9254
#ifdef __cplusplus
 
9255
}
 
9256
#endif
 
9257
 
 
9258
int
 
9259
main ()
 
9260
{
 
9261
return f != dlopen;
 
9262
  ;
 
9263
  return 0;
 
9264
}
 
9265
_ACEOF
 
9266
rm -f conftest.$ac_objext conftest$ac_exeext
 
9267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9268
  (eval $ac_link) 2>conftest.er1
 
9269
  ac_status=$?
 
9270
  grep -v '^ *+' conftest.er1 >conftest.err
 
9271
  rm -f conftest.er1
 
9272
  cat conftest.err >&5
 
9273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9274
  (exit $ac_status); } &&
 
9275
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9276
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9277
  (eval $ac_try) 2>&5
 
9278
  ac_status=$?
 
9279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9280
  (exit $ac_status); }; } &&
 
9281
         { ac_try='test -s conftest$ac_exeext'
 
9282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9283
  (eval $ac_try) 2>&5
 
9284
  ac_status=$?
 
9285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9286
  (exit $ac_status); }; }; then
 
9287
  ac_cv_func_dlopen=yes
 
9288
else
 
9289
  echo "$as_me: failed program was:" >&5
 
9290
sed 's/^/| /' conftest.$ac_ext >&5
 
9291
 
 
9292
ac_cv_func_dlopen=no
 
9293
fi
 
9294
rm -f conftest.err conftest.$ac_objext \
 
9295
      conftest$ac_exeext conftest.$ac_ext
 
9296
fi
 
9297
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9298
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
9299
if test $ac_cv_func_dlopen = yes; then
 
9300
  lt_cv_dlopen="dlopen"
 
9301
else
 
9302
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9303
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9304
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9305
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9306
else
 
9307
  ac_check_lib_save_LIBS=$LIBS
 
9308
LIBS="-ldl  $LIBS"
 
9309
cat >conftest.$ac_ext <<_ACEOF
 
9310
/* confdefs.h.  */
 
9311
_ACEOF
 
9312
cat confdefs.h >>conftest.$ac_ext
 
9313
cat >>conftest.$ac_ext <<_ACEOF
 
9314
/* end confdefs.h.  */
 
9315
 
 
9316
/* Override any gcc2 internal prototype to avoid an error.  */
 
9317
#ifdef __cplusplus
 
9318
extern "C"
 
9319
#endif
 
9320
/* We use char because int might match the return type of a gcc2
 
9321
   builtin and then its argument prototype would still apply.  */
 
9322
char dlopen ();
 
9323
int
 
9324
main ()
 
9325
{
 
9326
dlopen ();
 
9327
  ;
 
9328
  return 0;
 
9329
}
 
9330
_ACEOF
 
9331
rm -f conftest.$ac_objext conftest$ac_exeext
 
9332
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9333
  (eval $ac_link) 2>conftest.er1
 
9334
  ac_status=$?
 
9335
  grep -v '^ *+' conftest.er1 >conftest.err
 
9336
  rm -f conftest.er1
 
9337
  cat conftest.err >&5
 
9338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9339
  (exit $ac_status); } &&
 
9340
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9342
  (eval $ac_try) 2>&5
 
9343
  ac_status=$?
 
9344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9345
  (exit $ac_status); }; } &&
 
9346
         { ac_try='test -s conftest$ac_exeext'
 
9347
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9348
  (eval $ac_try) 2>&5
 
9349
  ac_status=$?
 
9350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9351
  (exit $ac_status); }; }; then
 
9352
  ac_cv_lib_dl_dlopen=yes
 
9353
else
 
9354
  echo "$as_me: failed program was:" >&5
 
9355
sed 's/^/| /' conftest.$ac_ext >&5
 
9356
 
 
9357
ac_cv_lib_dl_dlopen=no
 
9358
fi
 
9359
rm -f conftest.err conftest.$ac_objext \
 
9360
      conftest$ac_exeext conftest.$ac_ext
 
9361
LIBS=$ac_check_lib_save_LIBS
 
9362
fi
 
9363
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9364
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9365
if test $ac_cv_lib_dl_dlopen = yes; then
 
9366
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9367
else
 
9368
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9369
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
9370
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9372
else
 
9373
  ac_check_lib_save_LIBS=$LIBS
 
9374
LIBS="-lsvld  $LIBS"
 
9375
cat >conftest.$ac_ext <<_ACEOF
 
9376
/* confdefs.h.  */
 
9377
_ACEOF
 
9378
cat confdefs.h >>conftest.$ac_ext
 
9379
cat >>conftest.$ac_ext <<_ACEOF
 
9380
/* end confdefs.h.  */
 
9381
 
 
9382
/* Override any gcc2 internal prototype to avoid an error.  */
 
9383
#ifdef __cplusplus
 
9384
extern "C"
 
9385
#endif
 
9386
/* We use char because int might match the return type of a gcc2
 
9387
   builtin and then its argument prototype would still apply.  */
 
9388
char dlopen ();
 
9389
int
 
9390
main ()
 
9391
{
 
9392
dlopen ();
 
9393
  ;
 
9394
  return 0;
 
9395
}
 
9396
_ACEOF
 
9397
rm -f conftest.$ac_objext conftest$ac_exeext
 
9398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9399
  (eval $ac_link) 2>conftest.er1
 
9400
  ac_status=$?
 
9401
  grep -v '^ *+' conftest.er1 >conftest.err
 
9402
  rm -f conftest.er1
 
9403
  cat conftest.err >&5
 
9404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9405
  (exit $ac_status); } &&
 
9406
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9408
  (eval $ac_try) 2>&5
 
9409
  ac_status=$?
 
9410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9411
  (exit $ac_status); }; } &&
 
9412
         { ac_try='test -s conftest$ac_exeext'
 
9413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9414
  (eval $ac_try) 2>&5
 
9415
  ac_status=$?
 
9416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9417
  (exit $ac_status); }; }; then
 
9418
  ac_cv_lib_svld_dlopen=yes
 
9419
else
 
9420
  echo "$as_me: failed program was:" >&5
 
9421
sed 's/^/| /' conftest.$ac_ext >&5
 
9422
 
 
9423
ac_cv_lib_svld_dlopen=no
 
9424
fi
 
9425
rm -f conftest.err conftest.$ac_objext \
 
9426
      conftest$ac_exeext conftest.$ac_ext
 
9427
LIBS=$ac_check_lib_save_LIBS
 
9428
fi
 
9429
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9430
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9431
if test $ac_cv_lib_svld_dlopen = yes; then
 
9432
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9433
else
 
9434
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9435
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9436
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9438
else
 
9439
  ac_check_lib_save_LIBS=$LIBS
 
9440
LIBS="-ldld  $LIBS"
 
9441
cat >conftest.$ac_ext <<_ACEOF
 
9442
/* confdefs.h.  */
 
9443
_ACEOF
 
9444
cat confdefs.h >>conftest.$ac_ext
 
9445
cat >>conftest.$ac_ext <<_ACEOF
 
9446
/* end confdefs.h.  */
 
9447
 
 
9448
/* Override any gcc2 internal prototype to avoid an error.  */
 
9449
#ifdef __cplusplus
 
9450
extern "C"
 
9451
#endif
 
9452
/* We use char because int might match the return type of a gcc2
 
9453
   builtin and then its argument prototype would still apply.  */
 
9454
char dld_link ();
 
9455
int
 
9456
main ()
 
9457
{
 
9458
dld_link ();
 
9459
  ;
 
9460
  return 0;
 
9461
}
 
9462
_ACEOF
 
9463
rm -f conftest.$ac_objext conftest$ac_exeext
 
9464
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9465
  (eval $ac_link) 2>conftest.er1
 
9466
  ac_status=$?
 
9467
  grep -v '^ *+' conftest.er1 >conftest.err
 
9468
  rm -f conftest.er1
 
9469
  cat conftest.err >&5
 
9470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9471
  (exit $ac_status); } &&
 
9472
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9473
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9474
  (eval $ac_try) 2>&5
 
9475
  ac_status=$?
 
9476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9477
  (exit $ac_status); }; } &&
 
9478
         { ac_try='test -s conftest$ac_exeext'
 
9479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9480
  (eval $ac_try) 2>&5
 
9481
  ac_status=$?
 
9482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9483
  (exit $ac_status); }; }; then
 
9484
  ac_cv_lib_dld_dld_link=yes
 
9485
else
 
9486
  echo "$as_me: failed program was:" >&5
 
9487
sed 's/^/| /' conftest.$ac_ext >&5
 
9488
 
 
9489
ac_cv_lib_dld_dld_link=no
 
9490
fi
 
9491
rm -f conftest.err conftest.$ac_objext \
 
9492
      conftest$ac_exeext conftest.$ac_ext
 
9493
LIBS=$ac_check_lib_save_LIBS
 
9494
fi
 
9495
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9496
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9497
if test $ac_cv_lib_dld_dld_link = yes; then
 
9498
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9499
fi
 
9500
 
 
9501
 
 
9502
fi
 
9503
 
 
9504
 
 
9505
fi
 
9506
 
 
9507
 
 
9508
fi
 
9509
 
 
9510
 
 
9511
fi
 
9512
 
 
9513
 
 
9514
fi
 
9515
 
 
9516
    ;;
 
9517
  esac
 
9518
 
 
9519
  if test "x$lt_cv_dlopen" != xno; then
 
9520
    enable_dlopen=yes
6053
9521
  else
6054
 
    # With GCC up to 2.95.x, collect2 would create an import file
6055
 
    # for dependence libraries.  The import file would start with
6056
 
    # the line `#! .'.  This would cause the generated library to
6057
 
    # depend on `.', always an invalid library.  This was fixed in
6058
 
    # development snapshots of GCC prior to 3.0.
6059
 
    case $host_os in
6060
 
      aix4 | aix4.[01] | aix4.[01].*)
6061
 
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6062
 
             echo ' yes '
6063
 
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6064
 
          :
6065
 
        else
6066
 
          can_build_shared=no
6067
 
        fi
6068
 
        ;;
6069
 
    esac
6070
 
    # AIX (on Power*) has no versioning support, so currently we can
6071
 
    # not hardcode correct soname into executable. Probably we can
6072
 
    # add versioning support to collect2, so additional links can
6073
 
    # be useful in future.
6074
 
    if test "$aix_use_runtimelinking" = yes; then
6075
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6076
 
      # instead of lib<name>.a to let people know that these are not
6077
 
      # typical AIX shared libraries.
6078
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6079
 
    else
6080
 
      # We preserve .a as extension for shared libraries through AIX4.2
6081
 
      # and later when we are not doing run time linking.
6082
 
      library_names_spec='${libname}${release}.a $libname.a'
6083
 
      soname_spec='${libname}${release}.so$major'
 
9522
    enable_dlopen=no
 
9523
  fi
 
9524
 
 
9525
  case $lt_cv_dlopen in
 
9526
  dlopen)
 
9527
    save_CPPFLAGS="$CPPFLAGS"
 
9528
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9529
 
 
9530
    save_LDFLAGS="$LDFLAGS"
 
9531
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9532
 
 
9533
    save_LIBS="$LIBS"
 
9534
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9535
 
 
9536
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9537
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9538
if test "${lt_cv_dlopen_self+set}" = set; then
 
9539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9540
else
 
9541
          if test "$cross_compiling" = yes; then :
 
9542
  lt_cv_dlopen_self=cross
 
9543
else
 
9544
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9545
  lt_status=$lt_dlunknown
 
9546
  cat > conftest.$ac_ext <<EOF
 
9547
#line 9547 "configure"
 
9548
#include "confdefs.h"
 
9549
 
 
9550
#if HAVE_DLFCN_H
 
9551
#include <dlfcn.h>
 
9552
#endif
 
9553
 
 
9554
#include <stdio.h>
 
9555
 
 
9556
#ifdef RTLD_GLOBAL
 
9557
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9558
#else
 
9559
#  ifdef DL_GLOBAL
 
9560
#    define LT_DLGLOBAL         DL_GLOBAL
 
9561
#  else
 
9562
#    define LT_DLGLOBAL         0
 
9563
#  endif
 
9564
#endif
 
9565
 
 
9566
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9567
   find out it does not work in some platform. */
 
9568
#ifndef LT_DLLAZY_OR_NOW
 
9569
#  ifdef RTLD_LAZY
 
9570
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9571
#  else
 
9572
#    ifdef DL_LAZY
 
9573
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9574
#    else
 
9575
#      ifdef RTLD_NOW
 
9576
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9577
#      else
 
9578
#        ifdef DL_NOW
 
9579
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9580
#        else
 
9581
#          define LT_DLLAZY_OR_NOW      0
 
9582
#        endif
 
9583
#      endif
 
9584
#    endif
 
9585
#  endif
 
9586
#endif
 
9587
 
 
9588
#ifdef __cplusplus
 
9589
extern "C" void exit (int);
 
9590
#endif
 
9591
 
 
9592
void fnord() { int i=42;}
 
9593
int main ()
 
9594
{
 
9595
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9596
  int status = $lt_dlunknown;
 
9597
 
 
9598
  if (self)
 
9599
    {
 
9600
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9601
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9602
      /* dlclose (self); */
 
9603
    }
 
9604
 
 
9605
    exit (status);
 
9606
}
 
9607
EOF
 
9608
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9609
  (eval $ac_link) 2>&5
 
9610
  ac_status=$?
 
9611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9612
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9613
    (./conftest; exit; ) 2>/dev/null
 
9614
    lt_status=$?
 
9615
    case x$lt_status in
 
9616
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9617
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9618
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9619
    esac
 
9620
  else :
 
9621
    # compilation failed
 
9622
    lt_cv_dlopen_self=no
 
9623
  fi
 
9624
fi
 
9625
rm -fr conftest*
 
9626
 
 
9627
 
 
9628
fi
 
9629
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9630
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9631
 
 
9632
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9633
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9634
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9635
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9636
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9638
else
 
9639
          if test "$cross_compiling" = yes; then :
 
9640
  lt_cv_dlopen_self_static=cross
 
9641
else
 
9642
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9643
  lt_status=$lt_dlunknown
 
9644
  cat > conftest.$ac_ext <<EOF
 
9645
#line 9645 "configure"
 
9646
#include "confdefs.h"
 
9647
 
 
9648
#if HAVE_DLFCN_H
 
9649
#include <dlfcn.h>
 
9650
#endif
 
9651
 
 
9652
#include <stdio.h>
 
9653
 
 
9654
#ifdef RTLD_GLOBAL
 
9655
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9656
#else
 
9657
#  ifdef DL_GLOBAL
 
9658
#    define LT_DLGLOBAL         DL_GLOBAL
 
9659
#  else
 
9660
#    define LT_DLGLOBAL         0
 
9661
#  endif
 
9662
#endif
 
9663
 
 
9664
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9665
   find out it does not work in some platform. */
 
9666
#ifndef LT_DLLAZY_OR_NOW
 
9667
#  ifdef RTLD_LAZY
 
9668
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9669
#  else
 
9670
#    ifdef DL_LAZY
 
9671
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9672
#    else
 
9673
#      ifdef RTLD_NOW
 
9674
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9675
#      else
 
9676
#        ifdef DL_NOW
 
9677
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9678
#        else
 
9679
#          define LT_DLLAZY_OR_NOW      0
 
9680
#        endif
 
9681
#      endif
 
9682
#    endif
 
9683
#  endif
 
9684
#endif
 
9685
 
 
9686
#ifdef __cplusplus
 
9687
extern "C" void exit (int);
 
9688
#endif
 
9689
 
 
9690
void fnord() { int i=42;}
 
9691
int main ()
 
9692
{
 
9693
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9694
  int status = $lt_dlunknown;
 
9695
 
 
9696
  if (self)
 
9697
    {
 
9698
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9699
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9700
      /* dlclose (self); */
 
9701
    }
 
9702
 
 
9703
    exit (status);
 
9704
}
 
9705
EOF
 
9706
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9707
  (eval $ac_link) 2>&5
 
9708
  ac_status=$?
 
9709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9710
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9711
    (./conftest; exit; ) 2>/dev/null
 
9712
    lt_status=$?
 
9713
    case x$lt_status in
 
9714
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9715
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9716
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9717
    esac
 
9718
  else :
 
9719
    # compilation failed
 
9720
    lt_cv_dlopen_self_static=no
 
9721
  fi
 
9722
fi
 
9723
rm -fr conftest*
 
9724
 
 
9725
 
 
9726
fi
 
9727
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9728
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6084
9729
    fi
6085
 
    shlibpath_var=LIBPATH
6086
 
  fi
6087
 
  hardcode_into_libs=yes
6088
 
  ;;
6089
 
 
6090
 
amigaos*)
6091
 
  library_names_spec='$libname.ixlibrary $libname.a'
6092
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6093
 
  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'
6094
 
  ;;
6095
 
 
6096
 
beos*)
6097
 
  library_names_spec='${libname}.so'
6098
 
  dynamic_linker="$host_os ld.so"
6099
 
  shlibpath_var=LIBRARY_PATH
6100
 
  ;;
6101
 
 
6102
 
bsdi4*)
6103
 
  version_type=linux
6104
 
  need_version=no
6105
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6106
 
  soname_spec='${libname}${release}.so$major'
6107
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6108
 
  shlibpath_var=LD_LIBRARY_PATH
6109
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6110
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6111
 
  export_dynamic_flag_spec=-rdynamic
6112
 
  # the default ld.so.conf also contains /usr/contrib/lib and
6113
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6114
 
  # libtool to hard-code these into programs
6115
 
  ;;
6116
 
 
6117
 
cygwin* | mingw* | pw32*)
6118
 
  version_type=windows
6119
 
  need_version=no
6120
 
  need_lib_prefix=no
6121
 
  case $GCC,$host_os in
6122
 
  yes,cygwin*)
6123
 
    library_names_spec='$libname.dll.a'
6124
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6125
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6126
 
      dldir=$destdir/`dirname \$dlpath`~
6127
 
      test -d \$dldir || mkdir -p \$dldir~
6128
 
      $install_prog .libs/$dlname \$dldir/$dlname'
6129
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6130
 
      dlpath=$dir/\$dldll~
6131
 
       $rm \$dlpath'
6132
 
    ;;
6133
 
  yes,mingw*)
6134
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6135
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6136
 
    ;;
6137
 
  yes,pw32*)
6138
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6139
 
    ;;
6140
 
  *)
6141
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6142
 
    ;;
6143
 
  esac
6144
 
  dynamic_linker='Win32 ld.exe'
6145
 
  # FIXME: first we should search . and the directory the executable is in
6146
 
  shlibpath_var=PATH
6147
 
  ;;
6148
 
 
6149
 
darwin* | rhapsody*)
6150
 
  dynamic_linker="$host_os dyld"
6151
 
  version_type=darwin
6152
 
  need_lib_prefix=no
6153
 
  need_version=no
6154
 
  # FIXME: Relying on posixy $() will cause problems for
6155
 
  #        cross-compilation, but unfortunately the echo tests do not
6156
 
  #        yet detect zsh echo's removal of \ escapes.
6157
 
  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)'
6158
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6159
 
  shlibpath_overrides_runpath=yes
6160
 
  shlibpath_var=DYLD_LIBRARY_PATH
6161
 
  ;;
6162
 
 
6163
 
freebsd1*)
6164
 
  dynamic_linker=no
6165
 
  ;;
6166
 
 
6167
 
freebsd*)
6168
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6169
 
  version_type=freebsd-$objformat
6170
 
  case $version_type in
6171
 
    freebsd-elf*)
6172
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6173
 
      need_version=no
6174
 
      need_lib_prefix=no
6175
 
      ;;
6176
 
    freebsd-*)
6177
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6178
 
      need_version=yes
6179
 
      ;;
6180
 
  esac
6181
 
  shlibpath_var=LD_LIBRARY_PATH
6182
 
  case $host_os in
6183
 
  freebsd2*)
6184
 
    shlibpath_overrides_runpath=yes
6185
 
    ;;
6186
 
  *)
6187
 
    shlibpath_overrides_runpath=no
6188
 
    hardcode_into_libs=yes
6189
 
    ;;
6190
 
  esac
6191
 
  ;;
6192
 
 
6193
 
gnu*)
6194
 
  version_type=linux
6195
 
  need_lib_prefix=no
6196
 
  need_version=no
6197
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6198
 
  soname_spec='${libname}${release}.so$major'
6199
 
  shlibpath_var=LD_LIBRARY_PATH
6200
 
  hardcode_into_libs=yes
6201
 
  ;;
6202
 
 
6203
 
hpux9* | hpux10* | hpux11*)
6204
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
6205
 
  # link against other versions.
6206
 
  dynamic_linker="$host_os dld.sl"
6207
 
  version_type=sunos
6208
 
  need_lib_prefix=no
6209
 
  need_version=no
6210
 
  shlibpath_var=SHLIB_PATH
6211
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6212
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6213
 
  soname_spec='${libname}${release}.sl$major'
6214
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6215
 
  postinstall_cmds='chmod 555 $lib'
6216
 
  ;;
6217
 
 
6218
 
irix5* | irix6* | nonstopux*)
6219
 
  case $host_os in
6220
 
    nonstopux*) version_type=nonstopux ;;
6221
 
    *)          version_type=irix ;;
6222
 
  esac
6223
 
  need_lib_prefix=no
6224
 
  need_version=no
6225
 
  soname_spec='${libname}${release}.so$major'
6226
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6227
 
  case $host_os in
6228
 
  irix5* | nonstopux*)
6229
 
    libsuff= shlibsuff=
6230
 
    ;;
6231
 
  *)
6232
 
    case $LD in # libtool.m4 will add one of these switches to LD
6233
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6234
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6235
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6236
 
    *) libsuff= shlibsuff= libmagic=never-match;;
6237
 
    esac
6238
 
    ;;
6239
 
  esac
6240
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6241
 
  shlibpath_overrides_runpath=no
6242
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6243
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6244
 
  ;;
6245
 
 
6246
 
# No shared lib support for Linux oldld, aout, or coff.
6247
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6248
 
  dynamic_linker=no
6249
 
  ;;
6250
 
 
6251
 
# This must be Linux ELF.
6252
 
linux-gnu*)
6253
 
  version_type=linux
6254
 
  need_lib_prefix=no
6255
 
  need_version=no
6256
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6257
 
  soname_spec='${libname}${release}.so$major'
6258
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6259
 
  shlibpath_var=LD_LIBRARY_PATH
6260
 
  shlibpath_overrides_runpath=no
6261
 
  # This implies no fast_install, which is unacceptable.
6262
 
  # Some rework will be needed to allow for fast_install
6263
 
  # before this can be enabled.
6264
 
  hardcode_into_libs=yes
6265
 
 
6266
 
  case $host_cpu:$lt_cv_cc_64bit_output in
6267
 
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
6268
 
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
6269
 
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
6270
 
    ;;
6271
 
  esac
6272
 
 
6273
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
6274
 
  # powerpc, because MkLinux only supported shared libraries with the
6275
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
6276
 
  # most powerpc-linux boxes support dynamic linking these days and
6277
 
  # people can always --disable-shared, the test was removed, and we
6278
 
  # assume the GNU/Linux dynamic linker is in use.
6279
 
  dynamic_linker='GNU/Linux ld.so'
6280
 
  ;;
6281
 
 
6282
 
netbsd*)
6283
 
  version_type=sunos
6284
 
  need_lib_prefix=no
6285
 
  need_version=no
6286
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6287
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6288
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6289
 
    dynamic_linker='NetBSD (a.out) ld.so'
6290
 
  else
6291
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6292
 
    soname_spec='${libname}${release}.so$major'
6293
 
    dynamic_linker='NetBSD ld.elf_so'
6294
 
  fi
6295
 
  shlibpath_var=LD_LIBRARY_PATH
6296
 
  shlibpath_overrides_runpath=yes
6297
 
  hardcode_into_libs=yes
6298
 
  ;;
6299
 
 
6300
 
newsos6)
6301
 
  version_type=linux
6302
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6303
 
  shlibpath_var=LD_LIBRARY_PATH
6304
 
  shlibpath_overrides_runpath=yes
6305
 
  ;;
6306
 
 
6307
 
openbsd*)
6308
 
  version_type=sunos
6309
 
  need_lib_prefix=no
6310
 
  need_version=no
6311
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6312
 
    case "$host_os" in
6313
 
    openbsd2.[89] | openbsd2.[89].*)
6314
 
      shlibpath_overrides_runpath=no
6315
 
      ;;
6316
 
    *)
6317
 
      shlibpath_overrides_runpath=yes
6318
 
      ;;
6319
 
    esac
6320
 
  else
6321
 
    shlibpath_overrides_runpath=yes
6322
 
  fi
6323
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6324
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6325
 
  shlibpath_var=LD_LIBRARY_PATH
6326
 
  ;;
6327
 
 
6328
 
os2*)
6329
 
  libname_spec='$name'
6330
 
  need_lib_prefix=no
6331
 
  library_names_spec='$libname.dll $libname.a'
6332
 
  dynamic_linker='OS/2 ld.exe'
6333
 
  shlibpath_var=LIBPATH
6334
 
  ;;
6335
 
 
6336
 
osf3* | osf4* | osf5*)
6337
 
  version_type=osf
6338
 
  need_version=no
6339
 
  soname_spec='${libname}${release}.so$major'
6340
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6341
 
  shlibpath_var=LD_LIBRARY_PATH
6342
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6343
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6344
 
  hardcode_into_libs=yes
6345
 
  ;;
6346
 
 
6347
 
sco3.2v5*)
6348
 
  version_type=osf
6349
 
  soname_spec='${libname}${release}.so$major'
6350
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6351
 
  shlibpath_var=LD_LIBRARY_PATH
6352
 
  ;;
6353
 
 
6354
 
solaris*)
6355
 
  version_type=linux
6356
 
  need_lib_prefix=no
6357
 
  need_version=no
6358
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6359
 
  soname_spec='${libname}${release}.so$major'
6360
 
  shlibpath_var=LD_LIBRARY_PATH
6361
 
  shlibpath_overrides_runpath=yes
6362
 
  hardcode_into_libs=yes
6363
 
  # ldd complains unless libraries are executable
6364
 
  postinstall_cmds='chmod +x $lib'
6365
 
  ;;
6366
 
 
6367
 
sunos4*)
6368
 
  version_type=sunos
6369
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6370
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6371
 
  shlibpath_var=LD_LIBRARY_PATH
6372
 
  shlibpath_overrides_runpath=yes
6373
 
  if test "$with_gnu_ld" = yes; then
6374
 
    need_lib_prefix=no
6375
 
  fi
6376
 
  need_version=yes
6377
 
  ;;
6378
 
 
6379
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6380
 
  version_type=linux
6381
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6382
 
  soname_spec='${libname}${release}.so$major'
6383
 
  shlibpath_var=LD_LIBRARY_PATH
6384
 
  case $host_vendor in
6385
 
    sni)
6386
 
      shlibpath_overrides_runpath=no
6387
 
      need_lib_prefix=no
6388
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
6389
 
      runpath_var=LD_RUN_PATH
6390
 
      ;;
6391
 
    siemens)
6392
 
      need_lib_prefix=no
6393
 
      ;;
6394
 
    motorola)
6395
 
      need_lib_prefix=no
6396
 
      need_version=no
6397
 
      shlibpath_overrides_runpath=no
6398
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6399
 
      ;;
6400
 
  esac
6401
 
  ;;
6402
 
 
6403
 
uts4*)
6404
 
  version_type=linux
6405
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6406
 
  soname_spec='${libname}${release}.so$major'
6407
 
  shlibpath_var=LD_LIBRARY_PATH
6408
 
  ;;
6409
 
 
6410
 
dgux*)
6411
 
  version_type=linux
6412
 
  need_lib_prefix=no
6413
 
  need_version=no
6414
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6415
 
  soname_spec='${libname}${release}.so$major'
6416
 
  shlibpath_var=LD_LIBRARY_PATH
6417
 
  ;;
6418
 
 
6419
 
sysv4*MP*)
6420
 
  if test -d /usr/nec ;then
6421
 
    version_type=linux
6422
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6423
 
    soname_spec='$libname.so.$major'
6424
 
    shlibpath_var=LD_LIBRARY_PATH
6425
 
  fi
6426
 
  ;;
6427
 
 
6428
 
*)
6429
 
  dynamic_linker=no
6430
 
  ;;
6431
 
esac
6432
 
echo "$as_me:6432: result: $dynamic_linker" >&5
6433
 
echo "${ECHO_T}$dynamic_linker" >&6
6434
 
test "$dynamic_linker" = no && can_build_shared=no
6435
 
 
6436
 
# Report the final consequences.
6437
 
echo "$as_me:6437: checking if libtool supports shared libraries" >&5
 
9730
 
 
9731
    CPPFLAGS="$save_CPPFLAGS"
 
9732
    LDFLAGS="$save_LDFLAGS"
 
9733
    LIBS="$save_LIBS"
 
9734
    ;;
 
9735
  esac
 
9736
 
 
9737
  case $lt_cv_dlopen_self in
 
9738
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9739
  *) enable_dlopen_self=unknown ;;
 
9740
  esac
 
9741
 
 
9742
  case $lt_cv_dlopen_self_static in
 
9743
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9744
  *) enable_dlopen_self_static=unknown ;;
 
9745
  esac
 
9746
fi
 
9747
 
 
9748
 
 
9749
# Report which librarie types wil actually be built
 
9750
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6438
9751
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6439
 
echo "$as_me:6439: result: $can_build_shared" >&5
 
9752
echo "$as_me:$LINENO: result: $can_build_shared" >&5
6440
9753
echo "${ECHO_T}$can_build_shared" >&6
6441
9754
 
6442
 
echo "$as_me:6442: checking whether to build shared libraries" >&5
 
9755
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6443
9756
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6444
9757
test "$can_build_shared" = "no" && enable_shared=no
6445
9758
 
6454
9767
  fi
6455
9768
  ;;
6456
9769
 
6457
 
aix4*)
 
9770
aix4* | aix5*)
6458
9771
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6459
9772
    test "$enable_shared" = yes && enable_static=no
6460
9773
  fi
6461
9774
  ;;
 
9775
  darwin* | rhapsody*)
 
9776
  if test "$GCC" = yes; then
 
9777
    archive_cmds_need_lc=no
 
9778
    case "$host_os" in
 
9779
    rhapsody* | darwin1.[012])
 
9780
      allow_undefined_flag='-undefined suppress'
 
9781
      ;;
 
9782
    *) # Darwin 1.3 on
 
9783
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9784
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9785
      else
 
9786
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9787
          10.[012])
 
9788
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9789
            ;;
 
9790
          10.*)
 
9791
            allow_undefined_flag='-undefined dynamic_lookup'
 
9792
            ;;
 
9793
        esac
 
9794
      fi
 
9795
      ;;
 
9796
    esac
 
9797
    output_verbose_link_cmd='echo'
 
9798
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
9799
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9800
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9801
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9802
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9803
    hardcode_direct=no
 
9804
    hardcode_automatic=yes
 
9805
    hardcode_shlibpath_var=unsupported
 
9806
    whole_archive_flag_spec='-all_load $convenience'
 
9807
    link_all_deplibs=yes
 
9808
  else
 
9809
    ld_shlibs=no
 
9810
  fi
 
9811
    ;;
6462
9812
esac
6463
 
echo "$as_me:6463: result: $enable_shared" >&5
 
9813
echo "$as_me:$LINENO: result: $enable_shared" >&5
6464
9814
echo "${ECHO_T}$enable_shared" >&6
6465
9815
 
6466
 
echo "$as_me:6466: checking whether to build static libraries" >&5
 
9816
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6467
9817
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6468
9818
# Make sure either enable_shared or enable_static is yes.
6469
9819
test "$enable_shared" = yes || enable_static=yes
6470
 
echo "$as_me:6470: result: $enable_static" >&5
 
9820
echo "$as_me:$LINENO: result: $enable_static" >&5
6471
9821
echo "${ECHO_T}$enable_static" >&6
6472
9822
 
6473
 
if test "$hardcode_action" = relink; then
6474
 
  # Fast installation is not supported
6475
 
  enable_fast_install=no
6476
 
elif test "$shlibpath_overrides_runpath" = yes ||
6477
 
     test "$enable_shared" = no; then
6478
 
  # Fast installation is not necessary
6479
 
  enable_fast_install=needless
6480
 
fi
6481
 
 
6482
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6483
 
if test "$GCC" = yes; then
6484
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6485
 
fi
6486
 
 
6487
 
if test "x$enable_dlopen" != xyes; then
6488
 
  enable_dlopen=unknown
6489
 
  enable_dlopen_self=unknown
6490
 
  enable_dlopen_self_static=unknown
6491
 
else
6492
 
  lt_cv_dlopen=no
6493
 
  lt_cv_dlopen_libs=
6494
 
 
6495
 
  case $host_os in
6496
 
  beos*)
6497
 
    lt_cv_dlopen="load_add_on"
6498
 
    lt_cv_dlopen_libs=
6499
 
    lt_cv_dlopen_self=yes
6500
 
    ;;
6501
 
 
6502
 
  cygwin* | mingw* | pw32*)
6503
 
    lt_cv_dlopen="LoadLibrary"
6504
 
    lt_cv_dlopen_libs=
6505
 
   ;;
6506
 
 
6507
 
  *)
6508
 
    echo "$as_me:6508: checking for shl_load" >&5
6509
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6510
 
if test "${ac_cv_func_shl_load+set}" = set; then
6511
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6512
 
else
6513
 
  cat >conftest.$ac_ext <<_ACEOF
6514
 
#line 6514 "configure"
6515
 
#include "confdefs.h"
6516
 
/* System header to define __stub macros and hopefully few prototypes,
6517
 
    which can conflict with char shl_load (); below.  */
6518
 
#include <assert.h>
6519
 
/* Override any gcc2 internal prototype to avoid an error.  */
6520
 
#ifdef __cplusplus
6521
 
extern "C"
6522
 
#endif
6523
 
/* We use char because int might match the return type of a gcc2
6524
 
   builtin and then its argument prototype would still apply.  */
6525
 
char shl_load ();
6526
 
char (*f) ();
6527
 
 
6528
 
int
6529
 
main ()
6530
 
{
6531
 
/* The GNU C library defines this for functions which it implements
6532
 
    to always fail with ENOSYS.  Some functions are actually named
6533
 
    something starting with __ and the normal name is an alias.  */
6534
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6535
 
choke me
6536
 
#else
6537
 
f = shl_load;
6538
 
#endif
6539
 
 
6540
 
  ;
6541
 
  return 0;
6542
 
}
6543
 
_ACEOF
6544
 
rm -f conftest.$ac_objext conftest$ac_exeext
6545
 
if { (eval echo "$as_me:6545: \"$ac_link\"") >&5
6546
 
  (eval $ac_link) 2>&5
6547
 
  ac_status=$?
6548
 
  echo "$as_me:6548: \$? = $ac_status" >&5
6549
 
  (exit $ac_status); } &&
6550
 
         { ac_try='test -s conftest$ac_exeext'
6551
 
  { (eval echo "$as_me:6551: \"$ac_try\"") >&5
6552
 
  (eval $ac_try) 2>&5
6553
 
  ac_status=$?
6554
 
  echo "$as_me:6554: \$? = $ac_status" >&5
6555
 
  (exit $ac_status); }; }; then
6556
 
  ac_cv_func_shl_load=yes
6557
 
else
6558
 
  echo "$as_me: failed program was:" >&5
6559
 
cat conftest.$ac_ext >&5
6560
 
ac_cv_func_shl_load=no
6561
 
fi
6562
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6563
 
fi
6564
 
echo "$as_me:6564: result: $ac_cv_func_shl_load" >&5
6565
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6566
 
if test $ac_cv_func_shl_load = yes; then
6567
 
  lt_cv_dlopen="shl_load"
6568
 
else
6569
 
  echo "$as_me:6569: checking for shl_load in -ldld" >&5
6570
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6571
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6572
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6573
 
else
6574
 
  ac_check_lib_save_LIBS=$LIBS
6575
 
LIBS="-ldld  $LIBS"
6576
 
cat >conftest.$ac_ext <<_ACEOF
6577
 
#line 6577 "configure"
6578
 
#include "confdefs.h"
6579
 
 
6580
 
/* Override any gcc2 internal prototype to avoid an error.  */
6581
 
#ifdef __cplusplus
6582
 
extern "C"
6583
 
#endif
6584
 
/* We use char because int might match the return type of a gcc2
6585
 
   builtin and then its argument prototype would still apply.  */
6586
 
char shl_load ();
6587
 
int
6588
 
main ()
6589
 
{
6590
 
shl_load ();
6591
 
  ;
6592
 
  return 0;
6593
 
}
6594
 
_ACEOF
6595
 
rm -f conftest.$ac_objext conftest$ac_exeext
6596
 
if { (eval echo "$as_me:6596: \"$ac_link\"") >&5
6597
 
  (eval $ac_link) 2>&5
6598
 
  ac_status=$?
6599
 
  echo "$as_me:6599: \$? = $ac_status" >&5
6600
 
  (exit $ac_status); } &&
6601
 
         { ac_try='test -s conftest$ac_exeext'
6602
 
  { (eval echo "$as_me:6602: \"$ac_try\"") >&5
6603
 
  (eval $ac_try) 2>&5
6604
 
  ac_status=$?
6605
 
  echo "$as_me:6605: \$? = $ac_status" >&5
6606
 
  (exit $ac_status); }; }; then
6607
 
  ac_cv_lib_dld_shl_load=yes
6608
 
else
6609
 
  echo "$as_me: failed program was:" >&5
6610
 
cat conftest.$ac_ext >&5
6611
 
ac_cv_lib_dld_shl_load=no
6612
 
fi
6613
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6614
 
LIBS=$ac_check_lib_save_LIBS
6615
 
fi
6616
 
echo "$as_me:6616: result: $ac_cv_lib_dld_shl_load" >&5
6617
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6618
 
if test $ac_cv_lib_dld_shl_load = yes; then
6619
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6620
 
else
6621
 
  echo "$as_me:6621: checking for dlopen" >&5
6622
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6623
 
if test "${ac_cv_func_dlopen+set}" = set; then
6624
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6625
 
else
6626
 
  cat >conftest.$ac_ext <<_ACEOF
6627
 
#line 6627 "configure"
6628
 
#include "confdefs.h"
6629
 
/* System header to define __stub macros and hopefully few prototypes,
6630
 
    which can conflict with char dlopen (); below.  */
6631
 
#include <assert.h>
6632
 
/* Override any gcc2 internal prototype to avoid an error.  */
6633
 
#ifdef __cplusplus
6634
 
extern "C"
6635
 
#endif
6636
 
/* We use char because int might match the return type of a gcc2
6637
 
   builtin and then its argument prototype would still apply.  */
6638
 
char dlopen ();
6639
 
char (*f) ();
6640
 
 
6641
 
int
6642
 
main ()
6643
 
{
6644
 
/* The GNU C library defines this for functions which it implements
6645
 
    to always fail with ENOSYS.  Some functions are actually named
6646
 
    something starting with __ and the normal name is an alias.  */
6647
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6648
 
choke me
6649
 
#else
6650
 
f = dlopen;
6651
 
#endif
6652
 
 
6653
 
  ;
6654
 
  return 0;
6655
 
}
6656
 
_ACEOF
6657
 
rm -f conftest.$ac_objext conftest$ac_exeext
6658
 
if { (eval echo "$as_me:6658: \"$ac_link\"") >&5
6659
 
  (eval $ac_link) 2>&5
6660
 
  ac_status=$?
6661
 
  echo "$as_me:6661: \$? = $ac_status" >&5
6662
 
  (exit $ac_status); } &&
6663
 
         { ac_try='test -s conftest$ac_exeext'
6664
 
  { (eval echo "$as_me:6664: \"$ac_try\"") >&5
6665
 
  (eval $ac_try) 2>&5
6666
 
  ac_status=$?
6667
 
  echo "$as_me:6667: \$? = $ac_status" >&5
6668
 
  (exit $ac_status); }; }; then
6669
 
  ac_cv_func_dlopen=yes
6670
 
else
6671
 
  echo "$as_me: failed program was:" >&5
6672
 
cat conftest.$ac_ext >&5
6673
 
ac_cv_func_dlopen=no
6674
 
fi
6675
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6676
 
fi
6677
 
echo "$as_me:6677: result: $ac_cv_func_dlopen" >&5
6678
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6679
 
if test $ac_cv_func_dlopen = yes; then
6680
 
  lt_cv_dlopen="dlopen"
6681
 
else
6682
 
  echo "$as_me:6682: checking for dlopen in -ldl" >&5
6683
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6684
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6685
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6686
 
else
6687
 
  ac_check_lib_save_LIBS=$LIBS
6688
 
LIBS="-ldl  $LIBS"
6689
 
cat >conftest.$ac_ext <<_ACEOF
6690
 
#line 6690 "configure"
6691
 
#include "confdefs.h"
6692
 
 
6693
 
/* Override any gcc2 internal prototype to avoid an error.  */
6694
 
#ifdef __cplusplus
6695
 
extern "C"
6696
 
#endif
6697
 
/* We use char because int might match the return type of a gcc2
6698
 
   builtin and then its argument prototype would still apply.  */
6699
 
char dlopen ();
6700
 
int
6701
 
main ()
6702
 
{
6703
 
dlopen ();
6704
 
  ;
6705
 
  return 0;
6706
 
}
6707
 
_ACEOF
6708
 
rm -f conftest.$ac_objext conftest$ac_exeext
6709
 
if { (eval echo "$as_me:6709: \"$ac_link\"") >&5
6710
 
  (eval $ac_link) 2>&5
6711
 
  ac_status=$?
6712
 
  echo "$as_me:6712: \$? = $ac_status" >&5
6713
 
  (exit $ac_status); } &&
6714
 
         { ac_try='test -s conftest$ac_exeext'
6715
 
  { (eval echo "$as_me:6715: \"$ac_try\"") >&5
6716
 
  (eval $ac_try) 2>&5
6717
 
  ac_status=$?
6718
 
  echo "$as_me:6718: \$? = $ac_status" >&5
6719
 
  (exit $ac_status); }; }; then
6720
 
  ac_cv_lib_dl_dlopen=yes
6721
 
else
6722
 
  echo "$as_me: failed program was:" >&5
6723
 
cat conftest.$ac_ext >&5
6724
 
ac_cv_lib_dl_dlopen=no
6725
 
fi
6726
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6727
 
LIBS=$ac_check_lib_save_LIBS
6728
 
fi
6729
 
echo "$as_me:6729: result: $ac_cv_lib_dl_dlopen" >&5
6730
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6731
 
if test $ac_cv_lib_dl_dlopen = yes; then
6732
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6733
 
else
6734
 
  echo "$as_me:6734: checking for dlopen in -lsvld" >&5
6735
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6736
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6737
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6738
 
else
6739
 
  ac_check_lib_save_LIBS=$LIBS
6740
 
LIBS="-lsvld  $LIBS"
6741
 
cat >conftest.$ac_ext <<_ACEOF
6742
 
#line 6742 "configure"
6743
 
#include "confdefs.h"
6744
 
 
6745
 
/* Override any gcc2 internal prototype to avoid an error.  */
6746
 
#ifdef __cplusplus
6747
 
extern "C"
6748
 
#endif
6749
 
/* We use char because int might match the return type of a gcc2
6750
 
   builtin and then its argument prototype would still apply.  */
6751
 
char dlopen ();
6752
 
int
6753
 
main ()
6754
 
{
6755
 
dlopen ();
6756
 
  ;
6757
 
  return 0;
6758
 
}
6759
 
_ACEOF
6760
 
rm -f conftest.$ac_objext conftest$ac_exeext
6761
 
if { (eval echo "$as_me:6761: \"$ac_link\"") >&5
6762
 
  (eval $ac_link) 2>&5
6763
 
  ac_status=$?
6764
 
  echo "$as_me:6764: \$? = $ac_status" >&5
6765
 
  (exit $ac_status); } &&
6766
 
         { ac_try='test -s conftest$ac_exeext'
6767
 
  { (eval echo "$as_me:6767: \"$ac_try\"") >&5
6768
 
  (eval $ac_try) 2>&5
6769
 
  ac_status=$?
6770
 
  echo "$as_me:6770: \$? = $ac_status" >&5
6771
 
  (exit $ac_status); }; }; then
6772
 
  ac_cv_lib_svld_dlopen=yes
6773
 
else
6774
 
  echo "$as_me: failed program was:" >&5
6775
 
cat conftest.$ac_ext >&5
6776
 
ac_cv_lib_svld_dlopen=no
6777
 
fi
6778
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6779
 
LIBS=$ac_check_lib_save_LIBS
6780
 
fi
6781
 
echo "$as_me:6781: result: $ac_cv_lib_svld_dlopen" >&5
6782
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6783
 
if test $ac_cv_lib_svld_dlopen = yes; then
6784
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6785
 
else
6786
 
  echo "$as_me:6786: checking for dld_link in -ldld" >&5
6787
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6788
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6789
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6790
 
else
6791
 
  ac_check_lib_save_LIBS=$LIBS
6792
 
LIBS="-ldld  $LIBS"
6793
 
cat >conftest.$ac_ext <<_ACEOF
6794
 
#line 6794 "configure"
6795
 
#include "confdefs.h"
6796
 
 
6797
 
/* Override any gcc2 internal prototype to avoid an error.  */
6798
 
#ifdef __cplusplus
6799
 
extern "C"
6800
 
#endif
6801
 
/* We use char because int might match the return type of a gcc2
6802
 
   builtin and then its argument prototype would still apply.  */
6803
 
char dld_link ();
6804
 
int
6805
 
main ()
6806
 
{
6807
 
dld_link ();
6808
 
  ;
6809
 
  return 0;
6810
 
}
6811
 
_ACEOF
6812
 
rm -f conftest.$ac_objext conftest$ac_exeext
6813
 
if { (eval echo "$as_me:6813: \"$ac_link\"") >&5
6814
 
  (eval $ac_link) 2>&5
6815
 
  ac_status=$?
6816
 
  echo "$as_me:6816: \$? = $ac_status" >&5
6817
 
  (exit $ac_status); } &&
6818
 
         { ac_try='test -s conftest$ac_exeext'
6819
 
  { (eval echo "$as_me:6819: \"$ac_try\"") >&5
6820
 
  (eval $ac_try) 2>&5
6821
 
  ac_status=$?
6822
 
  echo "$as_me:6822: \$? = $ac_status" >&5
6823
 
  (exit $ac_status); }; }; then
6824
 
  ac_cv_lib_dld_dld_link=yes
6825
 
else
6826
 
  echo "$as_me: failed program was:" >&5
6827
 
cat conftest.$ac_ext >&5
6828
 
ac_cv_lib_dld_dld_link=no
6829
 
fi
6830
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6831
 
LIBS=$ac_check_lib_save_LIBS
6832
 
fi
6833
 
echo "$as_me:6833: result: $ac_cv_lib_dld_dld_link" >&5
6834
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6835
 
if test $ac_cv_lib_dld_dld_link = yes; then
6836
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6837
 
fi
6838
 
 
6839
 
fi
6840
 
 
6841
 
fi
6842
 
 
6843
 
fi
6844
 
 
6845
 
fi
6846
 
 
6847
 
fi
6848
 
 
6849
 
    ;;
6850
 
  esac
6851
 
 
6852
 
  if test "x$lt_cv_dlopen" != xno; then
6853
 
    enable_dlopen=yes
6854
 
  else
6855
 
    enable_dlopen=no
6856
 
  fi
6857
 
 
6858
 
  case $lt_cv_dlopen in
6859
 
  dlopen)
6860
 
    save_CPPFLAGS="$CPPFLAGS"
6861
 
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6862
 
 
6863
 
    save_LDFLAGS="$LDFLAGS"
6864
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6865
 
 
6866
 
    save_LIBS="$LIBS"
6867
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
6868
 
 
6869
 
    echo "$as_me:6869: checking whether a program can dlopen itself" >&5
6870
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6871
 
if test "${lt_cv_dlopen_self+set}" = set; then
6872
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6873
 
else
6874
 
          if test "$cross_compiling" = yes; then :
6875
 
  lt_cv_dlopen_self=cross
6876
 
else
6877
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6878
 
  lt_status=$lt_dlunknown
6879
 
  cat > conftest.$ac_ext <<EOF
6880
 
#line 6880 "configure"
6881
 
#include "confdefs.h"
6882
 
 
6883
 
#if HAVE_DLFCN_H
6884
 
#include <dlfcn.h>
6885
 
#endif
6886
 
 
6887
 
#include <stdio.h>
6888
 
 
6889
 
#ifdef RTLD_GLOBAL
6890
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
6891
 
#else
6892
 
#  ifdef DL_GLOBAL
6893
 
#    define LT_DLGLOBAL         DL_GLOBAL
6894
 
#  else
6895
 
#    define LT_DLGLOBAL         0
6896
 
#  endif
6897
 
#endif
6898
 
 
6899
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6900
 
   find out it does not work in some platform. */
6901
 
#ifndef LT_DLLAZY_OR_NOW
6902
 
#  ifdef RTLD_LAZY
6903
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6904
 
#  else
6905
 
#    ifdef DL_LAZY
6906
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
6907
 
#    else
6908
 
#      ifdef RTLD_NOW
6909
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
6910
 
#      else
6911
 
#        ifdef DL_NOW
6912
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
6913
 
#        else
6914
 
#          define LT_DLLAZY_OR_NOW      0
6915
 
#        endif
6916
 
#      endif
6917
 
#    endif
6918
 
#  endif
6919
 
#endif
6920
 
 
6921
 
#ifdef __cplusplus
6922
 
extern "C" void exit (int);
6923
 
#endif
6924
 
 
6925
 
void fnord() { int i=42;}
6926
 
int main ()
6927
 
{
6928
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6929
 
  int status = $lt_dlunknown;
6930
 
 
6931
 
  if (self)
6932
 
    {
6933
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6934
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6935
 
      /* dlclose (self); */
6936
 
    }
6937
 
 
6938
 
    exit (status);
6939
 
}
6940
 
EOF
6941
 
  if { (eval echo "$as_me:6941: \"$ac_link\"") >&5
6942
 
  (eval $ac_link) 2>&5
6943
 
  ac_status=$?
6944
 
  echo "$as_me:6944: \$? = $ac_status" >&5
6945
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6946
 
    (./conftest; exit; ) 2>/dev/null
6947
 
    lt_status=$?
6948
 
    case x$lt_status in
6949
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6950
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6951
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6952
 
    esac
6953
 
  else :
6954
 
    # compilation failed
6955
 
    lt_cv_dlopen_self=no
6956
 
  fi
6957
 
fi
6958
 
rm -fr conftest*
6959
 
 
6960
 
fi
6961
 
echo "$as_me:6961: result: $lt_cv_dlopen_self" >&5
6962
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6963
 
 
6964
 
    if test "x$lt_cv_dlopen_self" = xyes; then
6965
 
      LDFLAGS="$LDFLAGS $link_static_flag"
6966
 
      echo "$as_me:6966: checking whether a statically linked program can dlopen itself" >&5
6967
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6968
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
6969
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6970
 
else
6971
 
          if test "$cross_compiling" = yes; then :
6972
 
  lt_cv_dlopen_self_static=cross
6973
 
else
6974
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6975
 
  lt_status=$lt_dlunknown
6976
 
  cat > conftest.$ac_ext <<EOF
6977
 
#line 6977 "configure"
6978
 
#include "confdefs.h"
6979
 
 
6980
 
#if HAVE_DLFCN_H
6981
 
#include <dlfcn.h>
6982
 
#endif
6983
 
 
6984
 
#include <stdio.h>
6985
 
 
6986
 
#ifdef RTLD_GLOBAL
6987
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
6988
 
#else
6989
 
#  ifdef DL_GLOBAL
6990
 
#    define LT_DLGLOBAL         DL_GLOBAL
6991
 
#  else
6992
 
#    define LT_DLGLOBAL         0
6993
 
#  endif
6994
 
#endif
6995
 
 
6996
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6997
 
   find out it does not work in some platform. */
6998
 
#ifndef LT_DLLAZY_OR_NOW
6999
 
#  ifdef RTLD_LAZY
7000
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7001
 
#  else
7002
 
#    ifdef DL_LAZY
7003
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
7004
 
#    else
7005
 
#      ifdef RTLD_NOW
7006
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
7007
 
#      else
7008
 
#        ifdef DL_NOW
7009
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
7010
 
#        else
7011
 
#          define LT_DLLAZY_OR_NOW      0
7012
 
#        endif
7013
 
#      endif
7014
 
#    endif
7015
 
#  endif
7016
 
#endif
7017
 
 
7018
 
#ifdef __cplusplus
7019
 
extern "C" void exit (int);
7020
 
#endif
7021
 
 
7022
 
void fnord() { int i=42;}
7023
 
int main ()
7024
 
{
7025
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7026
 
  int status = $lt_dlunknown;
7027
 
 
7028
 
  if (self)
7029
 
    {
7030
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7031
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7032
 
      /* dlclose (self); */
7033
 
    }
7034
 
 
7035
 
    exit (status);
7036
 
}
7037
 
EOF
7038
 
  if { (eval echo "$as_me:7038: \"$ac_link\"") >&5
7039
 
  (eval $ac_link) 2>&5
7040
 
  ac_status=$?
7041
 
  echo "$as_me:7041: \$? = $ac_status" >&5
7042
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7043
 
    (./conftest; exit; ) 2>/dev/null
7044
 
    lt_status=$?
7045
 
    case x$lt_status in
7046
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7047
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7048
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7049
 
    esac
7050
 
  else :
7051
 
    # compilation failed
7052
 
    lt_cv_dlopen_self_static=no
7053
 
  fi
7054
 
fi
7055
 
rm -fr conftest*
7056
 
 
7057
 
fi
7058
 
echo "$as_me:7058: result: $lt_cv_dlopen_self_static" >&5
7059
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7060
 
    fi
7061
 
 
7062
 
    CPPFLAGS="$save_CPPFLAGS"
7063
 
    LDFLAGS="$save_LDFLAGS"
7064
 
    LIBS="$save_LIBS"
7065
 
    ;;
7066
 
  esac
7067
 
 
7068
 
  case $lt_cv_dlopen_self in
7069
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7070
 
  *) enable_dlopen_self=unknown ;;
7071
 
  esac
7072
 
 
7073
 
  case $lt_cv_dlopen_self_static in
7074
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7075
 
  *) enable_dlopen_self_static=unknown ;;
7076
 
  esac
7077
 
fi
7078
 
 
7079
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
7080
 
  case $archive_cmds in
7081
 
  *'~'*)
7082
 
    # FIXME: we may have to deal with multi-command sequences.
7083
 
    ;;
7084
 
  '$CC '*)
7085
 
    # Test whether the compiler implicitly links with -lc since on some
7086
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
7087
 
    # to ld, don't add -lc before -lgcc.
7088
 
    echo "$as_me:7088: checking whether -lc should be explicitly linked in" >&5
7089
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7090
 
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7091
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7092
 
else
7093
 
  $rm conftest*
7094
 
    echo 'static int dummy;' > conftest.$ac_ext
7095
 
 
7096
 
    if { (eval echo "$as_me:7096: \"$ac_compile\"") >&5
7097
 
  (eval $ac_compile) 2>&5
7098
 
  ac_status=$?
7099
 
  echo "$as_me:7099: \$? = $ac_status" >&5
7100
 
  (exit $ac_status); }; then
7101
 
      soname=conftest
7102
 
      lib=conftest
7103
 
      libobjs=conftest.$ac_objext
7104
 
      deplibs=
7105
 
      wl=$lt_cv_prog_cc_wl
7106
 
      compiler_flags=-v
7107
 
      linker_flags=-v
7108
 
      verstring=
7109
 
      output_objdir=.
7110
 
      libname=conftest
7111
 
      save_allow_undefined_flag=$allow_undefined_flag
7112
 
      allow_undefined_flag=
7113
 
      if { (eval echo "$as_me:7113: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7114
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7115
 
  ac_status=$?
7116
 
  echo "$as_me:7116: \$? = $ac_status" >&5
7117
 
  (exit $ac_status); }
7118
 
      then
7119
 
        lt_cv_archive_cmds_need_lc=no
7120
 
      else
7121
 
        lt_cv_archive_cmds_need_lc=yes
7122
 
      fi
7123
 
      allow_undefined_flag=$save_allow_undefined_flag
7124
 
    else
7125
 
      cat conftest.err 1>&5
7126
 
    fi
7127
 
fi
7128
 
 
7129
 
    echo "$as_me:7129: result: $lt_cv_archive_cmds_need_lc" >&5
7130
 
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7131
 
    ;;
7132
 
  esac
7133
 
fi
7134
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
7135
 
 
7136
 
# The second clause should only fire when bootstrapping the
 
9823
# The else clause should only fire when bootstrapping the
7137
9824
# libtool distribution, otherwise you forgot to ship ltmain.sh
7138
9825
# with your package, and you will get complaints that there are
7139
9826
# no rules to generate ltmain.sh.
7140
9827
if test -f "$ltmain"; then
7141
 
  :
7142
 
else
7143
 
  # If there is no Makefile yet, we rely on a make rule to execute
7144
 
  # `config.status --recheck' to rerun these tests and create the
7145
 
  # libtool script then.
7146
 
  test -f Makefile && make "$ltmain"
7147
 
fi
7148
 
 
7149
 
if test -f "$ltmain"; then
7150
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7151
 
  $rm -f "${ofile}T"
7152
 
 
7153
 
  echo creating $ofile
7154
 
 
 
9828
  # See if we are running on zsh, and set the options which allow our commands through
 
9829
  # without removal of \ escapes.
 
9830
  if test -n "${ZSH_VERSION+set}" ; then
 
9831
    setopt NO_GLOB_SUBST
 
9832
  fi
7155
9833
  # Now quote all the things that may contain metacharacters while being
7156
9834
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
7157
9835
  # variables and quote the copies for generation of the libtool script.
7158
 
  for var in echo old_CC old_CFLAGS SED \
7159
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
7160
 
    reload_flag reload_cmds wl \
7161
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7162
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7163
 
    library_names_spec soname_spec \
7164
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7165
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7166
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7167
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
7168
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
7169
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7170
 
    global_symbol_to_c_name_address \
7171
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
9836
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9837
    SED SHELL STRIP \
 
9838
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9839
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9840
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9841
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9842
    lt_cv_sys_global_symbol_to_c_name_address \
7172
9843
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7173
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
9844
    old_postinstall_cmds old_postuninstall_cmds \
 
9845
    compiler \
 
9846
    CC \
 
9847
    LD \
 
9848
    lt_prog_compiler_wl \
 
9849
    lt_prog_compiler_pic \
 
9850
    lt_prog_compiler_static \
 
9851
    lt_prog_compiler_no_builtin_flag \
 
9852
    export_dynamic_flag_spec \
 
9853
    thread_safe_flag_spec \
 
9854
    whole_archive_flag_spec \
 
9855
    enable_shared_with_static_runtimes \
 
9856
    old_archive_cmds \
 
9857
    old_archive_from_new_cmds \
 
9858
    predep_objects \
 
9859
    postdep_objects \
 
9860
    predeps \
 
9861
    postdeps \
 
9862
    compiler_lib_search_path \
 
9863
    archive_cmds \
 
9864
    archive_expsym_cmds \
 
9865
    postinstall_cmds \
 
9866
    postuninstall_cmds \
 
9867
    old_archive_from_expsyms_cmds \
 
9868
    allow_undefined_flag \
 
9869
    no_undefined_flag \
 
9870
    export_symbols_cmds \
 
9871
    hardcode_libdir_flag_spec \
 
9872
    hardcode_libdir_flag_spec_ld \
 
9873
    hardcode_libdir_separator \
 
9874
    hardcode_automatic \
 
9875
    module_cmds \
 
9876
    module_expsym_cmds \
 
9877
    lt_cv_prog_compiler_c_o \
 
9878
    exclude_expsyms \
 
9879
    include_expsyms; do
7174
9880
 
7175
9881
    case $var in
7176
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
9882
    old_archive_cmds | \
 
9883
    old_archive_from_new_cmds | \
 
9884
    archive_cmds | \
 
9885
    archive_expsym_cmds | \
 
9886
    module_cmds | \
 
9887
    module_expsym_cmds | \
 
9888
    old_archive_from_expsyms_cmds | \
 
9889
    export_symbols_cmds | \
 
9890
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9891
    postinstall_cmds | postuninstall_cmds | \
7177
9892
    old_postinstall_cmds | old_postuninstall_cmds | \
7178
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7179
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7180
 
    postinstall_cmds | postuninstall_cmds | \
7181
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9893
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7182
9894
      # Double-quote double-evaled strings.
7183
9895
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7184
9896
      ;;
7188
9900
    esac
7189
9901
  done
7190
9902
 
7191
 
  cat <<__EOF__ > "${ofile}T"
 
9903
  case $lt_echo in
 
9904
  *'\$0 --fallback-echo"')
 
9905
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9906
    ;;
 
9907
  esac
 
9908
 
 
9909
cfgfile="${ofile}T"
 
9910
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9911
  $rm -f "$cfgfile"
 
9912
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9913
echo "$as_me: creating $ofile" >&6;}
 
9914
 
 
9915
  cat <<__EOF__ >> "$cfgfile"
7192
9916
#! $SHELL
7193
9917
 
7194
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9918
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7195
9919
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7196
9920
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7197
9921
#
7198
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
9922
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9923
# Free Software Foundation, Inc.
 
9924
#
 
9925
# This file is part of GNU Libtool:
7199
9926
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7200
9927
#
7201
9928
# This program is free software; you can redistribute it and/or modify
7217
9944
# configuration script generated by Autoconf, you may include it under
7218
9945
# the same distribution terms that you use for the rest of that program.
7219
9946
 
7220
 
# A sed that does not truncate output.
 
9947
# A sed program that does not truncate output.
7221
9948
SED=$lt_SED
7222
9949
 
7223
9950
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7224
 
Xsed="${SED} -e s/^X//"
 
9951
Xsed="$SED -e s/^X//"
7225
9952
 
7226
9953
# The HP-UX ksh and POSIX shell print the target directory to stdout
7227
9954
# if CDPATH is set.
7228
9955
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7229
9956
 
 
9957
# The names of the tagged configurations supported by this script.
 
9958
available_tags=
 
9959
 
7230
9960
# ### BEGIN LIBTOOL CONFIG
7231
9961
 
7232
9962
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7241
9971
build_old_libs=$enable_static
7242
9972
 
7243
9973
# Whether or not to add -lc for building shared libraries.
7244
 
build_libtool_need_lc=$need_lc
 
9974
build_libtool_need_lc=$archive_cmds_need_lc
 
9975
 
 
9976
# Whether or not to disallow shared libs when runtime libs are static
 
9977
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
7245
9978
 
7246
9979
# Whether or not to optimize for fast installation.
7247
9980
fast_install=$enable_fast_install
7257
9990
AR=$lt_AR
7258
9991
AR_FLAGS=$lt_AR_FLAGS
7259
9992
 
7260
 
# The default C compiler.
7261
 
CC=$lt_CC
 
9993
# A C compiler.
 
9994
LTCC=$lt_LTCC
 
9995
 
 
9996
# A language-specific compiler.
 
9997
CC=$lt_compiler
7262
9998
 
7263
9999
# Is the compiler the GNU C compiler?
7264
10000
with_gcc=$GCC
7265
10001
 
 
10002
# An ERE matcher.
 
10003
EGREP=$lt_EGREP
 
10004
 
7266
10005
# The linker used to build libraries.
7267
10006
LD=$lt_LD
7268
10007
 
7273
10012
NM=$lt_NM
7274
10013
 
7275
10014
# A symbol stripping program
7276
 
STRIP=$STRIP
 
10015
STRIP=$lt_STRIP
7277
10016
 
7278
10017
# Used to examine libraries when file_magic_cmd begins "file"
7279
10018
MAGIC_CMD=$MAGIC_CMD
7295
10034
reload_cmds=$lt_reload_cmds
7296
10035
 
7297
10036
# How to pass a linker flag through the compiler.
7298
 
wl=$lt_wl
 
10037
wl=$lt_lt_prog_compiler_wl
7299
10038
 
7300
10039
# Object file suffix (normally "o").
7301
10040
objext="$ac_objext"
7303
10042
# Old archive suffix (normally "a").
7304
10043
libext="$libext"
7305
10044
 
 
10045
# Shared library suffix (normally ".so").
 
10046
shrext_cmds='$shrext_cmds'
 
10047
 
7306
10048
# Executable file suffix (normally "").
7307
10049
exeext="$exeext"
7308
10050
 
7309
10051
# Additional compiler flags for building library objects.
7310
 
pic_flag=$lt_pic_flag
 
10052
pic_flag=$lt_lt_prog_compiler_pic
7311
10053
pic_mode=$pic_mode
7312
10054
 
 
10055
# What is the maximum length of a command?
 
10056
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10057
 
7313
10058
# Does compiler simultaneously support -c and -o options?
7314
 
compiler_c_o=$lt_compiler_c_o
7315
 
 
7316
 
# Can we write directly to a .lo ?
7317
 
compiler_o_lo=$lt_compiler_o_lo
 
10059
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
7318
10060
 
7319
10061
# Must we lock files when doing compilation ?
7320
10062
need_locks=$lt_need_locks
7335
10077
dlopen_self_static=$enable_dlopen_self_static
7336
10078
 
7337
10079
# Compiler flag to prevent dynamic linking.
7338
 
link_static_flag=$lt_link_static_flag
 
10080
link_static_flag=$lt_lt_prog_compiler_static
7339
10081
 
7340
10082
# Compiler flag to turn off builtin functions.
7341
 
no_builtin_flag=$lt_no_builtin_flag
 
10083
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
7342
10084
 
7343
10085
# Compiler flag to allow reflexive dlopens.
7344
10086
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7380
10122
postinstall_cmds=$lt_postinstall_cmds
7381
10123
postuninstall_cmds=$lt_postuninstall_cmds
7382
10124
 
 
10125
# Commands used to build a loadable module (assumed same as above if empty)
 
10126
module_cmds=$lt_module_cmds
 
10127
module_expsym_cmds=$lt_module_expsym_cmds
 
10128
 
7383
10129
# Commands to strip libraries.
7384
10130
old_striplib=$lt_old_striplib
7385
10131
striplib=$lt_striplib
7386
10132
 
 
10133
# Dependencies to place before the objects being linked to create a
 
10134
# shared library.
 
10135
predep_objects=$lt_predep_objects
 
10136
 
 
10137
# Dependencies to place after the objects being linked to create a
 
10138
# shared library.
 
10139
postdep_objects=$lt_postdep_objects
 
10140
 
 
10141
# Dependencies to place before the objects being linked to create a
 
10142
# shared library.
 
10143
predeps=$lt_predeps
 
10144
 
 
10145
# Dependencies to place after the objects being linked to create a
 
10146
# shared library.
 
10147
postdeps=$lt_postdeps
 
10148
 
 
10149
# The library search path used internally by the compiler when linking
 
10150
# a shared library.
 
10151
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10152
 
7387
10153
# Method to check whether dependent libraries are shared objects.
7388
10154
deplibs_check_method=$lt_deplibs_check_method
7389
10155
 
7403
10169
finish_eval=$lt_finish_eval
7404
10170
 
7405
10171
# Take the output of nm and produce a listing of raw symbols and C names.
7406
 
global_symbol_pipe=$lt_global_symbol_pipe
 
10172
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
7407
10173
 
7408
10174
# Transform the output of nm in a proper C declaration
7409
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
10175
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
7410
10176
 
7411
10177
# Transform the output of nm in a C name address pair
7412
 
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
10178
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
7413
10179
 
7414
10180
# This is the shared library runtime path variable.
7415
10181
runpath_var=$runpath_var
7430
10196
# This must work even if \$libdir does not exist.
7431
10197
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7432
10198
 
 
10199
# If ld is used when linking, flag to hardcode \$libdir into
 
10200
# a binary during linking. This must work even if \$libdir does
 
10201
# not exist.
 
10202
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10203
 
7433
10204
# Whether we need a single -rpath flag with a separated argument.
7434
10205
hardcode_libdir_separator=$lt_hardcode_libdir_separator
7435
10206
 
7436
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
10207
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
7437
10208
# resulting binary.
7438
10209
hardcode_direct=$hardcode_direct
7439
10210
 
7445
10216
# the resulting binary.
7446
10217
hardcode_shlibpath_var=$hardcode_shlibpath_var
7447
10218
 
 
10219
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10220
# and all subsequent libraries and executables linked against it.
 
10221
hardcode_automatic=$hardcode_automatic
 
10222
 
7448
10223
# Variables whose values should be saved in libtool wrapper scripts and
7449
10224
# restored at relink time.
7450
10225
variables_saved_for_relink="$variables_saved_for_relink"
7480
10255
 
7481
10256
__EOF__
7482
10257
 
 
10258
 
7483
10259
  case $host_os in
7484
10260
  aix3*)
7485
 
    cat <<\EOF >> "${ofile}T"
 
10261
    cat <<\EOF >> "$cfgfile"
7486
10262
 
7487
10263
# AIX sometimes has problems with the GCC collect2 program.  For some
7488
10264
# reason, if we set the COLLECT_NAMES environment variable, the problems
7495
10271
    ;;
7496
10272
  esac
7497
10273
 
7498
 
  case $host_os in
7499
 
  cygwin* | mingw* | pw32* | os2*)
7500
 
    cat <<'EOF' >> "${ofile}T"
7501
 
      # This is a source program that is used to create dlls on Windows
7502
 
      # Don't remove nor modify the starting and closing comments
7503
 
# /* ltdll.c starts here */
7504
 
# #define WIN32_LEAN_AND_MEAN
7505
 
# #include <windows.h>
7506
 
# #undef WIN32_LEAN_AND_MEAN
7507
 
# #include <stdio.h>
7508
 
#
7509
 
# #ifndef __CYGWIN__
7510
 
# #  ifdef __CYGWIN32__
7511
 
# #    define __CYGWIN__ __CYGWIN32__
7512
 
# #  endif
7513
 
# #endif
7514
 
#
7515
 
# #ifdef __cplusplus
7516
 
# extern "C" {
7517
 
# #endif
7518
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7519
 
# #ifdef __cplusplus
7520
 
# }
7521
 
# #endif
7522
 
#
7523
 
# #ifdef __CYGWIN__
7524
 
# #include <cygwin/cygwin_dll.h>
7525
 
# DECLARE_CYGWIN_DLL( DllMain );
7526
 
# #endif
7527
 
# HINSTANCE __hDllInstance_base;
7528
 
#
7529
 
# BOOL APIENTRY
7530
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7531
 
# {
7532
 
#   __hDllInstance_base = hInst;
7533
 
#   return TRUE;
7534
 
# }
7535
 
# /* ltdll.c ends here */
7536
 
        # This is a source program that is used to create import libraries
7537
 
        # on Windows for dlls which lack them. Don't remove nor modify the
7538
 
        # starting and closing comments
7539
 
# /* impgen.c starts here */
7540
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7541
 
#
7542
 
#  This file is part of GNU libtool.
7543
 
#
7544
 
#  This program is free software; you can redistribute it and/or modify
7545
 
#  it under the terms of the GNU General Public License as published by
7546
 
#  the Free Software Foundation; either version 2 of the License, or
7547
 
#  (at your option) any later version.
7548
 
#
7549
 
#  This program is distributed in the hope that it will be useful,
7550
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7551
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7552
 
#  GNU General Public License for more details.
7553
 
#
7554
 
#  You should have received a copy of the GNU General Public License
7555
 
#  along with this program; if not, write to the Free Software
7556
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7557
 
#  */
7558
 
#
7559
 
# #include <stdio.h>            /* for printf() */
7560
 
# #include <unistd.h>           /* for open(), lseek(), read() */
7561
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7562
 
# #include <string.h>           /* for strdup() */
7563
 
#
7564
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7565
 
# #ifndef O_BINARY
7566
 
# #define O_BINARY 0
7567
 
# #endif
7568
 
#
7569
 
# static unsigned int
7570
 
# pe_get16 (fd, offset)
7571
 
#      int fd;
7572
 
#      int offset;
7573
 
# {
7574
 
#   unsigned char b[2];
7575
 
#   lseek (fd, offset, SEEK_SET);
7576
 
#   read (fd, b, 2);
7577
 
#   return b[0] + (b[1]<<8);
7578
 
# }
7579
 
#
7580
 
# static unsigned int
7581
 
# pe_get32 (fd, offset)
7582
 
#     int fd;
7583
 
#     int offset;
7584
 
# {
7585
 
#   unsigned char b[4];
7586
 
#   lseek (fd, offset, SEEK_SET);
7587
 
#   read (fd, b, 4);
7588
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7589
 
# }
7590
 
#
7591
 
# static unsigned int
7592
 
# pe_as32 (ptr)
7593
 
#      void *ptr;
7594
 
# {
7595
 
#   unsigned char *b = ptr;
7596
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7597
 
# }
7598
 
#
7599
 
# int
7600
 
# main (argc, argv)
7601
 
#     int argc;
7602
 
#     char *argv[];
7603
 
# {
7604
 
#     int dll;
7605
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7606
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7607
 
#     unsigned long name_rvas, nexp;
7608
 
#     unsigned char *expdata, *erva;
7609
 
#     char *filename, *dll_name;
7610
 
#
7611
 
#     filename = argv[1];
7612
 
#
7613
 
#     dll = open(filename, O_RDONLY|O_BINARY);
7614
 
#     if (dll < 1)
7615
 
#       return 1;
7616
 
#
7617
 
#     dll_name = filename;
7618
 
#
7619
 
#     for (i=0; filename[i]; i++)
7620
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7621
 
#           dll_name = filename + i +1;
7622
 
#
7623
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
7624
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
7625
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7626
 
#
7627
 
#     if (num_entries < 1) /* no exports */
7628
 
#       return 1;
7629
 
#
7630
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7631
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7632
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7633
 
#     secptr = (pe_header_offset + 4 + 20 +
7634
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
7635
 
#
7636
 
#     expptr = 0;
7637
 
#     for (i = 0; i < nsections; i++)
7638
 
#     {
7639
 
#       char sname[8];
7640
 
#       unsigned long secptr1 = secptr + 40 * i;
7641
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7642
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7643
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7644
 
#       lseek(dll, secptr1, SEEK_SET);
7645
 
#       read(dll, sname, 8);
7646
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7647
 
#       {
7648
 
#           expptr = fptr + (export_rva - vaddr);
7649
 
#           if (export_rva + export_size > vaddr + vsize)
7650
 
#               export_size = vsize - (export_rva - vaddr);
7651
 
#           break;
7652
 
#       }
7653
 
#     }
7654
 
#
7655
 
#     expdata = (unsigned char*)malloc(export_size);
7656
 
#     lseek (dll, expptr, SEEK_SET);
7657
 
#     read (dll, expdata, export_size);
7658
 
#     erva = expdata - export_rva;
7659
 
#
7660
 
#     nexp = pe_as32 (expdata+24);
7661
 
#     name_rvas = pe_as32 (expdata+32);
7662
 
#
7663
 
#     printf ("EXPORTS\n");
7664
 
#     for (i = 0; i<nexp; i++)
7665
 
#     {
7666
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7667
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7668
 
#     }
7669
 
#
7670
 
#     return 0;
7671
 
# }
7672
 
# /* impgen.c ends here */
7673
 
 
7674
 
EOF
7675
 
    ;;
7676
 
  esac
7677
 
 
7678
10274
  # We use sed instead of cat because bash on DJGPP gets confused if
7679
10275
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7680
10276
  # text mode, it properly converts lines to CR/LF.  This bash problem
7681
10277
  # is reportedly fixed, but why not run on old versions too?
7682
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
10278
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7683
10279
 
7684
 
  mv -f "${ofile}T" "$ofile" || \
7685
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
10280
  mv -f "$cfgfile" "$ofile" || \
 
10281
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7686
10282
  chmod +x "$ofile"
7687
 
fi
 
10283
 
 
10284
else
 
10285
  # If there is no Makefile yet, we rely on a make rule to execute
 
10286
  # `config.status --recheck' to rerun these tests and create the
 
10287
  # libtool script then.
 
10288
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10289
  if test -f "$ltmain_in"; then
 
10290
    test -f Makefile && make "$ltmain"
 
10291
  fi
 
10292
fi
 
10293
 
 
10294
 
 
10295
ac_ext=c
 
10296
ac_cpp='$CPP $CPPFLAGS'
 
10297
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10298
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10299
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10300
 
 
10301
CC="$lt_save_CC"
 
10302
 
 
10303
 
 
10304
# Check whether --with-tags or --without-tags was given.
 
10305
if test "${with_tags+set}" = set; then
 
10306
  withval="$with_tags"
 
10307
  tagnames="$withval"
 
10308
fi;
 
10309
 
 
10310
if test -f "$ltmain" && test -n "$tagnames"; then
 
10311
  if test ! -f "${ofile}"; then
 
10312
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10313
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10314
  fi
 
10315
 
 
10316
  if test -z "$LTCC"; then
 
10317
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10318
    if test -z "$LTCC"; then
 
10319
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10320
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10321
    else
 
10322
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10323
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10324
    fi
 
10325
  fi
 
10326
 
 
10327
  # Extract list of available tagged configurations in $ofile.
 
10328
  # Note that this assumes the entire list is on one line.
 
10329
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10330
 
 
10331
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10332
  for tagname in $tagnames; do
 
10333
    IFS="$lt_save_ifs"
 
10334
    # Check whether tagname contains only valid characters
 
10335
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10336
    "") ;;
 
10337
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10338
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10339
   { (exit 1); exit 1; }; }
 
10340
        ;;
 
10341
    esac
 
10342
 
 
10343
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10344
    then
 
10345
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10346
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10347
   { (exit 1); exit 1; }; }
 
10348
    fi
 
10349
 
 
10350
    # Update the list of available tags.
 
10351
    if test -n "$tagname"; then
 
10352
      echo appending configuration tag \"$tagname\" to $ofile
 
10353
 
 
10354
      case $tagname in
 
10355
      CXX)
 
10356
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
10357
          ac_ext=cc
 
10358
ac_cpp='$CXXCPP $CPPFLAGS'
 
10359
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10360
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10361
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10362
 
 
10363
 
 
10364
 
 
10365
 
 
10366
archive_cmds_need_lc_CXX=no
 
10367
allow_undefined_flag_CXX=
 
10368
always_export_symbols_CXX=no
 
10369
archive_expsym_cmds_CXX=
 
10370
export_dynamic_flag_spec_CXX=
 
10371
hardcode_direct_CXX=no
 
10372
hardcode_libdir_flag_spec_CXX=
 
10373
hardcode_libdir_flag_spec_ld_CXX=
 
10374
hardcode_libdir_separator_CXX=
 
10375
hardcode_minus_L_CXX=no
 
10376
hardcode_automatic_CXX=no
 
10377
module_cmds_CXX=
 
10378
module_expsym_cmds_CXX=
 
10379
link_all_deplibs_CXX=unknown
 
10380
old_archive_cmds_CXX=$old_archive_cmds
 
10381
no_undefined_flag_CXX=
 
10382
whole_archive_flag_spec_CXX=
 
10383
enable_shared_with_static_runtimes_CXX=no
 
10384
 
 
10385
# Dependencies to place before and after the object being linked:
 
10386
predep_objects_CXX=
 
10387
postdep_objects_CXX=
 
10388
predeps_CXX=
 
10389
postdeps_CXX=
 
10390
compiler_lib_search_path_CXX=
 
10391
 
 
10392
# Source file extension for C++ test sources.
 
10393
ac_ext=cc
 
10394
 
 
10395
# Object file extension for compiled C++ test sources.
 
10396
objext=o
 
10397
objext_CXX=$objext
 
10398
 
 
10399
# Code to be used in simple compile tests
 
10400
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10401
 
 
10402
# Code to be used in simple link tests
 
10403
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10404
 
 
10405
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10406
 
 
10407
# If no C compiler was specified, use CC.
 
10408
LTCC=${LTCC-"$CC"}
 
10409
 
 
10410
# Allow CC to be a program name with arguments.
 
10411
compiler=$CC
 
10412
 
 
10413
 
 
10414
# Allow CC to be a program name with arguments.
 
10415
lt_save_CC=$CC
 
10416
lt_save_LD=$LD
 
10417
lt_save_GCC=$GCC
 
10418
GCC=$GXX
 
10419
lt_save_with_gnu_ld=$with_gnu_ld
 
10420
lt_save_path_LD=$lt_cv_path_LD
 
10421
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10422
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10423
else
 
10424
  unset lt_cv_prog_gnu_ld
 
10425
fi
 
10426
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10427
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10428
else
 
10429
  unset lt_cv_path_LD
 
10430
fi
 
10431
test -z "${LDCXX+set}" || LD=$LDCXX
 
10432
CC=${CXX-"c++"}
 
10433
compiler=$CC
 
10434
compiler_CXX=$CC
 
10435
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10436
 
 
10437
# We don't want -fno-exception wen compiling C++ code, so set the
 
10438
# no_builtin_flag separately
 
10439
if test "$GXX" = yes; then
 
10440
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10441
else
 
10442
  lt_prog_compiler_no_builtin_flag_CXX=
 
10443
fi
 
10444
 
 
10445
if test "$GXX" = yes; then
 
10446
  # Set up default GNU C++ configuration
 
10447
 
 
10448
 
 
10449
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10450
if test "${with_gnu_ld+set}" = set; then
 
10451
  withval="$with_gnu_ld"
 
10452
  test "$withval" = no || with_gnu_ld=yes
 
10453
else
 
10454
  with_gnu_ld=no
 
10455
fi;
 
10456
ac_prog=ld
 
10457
if test "$GCC" = yes; then
 
10458
  # Check if gcc -print-prog-name=ld gives a path.
 
10459
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10460
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10461
  case $host in
 
10462
  *-*-mingw*)
 
10463
    # gcc leaves a trailing carriage return which upsets mingw
 
10464
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10465
  *)
 
10466
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10467
  esac
 
10468
  case $ac_prog in
 
10469
    # Accept absolute paths.
 
10470
    [\\/]* | ?:[\\/]*)
 
10471
      re_direlt='/[^/][^/]*/\.\./'
 
10472
      # Canonicalize the pathname of ld
 
10473
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10474
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10475
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10476
      done
 
10477
      test -z "$LD" && LD="$ac_prog"
 
10478
      ;;
 
10479
  "")
 
10480
    # If it fails, then pretend we aren't using GCC.
 
10481
    ac_prog=ld
 
10482
    ;;
 
10483
  *)
 
10484
    # If it is relative, then search for the first ld in PATH.
 
10485
    with_gnu_ld=unknown
 
10486
    ;;
 
10487
  esac
 
10488
elif test "$with_gnu_ld" = yes; then
 
10489
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10490
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10491
else
 
10492
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10493
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10494
fi
 
10495
if test "${lt_cv_path_LD+set}" = set; then
 
10496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10497
else
 
10498
  if test -z "$LD"; then
 
10499
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10500
  for ac_dir in $PATH; do
 
10501
    IFS="$lt_save_ifs"
 
10502
    test -z "$ac_dir" && ac_dir=.
 
10503
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10504
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10505
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10506
      # but apparently some GNU ld's only accept -v.
 
10507
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10508
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10509
      *GNU* | *'with BFD'*)
 
10510
        test "$with_gnu_ld" != no && break
 
10511
        ;;
 
10512
      *)
 
10513
        test "$with_gnu_ld" != yes && break
 
10514
        ;;
 
10515
      esac
 
10516
    fi
 
10517
  done
 
10518
  IFS="$lt_save_ifs"
 
10519
else
 
10520
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10521
fi
 
10522
fi
 
10523
 
 
10524
LD="$lt_cv_path_LD"
 
10525
if test -n "$LD"; then
 
10526
  echo "$as_me:$LINENO: result: $LD" >&5
 
10527
echo "${ECHO_T}$LD" >&6
 
10528
else
 
10529
  echo "$as_me:$LINENO: result: no" >&5
 
10530
echo "${ECHO_T}no" >&6
 
10531
fi
 
10532
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10533
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10534
   { (exit 1); exit 1; }; }
 
10535
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10536
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10537
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10539
else
 
10540
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10541
case `$LD -v 2>&1 </dev/null` in
 
10542
*GNU* | *'with BFD'*)
 
10543
  lt_cv_prog_gnu_ld=yes
 
10544
  ;;
 
10545
*)
 
10546
  lt_cv_prog_gnu_ld=no
 
10547
  ;;
 
10548
esac
 
10549
fi
 
10550
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10551
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10552
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10553
 
 
10554
 
 
10555
 
 
10556
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10557
  # archiving commands below assume that GNU ld is being used.
 
10558
  if test "$with_gnu_ld" = yes; then
 
10559
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10560
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10561
 
 
10562
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10563
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10564
 
 
10565
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10566
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10567
    #     investigate it a little bit more. (MM)
 
10568
    wlarc='${wl}'
 
10569
 
 
10570
    # ancient GNU ld didn't support --whole-archive et. al.
 
10571
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10572
        grep 'no-whole-archive' > /dev/null; then
 
10573
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10574
    else
 
10575
      whole_archive_flag_spec_CXX=
 
10576
    fi
 
10577
  else
 
10578
    with_gnu_ld=no
 
10579
    wlarc=
 
10580
 
 
10581
    # A generic and very simple default shared library creation
 
10582
    # command for GNU C++ for the case where it uses the native
 
10583
    # linker, instead of GNU ld.  If possible, this setting should
 
10584
    # overridden to take advantage of the native linker features on
 
10585
    # the platform it is being used on.
 
10586
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10587
  fi
 
10588
 
 
10589
  # Commands to make compiler produce verbose output that lists
 
10590
  # what "hidden" libraries, object files and flags are used when
 
10591
  # linking a shared library.
 
10592
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10593
 
 
10594
else
 
10595
  GXX=no
 
10596
  with_gnu_ld=no
 
10597
  wlarc=
 
10598
fi
 
10599
 
 
10600
# PORTME: fill in a description of your system's C++ link characteristics
 
10601
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10602
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10603
ld_shlibs_CXX=yes
 
10604
case $host_os in
 
10605
  aix3*)
 
10606
    # FIXME: insert proper C++ library support
 
10607
    ld_shlibs_CXX=no
 
10608
    ;;
 
10609
  aix4* | aix5*)
 
10610
    if test "$host_cpu" = ia64; then
 
10611
      # On IA64, the linker does run time linking by default, so we don't
 
10612
      # have to do anything special.
 
10613
      aix_use_runtimelinking=no
 
10614
      exp_sym_flag='-Bexport'
 
10615
      no_entry_flag=""
 
10616
    else
 
10617
      aix_use_runtimelinking=no
 
10618
 
 
10619
      # Test if we are trying to use run time linking or normal
 
10620
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10621
      # need to do runtime linking.
 
10622
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10623
        for ld_flag in $LDFLAGS; do
 
10624
          case $ld_flag in
 
10625
          *-brtl*)
 
10626
            aix_use_runtimelinking=yes
 
10627
            break
 
10628
            ;;
 
10629
          esac
 
10630
        done
 
10631
      esac
 
10632
 
 
10633
      exp_sym_flag='-bexport'
 
10634
      no_entry_flag='-bnoentry'
 
10635
    fi
 
10636
 
 
10637
    # When large executables or shared objects are built, AIX ld can
 
10638
    # have problems creating the table of contents.  If linking a library
 
10639
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10640
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10641
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10642
 
 
10643
    archive_cmds_CXX=''
 
10644
    hardcode_direct_CXX=yes
 
10645
    hardcode_libdir_separator_CXX=':'
 
10646
    link_all_deplibs_CXX=yes
 
10647
 
 
10648
    if test "$GXX" = yes; then
 
10649
      case $host_os in aix4.012|aix4.012.*)
 
10650
      # We only want to do this on AIX 4.2 and lower, the check
 
10651
      # below for broken collect2 doesn't work under 4.3+
 
10652
        collect2name=`${CC} -print-prog-name=collect2`
 
10653
        if test -f "$collect2name" && \
 
10654
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10655
        then
 
10656
          # We have reworked collect2
 
10657
          hardcode_direct_CXX=yes
 
10658
        else
 
10659
          # We have old collect2
 
10660
          hardcode_direct_CXX=unsupported
 
10661
          # It fails to find uninstalled libraries when the uninstalled
 
10662
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10663
          # to unsupported forces relinking
 
10664
          hardcode_minus_L_CXX=yes
 
10665
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10666
          hardcode_libdir_separator_CXX=
 
10667
        fi
 
10668
      esac
 
10669
      shared_flag='-shared'
 
10670
    else
 
10671
      # not using gcc
 
10672
      if test "$host_cpu" = ia64; then
 
10673
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10674
        # chokes on -Wl,-G. The following line is correct:
 
10675
        shared_flag='-G'
 
10676
      else
 
10677
        if test "$aix_use_runtimelinking" = yes; then
 
10678
          shared_flag='${wl}-G'
 
10679
        else
 
10680
          shared_flag='${wl}-bM:SRE'
 
10681
        fi
 
10682
      fi
 
10683
    fi
 
10684
 
 
10685
    # It seems that -bexpall does not export symbols beginning with
 
10686
    # underscore (_), so it is better to generate a list of symbols to export.
 
10687
    always_export_symbols_CXX=yes
 
10688
    if test "$aix_use_runtimelinking" = yes; then
 
10689
      # Warning - without using the other runtime loading flags (-brtl),
 
10690
      # -berok will link without error, but may produce a broken library.
 
10691
      allow_undefined_flag_CXX='-berok'
 
10692
      # Determine the default libpath from the value encoded in an empty executable.
 
10693
      cat >conftest.$ac_ext <<_ACEOF
 
10694
/* confdefs.h.  */
 
10695
_ACEOF
 
10696
cat confdefs.h >>conftest.$ac_ext
 
10697
cat >>conftest.$ac_ext <<_ACEOF
 
10698
/* end confdefs.h.  */
 
10699
 
 
10700
int
 
10701
main ()
 
10702
{
 
10703
 
 
10704
  ;
 
10705
  return 0;
 
10706
}
 
10707
_ACEOF
 
10708
rm -f conftest.$ac_objext conftest$ac_exeext
 
10709
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10710
  (eval $ac_link) 2>conftest.er1
 
10711
  ac_status=$?
 
10712
  grep -v '^ *+' conftest.er1 >conftest.err
 
10713
  rm -f conftest.er1
 
10714
  cat conftest.err >&5
 
10715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10716
  (exit $ac_status); } &&
 
10717
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10718
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10719
  (eval $ac_try) 2>&5
 
10720
  ac_status=$?
 
10721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10722
  (exit $ac_status); }; } &&
 
10723
         { ac_try='test -s conftest$ac_exeext'
 
10724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10725
  (eval $ac_try) 2>&5
 
10726
  ac_status=$?
 
10727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10728
  (exit $ac_status); }; }; then
 
10729
 
 
10730
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10731
}'`
 
10732
# Check for a 64-bit object if we didn't find anything.
 
10733
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10734
}'`; fi
 
10735
else
 
10736
  echo "$as_me: failed program was:" >&5
 
10737
sed 's/^/| /' conftest.$ac_ext >&5
 
10738
 
 
10739
fi
 
10740
rm -f conftest.err conftest.$ac_objext \
 
10741
      conftest$ac_exeext conftest.$ac_ext
 
10742
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10743
 
 
10744
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10745
 
 
10746
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10747
     else
 
10748
      if test "$host_cpu" = ia64; then
 
10749
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10750
        allow_undefined_flag_CXX="-z nodefs"
 
10751
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
10752
      else
 
10753
        # Determine the default libpath from the value encoded in an empty executable.
 
10754
        cat >conftest.$ac_ext <<_ACEOF
 
10755
/* confdefs.h.  */
 
10756
_ACEOF
 
10757
cat confdefs.h >>conftest.$ac_ext
 
10758
cat >>conftest.$ac_ext <<_ACEOF
 
10759
/* end confdefs.h.  */
 
10760
 
 
10761
int
 
10762
main ()
 
10763
{
 
10764
 
 
10765
  ;
 
10766
  return 0;
 
10767
}
 
10768
_ACEOF
 
10769
rm -f conftest.$ac_objext conftest$ac_exeext
 
10770
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10771
  (eval $ac_link) 2>conftest.er1
 
10772
  ac_status=$?
 
10773
  grep -v '^ *+' conftest.er1 >conftest.err
 
10774
  rm -f conftest.er1
 
10775
  cat conftest.err >&5
 
10776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10777
  (exit $ac_status); } &&
 
10778
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10780
  (eval $ac_try) 2>&5
 
10781
  ac_status=$?
 
10782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10783
  (exit $ac_status); }; } &&
 
10784
         { ac_try='test -s conftest$ac_exeext'
 
10785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10786
  (eval $ac_try) 2>&5
 
10787
  ac_status=$?
 
10788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10789
  (exit $ac_status); }; }; then
 
10790
 
 
10791
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10792
}'`
 
10793
# Check for a 64-bit object if we didn't find anything.
 
10794
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10795
}'`; fi
 
10796
else
 
10797
  echo "$as_me: failed program was:" >&5
 
10798
sed 's/^/| /' conftest.$ac_ext >&5
 
10799
 
 
10800
fi
 
10801
rm -f conftest.err conftest.$ac_objext \
 
10802
      conftest$ac_exeext conftest.$ac_ext
 
10803
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10804
 
 
10805
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10806
        # Warning - without using the other run time loading flags,
 
10807
        # -berok will link without error, but may produce a broken library.
 
10808
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10809
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10810
        # -bexpall does not export symbols beginning with underscore (_)
 
10811
        always_export_symbols_CXX=yes
 
10812
        # Exported symbols can be pulled into shared objects from archives
 
10813
        whole_archive_flag_spec_CXX=' '
 
10814
        archive_cmds_need_lc_CXX=yes
 
10815
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10816
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10817
      fi
 
10818
    fi
 
10819
    ;;
 
10820
  chorus*)
 
10821
    case $cc_basename in
 
10822
      *)
 
10823
        # FIXME: insert proper C++ library support
 
10824
        ld_shlibs_CXX=no
 
10825
        ;;
 
10826
    esac
 
10827
    ;;
 
10828
 
 
10829
  cygwin* | mingw* | pw32*)
 
10830
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10831
    # as there is no search path for DLLs.
 
10832
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10833
    allow_undefined_flag_CXX=unsupported
 
10834
    always_export_symbols_CXX=no
 
10835
    enable_shared_with_static_runtimes_CXX=yes
 
10836
 
 
10837
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10838
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10839
      # If the export-symbols file already is a .def file (1st line
 
10840
      # is EXPORTS), use it as is; otherwise, prepend...
 
10841
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10842
        cp $export_symbols $output_objdir/$soname.def;
 
10843
      else
 
10844
        echo EXPORTS > $output_objdir/$soname.def;
 
10845
        cat $export_symbols >> $output_objdir/$soname.def;
 
10846
      fi~
 
10847
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10848
    else
 
10849
      ld_shlibs_CXX=no
 
10850
    fi
 
10851
  ;;
 
10852
 
 
10853
  darwin* | rhapsody*)
 
10854
  if test "$GXX" = yes; then
 
10855
    archive_cmds_need_lc_CXX=no
 
10856
    case "$host_os" in
 
10857
    rhapsody* | darwin1.[012])
 
10858
      allow_undefined_flag_CXX='-undefined suppress'
 
10859
      ;;
 
10860
    *) # Darwin 1.3 on
 
10861
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10862
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10863
      else
 
10864
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10865
          10.[012])
 
10866
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10867
            ;;
 
10868
          10.*)
 
10869
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
10870
            ;;
 
10871
        esac
 
10872
      fi
 
10873
      ;;
 
10874
    esac
 
10875
    lt_int_apple_cc_single_mod=no
 
10876
    output_verbose_link_cmd='echo'
 
10877
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
10878
      lt_int_apple_cc_single_mod=yes
 
10879
    fi
 
10880
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10881
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10882
    else
 
10883
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10884
    fi
 
10885
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10886
 
 
10887
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10888
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10889
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10890
    else
 
10891
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10892
    fi
 
10893
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10894
    hardcode_direct_CXX=no
 
10895
    hardcode_automatic_CXX=yes
 
10896
    hardcode_shlibpath_var_CXX=unsupported
 
10897
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
10898
    link_all_deplibs_CXX=yes
 
10899
  else
 
10900
    ld_shlibs_CXX=no
 
10901
  fi
 
10902
    ;;
 
10903
 
 
10904
  dgux*)
 
10905
    case $cc_basename in
 
10906
      ec++)
 
10907
        # FIXME: insert proper C++ library support
 
10908
        ld_shlibs_CXX=no
 
10909
        ;;
 
10910
      ghcx)
 
10911
        # Green Hills C++ Compiler
 
10912
        # FIXME: insert proper C++ library support
 
10913
        ld_shlibs_CXX=no
 
10914
        ;;
 
10915
      *)
 
10916
        # FIXME: insert proper C++ library support
 
10917
        ld_shlibs_CXX=no
 
10918
        ;;
 
10919
    esac
 
10920
    ;;
 
10921
  freebsd12*)
 
10922
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10923
    ld_shlibs_CXX=no
 
10924
    ;;
 
10925
  freebsd-elf*)
 
10926
    archive_cmds_need_lc_CXX=no
 
10927
    ;;
 
10928
  freebsd* | kfreebsd*-gnu)
 
10929
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10930
    # conventions
 
10931
    ld_shlibs_CXX=yes
 
10932
    ;;
 
10933
  gnu*)
 
10934
    ;;
 
10935
  hpux9*)
 
10936
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10937
    hardcode_libdir_separator_CXX=:
 
10938
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10939
    hardcode_direct_CXX=yes
 
10940
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10941
                                # but as the default
 
10942
                                # location of the library.
 
10943
 
 
10944
    case $cc_basename in
 
10945
    CC)
 
10946
      # FIXME: insert proper C++ library support
 
10947
      ld_shlibs_CXX=no
 
10948
      ;;
 
10949
    aCC)
 
10950
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10951
      # Commands to make compiler produce verbose output that lists
 
10952
      # what "hidden" libraries, object files and flags are used when
 
10953
      # linking a shared library.
 
10954
      #
 
10955
      # There doesn't appear to be a way to prevent this compiler from
 
10956
      # explicitly linking system object files so we need to strip them
 
10957
      # from the output so that they don't get included in the library
 
10958
      # dependencies.
 
10959
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10960
      ;;
 
10961
    *)
 
10962
      if test "$GXX" = yes; then
 
10963
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
10964
      else
 
10965
        # FIXME: insert proper C++ library support
 
10966
        ld_shlibs_CXX=no
 
10967
      fi
 
10968
      ;;
 
10969
    esac
 
10970
    ;;
 
10971
  hpux10*|hpux11*)
 
10972
    if test $with_gnu_ld = no; then
 
10973
      case "$host_cpu" in
 
10974
      hppa*64*)
 
10975
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10976
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10977
        hardcode_libdir_separator_CXX=:
 
10978
        ;;
 
10979
      ia64*)
 
10980
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10981
        ;;
 
10982
      *)
 
10983
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10984
        hardcode_libdir_separator_CXX=:
 
10985
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10986
        ;;
 
10987
      esac
 
10988
    fi
 
10989
    case "$host_cpu" in
 
10990
    hppa*64*)
 
10991
      hardcode_direct_CXX=no
 
10992
      hardcode_shlibpath_var_CXX=no
 
10993
      ;;
 
10994
    ia64*)
 
10995
      hardcode_direct_CXX=no
 
10996
      hardcode_shlibpath_var_CXX=no
 
10997
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10998
                                              # but as the default
 
10999
                                              # location of the library.
 
11000
      ;;
 
11001
    *)
 
11002
      hardcode_direct_CXX=yes
 
11003
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11004
                                              # but as the default
 
11005
                                              # location of the library.
 
11006
      ;;
 
11007
    esac
 
11008
 
 
11009
    case $cc_basename in
 
11010
      CC)
 
11011
        # FIXME: insert proper C++ library support
 
11012
        ld_shlibs_CXX=no
 
11013
        ;;
 
11014
      aCC)
 
11015
        case "$host_cpu" in
 
11016
        hppa*64*|ia64*)
 
11017
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11018
          ;;
 
11019
        *)
 
11020
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11021
          ;;
 
11022
        esac
 
11023
        # Commands to make compiler produce verbose output that lists
 
11024
        # what "hidden" libraries, object files and flags are used when
 
11025
        # linking a shared library.
 
11026
        #
 
11027
        # There doesn't appear to be a way to prevent this compiler from
 
11028
        # explicitly linking system object files so we need to strip them
 
11029
        # from the output so that they don't get included in the library
 
11030
        # dependencies.
 
11031
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11032
        ;;
 
11033
      *)
 
11034
        if test "$GXX" = yes; then
 
11035
          if test $with_gnu_ld = no; then
 
11036
            case "$host_cpu" in
 
11037
            ia64*|hppa*64*)
 
11038
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11039
              ;;
 
11040
            *)
 
11041
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11042
              ;;
 
11043
            esac
 
11044
          fi
 
11045
        else
 
11046
          # FIXME: insert proper C++ library support
 
11047
          ld_shlibs_CXX=no
 
11048
        fi
 
11049
        ;;
 
11050
    esac
 
11051
    ;;
 
11052
  irix5* | irix6*)
 
11053
    case $cc_basename in
 
11054
      CC)
 
11055
        # SGI C++
 
11056
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11057
 
 
11058
        # Archives containing C++ object files must be created using
 
11059
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11060
        # necessary to make sure instantiated templates are included
 
11061
        # in the archive.
 
11062
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11063
        ;;
 
11064
      *)
 
11065
        if test "$GXX" = yes; then
 
11066
          if test "$with_gnu_ld" = no; then
 
11067
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11068
          else
 
11069
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
11070
          fi
 
11071
        fi
 
11072
        link_all_deplibs_CXX=yes
 
11073
        ;;
 
11074
    esac
 
11075
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11076
    hardcode_libdir_separator_CXX=:
 
11077
    ;;
 
11078
  linux*)
 
11079
    case $cc_basename in
 
11080
      KCC)
 
11081
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11082
 
 
11083
        # KCC will only create a shared library if the output file
 
11084
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11085
        # to its proper name (with version) after linking.
 
11086
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11087
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
11088
        # Commands to make compiler produce verbose output that lists
 
11089
        # what "hidden" libraries, object files and flags are used when
 
11090
        # linking a shared library.
 
11091
        #
 
11092
        # There doesn't appear to be a way to prevent this compiler from
 
11093
        # explicitly linking system object files so we need to strip them
 
11094
        # from the output so that they don't get included in the library
 
11095
        # dependencies.
 
11096
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11097
 
 
11098
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11099
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11100
 
 
11101
        # Archives containing C++ object files must be created using
 
11102
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11103
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11104
        ;;
 
11105
      icpc)
 
11106
        # Intel C++
 
11107
        with_gnu_ld=yes
 
11108
        archive_cmds_need_lc_CXX=no
 
11109
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11110
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11111
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11112
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11113
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11114
        ;;
 
11115
      cxx)
 
11116
        # Compaq C++
 
11117
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11118
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
11119
 
 
11120
        runpath_var=LD_RUN_PATH
 
11121
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11122
        hardcode_libdir_separator_CXX=:
 
11123
 
 
11124
        # Commands to make compiler produce verbose output that lists
 
11125
        # what "hidden" libraries, object files and flags are used when
 
11126
        # linking a shared library.
 
11127
        #
 
11128
        # There doesn't appear to be a way to prevent this compiler from
 
11129
        # explicitly linking system object files so we need to strip them
 
11130
        # from the output so that they don't get included in the library
 
11131
        # dependencies.
 
11132
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11133
        ;;
 
11134
    esac
 
11135
    ;;
 
11136
  lynxos*)
 
11137
    # FIXME: insert proper C++ library support
 
11138
    ld_shlibs_CXX=no
 
11139
    ;;
 
11140
  m88k*)
 
11141
    # FIXME: insert proper C++ library support
 
11142
    ld_shlibs_CXX=no
 
11143
    ;;
 
11144
  mvs*)
 
11145
    case $cc_basename in
 
11146
      cxx)
 
11147
        # FIXME: insert proper C++ library support
 
11148
        ld_shlibs_CXX=no
 
11149
        ;;
 
11150
      *)
 
11151
        # FIXME: insert proper C++ library support
 
11152
        ld_shlibs_CXX=no
 
11153
        ;;
 
11154
    esac
 
11155
    ;;
 
11156
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
11157
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11158
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11159
      wlarc=
 
11160
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11161
      hardcode_direct_CXX=yes
 
11162
      hardcode_shlibpath_var_CXX=no
 
11163
    fi
 
11164
    # Workaround some broken pre-1.5 toolchains
 
11165
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11166
    ;;
 
11167
  osf3*)
 
11168
    case $cc_basename in
 
11169
      KCC)
 
11170
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11171
 
 
11172
        # KCC will only create a shared library if the output file
 
11173
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11174
        # to its proper name (with version) after linking.
 
11175
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11176
 
 
11177
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11178
        hardcode_libdir_separator_CXX=:
 
11179
 
 
11180
        # Archives containing C++ object files must be created using
 
11181
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11182
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11183
 
 
11184
        ;;
 
11185
      RCC)
 
11186
        # Rational C++ 2.4.1
 
11187
        # FIXME: insert proper C++ library support
 
11188
        ld_shlibs_CXX=no
 
11189
        ;;
 
11190
      cxx)
 
11191
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11192
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11193
 
 
11194
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11195
        hardcode_libdir_separator_CXX=:
 
11196
 
 
11197
        # Commands to make compiler produce verbose output that lists
 
11198
        # what "hidden" libraries, object files and flags are used when
 
11199
        # linking a shared library.
 
11200
        #
 
11201
        # There doesn't appear to be a way to prevent this compiler from
 
11202
        # explicitly linking system object files so we need to strip them
 
11203
        # from the output so that they don't get included in the library
 
11204
        # dependencies.
 
11205
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11206
        ;;
 
11207
      *)
 
11208
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11209
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11210
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11211
 
 
11212
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11213
          hardcode_libdir_separator_CXX=:
 
11214
 
 
11215
          # Commands to make compiler produce verbose output that lists
 
11216
          # what "hidden" libraries, object files and flags are used when
 
11217
          # linking a shared library.
 
11218
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11219
 
 
11220
        else
 
11221
          # FIXME: insert proper C++ library support
 
11222
          ld_shlibs_CXX=no
 
11223
        fi
 
11224
        ;;
 
11225
    esac
 
11226
    ;;
 
11227
  osf4* | osf5*)
 
11228
    case $cc_basename in
 
11229
      KCC)
 
11230
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11231
 
 
11232
        # KCC will only create a shared library if the output file
 
11233
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11234
        # to its proper name (with version) after linking.
 
11235
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11236
 
 
11237
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11238
        hardcode_libdir_separator_CXX=:
 
11239
 
 
11240
        # Archives containing C++ object files must be created using
 
11241
        # the KAI C++ compiler.
 
11242
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11243
        ;;
 
11244
      RCC)
 
11245
        # Rational C++ 2.4.1
 
11246
        # FIXME: insert proper C++ library support
 
11247
        ld_shlibs_CXX=no
 
11248
        ;;
 
11249
      cxx)
 
11250
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11251
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
11252
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11253
          echo "-hidden">> $lib.exp~
 
11254
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
11255
          $rm $lib.exp'
 
11256
 
 
11257
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11258
        hardcode_libdir_separator_CXX=:
 
11259
 
 
11260
        # Commands to make compiler produce verbose output that lists
 
11261
        # what "hidden" libraries, object files and flags are used when
 
11262
        # linking a shared library.
 
11263
        #
 
11264
        # There doesn't appear to be a way to prevent this compiler from
 
11265
        # explicitly linking system object files so we need to strip them
 
11266
        # from the output so that they don't get included in the library
 
11267
        # dependencies.
 
11268
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11269
        ;;
 
11270
      *)
 
11271
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11272
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11273
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
11274
 
 
11275
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11276
          hardcode_libdir_separator_CXX=:
 
11277
 
 
11278
          # Commands to make compiler produce verbose output that lists
 
11279
          # what "hidden" libraries, object files and flags are used when
 
11280
          # linking a shared library.
 
11281
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11282
 
 
11283
        else
 
11284
          # FIXME: insert proper C++ library support
 
11285
          ld_shlibs_CXX=no
 
11286
        fi
 
11287
        ;;
 
11288
    esac
 
11289
    ;;
 
11290
  psos*)
 
11291
    # FIXME: insert proper C++ library support
 
11292
    ld_shlibs_CXX=no
 
11293
    ;;
 
11294
  sco*)
 
11295
    archive_cmds_need_lc_CXX=no
 
11296
    case $cc_basename in
 
11297
      CC)
 
11298
        # FIXME: insert proper C++ library support
 
11299
        ld_shlibs_CXX=no
 
11300
        ;;
 
11301
      *)
 
11302
        # FIXME: insert proper C++ library support
 
11303
        ld_shlibs_CXX=no
 
11304
        ;;
 
11305
    esac
 
11306
    ;;
 
11307
  sunos4*)
 
11308
    case $cc_basename in
 
11309
      CC)
 
11310
        # Sun C++ 4.x
 
11311
        # FIXME: insert proper C++ library support
 
11312
        ld_shlibs_CXX=no
 
11313
        ;;
 
11314
      lcc)
 
11315
        # Lucid
 
11316
        # FIXME: insert proper C++ library support
 
11317
        ld_shlibs_CXX=no
 
11318
        ;;
 
11319
      *)
 
11320
        # FIXME: insert proper C++ library support
 
11321
        ld_shlibs_CXX=no
 
11322
        ;;
 
11323
    esac
 
11324
    ;;
 
11325
  solaris*)
 
11326
    case $cc_basename in
 
11327
      CC)
 
11328
        # Sun C++ 4.2, 5.x and Centerline C++
 
11329
        no_undefined_flag_CXX=' -zdefs'
 
11330
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11331
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11332
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11333
 
 
11334
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11335
        hardcode_shlibpath_var_CXX=no
 
11336
        case $host_os in
 
11337
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11338
          *)
 
11339
            # The C++ compiler is used as linker so we must use $wl
 
11340
            # flag to pass the commands to the underlying system
 
11341
            # linker.
 
11342
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11343
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11344
            ;;
 
11345
        esac
 
11346
        link_all_deplibs_CXX=yes
 
11347
 
 
11348
        # Commands to make compiler produce verbose output that lists
 
11349
        # what "hidden" libraries, object files and flags are used when
 
11350
        # linking a shared library.
 
11351
        #
 
11352
        # There doesn't appear to be a way to prevent this compiler from
 
11353
        # explicitly linking system object files so we need to strip them
 
11354
        # from the output so that they don't get included in the library
 
11355
        # dependencies.
 
11356
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11357
 
 
11358
        # Archives containing C++ object files must be created using
 
11359
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11360
        # necessary to make sure instantiated templates are included
 
11361
        # in the archive.
 
11362
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11363
        ;;
 
11364
      gcx)
 
11365
        # Green Hills C++ Compiler
 
11366
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11367
 
 
11368
        # The C++ compiler must be used to create the archive.
 
11369
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11370
        ;;
 
11371
      *)
 
11372
        # GNU C++ compiler with Solaris linker
 
11373
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11374
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11375
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11376
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11377
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11378
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11379
 
 
11380
            # Commands to make compiler produce verbose output that lists
 
11381
            # what "hidden" libraries, object files and flags are used when
 
11382
            # linking a shared library.
 
11383
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11384
          else
 
11385
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11386
            # platform.
 
11387
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11388
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11389
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11390
 
 
11391
            # Commands to make compiler produce verbose output that lists
 
11392
            # what "hidden" libraries, object files and flags are used when
 
11393
            # linking a shared library.
 
11394
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11395
          fi
 
11396
 
 
11397
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11398
        fi
 
11399
        ;;
 
11400
    esac
 
11401
    ;;
 
11402
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
11403
    archive_cmds_need_lc_CXX=no
 
11404
    ;;
 
11405
  tandem*)
 
11406
    case $cc_basename in
 
11407
      NCC)
 
11408
        # NonStop-UX NCC 3.20
 
11409
        # FIXME: insert proper C++ library support
 
11410
        ld_shlibs_CXX=no
 
11411
        ;;
 
11412
      *)
 
11413
        # FIXME: insert proper C++ library support
 
11414
        ld_shlibs_CXX=no
 
11415
        ;;
 
11416
    esac
 
11417
    ;;
 
11418
  vxworks*)
 
11419
    # FIXME: insert proper C++ library support
 
11420
    ld_shlibs_CXX=no
 
11421
    ;;
 
11422
  *)
 
11423
    # FIXME: insert proper C++ library support
 
11424
    ld_shlibs_CXX=no
 
11425
    ;;
 
11426
esac
 
11427
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11428
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11429
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11430
 
 
11431
GCC_CXX="$GXX"
 
11432
LD_CXX="$LD"
 
11433
 
 
11434
 
 
11435
cat > conftest.$ac_ext <<EOF
 
11436
class Foo
 
11437
{
 
11438
public:
 
11439
  Foo (void) { a = 0; }
 
11440
private:
 
11441
  int a;
 
11442
};
 
11443
EOF
 
11444
 
 
11445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11446
  (eval $ac_compile) 2>&5
 
11447
  ac_status=$?
 
11448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11449
  (exit $ac_status); }; then
 
11450
  # Parse the compiler output and extract the necessary
 
11451
  # objects, libraries and library flags.
 
11452
 
 
11453
  # Sentinel used to keep track of whether or not we are before
 
11454
  # the conftest object file.
 
11455
  pre_test_object_deps_done=no
 
11456
 
 
11457
  # The `*' in the case matches for architectures that use `case' in
 
11458
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11459
  # eval without this substitution.
 
11460
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11461
 
 
11462
  for p in `eval $output_verbose_link_cmd`; do
 
11463
    case $p in
 
11464
 
 
11465
    -L* | -R* | -l*)
 
11466
       # Some compilers place space between "-{L,R}" and the path.
 
11467
       # Remove the space.
 
11468
       if test $p = "-L" \
 
11469
          || test $p = "-R"; then
 
11470
         prev=$p
 
11471
         continue
 
11472
       else
 
11473
         prev=
 
11474
       fi
 
11475
 
 
11476
       if test "$pre_test_object_deps_done" = no; then
 
11477
         case $p in
 
11478
         -L* | -R*)
 
11479
           # Internal compiler library paths should come after those
 
11480
           # provided the user.  The postdeps already come after the
 
11481
           # user supplied libs so there is no need to process them.
 
11482
           if test -z "$compiler_lib_search_path_CXX"; then
 
11483
             compiler_lib_search_path_CXX="${prev}${p}"
 
11484
           else
 
11485
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11486
           fi
 
11487
           ;;
 
11488
         # The "-l" case would never come before the object being
 
11489
         # linked, so don't bother handling this case.
 
11490
         esac
 
11491
       else
 
11492
         if test -z "$postdeps_CXX"; then
 
11493
           postdeps_CXX="${prev}${p}"
 
11494
         else
 
11495
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11496
         fi
 
11497
       fi
 
11498
       ;;
 
11499
 
 
11500
    *.$objext)
 
11501
       # This assumes that the test object file only shows up
 
11502
       # once in the compiler output.
 
11503
       if test "$p" = "conftest.$objext"; then
 
11504
         pre_test_object_deps_done=yes
 
11505
         continue
 
11506
       fi
 
11507
 
 
11508
       if test "$pre_test_object_deps_done" = no; then
 
11509
         if test -z "$predep_objects_CXX"; then
 
11510
           predep_objects_CXX="$p"
 
11511
         else
 
11512
           predep_objects_CXX="$predep_objects_CXX $p"
 
11513
         fi
 
11514
       else
 
11515
         if test -z "$postdep_objects_CXX"; then
 
11516
           postdep_objects_CXX="$p"
 
11517
         else
 
11518
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11519
         fi
 
11520
       fi
 
11521
       ;;
 
11522
 
 
11523
    *) ;; # Ignore the rest.
 
11524
 
 
11525
    esac
 
11526
  done
 
11527
 
 
11528
  # Clean up.
 
11529
  rm -f a.out a.exe
 
11530
else
 
11531
  echo "libtool.m4: error: problem compiling CXX test program"
 
11532
fi
 
11533
 
 
11534
$rm -f confest.$objext
 
11535
 
 
11536
case " $postdeps_CXX " in
 
11537
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11538
esac
 
11539
 
 
11540
lt_prog_compiler_wl_CXX=
 
11541
lt_prog_compiler_pic_CXX=
 
11542
lt_prog_compiler_static_CXX=
 
11543
 
 
11544
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11545
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11546
 
 
11547
  # C++ specific cases for pic, static, wl, etc.
 
11548
  if test "$GXX" = yes; then
 
11549
    lt_prog_compiler_wl_CXX='-Wl,'
 
11550
    lt_prog_compiler_static_CXX='-static'
 
11551
 
 
11552
    case $host_os in
 
11553
    aix*)
 
11554
      # All AIX code is PIC.
 
11555
      if test "$host_cpu" = ia64; then
 
11556
        # AIX 5 now supports IA64 processor
 
11557
        lt_prog_compiler_static_CXX='-Bstatic'
 
11558
      fi
 
11559
      ;;
 
11560
    amigaos*)
 
11561
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11562
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11563
      # like `-m68040'.
 
11564
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11565
      ;;
 
11566
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11567
      # PIC is the default for these OSes.
 
11568
      ;;
 
11569
    mingw* | os2* | pw32*)
 
11570
      # This hack is so that the source file can tell whether it is being
 
11571
      # built for inclusion in a dll (and should export symbols for example).
 
11572
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11573
      ;;
 
11574
    darwin* | rhapsody*)
 
11575
      # PIC is the default on this platform
 
11576
      # Common symbols not allowed in MH_DYLIB files
 
11577
      lt_prog_compiler_pic_CXX='-fno-common'
 
11578
      ;;
 
11579
    *djgpp*)
 
11580
      # DJGPP does not support shared libraries at all
 
11581
      lt_prog_compiler_pic_CXX=
 
11582
      ;;
 
11583
    sysv4*MP*)
 
11584
      if test -d /usr/nec; then
 
11585
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11586
      fi
 
11587
      ;;
 
11588
    hpux*)
 
11589
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11590
      # not for PA HP-UX.
 
11591
      case "$host_cpu" in
 
11592
      hppa*64*|ia64*)
 
11593
        ;;
 
11594
      *)
 
11595
        lt_prog_compiler_pic_CXX='-fPIC'
 
11596
        ;;
 
11597
      esac
 
11598
      ;;
 
11599
    *)
 
11600
      lt_prog_compiler_pic_CXX='-fPIC'
 
11601
      ;;
 
11602
    esac
 
11603
  else
 
11604
    case $host_os in
 
11605
      aix4* | aix5*)
 
11606
        # All AIX code is PIC.
 
11607
        if test "$host_cpu" = ia64; then
 
11608
          # AIX 5 now supports IA64 processor
 
11609
          lt_prog_compiler_static_CXX='-Bstatic'
 
11610
        else
 
11611
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11612
        fi
 
11613
        ;;
 
11614
      chorus*)
 
11615
        case $cc_basename in
 
11616
        cxch68)
 
11617
          # Green Hills C++ Compiler
 
11618
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
11619
          ;;
 
11620
        esac
 
11621
        ;;
 
11622
      dgux*)
 
11623
        case $cc_basename in
 
11624
          ec++)
 
11625
            lt_prog_compiler_pic_CXX='-KPIC'
 
11626
            ;;
 
11627
          ghcx)
 
11628
            # Green Hills C++ Compiler
 
11629
            lt_prog_compiler_pic_CXX='-pic'
 
11630
            ;;
 
11631
          *)
 
11632
            ;;
 
11633
        esac
 
11634
        ;;
 
11635
      freebsd* | kfreebsd*-gnu)
 
11636
        # FreeBSD uses GNU C++
 
11637
        ;;
 
11638
      hpux9* | hpux10* | hpux11*)
 
11639
        case $cc_basename in
 
11640
          CC)
 
11641
            lt_prog_compiler_wl_CXX='-Wl,'
 
11642
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11643
            if test "$host_cpu" != ia64; then
 
11644
              lt_prog_compiler_pic_CXX='+Z'
 
11645
            fi
 
11646
            ;;
 
11647
          aCC)
 
11648
            lt_prog_compiler_wl_CXX='-Wl,'
 
11649
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11650
            case "$host_cpu" in
 
11651
            hppa*64*|ia64*)
 
11652
              # +Z the default
 
11653
              ;;
 
11654
            *)
 
11655
              lt_prog_compiler_pic_CXX='+Z'
 
11656
              ;;
 
11657
            esac
 
11658
            ;;
 
11659
          *)
 
11660
            ;;
 
11661
        esac
 
11662
        ;;
 
11663
      irix5* | irix6* | nonstopux*)
 
11664
        case $cc_basename in
 
11665
          CC)
 
11666
            lt_prog_compiler_wl_CXX='-Wl,'
 
11667
            lt_prog_compiler_static_CXX='-non_shared'
 
11668
            # CC pic flag -KPIC is the default.
 
11669
            ;;
 
11670
          *)
 
11671
            ;;
 
11672
        esac
 
11673
        ;;
 
11674
      linux*)
 
11675
        case $cc_basename in
 
11676
          KCC)
 
11677
            # KAI C++ Compiler
 
11678
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11679
            lt_prog_compiler_pic_CXX='-fPIC'
 
11680
            ;;
 
11681
          icpc)
 
11682
            # Intel C++
 
11683
            lt_prog_compiler_wl_CXX='-Wl,'
 
11684
            lt_prog_compiler_pic_CXX='-KPIC'
 
11685
            lt_prog_compiler_static_CXX='-static'
 
11686
            ;;
 
11687
          cxx)
 
11688
            # Compaq C++
 
11689
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11690
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11691
            lt_prog_compiler_pic_CXX=
 
11692
            lt_prog_compiler_static_CXX='-non_shared'
 
11693
            ;;
 
11694
          *)
 
11695
            ;;
 
11696
        esac
 
11697
        ;;
 
11698
      lynxos*)
 
11699
        ;;
 
11700
      m88k*)
 
11701
        ;;
 
11702
      mvs*)
 
11703
        case $cc_basename in
 
11704
          cxx)
 
11705
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11706
            ;;
 
11707
          *)
 
11708
            ;;
 
11709
        esac
 
11710
        ;;
 
11711
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
11712
        ;;
 
11713
      osf3* | osf4* | osf5*)
 
11714
        case $cc_basename in
 
11715
          KCC)
 
11716
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11717
            ;;
 
11718
          RCC)
 
11719
            # Rational C++ 2.4.1
 
11720
            lt_prog_compiler_pic_CXX='-pic'
 
11721
            ;;
 
11722
          cxx)
 
11723
            # Digital/Compaq C++
 
11724
            lt_prog_compiler_wl_CXX='-Wl,'
 
11725
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11726
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11727
            lt_prog_compiler_pic_CXX=
 
11728
            lt_prog_compiler_static_CXX='-non_shared'
 
11729
            ;;
 
11730
          *)
 
11731
            ;;
 
11732
        esac
 
11733
        ;;
 
11734
      psos*)
 
11735
        ;;
 
11736
      sco*)
 
11737
        case $cc_basename in
 
11738
          CC)
 
11739
            lt_prog_compiler_pic_CXX='-fPIC'
 
11740
            ;;
 
11741
          *)
 
11742
            ;;
 
11743
        esac
 
11744
        ;;
 
11745
      solaris*)
 
11746
        case $cc_basename in
 
11747
          CC)
 
11748
            # Sun C++ 4.2, 5.x and Centerline C++
 
11749
            lt_prog_compiler_pic_CXX='-KPIC'
 
11750
            lt_prog_compiler_static_CXX='-Bstatic'
 
11751
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11752
            ;;
 
11753
          gcx)
 
11754
            # Green Hills C++ Compiler
 
11755
            lt_prog_compiler_pic_CXX='-PIC'
 
11756
            ;;
 
11757
          *)
 
11758
            ;;
 
11759
        esac
 
11760
        ;;
 
11761
      sunos4*)
 
11762
        case $cc_basename in
 
11763
          CC)
 
11764
            # Sun C++ 4.x
 
11765
            lt_prog_compiler_pic_CXX='-pic'
 
11766
            lt_prog_compiler_static_CXX='-Bstatic'
 
11767
            ;;
 
11768
          lcc)
 
11769
            # Lucid
 
11770
            lt_prog_compiler_pic_CXX='-pic'
 
11771
            ;;
 
11772
          *)
 
11773
            ;;
 
11774
        esac
 
11775
        ;;
 
11776
      tandem*)
 
11777
        case $cc_basename in
 
11778
          NCC)
 
11779
            # NonStop-UX NCC 3.20
 
11780
            lt_prog_compiler_pic_CXX='-KPIC'
 
11781
            ;;
 
11782
          *)
 
11783
            ;;
 
11784
        esac
 
11785
        ;;
 
11786
      unixware*)
 
11787
        ;;
 
11788
      vxworks*)
 
11789
        ;;
 
11790
      *)
 
11791
        lt_prog_compiler_can_build_shared_CXX=no
 
11792
        ;;
 
11793
    esac
 
11794
  fi
 
11795
 
 
11796
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11797
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11798
 
 
11799
#
 
11800
# Check to make sure the PIC flag actually works.
 
11801
#
 
11802
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11803
 
 
11804
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11805
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11806
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11808
else
 
11809
  lt_prog_compiler_pic_works_CXX=no
 
11810
  ac_outfile=conftest.$ac_objext
 
11811
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11812
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11813
   # Insert the option either (1) after the last *FLAGS variable, or
 
11814
   # (2) before a word containing "conftest.", or (3) at the end.
 
11815
   # Note that $ac_compile itself does not contain backslashes and begins
 
11816
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11817
   # The option is referenced via a variable to avoid confusing sed.
 
11818
   lt_compile=`echo "$ac_compile" | $SED \
 
11819
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11820
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11821
   -e 's:$: $lt_compiler_flag:'`
 
11822
   (eval echo "\"\$as_me:11822: $lt_compile\"" >&5)
 
11823
   (eval "$lt_compile" 2>conftest.err)
 
11824
   ac_status=$?
 
11825
   cat conftest.err >&5
 
11826
   echo "$as_me:11826: \$? = $ac_status" >&5
 
11827
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11828
     # The compiler can only warn and ignore the option if not recognized
 
11829
     # So say no if there are warnings
 
11830
     if test ! -s conftest.err; then
 
11831
       lt_prog_compiler_pic_works_CXX=yes
 
11832
     fi
 
11833
   fi
 
11834
   $rm conftest*
 
11835
 
 
11836
fi
 
11837
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11838
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11839
 
 
11840
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11841
    case $lt_prog_compiler_pic_CXX in
 
11842
     "" | " "*) ;;
 
11843
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11844
     esac
 
11845
else
 
11846
    lt_prog_compiler_pic_CXX=
 
11847
     lt_prog_compiler_can_build_shared_CXX=no
 
11848
fi
 
11849
 
 
11850
fi
 
11851
case "$host_os" in
 
11852
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11853
  *djgpp*)
 
11854
    lt_prog_compiler_pic_CXX=
 
11855
    ;;
 
11856
  *)
 
11857
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11858
    ;;
 
11859
esac
 
11860
 
 
11861
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11862
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11863
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11864
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11865
else
 
11866
  lt_cv_prog_compiler_c_o_CXX=no
 
11867
   $rm -r conftest 2>/dev/null
 
11868
   mkdir conftest
 
11869
   cd conftest
 
11870
   mkdir out
 
11871
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11872
 
 
11873
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11874
   # Insert the option either (1) after the last *FLAGS variable, or
 
11875
   # (2) before a word containing "conftest.", or (3) at the end.
 
11876
   # Note that $ac_compile itself does not contain backslashes and begins
 
11877
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11878
   lt_compile=`echo "$ac_compile" | $SED \
 
11879
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11880
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11881
   -e 's:$: $lt_compiler_flag:'`
 
11882
   (eval echo "\"\$as_me:11882: $lt_compile\"" >&5)
 
11883
   (eval "$lt_compile" 2>out/conftest.err)
 
11884
   ac_status=$?
 
11885
   cat out/conftest.err >&5
 
11886
   echo "$as_me:11886: \$? = $ac_status" >&5
 
11887
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11888
   then
 
11889
     # The compiler can only warn and ignore the option if not recognized
 
11890
     # So say no if there are warnings
 
11891
     if test ! -s out/conftest.err; then
 
11892
       lt_cv_prog_compiler_c_o_CXX=yes
 
11893
     fi
 
11894
   fi
 
11895
   chmod u+w .
 
11896
   $rm conftest*
 
11897
   # SGI C++ compiler will create directory out/ii_files/ for
 
11898
   # template instantiation
 
11899
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11900
   $rm out/* && rmdir out
 
11901
   cd ..
 
11902
   rmdir conftest
 
11903
   $rm conftest*
 
11904
 
 
11905
fi
 
11906
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11907
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11908
 
 
11909
 
 
11910
hard_links="nottested"
 
11911
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11912
  # do not overwrite the value of need_locks provided by the user
 
11913
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11914
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11915
  hard_links=yes
 
11916
  $rm conftest*
 
11917
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11918
  touch conftest.a
 
11919
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11920
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11921
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11922
echo "${ECHO_T}$hard_links" >&6
 
11923
  if test "$hard_links" = no; then
 
11924
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11925
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11926
    need_locks=warn
 
11927
  fi
 
11928
else
 
11929
  need_locks=no
 
11930
fi
 
11931
 
 
11932
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11933
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11934
 
 
11935
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11936
  case $host_os in
 
11937
  aix4* | aix5*)
 
11938
    # If we're using GNU nm, then we don't want the "-C" option.
 
11939
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11940
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11941
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
11942
    else
 
11943
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
11944
    fi
 
11945
    ;;
 
11946
  pw32*)
 
11947
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11948
  ;;
 
11949
  cygwin* | mingw*)
 
11950
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11951
  ;;
 
11952
  linux*)
 
11953
    link_all_deplibs_CXX=no
 
11954
  ;;
 
11955
  *)
 
11956
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11957
  ;;
 
11958
  esac
 
11959
 
 
11960
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11961
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11962
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11963
 
 
11964
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11965
if test "$GCC" = yes; then
 
11966
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11967
fi
 
11968
 
 
11969
#
 
11970
# Do we need to explicitly link libc?
 
11971
#
 
11972
case "x$archive_cmds_need_lc_CXX" in
 
11973
x|xyes)
 
11974
  # Assume -lc should be added
 
11975
  archive_cmds_need_lc_CXX=yes
 
11976
 
 
11977
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11978
    case $archive_cmds_CXX in
 
11979
    *'~'*)
 
11980
      # FIXME: we may have to deal with multi-command sequences.
 
11981
      ;;
 
11982
    '$CC '*)
 
11983
      # Test whether the compiler implicitly links with -lc since on some
 
11984
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11985
      # to ld, don't add -lc before -lgcc.
 
11986
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11987
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11988
      $rm conftest*
 
11989
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11990
 
 
11991
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11992
  (eval $ac_compile) 2>&5
 
11993
  ac_status=$?
 
11994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11995
  (exit $ac_status); } 2>conftest.err; then
 
11996
        soname=conftest
 
11997
        lib=conftest
 
11998
        libobjs=conftest.$ac_objext
 
11999
        deplibs=
 
12000
        wl=$lt_prog_compiler_wl_CXX
 
12001
        compiler_flags=-v
 
12002
        linker_flags=-v
 
12003
        verstring=
 
12004
        output_objdir=.
 
12005
        libname=conftest
 
12006
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12007
        allow_undefined_flag_CXX=
 
12008
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12009
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12010
  ac_status=$?
 
12011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12012
  (exit $ac_status); }
 
12013
        then
 
12014
          archive_cmds_need_lc_CXX=no
 
12015
        else
 
12016
          archive_cmds_need_lc_CXX=yes
 
12017
        fi
 
12018
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12019
      else
 
12020
        cat conftest.err 1>&5
 
12021
      fi
 
12022
      $rm conftest*
 
12023
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12024
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
12025
      ;;
 
12026
    esac
 
12027
  fi
 
12028
  ;;
 
12029
esac
 
12030
 
 
12031
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12032
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12033
library_names_spec=
 
12034
libname_spec='lib$name'
 
12035
soname_spec=
 
12036
shrext_cmds=".so"
 
12037
postinstall_cmds=
 
12038
postuninstall_cmds=
 
12039
finish_cmds=
 
12040
finish_eval=
 
12041
shlibpath_var=
 
12042
shlibpath_overrides_runpath=unknown
 
12043
version_type=none
 
12044
dynamic_linker="$host_os ld.so"
 
12045
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12046
if test "$GCC" = yes; then
 
12047
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12048
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12049
    # if the path contains ";" then we assume it to be the separator
 
12050
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12051
    # assumed that no part of a normal pathname contains ";" but that should
 
12052
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12053
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12054
  else
 
12055
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12056
  fi
 
12057
else
 
12058
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12059
fi
 
12060
need_lib_prefix=unknown
 
12061
hardcode_into_libs=no
 
12062
 
 
12063
# when you set need_version to no, make sure it does not cause -set_version
 
12064
# flags to be left without arguments
 
12065
need_version=unknown
 
12066
 
 
12067
case $host_os in
 
12068
aix3*)
 
12069
  version_type=linux
 
12070
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12071
  shlibpath_var=LIBPATH
 
12072
 
 
12073
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12074
  soname_spec='${libname}${release}${shared_ext}$major'
 
12075
  ;;
 
12076
 
 
12077
aix4* | aix5*)
 
12078
  version_type=linux
 
12079
  need_lib_prefix=no
 
12080
  need_version=no
 
12081
  hardcode_into_libs=yes
 
12082
  if test "$host_cpu" = ia64; then
 
12083
    # AIX 5 supports IA64
 
12084
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12085
    shlibpath_var=LD_LIBRARY_PATH
 
12086
  else
 
12087
    # With GCC up to 2.95.x, collect2 would create an import file
 
12088
    # for dependence libraries.  The import file would start with
 
12089
    # the line `#! .'.  This would cause the generated library to
 
12090
    # depend on `.', always an invalid library.  This was fixed in
 
12091
    # development snapshots of GCC prior to 3.0.
 
12092
    case $host_os in
 
12093
      aix4 | aix4.[01] | aix4.[01].*)
 
12094
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12095
           echo ' yes '
 
12096
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12097
        :
 
12098
      else
 
12099
        can_build_shared=no
 
12100
      fi
 
12101
      ;;
 
12102
    esac
 
12103
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12104
    # soname into executable. Probably we can add versioning support to
 
12105
    # collect2, so additional links can be useful in future.
 
12106
    if test "$aix_use_runtimelinking" = yes; then
 
12107
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12108
      # instead of lib<name>.a to let people know that these are not
 
12109
      # typical AIX shared libraries.
 
12110
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12111
    else
 
12112
      # We preserve .a as extension for shared libraries through AIX4.2
 
12113
      # and later when we are not doing run time linking.
 
12114
      library_names_spec='${libname}${release}.a $libname.a'
 
12115
      soname_spec='${libname}${release}${shared_ext}$major'
 
12116
    fi
 
12117
    shlibpath_var=LIBPATH
 
12118
  fi
 
12119
  ;;
 
12120
 
 
12121
amigaos*)
 
12122
  library_names_spec='$libname.ixlibrary $libname.a'
 
12123
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12124
  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'
 
12125
  ;;
 
12126
 
 
12127
beos*)
 
12128
  library_names_spec='${libname}${shared_ext}'
 
12129
  dynamic_linker="$host_os ld.so"
 
12130
  shlibpath_var=LIBRARY_PATH
 
12131
  ;;
 
12132
 
 
12133
bsdi4*)
 
12134
  version_type=linux
 
12135
  need_version=no
 
12136
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12137
  soname_spec='${libname}${release}${shared_ext}$major'
 
12138
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12139
  shlibpath_var=LD_LIBRARY_PATH
 
12140
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12141
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12142
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12143
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12144
  # libtool to hard-code these into programs
 
12145
  ;;
 
12146
 
 
12147
cygwin* | mingw* | pw32*)
 
12148
  version_type=windows
 
12149
  shrext_cmds=".dll"
 
12150
  need_version=no
 
12151
  need_lib_prefix=no
 
12152
 
 
12153
  case $GCC,$host_os in
 
12154
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12155
    library_names_spec='$libname.dll.a'
 
12156
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12157
    postinstall_cmds='base_file=`basename \${file}`~
 
12158
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12159
      dldir=$destdir/`dirname \$dlpath`~
 
12160
      test -d \$dldir || mkdir -p \$dldir~
 
12161
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12162
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12163
      dlpath=$dir/\$dldll~
 
12164
       $rm \$dlpath'
 
12165
    shlibpath_overrides_runpath=yes
 
12166
 
 
12167
    case $host_os in
 
12168
    cygwin*)
 
12169
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12170
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12171
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12172
      ;;
 
12173
    mingw*)
 
12174
      # MinGW DLLs use traditional 'lib' prefix
 
12175
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12176
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12177
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12178
        # It is most probably a Windows format PATH printed by
 
12179
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12180
        # path with ; separators, and with drive letters. We can handle the
 
12181
        # drive letters (cygwin fileutils understands them), so leave them,
 
12182
        # especially as we might pass files found there to a mingw objdump,
 
12183
        # which wouldn't understand a cygwinified path. Ahh.
 
12184
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12185
      else
 
12186
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12187
      fi
 
12188
      ;;
 
12189
    pw32*)
 
12190
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12191
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12192
      ;;
 
12193
    esac
 
12194
    ;;
 
12195
 
 
12196
  *)
 
12197
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12198
    ;;
 
12199
  esac
 
12200
  dynamic_linker='Win32 ld.exe'
 
12201
  # FIXME: first we should search . and the directory the executable is in
 
12202
  shlibpath_var=PATH
 
12203
  ;;
 
12204
 
 
12205
darwin* | rhapsody*)
 
12206
  dynamic_linker="$host_os dyld"
 
12207
  version_type=darwin
 
12208
  need_lib_prefix=no
 
12209
  need_version=no
 
12210
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12211
  soname_spec='${libname}${release}${major}$shared_ext'
 
12212
  shlibpath_overrides_runpath=yes
 
12213
  shlibpath_var=DYLD_LIBRARY_PATH
 
12214
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
12215
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12216
  if test "$GCC" = yes; then
 
12217
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
12218
  else
 
12219
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12220
  fi
 
12221
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12222
  ;;
 
12223
 
 
12224
dgux*)
 
12225
  version_type=linux
 
12226
  need_lib_prefix=no
 
12227
  need_version=no
 
12228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12229
  soname_spec='${libname}${release}${shared_ext}$major'
 
12230
  shlibpath_var=LD_LIBRARY_PATH
 
12231
  ;;
 
12232
 
 
12233
freebsd1*)
 
12234
  dynamic_linker=no
 
12235
  ;;
 
12236
 
 
12237
kfreebsd*-gnu)
 
12238
  version_type=linux
 
12239
  need_lib_prefix=no
 
12240
  need_version=no
 
12241
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12242
  soname_spec='${libname}${release}${shared_ext}$major'
 
12243
  shlibpath_var=LD_LIBRARY_PATH
 
12244
  shlibpath_overrides_runpath=no
 
12245
  hardcode_into_libs=yes
 
12246
  dynamic_linker='GNU ld.so'
 
12247
  ;;
 
12248
 
 
12249
freebsd*)
 
12250
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12251
  version_type=freebsd-$objformat
 
12252
  case $version_type in
 
12253
    freebsd-elf*)
 
12254
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12255
      need_version=no
 
12256
      need_lib_prefix=no
 
12257
      ;;
 
12258
    freebsd-*)
 
12259
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12260
      need_version=yes
 
12261
      ;;
 
12262
  esac
 
12263
  shlibpath_var=LD_LIBRARY_PATH
 
12264
  case $host_os in
 
12265
  freebsd2*)
 
12266
    shlibpath_overrides_runpath=yes
 
12267
    ;;
 
12268
  freebsd3.01* | freebsdelf3.01*)
 
12269
    shlibpath_overrides_runpath=yes
 
12270
    hardcode_into_libs=yes
 
12271
    ;;
 
12272
  *) # from 3.2 on
 
12273
    shlibpath_overrides_runpath=no
 
12274
    hardcode_into_libs=yes
 
12275
    ;;
 
12276
  esac
 
12277
  ;;
 
12278
 
 
12279
gnu*)
 
12280
  version_type=linux
 
12281
  need_lib_prefix=no
 
12282
  need_version=no
 
12283
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12284
  soname_spec='${libname}${release}${shared_ext}$major'
 
12285
  shlibpath_var=LD_LIBRARY_PATH
 
12286
  hardcode_into_libs=yes
 
12287
  ;;
 
12288
 
 
12289
hpux9* | hpux10* | hpux11*)
 
12290
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12291
  # link against other versions.
 
12292
  version_type=sunos
 
12293
  need_lib_prefix=no
 
12294
  need_version=no
 
12295
  case "$host_cpu" in
 
12296
  ia64*)
 
12297
    shrext_cmds='.so'
 
12298
    hardcode_into_libs=yes
 
12299
    dynamic_linker="$host_os dld.so"
 
12300
    shlibpath_var=LD_LIBRARY_PATH
 
12301
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12302
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12303
    soname_spec='${libname}${release}${shared_ext}$major'
 
12304
    if test "X$HPUX_IA64_MODE" = X32; then
 
12305
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12306
    else
 
12307
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12308
    fi
 
12309
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12310
    ;;
 
12311
   hppa*64*)
 
12312
     shrext_cmds='.sl'
 
12313
     hardcode_into_libs=yes
 
12314
     dynamic_linker="$host_os dld.sl"
 
12315
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12316
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12317
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12318
     soname_spec='${libname}${release}${shared_ext}$major'
 
12319
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12320
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12321
     ;;
 
12322
   *)
 
12323
    shrext_cmds='.sl'
 
12324
    dynamic_linker="$host_os dld.sl"
 
12325
    shlibpath_var=SHLIB_PATH
 
12326
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12327
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12328
    soname_spec='${libname}${release}${shared_ext}$major'
 
12329
    ;;
 
12330
  esac
 
12331
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12332
  postinstall_cmds='chmod 555 $lib'
 
12333
  ;;
 
12334
 
 
12335
irix5* | irix6* | nonstopux*)
 
12336
  case $host_os in
 
12337
    nonstopux*) version_type=nonstopux ;;
 
12338
    *)
 
12339
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12340
                version_type=linux
 
12341
        else
 
12342
                version_type=irix
 
12343
        fi ;;
 
12344
  esac
 
12345
  need_lib_prefix=no
 
12346
  need_version=no
 
12347
  soname_spec='${libname}${release}${shared_ext}$major'
 
12348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12349
  case $host_os in
 
12350
  irix5* | nonstopux*)
 
12351
    libsuff= shlibsuff=
 
12352
    ;;
 
12353
  *)
 
12354
    case $LD in # libtool.m4 will add one of these switches to LD
 
12355
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12356
      libsuff= shlibsuff= libmagic=32-bit;;
 
12357
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12358
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12359
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12360
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12361
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12362
    esac
 
12363
    ;;
 
12364
  esac
 
12365
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12366
  shlibpath_overrides_runpath=no
 
12367
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12368
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12369
  hardcode_into_libs=yes
 
12370
  ;;
 
12371
 
 
12372
# No shared lib support for Linux oldld, aout, or coff.
 
12373
linux*oldld* | linux*aout* | linux*coff*)
 
12374
  dynamic_linker=no
 
12375
  ;;
 
12376
 
 
12377
# This must be Linux ELF.
 
12378
linux*)
 
12379
  version_type=linux
 
12380
  need_lib_prefix=no
 
12381
  need_version=no
 
12382
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12383
  soname_spec='${libname}${release}${shared_ext}$major'
 
12384
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12385
  shlibpath_var=LD_LIBRARY_PATH
 
12386
  shlibpath_overrides_runpath=no
 
12387
  # This implies no fast_install, which is unacceptable.
 
12388
  # Some rework will be needed to allow for fast_install
 
12389
  # before this can be enabled.
 
12390
  hardcode_into_libs=yes
 
12391
 
 
12392
  # Append ld.so.conf contents to the search path
 
12393
  if test -f /etc/ld.so.conf; then
 
12394
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
12395
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12396
  fi
 
12397
 
 
12398
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12399
  # powerpc, because MkLinux only supported shared libraries with the
 
12400
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12401
  # most powerpc-linux boxes support dynamic linking these days and
 
12402
  # people can always --disable-shared, the test was removed, and we
 
12403
  # assume the GNU/Linux dynamic linker is in use.
 
12404
  dynamic_linker='GNU/Linux ld.so'
 
12405
  ;;
 
12406
 
 
12407
netbsdelf*-gnu)
 
12408
  version_type=linux
 
12409
  need_lib_prefix=no
 
12410
  need_version=no
 
12411
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12412
  soname_spec='${libname}${release}${shared_ext}$major'
 
12413
  shlibpath_var=LD_LIBRARY_PATH
 
12414
  shlibpath_overrides_runpath=no
 
12415
  hardcode_into_libs=yes
 
12416
  dynamic_linker='NetBSD ld.elf_so'
 
12417
  ;;
 
12418
 
 
12419
knetbsd*-gnu)
 
12420
  version_type=linux
 
12421
  need_lib_prefix=no
 
12422
  need_version=no
 
12423
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12424
  soname_spec='${libname}${release}${shared_ext}$major'
 
12425
  shlibpath_var=LD_LIBRARY_PATH
 
12426
  shlibpath_overrides_runpath=no
 
12427
  hardcode_into_libs=yes
 
12428
  dynamic_linker='GNU ld.so'
 
12429
  ;;
 
12430
 
 
12431
netbsd*)
 
12432
  version_type=sunos
 
12433
  need_lib_prefix=no
 
12434
  need_version=no
 
12435
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12436
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12437
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12438
    dynamic_linker='NetBSD (a.out) ld.so'
 
12439
  else
 
12440
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12441
    soname_spec='${libname}${release}${shared_ext}$major'
 
12442
    dynamic_linker='NetBSD ld.elf_so'
 
12443
  fi
 
12444
  shlibpath_var=LD_LIBRARY_PATH
 
12445
  shlibpath_overrides_runpath=yes
 
12446
  hardcode_into_libs=yes
 
12447
  ;;
 
12448
 
 
12449
newsos6)
 
12450
  version_type=linux
 
12451
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12452
  shlibpath_var=LD_LIBRARY_PATH
 
12453
  shlibpath_overrides_runpath=yes
 
12454
  ;;
 
12455
 
 
12456
nto-qnx*)
 
12457
  version_type=linux
 
12458
  need_lib_prefix=no
 
12459
  need_version=no
 
12460
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12461
  soname_spec='${libname}${release}${shared_ext}$major'
 
12462
  shlibpath_var=LD_LIBRARY_PATH
 
12463
  shlibpath_overrides_runpath=yes
 
12464
  ;;
 
12465
 
 
12466
openbsd*)
 
12467
  version_type=sunos
 
12468
  need_lib_prefix=no
 
12469
  need_version=yes
 
12470
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12471
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12472
  shlibpath_var=LD_LIBRARY_PATH
 
12473
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12474
    case $host_os in
 
12475
      openbsd2.[89] | openbsd2.[89].*)
 
12476
        shlibpath_overrides_runpath=no
 
12477
        ;;
 
12478
      *)
 
12479
        shlibpath_overrides_runpath=yes
 
12480
        ;;
 
12481
      esac
 
12482
  else
 
12483
    shlibpath_overrides_runpath=yes
 
12484
  fi
 
12485
  ;;
 
12486
 
 
12487
os2*)
 
12488
  libname_spec='$name'
 
12489
  shrext_cmds=".dll"
 
12490
  need_lib_prefix=no
 
12491
  library_names_spec='$libname${shared_ext} $libname.a'
 
12492
  dynamic_linker='OS/2 ld.exe'
 
12493
  shlibpath_var=LIBPATH
 
12494
  ;;
 
12495
 
 
12496
osf3* | osf4* | osf5*)
 
12497
  version_type=osf
 
12498
  need_lib_prefix=no
 
12499
  need_version=no
 
12500
  soname_spec='${libname}${release}${shared_ext}$major'
 
12501
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12502
  shlibpath_var=LD_LIBRARY_PATH
 
12503
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12504
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12505
  ;;
 
12506
 
 
12507
sco3.2v5*)
 
12508
  version_type=osf
 
12509
  soname_spec='${libname}${release}${shared_ext}$major'
 
12510
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12511
  shlibpath_var=LD_LIBRARY_PATH
 
12512
  ;;
 
12513
 
 
12514
solaris*)
 
12515
  version_type=linux
 
12516
  need_lib_prefix=no
 
12517
  need_version=no
 
12518
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12519
  soname_spec='${libname}${release}${shared_ext}$major'
 
12520
  shlibpath_var=LD_LIBRARY_PATH
 
12521
  shlibpath_overrides_runpath=yes
 
12522
  hardcode_into_libs=yes
 
12523
  # ldd complains unless libraries are executable
 
12524
  postinstall_cmds='chmod +x $lib'
 
12525
  ;;
 
12526
 
 
12527
sunos4*)
 
12528
  version_type=sunos
 
12529
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12530
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12531
  shlibpath_var=LD_LIBRARY_PATH
 
12532
  shlibpath_overrides_runpath=yes
 
12533
  if test "$with_gnu_ld" = yes; then
 
12534
    need_lib_prefix=no
 
12535
  fi
 
12536
  need_version=yes
 
12537
  ;;
 
12538
 
 
12539
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12540
  version_type=linux
 
12541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12542
  soname_spec='${libname}${release}${shared_ext}$major'
 
12543
  shlibpath_var=LD_LIBRARY_PATH
 
12544
  case $host_vendor in
 
12545
    sni)
 
12546
      shlibpath_overrides_runpath=no
 
12547
      need_lib_prefix=no
 
12548
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12549
      runpath_var=LD_RUN_PATH
 
12550
      ;;
 
12551
    siemens)
 
12552
      need_lib_prefix=no
 
12553
      ;;
 
12554
    motorola)
 
12555
      need_lib_prefix=no
 
12556
      need_version=no
 
12557
      shlibpath_overrides_runpath=no
 
12558
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12559
      ;;
 
12560
  esac
 
12561
  ;;
 
12562
 
 
12563
sysv4*MP*)
 
12564
  if test -d /usr/nec ;then
 
12565
    version_type=linux
 
12566
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12567
    soname_spec='$libname${shared_ext}.$major'
 
12568
    shlibpath_var=LD_LIBRARY_PATH
 
12569
  fi
 
12570
  ;;
 
12571
 
 
12572
uts4*)
 
12573
  version_type=linux
 
12574
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12575
  soname_spec='${libname}${release}${shared_ext}$major'
 
12576
  shlibpath_var=LD_LIBRARY_PATH
 
12577
  ;;
 
12578
 
 
12579
*)
 
12580
  dynamic_linker=no
 
12581
  ;;
 
12582
esac
 
12583
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12584
echo "${ECHO_T}$dynamic_linker" >&6
 
12585
test "$dynamic_linker" = no && can_build_shared=no
 
12586
 
 
12587
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12588
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12589
hardcode_action_CXX=
 
12590
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12591
   test -n "$runpath_var CXX" || \
 
12592
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12593
 
 
12594
  # We can hardcode non-existant directories.
 
12595
  if test "$hardcode_direct_CXX" != no &&
 
12596
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12597
     # have to relink, otherwise we might link with an installed library
 
12598
     # when we should be linking with a yet-to-be-installed one
 
12599
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12600
     test "$hardcode_minus_L_CXX" != no; then
 
12601
    # Linking always hardcodes the temporary library directory.
 
12602
    hardcode_action_CXX=relink
 
12603
  else
 
12604
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12605
    hardcode_action_CXX=immediate
 
12606
  fi
 
12607
else
 
12608
  # We cannot hardcode anything, or else we can only hardcode existing
 
12609
  # directories.
 
12610
  hardcode_action_CXX=unsupported
 
12611
fi
 
12612
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12613
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12614
 
 
12615
if test "$hardcode_action_CXX" = relink; then
 
12616
  # Fast installation is not supported
 
12617
  enable_fast_install=no
 
12618
elif test "$shlibpath_overrides_runpath" = yes ||
 
12619
     test "$enable_shared" = no; then
 
12620
  # Fast installation is not necessary
 
12621
  enable_fast_install=needless
 
12622
fi
 
12623
 
 
12624
striplib=
 
12625
old_striplib=
 
12626
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12627
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12628
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12629
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12630
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12631
  echo "$as_me:$LINENO: result: yes" >&5
 
12632
echo "${ECHO_T}yes" >&6
 
12633
else
 
12634
# FIXME - insert some real tests, host_os isn't really good enough
 
12635
  case $host_os in
 
12636
   darwin*)
 
12637
       if test -n "$STRIP" ; then
 
12638
         striplib="$STRIP -x"
 
12639
         echo "$as_me:$LINENO: result: yes" >&5
 
12640
echo "${ECHO_T}yes" >&6
 
12641
       else
 
12642
  echo "$as_me:$LINENO: result: no" >&5
 
12643
echo "${ECHO_T}no" >&6
 
12644
fi
 
12645
       ;;
 
12646
   *)
 
12647
  echo "$as_me:$LINENO: result: no" >&5
 
12648
echo "${ECHO_T}no" >&6
 
12649
    ;;
 
12650
  esac
 
12651
fi
 
12652
 
 
12653
if test "x$enable_dlopen" != xyes; then
 
12654
  enable_dlopen=unknown
 
12655
  enable_dlopen_self=unknown
 
12656
  enable_dlopen_self_static=unknown
 
12657
else
 
12658
  lt_cv_dlopen=no
 
12659
  lt_cv_dlopen_libs=
 
12660
 
 
12661
  case $host_os in
 
12662
  beos*)
 
12663
    lt_cv_dlopen="load_add_on"
 
12664
    lt_cv_dlopen_libs=
 
12665
    lt_cv_dlopen_self=yes
 
12666
    ;;
 
12667
 
 
12668
  mingw* | pw32*)
 
12669
    lt_cv_dlopen="LoadLibrary"
 
12670
    lt_cv_dlopen_libs=
 
12671
   ;;
 
12672
 
 
12673
  cygwin*)
 
12674
    lt_cv_dlopen="dlopen"
 
12675
    lt_cv_dlopen_libs=
 
12676
   ;;
 
12677
 
 
12678
  darwin*)
 
12679
  # if libdl is installed we need to link against it
 
12680
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12681
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12682
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12684
else
 
12685
  ac_check_lib_save_LIBS=$LIBS
 
12686
LIBS="-ldl  $LIBS"
 
12687
cat >conftest.$ac_ext <<_ACEOF
 
12688
/* confdefs.h.  */
 
12689
_ACEOF
 
12690
cat confdefs.h >>conftest.$ac_ext
 
12691
cat >>conftest.$ac_ext <<_ACEOF
 
12692
/* end confdefs.h.  */
 
12693
 
 
12694
/* Override any gcc2 internal prototype to avoid an error.  */
 
12695
#ifdef __cplusplus
 
12696
extern "C"
 
12697
#endif
 
12698
/* We use char because int might match the return type of a gcc2
 
12699
   builtin and then its argument prototype would still apply.  */
 
12700
char dlopen ();
 
12701
int
 
12702
main ()
 
12703
{
 
12704
dlopen ();
 
12705
  ;
 
12706
  return 0;
 
12707
}
 
12708
_ACEOF
 
12709
rm -f conftest.$ac_objext conftest$ac_exeext
 
12710
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12711
  (eval $ac_link) 2>conftest.er1
 
12712
  ac_status=$?
 
12713
  grep -v '^ *+' conftest.er1 >conftest.err
 
12714
  rm -f conftest.er1
 
12715
  cat conftest.err >&5
 
12716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12717
  (exit $ac_status); } &&
 
12718
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12720
  (eval $ac_try) 2>&5
 
12721
  ac_status=$?
 
12722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12723
  (exit $ac_status); }; } &&
 
12724
         { ac_try='test -s conftest$ac_exeext'
 
12725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12726
  (eval $ac_try) 2>&5
 
12727
  ac_status=$?
 
12728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12729
  (exit $ac_status); }; }; then
 
12730
  ac_cv_lib_dl_dlopen=yes
 
12731
else
 
12732
  echo "$as_me: failed program was:" >&5
 
12733
sed 's/^/| /' conftest.$ac_ext >&5
 
12734
 
 
12735
ac_cv_lib_dl_dlopen=no
 
12736
fi
 
12737
rm -f conftest.err conftest.$ac_objext \
 
12738
      conftest$ac_exeext conftest.$ac_ext
 
12739
LIBS=$ac_check_lib_save_LIBS
 
12740
fi
 
12741
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12742
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12743
if test $ac_cv_lib_dl_dlopen = yes; then
 
12744
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12745
else
 
12746
 
 
12747
    lt_cv_dlopen="dyld"
 
12748
    lt_cv_dlopen_libs=
 
12749
    lt_cv_dlopen_self=yes
 
12750
 
 
12751
fi
 
12752
 
 
12753
   ;;
 
12754
 
 
12755
  *)
 
12756
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12757
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12758
if test "${ac_cv_func_shl_load+set}" = set; then
 
12759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12760
else
 
12761
  cat >conftest.$ac_ext <<_ACEOF
 
12762
/* confdefs.h.  */
 
12763
_ACEOF
 
12764
cat confdefs.h >>conftest.$ac_ext
 
12765
cat >>conftest.$ac_ext <<_ACEOF
 
12766
/* end confdefs.h.  */
 
12767
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12768
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12769
#define shl_load innocuous_shl_load
 
12770
 
 
12771
/* System header to define __stub macros and hopefully few prototypes,
 
12772
    which can conflict with char shl_load (); below.
 
12773
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12774
    <limits.h> exists even on freestanding compilers.  */
 
12775
 
 
12776
#ifdef __STDC__
 
12777
# include <limits.h>
 
12778
#else
 
12779
# include <assert.h>
 
12780
#endif
 
12781
 
 
12782
#undef shl_load
 
12783
 
 
12784
/* Override any gcc2 internal prototype to avoid an error.  */
 
12785
#ifdef __cplusplus
 
12786
extern "C"
 
12787
{
 
12788
#endif
 
12789
/* We use char because int might match the return type of a gcc2
 
12790
   builtin and then its argument prototype would still apply.  */
 
12791
char shl_load ();
 
12792
/* The GNU C library defines this for functions which it implements
 
12793
    to always fail with ENOSYS.  Some functions are actually named
 
12794
    something starting with __ and the normal name is an alias.  */
 
12795
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12796
choke me
 
12797
#else
 
12798
char (*f) () = shl_load;
 
12799
#endif
 
12800
#ifdef __cplusplus
 
12801
}
 
12802
#endif
 
12803
 
 
12804
int
 
12805
main ()
 
12806
{
 
12807
return f != shl_load;
 
12808
  ;
 
12809
  return 0;
 
12810
}
 
12811
_ACEOF
 
12812
rm -f conftest.$ac_objext conftest$ac_exeext
 
12813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12814
  (eval $ac_link) 2>conftest.er1
 
12815
  ac_status=$?
 
12816
  grep -v '^ *+' conftest.er1 >conftest.err
 
12817
  rm -f conftest.er1
 
12818
  cat conftest.err >&5
 
12819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12820
  (exit $ac_status); } &&
 
12821
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12823
  (eval $ac_try) 2>&5
 
12824
  ac_status=$?
 
12825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12826
  (exit $ac_status); }; } &&
 
12827
         { ac_try='test -s conftest$ac_exeext'
 
12828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12829
  (eval $ac_try) 2>&5
 
12830
  ac_status=$?
 
12831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12832
  (exit $ac_status); }; }; then
 
12833
  ac_cv_func_shl_load=yes
 
12834
else
 
12835
  echo "$as_me: failed program was:" >&5
 
12836
sed 's/^/| /' conftest.$ac_ext >&5
 
12837
 
 
12838
ac_cv_func_shl_load=no
 
12839
fi
 
12840
rm -f conftest.err conftest.$ac_objext \
 
12841
      conftest$ac_exeext conftest.$ac_ext
 
12842
fi
 
12843
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12844
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12845
if test $ac_cv_func_shl_load = yes; then
 
12846
  lt_cv_dlopen="shl_load"
 
12847
else
 
12848
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12849
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12850
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12852
else
 
12853
  ac_check_lib_save_LIBS=$LIBS
 
12854
LIBS="-ldld  $LIBS"
 
12855
cat >conftest.$ac_ext <<_ACEOF
 
12856
/* confdefs.h.  */
 
12857
_ACEOF
 
12858
cat confdefs.h >>conftest.$ac_ext
 
12859
cat >>conftest.$ac_ext <<_ACEOF
 
12860
/* end confdefs.h.  */
 
12861
 
 
12862
/* Override any gcc2 internal prototype to avoid an error.  */
 
12863
#ifdef __cplusplus
 
12864
extern "C"
 
12865
#endif
 
12866
/* We use char because int might match the return type of a gcc2
 
12867
   builtin and then its argument prototype would still apply.  */
 
12868
char shl_load ();
 
12869
int
 
12870
main ()
 
12871
{
 
12872
shl_load ();
 
12873
  ;
 
12874
  return 0;
 
12875
}
 
12876
_ACEOF
 
12877
rm -f conftest.$ac_objext conftest$ac_exeext
 
12878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12879
  (eval $ac_link) 2>conftest.er1
 
12880
  ac_status=$?
 
12881
  grep -v '^ *+' conftest.er1 >conftest.err
 
12882
  rm -f conftest.er1
 
12883
  cat conftest.err >&5
 
12884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12885
  (exit $ac_status); } &&
 
12886
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12887
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12888
  (eval $ac_try) 2>&5
 
12889
  ac_status=$?
 
12890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12891
  (exit $ac_status); }; } &&
 
12892
         { ac_try='test -s conftest$ac_exeext'
 
12893
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12894
  (eval $ac_try) 2>&5
 
12895
  ac_status=$?
 
12896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12897
  (exit $ac_status); }; }; then
 
12898
  ac_cv_lib_dld_shl_load=yes
 
12899
else
 
12900
  echo "$as_me: failed program was:" >&5
 
12901
sed 's/^/| /' conftest.$ac_ext >&5
 
12902
 
 
12903
ac_cv_lib_dld_shl_load=no
 
12904
fi
 
12905
rm -f conftest.err conftest.$ac_objext \
 
12906
      conftest$ac_exeext conftest.$ac_ext
 
12907
LIBS=$ac_check_lib_save_LIBS
 
12908
fi
 
12909
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12910
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12911
if test $ac_cv_lib_dld_shl_load = yes; then
 
12912
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12913
else
 
12914
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12915
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12916
if test "${ac_cv_func_dlopen+set}" = set; then
 
12917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12918
else
 
12919
  cat >conftest.$ac_ext <<_ACEOF
 
12920
/* confdefs.h.  */
 
12921
_ACEOF
 
12922
cat confdefs.h >>conftest.$ac_ext
 
12923
cat >>conftest.$ac_ext <<_ACEOF
 
12924
/* end confdefs.h.  */
 
12925
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12926
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12927
#define dlopen innocuous_dlopen
 
12928
 
 
12929
/* System header to define __stub macros and hopefully few prototypes,
 
12930
    which can conflict with char dlopen (); below.
 
12931
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12932
    <limits.h> exists even on freestanding compilers.  */
 
12933
 
 
12934
#ifdef __STDC__
 
12935
# include <limits.h>
 
12936
#else
 
12937
# include <assert.h>
 
12938
#endif
 
12939
 
 
12940
#undef dlopen
 
12941
 
 
12942
/* Override any gcc2 internal prototype to avoid an error.  */
 
12943
#ifdef __cplusplus
 
12944
extern "C"
 
12945
{
 
12946
#endif
 
12947
/* We use char because int might match the return type of a gcc2
 
12948
   builtin and then its argument prototype would still apply.  */
 
12949
char dlopen ();
 
12950
/* The GNU C library defines this for functions which it implements
 
12951
    to always fail with ENOSYS.  Some functions are actually named
 
12952
    something starting with __ and the normal name is an alias.  */
 
12953
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12954
choke me
 
12955
#else
 
12956
char (*f) () = dlopen;
 
12957
#endif
 
12958
#ifdef __cplusplus
 
12959
}
 
12960
#endif
 
12961
 
 
12962
int
 
12963
main ()
 
12964
{
 
12965
return f != dlopen;
 
12966
  ;
 
12967
  return 0;
 
12968
}
 
12969
_ACEOF
 
12970
rm -f conftest.$ac_objext conftest$ac_exeext
 
12971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12972
  (eval $ac_link) 2>conftest.er1
 
12973
  ac_status=$?
 
12974
  grep -v '^ *+' conftest.er1 >conftest.err
 
12975
  rm -f conftest.er1
 
12976
  cat conftest.err >&5
 
12977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12978
  (exit $ac_status); } &&
 
12979
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12981
  (eval $ac_try) 2>&5
 
12982
  ac_status=$?
 
12983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12984
  (exit $ac_status); }; } &&
 
12985
         { ac_try='test -s conftest$ac_exeext'
 
12986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12987
  (eval $ac_try) 2>&5
 
12988
  ac_status=$?
 
12989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12990
  (exit $ac_status); }; }; then
 
12991
  ac_cv_func_dlopen=yes
 
12992
else
 
12993
  echo "$as_me: failed program was:" >&5
 
12994
sed 's/^/| /' conftest.$ac_ext >&5
 
12995
 
 
12996
ac_cv_func_dlopen=no
 
12997
fi
 
12998
rm -f conftest.err conftest.$ac_objext \
 
12999
      conftest$ac_exeext conftest.$ac_ext
 
13000
fi
 
13001
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
13002
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
13003
if test $ac_cv_func_dlopen = yes; then
 
13004
  lt_cv_dlopen="dlopen"
 
13005
else
 
13006
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13007
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13008
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13010
else
 
13011
  ac_check_lib_save_LIBS=$LIBS
 
13012
LIBS="-ldl  $LIBS"
 
13013
cat >conftest.$ac_ext <<_ACEOF
 
13014
/* confdefs.h.  */
 
13015
_ACEOF
 
13016
cat confdefs.h >>conftest.$ac_ext
 
13017
cat >>conftest.$ac_ext <<_ACEOF
 
13018
/* end confdefs.h.  */
 
13019
 
 
13020
/* Override any gcc2 internal prototype to avoid an error.  */
 
13021
#ifdef __cplusplus
 
13022
extern "C"
 
13023
#endif
 
13024
/* We use char because int might match the return type of a gcc2
 
13025
   builtin and then its argument prototype would still apply.  */
 
13026
char dlopen ();
 
13027
int
 
13028
main ()
 
13029
{
 
13030
dlopen ();
 
13031
  ;
 
13032
  return 0;
 
13033
}
 
13034
_ACEOF
 
13035
rm -f conftest.$ac_objext conftest$ac_exeext
 
13036
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13037
  (eval $ac_link) 2>conftest.er1
 
13038
  ac_status=$?
 
13039
  grep -v '^ *+' conftest.er1 >conftest.err
 
13040
  rm -f conftest.er1
 
13041
  cat conftest.err >&5
 
13042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13043
  (exit $ac_status); } &&
 
13044
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13046
  (eval $ac_try) 2>&5
 
13047
  ac_status=$?
 
13048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13049
  (exit $ac_status); }; } &&
 
13050
         { ac_try='test -s conftest$ac_exeext'
 
13051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13052
  (eval $ac_try) 2>&5
 
13053
  ac_status=$?
 
13054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13055
  (exit $ac_status); }; }; then
 
13056
  ac_cv_lib_dl_dlopen=yes
 
13057
else
 
13058
  echo "$as_me: failed program was:" >&5
 
13059
sed 's/^/| /' conftest.$ac_ext >&5
 
13060
 
 
13061
ac_cv_lib_dl_dlopen=no
 
13062
fi
 
13063
rm -f conftest.err conftest.$ac_objext \
 
13064
      conftest$ac_exeext conftest.$ac_ext
 
13065
LIBS=$ac_check_lib_save_LIBS
 
13066
fi
 
13067
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13068
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13069
if test $ac_cv_lib_dl_dlopen = yes; then
 
13070
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13071
else
 
13072
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
13073
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
13074
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
13075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13076
else
 
13077
  ac_check_lib_save_LIBS=$LIBS
 
13078
LIBS="-lsvld  $LIBS"
 
13079
cat >conftest.$ac_ext <<_ACEOF
 
13080
/* confdefs.h.  */
 
13081
_ACEOF
 
13082
cat confdefs.h >>conftest.$ac_ext
 
13083
cat >>conftest.$ac_ext <<_ACEOF
 
13084
/* end confdefs.h.  */
 
13085
 
 
13086
/* Override any gcc2 internal prototype to avoid an error.  */
 
13087
#ifdef __cplusplus
 
13088
extern "C"
 
13089
#endif
 
13090
/* We use char because int might match the return type of a gcc2
 
13091
   builtin and then its argument prototype would still apply.  */
 
13092
char dlopen ();
 
13093
int
 
13094
main ()
 
13095
{
 
13096
dlopen ();
 
13097
  ;
 
13098
  return 0;
 
13099
}
 
13100
_ACEOF
 
13101
rm -f conftest.$ac_objext conftest$ac_exeext
 
13102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13103
  (eval $ac_link) 2>conftest.er1
 
13104
  ac_status=$?
 
13105
  grep -v '^ *+' conftest.er1 >conftest.err
 
13106
  rm -f conftest.er1
 
13107
  cat conftest.err >&5
 
13108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13109
  (exit $ac_status); } &&
 
13110
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13112
  (eval $ac_try) 2>&5
 
13113
  ac_status=$?
 
13114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13115
  (exit $ac_status); }; } &&
 
13116
         { ac_try='test -s conftest$ac_exeext'
 
13117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13118
  (eval $ac_try) 2>&5
 
13119
  ac_status=$?
 
13120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13121
  (exit $ac_status); }; }; then
 
13122
  ac_cv_lib_svld_dlopen=yes
 
13123
else
 
13124
  echo "$as_me: failed program was:" >&5
 
13125
sed 's/^/| /' conftest.$ac_ext >&5
 
13126
 
 
13127
ac_cv_lib_svld_dlopen=no
 
13128
fi
 
13129
rm -f conftest.err conftest.$ac_objext \
 
13130
      conftest$ac_exeext conftest.$ac_ext
 
13131
LIBS=$ac_check_lib_save_LIBS
 
13132
fi
 
13133
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
13134
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
13135
if test $ac_cv_lib_svld_dlopen = yes; then
 
13136
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
13137
else
 
13138
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
13139
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
13140
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
13141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13142
else
 
13143
  ac_check_lib_save_LIBS=$LIBS
 
13144
LIBS="-ldld  $LIBS"
 
13145
cat >conftest.$ac_ext <<_ACEOF
 
13146
/* confdefs.h.  */
 
13147
_ACEOF
 
13148
cat confdefs.h >>conftest.$ac_ext
 
13149
cat >>conftest.$ac_ext <<_ACEOF
 
13150
/* end confdefs.h.  */
 
13151
 
 
13152
/* Override any gcc2 internal prototype to avoid an error.  */
 
13153
#ifdef __cplusplus
 
13154
extern "C"
 
13155
#endif
 
13156
/* We use char because int might match the return type of a gcc2
 
13157
   builtin and then its argument prototype would still apply.  */
 
13158
char dld_link ();
 
13159
int
 
13160
main ()
 
13161
{
 
13162
dld_link ();
 
13163
  ;
 
13164
  return 0;
 
13165
}
 
13166
_ACEOF
 
13167
rm -f conftest.$ac_objext conftest$ac_exeext
 
13168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13169
  (eval $ac_link) 2>conftest.er1
 
13170
  ac_status=$?
 
13171
  grep -v '^ *+' conftest.er1 >conftest.err
 
13172
  rm -f conftest.er1
 
13173
  cat conftest.err >&5
 
13174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13175
  (exit $ac_status); } &&
 
13176
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13178
  (eval $ac_try) 2>&5
 
13179
  ac_status=$?
 
13180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13181
  (exit $ac_status); }; } &&
 
13182
         { ac_try='test -s conftest$ac_exeext'
 
13183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13184
  (eval $ac_try) 2>&5
 
13185
  ac_status=$?
 
13186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13187
  (exit $ac_status); }; }; then
 
13188
  ac_cv_lib_dld_dld_link=yes
 
13189
else
 
13190
  echo "$as_me: failed program was:" >&5
 
13191
sed 's/^/| /' conftest.$ac_ext >&5
 
13192
 
 
13193
ac_cv_lib_dld_dld_link=no
 
13194
fi
 
13195
rm -f conftest.err conftest.$ac_objext \
 
13196
      conftest$ac_exeext conftest.$ac_ext
 
13197
LIBS=$ac_check_lib_save_LIBS
 
13198
fi
 
13199
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
13200
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
13201
if test $ac_cv_lib_dld_dld_link = yes; then
 
13202
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
13203
fi
 
13204
 
 
13205
 
 
13206
fi
 
13207
 
 
13208
 
 
13209
fi
 
13210
 
 
13211
 
 
13212
fi
 
13213
 
 
13214
 
 
13215
fi
 
13216
 
 
13217
 
 
13218
fi
 
13219
 
 
13220
    ;;
 
13221
  esac
 
13222
 
 
13223
  if test "x$lt_cv_dlopen" != xno; then
 
13224
    enable_dlopen=yes
 
13225
  else
 
13226
    enable_dlopen=no
 
13227
  fi
 
13228
 
 
13229
  case $lt_cv_dlopen in
 
13230
  dlopen)
 
13231
    save_CPPFLAGS="$CPPFLAGS"
 
13232
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13233
 
 
13234
    save_LDFLAGS="$LDFLAGS"
 
13235
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
13236
 
 
13237
    save_LIBS="$LIBS"
 
13238
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
13239
 
 
13240
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
13241
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
13242
if test "${lt_cv_dlopen_self+set}" = set; then
 
13243
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13244
else
 
13245
          if test "$cross_compiling" = yes; then :
 
13246
  lt_cv_dlopen_self=cross
 
13247
else
 
13248
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13249
  lt_status=$lt_dlunknown
 
13250
  cat > conftest.$ac_ext <<EOF
 
13251
#line 13251 "configure"
 
13252
#include "confdefs.h"
 
13253
 
 
13254
#if HAVE_DLFCN_H
 
13255
#include <dlfcn.h>
 
13256
#endif
 
13257
 
 
13258
#include <stdio.h>
 
13259
 
 
13260
#ifdef RTLD_GLOBAL
 
13261
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13262
#else
 
13263
#  ifdef DL_GLOBAL
 
13264
#    define LT_DLGLOBAL         DL_GLOBAL
 
13265
#  else
 
13266
#    define LT_DLGLOBAL         0
 
13267
#  endif
 
13268
#endif
 
13269
 
 
13270
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13271
   find out it does not work in some platform. */
 
13272
#ifndef LT_DLLAZY_OR_NOW
 
13273
#  ifdef RTLD_LAZY
 
13274
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13275
#  else
 
13276
#    ifdef DL_LAZY
 
13277
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13278
#    else
 
13279
#      ifdef RTLD_NOW
 
13280
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13281
#      else
 
13282
#        ifdef DL_NOW
 
13283
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13284
#        else
 
13285
#          define LT_DLLAZY_OR_NOW      0
 
13286
#        endif
 
13287
#      endif
 
13288
#    endif
 
13289
#  endif
 
13290
#endif
 
13291
 
 
13292
#ifdef __cplusplus
 
13293
extern "C" void exit (int);
 
13294
#endif
 
13295
 
 
13296
void fnord() { int i=42;}
 
13297
int main ()
 
13298
{
 
13299
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13300
  int status = $lt_dlunknown;
 
13301
 
 
13302
  if (self)
 
13303
    {
 
13304
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13305
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13306
      /* dlclose (self); */
 
13307
    }
 
13308
 
 
13309
    exit (status);
 
13310
}
 
13311
EOF
 
13312
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13313
  (eval $ac_link) 2>&5
 
13314
  ac_status=$?
 
13315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13316
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13317
    (./conftest; exit; ) 2>/dev/null
 
13318
    lt_status=$?
 
13319
    case x$lt_status in
 
13320
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
13321
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
13322
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
13323
    esac
 
13324
  else :
 
13325
    # compilation failed
 
13326
    lt_cv_dlopen_self=no
 
13327
  fi
 
13328
fi
 
13329
rm -fr conftest*
 
13330
 
 
13331
 
 
13332
fi
 
13333
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
13334
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
13335
 
 
13336
    if test "x$lt_cv_dlopen_self" = xyes; then
 
13337
      LDFLAGS="$LDFLAGS $link_static_flag"
 
13338
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
13339
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
13340
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
13341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13342
else
 
13343
          if test "$cross_compiling" = yes; then :
 
13344
  lt_cv_dlopen_self_static=cross
 
13345
else
 
13346
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13347
  lt_status=$lt_dlunknown
 
13348
  cat > conftest.$ac_ext <<EOF
 
13349
#line 13349 "configure"
 
13350
#include "confdefs.h"
 
13351
 
 
13352
#if HAVE_DLFCN_H
 
13353
#include <dlfcn.h>
 
13354
#endif
 
13355
 
 
13356
#include <stdio.h>
 
13357
 
 
13358
#ifdef RTLD_GLOBAL
 
13359
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13360
#else
 
13361
#  ifdef DL_GLOBAL
 
13362
#    define LT_DLGLOBAL         DL_GLOBAL
 
13363
#  else
 
13364
#    define LT_DLGLOBAL         0
 
13365
#  endif
 
13366
#endif
 
13367
 
 
13368
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13369
   find out it does not work in some platform. */
 
13370
#ifndef LT_DLLAZY_OR_NOW
 
13371
#  ifdef RTLD_LAZY
 
13372
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13373
#  else
 
13374
#    ifdef DL_LAZY
 
13375
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13376
#    else
 
13377
#      ifdef RTLD_NOW
 
13378
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13379
#      else
 
13380
#        ifdef DL_NOW
 
13381
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13382
#        else
 
13383
#          define LT_DLLAZY_OR_NOW      0
 
13384
#        endif
 
13385
#      endif
 
13386
#    endif
 
13387
#  endif
 
13388
#endif
 
13389
 
 
13390
#ifdef __cplusplus
 
13391
extern "C" void exit (int);
 
13392
#endif
 
13393
 
 
13394
void fnord() { int i=42;}
 
13395
int main ()
 
13396
{
 
13397
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13398
  int status = $lt_dlunknown;
 
13399
 
 
13400
  if (self)
 
13401
    {
 
13402
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13403
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13404
      /* dlclose (self); */
 
13405
    }
 
13406
 
 
13407
    exit (status);
 
13408
}
 
13409
EOF
 
13410
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13411
  (eval $ac_link) 2>&5
 
13412
  ac_status=$?
 
13413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13414
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13415
    (./conftest; exit; ) 2>/dev/null
 
13416
    lt_status=$?
 
13417
    case x$lt_status in
 
13418
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13419
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13420
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13421
    esac
 
13422
  else :
 
13423
    # compilation failed
 
13424
    lt_cv_dlopen_self_static=no
 
13425
  fi
 
13426
fi
 
13427
rm -fr conftest*
 
13428
 
 
13429
 
 
13430
fi
 
13431
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13432
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13433
    fi
 
13434
 
 
13435
    CPPFLAGS="$save_CPPFLAGS"
 
13436
    LDFLAGS="$save_LDFLAGS"
 
13437
    LIBS="$save_LIBS"
 
13438
    ;;
 
13439
  esac
 
13440
 
 
13441
  case $lt_cv_dlopen_self in
 
13442
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13443
  *) enable_dlopen_self=unknown ;;
 
13444
  esac
 
13445
 
 
13446
  case $lt_cv_dlopen_self_static in
 
13447
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13448
  *) enable_dlopen_self_static=unknown ;;
 
13449
  esac
 
13450
fi
 
13451
 
 
13452
 
 
13453
# The else clause should only fire when bootstrapping the
 
13454
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13455
# with your package, and you will get complaints that there are
 
13456
# no rules to generate ltmain.sh.
 
13457
if test -f "$ltmain"; then
 
13458
  # See if we are running on zsh, and set the options which allow our commands through
 
13459
  # without removal of \ escapes.
 
13460
  if test -n "${ZSH_VERSION+set}" ; then
 
13461
    setopt NO_GLOB_SUBST
 
13462
  fi
 
13463
  # Now quote all the things that may contain metacharacters while being
 
13464
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13465
  # variables and quote the copies for generation of the libtool script.
 
13466
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13467
    SED SHELL STRIP \
 
13468
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13469
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13470
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13471
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13472
    lt_cv_sys_global_symbol_to_c_name_address \
 
13473
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13474
    old_postinstall_cmds old_postuninstall_cmds \
 
13475
    compiler_CXX \
 
13476
    CC_CXX \
 
13477
    LD_CXX \
 
13478
    lt_prog_compiler_wl_CXX \
 
13479
    lt_prog_compiler_pic_CXX \
 
13480
    lt_prog_compiler_static_CXX \
 
13481
    lt_prog_compiler_no_builtin_flag_CXX \
 
13482
    export_dynamic_flag_spec_CXX \
 
13483
    thread_safe_flag_spec_CXX \
 
13484
    whole_archive_flag_spec_CXX \
 
13485
    enable_shared_with_static_runtimes_CXX \
 
13486
    old_archive_cmds_CXX \
 
13487
    old_archive_from_new_cmds_CXX \
 
13488
    predep_objects_CXX \
 
13489
    postdep_objects_CXX \
 
13490
    predeps_CXX \
 
13491
    postdeps_CXX \
 
13492
    compiler_lib_search_path_CXX \
 
13493
    archive_cmds_CXX \
 
13494
    archive_expsym_cmds_CXX \
 
13495
    postinstall_cmds_CXX \
 
13496
    postuninstall_cmds_CXX \
 
13497
    old_archive_from_expsyms_cmds_CXX \
 
13498
    allow_undefined_flag_CXX \
 
13499
    no_undefined_flag_CXX \
 
13500
    export_symbols_cmds_CXX \
 
13501
    hardcode_libdir_flag_spec_CXX \
 
13502
    hardcode_libdir_flag_spec_ld_CXX \
 
13503
    hardcode_libdir_separator_CXX \
 
13504
    hardcode_automatic_CXX \
 
13505
    module_cmds_CXX \
 
13506
    module_expsym_cmds_CXX \
 
13507
    lt_cv_prog_compiler_c_o_CXX \
 
13508
    exclude_expsyms_CXX \
 
13509
    include_expsyms_CXX; do
 
13510
 
 
13511
    case $var in
 
13512
    old_archive_cmds_CXX | \
 
13513
    old_archive_from_new_cmds_CXX | \
 
13514
    archive_cmds_CXX | \
 
13515
    archive_expsym_cmds_CXX | \
 
13516
    module_cmds_CXX | \
 
13517
    module_expsym_cmds_CXX | \
 
13518
    old_archive_from_expsyms_cmds_CXX | \
 
13519
    export_symbols_cmds_CXX | \
 
13520
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13521
    postinstall_cmds | postuninstall_cmds | \
 
13522
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13523
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13524
      # Double-quote double-evaled strings.
 
13525
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13526
      ;;
 
13527
    *)
 
13528
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13529
      ;;
 
13530
    esac
 
13531
  done
 
13532
 
 
13533
  case $lt_echo in
 
13534
  *'\$0 --fallback-echo"')
 
13535
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13536
    ;;
 
13537
  esac
 
13538
 
 
13539
cfgfile="$ofile"
 
13540
 
 
13541
  cat <<__EOF__ >> "$cfgfile"
 
13542
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13543
 
 
13544
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13545
 
 
13546
# Shell to use when invoking shell scripts.
 
13547
SHELL=$lt_SHELL
 
13548
 
 
13549
# Whether or not to build shared libraries.
 
13550
build_libtool_libs=$enable_shared
 
13551
 
 
13552
# Whether or not to build static libraries.
 
13553
build_old_libs=$enable_static
 
13554
 
 
13555
# Whether or not to add -lc for building shared libraries.
 
13556
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13557
 
 
13558
# Whether or not to disallow shared libs when runtime libs are static
 
13559
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13560
 
 
13561
# Whether or not to optimize for fast installation.
 
13562
fast_install=$enable_fast_install
 
13563
 
 
13564
# The host system.
 
13565
host_alias=$host_alias
 
13566
host=$host
 
13567
 
 
13568
# An echo program that does not interpret backslashes.
 
13569
echo=$lt_echo
 
13570
 
 
13571
# The archiver.
 
13572
AR=$lt_AR
 
13573
AR_FLAGS=$lt_AR_FLAGS
 
13574
 
 
13575
# A C compiler.
 
13576
LTCC=$lt_LTCC
 
13577
 
 
13578
# A language-specific compiler.
 
13579
CC=$lt_compiler_CXX
 
13580
 
 
13581
# Is the compiler the GNU C compiler?
 
13582
with_gcc=$GCC_CXX
 
13583
 
 
13584
# An ERE matcher.
 
13585
EGREP=$lt_EGREP
 
13586
 
 
13587
# The linker used to build libraries.
 
13588
LD=$lt_LD_CXX
 
13589
 
 
13590
# Whether we need hard or soft links.
 
13591
LN_S=$lt_LN_S
 
13592
 
 
13593
# A BSD-compatible nm program.
 
13594
NM=$lt_NM
 
13595
 
 
13596
# A symbol stripping program
 
13597
STRIP=$lt_STRIP
 
13598
 
 
13599
# Used to examine libraries when file_magic_cmd begins "file"
 
13600
MAGIC_CMD=$MAGIC_CMD
 
13601
 
 
13602
# Used on cygwin: DLL creation program.
 
13603
DLLTOOL="$DLLTOOL"
 
13604
 
 
13605
# Used on cygwin: object dumper.
 
13606
OBJDUMP="$OBJDUMP"
 
13607
 
 
13608
# Used on cygwin: assembler.
 
13609
AS="$AS"
 
13610
 
 
13611
# The name of the directory that contains temporary libtool files.
 
13612
objdir=$objdir
 
13613
 
 
13614
# How to create reloadable object files.
 
13615
reload_flag=$lt_reload_flag
 
13616
reload_cmds=$lt_reload_cmds
 
13617
 
 
13618
# How to pass a linker flag through the compiler.
 
13619
wl=$lt_lt_prog_compiler_wl_CXX
 
13620
 
 
13621
# Object file suffix (normally "o").
 
13622
objext="$ac_objext"
 
13623
 
 
13624
# Old archive suffix (normally "a").
 
13625
libext="$libext"
 
13626
 
 
13627
# Shared library suffix (normally ".so").
 
13628
shrext_cmds='$shrext_cmds'
 
13629
 
 
13630
# Executable file suffix (normally "").
 
13631
exeext="$exeext"
 
13632
 
 
13633
# Additional compiler flags for building library objects.
 
13634
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13635
pic_mode=$pic_mode
 
13636
 
 
13637
# What is the maximum length of a command?
 
13638
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13639
 
 
13640
# Does compiler simultaneously support -c and -o options?
 
13641
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13642
 
 
13643
# Must we lock files when doing compilation ?
 
13644
need_locks=$lt_need_locks
 
13645
 
 
13646
# Do we need the lib prefix for modules?
 
13647
need_lib_prefix=$need_lib_prefix
 
13648
 
 
13649
# Do we need a version for libraries?
 
13650
need_version=$need_version
 
13651
 
 
13652
# Whether dlopen is supported.
 
13653
dlopen_support=$enable_dlopen
 
13654
 
 
13655
# Whether dlopen of programs is supported.
 
13656
dlopen_self=$enable_dlopen_self
 
13657
 
 
13658
# Whether dlopen of statically linked programs is supported.
 
13659
dlopen_self_static=$enable_dlopen_self_static
 
13660
 
 
13661
# Compiler flag to prevent dynamic linking.
 
13662
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13663
 
 
13664
# Compiler flag to turn off builtin functions.
 
13665
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13666
 
 
13667
# Compiler flag to allow reflexive dlopens.
 
13668
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13669
 
 
13670
# Compiler flag to generate shared objects directly from archives.
 
13671
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13672
 
 
13673
# Compiler flag to generate thread-safe objects.
 
13674
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13675
 
 
13676
# Library versioning type.
 
13677
version_type=$version_type
 
13678
 
 
13679
# Format of library name prefix.
 
13680
libname_spec=$lt_libname_spec
 
13681
 
 
13682
# List of archive names.  First name is the real one, the rest are links.
 
13683
# The last name is the one that the linker finds with -lNAME.
 
13684
library_names_spec=$lt_library_names_spec
 
13685
 
 
13686
# The coded name of the library, if different from the real name.
 
13687
soname_spec=$lt_soname_spec
 
13688
 
 
13689
# Commands used to build and install an old-style archive.
 
13690
RANLIB=$lt_RANLIB
 
13691
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13692
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13693
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13694
 
 
13695
# Create an old-style archive from a shared archive.
 
13696
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13697
 
 
13698
# Create a temporary old-style archive to link instead of a shared archive.
 
13699
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13700
 
 
13701
# Commands used to build and install a shared archive.
 
13702
archive_cmds=$lt_archive_cmds_CXX
 
13703
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13704
postinstall_cmds=$lt_postinstall_cmds
 
13705
postuninstall_cmds=$lt_postuninstall_cmds
 
13706
 
 
13707
# Commands used to build a loadable module (assumed same as above if empty)
 
13708
module_cmds=$lt_module_cmds_CXX
 
13709
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13710
 
 
13711
# Commands to strip libraries.
 
13712
old_striplib=$lt_old_striplib
 
13713
striplib=$lt_striplib
 
13714
 
 
13715
# Dependencies to place before the objects being linked to create a
 
13716
# shared library.
 
13717
predep_objects=$lt_predep_objects_CXX
 
13718
 
 
13719
# Dependencies to place after the objects being linked to create a
 
13720
# shared library.
 
13721
postdep_objects=$lt_postdep_objects_CXX
 
13722
 
 
13723
# Dependencies to place before the objects being linked to create a
 
13724
# shared library.
 
13725
predeps=$lt_predeps_CXX
 
13726
 
 
13727
# Dependencies to place after the objects being linked to create a
 
13728
# shared library.
 
13729
postdeps=$lt_postdeps_CXX
 
13730
 
 
13731
# The library search path used internally by the compiler when linking
 
13732
# a shared library.
 
13733
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13734
 
 
13735
# Method to check whether dependent libraries are shared objects.
 
13736
deplibs_check_method=$lt_deplibs_check_method
 
13737
 
 
13738
# Command to use when deplibs_check_method == file_magic.
 
13739
file_magic_cmd=$lt_file_magic_cmd
 
13740
 
 
13741
# Flag that allows shared libraries with undefined symbols to be built.
 
13742
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13743
 
 
13744
# Flag that forces no undefined symbols.
 
13745
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13746
 
 
13747
# Commands used to finish a libtool library installation in a directory.
 
13748
finish_cmds=$lt_finish_cmds
 
13749
 
 
13750
# Same as above, but a single script fragment to be evaled but not shown.
 
13751
finish_eval=$lt_finish_eval
 
13752
 
 
13753
# Take the output of nm and produce a listing of raw symbols and C names.
 
13754
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13755
 
 
13756
# Transform the output of nm in a proper C declaration
 
13757
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13758
 
 
13759
# Transform the output of nm in a C name address pair
 
13760
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13761
 
 
13762
# This is the shared library runtime path variable.
 
13763
runpath_var=$runpath_var
 
13764
 
 
13765
# This is the shared library path variable.
 
13766
shlibpath_var=$shlibpath_var
 
13767
 
 
13768
# Is shlibpath searched before the hard-coded library search path?
 
13769
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13770
 
 
13771
# How to hardcode a shared library path into an executable.
 
13772
hardcode_action=$hardcode_action_CXX
 
13773
 
 
13774
# Whether we should hardcode library paths into libraries.
 
13775
hardcode_into_libs=$hardcode_into_libs
 
13776
 
 
13777
# Flag to hardcode \$libdir into a binary during linking.
 
13778
# This must work even if \$libdir does not exist.
 
13779
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13780
 
 
13781
# If ld is used when linking, flag to hardcode \$libdir into
 
13782
# a binary during linking. This must work even if \$libdir does
 
13783
# not exist.
 
13784
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13785
 
 
13786
# Whether we need a single -rpath flag with a separated argument.
 
13787
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13788
 
 
13789
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13790
# resulting binary.
 
13791
hardcode_direct=$hardcode_direct_CXX
 
13792
 
 
13793
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13794
# resulting binary.
 
13795
hardcode_minus_L=$hardcode_minus_L_CXX
 
13796
 
 
13797
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13798
# the resulting binary.
 
13799
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13800
 
 
13801
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13802
# and all subsequent libraries and executables linked against it.
 
13803
hardcode_automatic=$hardcode_automatic_CXX
 
13804
 
 
13805
# Variables whose values should be saved in libtool wrapper scripts and
 
13806
# restored at relink time.
 
13807
variables_saved_for_relink="$variables_saved_for_relink"
 
13808
 
 
13809
# Whether libtool must link a program against all its dependency libraries.
 
13810
link_all_deplibs=$link_all_deplibs_CXX
 
13811
 
 
13812
# Compile-time system search path for libraries
 
13813
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13814
 
 
13815
# Run-time system search path for libraries
 
13816
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13817
 
 
13818
# Fix the shell variable \$srcfile for the compiler.
 
13819
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13820
 
 
13821
# Set to yes if exported symbols are required.
 
13822
always_export_symbols=$always_export_symbols_CXX
 
13823
 
 
13824
# The commands to list exported symbols.
 
13825
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13826
 
 
13827
# The commands to extract the exported symbol list from a shared archive.
 
13828
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13829
 
 
13830
# Symbols that should not be listed in the preloaded symbols.
 
13831
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13832
 
 
13833
# Symbols that must always be exported.
 
13834
include_expsyms=$lt_include_expsyms_CXX
 
13835
 
 
13836
# ### END LIBTOOL TAG CONFIG: $tagname
 
13837
 
 
13838
__EOF__
 
13839
 
 
13840
 
 
13841
else
 
13842
  # If there is no Makefile yet, we rely on a make rule to execute
 
13843
  # `config.status --recheck' to rerun these tests and create the
 
13844
  # libtool script then.
 
13845
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13846
  if test -f "$ltmain_in"; then
 
13847
    test -f Makefile && make "$ltmain"
 
13848
  fi
 
13849
fi
 
13850
 
 
13851
 
 
13852
ac_ext=c
 
13853
ac_cpp='$CPP $CPPFLAGS'
 
13854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13857
 
 
13858
CC=$lt_save_CC
 
13859
LDCXX=$LD
 
13860
LD=$lt_save_LD
 
13861
GCC=$lt_save_GCC
 
13862
with_gnu_ldcxx=$with_gnu_ld
 
13863
with_gnu_ld=$lt_save_with_gnu_ld
 
13864
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13865
lt_cv_path_LD=$lt_save_path_LD
 
13866
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13867
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13868
 
 
13869
        else
 
13870
          tagname=""
 
13871
        fi
 
13872
        ;;
 
13873
 
 
13874
      F77)
 
13875
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13876
 
 
13877
ac_ext=f
 
13878
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13879
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13880
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13881
 
 
13882
 
 
13883
archive_cmds_need_lc_F77=no
 
13884
allow_undefined_flag_F77=
 
13885
always_export_symbols_F77=no
 
13886
archive_expsym_cmds_F77=
 
13887
export_dynamic_flag_spec_F77=
 
13888
hardcode_direct_F77=no
 
13889
hardcode_libdir_flag_spec_F77=
 
13890
hardcode_libdir_flag_spec_ld_F77=
 
13891
hardcode_libdir_separator_F77=
 
13892
hardcode_minus_L_F77=no
 
13893
hardcode_automatic_F77=no
 
13894
module_cmds_F77=
 
13895
module_expsym_cmds_F77=
 
13896
link_all_deplibs_F77=unknown
 
13897
old_archive_cmds_F77=$old_archive_cmds
 
13898
no_undefined_flag_F77=
 
13899
whole_archive_flag_spec_F77=
 
13900
enable_shared_with_static_runtimes_F77=no
 
13901
 
 
13902
# Source file extension for f77 test sources.
 
13903
ac_ext=f
 
13904
 
 
13905
# Object file extension for compiled f77 test sources.
 
13906
objext=o
 
13907
objext_F77=$objext
 
13908
 
 
13909
# Code to be used in simple compile tests
 
13910
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13911
 
 
13912
# Code to be used in simple link tests
 
13913
lt_simple_link_test_code="      program t\n      end\n"
 
13914
 
 
13915
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13916
 
 
13917
# If no C compiler was specified, use CC.
 
13918
LTCC=${LTCC-"$CC"}
 
13919
 
 
13920
# Allow CC to be a program name with arguments.
 
13921
compiler=$CC
 
13922
 
 
13923
 
 
13924
# Allow CC to be a program name with arguments.
 
13925
lt_save_CC="$CC"
 
13926
CC=${F77-"f77"}
 
13927
compiler=$CC
 
13928
compiler_F77=$CC
 
13929
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13930
 
 
13931
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13932
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13933
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13934
echo "${ECHO_T}$can_build_shared" >&6
 
13935
 
 
13936
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13937
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13938
test "$can_build_shared" = "no" && enable_shared=no
 
13939
 
 
13940
# On AIX, shared libraries and static libraries use the same namespace, and
 
13941
# are all built from PIC.
 
13942
case "$host_os" in
 
13943
aix3*)
 
13944
  test "$enable_shared" = yes && enable_static=no
 
13945
  if test -n "$RANLIB"; then
 
13946
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13947
    postinstall_cmds='$RANLIB $lib'
 
13948
  fi
 
13949
  ;;
 
13950
aix4* | aix5*)
 
13951
  test "$enable_shared" = yes && enable_static=no
 
13952
  ;;
 
13953
esac
 
13954
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13955
echo "${ECHO_T}$enable_shared" >&6
 
13956
 
 
13957
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13958
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13959
# Make sure either enable_shared or enable_static is yes.
 
13960
test "$enable_shared" = yes || enable_static=yes
 
13961
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13962
echo "${ECHO_T}$enable_static" >&6
 
13963
 
 
13964
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13965
 
 
13966
GCC_F77="$G77"
 
13967
LD_F77="$LD"
 
13968
 
 
13969
lt_prog_compiler_wl_F77=
 
13970
lt_prog_compiler_pic_F77=
 
13971
lt_prog_compiler_static_F77=
 
13972
 
 
13973
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13974
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13975
 
 
13976
  if test "$GCC" = yes; then
 
13977
    lt_prog_compiler_wl_F77='-Wl,'
 
13978
    lt_prog_compiler_static_F77='-static'
 
13979
 
 
13980
    case $host_os in
 
13981
      aix*)
 
13982
      # All AIX code is PIC.
 
13983
      if test "$host_cpu" = ia64; then
 
13984
        # AIX 5 now supports IA64 processor
 
13985
        lt_prog_compiler_static_F77='-Bstatic'
 
13986
      fi
 
13987
      ;;
 
13988
 
 
13989
    amigaos*)
 
13990
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13991
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13992
      # like `-m68040'.
 
13993
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13994
      ;;
 
13995
 
 
13996
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13997
      # PIC is the default for these OSes.
 
13998
      ;;
 
13999
 
 
14000
    mingw* | pw32* | os2*)
 
14001
      # This hack is so that the source file can tell whether it is being
 
14002
      # built for inclusion in a dll (and should export symbols for example).
 
14003
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14004
      ;;
 
14005
 
 
14006
    darwin* | rhapsody*)
 
14007
      # PIC is the default on this platform
 
14008
      # Common symbols not allowed in MH_DYLIB files
 
14009
      lt_prog_compiler_pic_F77='-fno-common'
 
14010
      ;;
 
14011
 
 
14012
    msdosdjgpp*)
 
14013
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14014
      # on systems that don't support them.
 
14015
      lt_prog_compiler_can_build_shared_F77=no
 
14016
      enable_shared=no
 
14017
      ;;
 
14018
 
 
14019
    sysv4*MP*)
 
14020
      if test -d /usr/nec; then
 
14021
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14022
      fi
 
14023
      ;;
 
14024
 
 
14025
    hpux*)
 
14026
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14027
      # not for PA HP-UX.
 
14028
      case "$host_cpu" in
 
14029
      hppa*64*|ia64*)
 
14030
        # +Z the default
 
14031
        ;;
 
14032
      *)
 
14033
        lt_prog_compiler_pic_F77='-fPIC'
 
14034
        ;;
 
14035
      esac
 
14036
      ;;
 
14037
 
 
14038
    *)
 
14039
      lt_prog_compiler_pic_F77='-fPIC'
 
14040
      ;;
 
14041
    esac
 
14042
  else
 
14043
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14044
    case $host_os in
 
14045
    aix*)
 
14046
      lt_prog_compiler_wl_F77='-Wl,'
 
14047
      if test "$host_cpu" = ia64; then
 
14048
        # AIX 5 now supports IA64 processor
 
14049
        lt_prog_compiler_static_F77='-Bstatic'
 
14050
      else
 
14051
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14052
      fi
 
14053
      ;;
 
14054
 
 
14055
    mingw* | pw32* | os2*)
 
14056
      # This hack is so that the source file can tell whether it is being
 
14057
      # built for inclusion in a dll (and should export symbols for example).
 
14058
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14059
      ;;
 
14060
 
 
14061
    hpux9* | hpux10* | hpux11*)
 
14062
      lt_prog_compiler_wl_F77='-Wl,'
 
14063
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14064
      # not for PA HP-UX.
 
14065
      case "$host_cpu" in
 
14066
      hppa*64*|ia64*)
 
14067
        # +Z the default
 
14068
        ;;
 
14069
      *)
 
14070
        lt_prog_compiler_pic_F77='+Z'
 
14071
        ;;
 
14072
      esac
 
14073
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14074
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14075
      ;;
 
14076
 
 
14077
    irix5* | irix6* | nonstopux*)
 
14078
      lt_prog_compiler_wl_F77='-Wl,'
 
14079
      # PIC (with -KPIC) is the default.
 
14080
      lt_prog_compiler_static_F77='-non_shared'
 
14081
      ;;
 
14082
 
 
14083
    newsos6)
 
14084
      lt_prog_compiler_pic_F77='-KPIC'
 
14085
      lt_prog_compiler_static_F77='-Bstatic'
 
14086
      ;;
 
14087
 
 
14088
    linux*)
 
14089
      case $CC in
 
14090
      icc* | ecc*)
 
14091
        lt_prog_compiler_wl_F77='-Wl,'
 
14092
        lt_prog_compiler_pic_F77='-KPIC'
 
14093
        lt_prog_compiler_static_F77='-static'
 
14094
        ;;
 
14095
      ccc*)
 
14096
        lt_prog_compiler_wl_F77='-Wl,'
 
14097
        # All Alpha code is PIC.
 
14098
        lt_prog_compiler_static_F77='-non_shared'
 
14099
        ;;
 
14100
      esac
 
14101
      ;;
 
14102
 
 
14103
    osf3* | osf4* | osf5*)
 
14104
      lt_prog_compiler_wl_F77='-Wl,'
 
14105
      # All OSF/1 code is PIC.
 
14106
      lt_prog_compiler_static_F77='-non_shared'
 
14107
      ;;
 
14108
 
 
14109
    sco3.2v5*)
 
14110
      lt_prog_compiler_pic_F77='-Kpic'
 
14111
      lt_prog_compiler_static_F77='-dn'
 
14112
      ;;
 
14113
 
 
14114
    solaris*)
 
14115
      lt_prog_compiler_wl_F77='-Wl,'
 
14116
      lt_prog_compiler_pic_F77='-KPIC'
 
14117
      lt_prog_compiler_static_F77='-Bstatic'
 
14118
      ;;
 
14119
 
 
14120
    sunos4*)
 
14121
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14122
      lt_prog_compiler_pic_F77='-PIC'
 
14123
      lt_prog_compiler_static_F77='-Bstatic'
 
14124
      ;;
 
14125
 
 
14126
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14127
      lt_prog_compiler_wl_F77='-Wl,'
 
14128
      lt_prog_compiler_pic_F77='-KPIC'
 
14129
      lt_prog_compiler_static_F77='-Bstatic'
 
14130
      ;;
 
14131
 
 
14132
    sysv4*MP*)
 
14133
      if test -d /usr/nec ;then
 
14134
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14135
        lt_prog_compiler_static_F77='-Bstatic'
 
14136
      fi
 
14137
      ;;
 
14138
 
 
14139
    uts4*)
 
14140
      lt_prog_compiler_pic_F77='-pic'
 
14141
      lt_prog_compiler_static_F77='-Bstatic'
 
14142
      ;;
 
14143
 
 
14144
    *)
 
14145
      lt_prog_compiler_can_build_shared_F77=no
 
14146
      ;;
 
14147
    esac
 
14148
  fi
 
14149
 
 
14150
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14151
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14152
 
 
14153
#
 
14154
# Check to make sure the PIC flag actually works.
 
14155
#
 
14156
if test -n "$lt_prog_compiler_pic_F77"; then
 
14157
 
 
14158
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14159
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14160
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14162
else
 
14163
  lt_prog_compiler_pic_works_F77=no
 
14164
  ac_outfile=conftest.$ac_objext
 
14165
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14166
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14167
   # Insert the option either (1) after the last *FLAGS variable, or
 
14168
   # (2) before a word containing "conftest.", or (3) at the end.
 
14169
   # Note that $ac_compile itself does not contain backslashes and begins
 
14170
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14171
   # The option is referenced via a variable to avoid confusing sed.
 
14172
   lt_compile=`echo "$ac_compile" | $SED \
 
14173
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14174
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14175
   -e 's:$: $lt_compiler_flag:'`
 
14176
   (eval echo "\"\$as_me:14176: $lt_compile\"" >&5)
 
14177
   (eval "$lt_compile" 2>conftest.err)
 
14178
   ac_status=$?
 
14179
   cat conftest.err >&5
 
14180
   echo "$as_me:14180: \$? = $ac_status" >&5
 
14181
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14182
     # The compiler can only warn and ignore the option if not recognized
 
14183
     # So say no if there are warnings
 
14184
     if test ! -s conftest.err; then
 
14185
       lt_prog_compiler_pic_works_F77=yes
 
14186
     fi
 
14187
   fi
 
14188
   $rm conftest*
 
14189
 
 
14190
fi
 
14191
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14192
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14193
 
 
14194
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14195
    case $lt_prog_compiler_pic_F77 in
 
14196
     "" | " "*) ;;
 
14197
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14198
     esac
 
14199
else
 
14200
    lt_prog_compiler_pic_F77=
 
14201
     lt_prog_compiler_can_build_shared_F77=no
 
14202
fi
 
14203
 
 
14204
fi
 
14205
case "$host_os" in
 
14206
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14207
  *djgpp*)
 
14208
    lt_prog_compiler_pic_F77=
 
14209
    ;;
 
14210
  *)
 
14211
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14212
    ;;
 
14213
esac
 
14214
 
 
14215
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14216
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14217
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14219
else
 
14220
  lt_cv_prog_compiler_c_o_F77=no
 
14221
   $rm -r conftest 2>/dev/null
 
14222
   mkdir conftest
 
14223
   cd conftest
 
14224
   mkdir out
 
14225
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14226
 
 
14227
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14228
   # Insert the option either (1) after the last *FLAGS variable, or
 
14229
   # (2) before a word containing "conftest.", or (3) at the end.
 
14230
   # Note that $ac_compile itself does not contain backslashes and begins
 
14231
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14232
   lt_compile=`echo "$ac_compile" | $SED \
 
14233
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14234
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14235
   -e 's:$: $lt_compiler_flag:'`
 
14236
   (eval echo "\"\$as_me:14236: $lt_compile\"" >&5)
 
14237
   (eval "$lt_compile" 2>out/conftest.err)
 
14238
   ac_status=$?
 
14239
   cat out/conftest.err >&5
 
14240
   echo "$as_me:14240: \$? = $ac_status" >&5
 
14241
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14242
   then
 
14243
     # The compiler can only warn and ignore the option if not recognized
 
14244
     # So say no if there are warnings
 
14245
     if test ! -s out/conftest.err; then
 
14246
       lt_cv_prog_compiler_c_o_F77=yes
 
14247
     fi
 
14248
   fi
 
14249
   chmod u+w .
 
14250
   $rm conftest*
 
14251
   # SGI C++ compiler will create directory out/ii_files/ for
 
14252
   # template instantiation
 
14253
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14254
   $rm out/* && rmdir out
 
14255
   cd ..
 
14256
   rmdir conftest
 
14257
   $rm conftest*
 
14258
 
 
14259
fi
 
14260
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14261
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14262
 
 
14263
 
 
14264
hard_links="nottested"
 
14265
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14266
  # do not overwrite the value of need_locks provided by the user
 
14267
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14268
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14269
  hard_links=yes
 
14270
  $rm conftest*
 
14271
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14272
  touch conftest.a
 
14273
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14274
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14275
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
14276
echo "${ECHO_T}$hard_links" >&6
 
14277
  if test "$hard_links" = no; then
 
14278
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14279
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14280
    need_locks=warn
 
14281
  fi
 
14282
else
 
14283
  need_locks=no
 
14284
fi
 
14285
 
 
14286
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14287
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14288
 
 
14289
  runpath_var=
 
14290
  allow_undefined_flag_F77=
 
14291
  enable_shared_with_static_runtimes_F77=no
 
14292
  archive_cmds_F77=
 
14293
  archive_expsym_cmds_F77=
 
14294
  old_archive_From_new_cmds_F77=
 
14295
  old_archive_from_expsyms_cmds_F77=
 
14296
  export_dynamic_flag_spec_F77=
 
14297
  whole_archive_flag_spec_F77=
 
14298
  thread_safe_flag_spec_F77=
 
14299
  hardcode_libdir_flag_spec_F77=
 
14300
  hardcode_libdir_flag_spec_ld_F77=
 
14301
  hardcode_libdir_separator_F77=
 
14302
  hardcode_direct_F77=no
 
14303
  hardcode_minus_L_F77=no
 
14304
  hardcode_shlibpath_var_F77=unsupported
 
14305
  link_all_deplibs_F77=unknown
 
14306
  hardcode_automatic_F77=no
 
14307
  module_cmds_F77=
 
14308
  module_expsym_cmds_F77=
 
14309
  always_export_symbols_F77=no
 
14310
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14311
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14312
  # included in the symbol list
 
14313
  include_expsyms_F77=
 
14314
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14315
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14316
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14317
  # as well as any symbol that contains `d'.
 
14318
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14319
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14320
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14321
  # the symbol is explicitly referenced.  Since portable code cannot
 
14322
  # rely on this symbol name, it's probably fine to never include it in
 
14323
  # preloaded symbol tables.
 
14324
  extract_expsyms_cmds=
 
14325
 
 
14326
  case $host_os in
 
14327
  cygwin* | mingw* | pw32*)
 
14328
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14329
    # When not using gcc, we currently assume that we are using
 
14330
    # Microsoft Visual C++.
 
14331
    if test "$GCC" != yes; then
 
14332
      with_gnu_ld=no
 
14333
    fi
 
14334
    ;;
 
14335
  openbsd*)
 
14336
    with_gnu_ld=no
 
14337
    ;;
 
14338
  esac
 
14339
 
 
14340
  ld_shlibs_F77=yes
 
14341
  if test "$with_gnu_ld" = yes; then
 
14342
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14343
    wlarc='${wl}'
 
14344
 
 
14345
    # See if GNU ld supports shared libraries.
 
14346
    case $host_os in
 
14347
    aix3* | aix4* | aix5*)
 
14348
      # On AIX/PPC, the GNU linker is very broken
 
14349
      if test "$host_cpu" != ia64; then
 
14350
        ld_shlibs_F77=no
 
14351
        cat <<EOF 1>&2
 
14352
 
 
14353
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14354
*** to be unable to reliably create shared libraries on AIX.
 
14355
*** Therefore, libtool is disabling shared libraries support.  If you
 
14356
*** really care for shared libraries, you may want to modify your PATH
 
14357
*** so that a non-GNU linker is found, and then restart.
 
14358
 
 
14359
EOF
 
14360
      fi
 
14361
      ;;
 
14362
 
 
14363
    amigaos*)
 
14364
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
14365
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14366
      hardcode_minus_L_F77=yes
 
14367
 
 
14368
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14369
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14370
      # to version 4, is to share data among multiple programs linked
 
14371
      # with the same dynamic library.  Since this doesn't match the
 
14372
      # behavior of shared libraries on other platforms, we can't use
 
14373
      # them.
 
14374
      ld_shlibs_F77=no
 
14375
      ;;
 
14376
 
 
14377
    beos*)
 
14378
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14379
        allow_undefined_flag_F77=unsupported
 
14380
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14381
        # support --undefined.  This deserves some investigation.  FIXME
 
14382
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14383
      else
 
14384
        ld_shlibs_F77=no
 
14385
      fi
 
14386
      ;;
 
14387
 
 
14388
    cygwin* | mingw* | pw32*)
 
14389
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14390
      # as there is no search path for DLLs.
 
14391
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14392
      allow_undefined_flag_F77=unsupported
 
14393
      always_export_symbols_F77=no
 
14394
      enable_shared_with_static_runtimes_F77=yes
 
14395
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14396
 
 
14397
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14398
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14399
        # If the export-symbols file already is a .def file (1st line
 
14400
        # is EXPORTS), use it as is; otherwise, prepend...
 
14401
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14402
          cp $export_symbols $output_objdir/$soname.def;
 
14403
        else
 
14404
          echo EXPORTS > $output_objdir/$soname.def;
 
14405
          cat $export_symbols >> $output_objdir/$soname.def;
 
14406
        fi~
 
14407
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14408
      else
 
14409
        ld_shlibs=no
 
14410
      fi
 
14411
      ;;
 
14412
 
 
14413
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14414
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14415
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14416
        wlarc=
 
14417
      else
 
14418
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14419
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14420
      fi
 
14421
      ;;
 
14422
 
 
14423
    solaris* | sysv5*)
 
14424
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14425
        ld_shlibs_F77=no
 
14426
        cat <<EOF 1>&2
 
14427
 
 
14428
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14429
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14430
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14431
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14432
*** your PATH or compiler configuration so that the native linker is
 
14433
*** used, and then restart.
 
14434
 
 
14435
EOF
 
14436
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14437
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14438
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14439
      else
 
14440
        ld_shlibs_F77=no
 
14441
      fi
 
14442
      ;;
 
14443
 
 
14444
    sunos4*)
 
14445
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14446
      wlarc=
 
14447
      hardcode_direct_F77=yes
 
14448
      hardcode_shlibpath_var_F77=no
 
14449
      ;;
 
14450
 
 
14451
  linux*)
 
14452
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14453
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14454
        archive_cmds_F77="$tmp_archive_cmds"
 
14455
      supports_anon_versioning=no
 
14456
      case `$LD -v 2>/dev/null` in
 
14457
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14458
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14459
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14460
        *\ 2.11.*) ;; # other 2.11 versions
 
14461
        *) supports_anon_versioning=yes ;;
 
14462
      esac
 
14463
      if test $supports_anon_versioning = yes; then
 
14464
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14465
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14466
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14467
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14468
      else
 
14469
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
14470
      fi
 
14471
      link_all_deplibs_F77=no
 
14472
    else
 
14473
      ld_shlibs_F77=no
 
14474
    fi
 
14475
    ;;
 
14476
 
 
14477
    *)
 
14478
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14479
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14480
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14481
      else
 
14482
        ld_shlibs_F77=no
 
14483
      fi
 
14484
      ;;
 
14485
    esac
 
14486
 
 
14487
    if test "$ld_shlibs_F77" = yes; then
 
14488
      runpath_var=LD_RUN_PATH
 
14489
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14490
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14491
      # ancient GNU ld didn't support --whole-archive et. al.
 
14492
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14493
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14494
      else
 
14495
        whole_archive_flag_spec_F77=
 
14496
      fi
 
14497
    fi
 
14498
  else
 
14499
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14500
    case $host_os in
 
14501
    aix3*)
 
14502
      allow_undefined_flag_F77=unsupported
 
14503
      always_export_symbols_F77=yes
 
14504
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
14505
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14506
      # are no directories specified by -L.
 
14507
      hardcode_minus_L_F77=yes
 
14508
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14509
        # Neither direct hardcoding nor static linking is supported with a
 
14510
        # broken collect2.
 
14511
        hardcode_direct_F77=unsupported
 
14512
      fi
 
14513
      ;;
 
14514
 
 
14515
    aix4* | aix5*)
 
14516
      if test "$host_cpu" = ia64; then
 
14517
        # On IA64, the linker does run time linking by default, so we don't
 
14518
        # have to do anything special.
 
14519
        aix_use_runtimelinking=no
 
14520
        exp_sym_flag='-Bexport'
 
14521
        no_entry_flag=""
 
14522
      else
 
14523
        # If we're using GNU nm, then we don't want the "-C" option.
 
14524
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14525
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14526
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14527
        else
 
14528
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14529
        fi
 
14530
        aix_use_runtimelinking=no
 
14531
 
 
14532
        # Test if we are trying to use run time linking or normal
 
14533
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14534
        # need to do runtime linking.
 
14535
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14536
          for ld_flag in $LDFLAGS; do
 
14537
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14538
            aix_use_runtimelinking=yes
 
14539
            break
 
14540
          fi
 
14541
          done
 
14542
        esac
 
14543
 
 
14544
        exp_sym_flag='-bexport'
 
14545
        no_entry_flag='-bnoentry'
 
14546
      fi
 
14547
 
 
14548
      # When large executables or shared objects are built, AIX ld can
 
14549
      # have problems creating the table of contents.  If linking a library
 
14550
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14551
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14552
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14553
 
 
14554
      archive_cmds_F77=''
 
14555
      hardcode_direct_F77=yes
 
14556
      hardcode_libdir_separator_F77=':'
 
14557
      link_all_deplibs_F77=yes
 
14558
 
 
14559
      if test "$GCC" = yes; then
 
14560
        case $host_os in aix4.012|aix4.012.*)
 
14561
        # We only want to do this on AIX 4.2 and lower, the check
 
14562
        # below for broken collect2 doesn't work under 4.3+
 
14563
          collect2name=`${CC} -print-prog-name=collect2`
 
14564
          if test -f "$collect2name" && \
 
14565
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14566
          then
 
14567
          # We have reworked collect2
 
14568
          hardcode_direct_F77=yes
 
14569
          else
 
14570
          # We have old collect2
 
14571
          hardcode_direct_F77=unsupported
 
14572
          # It fails to find uninstalled libraries when the uninstalled
 
14573
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14574
          # to unsupported forces relinking
 
14575
          hardcode_minus_L_F77=yes
 
14576
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14577
          hardcode_libdir_separator_F77=
 
14578
          fi
 
14579
        esac
 
14580
        shared_flag='-shared'
 
14581
      else
 
14582
        # not using gcc
 
14583
        if test "$host_cpu" = ia64; then
 
14584
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14585
        # chokes on -Wl,-G. The following line is correct:
 
14586
          shared_flag='-G'
 
14587
        else
 
14588
        if test "$aix_use_runtimelinking" = yes; then
 
14589
            shared_flag='${wl}-G'
 
14590
          else
 
14591
            shared_flag='${wl}-bM:SRE'
 
14592
        fi
 
14593
        fi
 
14594
      fi
 
14595
 
 
14596
      # It seems that -bexpall does not export symbols beginning with
 
14597
      # underscore (_), so it is better to generate a list of symbols to export.
 
14598
      always_export_symbols_F77=yes
 
14599
      if test "$aix_use_runtimelinking" = yes; then
 
14600
        # Warning - without using the other runtime loading flags (-brtl),
 
14601
        # -berok will link without error, but may produce a broken library.
 
14602
        allow_undefined_flag_F77='-berok'
 
14603
       # Determine the default libpath from the value encoded in an empty executable.
 
14604
       cat >conftest.$ac_ext <<_ACEOF
 
14605
      program main
 
14606
 
 
14607
      end
 
14608
_ACEOF
 
14609
rm -f conftest.$ac_objext conftest$ac_exeext
 
14610
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14611
  (eval $ac_link) 2>conftest.er1
 
14612
  ac_status=$?
 
14613
  grep -v '^ *+' conftest.er1 >conftest.err
 
14614
  rm -f conftest.er1
 
14615
  cat conftest.err >&5
 
14616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14617
  (exit $ac_status); } &&
 
14618
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14620
  (eval $ac_try) 2>&5
 
14621
  ac_status=$?
 
14622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14623
  (exit $ac_status); }; } &&
 
14624
         { ac_try='test -s conftest$ac_exeext'
 
14625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14626
  (eval $ac_try) 2>&5
 
14627
  ac_status=$?
 
14628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14629
  (exit $ac_status); }; }; then
 
14630
 
 
14631
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14632
}'`
 
14633
# Check for a 64-bit object if we didn't find anything.
 
14634
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14635
}'`; fi
 
14636
else
 
14637
  echo "$as_me: failed program was:" >&5
 
14638
sed 's/^/| /' conftest.$ac_ext >&5
 
14639
 
 
14640
fi
 
14641
rm -f conftest.err conftest.$ac_objext \
 
14642
      conftest$ac_exeext conftest.$ac_ext
 
14643
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14644
 
 
14645
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14646
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14647
       else
 
14648
        if test "$host_cpu" = ia64; then
 
14649
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14650
          allow_undefined_flag_F77="-z nodefs"
 
14651
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
14652
        else
 
14653
         # Determine the default libpath from the value encoded in an empty executable.
 
14654
         cat >conftest.$ac_ext <<_ACEOF
 
14655
      program main
 
14656
 
 
14657
      end
 
14658
_ACEOF
 
14659
rm -f conftest.$ac_objext conftest$ac_exeext
 
14660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14661
  (eval $ac_link) 2>conftest.er1
 
14662
  ac_status=$?
 
14663
  grep -v '^ *+' conftest.er1 >conftest.err
 
14664
  rm -f conftest.er1
 
14665
  cat conftest.err >&5
 
14666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14667
  (exit $ac_status); } &&
 
14668
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14670
  (eval $ac_try) 2>&5
 
14671
  ac_status=$?
 
14672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14673
  (exit $ac_status); }; } &&
 
14674
         { ac_try='test -s conftest$ac_exeext'
 
14675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14676
  (eval $ac_try) 2>&5
 
14677
  ac_status=$?
 
14678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14679
  (exit $ac_status); }; }; then
 
14680
 
 
14681
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14682
}'`
 
14683
# Check for a 64-bit object if we didn't find anything.
 
14684
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14685
}'`; fi
 
14686
else
 
14687
  echo "$as_me: failed program was:" >&5
 
14688
sed 's/^/| /' conftest.$ac_ext >&5
 
14689
 
 
14690
fi
 
14691
rm -f conftest.err conftest.$ac_objext \
 
14692
      conftest$ac_exeext conftest.$ac_ext
 
14693
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14694
 
 
14695
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14696
          # Warning - without using the other run time loading flags,
 
14697
          # -berok will link without error, but may produce a broken library.
 
14698
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14699
          allow_undefined_flag_F77=' ${wl}-berok'
 
14700
          # -bexpall does not export symbols beginning with underscore (_)
 
14701
          always_export_symbols_F77=yes
 
14702
          # Exported symbols can be pulled into shared objects from archives
 
14703
          whole_archive_flag_spec_F77=' '
 
14704
          archive_cmds_need_lc_F77=yes
 
14705
          # This is similar to how AIX traditionally builds it's shared libraries.
 
14706
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
14707
        fi
 
14708
      fi
 
14709
      ;;
 
14710
 
 
14711
    amigaos*)
 
14712
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
14713
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14714
      hardcode_minus_L_F77=yes
 
14715
      # see comment about different semantics on the GNU ld section
 
14716
      ld_shlibs_F77=no
 
14717
      ;;
 
14718
 
 
14719
    bsdi4*)
 
14720
      export_dynamic_flag_spec_F77=-rdynamic
 
14721
      ;;
 
14722
 
 
14723
    cygwin* | mingw* | pw32*)
 
14724
      # When not using gcc, we currently assume that we are using
 
14725
      # Microsoft Visual C++.
 
14726
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14727
      # no search path for DLLs.
 
14728
      hardcode_libdir_flag_spec_F77=' '
 
14729
      allow_undefined_flag_F77=unsupported
 
14730
      # Tell ltmain to make .lib files, not .a files.
 
14731
      libext=lib
 
14732
      # Tell ltmain to make .dll files, not .so files.
 
14733
      shrext_cmds=".dll"
 
14734
      # FIXME: Setting linknames here is a bad hack.
 
14735
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14736
      # The linker will automatically build a .lib file if we build a DLL.
 
14737
      old_archive_From_new_cmds_F77='true'
 
14738
      # FIXME: Should let the user specify the lib program.
 
14739
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14740
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14741
      enable_shared_with_static_runtimes_F77=yes
 
14742
      ;;
 
14743
 
 
14744
    darwin* | rhapsody*)
 
14745
    if test "$GXX" = yes ; then
 
14746
      archive_cmds_need_lc_F77=no
 
14747
      case "$host_os" in
 
14748
      rhapsody* | darwin1.[012])
 
14749
        allow_undefined_flag_F77='-undefined suppress'
 
14750
        ;;
 
14751
      *) # Darwin 1.3 on
 
14752
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14753
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14754
      else
 
14755
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
14756
          10.[012])
 
14757
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14758
            ;;
 
14759
          10.*)
 
14760
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
14761
            ;;
 
14762
        esac
 
14763
      fi
 
14764
        ;;
 
14765
      esac
 
14766
        lt_int_apple_cc_single_mod=no
 
14767
        output_verbose_link_cmd='echo'
 
14768
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
14769
          lt_int_apple_cc_single_mod=yes
 
14770
        fi
 
14771
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14772
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14773
        else
 
14774
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14775
      fi
 
14776
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14777
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14778
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14779
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14780
        else
 
14781
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14782
        fi
 
14783
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14784
      hardcode_direct_F77=no
 
14785
      hardcode_automatic_F77=yes
 
14786
      hardcode_shlibpath_var_F77=unsupported
 
14787
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14788
      link_all_deplibs_F77=yes
 
14789
    else
 
14790
      ld_shlibs_F77=no
 
14791
    fi
 
14792
      ;;
 
14793
 
 
14794
    dgux*)
 
14795
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14796
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14797
      hardcode_shlibpath_var_F77=no
 
14798
      ;;
 
14799
 
 
14800
    freebsd1*)
 
14801
      ld_shlibs_F77=no
 
14802
      ;;
 
14803
 
 
14804
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14805
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14806
    # does not break anything, and helps significantly (at the cost of a little
 
14807
    # extra space).
 
14808
    freebsd2.2*)
 
14809
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14810
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14811
      hardcode_direct_F77=yes
 
14812
      hardcode_shlibpath_var_F77=no
 
14813
      ;;
 
14814
 
 
14815
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14816
    freebsd2*)
 
14817
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14818
      hardcode_direct_F77=yes
 
14819
      hardcode_minus_L_F77=yes
 
14820
      hardcode_shlibpath_var_F77=no
 
14821
      ;;
 
14822
 
 
14823
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14824
    freebsd* | kfreebsd*-gnu)
 
14825
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14826
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14827
      hardcode_direct_F77=yes
 
14828
      hardcode_shlibpath_var_F77=no
 
14829
      ;;
 
14830
 
 
14831
    hpux9*)
 
14832
      if test "$GCC" = yes; then
 
14833
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14834
      else
 
14835
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
14836
      fi
 
14837
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14838
      hardcode_libdir_separator_F77=:
 
14839
      hardcode_direct_F77=yes
 
14840
 
 
14841
      # hardcode_minus_L: Not really in the search PATH,
 
14842
      # but as the default location of the library.
 
14843
      hardcode_minus_L_F77=yes
 
14844
      export_dynamic_flag_spec_F77='${wl}-E'
 
14845
      ;;
 
14846
 
 
14847
    hpux10* | hpux11*)
 
14848
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14849
        case "$host_cpu" in
 
14850
        hppa*64*|ia64*)
 
14851
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14852
          ;;
 
14853
        *)
 
14854
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14855
          ;;
 
14856
        esac
 
14857
      else
 
14858
        case "$host_cpu" in
 
14859
        hppa*64*|ia64*)
 
14860
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14861
          ;;
 
14862
        *)
 
14863
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14864
          ;;
 
14865
        esac
 
14866
      fi
 
14867
      if test "$with_gnu_ld" = no; then
 
14868
        case "$host_cpu" in
 
14869
        hppa*64*)
 
14870
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14871
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14872
          hardcode_libdir_separator_F77=:
 
14873
          hardcode_direct_F77=no
 
14874
          hardcode_shlibpath_var_F77=no
 
14875
          ;;
 
14876
        ia64*)
 
14877
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14878
          hardcode_direct_F77=no
 
14879
          hardcode_shlibpath_var_F77=no
 
14880
 
 
14881
          # hardcode_minus_L: Not really in the search PATH,
 
14882
          # but as the default location of the library.
 
14883
          hardcode_minus_L_F77=yes
 
14884
          ;;
 
14885
        *)
 
14886
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14887
          hardcode_libdir_separator_F77=:
 
14888
          hardcode_direct_F77=yes
 
14889
          export_dynamic_flag_spec_F77='${wl}-E'
 
14890
 
 
14891
          # hardcode_minus_L: Not really in the search PATH,
 
14892
          # but as the default location of the library.
 
14893
          hardcode_minus_L_F77=yes
 
14894
          ;;
 
14895
        esac
 
14896
      fi
 
14897
      ;;
 
14898
 
 
14899
    irix5* | irix6* | nonstopux*)
 
14900
      if test "$GCC" = yes; then
 
14901
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14902
      else
 
14903
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14904
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14905
      fi
 
14906
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14907
      hardcode_libdir_separator_F77=:
 
14908
      link_all_deplibs_F77=yes
 
14909
      ;;
 
14910
 
 
14911
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14912
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14913
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14914
      else
 
14915
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14916
      fi
 
14917
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14918
      hardcode_direct_F77=yes
 
14919
      hardcode_shlibpath_var_F77=no
 
14920
      ;;
 
14921
 
 
14922
    newsos6)
 
14923
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14924
      hardcode_direct_F77=yes
 
14925
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14926
      hardcode_libdir_separator_F77=:
 
14927
      hardcode_shlibpath_var_F77=no
 
14928
      ;;
 
14929
 
 
14930
    openbsd*)
 
14931
      hardcode_direct_F77=yes
 
14932
      hardcode_shlibpath_var_F77=no
 
14933
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14934
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14935
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14936
        export_dynamic_flag_spec_F77='${wl}-E'
 
14937
      else
 
14938
       case $host_os in
 
14939
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14940
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14941
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14942
           ;;
 
14943
         *)
 
14944
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14945
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14946
           ;;
 
14947
       esac
 
14948
      fi
 
14949
      ;;
 
14950
 
 
14951
    os2*)
 
14952
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14953
      hardcode_minus_L_F77=yes
 
14954
      allow_undefined_flag_F77=unsupported
 
14955
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
14956
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14957
      ;;
 
14958
 
 
14959
    osf3*)
 
14960
      if test "$GCC" = yes; then
 
14961
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14962
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14963
      else
 
14964
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14965
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14966
      fi
 
14967
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14968
      hardcode_libdir_separator_F77=:
 
14969
      ;;
 
14970
 
 
14971
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14972
      if test "$GCC" = yes; then
 
14973
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14974
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14975
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14976
      else
 
14977
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14978
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
14979
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
14980
        $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'
 
14981
 
 
14982
        # Both c and cxx compiler support -rpath directly
 
14983
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14984
      fi
 
14985
      hardcode_libdir_separator_F77=:
 
14986
      ;;
 
14987
 
 
14988
    sco3.2v5*)
 
14989
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14990
      hardcode_shlibpath_var_F77=no
 
14991
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14992
      runpath_var=LD_RUN_PATH
 
14993
      hardcode_runpath_var=yes
 
14994
      ;;
 
14995
 
 
14996
    solaris*)
 
14997
      no_undefined_flag_F77=' -z text'
 
14998
      if test "$GCC" = yes; then
 
14999
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15000
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15001
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15002
      else
 
15003
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15004
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15005
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15006
      fi
 
15007
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15008
      hardcode_shlibpath_var_F77=no
 
15009
      case $host_os in
 
15010
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15011
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15012
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15013
      esac
 
15014
      link_all_deplibs_F77=yes
 
15015
      ;;
 
15016
 
 
15017
    sunos4*)
 
15018
      if test "x$host_vendor" = xsequent; then
 
15019
        # Use $CC to link under sequent, because it throws in some extra .o
 
15020
        # files that make .init and .fini sections work.
 
15021
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15022
      else
 
15023
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15024
      fi
 
15025
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15026
      hardcode_direct_F77=yes
 
15027
      hardcode_minus_L_F77=yes
 
15028
      hardcode_shlibpath_var_F77=no
 
15029
      ;;
 
15030
 
 
15031
    sysv4)
 
15032
      case $host_vendor in
 
15033
        sni)
 
15034
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15035
          hardcode_direct_F77=yes # is this really true???
 
15036
        ;;
 
15037
        siemens)
 
15038
          ## LD is ld it makes a PLAMLIB
 
15039
          ## CC just makes a GrossModule.
 
15040
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15041
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15042
          hardcode_direct_F77=no
 
15043
        ;;
 
15044
        motorola)
 
15045
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15046
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15047
        ;;
 
15048
      esac
 
15049
      runpath_var='LD_RUN_PATH'
 
15050
      hardcode_shlibpath_var_F77=no
 
15051
      ;;
 
15052
 
 
15053
    sysv4.3*)
 
15054
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15055
      hardcode_shlibpath_var_F77=no
 
15056
      export_dynamic_flag_spec_F77='-Bexport'
 
15057
      ;;
 
15058
 
 
15059
    sysv4*MP*)
 
15060
      if test -d /usr/nec; then
 
15061
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15062
        hardcode_shlibpath_var_F77=no
 
15063
        runpath_var=LD_RUN_PATH
 
15064
        hardcode_runpath_var=yes
 
15065
        ld_shlibs_F77=yes
 
15066
      fi
 
15067
      ;;
 
15068
 
 
15069
    sysv4.2uw2*)
 
15070
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15071
      hardcode_direct_F77=yes
 
15072
      hardcode_minus_L_F77=no
 
15073
      hardcode_shlibpath_var_F77=no
 
15074
      hardcode_runpath_var=yes
 
15075
      runpath_var=LD_RUN_PATH
 
15076
      ;;
 
15077
 
 
15078
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
15079
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
15080
      if test "$GCC" = yes; then
 
15081
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15082
      else
 
15083
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15084
      fi
 
15085
      runpath_var='LD_RUN_PATH'
 
15086
      hardcode_shlibpath_var_F77=no
 
15087
      ;;
 
15088
 
 
15089
    sysv5*)
 
15090
      no_undefined_flag_F77=' -z text'
 
15091
      # $CC -shared without GNU ld will not create a library from C++
 
15092
      # object files and a static libstdc++, better avoid it by now
 
15093
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15094
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15095
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15096
      hardcode_libdir_flag_spec_F77=
 
15097
      hardcode_shlibpath_var_F77=no
 
15098
      runpath_var='LD_RUN_PATH'
 
15099
      ;;
 
15100
 
 
15101
    uts4*)
 
15102
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15103
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15104
      hardcode_shlibpath_var_F77=no
 
15105
      ;;
 
15106
 
 
15107
    *)
 
15108
      ld_shlibs_F77=no
 
15109
      ;;
 
15110
    esac
 
15111
  fi
 
15112
 
 
15113
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15114
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15115
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15116
 
 
15117
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15118
if test "$GCC" = yes; then
 
15119
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15120
fi
 
15121
 
 
15122
#
 
15123
# Do we need to explicitly link libc?
 
15124
#
 
15125
case "x$archive_cmds_need_lc_F77" in
 
15126
x|xyes)
 
15127
  # Assume -lc should be added
 
15128
  archive_cmds_need_lc_F77=yes
 
15129
 
 
15130
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15131
    case $archive_cmds_F77 in
 
15132
    *'~'*)
 
15133
      # FIXME: we may have to deal with multi-command sequences.
 
15134
      ;;
 
15135
    '$CC '*)
 
15136
      # Test whether the compiler implicitly links with -lc since on some
 
15137
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15138
      # to ld, don't add -lc before -lgcc.
 
15139
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15140
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15141
      $rm conftest*
 
15142
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15143
 
 
15144
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15145
  (eval $ac_compile) 2>&5
 
15146
  ac_status=$?
 
15147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15148
  (exit $ac_status); } 2>conftest.err; then
 
15149
        soname=conftest
 
15150
        lib=conftest
 
15151
        libobjs=conftest.$ac_objext
 
15152
        deplibs=
 
15153
        wl=$lt_prog_compiler_wl_F77
 
15154
        compiler_flags=-v
 
15155
        linker_flags=-v
 
15156
        verstring=
 
15157
        output_objdir=.
 
15158
        libname=conftest
 
15159
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15160
        allow_undefined_flag_F77=
 
15161
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15162
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15163
  ac_status=$?
 
15164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15165
  (exit $ac_status); }
 
15166
        then
 
15167
          archive_cmds_need_lc_F77=no
 
15168
        else
 
15169
          archive_cmds_need_lc_F77=yes
 
15170
        fi
 
15171
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15172
      else
 
15173
        cat conftest.err 1>&5
 
15174
      fi
 
15175
      $rm conftest*
 
15176
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15177
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15178
      ;;
 
15179
    esac
 
15180
  fi
 
15181
  ;;
 
15182
esac
 
15183
 
 
15184
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15185
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15186
library_names_spec=
 
15187
libname_spec='lib$name'
 
15188
soname_spec=
 
15189
shrext_cmds=".so"
 
15190
postinstall_cmds=
 
15191
postuninstall_cmds=
 
15192
finish_cmds=
 
15193
finish_eval=
 
15194
shlibpath_var=
 
15195
shlibpath_overrides_runpath=unknown
 
15196
version_type=none
 
15197
dynamic_linker="$host_os ld.so"
 
15198
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15199
if test "$GCC" = yes; then
 
15200
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15201
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15202
    # if the path contains ";" then we assume it to be the separator
 
15203
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15204
    # assumed that no part of a normal pathname contains ";" but that should
 
15205
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15206
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15207
  else
 
15208
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15209
  fi
 
15210
else
 
15211
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15212
fi
 
15213
need_lib_prefix=unknown
 
15214
hardcode_into_libs=no
 
15215
 
 
15216
# when you set need_version to no, make sure it does not cause -set_version
 
15217
# flags to be left without arguments
 
15218
need_version=unknown
 
15219
 
 
15220
case $host_os in
 
15221
aix3*)
 
15222
  version_type=linux
 
15223
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15224
  shlibpath_var=LIBPATH
 
15225
 
 
15226
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15227
  soname_spec='${libname}${release}${shared_ext}$major'
 
15228
  ;;
 
15229
 
 
15230
aix4* | aix5*)
 
15231
  version_type=linux
 
15232
  need_lib_prefix=no
 
15233
  need_version=no
 
15234
  hardcode_into_libs=yes
 
15235
  if test "$host_cpu" = ia64; then
 
15236
    # AIX 5 supports IA64
 
15237
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15238
    shlibpath_var=LD_LIBRARY_PATH
 
15239
  else
 
15240
    # With GCC up to 2.95.x, collect2 would create an import file
 
15241
    # for dependence libraries.  The import file would start with
 
15242
    # the line `#! .'.  This would cause the generated library to
 
15243
    # depend on `.', always an invalid library.  This was fixed in
 
15244
    # development snapshots of GCC prior to 3.0.
 
15245
    case $host_os in
 
15246
      aix4 | aix4.[01] | aix4.[01].*)
 
15247
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15248
           echo ' yes '
 
15249
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15250
        :
 
15251
      else
 
15252
        can_build_shared=no
 
15253
      fi
 
15254
      ;;
 
15255
    esac
 
15256
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15257
    # soname into executable. Probably we can add versioning support to
 
15258
    # collect2, so additional links can be useful in future.
 
15259
    if test "$aix_use_runtimelinking" = yes; then
 
15260
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15261
      # instead of lib<name>.a to let people know that these are not
 
15262
      # typical AIX shared libraries.
 
15263
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15264
    else
 
15265
      # We preserve .a as extension for shared libraries through AIX4.2
 
15266
      # and later when we are not doing run time linking.
 
15267
      library_names_spec='${libname}${release}.a $libname.a'
 
15268
      soname_spec='${libname}${release}${shared_ext}$major'
 
15269
    fi
 
15270
    shlibpath_var=LIBPATH
 
15271
  fi
 
15272
  ;;
 
15273
 
 
15274
amigaos*)
 
15275
  library_names_spec='$libname.ixlibrary $libname.a'
 
15276
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15277
  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'
 
15278
  ;;
 
15279
 
 
15280
beos*)
 
15281
  library_names_spec='${libname}${shared_ext}'
 
15282
  dynamic_linker="$host_os ld.so"
 
15283
  shlibpath_var=LIBRARY_PATH
 
15284
  ;;
 
15285
 
 
15286
bsdi4*)
 
15287
  version_type=linux
 
15288
  need_version=no
 
15289
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15290
  soname_spec='${libname}${release}${shared_ext}$major'
 
15291
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15292
  shlibpath_var=LD_LIBRARY_PATH
 
15293
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15294
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15295
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15296
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15297
  # libtool to hard-code these into programs
 
15298
  ;;
 
15299
 
 
15300
cygwin* | mingw* | pw32*)
 
15301
  version_type=windows
 
15302
  shrext_cmds=".dll"
 
15303
  need_version=no
 
15304
  need_lib_prefix=no
 
15305
 
 
15306
  case $GCC,$host_os in
 
15307
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15308
    library_names_spec='$libname.dll.a'
 
15309
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15310
    postinstall_cmds='base_file=`basename \${file}`~
 
15311
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15312
      dldir=$destdir/`dirname \$dlpath`~
 
15313
      test -d \$dldir || mkdir -p \$dldir~
 
15314
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15315
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15316
      dlpath=$dir/\$dldll~
 
15317
       $rm \$dlpath'
 
15318
    shlibpath_overrides_runpath=yes
 
15319
 
 
15320
    case $host_os in
 
15321
    cygwin*)
 
15322
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15323
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15324
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15325
      ;;
 
15326
    mingw*)
 
15327
      # MinGW DLLs use traditional 'lib' prefix
 
15328
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15329
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15330
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15331
        # It is most probably a Windows format PATH printed by
 
15332
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15333
        # path with ; separators, and with drive letters. We can handle the
 
15334
        # drive letters (cygwin fileutils understands them), so leave them,
 
15335
        # especially as we might pass files found there to a mingw objdump,
 
15336
        # which wouldn't understand a cygwinified path. Ahh.
 
15337
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15338
      else
 
15339
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15340
      fi
 
15341
      ;;
 
15342
    pw32*)
 
15343
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15344
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15345
      ;;
 
15346
    esac
 
15347
    ;;
 
15348
 
 
15349
  *)
 
15350
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15351
    ;;
 
15352
  esac
 
15353
  dynamic_linker='Win32 ld.exe'
 
15354
  # FIXME: first we should search . and the directory the executable is in
 
15355
  shlibpath_var=PATH
 
15356
  ;;
 
15357
 
 
15358
darwin* | rhapsody*)
 
15359
  dynamic_linker="$host_os dyld"
 
15360
  version_type=darwin
 
15361
  need_lib_prefix=no
 
15362
  need_version=no
 
15363
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15364
  soname_spec='${libname}${release}${major}$shared_ext'
 
15365
  shlibpath_overrides_runpath=yes
 
15366
  shlibpath_var=DYLD_LIBRARY_PATH
 
15367
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
15368
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15369
  if test "$GCC" = yes; then
 
15370
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
15371
  else
 
15372
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15373
  fi
 
15374
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15375
  ;;
 
15376
 
 
15377
dgux*)
 
15378
  version_type=linux
 
15379
  need_lib_prefix=no
 
15380
  need_version=no
 
15381
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15382
  soname_spec='${libname}${release}${shared_ext}$major'
 
15383
  shlibpath_var=LD_LIBRARY_PATH
 
15384
  ;;
 
15385
 
 
15386
freebsd1*)
 
15387
  dynamic_linker=no
 
15388
  ;;
 
15389
 
 
15390
kfreebsd*-gnu)
 
15391
  version_type=linux
 
15392
  need_lib_prefix=no
 
15393
  need_version=no
 
15394
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15395
  soname_spec='${libname}${release}${shared_ext}$major'
 
15396
  shlibpath_var=LD_LIBRARY_PATH
 
15397
  shlibpath_overrides_runpath=no
 
15398
  hardcode_into_libs=yes
 
15399
  dynamic_linker='GNU ld.so'
 
15400
  ;;
 
15401
 
 
15402
freebsd*)
 
15403
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15404
  version_type=freebsd-$objformat
 
15405
  case $version_type in
 
15406
    freebsd-elf*)
 
15407
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15408
      need_version=no
 
15409
      need_lib_prefix=no
 
15410
      ;;
 
15411
    freebsd-*)
 
15412
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15413
      need_version=yes
 
15414
      ;;
 
15415
  esac
 
15416
  shlibpath_var=LD_LIBRARY_PATH
 
15417
  case $host_os in
 
15418
  freebsd2*)
 
15419
    shlibpath_overrides_runpath=yes
 
15420
    ;;
 
15421
  freebsd3.01* | freebsdelf3.01*)
 
15422
    shlibpath_overrides_runpath=yes
 
15423
    hardcode_into_libs=yes
 
15424
    ;;
 
15425
  *) # from 3.2 on
 
15426
    shlibpath_overrides_runpath=no
 
15427
    hardcode_into_libs=yes
 
15428
    ;;
 
15429
  esac
 
15430
  ;;
 
15431
 
 
15432
gnu*)
 
15433
  version_type=linux
 
15434
  need_lib_prefix=no
 
15435
  need_version=no
 
15436
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15437
  soname_spec='${libname}${release}${shared_ext}$major'
 
15438
  shlibpath_var=LD_LIBRARY_PATH
 
15439
  hardcode_into_libs=yes
 
15440
  ;;
 
15441
 
 
15442
hpux9* | hpux10* | hpux11*)
 
15443
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15444
  # link against other versions.
 
15445
  version_type=sunos
 
15446
  need_lib_prefix=no
 
15447
  need_version=no
 
15448
  case "$host_cpu" in
 
15449
  ia64*)
 
15450
    shrext_cmds='.so'
 
15451
    hardcode_into_libs=yes
 
15452
    dynamic_linker="$host_os dld.so"
 
15453
    shlibpath_var=LD_LIBRARY_PATH
 
15454
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15455
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15456
    soname_spec='${libname}${release}${shared_ext}$major'
 
15457
    if test "X$HPUX_IA64_MODE" = X32; then
 
15458
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15459
    else
 
15460
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15461
    fi
 
15462
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15463
    ;;
 
15464
   hppa*64*)
 
15465
     shrext_cmds='.sl'
 
15466
     hardcode_into_libs=yes
 
15467
     dynamic_linker="$host_os dld.sl"
 
15468
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15469
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15470
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15471
     soname_spec='${libname}${release}${shared_ext}$major'
 
15472
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15473
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15474
     ;;
 
15475
   *)
 
15476
    shrext_cmds='.sl'
 
15477
    dynamic_linker="$host_os dld.sl"
 
15478
    shlibpath_var=SHLIB_PATH
 
15479
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15480
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15481
    soname_spec='${libname}${release}${shared_ext}$major'
 
15482
    ;;
 
15483
  esac
 
15484
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15485
  postinstall_cmds='chmod 555 $lib'
 
15486
  ;;
 
15487
 
 
15488
irix5* | irix6* | nonstopux*)
 
15489
  case $host_os in
 
15490
    nonstopux*) version_type=nonstopux ;;
 
15491
    *)
 
15492
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15493
                version_type=linux
 
15494
        else
 
15495
                version_type=irix
 
15496
        fi ;;
 
15497
  esac
 
15498
  need_lib_prefix=no
 
15499
  need_version=no
 
15500
  soname_spec='${libname}${release}${shared_ext}$major'
 
15501
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15502
  case $host_os in
 
15503
  irix5* | nonstopux*)
 
15504
    libsuff= shlibsuff=
 
15505
    ;;
 
15506
  *)
 
15507
    case $LD in # libtool.m4 will add one of these switches to LD
 
15508
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15509
      libsuff= shlibsuff= libmagic=32-bit;;
 
15510
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15511
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15512
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15513
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15514
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15515
    esac
 
15516
    ;;
 
15517
  esac
 
15518
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15519
  shlibpath_overrides_runpath=no
 
15520
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15521
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15522
  hardcode_into_libs=yes
 
15523
  ;;
 
15524
 
 
15525
# No shared lib support for Linux oldld, aout, or coff.
 
15526
linux*oldld* | linux*aout* | linux*coff*)
 
15527
  dynamic_linker=no
 
15528
  ;;
 
15529
 
 
15530
# This must be Linux ELF.
 
15531
linux*)
 
15532
  version_type=linux
 
15533
  need_lib_prefix=no
 
15534
  need_version=no
 
15535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15536
  soname_spec='${libname}${release}${shared_ext}$major'
 
15537
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15538
  shlibpath_var=LD_LIBRARY_PATH
 
15539
  shlibpath_overrides_runpath=no
 
15540
  # This implies no fast_install, which is unacceptable.
 
15541
  # Some rework will be needed to allow for fast_install
 
15542
  # before this can be enabled.
 
15543
  hardcode_into_libs=yes
 
15544
 
 
15545
  # Append ld.so.conf contents to the search path
 
15546
  if test -f /etc/ld.so.conf; then
 
15547
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
15548
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15549
  fi
 
15550
 
 
15551
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15552
  # powerpc, because MkLinux only supported shared libraries with the
 
15553
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15554
  # most powerpc-linux boxes support dynamic linking these days and
 
15555
  # people can always --disable-shared, the test was removed, and we
 
15556
  # assume the GNU/Linux dynamic linker is in use.
 
15557
  dynamic_linker='GNU/Linux ld.so'
 
15558
  ;;
 
15559
 
 
15560
netbsdelf*-gnu)
 
15561
  version_type=linux
 
15562
  need_lib_prefix=no
 
15563
  need_version=no
 
15564
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15565
  soname_spec='${libname}${release}${shared_ext}$major'
 
15566
  shlibpath_var=LD_LIBRARY_PATH
 
15567
  shlibpath_overrides_runpath=no
 
15568
  hardcode_into_libs=yes
 
15569
  dynamic_linker='NetBSD ld.elf_so'
 
15570
  ;;
 
15571
 
 
15572
knetbsd*-gnu)
 
15573
  version_type=linux
 
15574
  need_lib_prefix=no
 
15575
  need_version=no
 
15576
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15577
  soname_spec='${libname}${release}${shared_ext}$major'
 
15578
  shlibpath_var=LD_LIBRARY_PATH
 
15579
  shlibpath_overrides_runpath=no
 
15580
  hardcode_into_libs=yes
 
15581
  dynamic_linker='GNU ld.so'
 
15582
  ;;
 
15583
 
 
15584
netbsd*)
 
15585
  version_type=sunos
 
15586
  need_lib_prefix=no
 
15587
  need_version=no
 
15588
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15589
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15590
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15591
    dynamic_linker='NetBSD (a.out) ld.so'
 
15592
  else
 
15593
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15594
    soname_spec='${libname}${release}${shared_ext}$major'
 
15595
    dynamic_linker='NetBSD ld.elf_so'
 
15596
  fi
 
15597
  shlibpath_var=LD_LIBRARY_PATH
 
15598
  shlibpath_overrides_runpath=yes
 
15599
  hardcode_into_libs=yes
 
15600
  ;;
 
15601
 
 
15602
newsos6)
 
15603
  version_type=linux
 
15604
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15605
  shlibpath_var=LD_LIBRARY_PATH
 
15606
  shlibpath_overrides_runpath=yes
 
15607
  ;;
 
15608
 
 
15609
nto-qnx*)
 
15610
  version_type=linux
 
15611
  need_lib_prefix=no
 
15612
  need_version=no
 
15613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15614
  soname_spec='${libname}${release}${shared_ext}$major'
 
15615
  shlibpath_var=LD_LIBRARY_PATH
 
15616
  shlibpath_overrides_runpath=yes
 
15617
  ;;
 
15618
 
 
15619
openbsd*)
 
15620
  version_type=sunos
 
15621
  need_lib_prefix=no
 
15622
  need_version=yes
 
15623
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15624
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15625
  shlibpath_var=LD_LIBRARY_PATH
 
15626
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15627
    case $host_os in
 
15628
      openbsd2.[89] | openbsd2.[89].*)
 
15629
        shlibpath_overrides_runpath=no
 
15630
        ;;
 
15631
      *)
 
15632
        shlibpath_overrides_runpath=yes
 
15633
        ;;
 
15634
      esac
 
15635
  else
 
15636
    shlibpath_overrides_runpath=yes
 
15637
  fi
 
15638
  ;;
 
15639
 
 
15640
os2*)
 
15641
  libname_spec='$name'
 
15642
  shrext_cmds=".dll"
 
15643
  need_lib_prefix=no
 
15644
  library_names_spec='$libname${shared_ext} $libname.a'
 
15645
  dynamic_linker='OS/2 ld.exe'
 
15646
  shlibpath_var=LIBPATH
 
15647
  ;;
 
15648
 
 
15649
osf3* | osf4* | osf5*)
 
15650
  version_type=osf
 
15651
  need_lib_prefix=no
 
15652
  need_version=no
 
15653
  soname_spec='${libname}${release}${shared_ext}$major'
 
15654
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15655
  shlibpath_var=LD_LIBRARY_PATH
 
15656
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15657
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15658
  ;;
 
15659
 
 
15660
sco3.2v5*)
 
15661
  version_type=osf
 
15662
  soname_spec='${libname}${release}${shared_ext}$major'
 
15663
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15664
  shlibpath_var=LD_LIBRARY_PATH
 
15665
  ;;
 
15666
 
 
15667
solaris*)
 
15668
  version_type=linux
 
15669
  need_lib_prefix=no
 
15670
  need_version=no
 
15671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15672
  soname_spec='${libname}${release}${shared_ext}$major'
 
15673
  shlibpath_var=LD_LIBRARY_PATH
 
15674
  shlibpath_overrides_runpath=yes
 
15675
  hardcode_into_libs=yes
 
15676
  # ldd complains unless libraries are executable
 
15677
  postinstall_cmds='chmod +x $lib'
 
15678
  ;;
 
15679
 
 
15680
sunos4*)
 
15681
  version_type=sunos
 
15682
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15683
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15684
  shlibpath_var=LD_LIBRARY_PATH
 
15685
  shlibpath_overrides_runpath=yes
 
15686
  if test "$with_gnu_ld" = yes; then
 
15687
    need_lib_prefix=no
 
15688
  fi
 
15689
  need_version=yes
 
15690
  ;;
 
15691
 
 
15692
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15693
  version_type=linux
 
15694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15695
  soname_spec='${libname}${release}${shared_ext}$major'
 
15696
  shlibpath_var=LD_LIBRARY_PATH
 
15697
  case $host_vendor in
 
15698
    sni)
 
15699
      shlibpath_overrides_runpath=no
 
15700
      need_lib_prefix=no
 
15701
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15702
      runpath_var=LD_RUN_PATH
 
15703
      ;;
 
15704
    siemens)
 
15705
      need_lib_prefix=no
 
15706
      ;;
 
15707
    motorola)
 
15708
      need_lib_prefix=no
 
15709
      need_version=no
 
15710
      shlibpath_overrides_runpath=no
 
15711
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15712
      ;;
 
15713
  esac
 
15714
  ;;
 
15715
 
 
15716
sysv4*MP*)
 
15717
  if test -d /usr/nec ;then
 
15718
    version_type=linux
 
15719
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15720
    soname_spec='$libname${shared_ext}.$major'
 
15721
    shlibpath_var=LD_LIBRARY_PATH
 
15722
  fi
 
15723
  ;;
 
15724
 
 
15725
uts4*)
 
15726
  version_type=linux
 
15727
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15728
  soname_spec='${libname}${release}${shared_ext}$major'
 
15729
  shlibpath_var=LD_LIBRARY_PATH
 
15730
  ;;
 
15731
 
 
15732
*)
 
15733
  dynamic_linker=no
 
15734
  ;;
 
15735
esac
 
15736
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15737
echo "${ECHO_T}$dynamic_linker" >&6
 
15738
test "$dynamic_linker" = no && can_build_shared=no
 
15739
 
 
15740
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15741
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15742
hardcode_action_F77=
 
15743
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15744
   test -n "$runpath_var F77" || \
 
15745
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15746
 
 
15747
  # We can hardcode non-existant directories.
 
15748
  if test "$hardcode_direct_F77" != no &&
 
15749
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15750
     # have to relink, otherwise we might link with an installed library
 
15751
     # when we should be linking with a yet-to-be-installed one
 
15752
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15753
     test "$hardcode_minus_L_F77" != no; then
 
15754
    # Linking always hardcodes the temporary library directory.
 
15755
    hardcode_action_F77=relink
 
15756
  else
 
15757
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15758
    hardcode_action_F77=immediate
 
15759
  fi
 
15760
else
 
15761
  # We cannot hardcode anything, or else we can only hardcode existing
 
15762
  # directories.
 
15763
  hardcode_action_F77=unsupported
 
15764
fi
 
15765
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15766
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15767
 
 
15768
if test "$hardcode_action_F77" = relink; then
 
15769
  # Fast installation is not supported
 
15770
  enable_fast_install=no
 
15771
elif test "$shlibpath_overrides_runpath" = yes ||
 
15772
     test "$enable_shared" = no; then
 
15773
  # Fast installation is not necessary
 
15774
  enable_fast_install=needless
 
15775
fi
 
15776
 
 
15777
striplib=
 
15778
old_striplib=
 
15779
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15780
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15781
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15782
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15783
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15784
  echo "$as_me:$LINENO: result: yes" >&5
 
15785
echo "${ECHO_T}yes" >&6
 
15786
else
 
15787
# FIXME - insert some real tests, host_os isn't really good enough
 
15788
  case $host_os in
 
15789
   darwin*)
 
15790
       if test -n "$STRIP" ; then
 
15791
         striplib="$STRIP -x"
 
15792
         echo "$as_me:$LINENO: result: yes" >&5
 
15793
echo "${ECHO_T}yes" >&6
 
15794
       else
 
15795
  echo "$as_me:$LINENO: result: no" >&5
 
15796
echo "${ECHO_T}no" >&6
 
15797
fi
 
15798
       ;;
 
15799
   *)
 
15800
  echo "$as_me:$LINENO: result: no" >&5
 
15801
echo "${ECHO_T}no" >&6
 
15802
    ;;
 
15803
  esac
 
15804
fi
 
15805
 
 
15806
 
 
15807
 
 
15808
# The else clause should only fire when bootstrapping the
 
15809
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15810
# with your package, and you will get complaints that there are
 
15811
# no rules to generate ltmain.sh.
 
15812
if test -f "$ltmain"; then
 
15813
  # See if we are running on zsh, and set the options which allow our commands through
 
15814
  # without removal of \ escapes.
 
15815
  if test -n "${ZSH_VERSION+set}" ; then
 
15816
    setopt NO_GLOB_SUBST
 
15817
  fi
 
15818
  # Now quote all the things that may contain metacharacters while being
 
15819
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15820
  # variables and quote the copies for generation of the libtool script.
 
15821
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15822
    SED SHELL STRIP \
 
15823
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15824
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15825
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15826
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15827
    lt_cv_sys_global_symbol_to_c_name_address \
 
15828
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15829
    old_postinstall_cmds old_postuninstall_cmds \
 
15830
    compiler_F77 \
 
15831
    CC_F77 \
 
15832
    LD_F77 \
 
15833
    lt_prog_compiler_wl_F77 \
 
15834
    lt_prog_compiler_pic_F77 \
 
15835
    lt_prog_compiler_static_F77 \
 
15836
    lt_prog_compiler_no_builtin_flag_F77 \
 
15837
    export_dynamic_flag_spec_F77 \
 
15838
    thread_safe_flag_spec_F77 \
 
15839
    whole_archive_flag_spec_F77 \
 
15840
    enable_shared_with_static_runtimes_F77 \
 
15841
    old_archive_cmds_F77 \
 
15842
    old_archive_from_new_cmds_F77 \
 
15843
    predep_objects_F77 \
 
15844
    postdep_objects_F77 \
 
15845
    predeps_F77 \
 
15846
    postdeps_F77 \
 
15847
    compiler_lib_search_path_F77 \
 
15848
    archive_cmds_F77 \
 
15849
    archive_expsym_cmds_F77 \
 
15850
    postinstall_cmds_F77 \
 
15851
    postuninstall_cmds_F77 \
 
15852
    old_archive_from_expsyms_cmds_F77 \
 
15853
    allow_undefined_flag_F77 \
 
15854
    no_undefined_flag_F77 \
 
15855
    export_symbols_cmds_F77 \
 
15856
    hardcode_libdir_flag_spec_F77 \
 
15857
    hardcode_libdir_flag_spec_ld_F77 \
 
15858
    hardcode_libdir_separator_F77 \
 
15859
    hardcode_automatic_F77 \
 
15860
    module_cmds_F77 \
 
15861
    module_expsym_cmds_F77 \
 
15862
    lt_cv_prog_compiler_c_o_F77 \
 
15863
    exclude_expsyms_F77 \
 
15864
    include_expsyms_F77; do
 
15865
 
 
15866
    case $var in
 
15867
    old_archive_cmds_F77 | \
 
15868
    old_archive_from_new_cmds_F77 | \
 
15869
    archive_cmds_F77 | \
 
15870
    archive_expsym_cmds_F77 | \
 
15871
    module_cmds_F77 | \
 
15872
    module_expsym_cmds_F77 | \
 
15873
    old_archive_from_expsyms_cmds_F77 | \
 
15874
    export_symbols_cmds_F77 | \
 
15875
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15876
    postinstall_cmds | postuninstall_cmds | \
 
15877
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15878
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15879
      # Double-quote double-evaled strings.
 
15880
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15881
      ;;
 
15882
    *)
 
15883
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15884
      ;;
 
15885
    esac
 
15886
  done
 
15887
 
 
15888
  case $lt_echo in
 
15889
  *'\$0 --fallback-echo"')
 
15890
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15891
    ;;
 
15892
  esac
 
15893
 
 
15894
cfgfile="$ofile"
 
15895
 
 
15896
  cat <<__EOF__ >> "$cfgfile"
 
15897
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15898
 
 
15899
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15900
 
 
15901
# Shell to use when invoking shell scripts.
 
15902
SHELL=$lt_SHELL
 
15903
 
 
15904
# Whether or not to build shared libraries.
 
15905
build_libtool_libs=$enable_shared
 
15906
 
 
15907
# Whether or not to build static libraries.
 
15908
build_old_libs=$enable_static
 
15909
 
 
15910
# Whether or not to add -lc for building shared libraries.
 
15911
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15912
 
 
15913
# Whether or not to disallow shared libs when runtime libs are static
 
15914
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15915
 
 
15916
# Whether or not to optimize for fast installation.
 
15917
fast_install=$enable_fast_install
 
15918
 
 
15919
# The host system.
 
15920
host_alias=$host_alias
 
15921
host=$host
 
15922
 
 
15923
# An echo program that does not interpret backslashes.
 
15924
echo=$lt_echo
 
15925
 
 
15926
# The archiver.
 
15927
AR=$lt_AR
 
15928
AR_FLAGS=$lt_AR_FLAGS
 
15929
 
 
15930
# A C compiler.
 
15931
LTCC=$lt_LTCC
 
15932
 
 
15933
# A language-specific compiler.
 
15934
CC=$lt_compiler_F77
 
15935
 
 
15936
# Is the compiler the GNU C compiler?
 
15937
with_gcc=$GCC_F77
 
15938
 
 
15939
# An ERE matcher.
 
15940
EGREP=$lt_EGREP
 
15941
 
 
15942
# The linker used to build libraries.
 
15943
LD=$lt_LD_F77
 
15944
 
 
15945
# Whether we need hard or soft links.
 
15946
LN_S=$lt_LN_S
 
15947
 
 
15948
# A BSD-compatible nm program.
 
15949
NM=$lt_NM
 
15950
 
 
15951
# A symbol stripping program
 
15952
STRIP=$lt_STRIP
 
15953
 
 
15954
# Used to examine libraries when file_magic_cmd begins "file"
 
15955
MAGIC_CMD=$MAGIC_CMD
 
15956
 
 
15957
# Used on cygwin: DLL creation program.
 
15958
DLLTOOL="$DLLTOOL"
 
15959
 
 
15960
# Used on cygwin: object dumper.
 
15961
OBJDUMP="$OBJDUMP"
 
15962
 
 
15963
# Used on cygwin: assembler.
 
15964
AS="$AS"
 
15965
 
 
15966
# The name of the directory that contains temporary libtool files.
 
15967
objdir=$objdir
 
15968
 
 
15969
# How to create reloadable object files.
 
15970
reload_flag=$lt_reload_flag
 
15971
reload_cmds=$lt_reload_cmds
 
15972
 
 
15973
# How to pass a linker flag through the compiler.
 
15974
wl=$lt_lt_prog_compiler_wl_F77
 
15975
 
 
15976
# Object file suffix (normally "o").
 
15977
objext="$ac_objext"
 
15978
 
 
15979
# Old archive suffix (normally "a").
 
15980
libext="$libext"
 
15981
 
 
15982
# Shared library suffix (normally ".so").
 
15983
shrext_cmds='$shrext_cmds'
 
15984
 
 
15985
# Executable file suffix (normally "").
 
15986
exeext="$exeext"
 
15987
 
 
15988
# Additional compiler flags for building library objects.
 
15989
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15990
pic_mode=$pic_mode
 
15991
 
 
15992
# What is the maximum length of a command?
 
15993
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15994
 
 
15995
# Does compiler simultaneously support -c and -o options?
 
15996
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15997
 
 
15998
# Must we lock files when doing compilation ?
 
15999
need_locks=$lt_need_locks
 
16000
 
 
16001
# Do we need the lib prefix for modules?
 
16002
need_lib_prefix=$need_lib_prefix
 
16003
 
 
16004
# Do we need a version for libraries?
 
16005
need_version=$need_version
 
16006
 
 
16007
# Whether dlopen is supported.
 
16008
dlopen_support=$enable_dlopen
 
16009
 
 
16010
# Whether dlopen of programs is supported.
 
16011
dlopen_self=$enable_dlopen_self
 
16012
 
 
16013
# Whether dlopen of statically linked programs is supported.
 
16014
dlopen_self_static=$enable_dlopen_self_static
 
16015
 
 
16016
# Compiler flag to prevent dynamic linking.
 
16017
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16018
 
 
16019
# Compiler flag to turn off builtin functions.
 
16020
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16021
 
 
16022
# Compiler flag to allow reflexive dlopens.
 
16023
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16024
 
 
16025
# Compiler flag to generate shared objects directly from archives.
 
16026
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16027
 
 
16028
# Compiler flag to generate thread-safe objects.
 
16029
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16030
 
 
16031
# Library versioning type.
 
16032
version_type=$version_type
 
16033
 
 
16034
# Format of library name prefix.
 
16035
libname_spec=$lt_libname_spec
 
16036
 
 
16037
# List of archive names.  First name is the real one, the rest are links.
 
16038
# The last name is the one that the linker finds with -lNAME.
 
16039
library_names_spec=$lt_library_names_spec
 
16040
 
 
16041
# The coded name of the library, if different from the real name.
 
16042
soname_spec=$lt_soname_spec
 
16043
 
 
16044
# Commands used to build and install an old-style archive.
 
16045
RANLIB=$lt_RANLIB
 
16046
old_archive_cmds=$lt_old_archive_cmds_F77
 
16047
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16048
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16049
 
 
16050
# Create an old-style archive from a shared archive.
 
16051
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16052
 
 
16053
# Create a temporary old-style archive to link instead of a shared archive.
 
16054
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16055
 
 
16056
# Commands used to build and install a shared archive.
 
16057
archive_cmds=$lt_archive_cmds_F77
 
16058
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16059
postinstall_cmds=$lt_postinstall_cmds
 
16060
postuninstall_cmds=$lt_postuninstall_cmds
 
16061
 
 
16062
# Commands used to build a loadable module (assumed same as above if empty)
 
16063
module_cmds=$lt_module_cmds_F77
 
16064
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16065
 
 
16066
# Commands to strip libraries.
 
16067
old_striplib=$lt_old_striplib
 
16068
striplib=$lt_striplib
 
16069
 
 
16070
# Dependencies to place before the objects being linked to create a
 
16071
# shared library.
 
16072
predep_objects=$lt_predep_objects_F77
 
16073
 
 
16074
# Dependencies to place after the objects being linked to create a
 
16075
# shared library.
 
16076
postdep_objects=$lt_postdep_objects_F77
 
16077
 
 
16078
# Dependencies to place before the objects being linked to create a
 
16079
# shared library.
 
16080
predeps=$lt_predeps_F77
 
16081
 
 
16082
# Dependencies to place after the objects being linked to create a
 
16083
# shared library.
 
16084
postdeps=$lt_postdeps_F77
 
16085
 
 
16086
# The library search path used internally by the compiler when linking
 
16087
# a shared library.
 
16088
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16089
 
 
16090
# Method to check whether dependent libraries are shared objects.
 
16091
deplibs_check_method=$lt_deplibs_check_method
 
16092
 
 
16093
# Command to use when deplibs_check_method == file_magic.
 
16094
file_magic_cmd=$lt_file_magic_cmd
 
16095
 
 
16096
# Flag that allows shared libraries with undefined symbols to be built.
 
16097
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16098
 
 
16099
# Flag that forces no undefined symbols.
 
16100
no_undefined_flag=$lt_no_undefined_flag_F77
 
16101
 
 
16102
# Commands used to finish a libtool library installation in a directory.
 
16103
finish_cmds=$lt_finish_cmds
 
16104
 
 
16105
# Same as above, but a single script fragment to be evaled but not shown.
 
16106
finish_eval=$lt_finish_eval
 
16107
 
 
16108
# Take the output of nm and produce a listing of raw symbols and C names.
 
16109
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16110
 
 
16111
# Transform the output of nm in a proper C declaration
 
16112
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16113
 
 
16114
# Transform the output of nm in a C name address pair
 
16115
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16116
 
 
16117
# This is the shared library runtime path variable.
 
16118
runpath_var=$runpath_var
 
16119
 
 
16120
# This is the shared library path variable.
 
16121
shlibpath_var=$shlibpath_var
 
16122
 
 
16123
# Is shlibpath searched before the hard-coded library search path?
 
16124
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16125
 
 
16126
# How to hardcode a shared library path into an executable.
 
16127
hardcode_action=$hardcode_action_F77
 
16128
 
 
16129
# Whether we should hardcode library paths into libraries.
 
16130
hardcode_into_libs=$hardcode_into_libs
 
16131
 
 
16132
# Flag to hardcode \$libdir into a binary during linking.
 
16133
# This must work even if \$libdir does not exist.
 
16134
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16135
 
 
16136
# If ld is used when linking, flag to hardcode \$libdir into
 
16137
# a binary during linking. This must work even if \$libdir does
 
16138
# not exist.
 
16139
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16140
 
 
16141
# Whether we need a single -rpath flag with a separated argument.
 
16142
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16143
 
 
16144
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16145
# resulting binary.
 
16146
hardcode_direct=$hardcode_direct_F77
 
16147
 
 
16148
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16149
# resulting binary.
 
16150
hardcode_minus_L=$hardcode_minus_L_F77
 
16151
 
 
16152
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16153
# the resulting binary.
 
16154
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16155
 
 
16156
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16157
# and all subsequent libraries and executables linked against it.
 
16158
hardcode_automatic=$hardcode_automatic_F77
 
16159
 
 
16160
# Variables whose values should be saved in libtool wrapper scripts and
 
16161
# restored at relink time.
 
16162
variables_saved_for_relink="$variables_saved_for_relink"
 
16163
 
 
16164
# Whether libtool must link a program against all its dependency libraries.
 
16165
link_all_deplibs=$link_all_deplibs_F77
 
16166
 
 
16167
# Compile-time system search path for libraries
 
16168
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16169
 
 
16170
# Run-time system search path for libraries
 
16171
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16172
 
 
16173
# Fix the shell variable \$srcfile for the compiler.
 
16174
fix_srcfile_path="$fix_srcfile_path_F77"
 
16175
 
 
16176
# Set to yes if exported symbols are required.
 
16177
always_export_symbols=$always_export_symbols_F77
 
16178
 
 
16179
# The commands to list exported symbols.
 
16180
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16181
 
 
16182
# The commands to extract the exported symbol list from a shared archive.
 
16183
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16184
 
 
16185
# Symbols that should not be listed in the preloaded symbols.
 
16186
exclude_expsyms=$lt_exclude_expsyms_F77
 
16187
 
 
16188
# Symbols that must always be exported.
 
16189
include_expsyms=$lt_include_expsyms_F77
 
16190
 
 
16191
# ### END LIBTOOL TAG CONFIG: $tagname
 
16192
 
 
16193
__EOF__
 
16194
 
 
16195
 
 
16196
else
 
16197
  # If there is no Makefile yet, we rely on a make rule to execute
 
16198
  # `config.status --recheck' to rerun these tests and create the
 
16199
  # libtool script then.
 
16200
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16201
  if test -f "$ltmain_in"; then
 
16202
    test -f Makefile && make "$ltmain"
 
16203
  fi
 
16204
fi
 
16205
 
 
16206
 
 
16207
ac_ext=c
 
16208
ac_cpp='$CPP $CPPFLAGS'
 
16209
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16210
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16211
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16212
 
 
16213
CC="$lt_save_CC"
 
16214
 
 
16215
        else
 
16216
          tagname=""
 
16217
        fi
 
16218
        ;;
 
16219
 
 
16220
      GCJ)
 
16221
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16222
 
 
16223
 
 
16224
 
 
16225
# Source file extension for Java test sources.
 
16226
ac_ext=java
 
16227
 
 
16228
# Object file extension for compiled Java test sources.
 
16229
objext=o
 
16230
objext_GCJ=$objext
 
16231
 
 
16232
# Code to be used in simple compile tests
 
16233
lt_simple_compile_test_code="class foo {}\n"
 
16234
 
 
16235
# Code to be used in simple link tests
 
16236
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16237
 
 
16238
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16239
 
 
16240
# If no C compiler was specified, use CC.
 
16241
LTCC=${LTCC-"$CC"}
 
16242
 
 
16243
# Allow CC to be a program name with arguments.
 
16244
compiler=$CC
 
16245
 
 
16246
 
 
16247
# Allow CC to be a program name with arguments.
 
16248
lt_save_CC="$CC"
 
16249
CC=${GCJ-"gcj"}
 
16250
compiler=$CC
 
16251
compiler_GCJ=$CC
 
16252
 
 
16253
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16254
archive_cmds_need_lc_GCJ=no
 
16255
 
 
16256
 
 
16257
lt_prog_compiler_no_builtin_flag_GCJ=
 
16258
 
 
16259
if test "$GCC" = yes; then
 
16260
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16261
 
 
16262
 
 
16263
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16264
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16265
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16267
else
 
16268
  lt_cv_prog_compiler_rtti_exceptions=no
 
16269
  ac_outfile=conftest.$ac_objext
 
16270
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16271
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16272
   # Insert the option either (1) after the last *FLAGS variable, or
 
16273
   # (2) before a word containing "conftest.", or (3) at the end.
 
16274
   # Note that $ac_compile itself does not contain backslashes and begins
 
16275
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16276
   # The option is referenced via a variable to avoid confusing sed.
 
16277
   lt_compile=`echo "$ac_compile" | $SED \
 
16278
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16279
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16280
   -e 's:$: $lt_compiler_flag:'`
 
16281
   (eval echo "\"\$as_me:16281: $lt_compile\"" >&5)
 
16282
   (eval "$lt_compile" 2>conftest.err)
 
16283
   ac_status=$?
 
16284
   cat conftest.err >&5
 
16285
   echo "$as_me:16285: \$? = $ac_status" >&5
 
16286
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16287
     # The compiler can only warn and ignore the option if not recognized
 
16288
     # So say no if there are warnings
 
16289
     if test ! -s conftest.err; then
 
16290
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16291
     fi
 
16292
   fi
 
16293
   $rm conftest*
 
16294
 
 
16295
fi
 
16296
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16297
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16298
 
 
16299
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16300
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16301
else
 
16302
    :
 
16303
fi
 
16304
 
 
16305
fi
 
16306
 
 
16307
lt_prog_compiler_wl_GCJ=
 
16308
lt_prog_compiler_pic_GCJ=
 
16309
lt_prog_compiler_static_GCJ=
 
16310
 
 
16311
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16312
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16313
 
 
16314
  if test "$GCC" = yes; then
 
16315
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16316
    lt_prog_compiler_static_GCJ='-static'
 
16317
 
 
16318
    case $host_os in
 
16319
      aix*)
 
16320
      # All AIX code is PIC.
 
16321
      if test "$host_cpu" = ia64; then
 
16322
        # AIX 5 now supports IA64 processor
 
16323
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16324
      fi
 
16325
      ;;
 
16326
 
 
16327
    amigaos*)
 
16328
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16329
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16330
      # like `-m68040'.
 
16331
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16332
      ;;
 
16333
 
 
16334
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16335
      # PIC is the default for these OSes.
 
16336
      ;;
 
16337
 
 
16338
    mingw* | pw32* | os2*)
 
16339
      # This hack is so that the source file can tell whether it is being
 
16340
      # built for inclusion in a dll (and should export symbols for example).
 
16341
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16342
      ;;
 
16343
 
 
16344
    darwin* | rhapsody*)
 
16345
      # PIC is the default on this platform
 
16346
      # Common symbols not allowed in MH_DYLIB files
 
16347
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16348
      ;;
 
16349
 
 
16350
    msdosdjgpp*)
 
16351
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16352
      # on systems that don't support them.
 
16353
      lt_prog_compiler_can_build_shared_GCJ=no
 
16354
      enable_shared=no
 
16355
      ;;
 
16356
 
 
16357
    sysv4*MP*)
 
16358
      if test -d /usr/nec; then
 
16359
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16360
      fi
 
16361
      ;;
 
16362
 
 
16363
    hpux*)
 
16364
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16365
      # not for PA HP-UX.
 
16366
      case "$host_cpu" in
 
16367
      hppa*64*|ia64*)
 
16368
        # +Z the default
 
16369
        ;;
 
16370
      *)
 
16371
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16372
        ;;
 
16373
      esac
 
16374
      ;;
 
16375
 
 
16376
    *)
 
16377
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16378
      ;;
 
16379
    esac
 
16380
  else
 
16381
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16382
    case $host_os in
 
16383
    aix*)
 
16384
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16385
      if test "$host_cpu" = ia64; then
 
16386
        # AIX 5 now supports IA64 processor
 
16387
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16388
      else
 
16389
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16390
      fi
 
16391
      ;;
 
16392
 
 
16393
    mingw* | pw32* | os2*)
 
16394
      # This hack is so that the source file can tell whether it is being
 
16395
      # built for inclusion in a dll (and should export symbols for example).
 
16396
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16397
      ;;
 
16398
 
 
16399
    hpux9* | hpux10* | hpux11*)
 
16400
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16401
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16402
      # not for PA HP-UX.
 
16403
      case "$host_cpu" in
 
16404
      hppa*64*|ia64*)
 
16405
        # +Z the default
 
16406
        ;;
 
16407
      *)
 
16408
        lt_prog_compiler_pic_GCJ='+Z'
 
16409
        ;;
 
16410
      esac
 
16411
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16412
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16413
      ;;
 
16414
 
 
16415
    irix5* | irix6* | nonstopux*)
 
16416
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16417
      # PIC (with -KPIC) is the default.
 
16418
      lt_prog_compiler_static_GCJ='-non_shared'
 
16419
      ;;
 
16420
 
 
16421
    newsos6)
 
16422
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16423
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16424
      ;;
 
16425
 
 
16426
    linux*)
 
16427
      case $CC in
 
16428
      icc* | ecc*)
 
16429
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16430
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16431
        lt_prog_compiler_static_GCJ='-static'
 
16432
        ;;
 
16433
      ccc*)
 
16434
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16435
        # All Alpha code is PIC.
 
16436
        lt_prog_compiler_static_GCJ='-non_shared'
 
16437
        ;;
 
16438
      esac
 
16439
      ;;
 
16440
 
 
16441
    osf3* | osf4* | osf5*)
 
16442
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16443
      # All OSF/1 code is PIC.
 
16444
      lt_prog_compiler_static_GCJ='-non_shared'
 
16445
      ;;
 
16446
 
 
16447
    sco3.2v5*)
 
16448
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16449
      lt_prog_compiler_static_GCJ='-dn'
 
16450
      ;;
 
16451
 
 
16452
    solaris*)
 
16453
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16454
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16455
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16456
      ;;
 
16457
 
 
16458
    sunos4*)
 
16459
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16460
      lt_prog_compiler_pic_GCJ='-PIC'
 
16461
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16462
      ;;
 
16463
 
 
16464
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16465
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16466
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16467
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16468
      ;;
 
16469
 
 
16470
    sysv4*MP*)
 
16471
      if test -d /usr/nec ;then
 
16472
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16473
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16474
      fi
 
16475
      ;;
 
16476
 
 
16477
    uts4*)
 
16478
      lt_prog_compiler_pic_GCJ='-pic'
 
16479
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16480
      ;;
 
16481
 
 
16482
    *)
 
16483
      lt_prog_compiler_can_build_shared_GCJ=no
 
16484
      ;;
 
16485
    esac
 
16486
  fi
 
16487
 
 
16488
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16489
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16490
 
 
16491
#
 
16492
# Check to make sure the PIC flag actually works.
 
16493
#
 
16494
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16495
 
 
16496
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16497
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16498
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16500
else
 
16501
  lt_prog_compiler_pic_works_GCJ=no
 
16502
  ac_outfile=conftest.$ac_objext
 
16503
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16504
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16505
   # Insert the option either (1) after the last *FLAGS variable, or
 
16506
   # (2) before a word containing "conftest.", or (3) at the end.
 
16507
   # Note that $ac_compile itself does not contain backslashes and begins
 
16508
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16509
   # The option is referenced via a variable to avoid confusing sed.
 
16510
   lt_compile=`echo "$ac_compile" | $SED \
 
16511
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16512
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16513
   -e 's:$: $lt_compiler_flag:'`
 
16514
   (eval echo "\"\$as_me:16514: $lt_compile\"" >&5)
 
16515
   (eval "$lt_compile" 2>conftest.err)
 
16516
   ac_status=$?
 
16517
   cat conftest.err >&5
 
16518
   echo "$as_me:16518: \$? = $ac_status" >&5
 
16519
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16520
     # The compiler can only warn and ignore the option if not recognized
 
16521
     # So say no if there are warnings
 
16522
     if test ! -s conftest.err; then
 
16523
       lt_prog_compiler_pic_works_GCJ=yes
 
16524
     fi
 
16525
   fi
 
16526
   $rm conftest*
 
16527
 
 
16528
fi
 
16529
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16530
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16531
 
 
16532
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16533
    case $lt_prog_compiler_pic_GCJ in
 
16534
     "" | " "*) ;;
 
16535
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16536
     esac
 
16537
else
 
16538
    lt_prog_compiler_pic_GCJ=
 
16539
     lt_prog_compiler_can_build_shared_GCJ=no
 
16540
fi
 
16541
 
 
16542
fi
 
16543
case "$host_os" in
 
16544
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16545
  *djgpp*)
 
16546
    lt_prog_compiler_pic_GCJ=
 
16547
    ;;
 
16548
  *)
 
16549
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16550
    ;;
 
16551
esac
 
16552
 
 
16553
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16554
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16555
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16557
else
 
16558
  lt_cv_prog_compiler_c_o_GCJ=no
 
16559
   $rm -r conftest 2>/dev/null
 
16560
   mkdir conftest
 
16561
   cd conftest
 
16562
   mkdir out
 
16563
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16564
 
 
16565
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16566
   # Insert the option either (1) after the last *FLAGS variable, or
 
16567
   # (2) before a word containing "conftest.", or (3) at the end.
 
16568
   # Note that $ac_compile itself does not contain backslashes and begins
 
16569
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16570
   lt_compile=`echo "$ac_compile" | $SED \
 
16571
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16572
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16573
   -e 's:$: $lt_compiler_flag:'`
 
16574
   (eval echo "\"\$as_me:16574: $lt_compile\"" >&5)
 
16575
   (eval "$lt_compile" 2>out/conftest.err)
 
16576
   ac_status=$?
 
16577
   cat out/conftest.err >&5
 
16578
   echo "$as_me:16578: \$? = $ac_status" >&5
 
16579
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16580
   then
 
16581
     # The compiler can only warn and ignore the option if not recognized
 
16582
     # So say no if there are warnings
 
16583
     if test ! -s out/conftest.err; then
 
16584
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16585
     fi
 
16586
   fi
 
16587
   chmod u+w .
 
16588
   $rm conftest*
 
16589
   # SGI C++ compiler will create directory out/ii_files/ for
 
16590
   # template instantiation
 
16591
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16592
   $rm out/* && rmdir out
 
16593
   cd ..
 
16594
   rmdir conftest
 
16595
   $rm conftest*
 
16596
 
 
16597
fi
 
16598
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16599
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16600
 
 
16601
 
 
16602
hard_links="nottested"
 
16603
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16604
  # do not overwrite the value of need_locks provided by the user
 
16605
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16606
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16607
  hard_links=yes
 
16608
  $rm conftest*
 
16609
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16610
  touch conftest.a
 
16611
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16612
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16613
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16614
echo "${ECHO_T}$hard_links" >&6
 
16615
  if test "$hard_links" = no; then
 
16616
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16617
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16618
    need_locks=warn
 
16619
  fi
 
16620
else
 
16621
  need_locks=no
 
16622
fi
 
16623
 
 
16624
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16625
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16626
 
 
16627
  runpath_var=
 
16628
  allow_undefined_flag_GCJ=
 
16629
  enable_shared_with_static_runtimes_GCJ=no
 
16630
  archive_cmds_GCJ=
 
16631
  archive_expsym_cmds_GCJ=
 
16632
  old_archive_From_new_cmds_GCJ=
 
16633
  old_archive_from_expsyms_cmds_GCJ=
 
16634
  export_dynamic_flag_spec_GCJ=
 
16635
  whole_archive_flag_spec_GCJ=
 
16636
  thread_safe_flag_spec_GCJ=
 
16637
  hardcode_libdir_flag_spec_GCJ=
 
16638
  hardcode_libdir_flag_spec_ld_GCJ=
 
16639
  hardcode_libdir_separator_GCJ=
 
16640
  hardcode_direct_GCJ=no
 
16641
  hardcode_minus_L_GCJ=no
 
16642
  hardcode_shlibpath_var_GCJ=unsupported
 
16643
  link_all_deplibs_GCJ=unknown
 
16644
  hardcode_automatic_GCJ=no
 
16645
  module_cmds_GCJ=
 
16646
  module_expsym_cmds_GCJ=
 
16647
  always_export_symbols_GCJ=no
 
16648
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16649
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16650
  # included in the symbol list
 
16651
  include_expsyms_GCJ=
 
16652
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16653
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16654
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16655
  # as well as any symbol that contains `d'.
 
16656
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16657
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16658
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16659
  # the symbol is explicitly referenced.  Since portable code cannot
 
16660
  # rely on this symbol name, it's probably fine to never include it in
 
16661
  # preloaded symbol tables.
 
16662
  extract_expsyms_cmds=
 
16663
 
 
16664
  case $host_os in
 
16665
  cygwin* | mingw* | pw32*)
 
16666
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16667
    # When not using gcc, we currently assume that we are using
 
16668
    # Microsoft Visual C++.
 
16669
    if test "$GCC" != yes; then
 
16670
      with_gnu_ld=no
 
16671
    fi
 
16672
    ;;
 
16673
  openbsd*)
 
16674
    with_gnu_ld=no
 
16675
    ;;
 
16676
  esac
 
16677
 
 
16678
  ld_shlibs_GCJ=yes
 
16679
  if test "$with_gnu_ld" = yes; then
 
16680
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16681
    wlarc='${wl}'
 
16682
 
 
16683
    # See if GNU ld supports shared libraries.
 
16684
    case $host_os in
 
16685
    aix3* | aix4* | aix5*)
 
16686
      # On AIX/PPC, the GNU linker is very broken
 
16687
      if test "$host_cpu" != ia64; then
 
16688
        ld_shlibs_GCJ=no
 
16689
        cat <<EOF 1>&2
 
16690
 
 
16691
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16692
*** to be unable to reliably create shared libraries on AIX.
 
16693
*** Therefore, libtool is disabling shared libraries support.  If you
 
16694
*** really care for shared libraries, you may want to modify your PATH
 
16695
*** so that a non-GNU linker is found, and then restart.
 
16696
 
 
16697
EOF
 
16698
      fi
 
16699
      ;;
 
16700
 
 
16701
    amigaos*)
 
16702
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
16703
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16704
      hardcode_minus_L_GCJ=yes
 
16705
 
 
16706
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16707
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16708
      # to version 4, is to share data among multiple programs linked
 
16709
      # with the same dynamic library.  Since this doesn't match the
 
16710
      # behavior of shared libraries on other platforms, we can't use
 
16711
      # them.
 
16712
      ld_shlibs_GCJ=no
 
16713
      ;;
 
16714
 
 
16715
    beos*)
 
16716
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16717
        allow_undefined_flag_GCJ=unsupported
 
16718
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16719
        # support --undefined.  This deserves some investigation.  FIXME
 
16720
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16721
      else
 
16722
        ld_shlibs_GCJ=no
 
16723
      fi
 
16724
      ;;
 
16725
 
 
16726
    cygwin* | mingw* | pw32*)
 
16727
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16728
      # as there is no search path for DLLs.
 
16729
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16730
      allow_undefined_flag_GCJ=unsupported
 
16731
      always_export_symbols_GCJ=no
 
16732
      enable_shared_with_static_runtimes_GCJ=yes
 
16733
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16734
 
 
16735
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16736
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16737
        # If the export-symbols file already is a .def file (1st line
 
16738
        # is EXPORTS), use it as is; otherwise, prepend...
 
16739
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16740
          cp $export_symbols $output_objdir/$soname.def;
 
16741
        else
 
16742
          echo EXPORTS > $output_objdir/$soname.def;
 
16743
          cat $export_symbols >> $output_objdir/$soname.def;
 
16744
        fi~
 
16745
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16746
      else
 
16747
        ld_shlibs=no
 
16748
      fi
 
16749
      ;;
 
16750
 
 
16751
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16752
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16753
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16754
        wlarc=
 
16755
      else
 
16756
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16757
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16758
      fi
 
16759
      ;;
 
16760
 
 
16761
    solaris* | sysv5*)
 
16762
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16763
        ld_shlibs_GCJ=no
 
16764
        cat <<EOF 1>&2
 
16765
 
 
16766
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16767
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16768
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16769
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16770
*** your PATH or compiler configuration so that the native linker is
 
16771
*** used, and then restart.
 
16772
 
 
16773
EOF
 
16774
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16775
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16776
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16777
      else
 
16778
        ld_shlibs_GCJ=no
 
16779
      fi
 
16780
      ;;
 
16781
 
 
16782
    sunos4*)
 
16783
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16784
      wlarc=
 
16785
      hardcode_direct_GCJ=yes
 
16786
      hardcode_shlibpath_var_GCJ=no
 
16787
      ;;
 
16788
 
 
16789
  linux*)
 
16790
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16791
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16792
        archive_cmds_GCJ="$tmp_archive_cmds"
 
16793
      supports_anon_versioning=no
 
16794
      case `$LD -v 2>/dev/null` in
 
16795
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16796
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16797
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16798
        *\ 2.11.*) ;; # other 2.11 versions
 
16799
        *) supports_anon_versioning=yes ;;
 
16800
      esac
 
16801
      if test $supports_anon_versioning = yes; then
 
16802
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16803
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16804
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16805
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16806
      else
 
16807
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
16808
      fi
 
16809
      link_all_deplibs_GCJ=no
 
16810
    else
 
16811
      ld_shlibs_GCJ=no
 
16812
    fi
 
16813
    ;;
 
16814
 
 
16815
    *)
 
16816
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16817
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16818
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16819
      else
 
16820
        ld_shlibs_GCJ=no
 
16821
      fi
 
16822
      ;;
 
16823
    esac
 
16824
 
 
16825
    if test "$ld_shlibs_GCJ" = yes; then
 
16826
      runpath_var=LD_RUN_PATH
 
16827
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16828
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16829
      # ancient GNU ld didn't support --whole-archive et. al.
 
16830
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16831
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16832
      else
 
16833
        whole_archive_flag_spec_GCJ=
 
16834
      fi
 
16835
    fi
 
16836
  else
 
16837
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16838
    case $host_os in
 
16839
    aix3*)
 
16840
      allow_undefined_flag_GCJ=unsupported
 
16841
      always_export_symbols_GCJ=yes
 
16842
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
16843
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16844
      # are no directories specified by -L.
 
16845
      hardcode_minus_L_GCJ=yes
 
16846
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16847
        # Neither direct hardcoding nor static linking is supported with a
 
16848
        # broken collect2.
 
16849
        hardcode_direct_GCJ=unsupported
 
16850
      fi
 
16851
      ;;
 
16852
 
 
16853
    aix4* | aix5*)
 
16854
      if test "$host_cpu" = ia64; then
 
16855
        # On IA64, the linker does run time linking by default, so we don't
 
16856
        # have to do anything special.
 
16857
        aix_use_runtimelinking=no
 
16858
        exp_sym_flag='-Bexport'
 
16859
        no_entry_flag=""
 
16860
      else
 
16861
        # If we're using GNU nm, then we don't want the "-C" option.
 
16862
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16863
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16864
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16865
        else
 
16866
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
16867
        fi
 
16868
        aix_use_runtimelinking=no
 
16869
 
 
16870
        # Test if we are trying to use run time linking or normal
 
16871
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16872
        # need to do runtime linking.
 
16873
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16874
          for ld_flag in $LDFLAGS; do
 
16875
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16876
            aix_use_runtimelinking=yes
 
16877
            break
 
16878
          fi
 
16879
          done
 
16880
        esac
 
16881
 
 
16882
        exp_sym_flag='-bexport'
 
16883
        no_entry_flag='-bnoentry'
 
16884
      fi
 
16885
 
 
16886
      # When large executables or shared objects are built, AIX ld can
 
16887
      # have problems creating the table of contents.  If linking a library
 
16888
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16889
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16890
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16891
 
 
16892
      archive_cmds_GCJ=''
 
16893
      hardcode_direct_GCJ=yes
 
16894
      hardcode_libdir_separator_GCJ=':'
 
16895
      link_all_deplibs_GCJ=yes
 
16896
 
 
16897
      if test "$GCC" = yes; then
 
16898
        case $host_os in aix4.012|aix4.012.*)
 
16899
        # We only want to do this on AIX 4.2 and lower, the check
 
16900
        # below for broken collect2 doesn't work under 4.3+
 
16901
          collect2name=`${CC} -print-prog-name=collect2`
 
16902
          if test -f "$collect2name" && \
 
16903
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16904
          then
 
16905
          # We have reworked collect2
 
16906
          hardcode_direct_GCJ=yes
 
16907
          else
 
16908
          # We have old collect2
 
16909
          hardcode_direct_GCJ=unsupported
 
16910
          # It fails to find uninstalled libraries when the uninstalled
 
16911
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16912
          # to unsupported forces relinking
 
16913
          hardcode_minus_L_GCJ=yes
 
16914
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16915
          hardcode_libdir_separator_GCJ=
 
16916
          fi
 
16917
        esac
 
16918
        shared_flag='-shared'
 
16919
      else
 
16920
        # not using gcc
 
16921
        if test "$host_cpu" = ia64; then
 
16922
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16923
        # chokes on -Wl,-G. The following line is correct:
 
16924
          shared_flag='-G'
 
16925
        else
 
16926
        if test "$aix_use_runtimelinking" = yes; then
 
16927
            shared_flag='${wl}-G'
 
16928
          else
 
16929
            shared_flag='${wl}-bM:SRE'
 
16930
        fi
 
16931
        fi
 
16932
      fi
 
16933
 
 
16934
      # It seems that -bexpall does not export symbols beginning with
 
16935
      # underscore (_), so it is better to generate a list of symbols to export.
 
16936
      always_export_symbols_GCJ=yes
 
16937
      if test "$aix_use_runtimelinking" = yes; then
 
16938
        # Warning - without using the other runtime loading flags (-brtl),
 
16939
        # -berok will link without error, but may produce a broken library.
 
16940
        allow_undefined_flag_GCJ='-berok'
 
16941
       # Determine the default libpath from the value encoded in an empty executable.
 
16942
       cat >conftest.$ac_ext <<_ACEOF
 
16943
/* confdefs.h.  */
 
16944
_ACEOF
 
16945
cat confdefs.h >>conftest.$ac_ext
 
16946
cat >>conftest.$ac_ext <<_ACEOF
 
16947
/* end confdefs.h.  */
 
16948
 
 
16949
int
 
16950
main ()
 
16951
{
 
16952
 
 
16953
  ;
 
16954
  return 0;
 
16955
}
 
16956
_ACEOF
 
16957
rm -f conftest.$ac_objext conftest$ac_exeext
 
16958
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16959
  (eval $ac_link) 2>conftest.er1
 
16960
  ac_status=$?
 
16961
  grep -v '^ *+' conftest.er1 >conftest.err
 
16962
  rm -f conftest.er1
 
16963
  cat conftest.err >&5
 
16964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16965
  (exit $ac_status); } &&
 
16966
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16968
  (eval $ac_try) 2>&5
 
16969
  ac_status=$?
 
16970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16971
  (exit $ac_status); }; } &&
 
16972
         { ac_try='test -s conftest$ac_exeext'
 
16973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16974
  (eval $ac_try) 2>&5
 
16975
  ac_status=$?
 
16976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16977
  (exit $ac_status); }; }; then
 
16978
 
 
16979
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16980
}'`
 
16981
# Check for a 64-bit object if we didn't find anything.
 
16982
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16983
}'`; fi
 
16984
else
 
16985
  echo "$as_me: failed program was:" >&5
 
16986
sed 's/^/| /' conftest.$ac_ext >&5
 
16987
 
 
16988
fi
 
16989
rm -f conftest.err conftest.$ac_objext \
 
16990
      conftest$ac_exeext conftest.$ac_ext
 
16991
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16992
 
 
16993
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16994
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16995
       else
 
16996
        if test "$host_cpu" = ia64; then
 
16997
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16998
          allow_undefined_flag_GCJ="-z nodefs"
 
16999
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
17000
        else
 
17001
         # Determine the default libpath from the value encoded in an empty executable.
 
17002
         cat >conftest.$ac_ext <<_ACEOF
 
17003
/* confdefs.h.  */
 
17004
_ACEOF
 
17005
cat confdefs.h >>conftest.$ac_ext
 
17006
cat >>conftest.$ac_ext <<_ACEOF
 
17007
/* end confdefs.h.  */
 
17008
 
 
17009
int
 
17010
main ()
 
17011
{
 
17012
 
 
17013
  ;
 
17014
  return 0;
 
17015
}
 
17016
_ACEOF
 
17017
rm -f conftest.$ac_objext conftest$ac_exeext
 
17018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17019
  (eval $ac_link) 2>conftest.er1
 
17020
  ac_status=$?
 
17021
  grep -v '^ *+' conftest.er1 >conftest.err
 
17022
  rm -f conftest.er1
 
17023
  cat conftest.err >&5
 
17024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17025
  (exit $ac_status); } &&
 
17026
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17027
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17028
  (eval $ac_try) 2>&5
 
17029
  ac_status=$?
 
17030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17031
  (exit $ac_status); }; } &&
 
17032
         { ac_try='test -s conftest$ac_exeext'
 
17033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17034
  (eval $ac_try) 2>&5
 
17035
  ac_status=$?
 
17036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17037
  (exit $ac_status); }; }; then
 
17038
 
 
17039
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17040
}'`
 
17041
# Check for a 64-bit object if we didn't find anything.
 
17042
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17043
}'`; fi
 
17044
else
 
17045
  echo "$as_me: failed program was:" >&5
 
17046
sed 's/^/| /' conftest.$ac_ext >&5
 
17047
 
 
17048
fi
 
17049
rm -f conftest.err conftest.$ac_objext \
 
17050
      conftest$ac_exeext conftest.$ac_ext
 
17051
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17052
 
 
17053
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17054
          # Warning - without using the other run time loading flags,
 
17055
          # -berok will link without error, but may produce a broken library.
 
17056
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17057
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17058
          # -bexpall does not export symbols beginning with underscore (_)
 
17059
          always_export_symbols_GCJ=yes
 
17060
          # Exported symbols can be pulled into shared objects from archives
 
17061
          whole_archive_flag_spec_GCJ=' '
 
17062
          archive_cmds_need_lc_GCJ=yes
 
17063
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17064
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17065
        fi
 
17066
      fi
 
17067
      ;;
 
17068
 
 
17069
    amigaos*)
 
17070
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17071
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17072
      hardcode_minus_L_GCJ=yes
 
17073
      # see comment about different semantics on the GNU ld section
 
17074
      ld_shlibs_GCJ=no
 
17075
      ;;
 
17076
 
 
17077
    bsdi4*)
 
17078
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17079
      ;;
 
17080
 
 
17081
    cygwin* | mingw* | pw32*)
 
17082
      # When not using gcc, we currently assume that we are using
 
17083
      # Microsoft Visual C++.
 
17084
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17085
      # no search path for DLLs.
 
17086
      hardcode_libdir_flag_spec_GCJ=' '
 
17087
      allow_undefined_flag_GCJ=unsupported
 
17088
      # Tell ltmain to make .lib files, not .a files.
 
17089
      libext=lib
 
17090
      # Tell ltmain to make .dll files, not .so files.
 
17091
      shrext_cmds=".dll"
 
17092
      # FIXME: Setting linknames here is a bad hack.
 
17093
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17094
      # The linker will automatically build a .lib file if we build a DLL.
 
17095
      old_archive_From_new_cmds_GCJ='true'
 
17096
      # FIXME: Should let the user specify the lib program.
 
17097
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17098
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17099
      enable_shared_with_static_runtimes_GCJ=yes
 
17100
      ;;
 
17101
 
 
17102
    darwin* | rhapsody*)
 
17103
    if test "$GXX" = yes ; then
 
17104
      archive_cmds_need_lc_GCJ=no
 
17105
      case "$host_os" in
 
17106
      rhapsody* | darwin1.[012])
 
17107
        allow_undefined_flag_GCJ='-undefined suppress'
 
17108
        ;;
 
17109
      *) # Darwin 1.3 on
 
17110
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17111
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17112
      else
 
17113
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
17114
          10.[012])
 
17115
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17116
            ;;
 
17117
          10.*)
 
17118
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
17119
            ;;
 
17120
        esac
 
17121
      fi
 
17122
        ;;
 
17123
      esac
 
17124
        lt_int_apple_cc_single_mod=no
 
17125
        output_verbose_link_cmd='echo'
 
17126
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
17127
          lt_int_apple_cc_single_mod=yes
 
17128
        fi
 
17129
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17130
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17131
        else
 
17132
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17133
      fi
 
17134
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17135
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
17136
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17137
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17138
        else
 
17139
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17140
        fi
 
17141
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17142
      hardcode_direct_GCJ=no
 
17143
      hardcode_automatic_GCJ=yes
 
17144
      hardcode_shlibpath_var_GCJ=unsupported
 
17145
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
17146
      link_all_deplibs_GCJ=yes
 
17147
    else
 
17148
      ld_shlibs_GCJ=no
 
17149
    fi
 
17150
      ;;
 
17151
 
 
17152
    dgux*)
 
17153
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17154
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17155
      hardcode_shlibpath_var_GCJ=no
 
17156
      ;;
 
17157
 
 
17158
    freebsd1*)
 
17159
      ld_shlibs_GCJ=no
 
17160
      ;;
 
17161
 
 
17162
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17163
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17164
    # does not break anything, and helps significantly (at the cost of a little
 
17165
    # extra space).
 
17166
    freebsd2.2*)
 
17167
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17168
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17169
      hardcode_direct_GCJ=yes
 
17170
      hardcode_shlibpath_var_GCJ=no
 
17171
      ;;
 
17172
 
 
17173
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17174
    freebsd2*)
 
17175
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17176
      hardcode_direct_GCJ=yes
 
17177
      hardcode_minus_L_GCJ=yes
 
17178
      hardcode_shlibpath_var_GCJ=no
 
17179
      ;;
 
17180
 
 
17181
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17182
    freebsd* | kfreebsd*-gnu)
 
17183
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17184
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17185
      hardcode_direct_GCJ=yes
 
17186
      hardcode_shlibpath_var_GCJ=no
 
17187
      ;;
 
17188
 
 
17189
    hpux9*)
 
17190
      if test "$GCC" = yes; then
 
17191
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17192
      else
 
17193
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17194
      fi
 
17195
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17196
      hardcode_libdir_separator_GCJ=:
 
17197
      hardcode_direct_GCJ=yes
 
17198
 
 
17199
      # hardcode_minus_L: Not really in the search PATH,
 
17200
      # but as the default location of the library.
 
17201
      hardcode_minus_L_GCJ=yes
 
17202
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17203
      ;;
 
17204
 
 
17205
    hpux10* | hpux11*)
 
17206
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17207
        case "$host_cpu" in
 
17208
        hppa*64*|ia64*)
 
17209
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17210
          ;;
 
17211
        *)
 
17212
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17213
          ;;
 
17214
        esac
 
17215
      else
 
17216
        case "$host_cpu" in
 
17217
        hppa*64*|ia64*)
 
17218
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17219
          ;;
 
17220
        *)
 
17221
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17222
          ;;
 
17223
        esac
 
17224
      fi
 
17225
      if test "$with_gnu_ld" = no; then
 
17226
        case "$host_cpu" in
 
17227
        hppa*64*)
 
17228
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17229
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17230
          hardcode_libdir_separator_GCJ=:
 
17231
          hardcode_direct_GCJ=no
 
17232
          hardcode_shlibpath_var_GCJ=no
 
17233
          ;;
 
17234
        ia64*)
 
17235
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17236
          hardcode_direct_GCJ=no
 
17237
          hardcode_shlibpath_var_GCJ=no
 
17238
 
 
17239
          # hardcode_minus_L: Not really in the search PATH,
 
17240
          # but as the default location of the library.
 
17241
          hardcode_minus_L_GCJ=yes
 
17242
          ;;
 
17243
        *)
 
17244
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17245
          hardcode_libdir_separator_GCJ=:
 
17246
          hardcode_direct_GCJ=yes
 
17247
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17248
 
 
17249
          # hardcode_minus_L: Not really in the search PATH,
 
17250
          # but as the default location of the library.
 
17251
          hardcode_minus_L_GCJ=yes
 
17252
          ;;
 
17253
        esac
 
17254
      fi
 
17255
      ;;
 
17256
 
 
17257
    irix5* | irix6* | nonstopux*)
 
17258
      if test "$GCC" = yes; then
 
17259
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17260
      else
 
17261
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17262
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17263
      fi
 
17264
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17265
      hardcode_libdir_separator_GCJ=:
 
17266
      link_all_deplibs_GCJ=yes
 
17267
      ;;
 
17268
 
 
17269
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
17270
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17271
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17272
      else
 
17273
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17274
      fi
 
17275
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17276
      hardcode_direct_GCJ=yes
 
17277
      hardcode_shlibpath_var_GCJ=no
 
17278
      ;;
 
17279
 
 
17280
    newsos6)
 
17281
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17282
      hardcode_direct_GCJ=yes
 
17283
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17284
      hardcode_libdir_separator_GCJ=:
 
17285
      hardcode_shlibpath_var_GCJ=no
 
17286
      ;;
 
17287
 
 
17288
    openbsd*)
 
17289
      hardcode_direct_GCJ=yes
 
17290
      hardcode_shlibpath_var_GCJ=no
 
17291
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17292
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17293
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17294
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17295
      else
 
17296
       case $host_os in
 
17297
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17298
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17299
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17300
           ;;
 
17301
         *)
 
17302
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17303
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17304
           ;;
 
17305
       esac
 
17306
      fi
 
17307
      ;;
 
17308
 
 
17309
    os2*)
 
17310
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17311
      hardcode_minus_L_GCJ=yes
 
17312
      allow_undefined_flag_GCJ=unsupported
 
17313
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
17314
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17315
      ;;
 
17316
 
 
17317
    osf3*)
 
17318
      if test "$GCC" = yes; then
 
17319
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17320
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17321
      else
 
17322
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17323
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17324
      fi
 
17325
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17326
      hardcode_libdir_separator_GCJ=:
 
17327
      ;;
 
17328
 
 
17329
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17330
      if test "$GCC" = yes; then
 
17331
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17332
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17333
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17334
      else
 
17335
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17336
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17337
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
17338
        $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'
 
17339
 
 
17340
        # Both c and cxx compiler support -rpath directly
 
17341
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17342
      fi
 
17343
      hardcode_libdir_separator_GCJ=:
 
17344
      ;;
 
17345
 
 
17346
    sco3.2v5*)
 
17347
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17348
      hardcode_shlibpath_var_GCJ=no
 
17349
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17350
      runpath_var=LD_RUN_PATH
 
17351
      hardcode_runpath_var=yes
 
17352
      ;;
 
17353
 
 
17354
    solaris*)
 
17355
      no_undefined_flag_GCJ=' -z text'
 
17356
      if test "$GCC" = yes; then
 
17357
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17358
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17359
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17360
      else
 
17361
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17362
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17363
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17364
      fi
 
17365
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17366
      hardcode_shlibpath_var_GCJ=no
 
17367
      case $host_os in
 
17368
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17369
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17370
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17371
      esac
 
17372
      link_all_deplibs_GCJ=yes
 
17373
      ;;
 
17374
 
 
17375
    sunos4*)
 
17376
      if test "x$host_vendor" = xsequent; then
 
17377
        # Use $CC to link under sequent, because it throws in some extra .o
 
17378
        # files that make .init and .fini sections work.
 
17379
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17380
      else
 
17381
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17382
      fi
 
17383
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17384
      hardcode_direct_GCJ=yes
 
17385
      hardcode_minus_L_GCJ=yes
 
17386
      hardcode_shlibpath_var_GCJ=no
 
17387
      ;;
 
17388
 
 
17389
    sysv4)
 
17390
      case $host_vendor in
 
17391
        sni)
 
17392
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17393
          hardcode_direct_GCJ=yes # is this really true???
 
17394
        ;;
 
17395
        siemens)
 
17396
          ## LD is ld it makes a PLAMLIB
 
17397
          ## CC just makes a GrossModule.
 
17398
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17399
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17400
          hardcode_direct_GCJ=no
 
17401
        ;;
 
17402
        motorola)
 
17403
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17404
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17405
        ;;
 
17406
      esac
 
17407
      runpath_var='LD_RUN_PATH'
 
17408
      hardcode_shlibpath_var_GCJ=no
 
17409
      ;;
 
17410
 
 
17411
    sysv4.3*)
 
17412
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17413
      hardcode_shlibpath_var_GCJ=no
 
17414
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17415
      ;;
 
17416
 
 
17417
    sysv4*MP*)
 
17418
      if test -d /usr/nec; then
 
17419
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17420
        hardcode_shlibpath_var_GCJ=no
 
17421
        runpath_var=LD_RUN_PATH
 
17422
        hardcode_runpath_var=yes
 
17423
        ld_shlibs_GCJ=yes
 
17424
      fi
 
17425
      ;;
 
17426
 
 
17427
    sysv4.2uw2*)
 
17428
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17429
      hardcode_direct_GCJ=yes
 
17430
      hardcode_minus_L_GCJ=no
 
17431
      hardcode_shlibpath_var_GCJ=no
 
17432
      hardcode_runpath_var=yes
 
17433
      runpath_var=LD_RUN_PATH
 
17434
      ;;
 
17435
 
 
17436
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17437
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17438
      if test "$GCC" = yes; then
 
17439
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17440
      else
 
17441
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17442
      fi
 
17443
      runpath_var='LD_RUN_PATH'
 
17444
      hardcode_shlibpath_var_GCJ=no
 
17445
      ;;
 
17446
 
 
17447
    sysv5*)
 
17448
      no_undefined_flag_GCJ=' -z text'
 
17449
      # $CC -shared without GNU ld will not create a library from C++
 
17450
      # object files and a static libstdc++, better avoid it by now
 
17451
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17452
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17453
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17454
      hardcode_libdir_flag_spec_GCJ=
 
17455
      hardcode_shlibpath_var_GCJ=no
 
17456
      runpath_var='LD_RUN_PATH'
 
17457
      ;;
 
17458
 
 
17459
    uts4*)
 
17460
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17461
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17462
      hardcode_shlibpath_var_GCJ=no
 
17463
      ;;
 
17464
 
 
17465
    *)
 
17466
      ld_shlibs_GCJ=no
 
17467
      ;;
 
17468
    esac
 
17469
  fi
 
17470
 
 
17471
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17472
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17473
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17474
 
 
17475
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17476
if test "$GCC" = yes; then
 
17477
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17478
fi
 
17479
 
 
17480
#
 
17481
# Do we need to explicitly link libc?
 
17482
#
 
17483
case "x$archive_cmds_need_lc_GCJ" in
 
17484
x|xyes)
 
17485
  # Assume -lc should be added
 
17486
  archive_cmds_need_lc_GCJ=yes
 
17487
 
 
17488
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17489
    case $archive_cmds_GCJ in
 
17490
    *'~'*)
 
17491
      # FIXME: we may have to deal with multi-command sequences.
 
17492
      ;;
 
17493
    '$CC '*)
 
17494
      # Test whether the compiler implicitly links with -lc since on some
 
17495
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17496
      # to ld, don't add -lc before -lgcc.
 
17497
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17498
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17499
      $rm conftest*
 
17500
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17501
 
 
17502
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17503
  (eval $ac_compile) 2>&5
 
17504
  ac_status=$?
 
17505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17506
  (exit $ac_status); } 2>conftest.err; then
 
17507
        soname=conftest
 
17508
        lib=conftest
 
17509
        libobjs=conftest.$ac_objext
 
17510
        deplibs=
 
17511
        wl=$lt_prog_compiler_wl_GCJ
 
17512
        compiler_flags=-v
 
17513
        linker_flags=-v
 
17514
        verstring=
 
17515
        output_objdir=.
 
17516
        libname=conftest
 
17517
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17518
        allow_undefined_flag_GCJ=
 
17519
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17520
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17521
  ac_status=$?
 
17522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17523
  (exit $ac_status); }
 
17524
        then
 
17525
          archive_cmds_need_lc_GCJ=no
 
17526
        else
 
17527
          archive_cmds_need_lc_GCJ=yes
 
17528
        fi
 
17529
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17530
      else
 
17531
        cat conftest.err 1>&5
 
17532
      fi
 
17533
      $rm conftest*
 
17534
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17535
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17536
      ;;
 
17537
    esac
 
17538
  fi
 
17539
  ;;
 
17540
esac
 
17541
 
 
17542
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17543
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17544
library_names_spec=
 
17545
libname_spec='lib$name'
 
17546
soname_spec=
 
17547
shrext_cmds=".so"
 
17548
postinstall_cmds=
 
17549
postuninstall_cmds=
 
17550
finish_cmds=
 
17551
finish_eval=
 
17552
shlibpath_var=
 
17553
shlibpath_overrides_runpath=unknown
 
17554
version_type=none
 
17555
dynamic_linker="$host_os ld.so"
 
17556
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17557
if test "$GCC" = yes; then
 
17558
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17559
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17560
    # if the path contains ";" then we assume it to be the separator
 
17561
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17562
    # assumed that no part of a normal pathname contains ";" but that should
 
17563
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17564
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17565
  else
 
17566
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17567
  fi
 
17568
else
 
17569
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17570
fi
 
17571
need_lib_prefix=unknown
 
17572
hardcode_into_libs=no
 
17573
 
 
17574
# when you set need_version to no, make sure it does not cause -set_version
 
17575
# flags to be left without arguments
 
17576
need_version=unknown
 
17577
 
 
17578
case $host_os in
 
17579
aix3*)
 
17580
  version_type=linux
 
17581
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17582
  shlibpath_var=LIBPATH
 
17583
 
 
17584
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17585
  soname_spec='${libname}${release}${shared_ext}$major'
 
17586
  ;;
 
17587
 
 
17588
aix4* | aix5*)
 
17589
  version_type=linux
 
17590
  need_lib_prefix=no
 
17591
  need_version=no
 
17592
  hardcode_into_libs=yes
 
17593
  if test "$host_cpu" = ia64; then
 
17594
    # AIX 5 supports IA64
 
17595
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17596
    shlibpath_var=LD_LIBRARY_PATH
 
17597
  else
 
17598
    # With GCC up to 2.95.x, collect2 would create an import file
 
17599
    # for dependence libraries.  The import file would start with
 
17600
    # the line `#! .'.  This would cause the generated library to
 
17601
    # depend on `.', always an invalid library.  This was fixed in
 
17602
    # development snapshots of GCC prior to 3.0.
 
17603
    case $host_os in
 
17604
      aix4 | aix4.[01] | aix4.[01].*)
 
17605
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17606
           echo ' yes '
 
17607
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17608
        :
 
17609
      else
 
17610
        can_build_shared=no
 
17611
      fi
 
17612
      ;;
 
17613
    esac
 
17614
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17615
    # soname into executable. Probably we can add versioning support to
 
17616
    # collect2, so additional links can be useful in future.
 
17617
    if test "$aix_use_runtimelinking" = yes; then
 
17618
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17619
      # instead of lib<name>.a to let people know that these are not
 
17620
      # typical AIX shared libraries.
 
17621
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17622
    else
 
17623
      # We preserve .a as extension for shared libraries through AIX4.2
 
17624
      # and later when we are not doing run time linking.
 
17625
      library_names_spec='${libname}${release}.a $libname.a'
 
17626
      soname_spec='${libname}${release}${shared_ext}$major'
 
17627
    fi
 
17628
    shlibpath_var=LIBPATH
 
17629
  fi
 
17630
  ;;
 
17631
 
 
17632
amigaos*)
 
17633
  library_names_spec='$libname.ixlibrary $libname.a'
 
17634
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17635
  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'
 
17636
  ;;
 
17637
 
 
17638
beos*)
 
17639
  library_names_spec='${libname}${shared_ext}'
 
17640
  dynamic_linker="$host_os ld.so"
 
17641
  shlibpath_var=LIBRARY_PATH
 
17642
  ;;
 
17643
 
 
17644
bsdi4*)
 
17645
  version_type=linux
 
17646
  need_version=no
 
17647
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17648
  soname_spec='${libname}${release}${shared_ext}$major'
 
17649
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17650
  shlibpath_var=LD_LIBRARY_PATH
 
17651
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17652
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17653
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17654
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17655
  # libtool to hard-code these into programs
 
17656
  ;;
 
17657
 
 
17658
cygwin* | mingw* | pw32*)
 
17659
  version_type=windows
 
17660
  shrext_cmds=".dll"
 
17661
  need_version=no
 
17662
  need_lib_prefix=no
 
17663
 
 
17664
  case $GCC,$host_os in
 
17665
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17666
    library_names_spec='$libname.dll.a'
 
17667
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17668
    postinstall_cmds='base_file=`basename \${file}`~
 
17669
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17670
      dldir=$destdir/`dirname \$dlpath`~
 
17671
      test -d \$dldir || mkdir -p \$dldir~
 
17672
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17673
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17674
      dlpath=$dir/\$dldll~
 
17675
       $rm \$dlpath'
 
17676
    shlibpath_overrides_runpath=yes
 
17677
 
 
17678
    case $host_os in
 
17679
    cygwin*)
 
17680
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17681
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17682
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17683
      ;;
 
17684
    mingw*)
 
17685
      # MinGW DLLs use traditional 'lib' prefix
 
17686
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17687
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17688
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17689
        # It is most probably a Windows format PATH printed by
 
17690
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17691
        # path with ; separators, and with drive letters. We can handle the
 
17692
        # drive letters (cygwin fileutils understands them), so leave them,
 
17693
        # especially as we might pass files found there to a mingw objdump,
 
17694
        # which wouldn't understand a cygwinified path. Ahh.
 
17695
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17696
      else
 
17697
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17698
      fi
 
17699
      ;;
 
17700
    pw32*)
 
17701
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17702
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17703
      ;;
 
17704
    esac
 
17705
    ;;
 
17706
 
 
17707
  *)
 
17708
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17709
    ;;
 
17710
  esac
 
17711
  dynamic_linker='Win32 ld.exe'
 
17712
  # FIXME: first we should search . and the directory the executable is in
 
17713
  shlibpath_var=PATH
 
17714
  ;;
 
17715
 
 
17716
darwin* | rhapsody*)
 
17717
  dynamic_linker="$host_os dyld"
 
17718
  version_type=darwin
 
17719
  need_lib_prefix=no
 
17720
  need_version=no
 
17721
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17722
  soname_spec='${libname}${release}${major}$shared_ext'
 
17723
  shlibpath_overrides_runpath=yes
 
17724
  shlibpath_var=DYLD_LIBRARY_PATH
 
17725
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17726
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17727
  if test "$GCC" = yes; then
 
17728
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
17729
  else
 
17730
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17731
  fi
 
17732
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17733
  ;;
 
17734
 
 
17735
dgux*)
 
17736
  version_type=linux
 
17737
  need_lib_prefix=no
 
17738
  need_version=no
 
17739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17740
  soname_spec='${libname}${release}${shared_ext}$major'
 
17741
  shlibpath_var=LD_LIBRARY_PATH
 
17742
  ;;
 
17743
 
 
17744
freebsd1*)
 
17745
  dynamic_linker=no
 
17746
  ;;
 
17747
 
 
17748
kfreebsd*-gnu)
 
17749
  version_type=linux
 
17750
  need_lib_prefix=no
 
17751
  need_version=no
 
17752
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17753
  soname_spec='${libname}${release}${shared_ext}$major'
 
17754
  shlibpath_var=LD_LIBRARY_PATH
 
17755
  shlibpath_overrides_runpath=no
 
17756
  hardcode_into_libs=yes
 
17757
  dynamic_linker='GNU ld.so'
 
17758
  ;;
 
17759
 
 
17760
freebsd*)
 
17761
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17762
  version_type=freebsd-$objformat
 
17763
  case $version_type in
 
17764
    freebsd-elf*)
 
17765
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17766
      need_version=no
 
17767
      need_lib_prefix=no
 
17768
      ;;
 
17769
    freebsd-*)
 
17770
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17771
      need_version=yes
 
17772
      ;;
 
17773
  esac
 
17774
  shlibpath_var=LD_LIBRARY_PATH
 
17775
  case $host_os in
 
17776
  freebsd2*)
 
17777
    shlibpath_overrides_runpath=yes
 
17778
    ;;
 
17779
  freebsd3.01* | freebsdelf3.01*)
 
17780
    shlibpath_overrides_runpath=yes
 
17781
    hardcode_into_libs=yes
 
17782
    ;;
 
17783
  *) # from 3.2 on
 
17784
    shlibpath_overrides_runpath=no
 
17785
    hardcode_into_libs=yes
 
17786
    ;;
 
17787
  esac
 
17788
  ;;
 
17789
 
 
17790
gnu*)
 
17791
  version_type=linux
 
17792
  need_lib_prefix=no
 
17793
  need_version=no
 
17794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17795
  soname_spec='${libname}${release}${shared_ext}$major'
 
17796
  shlibpath_var=LD_LIBRARY_PATH
 
17797
  hardcode_into_libs=yes
 
17798
  ;;
 
17799
 
 
17800
hpux9* | hpux10* | hpux11*)
 
17801
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17802
  # link against other versions.
 
17803
  version_type=sunos
 
17804
  need_lib_prefix=no
 
17805
  need_version=no
 
17806
  case "$host_cpu" in
 
17807
  ia64*)
 
17808
    shrext_cmds='.so'
 
17809
    hardcode_into_libs=yes
 
17810
    dynamic_linker="$host_os dld.so"
 
17811
    shlibpath_var=LD_LIBRARY_PATH
 
17812
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17813
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17814
    soname_spec='${libname}${release}${shared_ext}$major'
 
17815
    if test "X$HPUX_IA64_MODE" = X32; then
 
17816
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17817
    else
 
17818
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17819
    fi
 
17820
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17821
    ;;
 
17822
   hppa*64*)
 
17823
     shrext_cmds='.sl'
 
17824
     hardcode_into_libs=yes
 
17825
     dynamic_linker="$host_os dld.sl"
 
17826
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17827
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17828
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17829
     soname_spec='${libname}${release}${shared_ext}$major'
 
17830
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17831
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17832
     ;;
 
17833
   *)
 
17834
    shrext_cmds='.sl'
 
17835
    dynamic_linker="$host_os dld.sl"
 
17836
    shlibpath_var=SHLIB_PATH
 
17837
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17838
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17839
    soname_spec='${libname}${release}${shared_ext}$major'
 
17840
    ;;
 
17841
  esac
 
17842
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17843
  postinstall_cmds='chmod 555 $lib'
 
17844
  ;;
 
17845
 
 
17846
irix5* | irix6* | nonstopux*)
 
17847
  case $host_os in
 
17848
    nonstopux*) version_type=nonstopux ;;
 
17849
    *)
 
17850
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17851
                version_type=linux
 
17852
        else
 
17853
                version_type=irix
 
17854
        fi ;;
 
17855
  esac
 
17856
  need_lib_prefix=no
 
17857
  need_version=no
 
17858
  soname_spec='${libname}${release}${shared_ext}$major'
 
17859
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17860
  case $host_os in
 
17861
  irix5* | nonstopux*)
 
17862
    libsuff= shlibsuff=
 
17863
    ;;
 
17864
  *)
 
17865
    case $LD in # libtool.m4 will add one of these switches to LD
 
17866
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17867
      libsuff= shlibsuff= libmagic=32-bit;;
 
17868
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17869
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17870
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17871
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17872
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17873
    esac
 
17874
    ;;
 
17875
  esac
 
17876
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17877
  shlibpath_overrides_runpath=no
 
17878
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17879
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17880
  hardcode_into_libs=yes
 
17881
  ;;
 
17882
 
 
17883
# No shared lib support for Linux oldld, aout, or coff.
 
17884
linux*oldld* | linux*aout* | linux*coff*)
 
17885
  dynamic_linker=no
 
17886
  ;;
 
17887
 
 
17888
# This must be Linux ELF.
 
17889
linux*)
 
17890
  version_type=linux
 
17891
  need_lib_prefix=no
 
17892
  need_version=no
 
17893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17894
  soname_spec='${libname}${release}${shared_ext}$major'
 
17895
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17896
  shlibpath_var=LD_LIBRARY_PATH
 
17897
  shlibpath_overrides_runpath=no
 
17898
  # This implies no fast_install, which is unacceptable.
 
17899
  # Some rework will be needed to allow for fast_install
 
17900
  # before this can be enabled.
 
17901
  hardcode_into_libs=yes
 
17902
 
 
17903
  # Append ld.so.conf contents to the search path
 
17904
  if test -f /etc/ld.so.conf; then
 
17905
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17906
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17907
  fi
 
17908
 
 
17909
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17910
  # powerpc, because MkLinux only supported shared libraries with the
 
17911
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17912
  # most powerpc-linux boxes support dynamic linking these days and
 
17913
  # people can always --disable-shared, the test was removed, and we
 
17914
  # assume the GNU/Linux dynamic linker is in use.
 
17915
  dynamic_linker='GNU/Linux ld.so'
 
17916
  ;;
 
17917
 
 
17918
netbsdelf*-gnu)
 
17919
  version_type=linux
 
17920
  need_lib_prefix=no
 
17921
  need_version=no
 
17922
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17923
  soname_spec='${libname}${release}${shared_ext}$major'
 
17924
  shlibpath_var=LD_LIBRARY_PATH
 
17925
  shlibpath_overrides_runpath=no
 
17926
  hardcode_into_libs=yes
 
17927
  dynamic_linker='NetBSD ld.elf_so'
 
17928
  ;;
 
17929
 
 
17930
knetbsd*-gnu)
 
17931
  version_type=linux
 
17932
  need_lib_prefix=no
 
17933
  need_version=no
 
17934
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17935
  soname_spec='${libname}${release}${shared_ext}$major'
 
17936
  shlibpath_var=LD_LIBRARY_PATH
 
17937
  shlibpath_overrides_runpath=no
 
17938
  hardcode_into_libs=yes
 
17939
  dynamic_linker='GNU ld.so'
 
17940
  ;;
 
17941
 
 
17942
netbsd*)
 
17943
  version_type=sunos
 
17944
  need_lib_prefix=no
 
17945
  need_version=no
 
17946
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17947
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17948
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17949
    dynamic_linker='NetBSD (a.out) ld.so'
 
17950
  else
 
17951
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17952
    soname_spec='${libname}${release}${shared_ext}$major'
 
17953
    dynamic_linker='NetBSD ld.elf_so'
 
17954
  fi
 
17955
  shlibpath_var=LD_LIBRARY_PATH
 
17956
  shlibpath_overrides_runpath=yes
 
17957
  hardcode_into_libs=yes
 
17958
  ;;
 
17959
 
 
17960
newsos6)
 
17961
  version_type=linux
 
17962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17963
  shlibpath_var=LD_LIBRARY_PATH
 
17964
  shlibpath_overrides_runpath=yes
 
17965
  ;;
 
17966
 
 
17967
nto-qnx*)
 
17968
  version_type=linux
 
17969
  need_lib_prefix=no
 
17970
  need_version=no
 
17971
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17972
  soname_spec='${libname}${release}${shared_ext}$major'
 
17973
  shlibpath_var=LD_LIBRARY_PATH
 
17974
  shlibpath_overrides_runpath=yes
 
17975
  ;;
 
17976
 
 
17977
openbsd*)
 
17978
  version_type=sunos
 
17979
  need_lib_prefix=no
 
17980
  need_version=yes
 
17981
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17982
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17983
  shlibpath_var=LD_LIBRARY_PATH
 
17984
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17985
    case $host_os in
 
17986
      openbsd2.[89] | openbsd2.[89].*)
 
17987
        shlibpath_overrides_runpath=no
 
17988
        ;;
 
17989
      *)
 
17990
        shlibpath_overrides_runpath=yes
 
17991
        ;;
 
17992
      esac
 
17993
  else
 
17994
    shlibpath_overrides_runpath=yes
 
17995
  fi
 
17996
  ;;
 
17997
 
 
17998
os2*)
 
17999
  libname_spec='$name'
 
18000
  shrext_cmds=".dll"
 
18001
  need_lib_prefix=no
 
18002
  library_names_spec='$libname${shared_ext} $libname.a'
 
18003
  dynamic_linker='OS/2 ld.exe'
 
18004
  shlibpath_var=LIBPATH
 
18005
  ;;
 
18006
 
 
18007
osf3* | osf4* | osf5*)
 
18008
  version_type=osf
 
18009
  need_lib_prefix=no
 
18010
  need_version=no
 
18011
  soname_spec='${libname}${release}${shared_ext}$major'
 
18012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18013
  shlibpath_var=LD_LIBRARY_PATH
 
18014
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18015
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18016
  ;;
 
18017
 
 
18018
sco3.2v5*)
 
18019
  version_type=osf
 
18020
  soname_spec='${libname}${release}${shared_ext}$major'
 
18021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18022
  shlibpath_var=LD_LIBRARY_PATH
 
18023
  ;;
 
18024
 
 
18025
solaris*)
 
18026
  version_type=linux
 
18027
  need_lib_prefix=no
 
18028
  need_version=no
 
18029
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18030
  soname_spec='${libname}${release}${shared_ext}$major'
 
18031
  shlibpath_var=LD_LIBRARY_PATH
 
18032
  shlibpath_overrides_runpath=yes
 
18033
  hardcode_into_libs=yes
 
18034
  # ldd complains unless libraries are executable
 
18035
  postinstall_cmds='chmod +x $lib'
 
18036
  ;;
 
18037
 
 
18038
sunos4*)
 
18039
  version_type=sunos
 
18040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18041
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18042
  shlibpath_var=LD_LIBRARY_PATH
 
18043
  shlibpath_overrides_runpath=yes
 
18044
  if test "$with_gnu_ld" = yes; then
 
18045
    need_lib_prefix=no
 
18046
  fi
 
18047
  need_version=yes
 
18048
  ;;
 
18049
 
 
18050
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18051
  version_type=linux
 
18052
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18053
  soname_spec='${libname}${release}${shared_ext}$major'
 
18054
  shlibpath_var=LD_LIBRARY_PATH
 
18055
  case $host_vendor in
 
18056
    sni)
 
18057
      shlibpath_overrides_runpath=no
 
18058
      need_lib_prefix=no
 
18059
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18060
      runpath_var=LD_RUN_PATH
 
18061
      ;;
 
18062
    siemens)
 
18063
      need_lib_prefix=no
 
18064
      ;;
 
18065
    motorola)
 
18066
      need_lib_prefix=no
 
18067
      need_version=no
 
18068
      shlibpath_overrides_runpath=no
 
18069
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18070
      ;;
 
18071
  esac
 
18072
  ;;
 
18073
 
 
18074
sysv4*MP*)
 
18075
  if test -d /usr/nec ;then
 
18076
    version_type=linux
 
18077
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18078
    soname_spec='$libname${shared_ext}.$major'
 
18079
    shlibpath_var=LD_LIBRARY_PATH
 
18080
  fi
 
18081
  ;;
 
18082
 
 
18083
uts4*)
 
18084
  version_type=linux
 
18085
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18086
  soname_spec='${libname}${release}${shared_ext}$major'
 
18087
  shlibpath_var=LD_LIBRARY_PATH
 
18088
  ;;
 
18089
 
 
18090
*)
 
18091
  dynamic_linker=no
 
18092
  ;;
 
18093
esac
 
18094
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18095
echo "${ECHO_T}$dynamic_linker" >&6
 
18096
test "$dynamic_linker" = no && can_build_shared=no
 
18097
 
 
18098
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18099
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18100
hardcode_action_GCJ=
 
18101
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18102
   test -n "$runpath_var GCJ" || \
 
18103
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
18104
 
 
18105
  # We can hardcode non-existant directories.
 
18106
  if test "$hardcode_direct_GCJ" != no &&
 
18107
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18108
     # have to relink, otherwise we might link with an installed library
 
18109
     # when we should be linking with a yet-to-be-installed one
 
18110
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18111
     test "$hardcode_minus_L_GCJ" != no; then
 
18112
    # Linking always hardcodes the temporary library directory.
 
18113
    hardcode_action_GCJ=relink
 
18114
  else
 
18115
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18116
    hardcode_action_GCJ=immediate
 
18117
  fi
 
18118
else
 
18119
  # We cannot hardcode anything, or else we can only hardcode existing
 
18120
  # directories.
 
18121
  hardcode_action_GCJ=unsupported
 
18122
fi
 
18123
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18124
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18125
 
 
18126
if test "$hardcode_action_GCJ" = relink; then
 
18127
  # Fast installation is not supported
 
18128
  enable_fast_install=no
 
18129
elif test "$shlibpath_overrides_runpath" = yes ||
 
18130
     test "$enable_shared" = no; then
 
18131
  # Fast installation is not necessary
 
18132
  enable_fast_install=needless
 
18133
fi
 
18134
 
 
18135
striplib=
 
18136
old_striplib=
 
18137
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
18138
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
18139
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
18140
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
18141
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
18142
  echo "$as_me:$LINENO: result: yes" >&5
 
18143
echo "${ECHO_T}yes" >&6
 
18144
else
 
18145
# FIXME - insert some real tests, host_os isn't really good enough
 
18146
  case $host_os in
 
18147
   darwin*)
 
18148
       if test -n "$STRIP" ; then
 
18149
         striplib="$STRIP -x"
 
18150
         echo "$as_me:$LINENO: result: yes" >&5
 
18151
echo "${ECHO_T}yes" >&6
 
18152
       else
 
18153
  echo "$as_me:$LINENO: result: no" >&5
 
18154
echo "${ECHO_T}no" >&6
 
18155
fi
 
18156
       ;;
 
18157
   *)
 
18158
  echo "$as_me:$LINENO: result: no" >&5
 
18159
echo "${ECHO_T}no" >&6
 
18160
    ;;
 
18161
  esac
 
18162
fi
 
18163
 
 
18164
if test "x$enable_dlopen" != xyes; then
 
18165
  enable_dlopen=unknown
 
18166
  enable_dlopen_self=unknown
 
18167
  enable_dlopen_self_static=unknown
 
18168
else
 
18169
  lt_cv_dlopen=no
 
18170
  lt_cv_dlopen_libs=
 
18171
 
 
18172
  case $host_os in
 
18173
  beos*)
 
18174
    lt_cv_dlopen="load_add_on"
 
18175
    lt_cv_dlopen_libs=
 
18176
    lt_cv_dlopen_self=yes
 
18177
    ;;
 
18178
 
 
18179
  mingw* | pw32*)
 
18180
    lt_cv_dlopen="LoadLibrary"
 
18181
    lt_cv_dlopen_libs=
 
18182
   ;;
 
18183
 
 
18184
  cygwin*)
 
18185
    lt_cv_dlopen="dlopen"
 
18186
    lt_cv_dlopen_libs=
 
18187
   ;;
 
18188
 
 
18189
  darwin*)
 
18190
  # if libdl is installed we need to link against it
 
18191
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18192
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18193
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18194
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18195
else
 
18196
  ac_check_lib_save_LIBS=$LIBS
 
18197
LIBS="-ldl  $LIBS"
 
18198
cat >conftest.$ac_ext <<_ACEOF
 
18199
/* confdefs.h.  */
 
18200
_ACEOF
 
18201
cat confdefs.h >>conftest.$ac_ext
 
18202
cat >>conftest.$ac_ext <<_ACEOF
 
18203
/* end confdefs.h.  */
 
18204
 
 
18205
/* Override any gcc2 internal prototype to avoid an error.  */
 
18206
#ifdef __cplusplus
 
18207
extern "C"
 
18208
#endif
 
18209
/* We use char because int might match the return type of a gcc2
 
18210
   builtin and then its argument prototype would still apply.  */
 
18211
char dlopen ();
 
18212
int
 
18213
main ()
 
18214
{
 
18215
dlopen ();
 
18216
  ;
 
18217
  return 0;
 
18218
}
 
18219
_ACEOF
 
18220
rm -f conftest.$ac_objext conftest$ac_exeext
 
18221
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18222
  (eval $ac_link) 2>conftest.er1
 
18223
  ac_status=$?
 
18224
  grep -v '^ *+' conftest.er1 >conftest.err
 
18225
  rm -f conftest.er1
 
18226
  cat conftest.err >&5
 
18227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18228
  (exit $ac_status); } &&
 
18229
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18231
  (eval $ac_try) 2>&5
 
18232
  ac_status=$?
 
18233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18234
  (exit $ac_status); }; } &&
 
18235
         { ac_try='test -s conftest$ac_exeext'
 
18236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18237
  (eval $ac_try) 2>&5
 
18238
  ac_status=$?
 
18239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18240
  (exit $ac_status); }; }; then
 
18241
  ac_cv_lib_dl_dlopen=yes
 
18242
else
 
18243
  echo "$as_me: failed program was:" >&5
 
18244
sed 's/^/| /' conftest.$ac_ext >&5
 
18245
 
 
18246
ac_cv_lib_dl_dlopen=no
 
18247
fi
 
18248
rm -f conftest.err conftest.$ac_objext \
 
18249
      conftest$ac_exeext conftest.$ac_ext
 
18250
LIBS=$ac_check_lib_save_LIBS
 
18251
fi
 
18252
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18253
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18254
if test $ac_cv_lib_dl_dlopen = yes; then
 
18255
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18256
else
 
18257
 
 
18258
    lt_cv_dlopen="dyld"
 
18259
    lt_cv_dlopen_libs=
 
18260
    lt_cv_dlopen_self=yes
 
18261
 
 
18262
fi
 
18263
 
 
18264
   ;;
 
18265
 
 
18266
  *)
 
18267
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18268
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18269
if test "${ac_cv_func_shl_load+set}" = set; then
 
18270
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18271
else
 
18272
  cat >conftest.$ac_ext <<_ACEOF
 
18273
/* confdefs.h.  */
 
18274
_ACEOF
 
18275
cat confdefs.h >>conftest.$ac_ext
 
18276
cat >>conftest.$ac_ext <<_ACEOF
 
18277
/* end confdefs.h.  */
 
18278
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18279
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18280
#define shl_load innocuous_shl_load
 
18281
 
 
18282
/* System header to define __stub macros and hopefully few prototypes,
 
18283
    which can conflict with char shl_load (); below.
 
18284
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18285
    <limits.h> exists even on freestanding compilers.  */
 
18286
 
 
18287
#ifdef __STDC__
 
18288
# include <limits.h>
 
18289
#else
 
18290
# include <assert.h>
 
18291
#endif
 
18292
 
 
18293
#undef shl_load
 
18294
 
 
18295
/* Override any gcc2 internal prototype to avoid an error.  */
 
18296
#ifdef __cplusplus
 
18297
extern "C"
 
18298
{
 
18299
#endif
 
18300
/* We use char because int might match the return type of a gcc2
 
18301
   builtin and then its argument prototype would still apply.  */
 
18302
char shl_load ();
 
18303
/* The GNU C library defines this for functions which it implements
 
18304
    to always fail with ENOSYS.  Some functions are actually named
 
18305
    something starting with __ and the normal name is an alias.  */
 
18306
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18307
choke me
 
18308
#else
 
18309
char (*f) () = shl_load;
 
18310
#endif
 
18311
#ifdef __cplusplus
 
18312
}
 
18313
#endif
 
18314
 
 
18315
int
 
18316
main ()
 
18317
{
 
18318
return f != shl_load;
 
18319
  ;
 
18320
  return 0;
 
18321
}
 
18322
_ACEOF
 
18323
rm -f conftest.$ac_objext conftest$ac_exeext
 
18324
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18325
  (eval $ac_link) 2>conftest.er1
 
18326
  ac_status=$?
 
18327
  grep -v '^ *+' conftest.er1 >conftest.err
 
18328
  rm -f conftest.er1
 
18329
  cat conftest.err >&5
 
18330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18331
  (exit $ac_status); } &&
 
18332
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18334
  (eval $ac_try) 2>&5
 
18335
  ac_status=$?
 
18336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18337
  (exit $ac_status); }; } &&
 
18338
         { ac_try='test -s conftest$ac_exeext'
 
18339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18340
  (eval $ac_try) 2>&5
 
18341
  ac_status=$?
 
18342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18343
  (exit $ac_status); }; }; then
 
18344
  ac_cv_func_shl_load=yes
 
18345
else
 
18346
  echo "$as_me: failed program was:" >&5
 
18347
sed 's/^/| /' conftest.$ac_ext >&5
 
18348
 
 
18349
ac_cv_func_shl_load=no
 
18350
fi
 
18351
rm -f conftest.err conftest.$ac_objext \
 
18352
      conftest$ac_exeext conftest.$ac_ext
 
18353
fi
 
18354
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18355
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18356
if test $ac_cv_func_shl_load = yes; then
 
18357
  lt_cv_dlopen="shl_load"
 
18358
else
 
18359
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18360
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18361
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18363
else
 
18364
  ac_check_lib_save_LIBS=$LIBS
 
18365
LIBS="-ldld  $LIBS"
 
18366
cat >conftest.$ac_ext <<_ACEOF
 
18367
/* confdefs.h.  */
 
18368
_ACEOF
 
18369
cat confdefs.h >>conftest.$ac_ext
 
18370
cat >>conftest.$ac_ext <<_ACEOF
 
18371
/* end confdefs.h.  */
 
18372
 
 
18373
/* Override any gcc2 internal prototype to avoid an error.  */
 
18374
#ifdef __cplusplus
 
18375
extern "C"
 
18376
#endif
 
18377
/* We use char because int might match the return type of a gcc2
 
18378
   builtin and then its argument prototype would still apply.  */
 
18379
char shl_load ();
 
18380
int
 
18381
main ()
 
18382
{
 
18383
shl_load ();
 
18384
  ;
 
18385
  return 0;
 
18386
}
 
18387
_ACEOF
 
18388
rm -f conftest.$ac_objext conftest$ac_exeext
 
18389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18390
  (eval $ac_link) 2>conftest.er1
 
18391
  ac_status=$?
 
18392
  grep -v '^ *+' conftest.er1 >conftest.err
 
18393
  rm -f conftest.er1
 
18394
  cat conftest.err >&5
 
18395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18396
  (exit $ac_status); } &&
 
18397
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18399
  (eval $ac_try) 2>&5
 
18400
  ac_status=$?
 
18401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18402
  (exit $ac_status); }; } &&
 
18403
         { ac_try='test -s conftest$ac_exeext'
 
18404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18405
  (eval $ac_try) 2>&5
 
18406
  ac_status=$?
 
18407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18408
  (exit $ac_status); }; }; then
 
18409
  ac_cv_lib_dld_shl_load=yes
 
18410
else
 
18411
  echo "$as_me: failed program was:" >&5
 
18412
sed 's/^/| /' conftest.$ac_ext >&5
 
18413
 
 
18414
ac_cv_lib_dld_shl_load=no
 
18415
fi
 
18416
rm -f conftest.err conftest.$ac_objext \
 
18417
      conftest$ac_exeext conftest.$ac_ext
 
18418
LIBS=$ac_check_lib_save_LIBS
 
18419
fi
 
18420
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18421
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18422
if test $ac_cv_lib_dld_shl_load = yes; then
 
18423
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18424
else
 
18425
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18426
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18427
if test "${ac_cv_func_dlopen+set}" = set; then
 
18428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18429
else
 
18430
  cat >conftest.$ac_ext <<_ACEOF
 
18431
/* confdefs.h.  */
 
18432
_ACEOF
 
18433
cat confdefs.h >>conftest.$ac_ext
 
18434
cat >>conftest.$ac_ext <<_ACEOF
 
18435
/* end confdefs.h.  */
 
18436
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18437
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18438
#define dlopen innocuous_dlopen
 
18439
 
 
18440
/* System header to define __stub macros and hopefully few prototypes,
 
18441
    which can conflict with char dlopen (); below.
 
18442
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18443
    <limits.h> exists even on freestanding compilers.  */
 
18444
 
 
18445
#ifdef __STDC__
 
18446
# include <limits.h>
 
18447
#else
 
18448
# include <assert.h>
 
18449
#endif
 
18450
 
 
18451
#undef dlopen
 
18452
 
 
18453
/* Override any gcc2 internal prototype to avoid an error.  */
 
18454
#ifdef __cplusplus
 
18455
extern "C"
 
18456
{
 
18457
#endif
 
18458
/* We use char because int might match the return type of a gcc2
 
18459
   builtin and then its argument prototype would still apply.  */
 
18460
char dlopen ();
 
18461
/* The GNU C library defines this for functions which it implements
 
18462
    to always fail with ENOSYS.  Some functions are actually named
 
18463
    something starting with __ and the normal name is an alias.  */
 
18464
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18465
choke me
 
18466
#else
 
18467
char (*f) () = dlopen;
 
18468
#endif
 
18469
#ifdef __cplusplus
 
18470
}
 
18471
#endif
 
18472
 
 
18473
int
 
18474
main ()
 
18475
{
 
18476
return f != dlopen;
 
18477
  ;
 
18478
  return 0;
 
18479
}
 
18480
_ACEOF
 
18481
rm -f conftest.$ac_objext conftest$ac_exeext
 
18482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18483
  (eval $ac_link) 2>conftest.er1
 
18484
  ac_status=$?
 
18485
  grep -v '^ *+' conftest.er1 >conftest.err
 
18486
  rm -f conftest.er1
 
18487
  cat conftest.err >&5
 
18488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18489
  (exit $ac_status); } &&
 
18490
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18492
  (eval $ac_try) 2>&5
 
18493
  ac_status=$?
 
18494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18495
  (exit $ac_status); }; } &&
 
18496
         { ac_try='test -s conftest$ac_exeext'
 
18497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18498
  (eval $ac_try) 2>&5
 
18499
  ac_status=$?
 
18500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18501
  (exit $ac_status); }; }; then
 
18502
  ac_cv_func_dlopen=yes
 
18503
else
 
18504
  echo "$as_me: failed program was:" >&5
 
18505
sed 's/^/| /' conftest.$ac_ext >&5
 
18506
 
 
18507
ac_cv_func_dlopen=no
 
18508
fi
 
18509
rm -f conftest.err conftest.$ac_objext \
 
18510
      conftest$ac_exeext conftest.$ac_ext
 
18511
fi
 
18512
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18513
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18514
if test $ac_cv_func_dlopen = yes; then
 
18515
  lt_cv_dlopen="dlopen"
 
18516
else
 
18517
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18518
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18519
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18520
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18521
else
 
18522
  ac_check_lib_save_LIBS=$LIBS
 
18523
LIBS="-ldl  $LIBS"
 
18524
cat >conftest.$ac_ext <<_ACEOF
 
18525
/* confdefs.h.  */
 
18526
_ACEOF
 
18527
cat confdefs.h >>conftest.$ac_ext
 
18528
cat >>conftest.$ac_ext <<_ACEOF
 
18529
/* end confdefs.h.  */
 
18530
 
 
18531
/* Override any gcc2 internal prototype to avoid an error.  */
 
18532
#ifdef __cplusplus
 
18533
extern "C"
 
18534
#endif
 
18535
/* We use char because int might match the return type of a gcc2
 
18536
   builtin and then its argument prototype would still apply.  */
 
18537
char dlopen ();
 
18538
int
 
18539
main ()
 
18540
{
 
18541
dlopen ();
 
18542
  ;
 
18543
  return 0;
 
18544
}
 
18545
_ACEOF
 
18546
rm -f conftest.$ac_objext conftest$ac_exeext
 
18547
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18548
  (eval $ac_link) 2>conftest.er1
 
18549
  ac_status=$?
 
18550
  grep -v '^ *+' conftest.er1 >conftest.err
 
18551
  rm -f conftest.er1
 
18552
  cat conftest.err >&5
 
18553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18554
  (exit $ac_status); } &&
 
18555
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18557
  (eval $ac_try) 2>&5
 
18558
  ac_status=$?
 
18559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18560
  (exit $ac_status); }; } &&
 
18561
         { ac_try='test -s conftest$ac_exeext'
 
18562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18563
  (eval $ac_try) 2>&5
 
18564
  ac_status=$?
 
18565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18566
  (exit $ac_status); }; }; then
 
18567
  ac_cv_lib_dl_dlopen=yes
 
18568
else
 
18569
  echo "$as_me: failed program was:" >&5
 
18570
sed 's/^/| /' conftest.$ac_ext >&5
 
18571
 
 
18572
ac_cv_lib_dl_dlopen=no
 
18573
fi
 
18574
rm -f conftest.err conftest.$ac_objext \
 
18575
      conftest$ac_exeext conftest.$ac_ext
 
18576
LIBS=$ac_check_lib_save_LIBS
 
18577
fi
 
18578
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18579
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18580
if test $ac_cv_lib_dl_dlopen = yes; then
 
18581
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18582
else
 
18583
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18584
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18585
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18586
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18587
else
 
18588
  ac_check_lib_save_LIBS=$LIBS
 
18589
LIBS="-lsvld  $LIBS"
 
18590
cat >conftest.$ac_ext <<_ACEOF
 
18591
/* confdefs.h.  */
 
18592
_ACEOF
 
18593
cat confdefs.h >>conftest.$ac_ext
 
18594
cat >>conftest.$ac_ext <<_ACEOF
 
18595
/* end confdefs.h.  */
 
18596
 
 
18597
/* Override any gcc2 internal prototype to avoid an error.  */
 
18598
#ifdef __cplusplus
 
18599
extern "C"
 
18600
#endif
 
18601
/* We use char because int might match the return type of a gcc2
 
18602
   builtin and then its argument prototype would still apply.  */
 
18603
char dlopen ();
 
18604
int
 
18605
main ()
 
18606
{
 
18607
dlopen ();
 
18608
  ;
 
18609
  return 0;
 
18610
}
 
18611
_ACEOF
 
18612
rm -f conftest.$ac_objext conftest$ac_exeext
 
18613
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18614
  (eval $ac_link) 2>conftest.er1
 
18615
  ac_status=$?
 
18616
  grep -v '^ *+' conftest.er1 >conftest.err
 
18617
  rm -f conftest.er1
 
18618
  cat conftest.err >&5
 
18619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18620
  (exit $ac_status); } &&
 
18621
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18623
  (eval $ac_try) 2>&5
 
18624
  ac_status=$?
 
18625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18626
  (exit $ac_status); }; } &&
 
18627
         { ac_try='test -s conftest$ac_exeext'
 
18628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18629
  (eval $ac_try) 2>&5
 
18630
  ac_status=$?
 
18631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18632
  (exit $ac_status); }; }; then
 
18633
  ac_cv_lib_svld_dlopen=yes
 
18634
else
 
18635
  echo "$as_me: failed program was:" >&5
 
18636
sed 's/^/| /' conftest.$ac_ext >&5
 
18637
 
 
18638
ac_cv_lib_svld_dlopen=no
 
18639
fi
 
18640
rm -f conftest.err conftest.$ac_objext \
 
18641
      conftest$ac_exeext conftest.$ac_ext
 
18642
LIBS=$ac_check_lib_save_LIBS
 
18643
fi
 
18644
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18645
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18646
if test $ac_cv_lib_svld_dlopen = yes; then
 
18647
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18648
else
 
18649
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18650
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18651
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18653
else
 
18654
  ac_check_lib_save_LIBS=$LIBS
 
18655
LIBS="-ldld  $LIBS"
 
18656
cat >conftest.$ac_ext <<_ACEOF
 
18657
/* confdefs.h.  */
 
18658
_ACEOF
 
18659
cat confdefs.h >>conftest.$ac_ext
 
18660
cat >>conftest.$ac_ext <<_ACEOF
 
18661
/* end confdefs.h.  */
 
18662
 
 
18663
/* Override any gcc2 internal prototype to avoid an error.  */
 
18664
#ifdef __cplusplus
 
18665
extern "C"
 
18666
#endif
 
18667
/* We use char because int might match the return type of a gcc2
 
18668
   builtin and then its argument prototype would still apply.  */
 
18669
char dld_link ();
 
18670
int
 
18671
main ()
 
18672
{
 
18673
dld_link ();
 
18674
  ;
 
18675
  return 0;
 
18676
}
 
18677
_ACEOF
 
18678
rm -f conftest.$ac_objext conftest$ac_exeext
 
18679
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18680
  (eval $ac_link) 2>conftest.er1
 
18681
  ac_status=$?
 
18682
  grep -v '^ *+' conftest.er1 >conftest.err
 
18683
  rm -f conftest.er1
 
18684
  cat conftest.err >&5
 
18685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18686
  (exit $ac_status); } &&
 
18687
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18689
  (eval $ac_try) 2>&5
 
18690
  ac_status=$?
 
18691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18692
  (exit $ac_status); }; } &&
 
18693
         { ac_try='test -s conftest$ac_exeext'
 
18694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18695
  (eval $ac_try) 2>&5
 
18696
  ac_status=$?
 
18697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18698
  (exit $ac_status); }; }; then
 
18699
  ac_cv_lib_dld_dld_link=yes
 
18700
else
 
18701
  echo "$as_me: failed program was:" >&5
 
18702
sed 's/^/| /' conftest.$ac_ext >&5
 
18703
 
 
18704
ac_cv_lib_dld_dld_link=no
 
18705
fi
 
18706
rm -f conftest.err conftest.$ac_objext \
 
18707
      conftest$ac_exeext conftest.$ac_ext
 
18708
LIBS=$ac_check_lib_save_LIBS
 
18709
fi
 
18710
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18711
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18712
if test $ac_cv_lib_dld_dld_link = yes; then
 
18713
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18714
fi
 
18715
 
 
18716
 
 
18717
fi
 
18718
 
 
18719
 
 
18720
fi
 
18721
 
 
18722
 
 
18723
fi
 
18724
 
 
18725
 
 
18726
fi
 
18727
 
 
18728
 
 
18729
fi
 
18730
 
 
18731
    ;;
 
18732
  esac
 
18733
 
 
18734
  if test "x$lt_cv_dlopen" != xno; then
 
18735
    enable_dlopen=yes
 
18736
  else
 
18737
    enable_dlopen=no
 
18738
  fi
 
18739
 
 
18740
  case $lt_cv_dlopen in
 
18741
  dlopen)
 
18742
    save_CPPFLAGS="$CPPFLAGS"
 
18743
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18744
 
 
18745
    save_LDFLAGS="$LDFLAGS"
 
18746
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18747
 
 
18748
    save_LIBS="$LIBS"
 
18749
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18750
 
 
18751
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18752
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18753
if test "${lt_cv_dlopen_self+set}" = set; then
 
18754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18755
else
 
18756
          if test "$cross_compiling" = yes; then :
 
18757
  lt_cv_dlopen_self=cross
 
18758
else
 
18759
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18760
  lt_status=$lt_dlunknown
 
18761
  cat > conftest.$ac_ext <<EOF
 
18762
#line 18762 "configure"
 
18763
#include "confdefs.h"
 
18764
 
 
18765
#if HAVE_DLFCN_H
 
18766
#include <dlfcn.h>
 
18767
#endif
 
18768
 
 
18769
#include <stdio.h>
 
18770
 
 
18771
#ifdef RTLD_GLOBAL
 
18772
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18773
#else
 
18774
#  ifdef DL_GLOBAL
 
18775
#    define LT_DLGLOBAL         DL_GLOBAL
 
18776
#  else
 
18777
#    define LT_DLGLOBAL         0
 
18778
#  endif
 
18779
#endif
 
18780
 
 
18781
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18782
   find out it does not work in some platform. */
 
18783
#ifndef LT_DLLAZY_OR_NOW
 
18784
#  ifdef RTLD_LAZY
 
18785
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18786
#  else
 
18787
#    ifdef DL_LAZY
 
18788
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18789
#    else
 
18790
#      ifdef RTLD_NOW
 
18791
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18792
#      else
 
18793
#        ifdef DL_NOW
 
18794
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18795
#        else
 
18796
#          define LT_DLLAZY_OR_NOW      0
 
18797
#        endif
 
18798
#      endif
 
18799
#    endif
 
18800
#  endif
 
18801
#endif
 
18802
 
 
18803
#ifdef __cplusplus
 
18804
extern "C" void exit (int);
 
18805
#endif
 
18806
 
 
18807
void fnord() { int i=42;}
 
18808
int main ()
 
18809
{
 
18810
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18811
  int status = $lt_dlunknown;
 
18812
 
 
18813
  if (self)
 
18814
    {
 
18815
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18816
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18817
      /* dlclose (self); */
 
18818
    }
 
18819
 
 
18820
    exit (status);
 
18821
}
 
18822
EOF
 
18823
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18824
  (eval $ac_link) 2>&5
 
18825
  ac_status=$?
 
18826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18827
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18828
    (./conftest; exit; ) 2>/dev/null
 
18829
    lt_status=$?
 
18830
    case x$lt_status in
 
18831
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18832
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18833
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18834
    esac
 
18835
  else :
 
18836
    # compilation failed
 
18837
    lt_cv_dlopen_self=no
 
18838
  fi
 
18839
fi
 
18840
rm -fr conftest*
 
18841
 
 
18842
 
 
18843
fi
 
18844
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18845
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18846
 
 
18847
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18848
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18849
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18850
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18851
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18853
else
 
18854
          if test "$cross_compiling" = yes; then :
 
18855
  lt_cv_dlopen_self_static=cross
 
18856
else
 
18857
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18858
  lt_status=$lt_dlunknown
 
18859
  cat > conftest.$ac_ext <<EOF
 
18860
#line 18860 "configure"
 
18861
#include "confdefs.h"
 
18862
 
 
18863
#if HAVE_DLFCN_H
 
18864
#include <dlfcn.h>
 
18865
#endif
 
18866
 
 
18867
#include <stdio.h>
 
18868
 
 
18869
#ifdef RTLD_GLOBAL
 
18870
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18871
#else
 
18872
#  ifdef DL_GLOBAL
 
18873
#    define LT_DLGLOBAL         DL_GLOBAL
 
18874
#  else
 
18875
#    define LT_DLGLOBAL         0
 
18876
#  endif
 
18877
#endif
 
18878
 
 
18879
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18880
   find out it does not work in some platform. */
 
18881
#ifndef LT_DLLAZY_OR_NOW
 
18882
#  ifdef RTLD_LAZY
 
18883
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18884
#  else
 
18885
#    ifdef DL_LAZY
 
18886
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18887
#    else
 
18888
#      ifdef RTLD_NOW
 
18889
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18890
#      else
 
18891
#        ifdef DL_NOW
 
18892
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18893
#        else
 
18894
#          define LT_DLLAZY_OR_NOW      0
 
18895
#        endif
 
18896
#      endif
 
18897
#    endif
 
18898
#  endif
 
18899
#endif
 
18900
 
 
18901
#ifdef __cplusplus
 
18902
extern "C" void exit (int);
 
18903
#endif
 
18904
 
 
18905
void fnord() { int i=42;}
 
18906
int main ()
 
18907
{
 
18908
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18909
  int status = $lt_dlunknown;
 
18910
 
 
18911
  if (self)
 
18912
    {
 
18913
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18914
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18915
      /* dlclose (self); */
 
18916
    }
 
18917
 
 
18918
    exit (status);
 
18919
}
 
18920
EOF
 
18921
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18922
  (eval $ac_link) 2>&5
 
18923
  ac_status=$?
 
18924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18925
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18926
    (./conftest; exit; ) 2>/dev/null
 
18927
    lt_status=$?
 
18928
    case x$lt_status in
 
18929
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18930
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18931
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18932
    esac
 
18933
  else :
 
18934
    # compilation failed
 
18935
    lt_cv_dlopen_self_static=no
 
18936
  fi
 
18937
fi
 
18938
rm -fr conftest*
 
18939
 
 
18940
 
 
18941
fi
 
18942
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18943
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18944
    fi
 
18945
 
 
18946
    CPPFLAGS="$save_CPPFLAGS"
 
18947
    LDFLAGS="$save_LDFLAGS"
 
18948
    LIBS="$save_LIBS"
 
18949
    ;;
 
18950
  esac
 
18951
 
 
18952
  case $lt_cv_dlopen_self in
 
18953
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18954
  *) enable_dlopen_self=unknown ;;
 
18955
  esac
 
18956
 
 
18957
  case $lt_cv_dlopen_self_static in
 
18958
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18959
  *) enable_dlopen_self_static=unknown ;;
 
18960
  esac
 
18961
fi
 
18962
 
 
18963
 
 
18964
# The else clause should only fire when bootstrapping the
 
18965
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18966
# with your package, and you will get complaints that there are
 
18967
# no rules to generate ltmain.sh.
 
18968
if test -f "$ltmain"; then
 
18969
  # See if we are running on zsh, and set the options which allow our commands through
 
18970
  # without removal of \ escapes.
 
18971
  if test -n "${ZSH_VERSION+set}" ; then
 
18972
    setopt NO_GLOB_SUBST
 
18973
  fi
 
18974
  # Now quote all the things that may contain metacharacters while being
 
18975
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18976
  # variables and quote the copies for generation of the libtool script.
 
18977
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18978
    SED SHELL STRIP \
 
18979
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18980
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18981
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18982
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18983
    lt_cv_sys_global_symbol_to_c_name_address \
 
18984
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18985
    old_postinstall_cmds old_postuninstall_cmds \
 
18986
    compiler_GCJ \
 
18987
    CC_GCJ \
 
18988
    LD_GCJ \
 
18989
    lt_prog_compiler_wl_GCJ \
 
18990
    lt_prog_compiler_pic_GCJ \
 
18991
    lt_prog_compiler_static_GCJ \
 
18992
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18993
    export_dynamic_flag_spec_GCJ \
 
18994
    thread_safe_flag_spec_GCJ \
 
18995
    whole_archive_flag_spec_GCJ \
 
18996
    enable_shared_with_static_runtimes_GCJ \
 
18997
    old_archive_cmds_GCJ \
 
18998
    old_archive_from_new_cmds_GCJ \
 
18999
    predep_objects_GCJ \
 
19000
    postdep_objects_GCJ \
 
19001
    predeps_GCJ \
 
19002
    postdeps_GCJ \
 
19003
    compiler_lib_search_path_GCJ \
 
19004
    archive_cmds_GCJ \
 
19005
    archive_expsym_cmds_GCJ \
 
19006
    postinstall_cmds_GCJ \
 
19007
    postuninstall_cmds_GCJ \
 
19008
    old_archive_from_expsyms_cmds_GCJ \
 
19009
    allow_undefined_flag_GCJ \
 
19010
    no_undefined_flag_GCJ \
 
19011
    export_symbols_cmds_GCJ \
 
19012
    hardcode_libdir_flag_spec_GCJ \
 
19013
    hardcode_libdir_flag_spec_ld_GCJ \
 
19014
    hardcode_libdir_separator_GCJ \
 
19015
    hardcode_automatic_GCJ \
 
19016
    module_cmds_GCJ \
 
19017
    module_expsym_cmds_GCJ \
 
19018
    lt_cv_prog_compiler_c_o_GCJ \
 
19019
    exclude_expsyms_GCJ \
 
19020
    include_expsyms_GCJ; do
 
19021
 
 
19022
    case $var in
 
19023
    old_archive_cmds_GCJ | \
 
19024
    old_archive_from_new_cmds_GCJ | \
 
19025
    archive_cmds_GCJ | \
 
19026
    archive_expsym_cmds_GCJ | \
 
19027
    module_cmds_GCJ | \
 
19028
    module_expsym_cmds_GCJ | \
 
19029
    old_archive_from_expsyms_cmds_GCJ | \
 
19030
    export_symbols_cmds_GCJ | \
 
19031
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19032
    postinstall_cmds | postuninstall_cmds | \
 
19033
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19034
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19035
      # Double-quote double-evaled strings.
 
19036
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19037
      ;;
 
19038
    *)
 
19039
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19040
      ;;
 
19041
    esac
 
19042
  done
 
19043
 
 
19044
  case $lt_echo in
 
19045
  *'\$0 --fallback-echo"')
 
19046
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19047
    ;;
 
19048
  esac
 
19049
 
 
19050
cfgfile="$ofile"
 
19051
 
 
19052
  cat <<__EOF__ >> "$cfgfile"
 
19053
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19054
 
 
19055
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19056
 
 
19057
# Shell to use when invoking shell scripts.
 
19058
SHELL=$lt_SHELL
 
19059
 
 
19060
# Whether or not to build shared libraries.
 
19061
build_libtool_libs=$enable_shared
 
19062
 
 
19063
# Whether or not to build static libraries.
 
19064
build_old_libs=$enable_static
 
19065
 
 
19066
# Whether or not to add -lc for building shared libraries.
 
19067
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19068
 
 
19069
# Whether or not to disallow shared libs when runtime libs are static
 
19070
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19071
 
 
19072
# Whether or not to optimize for fast installation.
 
19073
fast_install=$enable_fast_install
 
19074
 
 
19075
# The host system.
 
19076
host_alias=$host_alias
 
19077
host=$host
 
19078
 
 
19079
# An echo program that does not interpret backslashes.
 
19080
echo=$lt_echo
 
19081
 
 
19082
# The archiver.
 
19083
AR=$lt_AR
 
19084
AR_FLAGS=$lt_AR_FLAGS
 
19085
 
 
19086
# A C compiler.
 
19087
LTCC=$lt_LTCC
 
19088
 
 
19089
# A language-specific compiler.
 
19090
CC=$lt_compiler_GCJ
 
19091
 
 
19092
# Is the compiler the GNU C compiler?
 
19093
with_gcc=$GCC_GCJ
 
19094
 
 
19095
# An ERE matcher.
 
19096
EGREP=$lt_EGREP
 
19097
 
 
19098
# The linker used to build libraries.
 
19099
LD=$lt_LD_GCJ
 
19100
 
 
19101
# Whether we need hard or soft links.
 
19102
LN_S=$lt_LN_S
 
19103
 
 
19104
# A BSD-compatible nm program.
 
19105
NM=$lt_NM
 
19106
 
 
19107
# A symbol stripping program
 
19108
STRIP=$lt_STRIP
 
19109
 
 
19110
# Used to examine libraries when file_magic_cmd begins "file"
 
19111
MAGIC_CMD=$MAGIC_CMD
 
19112
 
 
19113
# Used on cygwin: DLL creation program.
 
19114
DLLTOOL="$DLLTOOL"
 
19115
 
 
19116
# Used on cygwin: object dumper.
 
19117
OBJDUMP="$OBJDUMP"
 
19118
 
 
19119
# Used on cygwin: assembler.
 
19120
AS="$AS"
 
19121
 
 
19122
# The name of the directory that contains temporary libtool files.
 
19123
objdir=$objdir
 
19124
 
 
19125
# How to create reloadable object files.
 
19126
reload_flag=$lt_reload_flag
 
19127
reload_cmds=$lt_reload_cmds
 
19128
 
 
19129
# How to pass a linker flag through the compiler.
 
19130
wl=$lt_lt_prog_compiler_wl_GCJ
 
19131
 
 
19132
# Object file suffix (normally "o").
 
19133
objext="$ac_objext"
 
19134
 
 
19135
# Old archive suffix (normally "a").
 
19136
libext="$libext"
 
19137
 
 
19138
# Shared library suffix (normally ".so").
 
19139
shrext_cmds='$shrext_cmds'
 
19140
 
 
19141
# Executable file suffix (normally "").
 
19142
exeext="$exeext"
 
19143
 
 
19144
# Additional compiler flags for building library objects.
 
19145
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19146
pic_mode=$pic_mode
 
19147
 
 
19148
# What is the maximum length of a command?
 
19149
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19150
 
 
19151
# Does compiler simultaneously support -c and -o options?
 
19152
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19153
 
 
19154
# Must we lock files when doing compilation ?
 
19155
need_locks=$lt_need_locks
 
19156
 
 
19157
# Do we need the lib prefix for modules?
 
19158
need_lib_prefix=$need_lib_prefix
 
19159
 
 
19160
# Do we need a version for libraries?
 
19161
need_version=$need_version
 
19162
 
 
19163
# Whether dlopen is supported.
 
19164
dlopen_support=$enable_dlopen
 
19165
 
 
19166
# Whether dlopen of programs is supported.
 
19167
dlopen_self=$enable_dlopen_self
 
19168
 
 
19169
# Whether dlopen of statically linked programs is supported.
 
19170
dlopen_self_static=$enable_dlopen_self_static
 
19171
 
 
19172
# Compiler flag to prevent dynamic linking.
 
19173
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19174
 
 
19175
# Compiler flag to turn off builtin functions.
 
19176
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19177
 
 
19178
# Compiler flag to allow reflexive dlopens.
 
19179
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19180
 
 
19181
# Compiler flag to generate shared objects directly from archives.
 
19182
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19183
 
 
19184
# Compiler flag to generate thread-safe objects.
 
19185
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19186
 
 
19187
# Library versioning type.
 
19188
version_type=$version_type
 
19189
 
 
19190
# Format of library name prefix.
 
19191
libname_spec=$lt_libname_spec
 
19192
 
 
19193
# List of archive names.  First name is the real one, the rest are links.
 
19194
# The last name is the one that the linker finds with -lNAME.
 
19195
library_names_spec=$lt_library_names_spec
 
19196
 
 
19197
# The coded name of the library, if different from the real name.
 
19198
soname_spec=$lt_soname_spec
 
19199
 
 
19200
# Commands used to build and install an old-style archive.
 
19201
RANLIB=$lt_RANLIB
 
19202
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19203
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19204
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19205
 
 
19206
# Create an old-style archive from a shared archive.
 
19207
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19208
 
 
19209
# Create a temporary old-style archive to link instead of a shared archive.
 
19210
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19211
 
 
19212
# Commands used to build and install a shared archive.
 
19213
archive_cmds=$lt_archive_cmds_GCJ
 
19214
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19215
postinstall_cmds=$lt_postinstall_cmds
 
19216
postuninstall_cmds=$lt_postuninstall_cmds
 
19217
 
 
19218
# Commands used to build a loadable module (assumed same as above if empty)
 
19219
module_cmds=$lt_module_cmds_GCJ
 
19220
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19221
 
 
19222
# Commands to strip libraries.
 
19223
old_striplib=$lt_old_striplib
 
19224
striplib=$lt_striplib
 
19225
 
 
19226
# Dependencies to place before the objects being linked to create a
 
19227
# shared library.
 
19228
predep_objects=$lt_predep_objects_GCJ
 
19229
 
 
19230
# Dependencies to place after the objects being linked to create a
 
19231
# shared library.
 
19232
postdep_objects=$lt_postdep_objects_GCJ
 
19233
 
 
19234
# Dependencies to place before the objects being linked to create a
 
19235
# shared library.
 
19236
predeps=$lt_predeps_GCJ
 
19237
 
 
19238
# Dependencies to place after the objects being linked to create a
 
19239
# shared library.
 
19240
postdeps=$lt_postdeps_GCJ
 
19241
 
 
19242
# The library search path used internally by the compiler when linking
 
19243
# a shared library.
 
19244
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19245
 
 
19246
# Method to check whether dependent libraries are shared objects.
 
19247
deplibs_check_method=$lt_deplibs_check_method
 
19248
 
 
19249
# Command to use when deplibs_check_method == file_magic.
 
19250
file_magic_cmd=$lt_file_magic_cmd
 
19251
 
 
19252
# Flag that allows shared libraries with undefined symbols to be built.
 
19253
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19254
 
 
19255
# Flag that forces no undefined symbols.
 
19256
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19257
 
 
19258
# Commands used to finish a libtool library installation in a directory.
 
19259
finish_cmds=$lt_finish_cmds
 
19260
 
 
19261
# Same as above, but a single script fragment to be evaled but not shown.
 
19262
finish_eval=$lt_finish_eval
 
19263
 
 
19264
# Take the output of nm and produce a listing of raw symbols and C names.
 
19265
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19266
 
 
19267
# Transform the output of nm in a proper C declaration
 
19268
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19269
 
 
19270
# Transform the output of nm in a C name address pair
 
19271
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19272
 
 
19273
# This is the shared library runtime path variable.
 
19274
runpath_var=$runpath_var
 
19275
 
 
19276
# This is the shared library path variable.
 
19277
shlibpath_var=$shlibpath_var
 
19278
 
 
19279
# Is shlibpath searched before the hard-coded library search path?
 
19280
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19281
 
 
19282
# How to hardcode a shared library path into an executable.
 
19283
hardcode_action=$hardcode_action_GCJ
 
19284
 
 
19285
# Whether we should hardcode library paths into libraries.
 
19286
hardcode_into_libs=$hardcode_into_libs
 
19287
 
 
19288
# Flag to hardcode \$libdir into a binary during linking.
 
19289
# This must work even if \$libdir does not exist.
 
19290
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19291
 
 
19292
# If ld is used when linking, flag to hardcode \$libdir into
 
19293
# a binary during linking. This must work even if \$libdir does
 
19294
# not exist.
 
19295
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19296
 
 
19297
# Whether we need a single -rpath flag with a separated argument.
 
19298
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19299
 
 
19300
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19301
# resulting binary.
 
19302
hardcode_direct=$hardcode_direct_GCJ
 
19303
 
 
19304
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19305
# resulting binary.
 
19306
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19307
 
 
19308
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19309
# the resulting binary.
 
19310
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19311
 
 
19312
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19313
# and all subsequent libraries and executables linked against it.
 
19314
hardcode_automatic=$hardcode_automatic_GCJ
 
19315
 
 
19316
# Variables whose values should be saved in libtool wrapper scripts and
 
19317
# restored at relink time.
 
19318
variables_saved_for_relink="$variables_saved_for_relink"
 
19319
 
 
19320
# Whether libtool must link a program against all its dependency libraries.
 
19321
link_all_deplibs=$link_all_deplibs_GCJ
 
19322
 
 
19323
# Compile-time system search path for libraries
 
19324
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19325
 
 
19326
# Run-time system search path for libraries
 
19327
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19328
 
 
19329
# Fix the shell variable \$srcfile for the compiler.
 
19330
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19331
 
 
19332
# Set to yes if exported symbols are required.
 
19333
always_export_symbols=$always_export_symbols_GCJ
 
19334
 
 
19335
# The commands to list exported symbols.
 
19336
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19337
 
 
19338
# The commands to extract the exported symbol list from a shared archive.
 
19339
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19340
 
 
19341
# Symbols that should not be listed in the preloaded symbols.
 
19342
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19343
 
 
19344
# Symbols that must always be exported.
 
19345
include_expsyms=$lt_include_expsyms_GCJ
 
19346
 
 
19347
# ### END LIBTOOL TAG CONFIG: $tagname
 
19348
 
 
19349
__EOF__
 
19350
 
 
19351
 
 
19352
else
 
19353
  # If there is no Makefile yet, we rely on a make rule to execute
 
19354
  # `config.status --recheck' to rerun these tests and create the
 
19355
  # libtool script then.
 
19356
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19357
  if test -f "$ltmain_in"; then
 
19358
    test -f Makefile && make "$ltmain"
 
19359
  fi
 
19360
fi
 
19361
 
 
19362
 
 
19363
ac_ext=c
 
19364
ac_cpp='$CPP $CPPFLAGS'
 
19365
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19366
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19367
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19368
 
 
19369
CC="$lt_save_CC"
 
19370
 
 
19371
        else
 
19372
          tagname=""
 
19373
        fi
 
19374
        ;;
 
19375
 
 
19376
      RC)
 
19377
 
 
19378
 
 
19379
 
 
19380
# Source file extension for RC test sources.
 
19381
ac_ext=rc
 
19382
 
 
19383
# Object file extension for compiled RC test sources.
 
19384
objext=o
 
19385
objext_RC=$objext
 
19386
 
 
19387
# Code to be used in simple compile tests
 
19388
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19389
 
 
19390
# Code to be used in simple link tests
 
19391
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19392
 
 
19393
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19394
 
 
19395
# If no C compiler was specified, use CC.
 
19396
LTCC=${LTCC-"$CC"}
 
19397
 
 
19398
# Allow CC to be a program name with arguments.
 
19399
compiler=$CC
 
19400
 
 
19401
 
 
19402
# Allow CC to be a program name with arguments.
 
19403
lt_save_CC="$CC"
 
19404
CC=${RC-"windres"}
 
19405
compiler=$CC
 
19406
compiler_RC=$CC
 
19407
lt_cv_prog_compiler_c_o_RC=yes
 
19408
 
 
19409
# The else clause should only fire when bootstrapping the
 
19410
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19411
# with your package, and you will get complaints that there are
 
19412
# no rules to generate ltmain.sh.
 
19413
if test -f "$ltmain"; then
 
19414
  # See if we are running on zsh, and set the options which allow our commands through
 
19415
  # without removal of \ escapes.
 
19416
  if test -n "${ZSH_VERSION+set}" ; then
 
19417
    setopt NO_GLOB_SUBST
 
19418
  fi
 
19419
  # Now quote all the things that may contain metacharacters while being
 
19420
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19421
  # variables and quote the copies for generation of the libtool script.
 
19422
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19423
    SED SHELL STRIP \
 
19424
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19425
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19426
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19427
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19428
    lt_cv_sys_global_symbol_to_c_name_address \
 
19429
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19430
    old_postinstall_cmds old_postuninstall_cmds \
 
19431
    compiler_RC \
 
19432
    CC_RC \
 
19433
    LD_RC \
 
19434
    lt_prog_compiler_wl_RC \
 
19435
    lt_prog_compiler_pic_RC \
 
19436
    lt_prog_compiler_static_RC \
 
19437
    lt_prog_compiler_no_builtin_flag_RC \
 
19438
    export_dynamic_flag_spec_RC \
 
19439
    thread_safe_flag_spec_RC \
 
19440
    whole_archive_flag_spec_RC \
 
19441
    enable_shared_with_static_runtimes_RC \
 
19442
    old_archive_cmds_RC \
 
19443
    old_archive_from_new_cmds_RC \
 
19444
    predep_objects_RC \
 
19445
    postdep_objects_RC \
 
19446
    predeps_RC \
 
19447
    postdeps_RC \
 
19448
    compiler_lib_search_path_RC \
 
19449
    archive_cmds_RC \
 
19450
    archive_expsym_cmds_RC \
 
19451
    postinstall_cmds_RC \
 
19452
    postuninstall_cmds_RC \
 
19453
    old_archive_from_expsyms_cmds_RC \
 
19454
    allow_undefined_flag_RC \
 
19455
    no_undefined_flag_RC \
 
19456
    export_symbols_cmds_RC \
 
19457
    hardcode_libdir_flag_spec_RC \
 
19458
    hardcode_libdir_flag_spec_ld_RC \
 
19459
    hardcode_libdir_separator_RC \
 
19460
    hardcode_automatic_RC \
 
19461
    module_cmds_RC \
 
19462
    module_expsym_cmds_RC \
 
19463
    lt_cv_prog_compiler_c_o_RC \
 
19464
    exclude_expsyms_RC \
 
19465
    include_expsyms_RC; do
 
19466
 
 
19467
    case $var in
 
19468
    old_archive_cmds_RC | \
 
19469
    old_archive_from_new_cmds_RC | \
 
19470
    archive_cmds_RC | \
 
19471
    archive_expsym_cmds_RC | \
 
19472
    module_cmds_RC | \
 
19473
    module_expsym_cmds_RC | \
 
19474
    old_archive_from_expsyms_cmds_RC | \
 
19475
    export_symbols_cmds_RC | \
 
19476
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19477
    postinstall_cmds | postuninstall_cmds | \
 
19478
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19479
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19480
      # Double-quote double-evaled strings.
 
19481
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19482
      ;;
 
19483
    *)
 
19484
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19485
      ;;
 
19486
    esac
 
19487
  done
 
19488
 
 
19489
  case $lt_echo in
 
19490
  *'\$0 --fallback-echo"')
 
19491
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19492
    ;;
 
19493
  esac
 
19494
 
 
19495
cfgfile="$ofile"
 
19496
 
 
19497
  cat <<__EOF__ >> "$cfgfile"
 
19498
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19499
 
 
19500
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19501
 
 
19502
# Shell to use when invoking shell scripts.
 
19503
SHELL=$lt_SHELL
 
19504
 
 
19505
# Whether or not to build shared libraries.
 
19506
build_libtool_libs=$enable_shared
 
19507
 
 
19508
# Whether or not to build static libraries.
 
19509
build_old_libs=$enable_static
 
19510
 
 
19511
# Whether or not to add -lc for building shared libraries.
 
19512
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19513
 
 
19514
# Whether or not to disallow shared libs when runtime libs are static
 
19515
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19516
 
 
19517
# Whether or not to optimize for fast installation.
 
19518
fast_install=$enable_fast_install
 
19519
 
 
19520
# The host system.
 
19521
host_alias=$host_alias
 
19522
host=$host
 
19523
 
 
19524
# An echo program that does not interpret backslashes.
 
19525
echo=$lt_echo
 
19526
 
 
19527
# The archiver.
 
19528
AR=$lt_AR
 
19529
AR_FLAGS=$lt_AR_FLAGS
 
19530
 
 
19531
# A C compiler.
 
19532
LTCC=$lt_LTCC
 
19533
 
 
19534
# A language-specific compiler.
 
19535
CC=$lt_compiler_RC
 
19536
 
 
19537
# Is the compiler the GNU C compiler?
 
19538
with_gcc=$GCC_RC
 
19539
 
 
19540
# An ERE matcher.
 
19541
EGREP=$lt_EGREP
 
19542
 
 
19543
# The linker used to build libraries.
 
19544
LD=$lt_LD_RC
 
19545
 
 
19546
# Whether we need hard or soft links.
 
19547
LN_S=$lt_LN_S
 
19548
 
 
19549
# A BSD-compatible nm program.
 
19550
NM=$lt_NM
 
19551
 
 
19552
# A symbol stripping program
 
19553
STRIP=$lt_STRIP
 
19554
 
 
19555
# Used to examine libraries when file_magic_cmd begins "file"
 
19556
MAGIC_CMD=$MAGIC_CMD
 
19557
 
 
19558
# Used on cygwin: DLL creation program.
 
19559
DLLTOOL="$DLLTOOL"
 
19560
 
 
19561
# Used on cygwin: object dumper.
 
19562
OBJDUMP="$OBJDUMP"
 
19563
 
 
19564
# Used on cygwin: assembler.
 
19565
AS="$AS"
 
19566
 
 
19567
# The name of the directory that contains temporary libtool files.
 
19568
objdir=$objdir
 
19569
 
 
19570
# How to create reloadable object files.
 
19571
reload_flag=$lt_reload_flag
 
19572
reload_cmds=$lt_reload_cmds
 
19573
 
 
19574
# How to pass a linker flag through the compiler.
 
19575
wl=$lt_lt_prog_compiler_wl_RC
 
19576
 
 
19577
# Object file suffix (normally "o").
 
19578
objext="$ac_objext"
 
19579
 
 
19580
# Old archive suffix (normally "a").
 
19581
libext="$libext"
 
19582
 
 
19583
# Shared library suffix (normally ".so").
 
19584
shrext_cmds='$shrext_cmds'
 
19585
 
 
19586
# Executable file suffix (normally "").
 
19587
exeext="$exeext"
 
19588
 
 
19589
# Additional compiler flags for building library objects.
 
19590
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19591
pic_mode=$pic_mode
 
19592
 
 
19593
# What is the maximum length of a command?
 
19594
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19595
 
 
19596
# Does compiler simultaneously support -c and -o options?
 
19597
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19598
 
 
19599
# Must we lock files when doing compilation ?
 
19600
need_locks=$lt_need_locks
 
19601
 
 
19602
# Do we need the lib prefix for modules?
 
19603
need_lib_prefix=$need_lib_prefix
 
19604
 
 
19605
# Do we need a version for libraries?
 
19606
need_version=$need_version
 
19607
 
 
19608
# Whether dlopen is supported.
 
19609
dlopen_support=$enable_dlopen
 
19610
 
 
19611
# Whether dlopen of programs is supported.
 
19612
dlopen_self=$enable_dlopen_self
 
19613
 
 
19614
# Whether dlopen of statically linked programs is supported.
 
19615
dlopen_self_static=$enable_dlopen_self_static
 
19616
 
 
19617
# Compiler flag to prevent dynamic linking.
 
19618
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19619
 
 
19620
# Compiler flag to turn off builtin functions.
 
19621
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19622
 
 
19623
# Compiler flag to allow reflexive dlopens.
 
19624
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19625
 
 
19626
# Compiler flag to generate shared objects directly from archives.
 
19627
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19628
 
 
19629
# Compiler flag to generate thread-safe objects.
 
19630
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19631
 
 
19632
# Library versioning type.
 
19633
version_type=$version_type
 
19634
 
 
19635
# Format of library name prefix.
 
19636
libname_spec=$lt_libname_spec
 
19637
 
 
19638
# List of archive names.  First name is the real one, the rest are links.
 
19639
# The last name is the one that the linker finds with -lNAME.
 
19640
library_names_spec=$lt_library_names_spec
 
19641
 
 
19642
# The coded name of the library, if different from the real name.
 
19643
soname_spec=$lt_soname_spec
 
19644
 
 
19645
# Commands used to build and install an old-style archive.
 
19646
RANLIB=$lt_RANLIB
 
19647
old_archive_cmds=$lt_old_archive_cmds_RC
 
19648
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19649
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19650
 
 
19651
# Create an old-style archive from a shared archive.
 
19652
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19653
 
 
19654
# Create a temporary old-style archive to link instead of a shared archive.
 
19655
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19656
 
 
19657
# Commands used to build and install a shared archive.
 
19658
archive_cmds=$lt_archive_cmds_RC
 
19659
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19660
postinstall_cmds=$lt_postinstall_cmds
 
19661
postuninstall_cmds=$lt_postuninstall_cmds
 
19662
 
 
19663
# Commands used to build a loadable module (assumed same as above if empty)
 
19664
module_cmds=$lt_module_cmds_RC
 
19665
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19666
 
 
19667
# Commands to strip libraries.
 
19668
old_striplib=$lt_old_striplib
 
19669
striplib=$lt_striplib
 
19670
 
 
19671
# Dependencies to place before the objects being linked to create a
 
19672
# shared library.
 
19673
predep_objects=$lt_predep_objects_RC
 
19674
 
 
19675
# Dependencies to place after the objects being linked to create a
 
19676
# shared library.
 
19677
postdep_objects=$lt_postdep_objects_RC
 
19678
 
 
19679
# Dependencies to place before the objects being linked to create a
 
19680
# shared library.
 
19681
predeps=$lt_predeps_RC
 
19682
 
 
19683
# Dependencies to place after the objects being linked to create a
 
19684
# shared library.
 
19685
postdeps=$lt_postdeps_RC
 
19686
 
 
19687
# The library search path used internally by the compiler when linking
 
19688
# a shared library.
 
19689
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19690
 
 
19691
# Method to check whether dependent libraries are shared objects.
 
19692
deplibs_check_method=$lt_deplibs_check_method
 
19693
 
 
19694
# Command to use when deplibs_check_method == file_magic.
 
19695
file_magic_cmd=$lt_file_magic_cmd
 
19696
 
 
19697
# Flag that allows shared libraries with undefined symbols to be built.
 
19698
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19699
 
 
19700
# Flag that forces no undefined symbols.
 
19701
no_undefined_flag=$lt_no_undefined_flag_RC
 
19702
 
 
19703
# Commands used to finish a libtool library installation in a directory.
 
19704
finish_cmds=$lt_finish_cmds
 
19705
 
 
19706
# Same as above, but a single script fragment to be evaled but not shown.
 
19707
finish_eval=$lt_finish_eval
 
19708
 
 
19709
# Take the output of nm and produce a listing of raw symbols and C names.
 
19710
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19711
 
 
19712
# Transform the output of nm in a proper C declaration
 
19713
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19714
 
 
19715
# Transform the output of nm in a C name address pair
 
19716
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19717
 
 
19718
# This is the shared library runtime path variable.
 
19719
runpath_var=$runpath_var
 
19720
 
 
19721
# This is the shared library path variable.
 
19722
shlibpath_var=$shlibpath_var
 
19723
 
 
19724
# Is shlibpath searched before the hard-coded library search path?
 
19725
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19726
 
 
19727
# How to hardcode a shared library path into an executable.
 
19728
hardcode_action=$hardcode_action_RC
 
19729
 
 
19730
# Whether we should hardcode library paths into libraries.
 
19731
hardcode_into_libs=$hardcode_into_libs
 
19732
 
 
19733
# Flag to hardcode \$libdir into a binary during linking.
 
19734
# This must work even if \$libdir does not exist.
 
19735
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19736
 
 
19737
# If ld is used when linking, flag to hardcode \$libdir into
 
19738
# a binary during linking. This must work even if \$libdir does
 
19739
# not exist.
 
19740
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19741
 
 
19742
# Whether we need a single -rpath flag with a separated argument.
 
19743
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19744
 
 
19745
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19746
# resulting binary.
 
19747
hardcode_direct=$hardcode_direct_RC
 
19748
 
 
19749
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19750
# resulting binary.
 
19751
hardcode_minus_L=$hardcode_minus_L_RC
 
19752
 
 
19753
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19754
# the resulting binary.
 
19755
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19756
 
 
19757
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19758
# and all subsequent libraries and executables linked against it.
 
19759
hardcode_automatic=$hardcode_automatic_RC
 
19760
 
 
19761
# Variables whose values should be saved in libtool wrapper scripts and
 
19762
# restored at relink time.
 
19763
variables_saved_for_relink="$variables_saved_for_relink"
 
19764
 
 
19765
# Whether libtool must link a program against all its dependency libraries.
 
19766
link_all_deplibs=$link_all_deplibs_RC
 
19767
 
 
19768
# Compile-time system search path for libraries
 
19769
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19770
 
 
19771
# Run-time system search path for libraries
 
19772
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19773
 
 
19774
# Fix the shell variable \$srcfile for the compiler.
 
19775
fix_srcfile_path="$fix_srcfile_path_RC"
 
19776
 
 
19777
# Set to yes if exported symbols are required.
 
19778
always_export_symbols=$always_export_symbols_RC
 
19779
 
 
19780
# The commands to list exported symbols.
 
19781
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19782
 
 
19783
# The commands to extract the exported symbol list from a shared archive.
 
19784
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19785
 
 
19786
# Symbols that should not be listed in the preloaded symbols.
 
19787
exclude_expsyms=$lt_exclude_expsyms_RC
 
19788
 
 
19789
# Symbols that must always be exported.
 
19790
include_expsyms=$lt_include_expsyms_RC
 
19791
 
 
19792
# ### END LIBTOOL TAG CONFIG: $tagname
 
19793
 
 
19794
__EOF__
 
19795
 
 
19796
 
 
19797
else
 
19798
  # If there is no Makefile yet, we rely on a make rule to execute
 
19799
  # `config.status --recheck' to rerun these tests and create the
 
19800
  # libtool script then.
 
19801
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19802
  if test -f "$ltmain_in"; then
 
19803
    test -f Makefile && make "$ltmain"
 
19804
  fi
 
19805
fi
 
19806
 
 
19807
 
 
19808
ac_ext=c
 
19809
ac_cpp='$CPP $CPPFLAGS'
 
19810
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19811
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19812
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19813
 
 
19814
CC="$lt_save_CC"
 
19815
 
 
19816
        ;;
 
19817
 
 
19818
      *)
 
19819
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19820
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19821
   { (exit 1); exit 1; }; }
 
19822
        ;;
 
19823
      esac
 
19824
 
 
19825
      # Append the new tag name to the list of available tags.
 
19826
      if test -n "$tagname" ; then
 
19827
      available_tags="$available_tags $tagname"
 
19828
    fi
 
19829
    fi
 
19830
  done
 
19831
  IFS="$lt_save_ifs"
 
19832
 
 
19833
  # Now substitute the updated list of available tags.
 
19834
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19835
    mv "${ofile}T" "$ofile"
 
19836
    chmod +x "$ofile"
 
19837
  else
 
19838
    rm -f "${ofile}T"
 
19839
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19840
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19841
   { (exit 1); exit 1; }; }
 
19842
  fi
 
19843
fi
 
19844
 
 
19845
 
7688
19846
 
7689
19847
# This can be used to rebuild libtool when needed
7690
19848
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7694
19852
 
7695
19853
# Prevent multiple expansion
7696
19854
 
 
19855
 
 
19856
 
 
19857
 
 
19858
 
 
19859
 
 
19860
 
 
19861
 
 
19862
 
 
19863
 
 
19864
 
 
19865
 
 
19866
 
 
19867
 
 
19868
 
 
19869
 
 
19870
 
 
19871
 
 
19872
 
 
19873
 
7697
19874
test ".$PACKAGE_VERSION" = "." && PACKAGE_VERSION="$VERSION"
7698
 
echo "$as_me:7698: checking out linker version info $PACKAGE_VERSION " >&5
 
19875
echo "$as_me:$LINENO: checking out linker version info $PACKAGE_VERSION " >&5
7699
19876
echo $ECHO_N "checking out linker version info $PACKAGE_VERSION ... $ECHO_C" >&6
7700
19877
  MINOR_VERSION=`echo $PACKAGE_VERSION`
7701
19878
  MAJOR_VERSION=`echo "$MINOR_VERSION" | sed -e 's/[.].*//'`
7711
19888
  MINOR_VERSION=`echo "$MINOR_VERSION" | sed -e 's/[^0-9].*//'`
7712
19889
  RELEASE_INFO="-release $MAJOR_VERSION"
7713
19890
  VERSION_INFO="-version-info $MINOR_VERSION:$MICRO_VERSION"
7714
 
echo "$as_me:7714: result: /$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&5
 
19891
echo "$as_me:$LINENO: result: /$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&5
7715
19892
echo "${ECHO_T}/$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&6
7716
19893
 
 
19894
 
 
19895
 
 
19896
 
7717
19897
# -----------------------------------------------------------------------
7718
 
echo "$as_me:7718: result: creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&5
 
19898
echo "$as_me:$LINENO: result: creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&5
7719
19899
echo "${ECHO_T}creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&6
7720
19900
test -d zzip || mkdir zzip
7721
19901
sed -f $srcdir/zzip/_msvc.sed $srcdir/config.h.in >zzip/_msvc.in
7722
 
 
7723
 
                                                    ac_config_headers="$ac_config_headers config.h"
 
19902
# Add the stamp file to the list of files AC keeps track of,
 
19903
# along with our hook.
 
19904
          ac_config_headers="$ac_config_headers config.h"
 
19905
 
 
19906
 
7724
19907
 
7725
19908
ac_config_headers="$ac_config_headers "
7726
19909
 
7727
 
ac_config_commands="$ac_config_commands zzip/_config.h"
7728
 
 
7729
 
ac_config_commands="$ac_config_commands zzip/_msvc.h"
7730
 
 
7731
 
echo "$as_me:7731: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
19910
 
 
19911
          ac_config_commands="$ac_config_commands zzip/_config.h"
 
19912
 
 
19913
 
 
19914
          ac_config_commands="$ac_config_commands zzip/_msvc.h"
 
19915
 
 
19916
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7732
19917
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
7733
19918
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7734
19919
if test "${enable_maintainer_mode+set}" = set; then
7737
19922
else
7738
19923
  USE_MAINTAINER_MODE=no
7739
19924
fi;
7740
 
  echo "$as_me:7740: result: $USE_MAINTAINER_MODE" >&5
 
19925
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7741
19926
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
7742
19927
 
 
19928
 
7743
19929
if test $USE_MAINTAINER_MODE = yes; then
7744
19930
  MAINTAINER_MODE_TRUE=
7745
19931
  MAINTAINER_MODE_FALSE='#'
7747
19933
  MAINTAINER_MODE_TRUE='#'
7748
19934
  MAINTAINER_MODE_FALSE=
7749
19935
fi
 
19936
 
7750
19937
  MAINT=$MAINTAINER_MODE_TRUE
7751
19938
 
 
19939
 
 
19940
 
7752
19941
for ac_prog in perl5 perl
7753
19942
do
7754
19943
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7755
19944
set dummy $ac_prog; ac_word=$2
7756
 
echo "$as_me:7756: checking for $ac_word" >&5
 
19945
echo "$as_me:$LINENO: checking for $ac_word" >&5
7757
19946
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7758
19947
if test "${ac_cv_path_PERL+set}" = set; then
7759
19948
  echo $ECHO_N "(cached) $ECHO_C" >&6
7763
19952
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7764
19953
  ;;
7765
19954
  *)
7766
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
7767
 
ac_dummy="$PATH"
7768
 
for ac_dir in $ac_dummy; do
7769
 
  IFS=$ac_save_IFS
7770
 
  test -z "$ac_dir" && ac_dir=.
7771
 
  if $as_executable_p "$ac_dir/$ac_word"; then
7772
 
   ac_cv_path_PERL="$ac_dir/$ac_word"
7773
 
   echo "$as_me:7773: found $ac_dir/$ac_word" >&5
7774
 
   break
7775
 
fi
 
19955
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19956
for as_dir in $PATH
 
19957
do
 
19958
  IFS=$as_save_IFS
 
19959
  test -z "$as_dir" && as_dir=.
 
19960
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19961
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19962
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
19963
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19964
    break 2
 
19965
  fi
 
19966
done
7776
19967
done
7777
19968
 
7778
19969
  ;;
7781
19972
PERL=$ac_cv_path_PERL
7782
19973
 
7783
19974
if test -n "$PERL"; then
7784
 
  echo "$as_me:7784: result: $PERL" >&5
 
19975
  echo "$as_me:$LINENO: result: $PERL" >&5
7785
19976
echo "${ECHO_T}$PERL" >&6
7786
19977
else
7787
 
  echo "$as_me:7787: result: no" >&5
 
19978
  echo "$as_me:$LINENO: result: no" >&5
7788
19979
echo "${ECHO_T}no" >&6
7789
19980
fi
7790
19981
 
7792
19983
done
7793
19984
test -n "$PERL" || PERL="echo no perl found for"
7794
19985
 
7795
 
for ac_prog in php-standalone php
 
19986
for ac_prog in python2.2 python2.3 python
7796
19987
do
7797
19988
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7798
19989
set dummy $ac_prog; ac_word=$2
7799
 
echo "$as_me:7799: checking for $ac_word" >&5
 
19990
echo "$as_me:$LINENO: checking for $ac_word" >&5
7800
19991
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7801
 
if test "${ac_cv_path_PHP+set}" = set; then
 
19992
if test "${ac_cv_path_PYTHON+set}" = set; then
7802
19993
  echo $ECHO_N "(cached) $ECHO_C" >&6
7803
19994
else
7804
 
  case $PHP in
 
19995
  case $PYTHON in
7805
19996
  [\\/]* | ?:[\\/]*)
7806
 
  ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
 
19997
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7807
19998
  ;;
7808
19999
  *)
7809
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
7810
 
ac_dummy="$PATH"
7811
 
for ac_dir in $ac_dummy; do
7812
 
  IFS=$ac_save_IFS
7813
 
  test -z "$ac_dir" && ac_dir=.
7814
 
  if $as_executable_p "$ac_dir/$ac_word"; then
7815
 
   ac_cv_path_PHP="$ac_dir/$ac_word"
7816
 
   echo "$as_me:7816: found $ac_dir/$ac_word" >&5
7817
 
   break
7818
 
fi
 
20000
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20001
for as_dir in $PATH
 
20002
do
 
20003
  IFS=$as_save_IFS
 
20004
  test -z "$as_dir" && as_dir=.
 
20005
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20006
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20007
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
20008
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20009
    break 2
 
20010
  fi
 
20011
done
7819
20012
done
7820
20013
 
7821
20014
  ;;
7822
20015
esac
7823
20016
fi
7824
 
PHP=$ac_cv_path_PHP
 
20017
PYTHON=$ac_cv_path_PYTHON
7825
20018
 
7826
 
if test -n "$PHP"; then
7827
 
  echo "$as_me:7827: result: $PHP" >&5
7828
 
echo "${ECHO_T}$PHP" >&6
 
20019
if test -n "$PYTHON"; then
 
20020
  echo "$as_me:$LINENO: result: $PYTHON" >&5
 
20021
echo "${ECHO_T}$PYTHON" >&6
7829
20022
else
7830
 
  echo "$as_me:7830: result: no" >&5
 
20023
  echo "$as_me:$LINENO: result: no" >&5
7831
20024
echo "${ECHO_T}no" >&6
7832
20025
fi
7833
20026
 
7834
 
  test -n "$PHP" && break
 
20027
  test -n "$PYTHON" && break
7835
20028
done
7836
 
test -n "$PHP" || PHP="echo no php found for"
 
20029
test -n "$PYTHON" || PYTHON="echo no python found for"
7837
20030
 
7838
20031
for ac_prog in zip pkzip
7839
20032
do
7840
20033
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7841
20034
set dummy $ac_prog; ac_word=$2
7842
 
echo "$as_me:7842: checking for $ac_word" >&5
 
20035
echo "$as_me:$LINENO: checking for $ac_word" >&5
7843
20036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7844
20037
if test "${ac_cv_path_MKZIP+set}" = set; then
7845
20038
  echo $ECHO_N "(cached) $ECHO_C" >&6
7849
20042
  ac_cv_path_MKZIP="$MKZIP" # Let the user override the test with a path.
7850
20043
  ;;
7851
20044
  *)
7852
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
7853
 
ac_dummy="$PATH"
7854
 
for ac_dir in $ac_dummy; do
7855
 
  IFS=$ac_save_IFS
7856
 
  test -z "$ac_dir" && ac_dir=.
7857
 
  if $as_executable_p "$ac_dir/$ac_word"; then
7858
 
   ac_cv_path_MKZIP="$ac_dir/$ac_word"
7859
 
   echo "$as_me:7859: found $ac_dir/$ac_word" >&5
7860
 
   break
7861
 
fi
 
20045
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20046
for as_dir in $PATH
 
20047
do
 
20048
  IFS=$as_save_IFS
 
20049
  test -z "$as_dir" && as_dir=.
 
20050
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20051
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20052
    ac_cv_path_MKZIP="$as_dir/$ac_word$ac_exec_ext"
 
20053
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20054
    break 2
 
20055
  fi
 
20056
done
7862
20057
done
7863
20058
 
7864
20059
  ;;
7867
20062
MKZIP=$ac_cv_path_MKZIP
7868
20063
 
7869
20064
if test -n "$MKZIP"; then
7870
 
  echo "$as_me:7870: result: $MKZIP" >&5
 
20065
  echo "$as_me:$LINENO: result: $MKZIP" >&5
7871
20066
echo "${ECHO_T}$MKZIP" >&6
7872
20067
else
7873
 
  echo "$as_me:7873: result: no" >&5
 
20068
  echo "$as_me:$LINENO: result: no" >&5
7874
20069
echo "${ECHO_T}no" >&6
7875
20070
fi
7876
20071
 
7882
20077
do
7883
20078
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7884
20079
set dummy $ac_prog; ac_word=$2
7885
 
echo "$as_me:7885: checking for $ac_word" >&5
 
20080
echo "$as_me:$LINENO: checking for $ac_word" >&5
7886
20081
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7887
20082
if test "${ac_cv_path_XMLTO+set}" = set; then
7888
20083
  echo $ECHO_N "(cached) $ECHO_C" >&6
7892
20087
  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
7893
20088
  ;;
7894
20089
  *)
7895
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
7896
 
ac_dummy="$PATH"
7897
 
for ac_dir in $ac_dummy; do
7898
 
  IFS=$ac_save_IFS
7899
 
  test -z "$ac_dir" && ac_dir=.
7900
 
  if $as_executable_p "$ac_dir/$ac_word"; then
7901
 
   ac_cv_path_XMLTO="$ac_dir/$ac_word"
7902
 
   echo "$as_me:7902: found $ac_dir/$ac_word" >&5
7903
 
   break
7904
 
fi
 
20090
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20091
for as_dir in $PATH
 
20092
do
 
20093
  IFS=$as_save_IFS
 
20094
  test -z "$as_dir" && as_dir=.
 
20095
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20096
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20097
    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
 
20098
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20099
    break 2
 
20100
  fi
 
20101
done
7905
20102
done
7906
20103
 
7907
20104
  ;;
7910
20107
XMLTO=$ac_cv_path_XMLTO
7911
20108
 
7912
20109
if test -n "$XMLTO"; then
7913
 
  echo "$as_me:7913: result: $XMLTO" >&5
 
20110
  echo "$as_me:$LINENO: result: $XMLTO" >&5
7914
20111
echo "${ECHO_T}$XMLTO" >&6
7915
20112
else
7916
 
  echo "$as_me:7916: result: no" >&5
 
20113
  echo "$as_me:$LINENO: result: no" >&5
7917
20114
echo "${ECHO_T}no" >&6
7918
20115
fi
7919
20116
 
7921
20118
done
7922
20119
test -n "$XMLTO" || XMLTO=":"
7923
20120
 
7924
 
echo "$as_me:7924: checking for $CC option to accept ANSI C" >&5
7925
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7926
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
7927
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7928
 
else
7929
 
  ac_cv_prog_cc_stdc=no
7930
 
ac_save_CC=$CC
7931
 
cat >conftest.$ac_ext <<_ACEOF
7932
 
#line 7932 "configure"
7933
 
#include "confdefs.h"
7934
 
#include <stdarg.h>
7935
 
#include <stdio.h>
7936
 
#include <sys/types.h>
7937
 
#include <sys/stat.h>
7938
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7939
 
struct buf { int x; };
7940
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
7941
 
static char *e (p, i)
7942
 
     char **p;
7943
 
     int i;
7944
 
{
7945
 
  return p[i];
7946
 
}
7947
 
static char *f (char * (*g) (char **, int), char **p, ...)
7948
 
{
7949
 
  char *s;
7950
 
  va_list v;
7951
 
  va_start (v,p);
7952
 
  s = g (p, va_arg (v,int));
7953
 
  va_end (v);
7954
 
  return s;
7955
 
}
7956
 
int test (int i, double x);
7957
 
struct s1 {int (*f) (int a);};
7958
 
struct s2 {int (*f) (double a);};
7959
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7960
 
int argc;
7961
 
char **argv;
7962
 
int
7963
 
main ()
7964
 
{
7965
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7966
 
  ;
7967
 
  return 0;
7968
 
}
7969
 
_ACEOF
7970
 
# Don't try gcc -ansi; that turns off useful extensions and
7971
 
# breaks some systems' header files.
7972
 
# AIX                   -qlanglvl=ansi
7973
 
# Ultrix and OSF/1      -std1
7974
 
# HP-UX 10.20 and later -Ae
7975
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
7976
 
# SVR4                  -Xc -D__EXTENSIONS__
7977
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7978
 
do
7979
 
  CC="$ac_save_CC $ac_arg"
7980
 
  rm -f conftest.$ac_objext
7981
 
if { (eval echo "$as_me:7981: \"$ac_compile\"") >&5
7982
 
  (eval $ac_compile) 2>&5
7983
 
  ac_status=$?
7984
 
  echo "$as_me:7984: \$? = $ac_status" >&5
7985
 
  (exit $ac_status); } &&
7986
 
         { ac_try='test -s conftest.$ac_objext'
7987
 
  { (eval echo "$as_me:7987: \"$ac_try\"") >&5
7988
 
  (eval $ac_try) 2>&5
7989
 
  ac_status=$?
7990
 
  echo "$as_me:7990: \$? = $ac_status" >&5
7991
 
  (exit $ac_status); }; }; then
7992
 
  ac_cv_prog_cc_stdc=$ac_arg
7993
 
break
7994
 
else
7995
 
  echo "$as_me: failed program was:" >&5
7996
 
cat conftest.$ac_ext >&5
7997
 
fi
7998
 
rm -f conftest.$ac_objext
7999
 
done
8000
 
rm -f conftest.$ac_ext conftest.$ac_objext
8001
 
CC=$ac_save_CC
8002
 
 
8003
 
fi
8004
 
 
8005
 
case "x$ac_cv_prog_cc_stdc" in
8006
 
  x|xno)
8007
 
    echo "$as_me:8007: result: none needed" >&5
8008
 
echo "${ECHO_T}none needed" >&6 ;;
8009
 
  *)
8010
 
    echo "$as_me:8010: result: $ac_cv_prog_cc_stdc" >&5
8011
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8012
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
8013
 
esac
8014
 
 
8015
 
echo "$as_me:8015: checking for inline" >&5
 
20121
 
 
20122
echo "$as_me:$LINENO: checking for inline" >&5
8016
20123
echo $ECHO_N "checking for inline... $ECHO_C" >&6
8017
20124
if test "${ac_cv_c_inline+set}" = set; then
8018
20125
  echo $ECHO_N "(cached) $ECHO_C" >&6
8020
20127
  ac_cv_c_inline=no
8021
20128
for ac_kw in inline __inline__ __inline; do
8022
20129
  cat >conftest.$ac_ext <<_ACEOF
8023
 
#line 8023 "configure"
8024
 
#include "confdefs.h"
 
20130
/* confdefs.h.  */
 
20131
_ACEOF
 
20132
cat confdefs.h >>conftest.$ac_ext
 
20133
cat >>conftest.$ac_ext <<_ACEOF
 
20134
/* end confdefs.h.  */
8025
20135
#ifndef __cplusplus
8026
 
static $ac_kw int static_foo () {return 0; }
8027
 
$ac_kw int foo () {return 0; }
 
20136
typedef int foo_t;
 
20137
static $ac_kw foo_t static_foo () {return 0; }
 
20138
$ac_kw foo_t foo () {return 0; }
8028
20139
#endif
8029
20140
 
8030
20141
_ACEOF
8031
20142
rm -f conftest.$ac_objext
8032
 
if { (eval echo "$as_me:8032: \"$ac_compile\"") >&5
8033
 
  (eval $ac_compile) 2>&5
 
20143
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20144
  (eval $ac_compile) 2>conftest.er1
8034
20145
  ac_status=$?
8035
 
  echo "$as_me:8035: \$? = $ac_status" >&5
 
20146
  grep -v '^ *+' conftest.er1 >conftest.err
 
20147
  rm -f conftest.er1
 
20148
  cat conftest.err >&5
 
20149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036
20150
  (exit $ac_status); } &&
8037
 
         { ac_try='test -s conftest.$ac_objext'
8038
 
  { (eval echo "$as_me:8038: \"$ac_try\"") >&5
8039
 
  (eval $ac_try) 2>&5
8040
 
  ac_status=$?
8041
 
  echo "$as_me:8041: \$? = $ac_status" >&5
 
20151
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20153
  (eval $ac_try) 2>&5
 
20154
  ac_status=$?
 
20155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20156
  (exit $ac_status); }; } &&
 
20157
         { ac_try='test -s conftest.$ac_objext'
 
20158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20159
  (eval $ac_try) 2>&5
 
20160
  ac_status=$?
 
20161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042
20162
  (exit $ac_status); }; }; then
8043
20163
  ac_cv_c_inline=$ac_kw; break
8044
20164
else
8045
20165
  echo "$as_me: failed program was:" >&5
8046
 
cat conftest.$ac_ext >&5
 
20166
sed 's/^/| /' conftest.$ac_ext >&5
 
20167
 
8047
20168
fi
8048
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20169
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8049
20170
done
8050
20171
 
8051
20172
fi
8052
 
echo "$as_me:8052: result: $ac_cv_c_inline" >&5
 
20173
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8053
20174
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
20175
 
 
20176
 
8054
20177
case $ac_cv_c_inline in
8055
20178
  inline | yes) ;;
8056
 
  no)
8057
 
cat >>confdefs.h <<\EOF
8058
 
#define inline
8059
 
EOF
8060
 
 ;;
8061
 
  *)  cat >>confdefs.h <<EOF
8062
 
#define inline $ac_cv_c_inline
8063
 
EOF
8064
 
 ;;
 
20179
  *)
 
20180
    case $ac_cv_c_inline in
 
20181
      no) ac_val=;;
 
20182
      *) ac_val=$ac_cv_c_inline;;
 
20183
    esac
 
20184
    cat >>confdefs.h <<_ACEOF
 
20185
#ifndef __cplusplus
 
20186
#define inline $ac_val
 
20187
#endif
 
20188
_ACEOF
 
20189
    ;;
8065
20190
esac
8066
20191
 
8067
 
echo "$as_me:8067: checking for an ANSI C-conforming const" >&5
 
20192
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8068
20193
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8069
20194
if test "${ac_cv_c_const+set}" = set; then
8070
20195
  echo $ECHO_N "(cached) $ECHO_C" >&6
8071
20196
else
8072
20197
  cat >conftest.$ac_ext <<_ACEOF
8073
 
#line 8073 "configure"
8074
 
#include "confdefs.h"
 
20198
/* confdefs.h.  */
 
20199
_ACEOF
 
20200
cat confdefs.h >>conftest.$ac_ext
 
20201
cat >>conftest.$ac_ext <<_ACEOF
 
20202
/* end confdefs.h.  */
8075
20203
 
8076
20204
int
8077
20205
main ()
8128
20256
}
8129
20257
_ACEOF
8130
20258
rm -f conftest.$ac_objext
8131
 
if { (eval echo "$as_me:8131: \"$ac_compile\"") >&5
8132
 
  (eval $ac_compile) 2>&5
 
20259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20260
  (eval $ac_compile) 2>conftest.er1
8133
20261
  ac_status=$?
8134
 
  echo "$as_me:8134: \$? = $ac_status" >&5
 
20262
  grep -v '^ *+' conftest.er1 >conftest.err
 
20263
  rm -f conftest.er1
 
20264
  cat conftest.err >&5
 
20265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135
20266
  (exit $ac_status); } &&
8136
 
         { ac_try='test -s conftest.$ac_objext'
8137
 
  { (eval echo "$as_me:8137: \"$ac_try\"") >&5
8138
 
  (eval $ac_try) 2>&5
8139
 
  ac_status=$?
8140
 
  echo "$as_me:8140: \$? = $ac_status" >&5
 
20267
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20269
  (eval $ac_try) 2>&5
 
20270
  ac_status=$?
 
20271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20272
  (exit $ac_status); }; } &&
 
20273
         { ac_try='test -s conftest.$ac_objext'
 
20274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20275
  (eval $ac_try) 2>&5
 
20276
  ac_status=$?
 
20277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141
20278
  (exit $ac_status); }; }; then
8142
20279
  ac_cv_c_const=yes
8143
20280
else
8144
20281
  echo "$as_me: failed program was:" >&5
8145
 
cat conftest.$ac_ext >&5
 
20282
sed 's/^/| /' conftest.$ac_ext >&5
 
20283
 
8146
20284
ac_cv_c_const=no
8147
20285
fi
8148
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20286
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8149
20287
fi
8150
 
echo "$as_me:8150: result: $ac_cv_c_const" >&5
 
20288
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8151
20289
echo "${ECHO_T}$ac_cv_c_const" >&6
8152
20290
if test $ac_cv_c_const = no; then
8153
20291
 
8154
 
cat >>confdefs.h <<\EOF
 
20292
cat >>confdefs.h <<\_ACEOF
8155
20293
#define const
8156
 
EOF
 
20294
_ACEOF
8157
20295
 
8158
20296
fi
8159
20297
 
8160
 
echo "$as_me:8160: checking for ANSI C header files" >&5
 
20298
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8161
20299
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8162
20300
if test "${ac_cv_header_stdc+set}" = set; then
8163
20301
  echo $ECHO_N "(cached) $ECHO_C" >&6
8164
20302
else
8165
20303
  cat >conftest.$ac_ext <<_ACEOF
8166
 
#line 8166 "configure"
8167
 
#include "confdefs.h"
 
20304
/* confdefs.h.  */
 
20305
_ACEOF
 
20306
cat confdefs.h >>conftest.$ac_ext
 
20307
cat >>conftest.$ac_ext <<_ACEOF
 
20308
/* end confdefs.h.  */
8168
20309
#include <stdlib.h>
8169
20310
#include <stdarg.h>
8170
20311
#include <string.h>
8171
20312
#include <float.h>
8172
20313
 
 
20314
int
 
20315
main ()
 
20316
{
 
20317
 
 
20318
  ;
 
20319
  return 0;
 
20320
}
8173
20321
_ACEOF
8174
 
if { (eval echo "$as_me:8174: \"$ac_cpp conftest.$ac_ext\"") >&5
8175
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20322
rm -f conftest.$ac_objext
 
20323
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20324
  (eval $ac_compile) 2>conftest.er1
8176
20325
  ac_status=$?
8177
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
20326
  grep -v '^ *+' conftest.er1 >conftest.err
8178
20327
  rm -f conftest.er1
8179
20328
  cat conftest.err >&5
8180
 
  echo "$as_me:8180: \$? = $ac_status" >&5
8181
 
  (exit $ac_status); } >/dev/null; then
8182
 
  if test -s conftest.err; then
8183
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8184
 
  else
8185
 
    ac_cpp_err=
8186
 
  fi
8187
 
else
8188
 
  ac_cpp_err=yes
8189
 
fi
8190
 
if test -z "$ac_cpp_err"; then
 
20329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20330
  (exit $ac_status); } &&
 
20331
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20333
  (eval $ac_try) 2>&5
 
20334
  ac_status=$?
 
20335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20336
  (exit $ac_status); }; } &&
 
20337
         { ac_try='test -s conftest.$ac_objext'
 
20338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20339
  (eval $ac_try) 2>&5
 
20340
  ac_status=$?
 
20341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20342
  (exit $ac_status); }; }; then
8191
20343
  ac_cv_header_stdc=yes
8192
20344
else
8193
20345
  echo "$as_me: failed program was:" >&5
8194
 
  cat conftest.$ac_ext >&5
8195
 
  ac_cv_header_stdc=no
 
20346
sed 's/^/| /' conftest.$ac_ext >&5
 
20347
 
 
20348
ac_cv_header_stdc=no
8196
20349
fi
8197
 
rm -f conftest.err conftest.$ac_ext
 
20350
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8198
20351
 
8199
20352
if test $ac_cv_header_stdc = yes; then
8200
20353
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8201
20354
  cat >conftest.$ac_ext <<_ACEOF
8202
 
#line 8202 "configure"
8203
 
#include "confdefs.h"
 
20355
/* confdefs.h.  */
 
20356
_ACEOF
 
20357
cat confdefs.h >>conftest.$ac_ext
 
20358
cat >>conftest.$ac_ext <<_ACEOF
 
20359
/* end confdefs.h.  */
8204
20360
#include <string.h>
8205
20361
 
8206
20362
_ACEOF
8207
20363
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8208
 
  egrep "memchr" >/dev/null 2>&1; then
 
20364
  $EGREP "memchr" >/dev/null 2>&1; then
8209
20365
  :
8210
20366
else
8211
20367
  ac_cv_header_stdc=no
8217
20373
if test $ac_cv_header_stdc = yes; then
8218
20374
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8219
20375
  cat >conftest.$ac_ext <<_ACEOF
8220
 
#line 8220 "configure"
8221
 
#include "confdefs.h"
 
20376
/* confdefs.h.  */
 
20377
_ACEOF
 
20378
cat confdefs.h >>conftest.$ac_ext
 
20379
cat >>conftest.$ac_ext <<_ACEOF
 
20380
/* end confdefs.h.  */
8222
20381
#include <stdlib.h>
8223
20382
 
8224
20383
_ACEOF
8225
20384
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8226
 
  egrep "free" >/dev/null 2>&1; then
 
20385
  $EGREP "free" >/dev/null 2>&1; then
8227
20386
  :
8228
20387
else
8229
20388
  ac_cv_header_stdc=no
8238
20397
  :
8239
20398
else
8240
20399
  cat >conftest.$ac_ext <<_ACEOF
8241
 
#line 8241 "configure"
8242
 
#include "confdefs.h"
 
20400
/* confdefs.h.  */
 
20401
_ACEOF
 
20402
cat confdefs.h >>conftest.$ac_ext
 
20403
cat >>conftest.$ac_ext <<_ACEOF
 
20404
/* end confdefs.h.  */
8243
20405
#include <ctype.h>
8244
20406
#if ((' ' & 0x0FF) == 0x020)
8245
20407
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8246
20408
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8247
20409
#else
8248
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8249
 
                     || ('j' <= (c) && (c) <= 'r') \
8250
 
                     || ('s' <= (c) && (c) <= 'z'))
 
20410
# define ISLOWER(c) \
 
20411
                   (('a' <= (c) && (c) <= 'i') \
 
20412
                     || ('j' <= (c) && (c) <= 'r') \
 
20413
                     || ('s' <= (c) && (c) <= 'z'))
8251
20414
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8252
20415
#endif
8253
20416
 
8258
20421
  int i;
8259
20422
  for (i = 0; i < 256; i++)
8260
20423
    if (XOR (islower (i), ISLOWER (i))
8261
 
        || toupper (i) != TOUPPER (i))
 
20424
        || toupper (i) != TOUPPER (i))
8262
20425
      exit(2);
8263
20426
  exit (0);
8264
20427
}
8265
20428
_ACEOF
8266
20429
rm -f conftest$ac_exeext
8267
 
if { (eval echo "$as_me:8267: \"$ac_link\"") >&5
 
20430
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268
20431
  (eval $ac_link) 2>&5
8269
20432
  ac_status=$?
8270
 
  echo "$as_me:8270: \$? = $ac_status" >&5
 
20433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271
20434
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8272
 
  { (eval echo "$as_me:8272: \"$ac_try\"") >&5
 
20435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273
20436
  (eval $ac_try) 2>&5
8274
20437
  ac_status=$?
8275
 
  echo "$as_me:8275: \$? = $ac_status" >&5
 
20438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276
20439
  (exit $ac_status); }; }; then
8277
20440
  :
8278
20441
else
8279
20442
  echo "$as_me: program exited with status $ac_status" >&5
8280
20443
echo "$as_me: failed program was:" >&5
8281
 
cat conftest.$ac_ext >&5
 
20444
sed 's/^/| /' conftest.$ac_ext >&5
 
20445
 
 
20446
( exit $ac_status )
8282
20447
ac_cv_header_stdc=no
8283
20448
fi
8284
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8285
 
fi
8286
 
fi
8287
 
fi
8288
 
echo "$as_me:8288: result: $ac_cv_header_stdc" >&5
 
20449
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20450
fi
 
20451
fi
 
20452
fi
 
20453
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8289
20454
echo "${ECHO_T}$ac_cv_header_stdc" >&6
8290
20455
if test $ac_cv_header_stdc = yes; then
8291
20456
 
8292
 
cat >>confdefs.h <<\EOF
 
20457
cat >>confdefs.h <<\_ACEOF
8293
20458
#define STDC_HEADERS 1
8294
 
EOF
 
20459
_ACEOF
8295
20460
 
8296
20461
fi
8297
20462
 
 
20463
 
 
20464
 
 
20465
 
 
20466
 
 
20467
 
8298
20468
ac_header_dirent=no
8299
20469
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8300
20470
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8301
 
echo "$as_me:8301: checking for $ac_hdr that defines DIR" >&5
 
20471
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8302
20472
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8303
20473
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8304
20474
  echo $ECHO_N "(cached) $ECHO_C" >&6
8305
20475
else
8306
20476
  cat >conftest.$ac_ext <<_ACEOF
8307
 
#line 8307 "configure"
8308
 
#include "confdefs.h"
 
20477
/* confdefs.h.  */
 
20478
_ACEOF
 
20479
cat confdefs.h >>conftest.$ac_ext
 
20480
cat >>conftest.$ac_ext <<_ACEOF
 
20481
/* end confdefs.h.  */
8309
20482
#include <sys/types.h>
8310
20483
#include <$ac_hdr>
8311
20484
 
8319
20492
}
8320
20493
_ACEOF
8321
20494
rm -f conftest.$ac_objext
8322
 
if { (eval echo "$as_me:8322: \"$ac_compile\"") >&5
8323
 
  (eval $ac_compile) 2>&5
 
20495
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20496
  (eval $ac_compile) 2>conftest.er1
8324
20497
  ac_status=$?
8325
 
  echo "$as_me:8325: \$? = $ac_status" >&5
 
20498
  grep -v '^ *+' conftest.er1 >conftest.err
 
20499
  rm -f conftest.er1
 
20500
  cat conftest.err >&5
 
20501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326
20502
  (exit $ac_status); } &&
8327
 
         { ac_try='test -s conftest.$ac_objext'
8328
 
  { (eval echo "$as_me:8328: \"$ac_try\"") >&5
8329
 
  (eval $ac_try) 2>&5
8330
 
  ac_status=$?
8331
 
  echo "$as_me:8331: \$? = $ac_status" >&5
 
20503
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20505
  (eval $ac_try) 2>&5
 
20506
  ac_status=$?
 
20507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20508
  (exit $ac_status); }; } &&
 
20509
         { ac_try='test -s conftest.$ac_objext'
 
20510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20511
  (eval $ac_try) 2>&5
 
20512
  ac_status=$?
 
20513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332
20514
  (exit $ac_status); }; }; then
8333
20515
  eval "$as_ac_Header=yes"
8334
20516
else
8335
20517
  echo "$as_me: failed program was:" >&5
8336
 
cat conftest.$ac_ext >&5
 
20518
sed 's/^/| /' conftest.$ac_ext >&5
 
20519
 
8337
20520
eval "$as_ac_Header=no"
8338
20521
fi
8339
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20522
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8340
20523
fi
8341
 
echo "$as_me:8341: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20524
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8342
20525
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8343
20526
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8344
 
  cat >>confdefs.h <<EOF
 
20527
  cat >>confdefs.h <<_ACEOF
8345
20528
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8346
 
EOF
 
20529
_ACEOF
8347
20530
 
8348
20531
ac_header_dirent=$ac_hdr; break
8349
20532
fi
8351
20534
done
8352
20535
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8353
20536
if test $ac_header_dirent = dirent.h; then
8354
 
  echo "$as_me:8354: checking for opendir in -ldir" >&5
8355
 
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
8356
 
if test "${ac_cv_lib_dir_opendir+set}" = set; then
8357
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8358
 
else
8359
 
  ac_check_lib_save_LIBS=$LIBS
8360
 
LIBS="-ldir  $LIBS"
8361
 
cat >conftest.$ac_ext <<_ACEOF
8362
 
#line 8362 "configure"
8363
 
#include "confdefs.h"
8364
 
 
8365
 
/* Override any gcc2 internal prototype to avoid an error.  */
8366
 
#ifdef __cplusplus
8367
 
extern "C"
8368
 
#endif
8369
 
/* We use char because int might match the return type of a gcc2
8370
 
   builtin and then its argument prototype would still apply.  */
8371
 
char opendir ();
8372
 
int
8373
 
main ()
8374
 
{
8375
 
opendir ();
8376
 
  ;
8377
 
  return 0;
8378
 
}
8379
 
_ACEOF
8380
 
rm -f conftest.$ac_objext conftest$ac_exeext
8381
 
if { (eval echo "$as_me:8381: \"$ac_link\"") >&5
8382
 
  (eval $ac_link) 2>&5
8383
 
  ac_status=$?
8384
 
  echo "$as_me:8384: \$? = $ac_status" >&5
8385
 
  (exit $ac_status); } &&
8386
 
         { ac_try='test -s conftest$ac_exeext'
8387
 
  { (eval echo "$as_me:8387: \"$ac_try\"") >&5
8388
 
  (eval $ac_try) 2>&5
8389
 
  ac_status=$?
8390
 
  echo "$as_me:8390: \$? = $ac_status" >&5
8391
 
  (exit $ac_status); }; }; then
8392
 
  ac_cv_lib_dir_opendir=yes
8393
 
else
8394
 
  echo "$as_me: failed program was:" >&5
8395
 
cat conftest.$ac_ext >&5
8396
 
ac_cv_lib_dir_opendir=no
8397
 
fi
8398
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8399
 
LIBS=$ac_check_lib_save_LIBS
8400
 
fi
8401
 
echo "$as_me:8401: result: $ac_cv_lib_dir_opendir" >&5
8402
 
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
8403
 
if test $ac_cv_lib_dir_opendir = yes; then
8404
 
  LIBS="$LIBS -ldir"
8405
 
fi
8406
 
 
8407
 
else
8408
 
  echo "$as_me:8408: checking for opendir in -lx" >&5
8409
 
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
8410
 
if test "${ac_cv_lib_x_opendir+set}" = set; then
8411
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8412
 
else
8413
 
  ac_check_lib_save_LIBS=$LIBS
8414
 
LIBS="-lx  $LIBS"
8415
 
cat >conftest.$ac_ext <<_ACEOF
8416
 
#line 8416 "configure"
8417
 
#include "confdefs.h"
8418
 
 
8419
 
/* Override any gcc2 internal prototype to avoid an error.  */
8420
 
#ifdef __cplusplus
8421
 
extern "C"
8422
 
#endif
8423
 
/* We use char because int might match the return type of a gcc2
8424
 
   builtin and then its argument prototype would still apply.  */
8425
 
char opendir ();
8426
 
int
8427
 
main ()
8428
 
{
8429
 
opendir ();
8430
 
  ;
8431
 
  return 0;
8432
 
}
8433
 
_ACEOF
8434
 
rm -f conftest.$ac_objext conftest$ac_exeext
8435
 
if { (eval echo "$as_me:8435: \"$ac_link\"") >&5
8436
 
  (eval $ac_link) 2>&5
8437
 
  ac_status=$?
8438
 
  echo "$as_me:8438: \$? = $ac_status" >&5
8439
 
  (exit $ac_status); } &&
8440
 
         { ac_try='test -s conftest$ac_exeext'
8441
 
  { (eval echo "$as_me:8441: \"$ac_try\"") >&5
8442
 
  (eval $ac_try) 2>&5
8443
 
  ac_status=$?
8444
 
  echo "$as_me:8444: \$? = $ac_status" >&5
8445
 
  (exit $ac_status); }; }; then
8446
 
  ac_cv_lib_x_opendir=yes
8447
 
else
8448
 
  echo "$as_me: failed program was:" >&5
8449
 
cat conftest.$ac_ext >&5
8450
 
ac_cv_lib_x_opendir=no
8451
 
fi
8452
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8453
 
LIBS=$ac_check_lib_save_LIBS
8454
 
fi
8455
 
echo "$as_me:8455: result: $ac_cv_lib_x_opendir" >&5
8456
 
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
8457
 
if test $ac_cv_lib_x_opendir = yes; then
8458
 
  LIBS="$LIBS -lx"
8459
 
fi
8460
 
 
8461
 
fi
 
20537
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
20538
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
20539
if test "${ac_cv_search_opendir+set}" = set; then
 
20540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20541
else
 
20542
  ac_func_search_save_LIBS=$LIBS
 
20543
ac_cv_search_opendir=no
 
20544
cat >conftest.$ac_ext <<_ACEOF
 
20545
/* confdefs.h.  */
 
20546
_ACEOF
 
20547
cat confdefs.h >>conftest.$ac_ext
 
20548
cat >>conftest.$ac_ext <<_ACEOF
 
20549
/* end confdefs.h.  */
 
20550
 
 
20551
/* Override any gcc2 internal prototype to avoid an error.  */
 
20552
#ifdef __cplusplus
 
20553
extern "C"
 
20554
#endif
 
20555
/* We use char because int might match the return type of a gcc2
 
20556
   builtin and then its argument prototype would still apply.  */
 
20557
char opendir ();
 
20558
int
 
20559
main ()
 
20560
{
 
20561
opendir ();
 
20562
  ;
 
20563
  return 0;
 
20564
}
 
20565
_ACEOF
 
20566
rm -f conftest.$ac_objext conftest$ac_exeext
 
20567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20568
  (eval $ac_link) 2>conftest.er1
 
20569
  ac_status=$?
 
20570
  grep -v '^ *+' conftest.er1 >conftest.err
 
20571
  rm -f conftest.er1
 
20572
  cat conftest.err >&5
 
20573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20574
  (exit $ac_status); } &&
 
20575
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20577
  (eval $ac_try) 2>&5
 
20578
  ac_status=$?
 
20579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20580
  (exit $ac_status); }; } &&
 
20581
         { ac_try='test -s conftest$ac_exeext'
 
20582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20583
  (eval $ac_try) 2>&5
 
20584
  ac_status=$?
 
20585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20586
  (exit $ac_status); }; }; then
 
20587
  ac_cv_search_opendir="none required"
 
20588
else
 
20589
  echo "$as_me: failed program was:" >&5
 
20590
sed 's/^/| /' conftest.$ac_ext >&5
 
20591
 
 
20592
fi
 
20593
rm -f conftest.err conftest.$ac_objext \
 
20594
      conftest$ac_exeext conftest.$ac_ext
 
20595
if test "$ac_cv_search_opendir" = no; then
 
20596
  for ac_lib in dir; do
 
20597
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20598
    cat >conftest.$ac_ext <<_ACEOF
 
20599
/* confdefs.h.  */
 
20600
_ACEOF
 
20601
cat confdefs.h >>conftest.$ac_ext
 
20602
cat >>conftest.$ac_ext <<_ACEOF
 
20603
/* end confdefs.h.  */
 
20604
 
 
20605
/* Override any gcc2 internal prototype to avoid an error.  */
 
20606
#ifdef __cplusplus
 
20607
extern "C"
 
20608
#endif
 
20609
/* We use char because int might match the return type of a gcc2
 
20610
   builtin and then its argument prototype would still apply.  */
 
20611
char opendir ();
 
20612
int
 
20613
main ()
 
20614
{
 
20615
opendir ();
 
20616
  ;
 
20617
  return 0;
 
20618
}
 
20619
_ACEOF
 
20620
rm -f conftest.$ac_objext conftest$ac_exeext
 
20621
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20622
  (eval $ac_link) 2>conftest.er1
 
20623
  ac_status=$?
 
20624
  grep -v '^ *+' conftest.er1 >conftest.err
 
20625
  rm -f conftest.er1
 
20626
  cat conftest.err >&5
 
20627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20628
  (exit $ac_status); } &&
 
20629
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20631
  (eval $ac_try) 2>&5
 
20632
  ac_status=$?
 
20633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20634
  (exit $ac_status); }; } &&
 
20635
         { ac_try='test -s conftest$ac_exeext'
 
20636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20637
  (eval $ac_try) 2>&5
 
20638
  ac_status=$?
 
20639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20640
  (exit $ac_status); }; }; then
 
20641
  ac_cv_search_opendir="-l$ac_lib"
 
20642
break
 
20643
else
 
20644
  echo "$as_me: failed program was:" >&5
 
20645
sed 's/^/| /' conftest.$ac_ext >&5
 
20646
 
 
20647
fi
 
20648
rm -f conftest.err conftest.$ac_objext \
 
20649
      conftest$ac_exeext conftest.$ac_ext
 
20650
  done
 
20651
fi
 
20652
LIBS=$ac_func_search_save_LIBS
 
20653
fi
 
20654
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
20655
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
20656
if test "$ac_cv_search_opendir" != no; then
 
20657
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
20658
 
 
20659
fi
 
20660
 
 
20661
else
 
20662
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
20663
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
20664
if test "${ac_cv_search_opendir+set}" = set; then
 
20665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20666
else
 
20667
  ac_func_search_save_LIBS=$LIBS
 
20668
ac_cv_search_opendir=no
 
20669
cat >conftest.$ac_ext <<_ACEOF
 
20670
/* confdefs.h.  */
 
20671
_ACEOF
 
20672
cat confdefs.h >>conftest.$ac_ext
 
20673
cat >>conftest.$ac_ext <<_ACEOF
 
20674
/* end confdefs.h.  */
 
20675
 
 
20676
/* Override any gcc2 internal prototype to avoid an error.  */
 
20677
#ifdef __cplusplus
 
20678
extern "C"
 
20679
#endif
 
20680
/* We use char because int might match the return type of a gcc2
 
20681
   builtin and then its argument prototype would still apply.  */
 
20682
char opendir ();
 
20683
int
 
20684
main ()
 
20685
{
 
20686
opendir ();
 
20687
  ;
 
20688
  return 0;
 
20689
}
 
20690
_ACEOF
 
20691
rm -f conftest.$ac_objext conftest$ac_exeext
 
20692
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20693
  (eval $ac_link) 2>conftest.er1
 
20694
  ac_status=$?
 
20695
  grep -v '^ *+' conftest.er1 >conftest.err
 
20696
  rm -f conftest.er1
 
20697
  cat conftest.err >&5
 
20698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20699
  (exit $ac_status); } &&
 
20700
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20701
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20702
  (eval $ac_try) 2>&5
 
20703
  ac_status=$?
 
20704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20705
  (exit $ac_status); }; } &&
 
20706
         { ac_try='test -s conftest$ac_exeext'
 
20707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20708
  (eval $ac_try) 2>&5
 
20709
  ac_status=$?
 
20710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20711
  (exit $ac_status); }; }; then
 
20712
  ac_cv_search_opendir="none required"
 
20713
else
 
20714
  echo "$as_me: failed program was:" >&5
 
20715
sed 's/^/| /' conftest.$ac_ext >&5
 
20716
 
 
20717
fi
 
20718
rm -f conftest.err conftest.$ac_objext \
 
20719
      conftest$ac_exeext conftest.$ac_ext
 
20720
if test "$ac_cv_search_opendir" = no; then
 
20721
  for ac_lib in x; do
 
20722
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20723
    cat >conftest.$ac_ext <<_ACEOF
 
20724
/* confdefs.h.  */
 
20725
_ACEOF
 
20726
cat confdefs.h >>conftest.$ac_ext
 
20727
cat >>conftest.$ac_ext <<_ACEOF
 
20728
/* end confdefs.h.  */
 
20729
 
 
20730
/* Override any gcc2 internal prototype to avoid an error.  */
 
20731
#ifdef __cplusplus
 
20732
extern "C"
 
20733
#endif
 
20734
/* We use char because int might match the return type of a gcc2
 
20735
   builtin and then its argument prototype would still apply.  */
 
20736
char opendir ();
 
20737
int
 
20738
main ()
 
20739
{
 
20740
opendir ();
 
20741
  ;
 
20742
  return 0;
 
20743
}
 
20744
_ACEOF
 
20745
rm -f conftest.$ac_objext conftest$ac_exeext
 
20746
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20747
  (eval $ac_link) 2>conftest.er1
 
20748
  ac_status=$?
 
20749
  grep -v '^ *+' conftest.er1 >conftest.err
 
20750
  rm -f conftest.er1
 
20751
  cat conftest.err >&5
 
20752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20753
  (exit $ac_status); } &&
 
20754
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20756
  (eval $ac_try) 2>&5
 
20757
  ac_status=$?
 
20758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20759
  (exit $ac_status); }; } &&
 
20760
         { ac_try='test -s conftest$ac_exeext'
 
20761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20762
  (eval $ac_try) 2>&5
 
20763
  ac_status=$?
 
20764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20765
  (exit $ac_status); }; }; then
 
20766
  ac_cv_search_opendir="-l$ac_lib"
 
20767
break
 
20768
else
 
20769
  echo "$as_me: failed program was:" >&5
 
20770
sed 's/^/| /' conftest.$ac_ext >&5
 
20771
 
 
20772
fi
 
20773
rm -f conftest.err conftest.$ac_objext \
 
20774
      conftest$ac_exeext conftest.$ac_ext
 
20775
  done
 
20776
fi
 
20777
LIBS=$ac_func_search_save_LIBS
 
20778
fi
 
20779
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
20780
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
20781
if test "$ac_cv_search_opendir" != no; then
 
20782
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
20783
 
 
20784
fi
 
20785
 
 
20786
fi
 
20787
 
 
20788
 
 
20789
 
 
20790
 
 
20791
 
 
20792
 
8462
20793
 
8463
20794
for ac_header in stdint.h unistd.h windows.h winnt.h winbase.h sys/int_types.h
8464
20795
do
8465
20796
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8466
 
echo "$as_me:8466: checking for $ac_header" >&5
 
20797
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20798
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8467
20799
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8468
20800
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8469
20801
  echo $ECHO_N "(cached) $ECHO_C" >&6
8470
 
else
8471
 
  cat >conftest.$ac_ext <<_ACEOF
8472
 
#line 8472 "configure"
8473
 
#include "confdefs.h"
8474
 
#include <$ac_header>
8475
 
_ACEOF
8476
 
if { (eval echo "$as_me:8476: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20802
fi
 
20803
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20804
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20805
else
 
20806
  # Is the header compilable?
 
20807
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20808
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20809
cat >conftest.$ac_ext <<_ACEOF
 
20810
/* confdefs.h.  */
 
20811
_ACEOF
 
20812
cat confdefs.h >>conftest.$ac_ext
 
20813
cat >>conftest.$ac_ext <<_ACEOF
 
20814
/* end confdefs.h.  */
 
20815
$ac_includes_default
 
20816
#include <$ac_header>
 
20817
_ACEOF
 
20818
rm -f conftest.$ac_objext
 
20819
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20820
  (eval $ac_compile) 2>conftest.er1
 
20821
  ac_status=$?
 
20822
  grep -v '^ *+' conftest.er1 >conftest.err
 
20823
  rm -f conftest.er1
 
20824
  cat conftest.err >&5
 
20825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20826
  (exit $ac_status); } &&
 
20827
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20829
  (eval $ac_try) 2>&5
 
20830
  ac_status=$?
 
20831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20832
  (exit $ac_status); }; } &&
 
20833
         { ac_try='test -s conftest.$ac_objext'
 
20834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20835
  (eval $ac_try) 2>&5
 
20836
  ac_status=$?
 
20837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20838
  (exit $ac_status); }; }; then
 
20839
  ac_header_compiler=yes
 
20840
else
 
20841
  echo "$as_me: failed program was:" >&5
 
20842
sed 's/^/| /' conftest.$ac_ext >&5
 
20843
 
 
20844
ac_header_compiler=no
 
20845
fi
 
20846
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20847
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20848
echo "${ECHO_T}$ac_header_compiler" >&6
 
20849
 
 
20850
# Is the header present?
 
20851
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20852
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20853
cat >conftest.$ac_ext <<_ACEOF
 
20854
/* confdefs.h.  */
 
20855
_ACEOF
 
20856
cat confdefs.h >>conftest.$ac_ext
 
20857
cat >>conftest.$ac_ext <<_ACEOF
 
20858
/* end confdefs.h.  */
 
20859
#include <$ac_header>
 
20860
_ACEOF
 
20861
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8477
20862
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8478
20863
  ac_status=$?
8479
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
20864
  grep -v '^ *+' conftest.er1 >conftest.err
8480
20865
  rm -f conftest.er1
8481
20866
  cat conftest.err >&5
8482
 
  echo "$as_me:8482: \$? = $ac_status" >&5
 
20867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483
20868
  (exit $ac_status); } >/dev/null; then
8484
20869
  if test -s conftest.err; then
8485
20870
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20871
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8486
20872
  else
8487
20873
    ac_cpp_err=
8488
20874
  fi
8490
20876
  ac_cpp_err=yes
8491
20877
fi
8492
20878
if test -z "$ac_cpp_err"; then
8493
 
  eval "$as_ac_Header=yes"
 
20879
  ac_header_preproc=yes
8494
20880
else
8495
20881
  echo "$as_me: failed program was:" >&5
8496
 
  cat conftest.$ac_ext >&5
8497
 
  eval "$as_ac_Header=no"
 
20882
sed 's/^/| /' conftest.$ac_ext >&5
 
20883
 
 
20884
  ac_header_preproc=no
8498
20885
fi
8499
20886
rm -f conftest.err conftest.$ac_ext
 
20887
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20888
echo "${ECHO_T}$ac_header_preproc" >&6
 
20889
 
 
20890
# So?  What about this header?
 
20891
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20892
  yes:no: )
 
20893
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20894
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20895
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20896
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20897
    ac_header_preproc=yes
 
20898
    ;;
 
20899
  no:yes:* )
 
20900
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20901
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20902
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20903
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20904
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20905
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20906
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20907
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20908
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20909
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20910
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20911
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20912
    (
 
20913
      cat <<\_ASBOX
 
20914
## ------------------------------------------ ##
 
20915
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20916
## ------------------------------------------ ##
 
20917
_ASBOX
 
20918
    ) |
 
20919
      sed "s/^/$as_me: WARNING:     /" >&2
 
20920
    ;;
 
20921
esac
 
20922
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20923
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20924
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20926
else
 
20927
  eval "$as_ac_Header=\$ac_header_preproc"
8500
20928
fi
8501
 
echo "$as_me:8501: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20929
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8502
20930
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20931
 
 
20932
fi
8503
20933
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8504
 
  cat >>confdefs.h <<EOF
 
20934
  cat >>confdefs.h <<_ACEOF
8505
20935
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8506
 
EOF
 
20936
_ACEOF
8507
20937
 
8508
20938
fi
 
20939
 
8509
20940
done
8510
20941
 
 
20942
 
 
20943
 
 
20944
 
 
20945
 
8511
20946
for ac_header in sys/types.h sys/mman.h sys/stat.h sys/param.h
8512
20947
do
8513
20948
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8514
 
echo "$as_me:8514: checking for $ac_header" >&5
 
20949
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20950
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8515
20951
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8516
20952
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8517
20953
  echo $ECHO_N "(cached) $ECHO_C" >&6
8518
 
else
8519
 
  cat >conftest.$ac_ext <<_ACEOF
8520
 
#line 8520 "configure"
8521
 
#include "confdefs.h"
8522
 
#include <$ac_header>
8523
 
_ACEOF
8524
 
if { (eval echo "$as_me:8524: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20954
fi
 
20955
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20956
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20957
else
 
20958
  # Is the header compilable?
 
20959
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20960
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20961
cat >conftest.$ac_ext <<_ACEOF
 
20962
/* confdefs.h.  */
 
20963
_ACEOF
 
20964
cat confdefs.h >>conftest.$ac_ext
 
20965
cat >>conftest.$ac_ext <<_ACEOF
 
20966
/* end confdefs.h.  */
 
20967
$ac_includes_default
 
20968
#include <$ac_header>
 
20969
_ACEOF
 
20970
rm -f conftest.$ac_objext
 
20971
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20972
  (eval $ac_compile) 2>conftest.er1
 
20973
  ac_status=$?
 
20974
  grep -v '^ *+' conftest.er1 >conftest.err
 
20975
  rm -f conftest.er1
 
20976
  cat conftest.err >&5
 
20977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20978
  (exit $ac_status); } &&
 
20979
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20981
  (eval $ac_try) 2>&5
 
20982
  ac_status=$?
 
20983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20984
  (exit $ac_status); }; } &&
 
20985
         { ac_try='test -s conftest.$ac_objext'
 
20986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20987
  (eval $ac_try) 2>&5
 
20988
  ac_status=$?
 
20989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20990
  (exit $ac_status); }; }; then
 
20991
  ac_header_compiler=yes
 
20992
else
 
20993
  echo "$as_me: failed program was:" >&5
 
20994
sed 's/^/| /' conftest.$ac_ext >&5
 
20995
 
 
20996
ac_header_compiler=no
 
20997
fi
 
20998
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20999
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21000
echo "${ECHO_T}$ac_header_compiler" >&6
 
21001
 
 
21002
# Is the header present?
 
21003
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21004
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21005
cat >conftest.$ac_ext <<_ACEOF
 
21006
/* confdefs.h.  */
 
21007
_ACEOF
 
21008
cat confdefs.h >>conftest.$ac_ext
 
21009
cat >>conftest.$ac_ext <<_ACEOF
 
21010
/* end confdefs.h.  */
 
21011
#include <$ac_header>
 
21012
_ACEOF
 
21013
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8525
21014
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8526
21015
  ac_status=$?
8527
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
21016
  grep -v '^ *+' conftest.er1 >conftest.err
8528
21017
  rm -f conftest.er1
8529
21018
  cat conftest.err >&5
8530
 
  echo "$as_me:8530: \$? = $ac_status" >&5
 
21019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531
21020
  (exit $ac_status); } >/dev/null; then
8532
21021
  if test -s conftest.err; then
8533
21022
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21023
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8534
21024
  else
8535
21025
    ac_cpp_err=
8536
21026
  fi
8538
21028
  ac_cpp_err=yes
8539
21029
fi
8540
21030
if test -z "$ac_cpp_err"; then
8541
 
  eval "$as_ac_Header=yes"
 
21031
  ac_header_preproc=yes
8542
21032
else
8543
21033
  echo "$as_me: failed program was:" >&5
8544
 
  cat conftest.$ac_ext >&5
8545
 
  eval "$as_ac_Header=no"
 
21034
sed 's/^/| /' conftest.$ac_ext >&5
 
21035
 
 
21036
  ac_header_preproc=no
8546
21037
fi
8547
21038
rm -f conftest.err conftest.$ac_ext
 
21039
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21040
echo "${ECHO_T}$ac_header_preproc" >&6
 
21041
 
 
21042
# So?  What about this header?
 
21043
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21044
  yes:no: )
 
21045
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21046
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21047
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21048
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21049
    ac_header_preproc=yes
 
21050
    ;;
 
21051
  no:yes:* )
 
21052
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21053
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21054
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21055
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21056
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21057
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21058
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21059
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21060
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21061
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21062
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21063
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21064
    (
 
21065
      cat <<\_ASBOX
 
21066
## ------------------------------------------ ##
 
21067
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21068
## ------------------------------------------ ##
 
21069
_ASBOX
 
21070
    ) |
 
21071
      sed "s/^/$as_me: WARNING:     /" >&2
 
21072
    ;;
 
21073
esac
 
21074
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21075
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21076
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21078
else
 
21079
  eval "$as_ac_Header=\$ac_header_preproc"
8548
21080
fi
8549
 
echo "$as_me:8549: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21081
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8550
21082
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21083
 
 
21084
fi
8551
21085
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8552
 
  cat >>confdefs.h <<EOF
 
21086
  cat >>confdefs.h <<_ACEOF
8553
21087
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8554
 
EOF
 
21088
_ACEOF
8555
21089
 
8556
21090
fi
 
21091
 
8557
21092
done
8558
21093
 
8559
 
for ac_header in io.h zlib.h
 
21094
 
 
21095
 
 
21096
for ac_header in io.h direct.h zlib.h
8560
21097
do
8561
21098
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8562
 
echo "$as_me:8562: checking for $ac_header" >&5
 
21099
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21100
  echo "$as_me:$LINENO: checking for $ac_header" >&5
8563
21101
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8564
21102
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8565
21103
  echo $ECHO_N "(cached) $ECHO_C" >&6
8566
 
else
8567
 
  cat >conftest.$ac_ext <<_ACEOF
8568
 
#line 8568 "configure"
8569
 
#include "confdefs.h"
8570
 
#include <$ac_header>
8571
 
_ACEOF
8572
 
if { (eval echo "$as_me:8572: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21104
fi
 
21105
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21106
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21107
else
 
21108
  # Is the header compilable?
 
21109
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21110
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21111
cat >conftest.$ac_ext <<_ACEOF
 
21112
/* confdefs.h.  */
 
21113
_ACEOF
 
21114
cat confdefs.h >>conftest.$ac_ext
 
21115
cat >>conftest.$ac_ext <<_ACEOF
 
21116
/* end confdefs.h.  */
 
21117
$ac_includes_default
 
21118
#include <$ac_header>
 
21119
_ACEOF
 
21120
rm -f conftest.$ac_objext
 
21121
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21122
  (eval $ac_compile) 2>conftest.er1
 
21123
  ac_status=$?
 
21124
  grep -v '^ *+' conftest.er1 >conftest.err
 
21125
  rm -f conftest.er1
 
21126
  cat conftest.err >&5
 
21127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21128
  (exit $ac_status); } &&
 
21129
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21131
  (eval $ac_try) 2>&5
 
21132
  ac_status=$?
 
21133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21134
  (exit $ac_status); }; } &&
 
21135
         { ac_try='test -s conftest.$ac_objext'
 
21136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21137
  (eval $ac_try) 2>&5
 
21138
  ac_status=$?
 
21139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21140
  (exit $ac_status); }; }; then
 
21141
  ac_header_compiler=yes
 
21142
else
 
21143
  echo "$as_me: failed program was:" >&5
 
21144
sed 's/^/| /' conftest.$ac_ext >&5
 
21145
 
 
21146
ac_header_compiler=no
 
21147
fi
 
21148
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21149
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21150
echo "${ECHO_T}$ac_header_compiler" >&6
 
21151
 
 
21152
# Is the header present?
 
21153
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21154
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21155
cat >conftest.$ac_ext <<_ACEOF
 
21156
/* confdefs.h.  */
 
21157
_ACEOF
 
21158
cat confdefs.h >>conftest.$ac_ext
 
21159
cat >>conftest.$ac_ext <<_ACEOF
 
21160
/* end confdefs.h.  */
 
21161
#include <$ac_header>
 
21162
_ACEOF
 
21163
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8573
21164
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8574
21165
  ac_status=$?
8575
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
21166
  grep -v '^ *+' conftest.er1 >conftest.err
8576
21167
  rm -f conftest.er1
8577
21168
  cat conftest.err >&5
8578
 
  echo "$as_me:8578: \$? = $ac_status" >&5
 
21169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579
21170
  (exit $ac_status); } >/dev/null; then
8580
21171
  if test -s conftest.err; then
8581
21172
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21173
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8582
21174
  else
8583
21175
    ac_cpp_err=
8584
21176
  fi
8586
21178
  ac_cpp_err=yes
8587
21179
fi
8588
21180
if test -z "$ac_cpp_err"; then
8589
 
  eval "$as_ac_Header=yes"
 
21181
  ac_header_preproc=yes
8590
21182
else
8591
21183
  echo "$as_me: failed program was:" >&5
8592
 
  cat conftest.$ac_ext >&5
8593
 
  eval "$as_ac_Header=no"
 
21184
sed 's/^/| /' conftest.$ac_ext >&5
 
21185
 
 
21186
  ac_header_preproc=no
8594
21187
fi
8595
21188
rm -f conftest.err conftest.$ac_ext
 
21189
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21190
echo "${ECHO_T}$ac_header_preproc" >&6
 
21191
 
 
21192
# So?  What about this header?
 
21193
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21194
  yes:no: )
 
21195
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21196
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21197
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21198
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21199
    ac_header_preproc=yes
 
21200
    ;;
 
21201
  no:yes:* )
 
21202
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21203
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21204
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21205
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21206
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21207
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21208
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21209
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21210
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21211
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21212
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21213
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21214
    (
 
21215
      cat <<\_ASBOX
 
21216
## ------------------------------------------ ##
 
21217
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21218
## ------------------------------------------ ##
 
21219
_ASBOX
 
21220
    ) |
 
21221
      sed "s/^/$as_me: WARNING:     /" >&2
 
21222
    ;;
 
21223
esac
 
21224
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21225
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21226
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21227
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21228
else
 
21229
  eval "$as_ac_Header=\$ac_header_preproc"
8596
21230
fi
8597
 
echo "$as_me:8597: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21231
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8598
21232
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21233
 
 
21234
fi
8599
21235
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8600
 
  cat >>confdefs.h <<EOF
 
21236
  cat >>confdefs.h <<_ACEOF
8601
21237
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8602
 
EOF
 
21238
_ACEOF
8603
21239
 
8604
21240
fi
 
21241
 
8605
21242
done
8606
21243
 
 
21244
 
8607
21245
for ac_func in strcasecmp
8608
21246
do
8609
21247
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8610
 
echo "$as_me:8610: checking for $ac_func" >&5
 
21248
echo "$as_me:$LINENO: checking for $ac_func" >&5
8611
21249
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8612
21250
if eval "test \"\${$as_ac_var+set}\" = set"; then
8613
21251
  echo $ECHO_N "(cached) $ECHO_C" >&6
8614
21252
else
8615
21253
  cat >conftest.$ac_ext <<_ACEOF
8616
 
#line 8616 "configure"
8617
 
#include "confdefs.h"
 
21254
/* confdefs.h.  */
 
21255
_ACEOF
 
21256
cat confdefs.h >>conftest.$ac_ext
 
21257
cat >>conftest.$ac_ext <<_ACEOF
 
21258
/* end confdefs.h.  */
 
21259
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21260
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21261
#define $ac_func innocuous_$ac_func
 
21262
 
8618
21263
/* System header to define __stub macros and hopefully few prototypes,
8619
 
    which can conflict with char $ac_func (); below.  */
8620
 
#include <assert.h>
 
21264
    which can conflict with char $ac_func (); below.
 
21265
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21266
    <limits.h> exists even on freestanding compilers.  */
 
21267
 
 
21268
#ifdef __STDC__
 
21269
# include <limits.h>
 
21270
#else
 
21271
# include <assert.h>
 
21272
#endif
 
21273
 
 
21274
#undef $ac_func
 
21275
 
8621
21276
/* Override any gcc2 internal prototype to avoid an error.  */
8622
21277
#ifdef __cplusplus
8623
21278
extern "C"
 
21279
{
8624
21280
#endif
8625
21281
/* We use char because int might match the return type of a gcc2
8626
21282
   builtin and then its argument prototype would still apply.  */
8627
21283
char $ac_func ();
8628
 
char (*f) ();
8629
 
 
8630
 
int
8631
 
main ()
8632
 
{
8633
21284
/* The GNU C library defines this for functions which it implements
8634
21285
    to always fail with ENOSYS.  Some functions are actually named
8635
21286
    something starting with __ and the normal name is an alias.  */
8636
21287
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8637
21288
choke me
8638
21289
#else
8639
 
f = $ac_func;
 
21290
char (*f) () = $ac_func;
 
21291
#endif
 
21292
#ifdef __cplusplus
 
21293
}
8640
21294
#endif
8641
21295
 
 
21296
int
 
21297
main ()
 
21298
{
 
21299
return f != $ac_func;
8642
21300
  ;
8643
21301
  return 0;
8644
21302
}
8645
21303
_ACEOF
8646
21304
rm -f conftest.$ac_objext conftest$ac_exeext
8647
 
if { (eval echo "$as_me:8647: \"$ac_link\"") >&5
8648
 
  (eval $ac_link) 2>&5
 
21305
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21306
  (eval $ac_link) 2>conftest.er1
8649
21307
  ac_status=$?
8650
 
  echo "$as_me:8650: \$? = $ac_status" >&5
 
21308
  grep -v '^ *+' conftest.er1 >conftest.err
 
21309
  rm -f conftest.er1
 
21310
  cat conftest.err >&5
 
21311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651
21312
  (exit $ac_status); } &&
8652
 
         { ac_try='test -s conftest$ac_exeext'
8653
 
  { (eval echo "$as_me:8653: \"$ac_try\"") >&5
8654
 
  (eval $ac_try) 2>&5
8655
 
  ac_status=$?
8656
 
  echo "$as_me:8656: \$? = $ac_status" >&5
 
21313
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21315
  (eval $ac_try) 2>&5
 
21316
  ac_status=$?
 
21317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21318
  (exit $ac_status); }; } &&
 
21319
         { ac_try='test -s conftest$ac_exeext'
 
21320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21321
  (eval $ac_try) 2>&5
 
21322
  ac_status=$?
 
21323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657
21324
  (exit $ac_status); }; }; then
8658
21325
  eval "$as_ac_var=yes"
8659
21326
else
8660
21327
  echo "$as_me: failed program was:" >&5
8661
 
cat conftest.$ac_ext >&5
 
21328
sed 's/^/| /' conftest.$ac_ext >&5
 
21329
 
8662
21330
eval "$as_ac_var=no"
8663
21331
fi
8664
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21332
rm -f conftest.err conftest.$ac_objext \
 
21333
      conftest$ac_exeext conftest.$ac_ext
8665
21334
fi
8666
 
echo "$as_me:8666: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21335
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8667
21336
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8668
21337
if test `eval echo '${'$as_ac_var'}'` = yes; then
8669
 
  cat >>confdefs.h <<EOF
 
21338
  cat >>confdefs.h <<_ACEOF
8670
21339
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8671
 
EOF
8672
 
 
8673
 
fi
8674
 
done
8675
 
 
8676
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8677
 
 
8678
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8679
 
                  inttypes.h stdint.h unistd.h
8680
 
do
8681
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8682
 
echo "$as_me:8682: checking for $ac_header" >&5
8683
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8684
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8685
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8686
 
else
8687
 
  cat >conftest.$ac_ext <<_ACEOF
8688
 
#line 8688 "configure"
8689
 
#include "confdefs.h"
8690
 
$ac_includes_default
8691
 
#include <$ac_header>
8692
21340
_ACEOF
8693
 
rm -f conftest.$ac_objext
8694
 
if { (eval echo "$as_me:8694: \"$ac_compile\"") >&5
8695
 
  (eval $ac_compile) 2>&5
8696
 
  ac_status=$?
8697
 
  echo "$as_me:8697: \$? = $ac_status" >&5
8698
 
  (exit $ac_status); } &&
8699
 
         { ac_try='test -s conftest.$ac_objext'
8700
 
  { (eval echo "$as_me:8700: \"$ac_try\"") >&5
8701
 
  (eval $ac_try) 2>&5
8702
 
  ac_status=$?
8703
 
  echo "$as_me:8703: \$? = $ac_status" >&5
8704
 
  (exit $ac_status); }; }; then
8705
 
  eval "$as_ac_Header=yes"
8706
 
else
8707
 
  echo "$as_me: failed program was:" >&5
8708
 
cat conftest.$ac_ext >&5
8709
 
eval "$as_ac_Header=no"
8710
 
fi
8711
 
rm -f conftest.$ac_objext conftest.$ac_ext
8712
 
fi
8713
 
echo "$as_me:8713: result: `eval echo '${'$as_ac_Header'}'`" >&5
8714
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8715
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8716
 
  cat >>confdefs.h <<EOF
8717
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8718
 
EOF
8719
21341
 
8720
21342
fi
8721
21343
done
8722
21344
 
8723
 
echo "$as_me:8723: checking for off_t" >&5
 
21345
 
 
21346
echo "$as_me:$LINENO: checking for off_t" >&5
8724
21347
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8725
21348
if test "${ac_cv_type_off_t+set}" = set; then
8726
21349
  echo $ECHO_N "(cached) $ECHO_C" >&6
8727
21350
else
8728
21351
  cat >conftest.$ac_ext <<_ACEOF
8729
 
#line 8729 "configure"
8730
 
#include "confdefs.h"
 
21352
/* confdefs.h.  */
 
21353
_ACEOF
 
21354
cat confdefs.h >>conftest.$ac_ext
 
21355
cat >>conftest.$ac_ext <<_ACEOF
 
21356
/* end confdefs.h.  */
8731
21357
$ac_includes_default
8732
21358
int
8733
21359
main ()
8741
21367
}
8742
21368
_ACEOF
8743
21369
rm -f conftest.$ac_objext
8744
 
if { (eval echo "$as_me:8744: \"$ac_compile\"") >&5
8745
 
  (eval $ac_compile) 2>&5
 
21370
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21371
  (eval $ac_compile) 2>conftest.er1
8746
21372
  ac_status=$?
8747
 
  echo "$as_me:8747: \$? = $ac_status" >&5
 
21373
  grep -v '^ *+' conftest.er1 >conftest.err
 
21374
  rm -f conftest.er1
 
21375
  cat conftest.err >&5
 
21376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748
21377
  (exit $ac_status); } &&
8749
 
         { ac_try='test -s conftest.$ac_objext'
8750
 
  { (eval echo "$as_me:8750: \"$ac_try\"") >&5
8751
 
  (eval $ac_try) 2>&5
8752
 
  ac_status=$?
8753
 
  echo "$as_me:8753: \$? = $ac_status" >&5
 
21378
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21380
  (eval $ac_try) 2>&5
 
21381
  ac_status=$?
 
21382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21383
  (exit $ac_status); }; } &&
 
21384
         { ac_try='test -s conftest.$ac_objext'
 
21385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21386
  (eval $ac_try) 2>&5
 
21387
  ac_status=$?
 
21388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754
21389
  (exit $ac_status); }; }; then
8755
21390
  ac_cv_type_off_t=yes
8756
21391
else
8757
21392
  echo "$as_me: failed program was:" >&5
8758
 
cat conftest.$ac_ext >&5
 
21393
sed 's/^/| /' conftest.$ac_ext >&5
 
21394
 
8759
21395
ac_cv_type_off_t=no
8760
21396
fi
8761
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21397
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8762
21398
fi
8763
 
echo "$as_me:8763: result: $ac_cv_type_off_t" >&5
 
21399
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8764
21400
echo "${ECHO_T}$ac_cv_type_off_t" >&6
8765
21401
if test $ac_cv_type_off_t = yes; then
8766
21402
  :
8767
21403
else
8768
21404
 
8769
 
cat >>confdefs.h <<EOF
 
21405
cat >>confdefs.h <<_ACEOF
8770
21406
#define off_t long
8771
 
EOF
 
21407
_ACEOF
8772
21408
 
8773
21409
fi
8774
21410
 
8775
 
echo "$as_me:8775: checking for size_t" >&5
 
21411
echo "$as_me:$LINENO: checking for size_t" >&5
8776
21412
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8777
21413
if test "${ac_cv_type_size_t+set}" = set; then
8778
21414
  echo $ECHO_N "(cached) $ECHO_C" >&6
8779
21415
else
8780
21416
  cat >conftest.$ac_ext <<_ACEOF
8781
 
#line 8781 "configure"
8782
 
#include "confdefs.h"
 
21417
/* confdefs.h.  */
 
21418
_ACEOF
 
21419
cat confdefs.h >>conftest.$ac_ext
 
21420
cat >>conftest.$ac_ext <<_ACEOF
 
21421
/* end confdefs.h.  */
8783
21422
$ac_includes_default
8784
21423
int
8785
21424
main ()
8793
21432
}
8794
21433
_ACEOF
8795
21434
rm -f conftest.$ac_objext
8796
 
if { (eval echo "$as_me:8796: \"$ac_compile\"") >&5
8797
 
  (eval $ac_compile) 2>&5
 
21435
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21436
  (eval $ac_compile) 2>conftest.er1
8798
21437
  ac_status=$?
8799
 
  echo "$as_me:8799: \$? = $ac_status" >&5
 
21438
  grep -v '^ *+' conftest.er1 >conftest.err
 
21439
  rm -f conftest.er1
 
21440
  cat conftest.err >&5
 
21441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800
21442
  (exit $ac_status); } &&
8801
 
         { ac_try='test -s conftest.$ac_objext'
8802
 
  { (eval echo "$as_me:8802: \"$ac_try\"") >&5
8803
 
  (eval $ac_try) 2>&5
8804
 
  ac_status=$?
8805
 
  echo "$as_me:8805: \$? = $ac_status" >&5
 
21443
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21445
  (eval $ac_try) 2>&5
 
21446
  ac_status=$?
 
21447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21448
  (exit $ac_status); }; } &&
 
21449
         { ac_try='test -s conftest.$ac_objext'
 
21450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21451
  (eval $ac_try) 2>&5
 
21452
  ac_status=$?
 
21453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806
21454
  (exit $ac_status); }; }; then
8807
21455
  ac_cv_type_size_t=yes
8808
21456
else
8809
21457
  echo "$as_me: failed program was:" >&5
8810
 
cat conftest.$ac_ext >&5
 
21458
sed 's/^/| /' conftest.$ac_ext >&5
 
21459
 
8811
21460
ac_cv_type_size_t=no
8812
21461
fi
8813
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21462
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8814
21463
fi
8815
 
echo "$as_me:8815: result: $ac_cv_type_size_t" >&5
 
21464
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8816
21465
echo "${ECHO_T}$ac_cv_type_size_t" >&6
8817
21466
if test $ac_cv_type_size_t = yes; then
8818
21467
  :
8819
21468
else
8820
21469
 
8821
 
cat >>confdefs.h <<EOF
 
21470
cat >>confdefs.h <<_ACEOF
8822
21471
#define size_t unsigned
8823
 
EOF
 
21472
_ACEOF
8824
21473
 
8825
21474
fi
8826
21475
 
8827
 
echo "$as_me:8827: checking for ssize_t" >&5
 
21476
echo "$as_me:$LINENO: checking for ssize_t" >&5
8828
21477
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8829
21478
if test "${ac_cv_type_ssize_t+set}" = set; then
8830
21479
  echo $ECHO_N "(cached) $ECHO_C" >&6
8831
21480
else
8832
21481
  cat >conftest.$ac_ext <<_ACEOF
8833
 
#line 8833 "configure"
8834
 
#include "confdefs.h"
 
21482
/* confdefs.h.  */
 
21483
_ACEOF
 
21484
cat confdefs.h >>conftest.$ac_ext
 
21485
cat >>conftest.$ac_ext <<_ACEOF
 
21486
/* end confdefs.h.  */
8835
21487
$ac_includes_default
8836
21488
int
8837
21489
main ()
8845
21497
}
8846
21498
_ACEOF
8847
21499
rm -f conftest.$ac_objext
8848
 
if { (eval echo "$as_me:8848: \"$ac_compile\"") >&5
8849
 
  (eval $ac_compile) 2>&5
 
21500
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21501
  (eval $ac_compile) 2>conftest.er1
8850
21502
  ac_status=$?
8851
 
  echo "$as_me:8851: \$? = $ac_status" >&5
 
21503
  grep -v '^ *+' conftest.er1 >conftest.err
 
21504
  rm -f conftest.er1
 
21505
  cat conftest.err >&5
 
21506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852
21507
  (exit $ac_status); } &&
8853
 
         { ac_try='test -s conftest.$ac_objext'
8854
 
  { (eval echo "$as_me:8854: \"$ac_try\"") >&5
8855
 
  (eval $ac_try) 2>&5
8856
 
  ac_status=$?
8857
 
  echo "$as_me:8857: \$? = $ac_status" >&5
 
21508
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21510
  (eval $ac_try) 2>&5
 
21511
  ac_status=$?
 
21512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21513
  (exit $ac_status); }; } &&
 
21514
         { ac_try='test -s conftest.$ac_objext'
 
21515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21516
  (eval $ac_try) 2>&5
 
21517
  ac_status=$?
 
21518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858
21519
  (exit $ac_status); }; }; then
8859
21520
  ac_cv_type_ssize_t=yes
8860
21521
else
8861
21522
  echo "$as_me: failed program was:" >&5
8862
 
cat conftest.$ac_ext >&5
 
21523
sed 's/^/| /' conftest.$ac_ext >&5
 
21524
 
8863
21525
ac_cv_type_ssize_t=no
8864
21526
fi
8865
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21527
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8866
21528
fi
8867
 
echo "$as_me:8867: result: $ac_cv_type_ssize_t" >&5
 
21529
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8868
21530
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8869
21531
if test $ac_cv_type_ssize_t = yes; then
8870
21532
  :
8871
21533
else
8872
21534
 
8873
 
cat >>confdefs.h <<EOF
 
21535
cat >>confdefs.h <<_ACEOF
8874
21536
#define ssize_t int
8875
 
EOF
 
21537
_ACEOF
8876
21538
 
8877
21539
fi
8878
21540
 
8879
 
echo "$as_me:8879: checking size of short" >&5
 
21541
echo "$as_me:$LINENO: checking size of short" >&5
8880
21542
echo $ECHO_N "checking size of short... $ECHO_C" >&6
8881
21543
if test "${ac_cv_sizeof_short+set}" = set; then
8882
21544
  echo $ECHO_N "(cached) $ECHO_C" >&6
8883
21545
else
8884
21546
  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
8885
21547
  cat >conftest.$ac_ext <<_ACEOF
8886
 
#line 8886 "configure"
8887
 
#include "confdefs.h"
 
21548
/* confdefs.h.  */
 
21549
_ACEOF
 
21550
cat confdefs.h >>conftest.$ac_ext
 
21551
cat >>conftest.$ac_ext <<_ACEOF
 
21552
/* end confdefs.h.  */
8888
21553
#include "confdefs.h"
8889
21554
#include <sys/types.h>
8890
21555
 
 
21556
 
8891
21557
int
8892
21558
main ()
8893
21559
{
8897
21563
}
8898
21564
_ACEOF
8899
21565
rm -f conftest.$ac_objext
8900
 
if { (eval echo "$as_me:8900: \"$ac_compile\"") >&5
8901
 
  (eval $ac_compile) 2>&5
 
21566
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21567
  (eval $ac_compile) 2>conftest.er1
8902
21568
  ac_status=$?
8903
 
  echo "$as_me:8903: \$? = $ac_status" >&5
 
21569
  grep -v '^ *+' conftest.er1 >conftest.err
 
21570
  rm -f conftest.er1
 
21571
  cat conftest.err >&5
 
21572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904
21573
  (exit $ac_status); } &&
8905
 
         { ac_try='test -s conftest.$ac_objext'
8906
 
  { (eval echo "$as_me:8906: \"$ac_try\"") >&5
8907
 
  (eval $ac_try) 2>&5
8908
 
  ac_status=$?
8909
 
  echo "$as_me:8909: \$? = $ac_status" >&5
 
21574
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21576
  (eval $ac_try) 2>&5
 
21577
  ac_status=$?
 
21578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21579
  (exit $ac_status); }; } &&
 
21580
         { ac_try='test -s conftest.$ac_objext'
 
21581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21582
  (eval $ac_try) 2>&5
 
21583
  ac_status=$?
 
21584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910
21585
  (exit $ac_status); }; }; then
8911
21586
  ac_cv_sizeof_short=$ac_size
8912
21587
else
8913
21588
  echo "$as_me: failed program was:" >&5
8914
 
cat conftest.$ac_ext >&5
 
21589
sed 's/^/| /' conftest.$ac_ext >&5
 
21590
 
8915
21591
fi
8916
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21592
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8917
21593
  if test x$ac_cv_sizeof_short != x ; then break; fi
8918
21594
done
8919
21595
 
8920
21596
fi
8921
21597
 
8922
21598
if test x$ac_cv_sizeof_short = x ; then
8923
 
  { { echo "$as_me:8923: error: cannot determine a size for short" >&5
 
21599
  { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
8924
21600
echo "$as_me: error: cannot determine a size for short" >&2;}
8925
21601
   { (exit 1); exit 1; }; }
8926
21602
fi
8927
 
echo "$as_me:8927: result: $ac_cv_sizeof_short" >&5
 
21603
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8928
21604
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8929
21605
 
8930
 
cat >>confdefs.h <<EOF
 
21606
cat >>confdefs.h <<_ACEOF
8931
21607
#define SIZEOF_SHORT $ac_cv_sizeof_short
8932
 
EOF
8933
 
 
8934
 
echo "$as_me:8934: checking size of int" >&5
 
21608
_ACEOF
 
21609
 
 
21610
 
 
21611
echo "$as_me:$LINENO: checking size of int" >&5
8935
21612
echo $ECHO_N "checking size of int... $ECHO_C" >&6
8936
21613
if test "${ac_cv_sizeof_int+set}" = set; then
8937
21614
  echo $ECHO_N "(cached) $ECHO_C" >&6
8938
21615
else
8939
21616
  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
8940
21617
  cat >conftest.$ac_ext <<_ACEOF
8941
 
#line 8941 "configure"
8942
 
#include "confdefs.h"
 
21618
/* confdefs.h.  */
 
21619
_ACEOF
 
21620
cat confdefs.h >>conftest.$ac_ext
 
21621
cat >>conftest.$ac_ext <<_ACEOF
 
21622
/* end confdefs.h.  */
8943
21623
#include "confdefs.h"
8944
21624
#include <sys/types.h>
8945
21625
 
 
21626
 
8946
21627
int
8947
21628
main ()
8948
21629
{
8952
21633
}
8953
21634
_ACEOF
8954
21635
rm -f conftest.$ac_objext
8955
 
if { (eval echo "$as_me:8955: \"$ac_compile\"") >&5
8956
 
  (eval $ac_compile) 2>&5
 
21636
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21637
  (eval $ac_compile) 2>conftest.er1
8957
21638
  ac_status=$?
8958
 
  echo "$as_me:8958: \$? = $ac_status" >&5
 
21639
  grep -v '^ *+' conftest.er1 >conftest.err
 
21640
  rm -f conftest.er1
 
21641
  cat conftest.err >&5
 
21642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959
21643
  (exit $ac_status); } &&
8960
 
         { ac_try='test -s conftest.$ac_objext'
8961
 
  { (eval echo "$as_me:8961: \"$ac_try\"") >&5
8962
 
  (eval $ac_try) 2>&5
8963
 
  ac_status=$?
8964
 
  echo "$as_me:8964: \$? = $ac_status" >&5
 
21644
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21646
  (eval $ac_try) 2>&5
 
21647
  ac_status=$?
 
21648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21649
  (exit $ac_status); }; } &&
 
21650
         { ac_try='test -s conftest.$ac_objext'
 
21651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21652
  (eval $ac_try) 2>&5
 
21653
  ac_status=$?
 
21654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965
21655
  (exit $ac_status); }; }; then
8966
21656
  ac_cv_sizeof_int=$ac_size
8967
21657
else
8968
21658
  echo "$as_me: failed program was:" >&5
8969
 
cat conftest.$ac_ext >&5
 
21659
sed 's/^/| /' conftest.$ac_ext >&5
 
21660
 
8970
21661
fi
8971
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21662
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8972
21663
  if test x$ac_cv_sizeof_int != x ; then break; fi
8973
21664
done
8974
21665
 
8975
21666
fi
8976
21667
 
8977
21668
if test x$ac_cv_sizeof_int = x ; then
8978
 
  { { echo "$as_me:8978: error: cannot determine a size for int" >&5
 
21669
  { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
8979
21670
echo "$as_me: error: cannot determine a size for int" >&2;}
8980
21671
   { (exit 1); exit 1; }; }
8981
21672
fi
8982
 
echo "$as_me:8982: result: $ac_cv_sizeof_int" >&5
 
21673
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8983
21674
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8984
21675
 
8985
 
cat >>confdefs.h <<EOF
 
21676
cat >>confdefs.h <<_ACEOF
8986
21677
#define SIZEOF_INT $ac_cv_sizeof_int
8987
 
EOF
8988
 
 
8989
 
echo "$as_me:8989: checking size of long" >&5
 
21678
_ACEOF
 
21679
 
 
21680
 
 
21681
echo "$as_me:$LINENO: checking size of long" >&5
8990
21682
echo $ECHO_N "checking size of long... $ECHO_C" >&6
8991
21683
if test "${ac_cv_sizeof_long+set}" = set; then
8992
21684
  echo $ECHO_N "(cached) $ECHO_C" >&6
8993
21685
else
8994
21686
  for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
8995
21687
  cat >conftest.$ac_ext <<_ACEOF
8996
 
#line 8996 "configure"
8997
 
#include "confdefs.h"
 
21688
/* confdefs.h.  */
 
21689
_ACEOF
 
21690
cat confdefs.h >>conftest.$ac_ext
 
21691
cat >>conftest.$ac_ext <<_ACEOF
 
21692
/* end confdefs.h.  */
8998
21693
#include "confdefs.h"
8999
21694
#include <sys/types.h>
9000
21695
 
 
21696
 
9001
21697
int
9002
21698
main ()
9003
21699
{
9007
21703
}
9008
21704
_ACEOF
9009
21705
rm -f conftest.$ac_objext
9010
 
if { (eval echo "$as_me:9010: \"$ac_compile\"") >&5
9011
 
  (eval $ac_compile) 2>&5
 
21706
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21707
  (eval $ac_compile) 2>conftest.er1
9012
21708
  ac_status=$?
9013
 
  echo "$as_me:9013: \$? = $ac_status" >&5
 
21709
  grep -v '^ *+' conftest.er1 >conftest.err
 
21710
  rm -f conftest.er1
 
21711
  cat conftest.err >&5
 
21712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014
21713
  (exit $ac_status); } &&
9015
 
         { ac_try='test -s conftest.$ac_objext'
9016
 
  { (eval echo "$as_me:9016: \"$ac_try\"") >&5
9017
 
  (eval $ac_try) 2>&5
9018
 
  ac_status=$?
9019
 
  echo "$as_me:9019: \$? = $ac_status" >&5
 
21714
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21716
  (eval $ac_try) 2>&5
 
21717
  ac_status=$?
 
21718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21719
  (exit $ac_status); }; } &&
 
21720
         { ac_try='test -s conftest.$ac_objext'
 
21721
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21722
  (eval $ac_try) 2>&5
 
21723
  ac_status=$?
 
21724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020
21725
  (exit $ac_status); }; }; then
9021
21726
  ac_cv_sizeof_long=$ac_size
9022
21727
else
9023
21728
  echo "$as_me: failed program was:" >&5
9024
 
cat conftest.$ac_ext >&5
 
21729
sed 's/^/| /' conftest.$ac_ext >&5
 
21730
 
9025
21731
fi
9026
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21732
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9027
21733
  if test x$ac_cv_sizeof_long != x ; then break; fi
9028
21734
done
9029
21735
 
9030
21736
fi
9031
21737
 
9032
21738
if test x$ac_cv_sizeof_long = x ; then
9033
 
  { { echo "$as_me:9033: error: cannot determine a size for long" >&5
 
21739
  { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
9034
21740
echo "$as_me: error: cannot determine a size for long" >&2;}
9035
21741
   { (exit 1); exit 1; }; }
9036
21742
fi
9037
 
echo "$as_me:9037: result: $ac_cv_sizeof_long" >&5
 
21743
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9038
21744
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9039
21745
 
9040
 
cat >>confdefs.h <<EOF
 
21746
cat >>confdefs.h <<_ACEOF
9041
21747
#define SIZEOF_LONG $ac_cv_sizeof_long
9042
 
EOF
 
21748
_ACEOF
 
21749
 
9043
21750
 
9044
21751
# the default is _disabled_!! anyway, result is prefixed in zzip/_config.h!!
9045
21752
# Check whether --enable-largefile or --disable-largefile was given.
9049
21756
fi;
9050
21757
if test "$enable_largefile" != no; then
9051
21758
 
9052
 
  echo "$as_me:9052: checking for special C compiler options needed for large files" >&5
 
21759
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9053
21760
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9054
21761
if test "${ac_cv_sys_largefile_CC+set}" = set; then
9055
21762
  echo $ECHO_N "(cached) $ECHO_C" >&6
9060
21767
       while :; do
9061
21768
         # IRIX 6.2 and later do not support large files by default,
9062
21769
         # so use the C compiler's -n32 option if that helps.
9063
 
         cat >conftest.$ac_ext <<_ACEOF
9064
 
#line 9064 "configure"
9065
 
#include "confdefs.h"
 
21770
         cat >conftest.$ac_ext <<_ACEOF
 
21771
/* confdefs.h.  */
 
21772
_ACEOF
 
21773
cat confdefs.h >>conftest.$ac_ext
 
21774
cat >>conftest.$ac_ext <<_ACEOF
 
21775
/* end confdefs.h.  */
9066
21776
#include <sys/types.h>
9067
21777
 /* Check that off_t can represent 2**63 - 1 correctly.
9068
21778
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9081
21791
}
9082
21792
_ACEOF
9083
21793
         rm -f conftest.$ac_objext
9084
 
if { (eval echo "$as_me:9084: \"$ac_compile\"") >&5
9085
 
  (eval $ac_compile) 2>&5
 
21794
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21795
  (eval $ac_compile) 2>conftest.er1
9086
21796
  ac_status=$?
9087
 
  echo "$as_me:9087: \$? = $ac_status" >&5
 
21797
  grep -v '^ *+' conftest.er1 >conftest.err
 
21798
  rm -f conftest.er1
 
21799
  cat conftest.err >&5
 
21800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088
21801
  (exit $ac_status); } &&
9089
 
         { ac_try='test -s conftest.$ac_objext'
9090
 
  { (eval echo "$as_me:9090: \"$ac_try\"") >&5
9091
 
  (eval $ac_try) 2>&5
9092
 
  ac_status=$?
9093
 
  echo "$as_me:9093: \$? = $ac_status" >&5
 
21802
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21804
  (eval $ac_try) 2>&5
 
21805
  ac_status=$?
 
21806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21807
  (exit $ac_status); }; } &&
 
21808
         { ac_try='test -s conftest.$ac_objext'
 
21809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21810
  (eval $ac_try) 2>&5
 
21811
  ac_status=$?
 
21812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094
21813
  (exit $ac_status); }; }; then
9095
21814
  break
9096
21815
else
9097
21816
  echo "$as_me: failed program was:" >&5
9098
 
cat conftest.$ac_ext >&5
 
21817
sed 's/^/| /' conftest.$ac_ext >&5
 
21818
 
9099
21819
fi
9100
 
rm -f conftest.$ac_objext
 
21820
rm -f conftest.err conftest.$ac_objext
9101
21821
         CC="$CC -n32"
9102
21822
         rm -f conftest.$ac_objext
9103
 
if { (eval echo "$as_me:9103: \"$ac_compile\"") >&5
9104
 
  (eval $ac_compile) 2>&5
 
21823
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21824
  (eval $ac_compile) 2>conftest.er1
9105
21825
  ac_status=$?
9106
 
  echo "$as_me:9106: \$? = $ac_status" >&5
 
21826
  grep -v '^ *+' conftest.er1 >conftest.err
 
21827
  rm -f conftest.er1
 
21828
  cat conftest.err >&5
 
21829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107
21830
  (exit $ac_status); } &&
9108
 
         { ac_try='test -s conftest.$ac_objext'
9109
 
  { (eval echo "$as_me:9109: \"$ac_try\"") >&5
9110
 
  (eval $ac_try) 2>&5
9111
 
  ac_status=$?
9112
 
  echo "$as_me:9112: \$? = $ac_status" >&5
 
21831
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21833
  (eval $ac_try) 2>&5
 
21834
  ac_status=$?
 
21835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21836
  (exit $ac_status); }; } &&
 
21837
         { ac_try='test -s conftest.$ac_objext'
 
21838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21839
  (eval $ac_try) 2>&5
 
21840
  ac_status=$?
 
21841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113
21842
  (exit $ac_status); }; }; then
9114
21843
  ac_cv_sys_largefile_CC=' -n32'; break
9115
21844
else
9116
21845
  echo "$as_me: failed program was:" >&5
9117
 
cat conftest.$ac_ext >&5
 
21846
sed 's/^/| /' conftest.$ac_ext >&5
 
21847
 
9118
21848
fi
9119
 
rm -f conftest.$ac_objext
9120
 
         break
 
21849
rm -f conftest.err conftest.$ac_objext
 
21850
         break
9121
21851
       done
9122
21852
       CC=$ac_save_CC
9123
21853
       rm -f conftest.$ac_ext
9124
21854
    fi
9125
21855
fi
9126
 
echo "$as_me:9126: result: $ac_cv_sys_largefile_CC" >&5
 
21856
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9127
21857
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9128
21858
  if test "$ac_cv_sys_largefile_CC" != no; then
9129
21859
    CC=$CC$ac_cv_sys_largefile_CC
9130
21860
  fi
9131
21861
 
9132
 
  echo "$as_me:9132: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
21862
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9133
21863
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9134
21864
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9135
21865
  echo $ECHO_N "(cached) $ECHO_C" >&6
9137
21867
  while :; do
9138
21868
  ac_cv_sys_file_offset_bits=no
9139
21869
  cat >conftest.$ac_ext <<_ACEOF
9140
 
#line 9140 "configure"
9141
 
#include "confdefs.h"
 
21870
/* confdefs.h.  */
 
21871
_ACEOF
 
21872
cat confdefs.h >>conftest.$ac_ext
 
21873
cat >>conftest.$ac_ext <<_ACEOF
 
21874
/* end confdefs.h.  */
9142
21875
#include <sys/types.h>
9143
21876
 /* Check that off_t can represent 2**63 - 1 correctly.
9144
21877
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9157
21890
}
9158
21891
_ACEOF
9159
21892
rm -f conftest.$ac_objext
9160
 
if { (eval echo "$as_me:9160: \"$ac_compile\"") >&5
9161
 
  (eval $ac_compile) 2>&5
 
21893
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21894
  (eval $ac_compile) 2>conftest.er1
9162
21895
  ac_status=$?
9163
 
  echo "$as_me:9163: \$? = $ac_status" >&5
 
21896
  grep -v '^ *+' conftest.er1 >conftest.err
 
21897
  rm -f conftest.er1
 
21898
  cat conftest.err >&5
 
21899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164
21900
  (exit $ac_status); } &&
9165
 
         { ac_try='test -s conftest.$ac_objext'
9166
 
  { (eval echo "$as_me:9166: \"$ac_try\"") >&5
9167
 
  (eval $ac_try) 2>&5
9168
 
  ac_status=$?
9169
 
  echo "$as_me:9169: \$? = $ac_status" >&5
 
21901
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21903
  (eval $ac_try) 2>&5
 
21904
  ac_status=$?
 
21905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21906
  (exit $ac_status); }; } &&
 
21907
         { ac_try='test -s conftest.$ac_objext'
 
21908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21909
  (eval $ac_try) 2>&5
 
21910
  ac_status=$?
 
21911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170
21912
  (exit $ac_status); }; }; then
9171
21913
  break
9172
21914
else
9173
21915
  echo "$as_me: failed program was:" >&5
9174
 
cat conftest.$ac_ext >&5
 
21916
sed 's/^/| /' conftest.$ac_ext >&5
 
21917
 
9175
21918
fi
9176
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21919
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9177
21920
  cat >conftest.$ac_ext <<_ACEOF
9178
 
#line 9178 "configure"
9179
 
#include "confdefs.h"
 
21921
/* confdefs.h.  */
 
21922
_ACEOF
 
21923
cat confdefs.h >>conftest.$ac_ext
 
21924
cat >>conftest.$ac_ext <<_ACEOF
 
21925
/* end confdefs.h.  */
9180
21926
#define _FILE_OFFSET_BITS 64
9181
21927
#include <sys/types.h>
9182
21928
 /* Check that off_t can represent 2**63 - 1 correctly.
9196
21942
}
9197
21943
_ACEOF
9198
21944
rm -f conftest.$ac_objext
9199
 
if { (eval echo "$as_me:9199: \"$ac_compile\"") >&5
9200
 
  (eval $ac_compile) 2>&5
 
21945
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21946
  (eval $ac_compile) 2>conftest.er1
9201
21947
  ac_status=$?
9202
 
  echo "$as_me:9202: \$? = $ac_status" >&5
 
21948
  grep -v '^ *+' conftest.er1 >conftest.err
 
21949
  rm -f conftest.er1
 
21950
  cat conftest.err >&5
 
21951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203
21952
  (exit $ac_status); } &&
9204
 
         { ac_try='test -s conftest.$ac_objext'
9205
 
  { (eval echo "$as_me:9205: \"$ac_try\"") >&5
9206
 
  (eval $ac_try) 2>&5
9207
 
  ac_status=$?
9208
 
  echo "$as_me:9208: \$? = $ac_status" >&5
 
21953
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21955
  (eval $ac_try) 2>&5
 
21956
  ac_status=$?
 
21957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21958
  (exit $ac_status); }; } &&
 
21959
         { ac_try='test -s conftest.$ac_objext'
 
21960
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21961
  (eval $ac_try) 2>&5
 
21962
  ac_status=$?
 
21963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209
21964
  (exit $ac_status); }; }; then
9210
21965
  ac_cv_sys_file_offset_bits=64; break
9211
21966
else
9212
21967
  echo "$as_me: failed program was:" >&5
9213
 
cat conftest.$ac_ext >&5
 
21968
sed 's/^/| /' conftest.$ac_ext >&5
 
21969
 
9214
21970
fi
9215
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21971
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9216
21972
  break
9217
21973
done
9218
21974
fi
9219
 
echo "$as_me:9219: result: $ac_cv_sys_file_offset_bits" >&5
 
21975
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9220
21976
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9221
21977
if test "$ac_cv_sys_file_offset_bits" != no; then
9222
21978
 
9223
 
cat >>confdefs.h <<EOF
 
21979
cat >>confdefs.h <<_ACEOF
9224
21980
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9225
 
EOF
 
21981
_ACEOF
9226
21982
 
9227
21983
fi
9228
21984
rm -f conftest*
9229
 
  echo "$as_me:9229: checking for _LARGE_FILES value needed for large files" >&5
 
21985
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9230
21986
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9231
21987
if test "${ac_cv_sys_large_files+set}" = set; then
9232
21988
  echo $ECHO_N "(cached) $ECHO_C" >&6
9234
21990
  while :; do
9235
21991
  ac_cv_sys_large_files=no
9236
21992
  cat >conftest.$ac_ext <<_ACEOF
9237
 
#line 9237 "configure"
9238
 
#include "confdefs.h"
 
21993
/* confdefs.h.  */
 
21994
_ACEOF
 
21995
cat confdefs.h >>conftest.$ac_ext
 
21996
cat >>conftest.$ac_ext <<_ACEOF
 
21997
/* end confdefs.h.  */
9239
21998
#include <sys/types.h>
9240
21999
 /* Check that off_t can represent 2**63 - 1 correctly.
9241
22000
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
9254
22013
}
9255
22014
_ACEOF
9256
22015
rm -f conftest.$ac_objext
9257
 
if { (eval echo "$as_me:9257: \"$ac_compile\"") >&5
9258
 
  (eval $ac_compile) 2>&5
 
22016
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22017
  (eval $ac_compile) 2>conftest.er1
9259
22018
  ac_status=$?
9260
 
  echo "$as_me:9260: \$? = $ac_status" >&5
 
22019
  grep -v '^ *+' conftest.er1 >conftest.err
 
22020
  rm -f conftest.er1
 
22021
  cat conftest.err >&5
 
22022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261
22023
  (exit $ac_status); } &&
9262
 
         { ac_try='test -s conftest.$ac_objext'
9263
 
  { (eval echo "$as_me:9263: \"$ac_try\"") >&5
9264
 
  (eval $ac_try) 2>&5
9265
 
  ac_status=$?
9266
 
  echo "$as_me:9266: \$? = $ac_status" >&5
 
22024
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22026
  (eval $ac_try) 2>&5
 
22027
  ac_status=$?
 
22028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22029
  (exit $ac_status); }; } &&
 
22030
         { ac_try='test -s conftest.$ac_objext'
 
22031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22032
  (eval $ac_try) 2>&5
 
22033
  ac_status=$?
 
22034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267
22035
  (exit $ac_status); }; }; then
9268
22036
  break
9269
22037
else
9270
22038
  echo "$as_me: failed program was:" >&5
9271
 
cat conftest.$ac_ext >&5
 
22039
sed 's/^/| /' conftest.$ac_ext >&5
 
22040
 
9272
22041
fi
9273
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22042
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9274
22043
  cat >conftest.$ac_ext <<_ACEOF
9275
 
#line 9275 "configure"
9276
 
#include "confdefs.h"
 
22044
/* confdefs.h.  */
 
22045
_ACEOF
 
22046
cat confdefs.h >>conftest.$ac_ext
 
22047
cat >>conftest.$ac_ext <<_ACEOF
 
22048
/* end confdefs.h.  */
9277
22049
#define _LARGE_FILES 1
9278
22050
#include <sys/types.h>
9279
22051
 /* Check that off_t can represent 2**63 - 1 correctly.
9293
22065
}
9294
22066
_ACEOF
9295
22067
rm -f conftest.$ac_objext
9296
 
if { (eval echo "$as_me:9296: \"$ac_compile\"") >&5
9297
 
  (eval $ac_compile) 2>&5
 
22068
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22069
  (eval $ac_compile) 2>conftest.er1
9298
22070
  ac_status=$?
9299
 
  echo "$as_me:9299: \$? = $ac_status" >&5
 
22071
  grep -v '^ *+' conftest.er1 >conftest.err
 
22072
  rm -f conftest.er1
 
22073
  cat conftest.err >&5
 
22074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300
22075
  (exit $ac_status); } &&
9301
 
         { ac_try='test -s conftest.$ac_objext'
9302
 
  { (eval echo "$as_me:9302: \"$ac_try\"") >&5
9303
 
  (eval $ac_try) 2>&5
9304
 
  ac_status=$?
9305
 
  echo "$as_me:9305: \$? = $ac_status" >&5
 
22076
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22078
  (eval $ac_try) 2>&5
 
22079
  ac_status=$?
 
22080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22081
  (exit $ac_status); }; } &&
 
22082
         { ac_try='test -s conftest.$ac_objext'
 
22083
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22084
  (eval $ac_try) 2>&5
 
22085
  ac_status=$?
 
22086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306
22087
  (exit $ac_status); }; }; then
9307
22088
  ac_cv_sys_large_files=1; break
9308
22089
else
9309
22090
  echo "$as_me: failed program was:" >&5
9310
 
cat conftest.$ac_ext >&5
 
22091
sed 's/^/| /' conftest.$ac_ext >&5
 
22092
 
9311
22093
fi
9312
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22094
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9313
22095
  break
9314
22096
done
9315
22097
fi
9316
 
echo "$as_me:9316: result: $ac_cv_sys_large_files" >&5
 
22098
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9317
22099
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9318
22100
if test "$ac_cv_sys_large_files" != no; then
9319
22101
 
9320
 
cat >>confdefs.h <<EOF
 
22102
cat >>confdefs.h <<_ACEOF
9321
22103
#define _LARGE_FILES $ac_cv_sys_large_files
9322
 
EOF
 
22104
_ACEOF
9323
22105
 
9324
22106
fi
9325
22107
rm -f conftest*
9326
22108
fi
9327
22109
 
9328
22110
# we know about some internals of ac_sys_largefile here...
9329
 
echo "$as_me:9329: checking whether system differentiates 64bit off_t by defines" >&5
 
22111
echo "$as_me:$LINENO: checking whether system differentiates 64bit off_t by defines" >&5
9330
22112
echo $ECHO_N "checking whether system differentiates 64bit off_t by defines... $ECHO_C" >&6
9331
22113
ac_cv_sys_largefile_sensitive="no"
9332
22114
if test ".$ac_cv_sys_file_offset_bits$ac_cv_sys_large_files" != ".nono"
9333
22115
then ac_cv_sys_largefile_sensitive="yes"
9334
22116
 
9335
 
cat >>confdefs.h <<\EOF
 
22117
cat >>confdefs.h <<\_ACEOF
9336
22118
#define LARGEFILE_SENSITIVE 1
9337
 
EOF
 
22119
_ACEOF
9338
22120
 
9339
22121
fi
9340
 
echo "$as_me:9340: result: $ac_cv_sys_largefile_sensitive" >&5
 
22122
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_sensitive" >&5
9341
22123
echo "${ECHO_T}$ac_cv_sys_largefile_sensitive" >&6
9342
22124
 
9343
22125
test ".$LARGEFILE_CFLAGS" = "." && LARGEFILE_CFLAGS=""
9350
22132
  with_largefile="no"
9351
22133
fi;
9352
22134
if test ".$ac_cv_sys_largefile_sensitive" = ".no" ; then
9353
 
  echo "$as_me:9353: result: compiles library with the only off_t seen" >&5
 
22135
  echo "$as_me:$LINENO: result: compiles library with the only off_t seen" >&5
9354
22136
echo "${ECHO_T}compiles library with the only off_t seen" >&6
9355
22137
elif test ".$with_largefile" != ".no" ; then
9356
 
  echo "$as_me:9356: result: compiles library as 64bit off_t variant - and renaming some function names" >&5
 
22138
  echo "$as_me:$LINENO: result: compiles library as 64bit off_t variant - and renaming some function names" >&5
9357
22139
echo "${ECHO_T}compiles library as 64bit off_t variant - and renaming some function names" >&6
9358
22140
  LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGEFILE_SOURCE"
9359
 
  echo "$as_me:9359: result: ..adding CFLAGS $LARGEFILE_CFLAGS" >&5
 
22141
  echo "$as_me:$LINENO: result: ..adding CFLAGS $LARGEFILE_CFLAGS" >&5
9360
22142
echo "${ECHO_T}..adding CFLAGS $LARGEFILE_CFLAGS" >&6
9361
22143
  CFLAGS="$CFLAGS $LARGEFILE_CFLAGS"
9362
 
  echo "$as_me:9362: result: ..adding 64 into RELEASE_INFO for the libraries" >&5
 
22144
  echo "$as_me:$LINENO: result: ..adding 64 into RELEASE_INFO for the libraries" >&5
9363
22145
echo "${ECHO_T}..adding 64 into RELEASE_INFO for the libraries" >&6
9364
22146
  RELEASE_INFO="$RELEASE_INFO-64"
9365
22147
else
9366
 
  echo "$as_me:9366: result: compiles library as 32bit off_t variant - largefile is not the default here" >&5
 
22148
  echo "$as_me:$LINENO: result: compiles library as 32bit off_t variant - largefile is not the default here" >&5
9367
22149
echo "${ECHO_T}compiles library as 32bit off_t variant - largefile is not the default here" >&6
9368
22150
fi
9369
22151
 
9370
 
echo "$as_me:9370: checking for zlib being found" >&5
 
22152
echo "$as_me:$LINENO: checking for zlib being found" >&5
9371
22153
echo $ECHO_N "checking for zlib being found... $ECHO_C" >&6
9372
22154
if test "_$ac_cv_header_zlib_h" != "_yes" ; then
9373
 
  echo "$as_me:9373: result: ...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&5
 
22155
  echo "$as_me:$LINENO: result: ...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&5
9374
22156
echo "${ECHO_T}...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&6
9375
 
         echo "$as_me:9375: result: ...note: and when linkage fails you might also need to set some LDFLAGS" >&5
 
22157
         echo "$as_me:$LINENO: result: ...note: and when linkage fails you might also need to set some LDFLAGS" >&5
9376
22158
echo "${ECHO_T}...note: and when linkage fails you might also need to set some LDFLAGS" >&6
9377
22159
  case "$prefix" in
9378
22160
    NONE|/usr)
9379
 
            echo "$as_me:9379: result: ...note: both can be set by specifying the install prefix of the zlib library" >&5
 
22161
            echo "$as_me:$LINENO: result: ...note: both can be set by specifying the install prefix of the zlib library" >&5
9380
22162
echo "${ECHO_T}...note: both can be set by specifying the install prefix of the zlib library" >&6
9381
 
            echo "$as_me:9381: result: ...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&5
 
22163
            echo "$as_me:$LINENO: result: ...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&5
9382
22164
echo "${ECHO_T}...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&6
9383
22165
    ;;
9384
22166
    *) if test -d $prefix/include ; then
9385
 
         echo "$as_me:9385: result: ...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&5
 
22167
         echo "$as_me:$LINENO: result: ...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&5
9386
22168
echo "${ECHO_T}...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&6
9387
 
         echo "$as_me:9387: result: ...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&5
 
22169
         echo "$as_me:$LINENO: result: ...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&5
9388
22170
echo "${ECHO_T}...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&6
9389
 
         echo "$as_me:9389: result: ...note: --with-zlib to configure call" >&5
 
22171
         echo "$as_me:$LINENO: result: ...note: --with-zlib to configure call" >&5
9390
22172
echo "${ECHO_T}...note: --with-zlib to configure call" >&6
9391
22173
       fi
9392
22174
     ;;
9393
22175
  esac
9394
 
  { { echo "$as_me:9394: error: zlib.h not found: \"zlib\" is required to build \"$PACKAGE\"" >&5
 
22176
  { { echo "$as_me:$LINENO: error: zlib.h not found: \"zlib\" is required to build \"$PACKAGE\"" >&5
9395
22177
echo "$as_me: error: zlib.h not found: \"zlib\" is required to build \"$PACKAGE\"" >&2;}
9396
22178
   { (exit 1); exit 1; }; }
9397
22179
  exit 1
9404
22186
| grep zlib_VeRsIoN | sed -e 's,.*= *.,,' -e 's,. *.dEtEcT.*,,'`
9405
22187
rm conftest.c
9406
22188
 
9407
 
echo "$as_me:9407: result: yes - $ZLIB_VERSION" >&5
 
22189
echo "$as_me:$LINENO: result: yes - $ZLIB_VERSION" >&5
9408
22190
echo "${ECHO_T}yes - $ZLIB_VERSION" >&6
9409
22191
# ----------------------------------------------------------------
9410
 
echo "$as_me:9410: checking docdir default" >&5
 
22192
echo "$as_me:$LINENO: checking docdir default" >&5
9411
22193
echo $ECHO_N "checking docdir default... $ECHO_C" >&6
9412
22194
 
9413
22195
# Check whether --with-docdir or --without-docdir was given.
9423
22205
 yes) docdir='${prefix}/doc' ;;
9424
22206
 no)  docdir='${datadir}/doc' ;;
9425
22207
 /*|\\*|a-zA-Z:*) docdir="$with_docdir"  ;;
9426
 
 *) echo "$as_me:9426: result: oops" >&5
 
22208
 *) echo "$as_me:$LINENO: result: oops" >&5
9427
22209
echo "${ECHO_T}oops" >&6
9428
 
    { { echo "$as_me:9428: error: bad value ${withval} for --with-docdir" >&5
 
22210
    { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-docdir" >&5
9429
22211
echo "$as_me: error: bad value ${withval} for --with-docdir" >&2;}
9430
22212
   { (exit 1); exit 1; }; }
9431
22213
 ;;
9432
22214
esac
9433
22215
 
9434
 
echo "$as_me:9434: result: $docdir" >&5
 
22216
echo "$as_me:$LINENO: result: $docdir" >&5
9435
22217
echo "${ECHO_T}$docdir" >&6
9436
22218
# ----------------------------------------------------------------
9437
 
echo "$as_me:9437: checking whether io-wrap needs to wrap system calls" >&5
 
22219
echo "$as_me:$LINENO: checking whether io-wrap needs to wrap system calls" >&5
9438
22220
echo $ECHO_N "checking whether io-wrap needs to wrap system calls... $ECHO_C" >&6
9439
22221
 
9440
22222
# Check whether --with-wrapwrap or --without-wrapwrap was given.
9447
22229
case "$with_wrapwrap" in
9448
22230
  yes|no) WRAPWRAP="$with_wrapwrap"  ;;
9449
22231
  auto) WRAPWRAP="no" ;;
9450
 
  *) echo "$as_me:9450: result: oops" >&5
 
22232
  *) echo "$as_me:$LINENO: result: oops" >&5
9451
22233
echo "${ECHO_T}oops" >&6
9452
 
     { { echo "$as_me:9452: error: bad value $with_wrapwrap for --with-wrapwrap" >&5
 
22234
     { { echo "$as_me:$LINENO: error: bad value $with_wrapwrap for --with-wrapwrap" >&5
9453
22235
echo "$as_me: error: bad value $with_wrapwrap for --with-wrapwrap" >&2;}
9454
22236
   { (exit 1); exit 1; }; } ;;
9455
22237
esac
9456
22238
if test "$WRAPWRAP" = "yes" ; then
9457
22239
 
9458
 
cat >>confdefs.h <<\EOF
 
22240
cat >>confdefs.h <<\_ACEOF
9459
22241
#define WRAPWRAP 1
9460
 
EOF
 
22242
_ACEOF
9461
22243
 
9462
22244
fi
9463
 
echo "$as_me:9463: result: $WRAPWRAP" >&5
 
22245
echo "$as_me:$LINENO: result: $WRAPWRAP" >&5
9464
22246
echo "${ECHO_T}$WRAPWRAP" >&6
9465
22247
# ----------------------------------------------------------------
9466
 
echo "$as_me:9466: checking whether using debugging messages in libraries" >&5
 
22248
echo "$as_me:$LINENO: checking whether using debugging messages in libraries" >&5
9467
22249
echo $ECHO_N "checking whether using debugging messages in libraries... $ECHO_C" >&6
9468
22250
 
9469
22251
# Check whether --with-debug or --without-debug was given.
9471
22253
  withval="$with_debug"
9472
22254
  case "${withval}" in
9473
22255
                yes|no) with_debug="$withval" ;;
9474
 
                *) echo "$as_me:9474: result: oops" >&5
 
22256
                *) echo "$as_me:$LINENO: result: oops" >&5
9475
22257
echo "${ECHO_T}oops" >&6
9476
 
                   { { echo "$as_me:9476: error: bad value ${withval} for --with-debug" >&5
 
22258
                   { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-debug" >&5
9477
22259
echo "$as_me: error: bad value ${withval} for --with-debug" >&2;}
9478
22260
   { (exit 1); exit 1; }; } ;;
9479
22261
       esac
9483
22265
test "$with_debug" != "yes" && with_debug="no" # yes or no
9484
22266
test "$with_debug" = "yes" && export CFLAGS="$CFLAGS -DDEBUG"
9485
22267
result="$with_debug" ; test "$result" = "yes" && result="yes, added -DDEBUG"
9486
 
echo "$as_me:9486: result: $result" >&5
 
22268
echo "$as_me:$LINENO: result: $result" >&5
9487
22269
echo "${ECHO_T}$result" >&6
9488
22270
if test "$with_debug" = "yes" ; then if test -n "$RELEASE_INFO" ; then
9489
22271
   RELEASE_INFO="$RELEASE_INFO-dbg"
9490
 
   echo "$as_me:9490: result: modified release" >&5
 
22272
   echo "$as_me:$LINENO: result: modified release" >&5
9491
22273
echo "${ECHO_T}modified release" >&6
9492
22274
fi fi
9493
22275
# ----------------------------------------------------------------
9494
 
echo "$as_me:9494: checking whether thread stack is too small for bufsiz buffers" >&5
 
22276
echo "$as_me:$LINENO: checking whether thread stack is too small for bufsiz buffers" >&5
9495
22277
echo $ECHO_N "checking whether thread stack is too small for bufsiz buffers... $ECHO_C" >&6
9496
22278
 # many embedded platforms, superthreaded systems and kernel usage
9497
22279
 # will severely limit the stackspace for its threads. Use _LOWSTK
9502
22284
  withval="$with_lowstk"
9503
22285
  case "${withval}" in
9504
22286
                yes|no|auto) with_lowstk="$withval" ;;
9505
 
                *) { { echo "$as_me:9505: error: bad value ${withval} for --with-lowstk" >&5
 
22287
                *) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-lowstk" >&5
9506
22288
echo "$as_me: error: bad value ${withval} for --with-lowstk" >&2;}
9507
22289
   { (exit 1); exit 1; }; } ;;
9508
22290
       esac
9517
22299
test "$with_lowstk" != "yes" && with_lowstk="no" # yes or no
9518
22300
test "$with_lowstk" = "yes" && CFLAGS="$CFLAGS -D_LOWSTK"
9519
22301
result="$with_lowstk" ; test "$result" = "yes" && result="yes, added -D_LOWSTK"
9520
 
echo "$as_me:9520: result: $with_lowstk" >&5
 
22302
echo "$as_me:$LINENO: result: $with_lowstk" >&5
9521
22303
echo "${ECHO_T}$with_lowstk" >&6
9522
22304
# ---------------------------------------------------------------
9523
 
echo "$as_me:9523: checking whether can use mmap for file scanning" >&5
 
22305
echo "$as_me:$LINENO: checking whether can use mmap for file scanning" >&5
9524
22306
echo $ECHO_N "checking whether can use mmap for file scanning... $ECHO_C" >&6
9525
22307
 # system with mmap are probably better performing an searching
9526
22308
 # and parsing - atleast memory consumption is far better
9529
22311
  enableval="$enable_mmap"
9530
22312
  case "${enableval}" in
9531
22313
                yes|no|auto) enable_mmap="${enableval}" ;;
9532
 
                *) echo "$as_me:9532: result: oops" >&5
 
22314
                *) echo "$as_me:$LINENO: result: oops" >&5
9533
22315
echo "${ECHO_T}oops" >&6
9534
 
                   { { echo "$as_me:9534: error: bad value ${enableval} for --disable-mmap" >&5
 
22316
                   { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-mmap" >&5
9535
22317
echo "$as_me: error: bad value ${enableval} for --disable-mmap" >&2;}
9536
22318
   { (exit 1); exit 1; }; } ;;
9537
22319
      esac
9545
22327
fi
9546
22328
case "$enable_mmap" in
9547
22329
   yes|yes,*) CFLAGS="$CFLAGS -D_USE_MMAP"
9548
 
      echo "$as_me:9548: result: $enable_mmap" >&5
 
22330
      echo "$as_me:$LINENO: result: $enable_mmap" >&5
9549
22331
echo "${ECHO_T}$enable_mmap" >&6 ;;
9550
22332
   *) enable_mmap="no"
9551
 
      echo "$as_me:9551: result: no (just a bit slower)" >&5
 
22333
      echo "$as_me:$LINENO: result: no (just a bit slower)" >&5
9552
22334
echo "${ECHO_T}no (just a bit slower)" >&6 ;;
9553
22335
esac
9554
22336
# ---------------------------------------------------------------
9555
 
echo "$as_me:9555: checking whether making SDL parts" >&5
 
22337
echo "$as_me:$LINENO: checking whether making SDL parts" >&5
9556
22338
echo $ECHO_N "checking whether making SDL parts... $ECHO_C" >&6
9557
22339
SDL=""
9558
22340
# Check whether --enable-sdl or --disable-sdl was given.
9563
22345
  enable_sdl="no"
9564
22346
fi;
9565
22347
if test "$enable_sdl" = "no" ; then
9566
 
   echo "$as_me:9566: result: no, disabled" >&5
 
22348
   echo "$as_me:$LINENO: result: no, disabled" >&5
9567
22349
echo "${ECHO_T}no, disabled" >&6
9568
22350
else
9569
22351
   enable_sdl=`sdl-config --version 2>/dev/null`
9570
22352
   case ".$enable_sdl" in
9571
 
     .1.*) echo "$as_me:9571: result: yes, for SDL $enable_sdl" >&5
 
22353
     .1.*) echo "$as_me:$LINENO: result: yes, for SDL $enable_sdl" >&5
9572
22354
echo "${ECHO_T}yes, for SDL $enable_sdl" >&6
9573
22355
           SDL="SDL" ;;
9574
 
     .2.*) echo "$as_me:9574: result: yes, untested $enable_sdl" >&5
 
22356
     .2.*) echo "$as_me:$LINENO: result: yes, untested $enable_sdl" >&5
9575
22357
echo "${ECHO_T}yes, untested $enable_sdl" >&6
9576
22358
           SDL="SDL" ;;
9577
 
     *)    echo "$as_me:9577: result: no, $enable_sdl" >&5
 
22359
     *)    echo "$as_me:$LINENO: result: no, $enable_sdl" >&5
9578
22360
echo "${ECHO_T}no, $enable_sdl" >&6 ;;
9579
22361
   esac
9580
22362
fi
9581
22363
 
9582
22364
# ---------------------------------------------------------------
9583
 
echo "$as_me:9583: checking running extra tests on make check" >&5
 
22365
echo "$as_me:$LINENO: checking running extra tests on make check" >&5
9584
22366
echo $ECHO_N "checking running extra tests on make check... $ECHO_C" >&6
9585
22367
if test "MKZIP" != ":" ; then
9586
 
  echo "$as_me:9586: result: yes" >&5
 
22368
  echo "$as_me:$LINENO: result: yes" >&5
9587
22369
echo "${ECHO_T}yes" >&6
9588
22370
  ZIPTESTS=""
9589
22371
else
9590
 
  echo "$as_me:9590: result: no" >&5
 
22372
  echo "$as_me:$LINENO: result: no" >&5
9591
22373
echo "${ECHO_T}no" >&6
9592
22374
  ZIPTESTS="#"
9593
22375
fi
9594
22376
 
9595
22377
# ---------------------------------------------------------------
9596
 
echo "$as_me:9596: checking link options" >&5
 
22378
echo "$as_me:$LINENO: checking link options" >&5
9597
22379
echo $ECHO_N "checking link options... $ECHO_C" >&6
9598
22380
case "$host_os" in
9599
22381
  mingw*)
9605
22387
    RESOLVES=' # '
9606
22388
  ;;
9607
22389
esac
9608
 
echo "$as_me:9608: result: $ZZIPLIB_LDFLAGS $RESOLVES" >&5
 
22390
echo "$as_me:$LINENO: result: $ZZIPLIB_LDFLAGS $RESOLVES" >&5
9609
22391
echo "${ECHO_T}$ZZIPLIB_LDFLAGS $RESOLVES" >&6
9610
22392
 
 
22393
 
9611
22394
# ---------------------------------------------------------------
9612
 
echo "$as_me:9612: checking auto silent in maintainer mode" >&5
 
22395
echo "$as_me:$LINENO: checking auto silent in maintainer mode" >&5
9613
22396
echo $ECHO_N "checking auto silent in maintainer mode... $ECHO_C" >&6
9614
22397
if test "$USE_MAINTAINER_MODE" = "no" ; then
9615
22398
   test ".$TIMEOUT" = "." && TIMEOUT="9"
9618
22401
   AUTOCONF="sleep $TIMEOUT ; true || autoconf || skipped"
9619
22402
   if test ".$LIBTOOL" != "." ; then
9620
22403
      LIBTOOL="$LIBTOOL --silent"
9621
 
      echo "$as_me:9621: result: libtool-silent, auto-sleep-9" >&5
 
22404
      echo "$as_me:$LINENO: result: libtool-silent, auto-sleep-9" >&5
9622
22405
echo "${ECHO_T}libtool-silent, auto-sleep-9" >&6
9623
22406
   else
9624
 
      echo "$as_me:9624: result: auto-sleep-9" >&5
 
22407
      echo "$as_me:$LINENO: result: auto-sleep-9" >&5
9625
22408
echo "${ECHO_T}auto-sleep-9" >&6
9626
22409
   fi
9627
22410
else
9628
 
      echo "$as_me:9628: result: no" >&5
 
22411
      echo "$as_me:$LINENO: result: no" >&5
9629
22412
echo "${ECHO_T}no" >&6
9630
22413
fi
9631
22414
 
9632
 
echo "$as_me:9632: checking CFLAGS frame-pointer" >&5
 
22415
echo "$as_me:$LINENO: checking CFLAGS frame-pointer" >&5
9633
22416
echo $ECHO_N "checking CFLAGS frame-pointer... $ECHO_C" >&6
9634
22417
# Check whether --enable-frame-pointer or --disable-frame-pointer was given.
9635
22418
if test "${enable_frame_pointer+set}" = set; then
9641
22424
     CFLAGS=`echo   " $CFLAGS " | sed -e 's/ -g / /'`
9642
22425
     if test ".$GCC" = ".yes" ; then
9643
22426
        CFLAGS="$CFLAGS -fomit-frame-pointer"
9644
 
        echo "$as_me:9644: result: $enable_frame_pointer, -fomit-frame-pointer added" >&5
 
22427
        echo "$as_me:$LINENO: result: $enable_frame_pointer, -fomit-frame-pointer added" >&5
9645
22428
echo "${ECHO_T}$enable_frame_pointer, -fomit-frame-pointer added" >&6
9646
22429
     else
9647
 
        echo "$as_me:9647: result: $enable_frame_pointer, -g removed" >&5
 
22430
        echo "$as_me:$LINENO: result: $enable_frame_pointer, -g removed" >&5
9648
22431
echo "${ECHO_T}$enable_frame_pointer, -g removed" >&6
9649
22432
     fi  ;;
9650
 
   *)  echo "$as_me:9650: result: $enable_frame_pointer, kept" >&5
 
22433
   *)  echo "$as_me:$LINENO: result: $enable_frame_pointer, kept" >&5
9651
22434
echo "${ECHO_T}$enable_frame_pointer, kept" >&6 ;;
9652
22435
esac
9653
22436
 
9654
 
echo "$as_me:9654: checking CFLAGS for maximum warnings" >&5
 
22437
echo "$as_me:$LINENO: checking CFLAGS for maximum warnings" >&5
9655
22438
echo $ECHO_N "checking CFLAGS for maximum warnings... $ECHO_C" >&6
9656
22439
if test "${ac_cv_cflags_warn_all+set}" = set; then
9657
22440
  echo $ECHO_N "(cached) $ECHO_C" >&6
9658
22441
else
9659
22442
  ac_cv_cflags_warn_all="no, unknown"
9660
22443
 
 
22444
 
9661
22445
 ac_ext=c
9662
22446
ac_cpp='$CPP $CPPFLAGS'
9663
22447
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9668
22452
for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
9669
22453
do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9670
22454
   cat >conftest.$ac_ext <<_ACEOF
9671
 
#line 9671 "configure"
9672
 
#include "confdefs.h"
 
22455
/* confdefs.h.  */
 
22456
_ACEOF
 
22457
cat confdefs.h >>conftest.$ac_ext
 
22458
cat >>conftest.$ac_ext <<_ACEOF
 
22459
/* end confdefs.h.  */
9673
22460
 
9674
22461
int
9675
22462
main ()
9680
22467
}
9681
22468
_ACEOF
9682
22469
rm -f conftest.$ac_objext
9683
 
if { (eval echo "$as_me:9683: \"$ac_compile\"") >&5
9684
 
  (eval $ac_compile) 2>&5
 
22470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22471
  (eval $ac_compile) 2>conftest.er1
9685
22472
  ac_status=$?
9686
 
  echo "$as_me:9686: \$? = $ac_status" >&5
 
22473
  grep -v '^ *+' conftest.er1 >conftest.err
 
22474
  rm -f conftest.er1
 
22475
  cat conftest.err >&5
 
22476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687
22477
  (exit $ac_status); } &&
9688
 
         { ac_try='test -s conftest.$ac_objext'
9689
 
  { (eval echo "$as_me:9689: \"$ac_try\"") >&5
9690
 
  (eval $ac_try) 2>&5
9691
 
  ac_status=$?
9692
 
  echo "$as_me:9692: \$? = $ac_status" >&5
 
22478
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22480
  (eval $ac_try) 2>&5
 
22481
  ac_status=$?
 
22482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22483
  (exit $ac_status); }; } &&
 
22484
         { ac_try='test -s conftest.$ac_objext'
 
22485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22486
  (eval $ac_try) 2>&5
 
22487
  ac_status=$?
 
22488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693
22489
  (exit $ac_status); }; }; then
9694
22490
  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9695
22491
else
9696
22492
  echo "$as_me: failed program was:" >&5
9697
 
cat conftest.$ac_ext >&5
 
22493
sed 's/^/| /' conftest.$ac_ext >&5
 
22494
 
9698
22495
fi
9699
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22496
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9700
22497
done
9701
22498
 CFLAGS="$ac_save_CFLAGS"
9702
22499
 ac_ext=c
9705
22502
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9706
22503
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9707
22504
 
 
22505
 
9708
22506
fi
9709
 
echo "$as_me:9709: result: $ac_cv_cflags_warn_all" >&5
 
22507
echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all" >&5
9710
22508
echo "${ECHO_T}$ac_cv_cflags_warn_all" >&6
9711
22509
case ".$ac_cv_cflags_warn_all" in
9712
22510
     .ok|.ok,*)  ;;
9714
22512
 ;;
9715
22513
   *)
9716
22514
   if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
9717
 
   then { (echo "$as_me:9717: : CFLAGS does contain \$ac_cv_cflags_warn_all") >&5
 
22515
   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_warn_all") >&5
9718
22516
  (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
9719
22517
  ac_status=$?
9720
 
  echo "$as_me:9720: \$? = $ac_status" >&5
 
22518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721
22519
  (exit $ac_status); }
9722
 
   else { (echo "$as_me:9722: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\"") >&5
 
22520
   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\"") >&5
9723
22521
  (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
9724
22522
  ac_status=$?
9725
 
  echo "$as_me:9725: \$? = $ac_status" >&5
 
22523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726
22524
  (exit $ac_status); }
9727
22525
                      CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
9728
22526
   fi
9729
22527
 ;;
9730
22528
esac
9731
22529
 
9732
 
echo "$as_me:9732: checking CFLAGS making strings readonly" >&5
 
22530
echo "$as_me:$LINENO: checking CFLAGS making strings readonly" >&5
9733
22531
echo $ECHO_N "checking CFLAGS making strings readonly... $ECHO_C" >&6
9734
22532
if test "${ac_cv_cflags_no_writable_strings+set}" = set; then
9735
22533
  echo $ECHO_N "(cached) $ECHO_C" >&6
9736
22534
else
9737
22535
  ac_cv_cflags_no_writable_strings="no, unknown"
9738
22536
 
 
22537
 
9739
22538
 ac_ext=c
9740
22539
ac_cpp='$CPP $CPPFLAGS'
9741
22540
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9751
22550
for ac_arg in "-Wall     % -fno-writable-strings -Wwrite-strings"    "-v -Xc    % -xstrconst"    "+w1 -Aa   % +ESlit"         "-w0 -std1 % -readonly_strings"    "-fullwarn -use_readonly_const %% ok, its the default"    #
9752
22551
do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9753
22552
   cat >conftest.$ac_ext <<_ACEOF
9754
 
#line 9754 "configure"
9755
 
#include "confdefs.h"
 
22553
/* confdefs.h.  */
 
22554
_ACEOF
 
22555
cat confdefs.h >>conftest.$ac_ext
 
22556
cat >>conftest.$ac_ext <<_ACEOF
 
22557
/* end confdefs.h.  */
9756
22558
 
9757
22559
int
9758
22560
main ()
9763
22565
}
9764
22566
_ACEOF
9765
22567
rm -f conftest.$ac_objext
9766
 
if { (eval echo "$as_me:9766: \"$ac_compile\"") >&5
9767
 
  (eval $ac_compile) 2>&5
 
22568
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22569
  (eval $ac_compile) 2>conftest.er1
9768
22570
  ac_status=$?
9769
 
  echo "$as_me:9769: \$? = $ac_status" >&5
 
22571
  grep -v '^ *+' conftest.er1 >conftest.err
 
22572
  rm -f conftest.er1
 
22573
  cat conftest.err >&5
 
22574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770
22575
  (exit $ac_status); } &&
9771
 
         { ac_try='test -s conftest.$ac_objext'
9772
 
  { (eval echo "$as_me:9772: \"$ac_try\"") >&5
9773
 
  (eval $ac_try) 2>&5
9774
 
  ac_status=$?
9775
 
  echo "$as_me:9775: \$? = $ac_status" >&5
 
22576
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22578
  (eval $ac_try) 2>&5
 
22579
  ac_status=$?
 
22580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22581
  (exit $ac_status); }; } &&
 
22582
         { ac_try='test -s conftest.$ac_objext'
 
22583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22584
  (eval $ac_try) 2>&5
 
22585
  ac_status=$?
 
22586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776
22587
  (exit $ac_status); }; }; then
9777
22588
  ac_cv_cflags_no_writable_strings=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9778
22589
else
9779
22590
  echo "$as_me: failed program was:" >&5
9780
 
cat conftest.$ac_ext >&5
 
22591
sed 's/^/| /' conftest.$ac_ext >&5
 
22592
 
9781
22593
fi
9782
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22594
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9783
22595
done
9784
22596
case ".$ac_cv_cflags_no_writable_strings" in
9785
22597
   .|.no|.no,*) ;;
9786
22598
   *) # sanity check - testing strcpy() from string.h
9787
22599
      cp config.log config.tmp
9788
22600
      cat >conftest.$ac_ext <<_ACEOF
9789
 
#line 9789 "configure"
9790
 
#include "confdefs.h"
 
22601
/* confdefs.h.  */
 
22602
_ACEOF
 
22603
cat confdefs.h >>conftest.$ac_ext
 
22604
cat >>conftest.$ac_ext <<_ACEOF
 
22605
/* end confdefs.h.  */
9791
22606
#include <string.h>
9792
22607
int
9793
22608
main ()
9800
22615
}
9801
22616
_ACEOF
9802
22617
rm -f conftest.$ac_objext
9803
 
if { (eval echo "$as_me:9803: \"$ac_compile\"") >&5
9804
 
  (eval $ac_compile) 2>&5
 
22618
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22619
  (eval $ac_compile) 2>conftest.er1
9805
22620
  ac_status=$?
9806
 
  echo "$as_me:9806: \$? = $ac_status" >&5
 
22621
  grep -v '^ *+' conftest.er1 >conftest.err
 
22622
  rm -f conftest.er1
 
22623
  cat conftest.err >&5
 
22624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807
22625
  (exit $ac_status); } &&
9808
 
         { ac_try='test -s conftest.$ac_objext'
9809
 
  { (eval echo "$as_me:9809: \"$ac_try\"") >&5
9810
 
  (eval $ac_try) 2>&5
9811
 
  ac_status=$?
9812
 
  echo "$as_me:9812: \$? = $ac_status" >&5
 
22626
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22628
  (eval $ac_try) 2>&5
 
22629
  ac_status=$?
 
22630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22631
  (exit $ac_status); }; } &&
 
22632
         { ac_try='test -s conftest.$ac_objext'
 
22633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22634
  (eval $ac_try) 2>&5
 
22635
  ac_status=$?
 
22636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813
22637
  (exit $ac_status); }; }; then
9814
22638
        if test `diff config.log config.tmp | grep -i warning | wc -l` != 0
9815
22639
  then ac_cv_cflags_no_writable_strings="no, suppressed, string.h," ; fi
9816
22640
else
9817
22641
  echo "$as_me: failed program was:" >&5
9818
 
cat conftest.$ac_ext >&5
 
22642
sed 's/^/| /' conftest.$ac_ext >&5
 
22643
 
9819
22644
ac_cv_cflags_no_writable_strings="no, suppressed, string.h"
9820
22645
fi
9821
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22646
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9822
22647
      rm config.tmp
9823
22648
   ;;
9824
22649
esac
9829
22654
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9830
22655
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9831
22656
 
 
22657
 
9832
22658
fi
9833
 
echo "$as_me:9833: result: $ac_cv_cflags_no_writable_strings" >&5
 
22659
echo "$as_me:$LINENO: result: $ac_cv_cflags_no_writable_strings" >&5
9834
22660
echo "${ECHO_T}$ac_cv_cflags_no_writable_strings" >&6
9835
22661
case ".$ac_cv_cflags_no_writable_strings" in
9836
22662
     .ok|.ok,*)  ;;
9838
22664
 ;;
9839
22665
   *)
9840
22666
   if echo " $CFLAGS " | grep " $ac_cv_cflags_no_writable_strings " 2>&1 >/dev/null
9841
 
   then { (echo "$as_me:9841: : CFLAGS does contain \$ac_cv_cflags_no_writable_strings") >&5
 
22667
   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_no_writable_strings") >&5
9842
22668
  (: CFLAGS does contain $ac_cv_cflags_no_writable_strings) 2>&5
9843
22669
  ac_status=$?
9844
 
  echo "$as_me:9844: \$? = $ac_status" >&5
 
22670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845
22671
  (exit $ac_status); }
9846
 
   else { (echo "$as_me:9846: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_no_writable_strings\"") >&5
 
22672
   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_no_writable_strings\"") >&5
9847
22673
  (: CFLAGS="$CFLAGS $ac_cv_cflags_no_writable_strings") 2>&5
9848
22674
  ac_status=$?
9849
 
  echo "$as_me:9849: \$? = $ac_status" >&5
 
22675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850
22676
  (exit $ac_status); }
9851
22677
                      CFLAGS="$CFLAGS $ac_cv_cflags_no_writable_strings"
9852
22678
   fi
9853
22679
 ;;
9854
22680
esac
9855
22681
 
9856
 
echo "$as_me:9856: checking CFLAGS for strict prototypes" >&5
 
22682
echo "$as_me:$LINENO: checking CFLAGS for strict prototypes" >&5
9857
22683
echo $ECHO_N "checking CFLAGS for strict prototypes... $ECHO_C" >&6
9858
22684
if test "${ac_cv_cflags_strict_prototypes+set}" = set; then
9859
22685
  echo $ECHO_N "(cached) $ECHO_C" >&6
9860
22686
else
9861
22687
  ac_cv_cflags_strict_prototypes="no, unknown"
9862
22688
 
 
22689
 
9863
22690
 ac_ext=c
9864
22691
ac_cpp='$CPP $CPPFLAGS'
9865
22692
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9870
22697
for ac_arg in "-Wall     % -fstrict-prototypes -Wstrict-prototypes"    "-Wall     % -Wstrict-prototypes"    #
9871
22698
do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9872
22699
   cat >conftest.$ac_ext <<_ACEOF
9873
 
#line 9873 "configure"
9874
 
#include "confdefs.h"
 
22700
/* confdefs.h.  */
 
22701
_ACEOF
 
22702
cat confdefs.h >>conftest.$ac_ext
 
22703
cat >>conftest.$ac_ext <<_ACEOF
 
22704
/* end confdefs.h.  */
9875
22705
 
9876
22706
int
9877
22707
main ()
9882
22712
}
9883
22713
_ACEOF
9884
22714
rm -f conftest.$ac_objext
9885
 
if { (eval echo "$as_me:9885: \"$ac_compile\"") >&5
9886
 
  (eval $ac_compile) 2>&5
 
22715
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22716
  (eval $ac_compile) 2>conftest.er1
9887
22717
  ac_status=$?
9888
 
  echo "$as_me:9888: \$? = $ac_status" >&5
 
22718
  grep -v '^ *+' conftest.er1 >conftest.err
 
22719
  rm -f conftest.er1
 
22720
  cat conftest.err >&5
 
22721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889
22722
  (exit $ac_status); } &&
9890
 
         { ac_try='test -s conftest.$ac_objext'
9891
 
  { (eval echo "$as_me:9891: \"$ac_try\"") >&5
9892
 
  (eval $ac_try) 2>&5
9893
 
  ac_status=$?
9894
 
  echo "$as_me:9894: \$? = $ac_status" >&5
 
22723
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22725
  (eval $ac_try) 2>&5
 
22726
  ac_status=$?
 
22727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22728
  (exit $ac_status); }; } &&
 
22729
         { ac_try='test -s conftest.$ac_objext'
 
22730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22731
  (eval $ac_try) 2>&5
 
22732
  ac_status=$?
 
22733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895
22734
  (exit $ac_status); }; }; then
9896
22735
  ac_cv_cflags_strict_prototypes=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9897
22736
else
9898
22737
  echo "$as_me: failed program was:" >&5
9899
 
cat conftest.$ac_ext >&5
 
22738
sed 's/^/| /' conftest.$ac_ext >&5
 
22739
 
9900
22740
fi
9901
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22741
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9902
22742
done
9903
22743
case ".$ac_cv_cflags_strict_prototypes" in
9904
22744
   .|.no|.no,*) ;;
9905
22745
   *) # sanity check with signal() from sys/signal.h
9906
22746
    cp config.log config.tmp
9907
22747
    cat >conftest.$ac_ext <<_ACEOF
9908
 
#line 9908 "configure"
9909
 
#include "confdefs.h"
 
22748
/* confdefs.h.  */
 
22749
_ACEOF
 
22750
cat confdefs.h >>conftest.$ac_ext
 
22751
cat >>conftest.$ac_ext <<_ACEOF
 
22752
/* end confdefs.h.  */
9910
22753
#include <signal.h>
9911
22754
int
9912
22755
main ()
9919
22762
}
9920
22763
_ACEOF
9921
22764
rm -f conftest.$ac_objext
9922
 
if { (eval echo "$as_me:9922: \"$ac_compile\"") >&5
9923
 
  (eval $ac_compile) 2>&5
 
22765
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22766
  (eval $ac_compile) 2>conftest.er1
9924
22767
  ac_status=$?
9925
 
  echo "$as_me:9925: \$? = $ac_status" >&5
 
22768
  grep -v '^ *+' conftest.er1 >conftest.err
 
22769
  rm -f conftest.er1
 
22770
  cat conftest.err >&5
 
22771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926
22772
  (exit $ac_status); } &&
9927
 
         { ac_try='test -s conftest.$ac_objext'
9928
 
  { (eval echo "$as_me:9928: \"$ac_try\"") >&5
9929
 
  (eval $ac_try) 2>&5
9930
 
  ac_status=$?
9931
 
  echo "$as_me:9931: \$? = $ac_status" >&5
 
22773
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22775
  (eval $ac_try) 2>&5
 
22776
  ac_status=$?
 
22777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22778
  (exit $ac_status); }; } &&
 
22779
         { ac_try='test -s conftest.$ac_objext'
 
22780
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22781
  (eval $ac_try) 2>&5
 
22782
  ac_status=$?
 
22783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932
22784
  (exit $ac_status); }; }; then
9933
22785
      if test `diff config.log config.tmp | grep -i warning | wc -l` != 0
9934
22786
then if test `diff config.log config.tmp | grep -i warning | wc -l` != 1
9935
22787
then ac_cv_cflags_strict_prototypes="no, suppressed, signal.h," ; fi ; fi
9936
22788
else
9937
22789
  echo "$as_me: failed program was:" >&5
9938
 
cat conftest.$ac_ext >&5
 
22790
sed 's/^/| /' conftest.$ac_ext >&5
 
22791
 
9939
22792
ac_cv_cflags_strict_prototypes="no, suppressed, signal.h"
9940
22793
fi
9941
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22794
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9942
22795
    rm config.tmp
9943
22796
  ;;
9944
22797
esac
9949
22802
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9950
22803
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9951
22804
 
 
22805
 
9952
22806
fi
9953
 
echo "$as_me:9953: result: $ac_cv_cflags_strict_prototypes" >&5
 
22807
echo "$as_me:$LINENO: result: $ac_cv_cflags_strict_prototypes" >&5
9954
22808
echo "${ECHO_T}$ac_cv_cflags_strict_prototypes" >&6
9955
22809
case ".$ac_cv_cflags_strict_prototypes" in
9956
22810
     .ok|.ok,*)  ;;
9958
22812
 ;;
9959
22813
   *)
9960
22814
   if echo " $CFLAGS " | grep " $ac_cv_cflags_strict_prototypes " 2>&1 >/dev/null
9961
 
   then { (echo "$as_me:9961: : CFLAGS does contain \$ac_cv_cflags_strict_prototypes") >&5
 
22815
   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_strict_prototypes") >&5
9962
22816
  (: CFLAGS does contain $ac_cv_cflags_strict_prototypes) 2>&5
9963
22817
  ac_status=$?
9964
 
  echo "$as_me:9964: \$? = $ac_status" >&5
 
22818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965
22819
  (exit $ac_status); }
9966
 
   else { (echo "$as_me:9966: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_strict_prototypes\"") >&5
 
22820
   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_strict_prototypes\"") >&5
9967
22821
  (: CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes") 2>&5
9968
22822
  ac_status=$?
9969
 
  echo "$as_me:9969: \$? = $ac_status" >&5
 
22823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970
22824
  (exit $ac_status); }
9971
22825
                      CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes"
9972
22826
   fi
9973
22827
 ;;
9974
22828
esac
9975
22829
 
9976
 
echo "$as_me:9976: checking CFLAGS for gcc -Wpointer-arith" >&5
 
22830
echo "$as_me:$LINENO: checking CFLAGS for gcc -Wpointer-arith" >&5
9977
22831
echo $ECHO_N "checking CFLAGS for gcc -Wpointer-arith... $ECHO_C" >&6
9978
22832
if test "${ac_cv_cflags_gcc_option__Wpointer_arith+set}" = set; then
9979
22833
  echo $ECHO_N "(cached) $ECHO_C" >&6
9980
22834
else
9981
22835
  ac_cv_cflags_gcc_option__Wpointer_arith="no, unknown"
9982
22836
 
 
22837
 
9983
22838
 ac_ext=c
9984
22839
ac_cpp='$CPP $CPPFLAGS'
9985
22840
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9990
22845
for ac_arg in "-pedantic  % -Wpointer-arith"     #
9991
22846
do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9992
22847
   cat >conftest.$ac_ext <<_ACEOF
9993
 
#line 9993 "configure"
9994
 
#include "confdefs.h"
 
22848
/* confdefs.h.  */
 
22849
_ACEOF
 
22850
cat confdefs.h >>conftest.$ac_ext
 
22851
cat >>conftest.$ac_ext <<_ACEOF
 
22852
/* end confdefs.h.  */
9995
22853
 
9996
22854
int
9997
22855
main ()
10002
22860
}
10003
22861
_ACEOF
10004
22862
rm -f conftest.$ac_objext
10005
 
if { (eval echo "$as_me:10005: \"$ac_compile\"") >&5
10006
 
  (eval $ac_compile) 2>&5
 
22863
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22864
  (eval $ac_compile) 2>conftest.er1
10007
22865
  ac_status=$?
10008
 
  echo "$as_me:10008: \$? = $ac_status" >&5
 
22866
  grep -v '^ *+' conftest.er1 >conftest.err
 
22867
  rm -f conftest.er1
 
22868
  cat conftest.err >&5
 
22869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009
22870
  (exit $ac_status); } &&
10010
 
         { ac_try='test -s conftest.$ac_objext'
10011
 
  { (eval echo "$as_me:10011: \"$ac_try\"") >&5
10012
 
  (eval $ac_try) 2>&5
10013
 
  ac_status=$?
10014
 
  echo "$as_me:10014: \$? = $ac_status" >&5
 
22871
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22873
  (eval $ac_try) 2>&5
 
22874
  ac_status=$?
 
22875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22876
  (exit $ac_status); }; } &&
 
22877
         { ac_try='test -s conftest.$ac_objext'
 
22878
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22879
  (eval $ac_try) 2>&5
 
22880
  ac_status=$?
 
22881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015
22882
  (exit $ac_status); }; }; then
10016
22883
  ac_cv_cflags_gcc_option__Wpointer_arith=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
10017
22884
else
10018
22885
  echo "$as_me: failed program was:" >&5
10019
 
cat conftest.$ac_ext >&5
 
22886
sed 's/^/| /' conftest.$ac_ext >&5
 
22887
 
10020
22888
fi
10021
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22889
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10022
22890
done
10023
22891
 CFLAGS="$ac_save_CFLAGS"
10024
22892
 ac_ext=c
10027
22895
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10028
22896
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10029
22897
 
 
22898
 
10030
22899
fi
10031
 
echo "$as_me:10031: result: $ac_cv_cflags_gcc_option__Wpointer_arith" >&5
 
22900
echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wpointer_arith" >&5
10032
22901
echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wpointer_arith" >&6
10033
22902
case ".$ac_cv_cflags_gcc_option__Wpointer_arith" in
10034
22903
     .ok|.ok,*)  ;;
10035
22904
   .|.no|.no,*)  ;;
10036
22905
   *)
10037
22906
   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wpointer_arith " 2>&1 >/dev/null
10038
 
   then { (echo "$as_me:10038: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wpointer_arith") >&5
 
22907
   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wpointer_arith") >&5
10039
22908
  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wpointer_arith) 2>&5
10040
22909
  ac_status=$?
10041
 
  echo "$as_me:10041: \$? = $ac_status" >&5
 
22910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042
22911
  (exit $ac_status); }
10043
 
   else { (echo "$as_me:10043: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wpointer_arith\"") >&5
 
22912
   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wpointer_arith\"") >&5
10044
22913
  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wpointer_arith") 2>&5
10045
22914
  ac_status=$?
10046
 
  echo "$as_me:10046: \$? = $ac_status" >&5
 
22915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047
22916
  (exit $ac_status); }
10048
22917
                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wpointer_arith"
10049
22918
   fi
10050
22919
 ;;
10051
22920
esac
10052
22921
 
10053
 
echo "$as_me:10053: checking CFLAGS for gcc -Wsign-compare" >&5
 
22922
echo "$as_me:$LINENO: checking CFLAGS for gcc -Wsign-compare" >&5
10054
22923
echo $ECHO_N "checking CFLAGS for gcc -Wsign-compare... $ECHO_C" >&6
10055
22924
if test "${ac_cv_cflags_gcc_option__Wsign_compare+set}" = set; then
10056
22925
  echo $ECHO_N "(cached) $ECHO_C" >&6
10057
22926
else
10058
22927
  ac_cv_cflags_gcc_option__Wsign_compare="no, unknown"
10059
22928
 
 
22929
 
10060
22930
 ac_ext=c
10061
22931
ac_cpp='$CPP $CPPFLAGS'
10062
22932
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10067
22937
for ac_arg in "-pedantic  % -Wsign-compare"     #
10068
22938
do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
10069
22939
   cat >conftest.$ac_ext <<_ACEOF
10070
 
#line 10070 "configure"
10071
 
#include "confdefs.h"
 
22940
/* confdefs.h.  */
 
22941
_ACEOF
 
22942
cat confdefs.h >>conftest.$ac_ext
 
22943
cat >>conftest.$ac_ext <<_ACEOF
 
22944
/* end confdefs.h.  */
10072
22945
 
10073
22946
int
10074
22947
main ()
10079
22952
}
10080
22953
_ACEOF
10081
22954
rm -f conftest.$ac_objext
10082
 
if { (eval echo "$as_me:10082: \"$ac_compile\"") >&5
10083
 
  (eval $ac_compile) 2>&5
 
22955
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22956
  (eval $ac_compile) 2>conftest.er1
10084
22957
  ac_status=$?
10085
 
  echo "$as_me:10085: \$? = $ac_status" >&5
 
22958
  grep -v '^ *+' conftest.er1 >conftest.err
 
22959
  rm -f conftest.er1
 
22960
  cat conftest.err >&5
 
22961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086
22962
  (exit $ac_status); } &&
10087
 
         { ac_try='test -s conftest.$ac_objext'
10088
 
  { (eval echo "$as_me:10088: \"$ac_try\"") >&5
10089
 
  (eval $ac_try) 2>&5
10090
 
  ac_status=$?
10091
 
  echo "$as_me:10091: \$? = $ac_status" >&5
 
22963
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22965
  (eval $ac_try) 2>&5
 
22966
  ac_status=$?
 
22967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22968
  (exit $ac_status); }; } &&
 
22969
         { ac_try='test -s conftest.$ac_objext'
 
22970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22971
  (eval $ac_try) 2>&5
 
22972
  ac_status=$?
 
22973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092
22974
  (exit $ac_status); }; }; then
10093
22975
  ac_cv_cflags_gcc_option__Wsign_compare=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
10094
22976
else
10095
22977
  echo "$as_me: failed program was:" >&5
10096
 
cat conftest.$ac_ext >&5
 
22978
sed 's/^/| /' conftest.$ac_ext >&5
 
22979
 
10097
22980
fi
10098
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22981
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10099
22982
done
10100
22983
 CFLAGS="$ac_save_CFLAGS"
10101
22984
 ac_ext=c
10104
22987
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10105
22988
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10106
22989
 
 
22990
 
10107
22991
fi
10108
 
echo "$as_me:10108: result: $ac_cv_cflags_gcc_option__Wsign_compare" >&5
 
22992
echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wsign_compare" >&5
10109
22993
echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wsign_compare" >&6
10110
22994
case ".$ac_cv_cflags_gcc_option__Wsign_compare" in
10111
22995
     .ok|.ok,*)  ;;
10112
22996
   .|.no|.no,*)  ;;
10113
22997
   *)
10114
22998
   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wsign_compare " 2>&1 >/dev/null
10115
 
   then { (echo "$as_me:10115: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wsign_compare") >&5
 
22999
   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wsign_compare") >&5
10116
23000
  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wsign_compare) 2>&5
10117
23001
  ac_status=$?
10118
 
  echo "$as_me:10118: \$? = $ac_status" >&5
 
23002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119
23003
  (exit $ac_status); }
10120
 
   else { (echo "$as_me:10120: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wsign_compare\"") >&5
 
23004
   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wsign_compare\"") >&5
10121
23005
  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare") 2>&5
10122
23006
  ac_status=$?
10123
 
  echo "$as_me:10123: \$? = $ac_status" >&5
 
23007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124
23008
  (exit $ac_status); }
10125
23009
                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare"
10126
23010
   fi
10127
23011
 ;;
10128
23012
esac
10129
23013
 
10130
 
echo "$as_me:10130: checking CFLAGS for gcc -Wmissing-declarations" >&5
 
23014
echo "$as_me:$LINENO: checking CFLAGS for gcc -Wmissing-declarations" >&5
10131
23015
echo $ECHO_N "checking CFLAGS for gcc -Wmissing-declarations... $ECHO_C" >&6
10132
23016
if test "${ac_cv_cflags_gcc_option__Wmissing_declarations+set}" = set; then
10133
23017
  echo $ECHO_N "(cached) $ECHO_C" >&6
10134
23018
else
10135
23019
  ac_cv_cflags_gcc_option__Wmissing_declarations="no, unknown"
10136
23020
 
 
23021
 
10137
23022
 ac_ext=c
10138
23023
ac_cpp='$CPP $CPPFLAGS'
10139
23024
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10144
23029
for ac_arg in "-pedantic  % -Wmissing-declarations"     #
10145
23030
do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
10146
23031
   cat >conftest.$ac_ext <<_ACEOF
10147
 
#line 10147 "configure"
10148
 
#include "confdefs.h"
 
23032
/* confdefs.h.  */
 
23033
_ACEOF
 
23034
cat confdefs.h >>conftest.$ac_ext
 
23035
cat >>conftest.$ac_ext <<_ACEOF
 
23036
/* end confdefs.h.  */
10149
23037
 
10150
23038
int
10151
23039
main ()
10156
23044
}
10157
23045
_ACEOF
10158
23046
rm -f conftest.$ac_objext
10159
 
if { (eval echo "$as_me:10159: \"$ac_compile\"") >&5
10160
 
  (eval $ac_compile) 2>&5
 
23047
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23048
  (eval $ac_compile) 2>conftest.er1
10161
23049
  ac_status=$?
10162
 
  echo "$as_me:10162: \$? = $ac_status" >&5
 
23050
  grep -v '^ *+' conftest.er1 >conftest.err
 
23051
  rm -f conftest.er1
 
23052
  cat conftest.err >&5
 
23053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163
23054
  (exit $ac_status); } &&
10164
 
         { ac_try='test -s conftest.$ac_objext'
10165
 
  { (eval echo "$as_me:10165: \"$ac_try\"") >&5
10166
 
  (eval $ac_try) 2>&5
10167
 
  ac_status=$?
10168
 
  echo "$as_me:10168: \$? = $ac_status" >&5
 
23055
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23057
  (eval $ac_try) 2>&5
 
23058
  ac_status=$?
 
23059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23060
  (exit $ac_status); }; } &&
 
23061
         { ac_try='test -s conftest.$ac_objext'
 
23062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23063
  (eval $ac_try) 2>&5
 
23064
  ac_status=$?
 
23065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169
23066
  (exit $ac_status); }; }; then
10170
23067
  ac_cv_cflags_gcc_option__Wmissing_declarations=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
10171
23068
else
10172
23069
  echo "$as_me: failed program was:" >&5
10173
 
cat conftest.$ac_ext >&5
 
23070
sed 's/^/| /' conftest.$ac_ext >&5
 
23071
 
10174
23072
fi
10175
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
23073
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10176
23074
done
10177
23075
 CFLAGS="$ac_save_CFLAGS"
10178
23076
 ac_ext=c
10181
23079
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182
23080
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183
23081
 
 
23082
 
10184
23083
fi
10185
 
echo "$as_me:10185: result: $ac_cv_cflags_gcc_option__Wmissing_declarations" >&5
 
23084
echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wmissing_declarations" >&5
10186
23085
echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wmissing_declarations" >&6
10187
23086
case ".$ac_cv_cflags_gcc_option__Wmissing_declarations" in
10188
23087
     .ok|.ok,*)  ;;
10189
23088
   .|.no|.no,*)  ;;
10190
23089
   *)
10191
23090
   if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wmissing_declarations " 2>&1 >/dev/null
10192
 
   then { (echo "$as_me:10192: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wmissing_declarations") >&5
 
23091
   then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wmissing_declarations") >&5
10193
23092
  (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wmissing_declarations) 2>&5
10194
23093
  ac_status=$?
10195
 
  echo "$as_me:10195: \$? = $ac_status" >&5
 
23094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196
23095
  (exit $ac_status); }
10197
 
   else { (echo "$as_me:10197: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wmissing_declarations\"") >&5
 
23096
   else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wmissing_declarations\"") >&5
10198
23097
  (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_declarations") 2>&5
10199
23098
  ac_status=$?
10200
 
  echo "$as_me:10200: \$? = $ac_status" >&5
 
23099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201
23100
  (exit $ac_status); }
10202
23101
                      CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_declarations"
10203
23102
   fi
10213
23112
if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4
10214
23113
   # Extract the first word of "pkg-config", so it can be a program name with args.
10215
23114
set dummy pkg-config; ac_word=$2
10216
 
echo "$as_me:10216: checking for $ac_word" >&5
 
23115
echo "$as_me:$LINENO: checking for $ac_word" >&5
10217
23116
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10218
23117
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10219
23118
  echo $ECHO_N "(cached) $ECHO_C" >&6
10223
23122
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10224
23123
  ;;
10225
23124
  *)
10226
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
10227
 
ac_dummy="$PATH"
10228
 
for ac_dir in $ac_dummy; do
10229
 
  IFS=$ac_save_IFS
10230
 
  test -z "$ac_dir" && ac_dir=.
10231
 
  if $as_executable_p "$ac_dir/$ac_word"; then
10232
 
   ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
10233
 
   echo "$as_me:10233: found $ac_dir/$ac_word" >&5
10234
 
   break
10235
 
fi
 
23125
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23126
for as_dir in $PATH
 
23127
do
 
23128
  IFS=$as_save_IFS
 
23129
  test -z "$as_dir" && as_dir=.
 
23130
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23131
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23132
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23133
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23134
    break 2
 
23135
  fi
 
23136
done
10236
23137
done
10237
23138
 
10238
23139
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10242
23143
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10243
23144
 
10244
23145
if test -n "$PKG_CONFIG"; then
10245
 
  echo "$as_me:10245: result: $PKG_CONFIG" >&5
 
23146
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10246
23147
echo "${ECHO_T}$PKG_CONFIG" >&6
10247
23148
else
10248
 
  echo "$as_me:10248: result: no" >&5
 
23149
  echo "$as_me:$LINENO: result: no" >&5
10249
23150
echo "${ECHO_T}no" >&6
10250
23151
fi
10251
23152
 
10254
23155
 
10255
23156
if test "$PKG_CONFIG" = "no"
10256
23157
then ax_warning_default_pkgconfig_dir="/" ; test -d "/usr/lib/pkgconfig" && ax_warning_default_pkgconfig_dir="/usr/lib/pkgconfig"
10257
 
else ax_warning_default_pkgconfig_bin=`$as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10258
 
         X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \
10259
 
         X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \
10260
 
         X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| \
10261
 
         .     : '\(.\)' 2>/dev/null ||
 
23158
else ax_warning_default_pkgconfig_bin=`(dirname "$ax_warning_default_pkgconfig_dir") 2>/dev/null ||
 
23159
$as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23160
         X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \
 
23161
         X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \
 
23162
         X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| \
 
23163
         .     : '\(.\)' 2>/dev/null ||
10262
23164
echo X"$ax_warning_default_pkgconfig_dir" |
10263
23165
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10264
23166
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10267
23169
          s/.*/./; q'` ;
10268
23170
     if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
10269
23171
          ax_warning_default_pkgconfig_dir="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
10270
 
     else ax_warning_default_pkgconfig_bin=`$as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10271
 
         X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \
10272
 
         X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \
10273
 
         X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| \
10274
 
         .     : '\(.\)' 2>/dev/null ||
 
23172
     else ax_warning_default_pkgconfig_bin=`(dirname "$ax_warning_default_pkgconfig_dir") 2>/dev/null ||
 
23173
$as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23174
         X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \
 
23175
         X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \
 
23176
         X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| \
 
23177
         .     : '\(.\)' 2>/dev/null ||
10275
23178
echo X"$ax_warning_default_pkgconfig_dir" |
10276
23179
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10277
23180
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10287
23190
          ax_warning_default_pkgconfig_dir="/"
10288
23191
     fi fi fi
10289
23192
fi
10290
 
{ (echo "$as_me:10290: : last pkgconfig dir is assumed as \"\$ax_warning_default_pkgconfig_dir\"") >&5
 
23193
{ (echo "$as_me:$LINENO: : last pkgconfig dir is assumed as \"\$ax_warning_default_pkgconfig_dir\"") >&5
10291
23194
  (: last pkgconfig dir is assumed as "$ax_warning_default_pkgconfig_dir") 2>&5
10292
23195
  ac_status=$?
10293
 
  echo "$as_me:10293: \$? = $ac_status" >&5
 
23196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294
23197
  (exit $ac_status); }
10295
23198
ax_warning_default_pkgconfig_dir=`eval "echo $ax_warning_default_pkgconfig_dir"`
10296
23199
ax_warning_default_pkgconfig_dir=`eval "echo $ax_warning_default_pkgconfig_dir"`
10298
23201
ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
10299
23202
ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
10300
23203
for ax_warning_default_pkgconfig_dir in `echo "$PKG_CONFIG_PATH:$ax_warning_default_pkgconfig_dir" | sed -e 's,:, ,g'` ; do
10301
 
    { (echo "$as_me:10301: : test \".\$ax_warning_default_pkgconfig_loc\" = \".\$ax_warning_default_pkgconfig_dir\"") >&5
 
23204
    { (echo "$as_me:$LINENO: : test \".\$ax_warning_default_pkgconfig_loc\" = \".\$ax_warning_default_pkgconfig_dir\"") >&5
10302
23205
  (: test ".$ax_warning_default_pkgconfig_loc" = ".$ax_warning_default_pkgconfig_dir") 2>&5
10303
23206
  ac_status=$?
10304
 
  echo "$as_me:10304: \$? = $ac_status" >&5
 
23207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305
23208
  (exit $ac_status); }
10306
23209
    test ".$ax_warning_default_pkgconfig_loc" = ".$ax_warning_default_pkgconfig_dir" && break
10307
23210
done
10308
23211
if  test "$ax_warning_default_pkgconfig_loc" != "$ax_warning_default_pkgconfig_dir" ; then
10309
 
   { echo "$as_me:10309: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&5
 
23212
   { echo "$as_me:$LINENO: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&5
10310
23213
echo "$as_me: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&6;}
10311
 
   { echo "$as_me:10311: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&5
 
23214
   { echo "$as_me:$LINENO: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&5
10312
23215
echo "$as_me: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&6;}
10313
23216
   cat >&5 <<EOF
10314
23217
 pkgconfigdir:  the default pkgconfigdir of $ax_warning_default_pkgconfig_loc
10323
23226
if test ".$ACLOCAL" = "." ; then
10324
23227
   # Extract the first word of "aclocal", so it can be a program name with args.
10325
23228
set dummy aclocal; ac_word=$2
10326
 
echo "$as_me:10326: checking for $ac_word" >&5
 
23229
echo "$as_me:$LINENO: checking for $ac_word" >&5
10327
23230
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10328
23231
if test "${ac_cv_path_ACLOCAL+set}" = set; then
10329
23232
  echo $ECHO_N "(cached) $ECHO_C" >&6
10333
23236
  ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
10334
23237
  ;;
10335
23238
  *)
10336
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
10337
 
ac_dummy="$PATH"
10338
 
for ac_dir in $ac_dummy; do
10339
 
  IFS=$ac_save_IFS
10340
 
  test -z "$ac_dir" && ac_dir=.
10341
 
  if $as_executable_p "$ac_dir/$ac_word"; then
10342
 
   ac_cv_path_ACLOCAL="$ac_dir/$ac_word"
10343
 
   echo "$as_me:10343: found $ac_dir/$ac_word" >&5
10344
 
   break
10345
 
fi
 
23239
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23240
for as_dir in $PATH
 
23241
do
 
23242
  IFS=$as_save_IFS
 
23243
  test -z "$as_dir" && as_dir=.
 
23244
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23245
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23246
    ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
 
23247
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23248
    break 2
 
23249
  fi
 
23250
done
10346
23251
done
10347
23252
 
10348
23253
  test -z "$ac_cv_path_ACLOCAL" && ac_cv_path_ACLOCAL=":"
10352
23257
ACLOCAL=$ac_cv_path_ACLOCAL
10353
23258
 
10354
23259
if test -n "$ACLOCAL"; then
10355
 
  echo "$as_me:10355: result: $ACLOCAL" >&5
 
23260
  echo "$as_me:$LINENO: result: $ACLOCAL" >&5
10356
23261
echo "${ECHO_T}$ACLOCAL" >&6
10357
23262
else
10358
 
  echo "$as_me:10358: result: no" >&5
 
23263
  echo "$as_me:$LINENO: result: no" >&5
10359
23264
echo "${ECHO_T}no" >&6
10360
23265
fi
10361
23266
 
10371
23276
ax_warning_default_aclocal_dir=`eval "echo $ax_warning_default_aclocal_dir"`
10372
23277
ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
10373
23278
ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
10374
 
{ (echo "$as_me:10374: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\"") >&5
 
23279
{ (echo "$as_me:$LINENO: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\"") >&5
10375
23280
  (: test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir") 2>&5
10376
23281
  ac_status=$?
10377
 
  echo "$as_me:10377: \$? = $ac_status" >&5
 
23282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378
23283
  (exit $ac_status); }
10379
23284
if test "$ax_warning_default_aclocal_loc" != "$ax_warning_default_aclocal_dir" ; then
10380
23285
   if test -f "$ax_warning_default_aclocal_dir/dirlist" ; then
10381
23286
      for ax_warning_default_aclocal_dir in `cat $ax_warning_default_aclocal_dir/dirlist` $ax_warning_default_aclocal_dir ; do
10382
 
          { (echo "$as_me:10382: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\"") >&5
 
23287
          { (echo "$as_me:$LINENO: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\"") >&5
10383
23288
  (: test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir") 2>&5
10384
23289
  ac_status=$?
10385
 
  echo "$as_me:10385: \$? = $ac_status" >&5
 
23290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386
23291
  (exit $ac_status); }
10387
23292
          test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir" && break
10388
23293
      done
10389
23294
   fi
10390
23295
   if test "$ax_warning_default_aclocal_loc" != "$ax_warning_default_aclocal_dir" ; then
10391
 
      { echo "$as_me:10391: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&5
 
23296
      { echo "$as_me:$LINENO: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&5
10392
23297
echo "$as_me: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&6;}
10393
 
   { echo "$as_me:10393: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&5
 
23298
   { echo "$as_me:$LINENO: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&5
10394
23299
echo "$as_me: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&6;}
10395
23300
   cat >&5 <<EOF
10396
23301
  aclocaldir:   the default aclocaldir of $ax_warning_default_aclocal_loc
10404
23309
   fi
10405
23310
fi
10406
23311
 
10407
 
ac_config_files="$ac_config_files Makefile zzip/Makefile zzipwrap/Makefile SDL/Makefile docs/Makefile test/Makefile zziplib/Makefile bins/Makefile bins/zzip-config"
 
23312
 
 
23313
                                                                                          ac_config_files="$ac_config_files Makefile zzip/Makefile zzipwrap/Makefile SDL/Makefile docs/Makefile test/Makefile zziplib/Makefile bins/Makefile bins/zzip-config"
10408
23314
cat >confcache <<\_ACEOF
10409
23315
# This file is a shell script that caches the results of configure
10410
23316
# tests run on this system so they can be shared between configure
10415
23321
# config.status only pays attention to the cache file if you give it
10416
23322
# the --recheck option to rerun configure.
10417
23323
#
10418
 
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
23324
# `ac_cv_env_foo' variables (set or unset) will be overridden when
10419
23325
# loading this file, other *unset* `ac_cv_foo' will be assigned the
10420
23326
# following values.
10421
23327
 
10433
23339
      # `set' does not quote correctly, so add quotes (double-quote
10434
23340
      # substitution turns \\\\ into \\, and sed turns \\ into \).
10435
23341
      sed -n \
10436
 
        "s/'/'\\\\''/g;
10437
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
23342
        "s/'/'\\\\''/g;
 
23343
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10438
23344
      ;;
10439
23345
    *)
10440
23346
      # `set' quotes correctly as required by POSIX, so do not add quotes.
10441
23347
      sed -n \
10442
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
23348
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10443
23349
      ;;
10444
23350
    esac;
10445
23351
} |
10450
23356
     t end
10451
23357
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10452
23358
     : end' >>confcache
10453
 
if cmp -s $cache_file confcache; then :; else
 
23359
if diff $cache_file confcache >/dev/null 2>&1; then :; else
10454
23360
  if test -w $cache_file; then
10455
23361
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10456
23362
    cat confcache >$cache_file
10469
23375
# trailing colons and then remove the whole line if VPATH becomes empty
10470
23376
# (actually we leave an empty line to preserve line numbers).
10471
23377
if test "x$srcdir" = x.; then
10472
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
23378
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10473
23379
s/:*\$(srcdir):*/:/;
10474
23380
s/:*\${srcdir}:*/:/;
10475
23381
s/:*@srcdir@:*/:/;
10476
 
s/^\([^=]*=[    ]*\):*/\1/;
 
23382
s/^\([^=]*=[     ]*\):*/\1/;
10477
23383
s/:*$//;
10478
 
s/^[^=]*=[      ]*$//;
 
23384
s/^[^=]*=[       ]*$//;
10479
23385
}'
10480
23386
fi
10481
23387
 
10482
23388
DEFS=-DHAVE_CONFIG_H
10483
23389
 
 
23390
ac_libobjs=
 
23391
ac_ltlibobjs=
 
23392
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
23393
  # 1. Remove the extension, and $U if already installed.
 
23394
  ac_i=`echo "$ac_i" |
 
23395
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
23396
  # 2. Add them.
 
23397
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
23398
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
23399
done
 
23400
LIBOBJS=$ac_libobjs
 
23401
 
 
23402
LTLIBOBJS=$ac_ltlibobjs
 
23403
 
 
23404
 
 
23405
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
23406
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
23407
Usually this means the macro was only invoked conditionally." >&5
 
23408
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
23409
Usually this means the macro was only invoked conditionally." >&2;}
 
23410
   { (exit 1); exit 1; }; }
 
23411
fi
 
23412
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
23413
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
23414
Usually this means the macro was only invoked conditionally." >&5
 
23415
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
23416
Usually this means the macro was only invoked conditionally." >&2;}
 
23417
   { (exit 1); exit 1; }; }
 
23418
fi
 
23419
 
10484
23420
: ${CONFIG_STATUS=./config.status}
10485
23421
ac_clean_files_save=$ac_clean_files
10486
23422
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10487
 
{ echo "$as_me:10487: creating $CONFIG_STATUS" >&5
 
23423
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10488
23424
echo "$as_me: creating $CONFIG_STATUS" >&6;}
10489
23425
cat >$CONFIG_STATUS <<_ACEOF
10490
23426
#! $SHELL
10491
 
# Generated automatically by configure.
 
23427
# Generated by $as_me.
10492
23428
# Run this file to recreate the current configuration.
10493
23429
# Compiler output produced by configure, useful for debugging
10494
23430
# configure, is in config.log if it exists.
10495
23431
 
10496
23432
debug=false
 
23433
ac_cs_recheck=false
 
23434
ac_cs_silent=false
10497
23435
SHELL=\${CONFIG_SHELL-$SHELL}
10498
 
ac_cs_invocation="\$0 \$@"
10499
 
 
10500
23436
_ACEOF
10501
23437
 
10502
23438
cat >>$CONFIG_STATUS <<\_ACEOF
 
23439
## --------------------- ##
 
23440
## M4sh Initialization.  ##
 
23441
## --------------------- ##
 
23442
 
10503
23443
# Be Bourne compatible
10504
23444
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10505
23445
  emulate sh
10506
23446
  NULLCMD=:
 
23447
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
23448
  # is contrary to our usage.  Disable this feature.
 
23449
  alias -g '${1+"$@"}'='"$@"'
10507
23450
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10508
23451
  set -o posix
10509
23452
fi
 
23453
DUALCASE=1; export DUALCASE # for MKS sh
 
23454
 
 
23455
# Support unset when possible.
 
23456
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
23457
  as_unset=unset
 
23458
else
 
23459
  as_unset=false
 
23460
fi
 
23461
 
 
23462
 
 
23463
# Work around bugs in pre-3.0 UWIN ksh.
 
23464
$as_unset ENV MAIL MAILPATH
 
23465
PS1='$ '
 
23466
PS2='> '
 
23467
PS4='+ '
 
23468
 
 
23469
# NLS nuisances.
 
23470
for as_var in \
 
23471
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
23472
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
23473
  LC_TELEPHONE LC_TIME
 
23474
do
 
23475
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
23476
    eval $as_var=C; export $as_var
 
23477
  else
 
23478
    $as_unset $as_var
 
23479
  fi
 
23480
done
 
23481
 
 
23482
# Required to use basename.
 
23483
if expr a : '\(a\)' >/dev/null 2>&1; then
 
23484
  as_expr=expr
 
23485
else
 
23486
  as_expr=false
 
23487
fi
 
23488
 
 
23489
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
23490
  as_basename=basename
 
23491
else
 
23492
  as_basename=false
 
23493
fi
 
23494
 
10510
23495
 
10511
23496
# Name of the executable.
10512
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
23497
as_me=`$as_basename "$0" ||
 
23498
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
23499
         X"$0" : 'X\(//\)$' \| \
 
23500
         X"$0" : 'X\(/\)$' \| \
 
23501
         .     : '\(.\)' 2>/dev/null ||
 
23502
echo X/"$0" |
 
23503
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
23504
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
23505
          /^X\/\(\/\).*/{ s//\1/; q; }
 
23506
          s/.*/./; q'`
 
23507
 
 
23508
 
 
23509
# PATH needs CR, and LINENO needs CR and PATH.
 
23510
# Avoid depending upon Character Ranges.
 
23511
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
23512
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
23513
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
23514
as_cr_digits='0123456789'
 
23515
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
23516
 
 
23517
# The user is always right.
 
23518
if test "${PATH_SEPARATOR+set}" != set; then
 
23519
  echo "#! /bin/sh" >conf$$.sh
 
23520
  echo  "exit 0"   >>conf$$.sh
 
23521
  chmod +x conf$$.sh
 
23522
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
23523
    PATH_SEPARATOR=';'
 
23524
  else
 
23525
    PATH_SEPARATOR=:
 
23526
  fi
 
23527
  rm -f conf$$.sh
 
23528
fi
 
23529
 
 
23530
 
 
23531
  as_lineno_1=$LINENO
 
23532
  as_lineno_2=$LINENO
 
23533
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
23534
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
23535
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
23536
  # Find who we are.  Look in the path if we contain no path at all
 
23537
  # relative or not.
 
23538
  case $0 in
 
23539
    *[\\/]* ) as_myself=$0 ;;
 
23540
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23541
for as_dir in $PATH
 
23542
do
 
23543
  IFS=$as_save_IFS
 
23544
  test -z "$as_dir" && as_dir=.
 
23545
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
23546
done
 
23547
 
 
23548
       ;;
 
23549
  esac
 
23550
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
23551
  # in which case we are not to be found in the path.
 
23552
  if test "x$as_myself" = x; then
 
23553
    as_myself=$0
 
23554
  fi
 
23555
  if test ! -f "$as_myself"; then
 
23556
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
23557
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
23558
   { (exit 1); exit 1; }; }
 
23559
  fi
 
23560
  case $CONFIG_SHELL in
 
23561
  '')
 
23562
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23563
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
23564
do
 
23565
  IFS=$as_save_IFS
 
23566
  test -z "$as_dir" && as_dir=.
 
23567
  for as_base in sh bash ksh sh5; do
 
23568
         case $as_dir in
 
23569
         /*)
 
23570
           if ("$as_dir/$as_base" -c '
 
23571
  as_lineno_1=$LINENO
 
23572
  as_lineno_2=$LINENO
 
23573
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
23574
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
23575
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
23576
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
23577
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
23578
             CONFIG_SHELL=$as_dir/$as_base
 
23579
             export CONFIG_SHELL
 
23580
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
23581
           fi;;
 
23582
         esac
 
23583
       done
 
23584
done
 
23585
;;
 
23586
  esac
 
23587
 
 
23588
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
23589
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
23590
  # line-number line before each line; the second 'sed' does the real
 
23591
  # work.  The second script uses 'N' to pair each line-number line
 
23592
  # with the numbered line, and appends trailing '-' during
 
23593
  # substitution so that $LINENO is not a special case at line end.
 
23594
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
23595
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
23596
  sed '=' <$as_myself |
 
23597
    sed '
 
23598
      N
 
23599
      s,$,-,
 
23600
      : loop
 
23601
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
23602
      t loop
 
23603
      s,-$,,
 
23604
      s,^['$as_cr_digits']*\n,,
 
23605
    ' >$as_me.lineno &&
 
23606
  chmod +x $as_me.lineno ||
 
23607
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
23608
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
23609
   { (exit 1); exit 1; }; }
 
23610
 
 
23611
  # Don't try to exec as it changes $[0], causing all sort of problems
 
23612
  # (the dirname of $[0] is not the place where we might find the
 
23613
  # original and so on.  Autoconf is especially sensible to this).
 
23614
  . ./$as_me.lineno
 
23615
  # Exit status is that of the last command.
 
23616
  exit
 
23617
}
 
23618
 
 
23619
 
 
23620
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
23621
  *c*,-n*) ECHO_N= ECHO_C='
 
23622
' ECHO_T='      ' ;;
 
23623
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
23624
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
23625
esac
10513
23626
 
10514
23627
if expr a : '\(a\)' >/dev/null 2>&1; then
10515
23628
  as_expr=expr
10535
23648
fi
10536
23649
rm -f conf$$ conf$$.exe conf$$.file
10537
23650
 
 
23651
if mkdir -p . 2>/dev/null; then
 
23652
  as_mkdir_p=:
 
23653
else
 
23654
  test -d ./-p && rmdir ./-p
 
23655
  as_mkdir_p=false
 
23656
fi
 
23657
 
10538
23658
as_executable_p="test -f"
10539
23659
 
10540
 
# Support unset when possible.
10541
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10542
 
  as_unset=unset
10543
 
else
10544
 
  as_unset=false
10545
 
fi
10546
 
 
10547
 
# NLS nuisances.
10548
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
10549
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
10550
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
10551
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
10552
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
10553
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
10554
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
10555
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
23660
# Sed expression to map a string onto a valid CPP name.
 
23661
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
23662
 
 
23663
# Sed expression to map a string onto a valid variable name.
 
23664
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
23665
 
10556
23666
 
10557
23667
# IFS
10558
23668
# We need space, tab and new line, in precisely that order.
10561
23671
IFS="   $as_nl"
10562
23672
 
10563
23673
# CDPATH.
10564
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
23674
$as_unset CDPATH
10565
23675
 
10566
23676
exec 6>&1
10567
23677
 
 
23678
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
23679
# report actual input values of CONFIG_FILES etc. instead of their
 
23680
# values after options handling.  Logging --version etc. is OK.
 
23681
exec 5>>config.log
 
23682
{
 
23683
  echo
 
23684
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
23685
## Running $as_me. ##
 
23686
_ASBOX
 
23687
} >&5
 
23688
cat >&5 <<_CSEOF
 
23689
 
 
23690
This file was extended by $as_me, which was
 
23691
generated by GNU Autoconf 2.59.  Invocation command line was
 
23692
 
 
23693
  CONFIG_FILES    = $CONFIG_FILES
 
23694
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
23695
  CONFIG_LINKS    = $CONFIG_LINKS
 
23696
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
23697
  $ $0 $@
 
23698
 
 
23699
_CSEOF
 
23700
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
23701
echo >&5
10568
23702
_ACEOF
10569
23703
 
10570
23704
# Files that config.status was made for.
10584
23718
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10585
23719
fi
10586
23720
 
10587
 
cat >>$CONFIG_STATUS <<\EOF
 
23721
cat >>$CONFIG_STATUS <<\_ACEOF
10588
23722
 
10589
23723
ac_cs_usage="\
10590
23724
\`$as_me' instantiates files from templates according to the
10594
23728
 
10595
23729
  -h, --help       print this help, then exit
10596
23730
  -V, --version    print version number, then exit
 
23731
  -q, --quiet      do not print progress messages
10597
23732
  -d, --debug      don't remove temporary files
10598
23733
      --recheck    update $as_me by reconfiguring in the same conditions
10599
23734
  --file=FILE[:TEMPLATE]
10600
 
                   instantiate the configuration file FILE
 
23735
                   instantiate the configuration file FILE
10601
23736
  --header=FILE[:TEMPLATE]
10602
 
                   instantiate the configuration header FILE
 
23737
                   instantiate the configuration header FILE
10603
23738
 
10604
23739
Configuration files:
10605
23740
$config_files
10611
23746
$config_commands
10612
23747
 
10613
23748
Report bugs to <bug-autoconf@gnu.org>."
10614
 
EOF
 
23749
_ACEOF
10615
23750
 
10616
 
cat >>$CONFIG_STATUS <<EOF
 
23751
cat >>$CONFIG_STATUS <<_ACEOF
10617
23752
ac_cs_version="\\
10618
23753
config.status
10619
 
configured by $0, generated by GNU Autoconf 2.52,
 
23754
configured by $0, generated by GNU Autoconf 2.59,
10620
23755
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10621
23756
 
10622
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10623
 
Free Software Foundation, Inc.
 
23757
Copyright (C) 2003 Free Software Foundation, Inc.
10624
23758
This config.status script is free software; the Free Software Foundation
10625
23759
gives unlimited permission to copy, distribute and modify it."
10626
23760
srcdir=$srcdir
10627
23761
INSTALL="$INSTALL"
10628
 
EOF
 
23762
_ACEOF
10629
23763
 
10630
 
cat >>$CONFIG_STATUS <<\EOF
 
23764
cat >>$CONFIG_STATUS <<\_ACEOF
10631
23765
# If no file are specified by the user, then we need to provide default
10632
23766
# value.  By we need to know if files were specified by the user.
10633
23767
ac_need_defaults=:
10637
23771
  --*=*)
10638
23772
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10639
23773
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10640
 
    shift
10641
 
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10642
 
    shift
10643
 
    ;;
10644
 
  -*);;
 
23774
    ac_shift=:
 
23775
    ;;
 
23776
  -*)
 
23777
    ac_option=$1
 
23778
    ac_optarg=$2
 
23779
    ac_shift=shift
 
23780
    ;;
10645
23781
  *) # This is not an option, so the user has probably given explicit
10646
23782
     # arguments.
 
23783
     ac_option=$1
10647
23784
     ac_need_defaults=false;;
10648
23785
  esac
10649
23786
 
10650
 
  case $1 in
 
23787
  case $ac_option in
10651
23788
  # Handling of the options.
10652
 
EOF
10653
 
cat >>$CONFIG_STATUS <<EOF
 
23789
_ACEOF
 
23790
cat >>$CONFIG_STATUS <<\_ACEOF
10654
23791
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10655
 
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10656
 
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10657
 
EOF
10658
 
cat >>$CONFIG_STATUS <<\EOF
 
23792
    ac_cs_recheck=: ;;
10659
23793
  --version | --vers* | -V )
10660
23794
    echo "$ac_cs_version"; exit 0 ;;
10661
23795
  --he | --h)
10662
23796
    # Conflict between --help and --header
10663
 
    { { echo "$as_me:10663: error: ambiguous option: $1
 
23797
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10664
23798
Try \`$0 --help' for more information." >&5
10665
23799
echo "$as_me: error: ambiguous option: $1
10666
23800
Try \`$0 --help' for more information." >&2;}
10670
23804
  --debug | --d* | -d )
10671
23805
    debug=: ;;
10672
23806
  --file | --fil | --fi | --f )
10673
 
    shift
10674
 
    CONFIG_FILES="$CONFIG_FILES $1"
 
23807
    $ac_shift
 
23808
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10675
23809
    ac_need_defaults=false;;
10676
23810
  --header | --heade | --head | --hea )
10677
 
    shift
10678
 
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
23811
    $ac_shift
 
23812
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10679
23813
    ac_need_defaults=false;;
 
23814
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
23815
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
23816
    ac_cs_silent=: ;;
10680
23817
 
10681
23818
  # This is an error.
10682
 
  -*) { { echo "$as_me:10682: error: unrecognized option: $1
 
23819
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10683
23820
Try \`$0 --help' for more information." >&5
10684
23821
echo "$as_me: error: unrecognized option: $1
10685
23822
Try \`$0 --help' for more information." >&2;}
10691
23828
  shift
10692
23829
done
10693
23830
 
10694
 
exec 5>>config.log
10695
 
cat >&5 << _ACEOF
10696
 
 
10697
 
## ----------------------- ##
10698
 
## Running config.status.  ##
10699
 
## ----------------------- ##
10700
 
 
10701
 
This file was extended by $as_me 2.52, executed with
10702
 
  CONFIG_FILES    = $CONFIG_FILES
10703
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
10704
 
  CONFIG_LINKS    = $CONFIG_LINKS
10705
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
10706
 
  > $ac_cs_invocation
10707
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
10708
 
 
10709
 
_ACEOF
10710
 
EOF
10711
 
 
10712
 
cat >>$CONFIG_STATUS <<EOF
 
23831
ac_configure_extra_args=
 
23832
 
 
23833
if $ac_cs_silent; then
 
23834
  exec 6>/dev/null
 
23835
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
23836
fi
 
23837
 
 
23838
_ACEOF
 
23839
cat >>$CONFIG_STATUS <<_ACEOF
 
23840
if \$ac_cs_recheck; then
 
23841
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
23842
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
23843
fi
 
23844
 
 
23845
_ACEOF
 
23846
 
 
23847
cat >>$CONFIG_STATUS <<_ACEOF
10713
23848
#
10714
23849
# INIT-COMMANDS section.
10715
23850
#
10722
23857
ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
10723
23858
ax_enable_builddir="$ax_enable_builddir"               # $SUB
10724
23859
 
10725
 
AMDEP_TRUE="$AMDEP_TRUE"
10726
 
ac_aux_dir="$ac_aux_dir"
10727
 
PACKAGE="$PACKAGE"
10728
 
PACKAGE="$PACKAGE"
10729
 
 
10730
 
EOF
10731
 
 
10732
 
cat >>$CONFIG_STATUS <<\EOF
 
23860
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
23861
PACKAGE="$PACKAGE"
 
23862
PACKAGE="$PACKAGE"
 
23863
 
 
23864
_ACEOF
 
23865
 
 
23866
 
 
23867
 
 
23868
cat >>$CONFIG_STATUS <<\_ACEOF
10733
23869
for ac_config_target in $ac_config_targets
10734
23870
do
10735
23871
  case "$ac_config_target" in
10744
23880
  "bins/Makefile" ) CONFIG_FILES="$CONFIG_FILES bins/Makefile" ;;
10745
23881
  "bins/zzip-config" ) CONFIG_FILES="$CONFIG_FILES bins/zzip-config" ;;
10746
23882
  "buildir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
10747
 
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
23883
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10748
23884
  "zzip/_config.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS zzip/_config.h" ;;
10749
23885
  "zzip/_msvc.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS zzip/_msvc.h" ;;
10750
23886
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10751
 
  *) { { echo "$as_me:10751: error: invalid argument: $ac_config_target" >&5
 
23887
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10752
23888
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10753
23889
   { (exit 1); exit 1; }; };;
10754
23890
  esac
10764
23900
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10765
23901
fi
10766
23902
 
 
23903
# Have a temporary directory for convenience.  Make it in the build tree
 
23904
# simply because there is no reason to put it here, and in addition,
 
23905
# creating and moving files from /tmp can sometimes cause problems.
10767
23906
# Create a temporary directory, and hook for its removal unless debugging.
10768
23907
$debug ||
10769
23908
{
10772
23911
}
10773
23912
 
10774
23913
# Create a (secure) tmp directory for tmp files.
10775
 
: ${TMPDIR=/tmp}
 
23914
 
10776
23915
{
10777
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
23916
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10778
23917
  test -n "$tmp" && test -d "$tmp"
10779
23918
}  ||
10780
23919
{
10781
 
  tmp=$TMPDIR/cs$$-$RANDOM
 
23920
  tmp=./confstat$$-$RANDOM
10782
23921
  (umask 077 && mkdir $tmp)
10783
23922
} ||
10784
23923
{
10785
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
23924
   echo "$me: cannot create a temporary directory in ." >&2
10786
23925
   { (exit 1); exit 1; }
10787
23926
}
10788
23927
 
10789
 
EOF
 
23928
_ACEOF
10790
23929
 
10791
 
cat >>$CONFIG_STATUS <<EOF
 
23930
cat >>$CONFIG_STATUS <<_ACEOF
10792
23931
 
10793
23932
#
10794
23933
# CONFIG_FILES section.
10801
23940
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10802
23941
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10803
23942
s,@SHELL@,$SHELL,;t t
 
23943
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
23944
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
23945
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
23946
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
23947
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
23948
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10804
23949
s,@exec_prefix@,$exec_prefix,;t t
10805
23950
s,@prefix@,$prefix,;t t
10806
23951
s,@program_transform_name@,$program_transform_name,;t t
10816
23961
s,@oldincludedir@,$oldincludedir,;t t
10817
23962
s,@infodir@,$infodir,;t t
10818
23963
s,@mandir@,$mandir,;t t
10819
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10820
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10821
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10822
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10823
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10824
23964
s,@build_alias@,$build_alias,;t t
10825
23965
s,@host_alias@,$host_alias,;t t
10826
23966
s,@target_alias@,$target_alias,;t t
 
23967
s,@DEFS@,$DEFS,;t t
10827
23968
s,@ECHO_C@,$ECHO_C,;t t
10828
23969
s,@ECHO_N@,$ECHO_N,;t t
10829
23970
s,@ECHO_T@,$ECHO_T,;t t
10830
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10831
 
s,@DEFS@,$DEFS,;t t
10832
23971
s,@LIBS@,$LIBS,;t t
10833
23972
s,@build@,$build,;t t
10834
23973
s,@build_cpu@,$build_cpu,;t t
10851
23990
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10852
23991
s,@PACKAGE@,$PACKAGE,;t t
10853
23992
s,@VERSION@,$VERSION,;t t
10854
 
s,@EXEEXT@,$EXEEXT,;t t
10855
 
s,@OBJEXT@,$OBJEXT,;t t
10856
23993
s,@ACLOCAL@,$ACLOCAL,;t t
10857
23994
s,@AUTOCONF@,$AUTOCONF,;t t
10858
23995
s,@AUTOMAKE@,$AUTOMAKE,;t t
10860
23997
s,@MAKEINFO@,$MAKEINFO,;t t
10861
23998
s,@AMTAR@,$AMTAR,;t t
10862
23999
s,@install_sh@,$install_sh,;t t
 
24000
s,@STRIP@,$STRIP,;t t
 
24001
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10863
24002
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10864
24003
s,@AWK@,$AWK,;t t
10865
24004
s,@SET_MAKE@,$SET_MAKE,;t t
10866
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10867
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10868
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10869
 
s,@DEPDIR@,$DEPDIR,;t t
10870
24005
s,@CC@,$CC,;t t
10871
24006
s,@CFLAGS@,$CFLAGS,;t t
10872
24007
s,@LDFLAGS@,$LDFLAGS,;t t
10873
24008
s,@CPPFLAGS@,$CPPFLAGS,;t t
10874
24009
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
24010
s,@EXEEXT@,$EXEEXT,;t t
 
24011
s,@OBJEXT@,$OBJEXT,;t t
 
24012
s,@DEPDIR@,$DEPDIR,;t t
10875
24013
s,@am__include@,$am__include,;t t
10876
24014
s,@am__quote@,$am__quote,;t t
 
24015
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
24016
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
24017
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10877
24018
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
24019
s,@EGREP@,$EGREP,;t t
10878
24020
s,@LN_S@,$LN_S,;t t
10879
24021
s,@ECHO@,$ECHO,;t t
 
24022
s,@AR@,$AR,;t t
 
24023
s,@ac_ct_AR@,$ac_ct_AR,;t t
10880
24024
s,@RANLIB@,$RANLIB,;t t
10881
24025
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10882
 
s,@STRIP@,$STRIP,;t t
10883
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10884
24026
s,@DLLTOOL@,$DLLTOOL,;t t
10885
24027
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
10886
24028
s,@AS@,$AS,;t t
10888
24030
s,@OBJDUMP@,$OBJDUMP,;t t
10889
24031
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
10890
24032
s,@CPP@,$CPP,;t t
 
24033
s,@CXX@,$CXX,;t t
 
24034
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
24035
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
24036
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
24037
s,@CXXCPP@,$CXXCPP,;t t
 
24038
s,@F77@,$F77,;t t
 
24039
s,@FFLAGS@,$FFLAGS,;t t
 
24040
s,@ac_ct_F77@,$ac_ct_F77,;t t
10891
24041
s,@LIBTOOL@,$LIBTOOL,;t t
10892
24042
s,@RELEASE_INFO@,$RELEASE_INFO,;t t
10893
24043
s,@VERSION_INFO@,$VERSION_INFO,;t t
10895
24045
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10896
24046
s,@MAINT@,$MAINT,;t t
10897
24047
s,@PERL@,$PERL,;t t
10898
 
s,@PHP@,$PHP,;t t
 
24048
s,@PYTHON@,$PYTHON,;t t
10899
24049
s,@MKZIP@,$MKZIP,;t t
10900
24050
s,@XMLTO@,$XMLTO,;t t
10901
24051
s,@LARGEFILE_CFLAGS@,$LARGEFILE_CFLAGS,;t t
10907
24057
s,@RESOLVES@,$RESOLVES,;t t
10908
24058
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
10909
24059
s,@CONFIG_FILES@,$CONFIG_FILES,;t t
 
24060
s,@LIBOBJS@,$LIBOBJS,;t t
 
24061
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10910
24062
CEOF
10911
24063
 
10912
 
EOF
 
24064
_ACEOF
10913
24065
 
10914
 
  cat >>$CONFIG_STATUS <<\EOF
 
24066
  cat >>$CONFIG_STATUS <<\_ACEOF
10915
24067
  # Split the substitutions into bite-sized pieces for seds with
10916
24068
  # small command number limits, like on Digital OSF/1 and HP-UX.
10917
24069
  ac_max_sed_lines=48
10936
24088
      (echo ':t
10937
24089
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10938
24090
      if test -z "$ac_sed_cmds"; then
10939
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
24091
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10940
24092
      else
10941
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
24093
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10942
24094
      fi
10943
24095
      ac_sed_frag=`expr $ac_sed_frag + 1`
10944
24096
      ac_beg=$ac_end
10950
24102
  fi
10951
24103
fi # test -n "$CONFIG_FILES"
10952
24104
 
10953
 
EOF
10954
 
cat >>$CONFIG_STATUS <<\EOF
 
24105
_ACEOF
 
24106
cat >>$CONFIG_STATUS <<\_ACEOF
10955
24107
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10956
24108
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10957
24109
  case $ac_file in
10958
24110
  - | *:- | *:-:* ) # input from stdin
10959
 
        cat >$tmp/stdin
10960
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10961
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
24111
        cat >$tmp/stdin
 
24112
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
24113
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10962
24114
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10963
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
24115
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10964
24116
  * )   ac_file_in=$ac_file.in ;;
10965
24117
  esac
10966
24118
 
10967
24119
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10968
 
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10969
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
10970
 
         X"$ac_file" : 'X\(//\)$' \| \
10971
 
         X"$ac_file" : 'X\(/\)' \| \
10972
 
         .     : '\(.\)' 2>/dev/null ||
 
24120
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
24121
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24122
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
24123
         X"$ac_file" : 'X\(//\)$' \| \
 
24124
         X"$ac_file" : 'X\(/\)' \| \
 
24125
         .     : '\(.\)' 2>/dev/null ||
10973
24126
echo X"$ac_file" |
10974
24127
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10975
24128
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10976
24129
          /^X\(\/\/\)$/{ s//\1/; q; }
10977
24130
          /^X\(\/\).*/{ s//\1/; q; }
10978
24131
          s/.*/./; q'`
10979
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10980
 
    { case "$ac_dir" in
10981
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10982
 
  *)                      as_incr_dir=.;;
10983
 
esac
10984
 
as_dummy="$ac_dir"
10985
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10986
 
  case $as_mkdir_dir in
10987
 
    # Skip DOS drivespec
10988
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
10989
 
    *)
10990
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
10991
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
10992
 
    ;;
10993
 
  esac
10994
 
done; }
10995
 
 
10996
 
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
10997
 
    # A "../" for each directory in $ac_dir_suffix.
10998
 
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
 
24132
  { if $as_mkdir_p; then
 
24133
    mkdir -p "$ac_dir"
10999
24134
  else
11000
 
    ac_dir_suffix= ac_dots=
11001
 
  fi
11002
 
 
11003
 
  case $srcdir in
11004
 
  .)  ac_srcdir=.
11005
 
      if test -z "$ac_dots"; then
11006
 
         ac_top_srcdir=.
11007
 
      else
11008
 
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
11009
 
      fi ;;
11010
 
  [\\/]* | ?:[\\/]* )
11011
 
      ac_srcdir=$srcdir$ac_dir_suffix;
11012
 
      ac_top_srcdir=$srcdir ;;
 
24135
    as_dir="$ac_dir"
 
24136
    as_dirs=
 
24137
    while test ! -d "$as_dir"; do
 
24138
      as_dirs="$as_dir $as_dirs"
 
24139
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24140
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24141
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24142
         X"$as_dir" : 'X\(//\)$' \| \
 
24143
         X"$as_dir" : 'X\(/\)' \| \
 
24144
         .     : '\(.\)' 2>/dev/null ||
 
24145
echo X"$as_dir" |
 
24146
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24147
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24148
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24149
          /^X\(\/\).*/{ s//\1/; q; }
 
24150
          s/.*/./; q'`
 
24151
    done
 
24152
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24153
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
24154
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
24155
   { (exit 1); exit 1; }; }; }
 
24156
 
 
24157
  ac_builddir=.
 
24158
 
 
24159
if test "$ac_dir" != .; then
 
24160
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
24161
  # A "../" for each directory in $ac_dir_suffix.
 
24162
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
24163
else
 
24164
  ac_dir_suffix= ac_top_builddir=
 
24165
fi
 
24166
 
 
24167
case $srcdir in
 
24168
  .)  # No --srcdir option.  We are building in place.
 
24169
    ac_srcdir=.
 
24170
    if test -z "$ac_top_builddir"; then
 
24171
       ac_top_srcdir=.
 
24172
    else
 
24173
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
24174
    fi ;;
 
24175
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
24176
    ac_srcdir=$srcdir$ac_dir_suffix;
 
24177
    ac_top_srcdir=$srcdir ;;
11013
24178
  *) # Relative path.
11014
 
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
11015
 
    ac_top_srcdir=$ac_dots$srcdir ;;
11016
 
  esac
 
24179
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
24180
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
24181
esac
 
24182
 
 
24183
# Do not use `cd foo && pwd` to compute absolute paths, because
 
24184
# the directories may not exist.
 
24185
case `pwd` in
 
24186
.) ac_abs_builddir="$ac_dir";;
 
24187
*)
 
24188
  case "$ac_dir" in
 
24189
  .) ac_abs_builddir=`pwd`;;
 
24190
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
24191
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
24192
  esac;;
 
24193
esac
 
24194
case $ac_abs_builddir in
 
24195
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24196
*)
 
24197
  case ${ac_top_builddir}. in
 
24198
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
24199
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24200
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
24201
  esac;;
 
24202
esac
 
24203
case $ac_abs_builddir in
 
24204
.) ac_abs_srcdir=$ac_srcdir;;
 
24205
*)
 
24206
  case $ac_srcdir in
 
24207
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
24208
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
24209
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
24210
  esac;;
 
24211
esac
 
24212
case $ac_abs_builddir in
 
24213
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24214
*)
 
24215
  case $ac_top_srcdir in
 
24216
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
24217
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24218
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
24219
  esac;;
 
24220
esac
 
24221
 
11017
24222
 
11018
24223
  case $INSTALL in
11019
24224
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11020
 
  *) ac_INSTALL=$ac_dots$INSTALL ;;
 
24225
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11021
24226
  esac
11022
24227
 
 
24228
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
24229
  # use $as_me), people would be surprised to read:
 
24230
  #    /* config.h.  Generated by config.status.  */
 
24231
  if test x"$ac_file" = x-; then
 
24232
    configure_input=
 
24233
  else
 
24234
    configure_input="$ac_file.  "
 
24235
  fi
 
24236
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
24237
                                     sed 's,.*/,,'` by configure."
 
24238
 
 
24239
  # First look for the input files in the build tree, otherwise in the
 
24240
  # src tree.
 
24241
  ac_file_inputs=`IFS=:
 
24242
    for f in $ac_file_in; do
 
24243
      case $f in
 
24244
      -) echo $tmp/stdin ;;
 
24245
      [\\/$]*)
 
24246
         # Absolute (can't be DOS-style, as IFS=:)
 
24247
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
24248
echo "$as_me: error: cannot find input file: $f" >&2;}
 
24249
   { (exit 1); exit 1; }; }
 
24250
         echo "$f";;
 
24251
      *) # Relative
 
24252
         if test -f "$f"; then
 
24253
           # Build tree
 
24254
           echo "$f"
 
24255
         elif test -f "$srcdir/$f"; then
 
24256
           # Source tree
 
24257
           echo "$srcdir/$f"
 
24258
         else
 
24259
           # /dev/null tree
 
24260
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
24261
echo "$as_me: error: cannot find input file: $f" >&2;}
 
24262
   { (exit 1); exit 1; }; }
 
24263
         fi;;
 
24264
      esac
 
24265
    done` || { (exit 1); exit 1; }
 
24266
 
11023
24267
  if test x"$ac_file" != x-; then
11024
 
    { echo "$as_me:11024: creating $ac_file" >&5
 
24268
    { echo "$as_me:$LINENO: creating $ac_file" >&5
11025
24269
echo "$as_me: creating $ac_file" >&6;}
11026
24270
    rm -f "$ac_file"
11027
24271
  fi
11028
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
11029
 
  # use $as_me), people would be surprised to read:
11030
 
  #    /* config.h.  Generated automatically by config.status.  */
11031
 
  configure_input="Generated automatically from `echo $ac_file_in |
11032
 
                                                 sed 's,.*/,,'` by configure."
11033
 
 
11034
 
  # First look for the input files in the build tree, otherwise in the
11035
 
  # src tree.
11036
 
  ac_file_inputs=`IFS=:
11037
 
    for f in $ac_file_in; do
11038
 
      case $f in
11039
 
      -) echo $tmp/stdin ;;
11040
 
      [\\/$]*)
11041
 
         # Absolute (can't be DOS-style, as IFS=:)
11042
 
         test -f "$f" || { { echo "$as_me:11042: error: cannot find input file: $f" >&5
11043
 
echo "$as_me: error: cannot find input file: $f" >&2;}
11044
 
   { (exit 1); exit 1; }; }
11045
 
         echo $f;;
11046
 
      *) # Relative
11047
 
         if test -f "$f"; then
11048
 
           # Build tree
11049
 
           echo $f
11050
 
         elif test -f "$srcdir/$f"; then
11051
 
           # Source tree
11052
 
           echo $srcdir/$f
11053
 
         else
11054
 
           # /dev/null tree
11055
 
           { { echo "$as_me:11055: error: cannot find input file: $f" >&5
11056
 
echo "$as_me: error: cannot find input file: $f" >&2;}
11057
 
   { (exit 1); exit 1; }; }
11058
 
         fi;;
11059
 
      esac
11060
 
    done` || { (exit 1); exit 1; }
11061
 
EOF
11062
 
cat >>$CONFIG_STATUS <<EOF
 
24272
_ACEOF
 
24273
cat >>$CONFIG_STATUS <<_ACEOF
11063
24274
  sed "$ac_vpsub
11064
24275
$extrasub
11065
 
EOF
11066
 
cat >>$CONFIG_STATUS <<\EOF
 
24276
_ACEOF
 
24277
cat >>$CONFIG_STATUS <<\_ACEOF
11067
24278
:t
11068
24279
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11069
24280
s,@configure_input@,$configure_input,;t t
11070
24281
s,@srcdir@,$ac_srcdir,;t t
 
24282
s,@abs_srcdir@,$ac_abs_srcdir,;t t
11071
24283
s,@top_srcdir@,$ac_top_srcdir,;t t
 
24284
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
24285
s,@builddir@,$ac_builddir,;t t
 
24286
s,@abs_builddir@,$ac_abs_builddir,;t t
 
24287
s,@top_builddir@,$ac_top_builddir,;t t
 
24288
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11072
24289
s,@INSTALL@,$ac_INSTALL,;t t
11073
24290
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11074
24291
  rm -f $tmp/stdin
11080
24297
  fi
11081
24298
 
11082
24299
done
11083
 
EOF
11084
 
cat >>$CONFIG_STATUS <<\EOF
 
24300
_ACEOF
 
24301
cat >>$CONFIG_STATUS <<\_ACEOF
11085
24302
 
11086
24303
#
11087
24304
# CONFIG_HEADER section.
11091
24308
# NAME is the cpp macro being defined and VALUE is the value it is being given.
11092
24309
#
11093
24310
# ac_d sets the value in "#define NAME VALUE" lines.
11094
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
11095
 
ac_dB='[        ].*$,\1#\2'
 
24311
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
24312
ac_dB='[         ].*$,\1#\2'
11096
24313
ac_dC=' '
11097
24314
ac_dD=',;t'
11098
24315
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11099
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
24316
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11100
24317
ac_uB='$,\1#\2define\3'
11101
24318
ac_uC=' '
11102
24319
ac_uD=',;t'
11105
24322
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11106
24323
  case $ac_file in
11107
24324
  - | *:- | *:-:* ) # input from stdin
11108
 
        cat >$tmp/stdin
11109
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11110
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
24325
        cat >$tmp/stdin
 
24326
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
24327
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11111
24328
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11112
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
24329
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11113
24330
  * )   ac_file_in=$ac_file.in ;;
11114
24331
  esac
11115
24332
 
11116
 
  test x"$ac_file" != x- && { echo "$as_me:11116: creating $ac_file" >&5
 
24333
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11117
24334
echo "$as_me: creating $ac_file" >&6;}
11118
24335
 
11119
24336
  # First look for the input files in the build tree, otherwise in the
11123
24340
      case $f in
11124
24341
      -) echo $tmp/stdin ;;
11125
24342
      [\\/$]*)
11126
 
         # Absolute (can't be DOS-style, as IFS=:)
11127
 
         test -f "$f" || { { echo "$as_me:11127: error: cannot find input file: $f" >&5
 
24343
         # Absolute (can't be DOS-style, as IFS=:)
 
24344
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11128
24345
echo "$as_me: error: cannot find input file: $f" >&2;}
11129
24346
   { (exit 1); exit 1; }; }
11130
 
         echo $f;;
 
24347
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
24348
         echo "$f";;
11131
24349
      *) # Relative
11132
 
         if test -f "$f"; then
11133
 
           # Build tree
11134
 
           echo $f
11135
 
         elif test -f "$srcdir/$f"; then
11136
 
           # Source tree
11137
 
           echo $srcdir/$f
11138
 
         else
11139
 
           # /dev/null tree
11140
 
           { { echo "$as_me:11140: error: cannot find input file: $f" >&5
 
24350
         if test -f "$f"; then
 
24351
           # Build tree
 
24352
           echo "$f"
 
24353
         elif test -f "$srcdir/$f"; then
 
24354
           # Source tree
 
24355
           echo "$srcdir/$f"
 
24356
         else
 
24357
           # /dev/null tree
 
24358
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11141
24359
echo "$as_me: error: cannot find input file: $f" >&2;}
11142
24360
   { (exit 1); exit 1; }; }
11143
 
         fi;;
 
24361
         fi;;
11144
24362
      esac
11145
24363
    done` || { (exit 1); exit 1; }
11146
24364
  # Remove the trailing spaces.
11147
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
24365
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11148
24366
 
11149
 
EOF
 
24367
_ACEOF
11150
24368
 
11151
24369
# Transform confdefs.h into two sed scripts, `conftest.defines' and
11152
24370
# `conftest.undefs', that substitutes the proper values into
11162
24380
# `end' is used to avoid that the second main sed command (meant for
11163
24381
# 0-ary CPP macros) applies to n-ary macro definitions.
11164
24382
# See the Autoconf documentation for `clear'.
11165
 
cat >confdef2sed.sed <<\EOF
 
24383
cat >confdef2sed.sed <<\_ACEOF
11166
24384
s/[\\&,]/\\&/g
11167
24385
s,[\\$`],\\&,g
11168
24386
t clear
11169
24387
: clear
11170
 
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
 
24388
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11171
24389
t end
11172
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
24390
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11173
24391
: end
11174
 
EOF
 
24392
_ACEOF
11175
24393
# If some macros were called several times there might be several times
11176
24394
# the same #defines, which is useless.  Nevertheless, we may not want to
11177
24395
# sort them, since we want the *last* AC-DEFINE to be honored.
11182
24400
# This sed command replaces #undef with comments.  This is necessary, for
11183
24401
# example, in the case of _POSIX_SOURCE, which is predefined and required
11184
24402
# on some systems where configure will not decide to define it.
11185
 
cat >>conftest.undefs <<\EOF
11186
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11187
 
EOF
 
24403
cat >>conftest.undefs <<\_ACEOF
 
24404
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
24405
_ACEOF
11188
24406
 
11189
24407
# Break up conftest.defines because some shells have a limit on the size
11190
24408
# of here documents, and old seds have small limits too (100 cmds).
11191
24409
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11192
 
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
24410
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11193
24411
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11194
24412
echo '  :' >>$CONFIG_STATUS
11195
24413
rm -f conftest.tail
11198
24416
  # Write a limited-size here document to $tmp/defines.sed.
11199
24417
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11200
24418
  # Speed up: don't consider the non `#define' lines.
11201
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
24419
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11202
24420
  # Work around the forget-to-reset-the-flag bug.
11203
24421
  echo 't clr' >>$CONFIG_STATUS
11204
24422
  echo ': clr' >>$CONFIG_STATUS
11213
24431
  mv conftest.tail conftest.defines
11214
24432
done
11215
24433
rm -f conftest.defines
11216
 
echo '  fi # egrep' >>$CONFIG_STATUS
 
24434
echo '  fi # grep' >>$CONFIG_STATUS
11217
24435
echo >>$CONFIG_STATUS
11218
24436
 
11219
24437
# Break up conftest.undefs because some shells have a limit on the size
11225
24443
  # Write a limited-size here document to $tmp/undefs.sed.
11226
24444
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11227
24445
  # Speed up: don't consider the non `#undef'
11228
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
24446
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11229
24447
  # Work around the forget-to-reset-the-flag bug.
11230
24448
  echo 't clr' >>$CONFIG_STATUS
11231
24449
  echo ': clr' >>$CONFIG_STATUS
11241
24459
done
11242
24460
rm -f conftest.undefs
11243
24461
 
11244
 
cat >>$CONFIG_STATUS <<\EOF
 
24462
cat >>$CONFIG_STATUS <<\_ACEOF
11245
24463
  # Let's still pretend it is `configure' which instantiates (i.e., don't
11246
24464
  # use $as_me), people would be surprised to read:
11247
 
  #    /* config.h.  Generated automatically by config.status.  */
 
24465
  #    /* config.h.  Generated by config.status.  */
11248
24466
  if test x"$ac_file" = x-; then
11249
 
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
 
24467
    echo "/* Generated by configure.  */" >$tmp/config.h
11250
24468
  else
11251
 
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
 
24469
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11252
24470
  fi
11253
24471
  cat $tmp/in >>$tmp/config.h
11254
24472
  rm -f $tmp/in
11255
24473
  if test x"$ac_file" != x-; then
11256
 
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11257
 
      { echo "$as_me:11257: $ac_file is unchanged" >&5
 
24474
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
24475
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11258
24476
echo "$as_me: $ac_file is unchanged" >&6;}
11259
24477
    else
11260
 
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11261
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
11262
 
         X"$ac_file" : 'X\(//\)$' \| \
11263
 
         X"$ac_file" : 'X\(/\)' \| \
11264
 
         .     : '\(.\)' 2>/dev/null ||
 
24478
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
24479
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24480
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
24481
         X"$ac_file" : 'X\(//\)$' \| \
 
24482
         X"$ac_file" : 'X\(/\)' \| \
 
24483
         .     : '\(.\)' 2>/dev/null ||
11265
24484
echo X"$ac_file" |
11266
24485
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11267
24486
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11268
24487
          /^X\(\/\/\)$/{ s//\1/; q; }
11269
24488
          /^X\(\/\).*/{ s//\1/; q; }
11270
24489
          s/.*/./; q'`
11271
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11272
 
        { case "$ac_dir" in
11273
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11274
 
  *)                      as_incr_dir=.;;
11275
 
esac
11276
 
as_dummy="$ac_dir"
11277
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11278
 
  case $as_mkdir_dir in
11279
 
    # Skip DOS drivespec
11280
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
11281
 
    *)
11282
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
11283
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11284
 
    ;;
11285
 
  esac
11286
 
done; }
 
24490
      { if $as_mkdir_p; then
 
24491
    mkdir -p "$ac_dir"
 
24492
  else
 
24493
    as_dir="$ac_dir"
 
24494
    as_dirs=
 
24495
    while test ! -d "$as_dir"; do
 
24496
      as_dirs="$as_dir $as_dirs"
 
24497
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24498
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24499
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24500
         X"$as_dir" : 'X\(//\)$' \| \
 
24501
         X"$as_dir" : 'X\(/\)' \| \
 
24502
         .     : '\(.\)' 2>/dev/null ||
 
24503
echo X"$as_dir" |
 
24504
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24505
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24506
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24507
          /^X\(\/\).*/{ s//\1/; q; }
 
24508
          s/.*/./; q'`
 
24509
    done
 
24510
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24511
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
24512
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
24513
   { (exit 1); exit 1; }; }; }
11287
24514
 
11288
 
      fi
11289
24515
      rm -f $ac_file
11290
24516
      mv $tmp/config.h $ac_file
11291
24517
    fi
11296
24522
  # Run the commands associated with the file.
11297
24523
  case $ac_file in
11298
24524
    config.h ) # update the timestamp
11299
 
echo timestamp >"./stamp-h1"
 
24525
echo 'timestamp for config.h' >"./stamp-h1"
11300
24526
 ;;
11301
24527
  esac
11302
24528
done
11303
 
EOF
11304
 
cat >>$CONFIG_STATUS <<\EOF
 
24529
_ACEOF
 
24530
cat >>$CONFIG_STATUS <<\_ACEOF
11305
24531
 
11306
24532
#
11307
24533
# CONFIG_COMMANDS section.
11309
24535
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11310
24536
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11311
24537
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11312
 
 
 
24538
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
24539
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24540
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
24541
         X"$ac_dest" : 'X\(//\)$' \| \
 
24542
         X"$ac_dest" : 'X\(/\)' \| \
 
24543
         .     : '\(.\)' 2>/dev/null ||
 
24544
echo X"$ac_dest" |
 
24545
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24546
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24547
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24548
          /^X\(\/\).*/{ s//\1/; q; }
 
24549
          s/.*/./; q'`
 
24550
  { if $as_mkdir_p; then
 
24551
    mkdir -p "$ac_dir"
 
24552
  else
 
24553
    as_dir="$ac_dir"
 
24554
    as_dirs=
 
24555
    while test ! -d "$as_dir"; do
 
24556
      as_dirs="$as_dir $as_dirs"
 
24557
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24558
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24559
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24560
         X"$as_dir" : 'X\(//\)$' \| \
 
24561
         X"$as_dir" : 'X\(/\)' \| \
 
24562
         .     : '\(.\)' 2>/dev/null ||
 
24563
echo X"$as_dir" |
 
24564
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24565
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24566
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24567
          /^X\(\/\).*/{ s//\1/; q; }
 
24568
          s/.*/./; q'`
 
24569
    done
 
24570
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24571
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
24572
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
24573
   { (exit 1); exit 1; }; }; }
 
24574
 
 
24575
  ac_builddir=.
 
24576
 
 
24577
if test "$ac_dir" != .; then
 
24578
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
24579
  # A "../" for each directory in $ac_dir_suffix.
 
24580
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
24581
else
 
24582
  ac_dir_suffix= ac_top_builddir=
 
24583
fi
 
24584
 
 
24585
case $srcdir in
 
24586
  .)  # No --srcdir option.  We are building in place.
 
24587
    ac_srcdir=.
 
24588
    if test -z "$ac_top_builddir"; then
 
24589
       ac_top_srcdir=.
 
24590
    else
 
24591
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
24592
    fi ;;
 
24593
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
24594
    ac_srcdir=$srcdir$ac_dir_suffix;
 
24595
    ac_top_srcdir=$srcdir ;;
 
24596
  *) # Relative path.
 
24597
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
24598
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
24599
esac
 
24600
 
 
24601
# Do not use `cd foo && pwd` to compute absolute paths, because
 
24602
# the directories may not exist.
 
24603
case `pwd` in
 
24604
.) ac_abs_builddir="$ac_dir";;
 
24605
*)
 
24606
  case "$ac_dir" in
 
24607
  .) ac_abs_builddir=`pwd`;;
 
24608
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
24609
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
24610
  esac;;
 
24611
esac
 
24612
case $ac_abs_builddir in
 
24613
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24614
*)
 
24615
  case ${ac_top_builddir}. in
 
24616
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
24617
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24618
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
24619
  esac;;
 
24620
esac
 
24621
case $ac_abs_builddir in
 
24622
.) ac_abs_srcdir=$ac_srcdir;;
 
24623
*)
 
24624
  case $ac_srcdir in
 
24625
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
24626
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
24627
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
24628
  esac;;
 
24629
esac
 
24630
case $ac_abs_builddir in
 
24631
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24632
*)
 
24633
  case $ac_top_srcdir in
 
24634
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
24635
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24636
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
24637
  esac;;
 
24638
esac
 
24639
 
 
24640
 
 
24641
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
24642
echo "$as_me: executing $ac_dest commands" >&6;}
11313
24643
  case $ac_dest in
11314
24644
    buildir )   ax_enable_builddir=`grep "continue configure in default builddir " config.log |
11315
24645
    $ax_enable_builddir_sed -e "s/.*continue configure in default builddir //"`
11316
24646
  ac_top_srcdir="$ax_enable_builddir_srcdir"
11317
24647
  if test ".$ax_enable_builddir" = "." ; then
11318
24648
    if test -f "$top_srcdir/Makefile" ; then
11319
 
      { echo "$as_me:11319: skipping top_srcdir/Makefile - left untouched" >&5
 
24649
      { echo "$as_me:$LINENO: skipping top_srcdir/Makefile - left untouched" >&5
11320
24650
echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
11321
24651
    else
11322
 
      { echo "$as_me:11322: skipping top_srcdir/Makefile - not created" >&5
 
24652
      { echo "$as_me:$LINENO: skipping top_srcdir/Makefile - not created" >&5
11323
24653
echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
11324
24654
    fi
11325
24655
  else
11336
24666
      cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
11337
24667
    fi
11338
24668
    if test ! -f "$ac_top_srcdir/Makefile" ; then
11339
 
      { echo "$as_me:11339: create top_srcdir/Makefile guessed from local Makefile" >&5
 
24669
      { echo "$as_me:$LINENO: create top_srcdir/Makefile guessed from local Makefile" >&5
11340
24670
echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
11341
24671
      x='`' ; cat >$tmp/conftemp.sed <<_EOF
11342
24672
/^\$/n
11404
24734
      cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
11405
24735
      $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
11406
24736
      if test -f "$ac_top_srcdir/Makefile.mk" ; then
11407
 
        { echo "$as_me:11407: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
 
24737
        { echo "$as_me:$LINENO: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
11408
24738
echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
11409
24739
        cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
11410
24740
      fi ; xxxx="####"
11411
24741
      echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
11412
24742
      # sanity check
11413
24743
      if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
11414
 
        { echo "$as_me:11414: buggy sed found - it deletes tab in \"a\" text parts" >&5
 
24744
        { echo "$as_me:$LINENO: buggy sed found - it deletes tab in \"a\" text parts" >&5
11415
24745
echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
11416
24746
        $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
11417
24747
          >$ac_top_srcdir/Makefile~
11425
24755
        cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
11426
24756
        cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
11427
24757
      if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
11428
 
        { echo "$as_me:11428: keeping top_srcdir/Makefile from earlier configure" >&5
 
24758
        { echo "$as_me:$LINENO: keeping top_srcdir/Makefile from earlier configure" >&5
11429
24759
echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
11430
24760
        rm "$tmp/mkfile.tmp"
11431
24761
      else
11432
 
        { echo "$as_me:11432: reusing top_srcdir/Makefile from earlier configure" >&5
 
24762
        { echo "$as_me:$LINENO: reusing top_srcdir/Makefile from earlier configure" >&5
11433
24763
echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
11434
24764
        mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
11435
24765
      fi
11436
24766
    fi
11437
 
    { echo "$as_me:11437: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
 
24767
    { echo "$as_me:$LINENO: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
11438
24768
echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
11439
24769
    xxxx="####"
11440
24770
    echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
11441
24771
  fi
11442
24772
 ;;
11443
 
    default-1 )
11444
 
test x"$AMDEP_TRUE" != x"" ||
11445
 
for mf in $CONFIG_FILES; do
11446
 
  case "$mf" in
11447
 
  Makefile) dirpart=.;;
11448
 
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
11449
 
  *) continue;;
11450
 
  esac
 
24773
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
24774
  # Strip MF so we end up with the name of the file.
 
24775
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
24776
  # Check whether this is an Automake generated Makefile or not.
 
24777
  # We used to match only the files named `Makefile.in', but
 
24778
  # some people rename them; so instead we look at the file content.
 
24779
  # Grep'ing the first line is not enough: some people post-process
 
24780
  # each Makefile.in and add a new line on top of each file to say so.
 
24781
  # So let's grep whole file.
 
24782
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
24783
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
24784
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24785
         X"$mf" : 'X\(//\)[^/]' \| \
 
24786
         X"$mf" : 'X\(//\)$' \| \
 
24787
         X"$mf" : 'X\(/\)' \| \
 
24788
         .     : '\(.\)' 2>/dev/null ||
 
24789
echo X"$mf" |
 
24790
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24791
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24792
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24793
          /^X\(\/\).*/{ s//\1/; q; }
 
24794
          s/.*/./; q'`
 
24795
  else
 
24796
    continue
 
24797
  fi
11451
24798
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
11452
24799
  # Extract the definition of DEP_FILES from the Makefile without
11453
24800
  # running `make'.
11472
24819
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11473
24820
    # Make sure the directory exists.
11474
24821
    test -f "$dirpart/$file" && continue
11475
 
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
11476
 
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
 
24822
    fdir=`(dirname "$file") 2>/dev/null ||
 
24823
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24824
         X"$file" : 'X\(//\)[^/]' \| \
 
24825
         X"$file" : 'X\(//\)$' \| \
 
24826
         X"$file" : 'X\(/\)' \| \
 
24827
         .     : '\(.\)' 2>/dev/null ||
 
24828
echo X"$file" |
 
24829
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24830
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24831
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24832
          /^X\(\/\).*/{ s//\1/; q; }
 
24833
          s/.*/./; q'`
 
24834
    { if $as_mkdir_p; then
 
24835
    mkdir -p $dirpart/$fdir
 
24836
  else
 
24837
    as_dir=$dirpart/$fdir
 
24838
    as_dirs=
 
24839
    while test ! -d "$as_dir"; do
 
24840
      as_dirs="$as_dir $as_dirs"
 
24841
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24842
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24843
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24844
         X"$as_dir" : 'X\(//\)$' \| \
 
24845
         X"$as_dir" : 'X\(/\)' \| \
 
24846
         .     : '\(.\)' 2>/dev/null ||
 
24847
echo X"$as_dir" |
 
24848
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24849
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24850
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24851
          /^X\(\/\).*/{ s//\1/; q; }
 
24852
          s/.*/./; q'`
 
24853
    done
 
24854
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24855
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
24856
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
24857
   { (exit 1); exit 1; }; }; }
 
24858
 
11477
24859
    # echo "creating $dirpart/$file"
11478
24860
    echo '# dummy' > "$dirpart/$file"
11479
24861
  done
11505
24887
   esac
11506
24888
fi
11507
24889
if test -z "$ac_prefix_conf_PKG" ; then
11508
 
   { { echo "$as_me:11508: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
 
24890
   { { echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
11509
24891
echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
11510
24892
   { (exit 1); exit 1; }; }
11511
24893
else
11512
24894
  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
11513
24895
     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
11514
24896
  fi fi
11515
 
  { echo "$as_me:11515: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
 
24897
  { echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
11516
24898
echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
11517
24899
  if test -f $ac_prefix_conf_INP ; then
11518
24900
    echo "s/#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
11534
24916
    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
11535
24917
    echo "#endif" >>$tmp/pconfig.h
11536
24918
    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
11537
 
      { echo "$as_me:11537: $ac_prefix_conf_OUT is unchanged" >&5
 
24919
      { echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
11538
24920
echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
11539
24921
    else
11540
 
      ac_dir=`$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11541
 
         X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
11542
 
         X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
11543
 
         X"$ac_prefix_conf_OUT" : 'X\(/\)' \| \
11544
 
         .     : '\(.\)' 2>/dev/null ||
 
24922
      ac_dir=`(dirname "$ac_prefix_conf_OUT") 2>/dev/null ||
 
24923
$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24924
         X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
 
24925
         X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
 
24926
         X"$ac_prefix_conf_OUT" : 'X\(/\)' \| \
 
24927
         .     : '\(.\)' 2>/dev/null ||
11545
24928
echo X"$ac_prefix_conf_OUT" |
11546
24929
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11547
24930
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11548
24931
          /^X\(\/\/\)$/{ s//\1/; q; }
11549
24932
          /^X\(\/\).*/{ s//\1/; q; }
11550
24933
          s/.*/./; q'`
11551
 
      { case "$ac_dir" in
11552
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11553
 
  *)                      as_incr_dir=.;;
11554
 
esac
11555
 
as_dummy="$ac_dir"
11556
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11557
 
  case $as_mkdir_dir in
11558
 
    # Skip DOS drivespec
11559
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
11560
 
    *)
11561
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
11562
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11563
 
    ;;
11564
 
  esac
11565
 
done; }
 
24934
      { if $as_mkdir_p; then
 
24935
    mkdir -p "$ac_dir"
 
24936
  else
 
24937
    as_dir="$ac_dir"
 
24938
    as_dirs=
 
24939
    while test ! -d "$as_dir"; do
 
24940
      as_dirs="$as_dir $as_dirs"
 
24941
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24942
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24943
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24944
         X"$as_dir" : 'X\(//\)$' \| \
 
24945
         X"$as_dir" : 'X\(/\)' \| \
 
24946
         .     : '\(.\)' 2>/dev/null ||
 
24947
echo X"$as_dir" |
 
24948
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24949
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24950
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24951
          /^X\(\/\).*/{ s//\1/; q; }
 
24952
          s/.*/./; q'`
 
24953
    done
 
24954
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24955
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
24956
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
24957
   { (exit 1); exit 1; }; }; }
11566
24958
 
11567
24959
      rm -f "$ac_prefix_conf_OUT"
11568
24960
      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
11569
24961
    fi
11570
24962
    cp conftest.prefix _configs.sed
11571
24963
  else
11572
 
    { { echo "$as_me:11572: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
 
24964
    { { echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
11573
24965
echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
11574
24966
   { (exit 1); exit 1; }; }
11575
24967
  fi
11602
24994
   esac
11603
24995
fi
11604
24996
if test -z "$ac_prefix_conf_PKG" ; then
11605
 
   { { echo "$as_me:11605: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
 
24997
   { { echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
11606
24998
echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
11607
24999
   { (exit 1); exit 1; }; }
11608
25000
else
11609
25001
  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
11610
25002
     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
11611
25003
  fi fi
11612
 
  { echo "$as_me:11612: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
 
25004
  { echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
11613
25005
echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
11614
25006
  if test -f $ac_prefix_conf_INP ; then
11615
25007
    echo "s/#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
11631
25023
    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
11632
25024
    echo "#endif" >>$tmp/pconfig.h
11633
25025
    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
11634
 
      { echo "$as_me:11634: $ac_prefix_conf_OUT is unchanged" >&5
 
25026
      { echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
11635
25027
echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
11636
25028
    else
11637
 
      ac_dir=`$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11638
 
         X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
11639
 
         X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
11640
 
         X"$ac_prefix_conf_OUT" : 'X\(/\)' \| \
11641
 
         .     : '\(.\)' 2>/dev/null ||
 
25029
      ac_dir=`(dirname "$ac_prefix_conf_OUT") 2>/dev/null ||
 
25030
$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25031
         X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
 
25032
         X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
 
25033
         X"$ac_prefix_conf_OUT" : 'X\(/\)' \| \
 
25034
         .     : '\(.\)' 2>/dev/null ||
11642
25035
echo X"$ac_prefix_conf_OUT" |
11643
25036
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11644
25037
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11645
25038
          /^X\(\/\/\)$/{ s//\1/; q; }
11646
25039
          /^X\(\/\).*/{ s//\1/; q; }
11647
25040
          s/.*/./; q'`
11648
 
      { case "$ac_dir" in
11649
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11650
 
  *)                      as_incr_dir=.;;
11651
 
esac
11652
 
as_dummy="$ac_dir"
11653
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11654
 
  case $as_mkdir_dir in
11655
 
    # Skip DOS drivespec
11656
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
11657
 
    *)
11658
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
11659
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11660
 
    ;;
11661
 
  esac
11662
 
done; }
 
25041
      { if $as_mkdir_p; then
 
25042
    mkdir -p "$ac_dir"
 
25043
  else
 
25044
    as_dir="$ac_dir"
 
25045
    as_dirs=
 
25046
    while test ! -d "$as_dir"; do
 
25047
      as_dirs="$as_dir $as_dirs"
 
25048
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25049
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25050
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25051
         X"$as_dir" : 'X\(//\)$' \| \
 
25052
         X"$as_dir" : 'X\(/\)' \| \
 
25053
         .     : '\(.\)' 2>/dev/null ||
 
25054
echo X"$as_dir" |
 
25055
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25056
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25057
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25058
          /^X\(\/\).*/{ s//\1/; q; }
 
25059
          s/.*/./; q'`
 
25060
    done
 
25061
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25062
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25063
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25064
   { (exit 1); exit 1; }; }; }
11663
25065
 
11664
25066
      rm -f "$ac_prefix_conf_OUT"
11665
25067
      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
11666
25068
    fi
11667
25069
    cp conftest.prefix _configs.sed
11668
25070
  else
11669
 
    { { echo "$as_me:11669: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
 
25071
    { { echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
11670
25072
echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
11671
25073
   { (exit 1); exit 1; }; }
11672
25074
  fi
11675
25077
 ;;
11676
25078
  esac
11677
25079
done
11678
 
EOF
 
25080
_ACEOF
11679
25081
 
11680
 
cat >>$CONFIG_STATUS <<\EOF
 
25082
cat >>$CONFIG_STATUS <<\_ACEOF
11681
25083
 
11682
25084
{ (exit 0); exit 0; }
11683
 
EOF
 
25085
_ACEOF
11684
25086
chmod +x $CONFIG_STATUS
11685
25087
ac_clean_files=$ac_clean_files_save
11686
25088
 
 
25089
 
11687
25090
# configure is writing to config.log, and then calls config.status.
11688
25091
# config.status does its own redirection, appending to config.log.
11689
25092
# Unfortunately, on DOS this fails, as config.log is still kept open
11694
25097
# need to make the FD available again.
11695
25098
if test "$no_create" != yes; then
11696
25099
  ac_cs_success=:
 
25100
  ac_config_status_args=
 
25101
  test "$silent" = yes &&
 
25102
    ac_config_status_args="$ac_config_status_args --quiet"
11697
25103
  exec 5>/dev/null
11698
 
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
25104
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11699
25105
  exec 5>>config.log
11700
25106
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11701
25107
  # would make configure fail if this is the last instruction.
11706
25112
case "$host_os" in
11707
25113
  darwin*)
11708
25114
    if grep "1.92" libtool >/dev/null ; then
11709
 
echo "$as_me:11709: result: patching libtool on .so-sharedlib creation (zsh overquoting)" >&5
 
25115
echo "$as_me:$LINENO: result: patching libtool on .so-sharedlib creation (zsh overquoting)" >&5
11710
25116
echo "${ECHO_T}patching libtool on .so-sharedlib creation (zsh overquoting)" >&6
11711
25117
      test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
11712
25118
      sed -e '/archive_cmds=/s:[\\][\\][\\]*":\\":g' libtool >libtool.new
11720
25126
# patch libtool to fix sys_lib_search_path (e.g. crosscompiling a win32 dll)
11721
25127
if test "_$PATH_SEPARATOR" = "_:" ; then
11722
25128
  if grep "^sys_lib_search_path_spec.*:" libtool >/dev/null ; then
11723
 
echo "$as_me:11723: result: patching libtool to fix sys_lib_search_path_spec" >&5
 
25129
echo "$as_me:$LINENO: result: patching libtool to fix sys_lib_search_path_spec" >&5
11724
25130
echo "${ECHO_T}patching libtool to fix sys_lib_search_path_spec" >&6
11725
25131
    test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
11726
25132
    sed -e "/^sys_lib_search_path_spec/s/:/ /g" libtool >libtool.new
11739
25145
      test -x $i/cc && HOST_CC=$i/cc
11740
25146
      done
11741
25147
    fi
11742
 
echo "$as_me:11742: result: patching libtool to add HOST_CC=$HOST_CC" >&5
 
25148
echo "$as_me:$LINENO: result: patching libtool to add HOST_CC=$HOST_CC" >&5
11743
25149
echo "${ECHO_T}patching libtool to add HOST_CC=$HOST_CC" >&6
11744
25150
    test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
11745
25151
    sed -e "/BEGIN.*LIBTOOL.*CONFIG/a\\