configure revision d9c7fc6c
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libXevie 1.0.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='libXevie'
425PACKAGE_TARNAME='libXevie'
426PACKAGE_VERSION='1.0.2'
427PACKAGE_STRING='libXevie 1.0.2'
428PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XEVIE_CFLAGS XEVIE_LIBS MALLOC_ZERO_CFLAGS XMALLOC_ZERO_CFLAGS XTMALLOC_ZERO_CFLAGS APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826	      localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866	 X"$0" : 'X\(//\)[^/]' \| \
867	 X"$0" : 'X\(//\)$' \| \
868	 X"$0" : 'X\(/\)' \| \
869	 .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
949ac_env_PKG_CONFIG_value=$PKG_CONFIG
950ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952ac_env_XEVIE_CFLAGS_set=${XEVIE_CFLAGS+set}
953ac_env_XEVIE_CFLAGS_value=$XEVIE_CFLAGS
954ac_cv_env_XEVIE_CFLAGS_set=${XEVIE_CFLAGS+set}
955ac_cv_env_XEVIE_CFLAGS_value=$XEVIE_CFLAGS
956ac_env_XEVIE_LIBS_set=${XEVIE_LIBS+set}
957ac_env_XEVIE_LIBS_value=$XEVIE_LIBS
958ac_cv_env_XEVIE_LIBS_set=${XEVIE_LIBS+set}
959ac_cv_env_XEVIE_LIBS_value=$XEVIE_LIBS
960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965  # Omit some internal or obsolete options to make the list less imposing.
966  # This message is too long to be a string in the A/UX 3.1 sh.
967  cat <<_ACEOF
968\`configure' configures libXevie 1.0.2 to adapt to many kinds of systems.
969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978  -h, --help              display this help and exit
979      --help=short        display options specific to this package
980      --help=recursive    display the short help of all the included packages
981  -V, --version           display version information and exit
982  -q, --quiet, --silent   do not print \`checking...' messages
983      --cache-file=FILE   cache test results in FILE [disabled]
984  -C, --config-cache      alias for \`--cache-file=config.cache'
985  -n, --no-create         do not create output files
986      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990  cat <<_ACEOF
991Installation directories:
992  --prefix=PREFIX         install architecture-independent files in PREFIX
993			  [$ac_default_prefix]
994  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995			  [PREFIX]
996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005  --bindir=DIR           user executables [EPREFIX/bin]
1006  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007  --libexecdir=DIR       program executables [EPREFIX/libexec]
1008  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012  --libdir=DIR           object code libraries [EPREFIX/lib]
1013  --includedir=DIR       C header files [PREFIX/include]
1014  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015  --infodir=DIR          info documentation [PREFIX/info]
1016  --mandir=DIR           man documentation [PREFIX/man]
1017_ACEOF
1018
1019  cat <<\_ACEOF
1020
1021Program names:
1022  --program-prefix=PREFIX            prepend PREFIX to installed program names
1023  --program-suffix=SUFFIX            append SUFFIX to installed program names
1024  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1025
1026System types:
1027  --build=BUILD     configure for building on BUILD [guessed]
1028  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1029_ACEOF
1030fi
1031
1032if test -n "$ac_init_help"; then
1033  case $ac_init_help in
1034     short | recursive ) echo "Configuration of libXevie 1.0.2:";;
1035   esac
1036  cat <<\_ACEOF
1037
1038Optional Features:
1039  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1040  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1041  --enable-maintainer-mode  enable make rules and dependencies not useful
1042			  (and sometimes confusing) to the casual installer
1043  --disable-dependency-tracking  speeds up one-time build
1044  --enable-dependency-tracking   do not reject slow dependency extractors
1045  --enable-shared[=PKGS]
1046                          build shared libraries [default=yes]
1047  --enable-static[=PKGS]
1048                          build static libraries [default=yes]
1049  --enable-fast-install[=PKGS]
1050                          optimize for fast installation [default=yes]
1051  --disable-libtool-lock  avoid locking (might break parallel builds)
1052  --enable-malloc0returnsnull
1053                          malloc(0) returns NULL (default: auto)
1054
1055Optional Packages:
1056  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1059  --with-pic              try to use only PIC/non-PIC objects [default=use
1060                          both]
1061  --with-tags[=TAGS]
1062                          include additional configurations [automatic]
1063  --with-release-version=STRING
1064                          Use release version string in package name
1065
1066Some influential environment variables:
1067  CC          C compiler command
1068  CFLAGS      C compiler flags
1069  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070              nonstandard directory <lib dir>
1071  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072              headers in a nonstandard directory <include dir>
1073  CPP         C preprocessor
1074  CXX         C++ compiler command
1075  CXXFLAGS    C++ compiler flags
1076  CXXCPP      C++ preprocessor
1077  F77         Fortran 77 compiler command
1078  FFLAGS      Fortran 77 compiler flags
1079  PKG_CONFIG  path to pkg-config utility
1080  XEVIE_CFLAGS
1081              C compiler flags for XEVIE, overriding pkg-config
1082  XEVIE_LIBS  linker flags for XEVIE, overriding pkg-config
1083
1084Use these variables to override the choices made by `configure' or to help
1085it to find libraries and programs with nonstandard names/locations.
1086
1087Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1088_ACEOF
1089fi
1090
1091if test "$ac_init_help" = "recursive"; then
1092  # If there are subdirs, report their specific --help.
1093  ac_popdir=`pwd`
1094  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1095    test -d $ac_dir || continue
1096    ac_builddir=.
1097
1098if test "$ac_dir" != .; then
1099  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1100  # A "../" for each directory in $ac_dir_suffix.
1101  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1102else
1103  ac_dir_suffix= ac_top_builddir=
1104fi
1105
1106case $srcdir in
1107  .)  # No --srcdir option.  We are building in place.
1108    ac_srcdir=.
1109    if test -z "$ac_top_builddir"; then
1110       ac_top_srcdir=.
1111    else
1112       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1113    fi ;;
1114  [\\/]* | ?:[\\/]* )  # Absolute path.
1115    ac_srcdir=$srcdir$ac_dir_suffix;
1116    ac_top_srcdir=$srcdir ;;
1117  *) # Relative path.
1118    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1119    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120esac
1121
1122# Do not use `cd foo && pwd` to compute absolute paths, because
1123# the directories may not exist.
1124case `pwd` in
1125.) ac_abs_builddir="$ac_dir";;
1126*)
1127  case "$ac_dir" in
1128  .) ac_abs_builddir=`pwd`;;
1129  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1130  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131  esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_top_builddir=${ac_top_builddir}.;;
1135*)
1136  case ${ac_top_builddir}. in
1137  .) ac_abs_top_builddir=$ac_abs_builddir;;
1138  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1139  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140  esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_srcdir=$ac_srcdir;;
1144*)
1145  case $ac_srcdir in
1146  .) ac_abs_srcdir=$ac_abs_builddir;;
1147  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1148  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149  esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_srcdir=$ac_top_srcdir;;
1153*)
1154  case $ac_top_srcdir in
1155  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1156  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1157  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158  esac;;
1159esac
1160
1161    cd $ac_dir
1162    # Check for guested configure; otherwise get Cygnus style configure.
1163    if test -f $ac_srcdir/configure.gnu; then
1164      echo
1165      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1166    elif test -f $ac_srcdir/configure; then
1167      echo
1168      $SHELL $ac_srcdir/configure  --help=recursive
1169    elif test -f $ac_srcdir/configure.ac ||
1170	   test -f $ac_srcdir/configure.in; then
1171      echo
1172      $ac_configure --help
1173    else
1174      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1175    fi
1176    cd $ac_popdir
1177  done
1178fi
1179
1180test -n "$ac_init_help" && exit 0
1181if $ac_init_version; then
1182  cat <<\_ACEOF
1183libXevie configure 1.0.2
1184generated by GNU Autoconf 2.59
1185
1186Copyright (C) 2003 Free Software Foundation, Inc.
1187This configure script is free software; the Free Software Foundation
1188gives unlimited permission to copy, distribute and modify it.
1189_ACEOF
1190  exit 0
1191fi
1192exec 5>config.log
1193cat >&5 <<_ACEOF
1194This file contains any messages produced by compilers while
1195running configure, to aid debugging if configure makes a mistake.
1196
1197It was created by libXevie $as_me 1.0.2, which was
1198generated by GNU Autoconf 2.59.  Invocation command line was
1199
1200  $ $0 $@
1201
1202_ACEOF
1203{
1204cat <<_ASUNAME
1205## --------- ##
1206## Platform. ##
1207## --------- ##
1208
1209hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1217
1218/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1219/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1220/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1222/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1223/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1224/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1225
1226_ASUNAME
1227
1228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229for as_dir in $PATH
1230do
1231  IFS=$as_save_IFS
1232  test -z "$as_dir" && as_dir=.
1233  echo "PATH: $as_dir"
1234done
1235
1236} >&5
1237
1238cat >&5 <<_ACEOF
1239
1240
1241## ----------- ##
1242## Core tests. ##
1243## ----------- ##
1244
1245_ACEOF
1246
1247
1248# Keep a trace of the command line.
1249# Strip out --no-create and --no-recursion so they do not pile up.
1250# Strip out --silent because we don't want to record it for future runs.
1251# Also quote any args containing shell meta-characters.
1252# Make two passes to allow for proper duplicate-argument suppression.
1253ac_configure_args=
1254ac_configure_args0=
1255ac_configure_args1=
1256ac_sep=
1257ac_must_keep_next=false
1258for ac_pass in 1 2
1259do
1260  for ac_arg
1261  do
1262    case $ac_arg in
1263    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265    | -silent | --silent | --silen | --sile | --sil)
1266      continue ;;
1267    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269    esac
1270    case $ac_pass in
1271    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272    2)
1273      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274      if test $ac_must_keep_next = true; then
1275	ac_must_keep_next=false # Got value, back to normal.
1276      else
1277	case $ac_arg in
1278	  *=* | --config-cache | -C | -disable-* | --disable-* \
1279	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281	  | -with-* | --with-* | -without-* | --without-* | --x)
1282	    case "$ac_configure_args0 " in
1283	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284	    esac
1285	    ;;
1286	  -* ) ac_must_keep_next=true ;;
1287	esac
1288      fi
1289      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290      # Get rid of the leading space.
1291      ac_sep=" "
1292      ;;
1293    esac
1294  done
1295done
1296$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298
1299# When interrupted or exit'd, cleanup temporary files, and complete
1300# config.log.  We remove comments because anyway the quotes in there
1301# would cause problems or look ugly.
1302# WARNING: Be sure not to use single quotes in there, as some shells,
1303# such as our DU 5.0 friend, will then `close' the trap.
1304trap 'exit_status=$?
1305  # Save into config.log some information that might help in debugging.
1306  {
1307    echo
1308
1309    cat <<\_ASBOX
1310## ---------------- ##
1311## Cache variables. ##
1312## ---------------- ##
1313_ASBOX
1314    echo
1315    # The following way of writing the cache mishandles newlines in values,
1316{
1317  (set) 2>&1 |
1318    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319    *ac_space=\ *)
1320      sed -n \
1321	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323      ;;
1324    *)
1325      sed -n \
1326	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327      ;;
1328    esac;
1329}
1330    echo
1331
1332    cat <<\_ASBOX
1333## ----------------- ##
1334## Output variables. ##
1335## ----------------- ##
1336_ASBOX
1337    echo
1338    for ac_var in $ac_subst_vars
1339    do
1340      eval ac_val=$`echo $ac_var`
1341      echo "$ac_var='"'"'$ac_val'"'"'"
1342    done | sort
1343    echo
1344
1345    if test -n "$ac_subst_files"; then
1346      cat <<\_ASBOX
1347## ------------- ##
1348## Output files. ##
1349## ------------- ##
1350_ASBOX
1351      echo
1352      for ac_var in $ac_subst_files
1353      do
1354	eval ac_val=$`echo $ac_var`
1355	echo "$ac_var='"'"'$ac_val'"'"'"
1356      done | sort
1357      echo
1358    fi
1359
1360    if test -s confdefs.h; then
1361      cat <<\_ASBOX
1362## ----------- ##
1363## confdefs.h. ##
1364## ----------- ##
1365_ASBOX
1366      echo
1367      sed "/^$/d" confdefs.h | sort
1368      echo
1369    fi
1370    test "$ac_signal" != 0 &&
1371      echo "$as_me: caught signal $ac_signal"
1372    echo "$as_me: exit $exit_status"
1373  } >&5
1374  rm -f core *.core &&
1375  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376    exit $exit_status
1377     ' 0
1378for ac_signal in 1 2 13 15; do
1379  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380done
1381ac_signal=0
1382
1383# confdefs.h avoids OS command line length limits that DEFS can exceed.
1384rm -rf conftest* confdefs.h
1385# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386echo >confdefs.h
1387
1388# Predefined preprocessor variables.
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_NAME "$PACKAGE_NAME"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_VERSION "$PACKAGE_VERSION"
1402_ACEOF
1403
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_STRING "$PACKAGE_STRING"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412_ACEOF
1413
1414
1415# Let the site file select an alternate cache file if it wants to.
1416# Prefer explicitly selected file to automatically selected ones.
1417if test -z "$CONFIG_SITE"; then
1418  if test "x$prefix" != xNONE; then
1419    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420  else
1421    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422  fi
1423fi
1424for ac_site_file in $CONFIG_SITE; do
1425  if test -r "$ac_site_file"; then
1426    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427echo "$as_me: loading site script $ac_site_file" >&6;}
1428    sed 's/^/| /' "$ac_site_file" >&5
1429    . "$ac_site_file"
1430  fi
1431done
1432
1433if test -r "$cache_file"; then
1434  # Some versions of bash will fail to source /dev/null (special
1435  # files actually), so we avoid doing that.
1436  if test -f "$cache_file"; then
1437    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438echo "$as_me: loading cache $cache_file" >&6;}
1439    case $cache_file in
1440      [\\/]* | ?:[\\/]* ) . $cache_file;;
1441      *)                      . ./$cache_file;;
1442    esac
1443  fi
1444else
1445  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446echo "$as_me: creating cache $cache_file" >&6;}
1447  >$cache_file
1448fi
1449
1450# Check that the precious variables saved in the cache have kept the same
1451# value.
1452ac_cache_corrupted=false
1453for ac_var in `(set) 2>&1 |
1454	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456  eval ac_new_set=\$ac_env_${ac_var}_set
1457  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458  eval ac_new_val="\$ac_env_${ac_var}_value"
1459  case $ac_old_set,$ac_new_set in
1460    set,)
1461      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463      ac_cache_corrupted=: ;;
1464    ,set)
1465      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467      ac_cache_corrupted=: ;;
1468    ,);;
1469    *)
1470      if test "x$ac_old_val" != "x$ac_new_val"; then
1471	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1474echo "$as_me:   former value:  $ac_old_val" >&2;}
1475	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1476echo "$as_me:   current value: $ac_new_val" >&2;}
1477	ac_cache_corrupted=:
1478      fi;;
1479  esac
1480  # Pass precious variables to config.status.
1481  if test "$ac_new_set" = set; then
1482    case $ac_new_val in
1483    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485    *) ac_arg=$ac_var=$ac_new_val ;;
1486    esac
1487    case " $ac_configure_args " in
1488      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1489      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490    esac
1491  fi
1492done
1493if $ac_cache_corrupted; then
1494  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498   { (exit 1); exit 1; }; }
1499fi
1500
1501ac_ext=c
1502ac_cpp='$CPP $CPPFLAGS'
1503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533am__api_version="1.9"
1534ac_aux_dir=
1535for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1536  if test -f $ac_dir/install-sh; then
1537    ac_aux_dir=$ac_dir
1538    ac_install_sh="$ac_aux_dir/install-sh -c"
1539    break
1540  elif test -f $ac_dir/install.sh; then
1541    ac_aux_dir=$ac_dir
1542    ac_install_sh="$ac_aux_dir/install.sh -c"
1543    break
1544  elif test -f $ac_dir/shtool; then
1545    ac_aux_dir=$ac_dir
1546    ac_install_sh="$ac_aux_dir/shtool install -c"
1547    break
1548  fi
1549done
1550if test -z "$ac_aux_dir"; then
1551  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1552echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1553   { (exit 1); exit 1; }; }
1554fi
1555ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
1559# Find a good install program.  We prefer a C program (faster),
1560# so one script is as good as another.  But avoid the broken or
1561# incompatible versions:
1562# SysV /etc/install, /usr/sbin/install
1563# SunOS /usr/etc/install
1564# IRIX /sbin/install
1565# AIX /bin/install
1566# AmigaOS /C/install, which installs bootblocks on floppy discs
1567# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1568# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1569# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1570# OS/2's system install, which has a completely different semantic
1571# ./install, which can be erroneously created by make from ./install.sh.
1572echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1573echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1574if test -z "$INSTALL"; then
1575if test "${ac_cv_path_install+set}" = set; then
1576  echo $ECHO_N "(cached) $ECHO_C" >&6
1577else
1578  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579for as_dir in $PATH
1580do
1581  IFS=$as_save_IFS
1582  test -z "$as_dir" && as_dir=.
1583  # Account for people who put trailing slashes in PATH elements.
1584case $as_dir/ in
1585  ./ | .// | /cC/* | \
1586  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1587  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1588  /usr/ucb/* ) ;;
1589  *)
1590    # OSF1 and SCO ODT 3.0 have their own names for install.
1591    # Don't use installbsd from OSF since it installs stuff as root
1592    # by default.
1593    for ac_prog in ginstall scoinst install; do
1594      for ac_exec_ext in '' $ac_executable_extensions; do
1595	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1596	  if test $ac_prog = install &&
1597	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1598	    # AIX install.  It has an incompatible calling convention.
1599	    :
1600	  elif test $ac_prog = install &&
1601	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602	    # program-specific install script used by HP pwplus--don't use.
1603	    :
1604	  else
1605	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1606	    break 3
1607	  fi
1608	fi
1609      done
1610    done
1611    ;;
1612esac
1613done
1614
1615
1616fi
1617  if test "${ac_cv_path_install+set}" = set; then
1618    INSTALL=$ac_cv_path_install
1619  else
1620    # As a last resort, use the slow shell script.  We don't cache a
1621    # path for INSTALL within a source directory, because that will
1622    # break other packages using the cache if that directory is
1623    # removed, or if the path is relative.
1624    INSTALL=$ac_install_sh
1625  fi
1626fi
1627echo "$as_me:$LINENO: result: $INSTALL" >&5
1628echo "${ECHO_T}$INSTALL" >&6
1629
1630# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1631# It thinks the first close brace ends the variable substitution.
1632test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1633
1634test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1635
1636test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1637
1638echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1639echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1640# Just in case
1641sleep 1
1642echo timestamp > conftest.file
1643# Do `set' in a subshell so we don't clobber the current shell's
1644# arguments.  Must try -L first in case configure is actually a
1645# symlink; some systems play weird games with the mod time of symlinks
1646# (eg FreeBSD returns the mod time of the symlink's containing
1647# directory).
1648if (
1649   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1650   if test "$*" = "X"; then
1651      # -L didn't work.
1652      set X `ls -t $srcdir/configure conftest.file`
1653   fi
1654   rm -f conftest.file
1655   if test "$*" != "X $srcdir/configure conftest.file" \
1656      && test "$*" != "X conftest.file $srcdir/configure"; then
1657
1658      # If neither matched, then we have a broken ls.  This can happen
1659      # if, for instance, CONFIG_SHELL is bash and it inherits a
1660      # broken ls alias from the environment.  This has actually
1661      # happened.  Such a system could not be considered "sane".
1662      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1663alias in your environment" >&5
1664echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1665alias in your environment" >&2;}
1666   { (exit 1); exit 1; }; }
1667   fi
1668
1669   test "$2" = conftest.file
1670   )
1671then
1672   # Ok.
1673   :
1674else
1675   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1676Check your system clock" >&5
1677echo "$as_me: error: newly created file is older than distributed files!
1678Check your system clock" >&2;}
1679   { (exit 1); exit 1; }; }
1680fi
1681echo "$as_me:$LINENO: result: yes" >&5
1682echo "${ECHO_T}yes" >&6
1683test "$program_prefix" != NONE &&
1684  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1685# Use a double $ so make ignores it.
1686test "$program_suffix" != NONE &&
1687  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1688# Double any \ or $.  echo might interpret backslashes.
1689# By default was `s,x,x', remove it if useless.
1690cat <<\_ACEOF >conftest.sed
1691s/[\\$]/&&/g;s/;s,x,x,$//
1692_ACEOF
1693program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1694rm conftest.sed
1695
1696# expand $ac_aux_dir to an absolute path
1697am_aux_dir=`cd $ac_aux_dir && pwd`
1698
1699test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1700# Use eval to expand $SHELL
1701if eval "$MISSING --run true"; then
1702  am_missing_run="$MISSING --run "
1703else
1704  am_missing_run=
1705  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1706echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1707fi
1708
1709if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1710  # We used to keeping the `.' as first argument, in order to
1711  # allow $(mkdir_p) to be used without argument.  As in
1712  #   $(mkdir_p) $(somedir)
1713  # where $(somedir) is conditionally defined.  However this is wrong
1714  # for two reasons:
1715  #  1. if the package is installed by a user who cannot write `.'
1716  #     make install will fail,
1717  #  2. the above comment should most certainly read
1718  #     $(mkdir_p) $(DESTDIR)$(somedir)
1719  #     so it does not work when $(somedir) is undefined and
1720  #     $(DESTDIR) is not.
1721  #  To support the latter case, we have to write
1722  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1723  #  so the `.' trick is pointless.
1724  mkdir_p='mkdir -p --'
1725else
1726  # On NextStep and OpenStep, the `mkdir' command does not
1727  # recognize any option.  It will interpret all options as
1728  # directories to create, and then abort because `.' already
1729  # exists.
1730  for d in ./-p ./--version;
1731  do
1732    test -d $d && rmdir $d
1733  done
1734  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1735  if test -f "$ac_aux_dir/mkinstalldirs"; then
1736    mkdir_p='$(mkinstalldirs)'
1737  else
1738    mkdir_p='$(install_sh) -d'
1739  fi
1740fi
1741
1742for ac_prog in gawk mawk nawk awk
1743do
1744  # Extract the first word of "$ac_prog", so it can be a program name with args.
1745set dummy $ac_prog; ac_word=$2
1746echo "$as_me:$LINENO: checking for $ac_word" >&5
1747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748if test "${ac_cv_prog_AWK+set}" = set; then
1749  echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751  if test -n "$AWK"; then
1752  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1753else
1754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755for as_dir in $PATH
1756do
1757  IFS=$as_save_IFS
1758  test -z "$as_dir" && as_dir=.
1759  for ac_exec_ext in '' $ac_executable_extensions; do
1760  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761    ac_cv_prog_AWK="$ac_prog"
1762    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763    break 2
1764  fi
1765done
1766done
1767
1768fi
1769fi
1770AWK=$ac_cv_prog_AWK
1771if test -n "$AWK"; then
1772  echo "$as_me:$LINENO: result: $AWK" >&5
1773echo "${ECHO_T}$AWK" >&6
1774else
1775  echo "$as_me:$LINENO: result: no" >&5
1776echo "${ECHO_T}no" >&6
1777fi
1778
1779  test -n "$AWK" && break
1780done
1781
1782echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1783echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1784set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1785if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1786  echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788  cat >conftest.make <<\_ACEOF
1789all:
1790	@echo 'ac_maketemp="$(MAKE)"'
1791_ACEOF
1792# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1793eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1794if test -n "$ac_maketemp"; then
1795  eval ac_cv_prog_make_${ac_make}_set=yes
1796else
1797  eval ac_cv_prog_make_${ac_make}_set=no
1798fi
1799rm -f conftest.make
1800fi
1801if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1802  echo "$as_me:$LINENO: result: yes" >&5
1803echo "${ECHO_T}yes" >&6
1804  SET_MAKE=
1805else
1806  echo "$as_me:$LINENO: result: no" >&5
1807echo "${ECHO_T}no" >&6
1808  SET_MAKE="MAKE=${MAKE-make}"
1809fi
1810
1811rm -rf .tst 2>/dev/null
1812mkdir .tst 2>/dev/null
1813if test -d .tst; then
1814  am__leading_dot=.
1815else
1816  am__leading_dot=_
1817fi
1818rmdir .tst 2>/dev/null
1819
1820# test to see if srcdir already configured
1821if test "`cd $srcdir && pwd`" != "`pwd`" &&
1822   test -f $srcdir/config.status; then
1823  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1824echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1825   { (exit 1); exit 1; }; }
1826fi
1827
1828# test whether we have cygpath
1829if test -z "$CYGPATH_W"; then
1830  if (cygpath --version) >/dev/null 2>/dev/null; then
1831    CYGPATH_W='cygpath -w'
1832  else
1833    CYGPATH_W=echo
1834  fi
1835fi
1836
1837
1838# Define the identity of the package.
1839 PACKAGE='libXevie'
1840 VERSION='1.0.2'
1841
1842
1843cat >>confdefs.h <<_ACEOF
1844#define PACKAGE "$PACKAGE"
1845_ACEOF
1846
1847
1848cat >>confdefs.h <<_ACEOF
1849#define VERSION "$VERSION"
1850_ACEOF
1851
1852# Some tools Automake needs.
1853
1854ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1855
1856
1857AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1858
1859
1860AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1861
1862
1863AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1864
1865
1866MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1867
1868install_sh=${install_sh-"$am_aux_dir/install-sh"}
1869
1870# Installed binaries are usually stripped using `strip' when the user
1871# run `make install-strip'.  However `strip' might not be the right
1872# tool to use in cross-compilation environments, therefore Automake
1873# will honor the `STRIP' environment variable to overrule this program.
1874if test "$cross_compiling" != no; then
1875  if test -n "$ac_tool_prefix"; then
1876  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1877set dummy ${ac_tool_prefix}strip; ac_word=$2
1878echo "$as_me:$LINENO: checking for $ac_word" >&5
1879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880if test "${ac_cv_prog_STRIP+set}" = set; then
1881  echo $ECHO_N "(cached) $ECHO_C" >&6
1882else
1883  if test -n "$STRIP"; then
1884  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1885else
1886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887for as_dir in $PATH
1888do
1889  IFS=$as_save_IFS
1890  test -z "$as_dir" && as_dir=.
1891  for ac_exec_ext in '' $ac_executable_extensions; do
1892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895    break 2
1896  fi
1897done
1898done
1899
1900fi
1901fi
1902STRIP=$ac_cv_prog_STRIP
1903if test -n "$STRIP"; then
1904  echo "$as_me:$LINENO: result: $STRIP" >&5
1905echo "${ECHO_T}$STRIP" >&6
1906else
1907  echo "$as_me:$LINENO: result: no" >&5
1908echo "${ECHO_T}no" >&6
1909fi
1910
1911fi
1912if test -z "$ac_cv_prog_STRIP"; then
1913  ac_ct_STRIP=$STRIP
1914  # Extract the first word of "strip", so it can be a program name with args.
1915set dummy strip; ac_word=$2
1916echo "$as_me:$LINENO: checking for $ac_word" >&5
1917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1919  echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921  if test -n "$ac_ct_STRIP"; then
1922  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1923else
1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925for as_dir in $PATH
1926do
1927  IFS=$as_save_IFS
1928  test -z "$as_dir" && as_dir=.
1929  for ac_exec_ext in '' $ac_executable_extensions; do
1930  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931    ac_cv_prog_ac_ct_STRIP="strip"
1932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933    break 2
1934  fi
1935done
1936done
1937
1938  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1939fi
1940fi
1941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1942if test -n "$ac_ct_STRIP"; then
1943  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1944echo "${ECHO_T}$ac_ct_STRIP" >&6
1945else
1946  echo "$as_me:$LINENO: result: no" >&5
1947echo "${ECHO_T}no" >&6
1948fi
1949
1950  STRIP=$ac_ct_STRIP
1951else
1952  STRIP="$ac_cv_prog_STRIP"
1953fi
1954
1955fi
1956INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1957
1958# We need awk for the "check" target.  The system "awk" is bad on
1959# some platforms.
1960# Always define AMTAR for backward compatibility.
1961
1962AMTAR=${AMTAR-"${am_missing_run}tar"}
1963
1964am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1965
1966
1967
1968
1969
1970echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1971echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1972    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1973if test "${enable_maintainer_mode+set}" = set; then
1974  enableval="$enable_maintainer_mode"
1975  USE_MAINTAINER_MODE=$enableval
1976else
1977  USE_MAINTAINER_MODE=no
1978fi;
1979  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1980echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1981
1982
1983if test $USE_MAINTAINER_MODE = yes; then
1984  MAINTAINER_MODE_TRUE=
1985  MAINTAINER_MODE_FALSE='#'
1986else
1987  MAINTAINER_MODE_TRUE='#'
1988  MAINTAINER_MODE_FALSE=
1989fi
1990
1991  MAINT=$MAINTAINER_MODE_TRUE
1992
1993
1994
1995          ac_config_headers="$ac_config_headers config.h"
1996
1997
1998# Check for progs
1999ac_ext=c
2000ac_cpp='$CPP $CPPFLAGS'
2001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004if test -n "$ac_tool_prefix"; then
2005  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2006set dummy ${ac_tool_prefix}gcc; ac_word=$2
2007echo "$as_me:$LINENO: checking for $ac_word" >&5
2008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009if test "${ac_cv_prog_CC+set}" = set; then
2010  echo $ECHO_N "(cached) $ECHO_C" >&6
2011else
2012  if test -n "$CC"; then
2013  ac_cv_prog_CC="$CC" # Let the user override the test.
2014else
2015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016for as_dir in $PATH
2017do
2018  IFS=$as_save_IFS
2019  test -z "$as_dir" && as_dir=.
2020  for ac_exec_ext in '' $ac_executable_extensions; do
2021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024    break 2
2025  fi
2026done
2027done
2028
2029fi
2030fi
2031CC=$ac_cv_prog_CC
2032if test -n "$CC"; then
2033  echo "$as_me:$LINENO: result: $CC" >&5
2034echo "${ECHO_T}$CC" >&6
2035else
2036  echo "$as_me:$LINENO: result: no" >&5
2037echo "${ECHO_T}no" >&6
2038fi
2039
2040fi
2041if test -z "$ac_cv_prog_CC"; then
2042  ac_ct_CC=$CC
2043  # Extract the first word of "gcc", so it can be a program name with args.
2044set dummy gcc; ac_word=$2
2045echo "$as_me:$LINENO: checking for $ac_word" >&5
2046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2048  echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050  if test -n "$ac_ct_CC"; then
2051  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2052else
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056  IFS=$as_save_IFS
2057  test -z "$as_dir" && as_dir=.
2058  for ac_exec_ext in '' $ac_executable_extensions; do
2059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060    ac_cv_prog_ac_ct_CC="gcc"
2061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062    break 2
2063  fi
2064done
2065done
2066
2067fi
2068fi
2069ac_ct_CC=$ac_cv_prog_ac_ct_CC
2070if test -n "$ac_ct_CC"; then
2071  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2072echo "${ECHO_T}$ac_ct_CC" >&6
2073else
2074  echo "$as_me:$LINENO: result: no" >&5
2075echo "${ECHO_T}no" >&6
2076fi
2077
2078  CC=$ac_ct_CC
2079else
2080  CC="$ac_cv_prog_CC"
2081fi
2082
2083if test -z "$CC"; then
2084  if test -n "$ac_tool_prefix"; then
2085  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2086set dummy ${ac_tool_prefix}cc; ac_word=$2
2087echo "$as_me:$LINENO: checking for $ac_word" >&5
2088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089if test "${ac_cv_prog_CC+set}" = set; then
2090  echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
2092  if test -n "$CC"; then
2093  ac_cv_prog_CC="$CC" # Let the user override the test.
2094else
2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096for as_dir in $PATH
2097do
2098  IFS=$as_save_IFS
2099  test -z "$as_dir" && as_dir=.
2100  for ac_exec_ext in '' $ac_executable_extensions; do
2101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102    ac_cv_prog_CC="${ac_tool_prefix}cc"
2103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104    break 2
2105  fi
2106done
2107done
2108
2109fi
2110fi
2111CC=$ac_cv_prog_CC
2112if test -n "$CC"; then
2113  echo "$as_me:$LINENO: result: $CC" >&5
2114echo "${ECHO_T}$CC" >&6
2115else
2116  echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6
2118fi
2119
2120fi
2121if test -z "$ac_cv_prog_CC"; then
2122  ac_ct_CC=$CC
2123  # Extract the first word of "cc", so it can be a program name with args.
2124set dummy cc; ac_word=$2
2125echo "$as_me:$LINENO: checking for $ac_word" >&5
2126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  if test -n "$ac_ct_CC"; then
2131  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132else
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136  IFS=$as_save_IFS
2137  test -z "$as_dir" && as_dir=.
2138  for ac_exec_ext in '' $ac_executable_extensions; do
2139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140    ac_cv_prog_ac_ct_CC="cc"
2141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142    break 2
2143  fi
2144done
2145done
2146
2147fi
2148fi
2149ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150if test -n "$ac_ct_CC"; then
2151  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2152echo "${ECHO_T}$ac_ct_CC" >&6
2153else
2154  echo "$as_me:$LINENO: result: no" >&5
2155echo "${ECHO_T}no" >&6
2156fi
2157
2158  CC=$ac_ct_CC
2159else
2160  CC="$ac_cv_prog_CC"
2161fi
2162
2163fi
2164if test -z "$CC"; then
2165  # Extract the first word of "cc", so it can be a program name with args.
2166set dummy cc; ac_word=$2
2167echo "$as_me:$LINENO: checking for $ac_word" >&5
2168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2169if test "${ac_cv_prog_CC+set}" = set; then
2170  echo $ECHO_N "(cached) $ECHO_C" >&6
2171else
2172  if test -n "$CC"; then
2173  ac_cv_prog_CC="$CC" # Let the user override the test.
2174else
2175  ac_prog_rejected=no
2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179  IFS=$as_save_IFS
2180  test -z "$as_dir" && as_dir=.
2181  for ac_exec_ext in '' $ac_executable_extensions; do
2182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2184       ac_prog_rejected=yes
2185       continue
2186     fi
2187    ac_cv_prog_CC="cc"
2188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189    break 2
2190  fi
2191done
2192done
2193
2194if test $ac_prog_rejected = yes; then
2195  # We found a bogon in the path, so make sure we never use it.
2196  set dummy $ac_cv_prog_CC
2197  shift
2198  if test $# != 0; then
2199    # We chose a different compiler from the bogus one.
2200    # However, it has the same basename, so the bogon will be chosen
2201    # first if we set CC to just the basename; use the full file name.
2202    shift
2203    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2204  fi
2205fi
2206fi
2207fi
2208CC=$ac_cv_prog_CC
2209if test -n "$CC"; then
2210  echo "$as_me:$LINENO: result: $CC" >&5
2211echo "${ECHO_T}$CC" >&6
2212else
2213  echo "$as_me:$LINENO: result: no" >&5
2214echo "${ECHO_T}no" >&6
2215fi
2216
2217fi
2218if test -z "$CC"; then
2219  if test -n "$ac_tool_prefix"; then
2220  for ac_prog in cl
2221  do
2222    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2223set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2224echo "$as_me:$LINENO: checking for $ac_word" >&5
2225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2226if test "${ac_cv_prog_CC+set}" = set; then
2227  echo $ECHO_N "(cached) $ECHO_C" >&6
2228else
2229  if test -n "$CC"; then
2230  ac_cv_prog_CC="$CC" # Let the user override the test.
2231else
2232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233for as_dir in $PATH
2234do
2235  IFS=$as_save_IFS
2236  test -z "$as_dir" && as_dir=.
2237  for ac_exec_ext in '' $ac_executable_extensions; do
2238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2239    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241    break 2
2242  fi
2243done
2244done
2245
2246fi
2247fi
2248CC=$ac_cv_prog_CC
2249if test -n "$CC"; then
2250  echo "$as_me:$LINENO: result: $CC" >&5
2251echo "${ECHO_T}$CC" >&6
2252else
2253  echo "$as_me:$LINENO: result: no" >&5
2254echo "${ECHO_T}no" >&6
2255fi
2256
2257    test -n "$CC" && break
2258  done
2259fi
2260if test -z "$CC"; then
2261  ac_ct_CC=$CC
2262  for ac_prog in cl
2263do
2264  # Extract the first word of "$ac_prog", so it can be a program name with args.
2265set dummy $ac_prog; ac_word=$2
2266echo "$as_me:$LINENO: checking for $ac_word" >&5
2267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2269  echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271  if test -n "$ac_ct_CC"; then
2272  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2273else
2274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277  IFS=$as_save_IFS
2278  test -z "$as_dir" && as_dir=.
2279  for ac_exec_ext in '' $ac_executable_extensions; do
2280  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281    ac_cv_prog_ac_ct_CC="$ac_prog"
2282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283    break 2
2284  fi
2285done
2286done
2287
2288fi
2289fi
2290ac_ct_CC=$ac_cv_prog_ac_ct_CC
2291if test -n "$ac_ct_CC"; then
2292  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2293echo "${ECHO_T}$ac_ct_CC" >&6
2294else
2295  echo "$as_me:$LINENO: result: no" >&5
2296echo "${ECHO_T}no" >&6
2297fi
2298
2299  test -n "$ac_ct_CC" && break
2300done
2301
2302  CC=$ac_ct_CC
2303fi
2304
2305fi
2306
2307
2308test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2309See \`config.log' for more details." >&5
2310echo "$as_me: error: no acceptable C compiler found in \$PATH
2311See \`config.log' for more details." >&2;}
2312   { (exit 1); exit 1; }; }
2313
2314# Provide some information about the compiler.
2315echo "$as_me:$LINENO:" \
2316     "checking for C compiler version" >&5
2317ac_compiler=`set X $ac_compile; echo $2`
2318{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2319  (eval $ac_compiler --version </dev/null >&5) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }
2323{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2324  (eval $ac_compiler -v </dev/null >&5) 2>&5
2325  ac_status=$?
2326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327  (exit $ac_status); }
2328{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2329  (eval $ac_compiler -V </dev/null >&5) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }
2333
2334cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h.  */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h.  */
2340
2341int
2342main ()
2343{
2344
2345  ;
2346  return 0;
2347}
2348_ACEOF
2349ac_clean_files_save=$ac_clean_files
2350ac_clean_files="$ac_clean_files a.out a.exe b.out"
2351# Try to create an executable without -o first, disregard a.out.
2352# It will help us diagnose broken compilers, and finding out an intuition
2353# of exeext.
2354echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2355echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2356ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2357if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2358  (eval $ac_link_default) 2>&5
2359  ac_status=$?
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); }; then
2362  # Find the output, starting from the most likely.  This scheme is
2363# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2364# resort.
2365
2366# Be careful to initialize this variable, since it used to be cached.
2367# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2368ac_cv_exeext=
2369# b.out is created by i960 compilers.
2370for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2371do
2372  test -f "$ac_file" || continue
2373  case $ac_file in
2374    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2375	;;
2376    conftest.$ac_ext )
2377	# This is the source file.
2378	;;
2379    [ab].out )
2380	# We found the default executable, but exeext='' is most
2381	# certainly right.
2382	break;;
2383    *.* )
2384	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2385	# FIXME: I believe we export ac_cv_exeext for Libtool,
2386	# but it would be cool to find out if it's true.  Does anybody
2387	# maintain Libtool? --akim.
2388	export ac_cv_exeext
2389	break;;
2390    * )
2391	break;;
2392  esac
2393done
2394else
2395  echo "$as_me: failed program was:" >&5
2396sed 's/^/| /' conftest.$ac_ext >&5
2397
2398{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2399See \`config.log' for more details." >&5
2400echo "$as_me: error: C compiler cannot create executables
2401See \`config.log' for more details." >&2;}
2402   { (exit 77); exit 77; }; }
2403fi
2404
2405ac_exeext=$ac_cv_exeext
2406echo "$as_me:$LINENO: result: $ac_file" >&5
2407echo "${ECHO_T}$ac_file" >&6
2408
2409# Check the compiler produces executables we can run.  If not, either
2410# the compiler is broken, or we cross compile.
2411echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2412echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2413# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2414# If not cross compiling, check that we can run a simple program.
2415if test "$cross_compiling" != yes; then
2416  if { ac_try='./$ac_file'
2417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418  (eval $ac_try) 2>&5
2419  ac_status=$?
2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421  (exit $ac_status); }; }; then
2422    cross_compiling=no
2423  else
2424    if test "$cross_compiling" = maybe; then
2425	cross_compiling=yes
2426    else
2427	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2428If you meant to cross compile, use \`--host'.
2429See \`config.log' for more details." >&5
2430echo "$as_me: error: cannot run C compiled programs.
2431If you meant to cross compile, use \`--host'.
2432See \`config.log' for more details." >&2;}
2433   { (exit 1); exit 1; }; }
2434    fi
2435  fi
2436fi
2437echo "$as_me:$LINENO: result: yes" >&5
2438echo "${ECHO_T}yes" >&6
2439
2440rm -f a.out a.exe conftest$ac_cv_exeext b.out
2441ac_clean_files=$ac_clean_files_save
2442# Check the compiler produces executables we can run.  If not, either
2443# the compiler is broken, or we cross compile.
2444echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2445echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2446echo "$as_me:$LINENO: result: $cross_compiling" >&5
2447echo "${ECHO_T}$cross_compiling" >&6
2448
2449echo "$as_me:$LINENO: checking for suffix of executables" >&5
2450echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2452  (eval $ac_link) 2>&5
2453  ac_status=$?
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); }; then
2456  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2457# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2458# work properly (i.e., refer to `conftest.exe'), while it won't with
2459# `rm'.
2460for ac_file in conftest.exe conftest conftest.*; do
2461  test -f "$ac_file" || continue
2462  case $ac_file in
2463    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2464    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2465	  export ac_cv_exeext
2466	  break;;
2467    * ) break;;
2468  esac
2469done
2470else
2471  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2472See \`config.log' for more details." >&5
2473echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2474See \`config.log' for more details." >&2;}
2475   { (exit 1); exit 1; }; }
2476fi
2477
2478rm -f conftest$ac_cv_exeext
2479echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2480echo "${ECHO_T}$ac_cv_exeext" >&6
2481
2482rm -f conftest.$ac_ext
2483EXEEXT=$ac_cv_exeext
2484ac_exeext=$EXEEXT
2485echo "$as_me:$LINENO: checking for suffix of object files" >&5
2486echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2487if test "${ac_cv_objext+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  cat >conftest.$ac_ext <<_ACEOF
2491/* confdefs.h.  */
2492_ACEOF
2493cat confdefs.h >>conftest.$ac_ext
2494cat >>conftest.$ac_ext <<_ACEOF
2495/* end confdefs.h.  */
2496
2497int
2498main ()
2499{
2500
2501  ;
2502  return 0;
2503}
2504_ACEOF
2505rm -f conftest.o conftest.obj
2506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507  (eval $ac_compile) 2>&5
2508  ac_status=$?
2509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510  (exit $ac_status); }; then
2511  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2512  case $ac_file in
2513    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2514    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2515       break;;
2516  esac
2517done
2518else
2519  echo "$as_me: failed program was:" >&5
2520sed 's/^/| /' conftest.$ac_ext >&5
2521
2522{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2523See \`config.log' for more details." >&5
2524echo "$as_me: error: cannot compute suffix of object files: cannot compile
2525See \`config.log' for more details." >&2;}
2526   { (exit 1); exit 1; }; }
2527fi
2528
2529rm -f conftest.$ac_cv_objext conftest.$ac_ext
2530fi
2531echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2532echo "${ECHO_T}$ac_cv_objext" >&6
2533OBJEXT=$ac_cv_objext
2534ac_objext=$OBJEXT
2535echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2536echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2537if test "${ac_cv_c_compiler_gnu+set}" = set; then
2538  echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540  cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h.  */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h.  */
2546
2547int
2548main ()
2549{
2550#ifndef __GNUC__
2551       choke me
2552#endif
2553
2554  ;
2555  return 0;
2556}
2557_ACEOF
2558rm -f conftest.$ac_objext
2559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560  (eval $ac_compile) 2>conftest.er1
2561  ac_status=$?
2562  grep -v '^ *+' conftest.er1 >conftest.err
2563  rm -f conftest.er1
2564  cat conftest.err >&5
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); } &&
2567	 { ac_try='test -z "$ac_c_werror_flag"
2568			 || test ! -s conftest.err'
2569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570  (eval $ac_try) 2>&5
2571  ac_status=$?
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); }; } &&
2574	 { ac_try='test -s conftest.$ac_objext'
2575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576  (eval $ac_try) 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }; }; then
2580  ac_compiler_gnu=yes
2581else
2582  echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585ac_compiler_gnu=no
2586fi
2587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588ac_cv_c_compiler_gnu=$ac_compiler_gnu
2589
2590fi
2591echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2592echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2593GCC=`test $ac_compiler_gnu = yes && echo yes`
2594ac_test_CFLAGS=${CFLAGS+set}
2595ac_save_CFLAGS=$CFLAGS
2596CFLAGS="-g"
2597echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2598echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2599if test "${ac_cv_prog_cc_g+set}" = set; then
2600  echo $ECHO_N "(cached) $ECHO_C" >&6
2601else
2602  cat >conftest.$ac_ext <<_ACEOF
2603/* confdefs.h.  */
2604_ACEOF
2605cat confdefs.h >>conftest.$ac_ext
2606cat >>conftest.$ac_ext <<_ACEOF
2607/* end confdefs.h.  */
2608
2609int
2610main ()
2611{
2612
2613  ;
2614  return 0;
2615}
2616_ACEOF
2617rm -f conftest.$ac_objext
2618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619  (eval $ac_compile) 2>conftest.er1
2620  ac_status=$?
2621  grep -v '^ *+' conftest.er1 >conftest.err
2622  rm -f conftest.er1
2623  cat conftest.err >&5
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); } &&
2626	 { ac_try='test -z "$ac_c_werror_flag"
2627			 || test ! -s conftest.err'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; } &&
2633	 { ac_try='test -s conftest.$ac_objext'
2634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635  (eval $ac_try) 2>&5
2636  ac_status=$?
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); }; }; then
2639  ac_cv_prog_cc_g=yes
2640else
2641  echo "$as_me: failed program was:" >&5
2642sed 's/^/| /' conftest.$ac_ext >&5
2643
2644ac_cv_prog_cc_g=no
2645fi
2646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2647fi
2648echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2649echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2650if test "$ac_test_CFLAGS" = set; then
2651  CFLAGS=$ac_save_CFLAGS
2652elif test $ac_cv_prog_cc_g = yes; then
2653  if test "$GCC" = yes; then
2654    CFLAGS="-g -O2"
2655  else
2656    CFLAGS="-g"
2657  fi
2658else
2659  if test "$GCC" = yes; then
2660    CFLAGS="-O2"
2661  else
2662    CFLAGS=
2663  fi
2664fi
2665echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2666echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2667if test "${ac_cv_prog_cc_stdc+set}" = set; then
2668  echo $ECHO_N "(cached) $ECHO_C" >&6
2669else
2670  ac_cv_prog_cc_stdc=no
2671ac_save_CC=$CC
2672cat >conftest.$ac_ext <<_ACEOF
2673/* confdefs.h.  */
2674_ACEOF
2675cat confdefs.h >>conftest.$ac_ext
2676cat >>conftest.$ac_ext <<_ACEOF
2677/* end confdefs.h.  */
2678#include <stdarg.h>
2679#include <stdio.h>
2680#include <sys/types.h>
2681#include <sys/stat.h>
2682/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2683struct buf { int x; };
2684FILE * (*rcsopen) (struct buf *, struct stat *, int);
2685static char *e (p, i)
2686     char **p;
2687     int i;
2688{
2689  return p[i];
2690}
2691static char *f (char * (*g) (char **, int), char **p, ...)
2692{
2693  char *s;
2694  va_list v;
2695  va_start (v,p);
2696  s = g (p, va_arg (v,int));
2697  va_end (v);
2698  return s;
2699}
2700
2701/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2702   function prototypes and stuff, but not '\xHH' hex character constants.
2703   These don't provoke an error unfortunately, instead are silently treated
2704   as 'x'.  The following induces an error, until -std1 is added to get
2705   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2706   array size at least.  It's necessary to write '\x00'==0 to get something
2707   that's true only with -std1.  */
2708int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2709
2710int test (int i, double x);
2711struct s1 {int (*f) (int a);};
2712struct s2 {int (*f) (double a);};
2713int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2714int argc;
2715char **argv;
2716int
2717main ()
2718{
2719return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2720  ;
2721  return 0;
2722}
2723_ACEOF
2724# Don't try gcc -ansi; that turns off useful extensions and
2725# breaks some systems' header files.
2726# AIX			-qlanglvl=ansi
2727# Ultrix and OSF/1	-std1
2728# HP-UX 10.20 and later	-Ae
2729# HP-UX older versions	-Aa -D_HPUX_SOURCE
2730# SVR4			-Xc -D__EXTENSIONS__
2731for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732do
2733  CC="$ac_save_CC $ac_arg"
2734  rm -f conftest.$ac_objext
2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736  (eval $ac_compile) 2>conftest.er1
2737  ac_status=$?
2738  grep -v '^ *+' conftest.er1 >conftest.err
2739  rm -f conftest.er1
2740  cat conftest.err >&5
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); } &&
2743	 { ac_try='test -z "$ac_c_werror_flag"
2744			 || test ! -s conftest.err'
2745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746  (eval $ac_try) 2>&5
2747  ac_status=$?
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); }; } &&
2750	 { ac_try='test -s conftest.$ac_objext'
2751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752  (eval $ac_try) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; }; then
2756  ac_cv_prog_cc_stdc=$ac_arg
2757break
2758else
2759  echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762fi
2763rm -f conftest.err conftest.$ac_objext
2764done
2765rm -f conftest.$ac_ext conftest.$ac_objext
2766CC=$ac_save_CC
2767
2768fi
2769
2770case "x$ac_cv_prog_cc_stdc" in
2771  x|xno)
2772    echo "$as_me:$LINENO: result: none needed" >&5
2773echo "${ECHO_T}none needed" >&6 ;;
2774  *)
2775    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2776echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2777    CC="$CC $ac_cv_prog_cc_stdc" ;;
2778esac
2779
2780# Some people use a C++ compiler to compile C.  Since we use `exit',
2781# in C++ we need to declare it.  In case someone uses the same compiler
2782# for both compiling C and C++ we need to have the C++ compiler decide
2783# the declaration of exit, since it's the most demanding environment.
2784cat >conftest.$ac_ext <<_ACEOF
2785#ifndef __cplusplus
2786  choke me
2787#endif
2788_ACEOF
2789rm -f conftest.$ac_objext
2790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791  (eval $ac_compile) 2>conftest.er1
2792  ac_status=$?
2793  grep -v '^ *+' conftest.er1 >conftest.err
2794  rm -f conftest.er1
2795  cat conftest.err >&5
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); } &&
2798	 { ac_try='test -z "$ac_c_werror_flag"
2799			 || test ! -s conftest.err'
2800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801  (eval $ac_try) 2>&5
2802  ac_status=$?
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); }; } &&
2805	 { ac_try='test -s conftest.$ac_objext'
2806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807  (eval $ac_try) 2>&5
2808  ac_status=$?
2809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810  (exit $ac_status); }; }; then
2811  for ac_declaration in \
2812   '' \
2813   'extern "C" void std::exit (int) throw (); using std::exit;' \
2814   'extern "C" void std::exit (int); using std::exit;' \
2815   'extern "C" void exit (int) throw ();' \
2816   'extern "C" void exit (int);' \
2817   'void exit (int);'
2818do
2819  cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h.  */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h.  */
2825$ac_declaration
2826#include <stdlib.h>
2827int
2828main ()
2829{
2830exit (42);
2831  ;
2832  return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext
2836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837  (eval $ac_compile) 2>conftest.er1
2838  ac_status=$?
2839  grep -v '^ *+' conftest.er1 >conftest.err
2840  rm -f conftest.er1
2841  cat conftest.err >&5
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); } &&
2844	 { ac_try='test -z "$ac_c_werror_flag"
2845			 || test ! -s conftest.err'
2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847  (eval $ac_try) 2>&5
2848  ac_status=$?
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); }; } &&
2851	 { ac_try='test -s conftest.$ac_objext'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; }; then
2857  :
2858else
2859  echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862continue
2863fi
2864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865  cat >conftest.$ac_ext <<_ACEOF
2866/* confdefs.h.  */
2867_ACEOF
2868cat confdefs.h >>conftest.$ac_ext
2869cat >>conftest.$ac_ext <<_ACEOF
2870/* end confdefs.h.  */
2871$ac_declaration
2872int
2873main ()
2874{
2875exit (42);
2876  ;
2877  return 0;
2878}
2879_ACEOF
2880rm -f conftest.$ac_objext
2881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2882  (eval $ac_compile) 2>conftest.er1
2883  ac_status=$?
2884  grep -v '^ *+' conftest.er1 >conftest.err
2885  rm -f conftest.er1
2886  cat conftest.err >&5
2887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888  (exit $ac_status); } &&
2889	 { ac_try='test -z "$ac_c_werror_flag"
2890			 || test ! -s conftest.err'
2891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892  (eval $ac_try) 2>&5
2893  ac_status=$?
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); }; } &&
2896	 { ac_try='test -s conftest.$ac_objext'
2897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898  (eval $ac_try) 2>&5
2899  ac_status=$?
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); }; }; then
2902  break
2903else
2904  echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907fi
2908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2909done
2910rm -f conftest*
2911if test -n "$ac_declaration"; then
2912  echo '#ifdef __cplusplus' >>confdefs.h
2913  echo $ac_declaration      >>confdefs.h
2914  echo '#endif'             >>confdefs.h
2915fi
2916
2917else
2918  echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921fi
2922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2923ac_ext=c
2924ac_cpp='$CPP $CPPFLAGS'
2925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928DEPDIR="${am__leading_dot}deps"
2929
2930          ac_config_commands="$ac_config_commands depfiles"
2931
2932
2933am_make=${MAKE-make}
2934cat > confinc << 'END'
2935am__doit:
2936	@echo done
2937.PHONY: am__doit
2938END
2939# If we don't find an include directive, just comment out the code.
2940echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2941echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2942am__include="#"
2943am__quote=
2944_am_result=none
2945# First try GNU make style include.
2946echo "include confinc" > confmf
2947# We grep out `Entering directory' and `Leaving directory'
2948# messages which can occur if `w' ends up in MAKEFLAGS.
2949# In particular we don't look at `^make:' because GNU make might
2950# be invoked under some other name (usually "gmake"), in which
2951# case it prints its new name instead of `make'.
2952if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2953   am__include=include
2954   am__quote=
2955   _am_result=GNU
2956fi
2957# Now try BSD make style include.
2958if test "$am__include" = "#"; then
2959   echo '.include "confinc"' > confmf
2960   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2961      am__include=.include
2962      am__quote="\""
2963      _am_result=BSD
2964   fi
2965fi
2966
2967
2968echo "$as_me:$LINENO: result: $_am_result" >&5
2969echo "${ECHO_T}$_am_result" >&6
2970rm -f confinc confmf
2971
2972# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2973if test "${enable_dependency_tracking+set}" = set; then
2974  enableval="$enable_dependency_tracking"
2975
2976fi;
2977if test "x$enable_dependency_tracking" != xno; then
2978  am_depcomp="$ac_aux_dir/depcomp"
2979  AMDEPBACKSLASH='\'
2980fi
2981
2982
2983if test "x$enable_dependency_tracking" != xno; then
2984  AMDEP_TRUE=
2985  AMDEP_FALSE='#'
2986else
2987  AMDEP_TRUE='#'
2988  AMDEP_FALSE=
2989fi
2990
2991
2992
2993
2994depcc="$CC"   am_compiler_list=
2995
2996echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2997echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2998if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2999  echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3002  # We make a subdir and do the tests there.  Otherwise we can end up
3003  # making bogus files that we don't know about and never remove.  For
3004  # instance it was reported that on HP-UX the gcc test will end up
3005  # making a dummy file named `D' -- because `-MD' means `put the output
3006  # in D'.
3007  mkdir conftest.dir
3008  # Copy depcomp to subdir because otherwise we won't find it if we're
3009  # using a relative directory.
3010  cp "$am_depcomp" conftest.dir
3011  cd conftest.dir
3012  # We will build objects and dependencies in a subdirectory because
3013  # it helps to detect inapplicable dependency modes.  For instance
3014  # both Tru64's cc and ICC support -MD to output dependencies as a
3015  # side effect of compilation, but ICC will put the dependencies in
3016  # the current directory while Tru64 will put them in the object
3017  # directory.
3018  mkdir sub
3019
3020  am_cv_CC_dependencies_compiler_type=none
3021  if test "$am_compiler_list" = ""; then
3022     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3023  fi
3024  for depmode in $am_compiler_list; do
3025    # Setup a source with many dependencies, because some compilers
3026    # like to wrap large dependency lists on column 80 (with \), and
3027    # we should not choose a depcomp mode which is confused by this.
3028    #
3029    # We need to recreate these files for each test, as the compiler may
3030    # overwrite some of them when testing with obscure command lines.
3031    # This happens at least with the AIX C compiler.
3032    : > sub/conftest.c
3033    for i in 1 2 3 4 5 6; do
3034      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3035      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3036      # Solaris 8's {/usr,}/bin/sh.
3037      touch sub/conftst$i.h
3038    done
3039    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3040
3041    case $depmode in
3042    nosideeffect)
3043      # after this tag, mechanisms are not by side-effect, so they'll
3044      # only be used when explicitly requested
3045      if test "x$enable_dependency_tracking" = xyes; then
3046	continue
3047      else
3048	break
3049      fi
3050      ;;
3051    none) break ;;
3052    esac
3053    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3054    # mode.  It turns out that the SunPro C++ compiler does not properly
3055    # handle `-M -o', and we need to detect this.
3056    if depmode=$depmode \
3057       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3058       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3059       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3060         >/dev/null 2>conftest.err &&
3061       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3062       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3063       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3064      # icc doesn't choke on unknown options, it will just issue warnings
3065      # or remarks (even with -Werror).  So we grep stderr for any message
3066      # that says an option was ignored or not supported.
3067      # When given -MP, icc 7.0 and 7.1 complain thusly:
3068      #   icc: Command line warning: ignoring option '-M'; no argument required
3069      # The diagnosis changed in icc 8.0:
3070      #   icc: Command line remark: option '-MP' not supported
3071      if (grep 'ignoring option' conftest.err ||
3072          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3073        am_cv_CC_dependencies_compiler_type=$depmode
3074        break
3075      fi
3076    fi
3077  done
3078
3079  cd ..
3080  rm -rf conftest.dir
3081else
3082  am_cv_CC_dependencies_compiler_type=none
3083fi
3084
3085fi
3086echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3087echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3088CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3089
3090
3091
3092if
3093  test "x$enable_dependency_tracking" != xno \
3094  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3095  am__fastdepCC_TRUE=
3096  am__fastdepCC_FALSE='#'
3097else
3098  am__fastdepCC_TRUE='#'
3099  am__fastdepCC_FALSE=
3100fi
3101
3102
3103# Check whether --enable-shared or --disable-shared was given.
3104if test "${enable_shared+set}" = set; then
3105  enableval="$enable_shared"
3106  p=${PACKAGE-default}
3107    case $enableval in
3108    yes) enable_shared=yes ;;
3109    no) enable_shared=no ;;
3110    *)
3111      enable_shared=no
3112      # Look at the argument we got.  We use all the common list separators.
3113      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3114      for pkg in $enableval; do
3115	IFS="$lt_save_ifs"
3116	if test "X$pkg" = "X$p"; then
3117	  enable_shared=yes
3118	fi
3119      done
3120      IFS="$lt_save_ifs"
3121      ;;
3122    esac
3123else
3124  enable_shared=yes
3125fi;
3126
3127# Check whether --enable-static or --disable-static was given.
3128if test "${enable_static+set}" = set; then
3129  enableval="$enable_static"
3130  p=${PACKAGE-default}
3131    case $enableval in
3132    yes) enable_static=yes ;;
3133    no) enable_static=no ;;
3134    *)
3135     enable_static=no
3136      # Look at the argument we got.  We use all the common list separators.
3137      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3138      for pkg in $enableval; do
3139	IFS="$lt_save_ifs"
3140	if test "X$pkg" = "X$p"; then
3141	  enable_static=yes
3142	fi
3143      done
3144      IFS="$lt_save_ifs"
3145      ;;
3146    esac
3147else
3148  enable_static=yes
3149fi;
3150
3151# Check whether --enable-fast-install or --disable-fast-install was given.
3152if test "${enable_fast_install+set}" = set; then
3153  enableval="$enable_fast_install"
3154  p=${PACKAGE-default}
3155    case $enableval in
3156    yes) enable_fast_install=yes ;;
3157    no) enable_fast_install=no ;;
3158    *)
3159      enable_fast_install=no
3160      # Look at the argument we got.  We use all the common list separators.
3161      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3162      for pkg in $enableval; do
3163	IFS="$lt_save_ifs"
3164	if test "X$pkg" = "X$p"; then
3165	  enable_fast_install=yes
3166	fi
3167      done
3168      IFS="$lt_save_ifs"
3169      ;;
3170    esac
3171else
3172  enable_fast_install=yes
3173fi;
3174
3175# Make sure we can run config.sub.
3176$ac_config_sub sun4 >/dev/null 2>&1 ||
3177  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3178echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3179   { (exit 1); exit 1; }; }
3180
3181echo "$as_me:$LINENO: checking build system type" >&5
3182echo $ECHO_N "checking build system type... $ECHO_C" >&6
3183if test "${ac_cv_build+set}" = set; then
3184  echo $ECHO_N "(cached) $ECHO_C" >&6
3185else
3186  ac_cv_build_alias=$build_alias
3187test -z "$ac_cv_build_alias" &&
3188  ac_cv_build_alias=`$ac_config_guess`
3189test -z "$ac_cv_build_alias" &&
3190  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3191echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3192   { (exit 1); exit 1; }; }
3193ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3194  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3195echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3196   { (exit 1); exit 1; }; }
3197
3198fi
3199echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3200echo "${ECHO_T}$ac_cv_build" >&6
3201build=$ac_cv_build
3202build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3203build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3204build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3205
3206
3207echo "$as_me:$LINENO: checking host system type" >&5
3208echo $ECHO_N "checking host system type... $ECHO_C" >&6
3209if test "${ac_cv_host+set}" = set; then
3210  echo $ECHO_N "(cached) $ECHO_C" >&6
3211else
3212  ac_cv_host_alias=$host_alias
3213test -z "$ac_cv_host_alias" &&
3214  ac_cv_host_alias=$ac_cv_build_alias
3215ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3216  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3217echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3218   { (exit 1); exit 1; }; }
3219
3220fi
3221echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3222echo "${ECHO_T}$ac_cv_host" >&6
3223host=$ac_cv_host
3224host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3225host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3226host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3227
3228
3229echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3230echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3231if test "${lt_cv_path_SED+set}" = set; then
3232  echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234  # Loop through the user's path and test for sed and gsed.
3235# Then use that list of sed's as ones to test for truncation.
3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239  IFS=$as_save_IFS
3240  test -z "$as_dir" && as_dir=.
3241  for lt_ac_prog in sed gsed; do
3242    for ac_exec_ext in '' $ac_executable_extensions; do
3243      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3244        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3245      fi
3246    done
3247  done
3248done
3249IFS=$as_save_IFS
3250lt_ac_max=0
3251lt_ac_count=0
3252# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3253# along with /bin/sed that truncates output.
3254for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3255  test ! -f $lt_ac_sed && continue
3256  cat /dev/null > conftest.in
3257  lt_ac_count=0
3258  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3259  # Check for GNU sed and select it if it is found.
3260  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3261    lt_cv_path_SED=$lt_ac_sed
3262    break
3263  fi
3264  while true; do
3265    cat conftest.in conftest.in >conftest.tmp
3266    mv conftest.tmp conftest.in
3267    cp conftest.in conftest.nl
3268    echo >>conftest.nl
3269    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3270    cmp -s conftest.out conftest.nl || break
3271    # 10000 chars as input seems more than enough
3272    test $lt_ac_count -gt 10 && break
3273    lt_ac_count=`expr $lt_ac_count + 1`
3274    if test $lt_ac_count -gt $lt_ac_max; then
3275      lt_ac_max=$lt_ac_count
3276      lt_cv_path_SED=$lt_ac_sed
3277    fi
3278  done
3279done
3280
3281fi
3282
3283SED=$lt_cv_path_SED
3284
3285echo "$as_me:$LINENO: result: $SED" >&5
3286echo "${ECHO_T}$SED" >&6
3287
3288echo "$as_me:$LINENO: checking for egrep" >&5
3289echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3290if test "${ac_cv_prog_egrep+set}" = set; then
3291  echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3294    then ac_cv_prog_egrep='grep -E'
3295    else ac_cv_prog_egrep='egrep'
3296    fi
3297fi
3298echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3299echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3300 EGREP=$ac_cv_prog_egrep
3301
3302
3303
3304# Check whether --with-gnu-ld or --without-gnu-ld was given.
3305if test "${with_gnu_ld+set}" = set; then
3306  withval="$with_gnu_ld"
3307  test "$withval" = no || with_gnu_ld=yes
3308else
3309  with_gnu_ld=no
3310fi;
3311ac_prog=ld
3312if test "$GCC" = yes; then
3313  # Check if gcc -print-prog-name=ld gives a path.
3314  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3315echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3316  case $host in
3317  *-*-mingw*)
3318    # gcc leaves a trailing carriage return which upsets mingw
3319    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3320  *)
3321    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3322  esac
3323  case $ac_prog in
3324    # Accept absolute paths.
3325    [\\/]* | ?:[\\/]*)
3326      re_direlt='/[^/][^/]*/\.\./'
3327      # Canonicalize the pathname of ld
3328      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3329      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3330	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3331      done
3332      test -z "$LD" && LD="$ac_prog"
3333      ;;
3334  "")
3335    # If it fails, then pretend we aren't using GCC.
3336    ac_prog=ld
3337    ;;
3338  *)
3339    # If it is relative, then search for the first ld in PATH.
3340    with_gnu_ld=unknown
3341    ;;
3342  esac
3343elif test "$with_gnu_ld" = yes; then
3344  echo "$as_me:$LINENO: checking for GNU ld" >&5
3345echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3346else
3347  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3348echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3349fi
3350if test "${lt_cv_path_LD+set}" = set; then
3351  echo $ECHO_N "(cached) $ECHO_C" >&6
3352else
3353  if test -z "$LD"; then
3354  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3355  for ac_dir in $PATH; do
3356    IFS="$lt_save_ifs"
3357    test -z "$ac_dir" && ac_dir=.
3358    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3359      lt_cv_path_LD="$ac_dir/$ac_prog"
3360      # Check to see if the program is GNU ld.  I'd rather use --version,
3361      # but apparently some variants of GNU ld only accept -v.
3362      # Break only if it was the GNU/non-GNU ld that we prefer.
3363      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3364      *GNU* | *'with BFD'*)
3365	test "$with_gnu_ld" != no && break
3366	;;
3367      *)
3368	test "$with_gnu_ld" != yes && break
3369	;;
3370      esac
3371    fi
3372  done
3373  IFS="$lt_save_ifs"
3374else
3375  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3376fi
3377fi
3378
3379LD="$lt_cv_path_LD"
3380if test -n "$LD"; then
3381  echo "$as_me:$LINENO: result: $LD" >&5
3382echo "${ECHO_T}$LD" >&6
3383else
3384  echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
3386fi
3387test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3388echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3389   { (exit 1); exit 1; }; }
3390echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3391echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3392if test "${lt_cv_prog_gnu_ld+set}" = set; then
3393  echo $ECHO_N "(cached) $ECHO_C" >&6
3394else
3395  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3396case `$LD -v 2>&1 </dev/null` in
3397*GNU* | *'with BFD'*)
3398  lt_cv_prog_gnu_ld=yes
3399  ;;
3400*)
3401  lt_cv_prog_gnu_ld=no
3402  ;;
3403esac
3404fi
3405echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3406echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3407with_gnu_ld=$lt_cv_prog_gnu_ld
3408
3409
3410echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3411echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3412if test "${lt_cv_ld_reload_flag+set}" = set; then
3413  echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415  lt_cv_ld_reload_flag='-r'
3416fi
3417echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3418echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3419reload_flag=$lt_cv_ld_reload_flag
3420case $reload_flag in
3421"" | " "*) ;;
3422*) reload_flag=" $reload_flag" ;;
3423esac
3424reload_cmds='$LD$reload_flag -o $output$reload_objs'
3425case $host_os in
3426  darwin*)
3427    if test "$GCC" = yes; then
3428      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3429    else
3430      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3431    fi
3432    ;;
3433esac
3434
3435echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3436echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3437if test "${lt_cv_path_NM+set}" = set; then
3438  echo $ECHO_N "(cached) $ECHO_C" >&6
3439else
3440  if test -n "$NM"; then
3441  # Let the user override the test.
3442  lt_cv_path_NM="$NM"
3443else
3444  lt_nm_to_check="${ac_tool_prefix}nm"
3445  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3446    lt_nm_to_check="$lt_nm_to_check nm"
3447  fi
3448  for lt_tmp_nm in $lt_nm_to_check; do
3449    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3450    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3451      IFS="$lt_save_ifs"
3452      test -z "$ac_dir" && ac_dir=.
3453      tmp_nm="$ac_dir/$lt_tmp_nm"
3454      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3455	# Check to see if the nm accepts a BSD-compat flag.
3456	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3457	#   nm: unknown option "B" ignored
3458	# Tru64's nm complains that /dev/null is an invalid object file
3459	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3460	*/dev/null* | *'Invalid file or object type'*)
3461	  lt_cv_path_NM="$tmp_nm -B"
3462	  break
3463	  ;;
3464	*)
3465	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3466	  */dev/null*)
3467	    lt_cv_path_NM="$tmp_nm -p"
3468	    break
3469	    ;;
3470	  *)
3471	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3472	    continue # so that we can try to find one that supports BSD flags
3473	    ;;
3474	  esac
3475	  ;;
3476	esac
3477      fi
3478    done
3479    IFS="$lt_save_ifs"
3480  done
3481  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3482fi
3483fi
3484echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3485echo "${ECHO_T}$lt_cv_path_NM" >&6
3486NM="$lt_cv_path_NM"
3487
3488echo "$as_me:$LINENO: checking whether ln -s works" >&5
3489echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3490LN_S=$as_ln_s
3491if test "$LN_S" = "ln -s"; then
3492  echo "$as_me:$LINENO: result: yes" >&5
3493echo "${ECHO_T}yes" >&6
3494else
3495  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3496echo "${ECHO_T}no, using $LN_S" >&6
3497fi
3498
3499echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3500echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3501if test "${lt_cv_deplibs_check_method+set}" = set; then
3502  echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504  lt_cv_file_magic_cmd='$MAGIC_CMD'
3505lt_cv_file_magic_test_file=
3506lt_cv_deplibs_check_method='unknown'
3507# Need to set the preceding variable on all platforms that support
3508# interlibrary dependencies.
3509# 'none' -- dependencies not supported.
3510# `unknown' -- same as none, but documents that we really don't know.
3511# 'pass_all' -- all dependencies passed with no checks.
3512# 'test_compile' -- check by making test program.
3513# 'file_magic [[regex]]' -- check by looking for files in library path
3514# which responds to the $file_magic_cmd with a given extended regex.
3515# If you have `file' or equivalent on your system and you're not sure
3516# whether `pass_all' will *always* work, you probably want this one.
3517
3518case $host_os in
3519aix4* | aix5*)
3520  lt_cv_deplibs_check_method=pass_all
3521  ;;
3522
3523beos*)
3524  lt_cv_deplibs_check_method=pass_all
3525  ;;
3526
3527bsdi[45]*)
3528  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3529  lt_cv_file_magic_cmd='/usr/bin/file -L'
3530  lt_cv_file_magic_test_file=/shlib/libc.so
3531  ;;
3532
3533cygwin*)
3534  # func_win32_libid is a shell function defined in ltmain.sh
3535  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3536  lt_cv_file_magic_cmd='func_win32_libid'
3537  ;;
3538
3539mingw* | pw32*)
3540  # Base MSYS/MinGW do not provide the 'file' command needed by
3541  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3542  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3543  lt_cv_file_magic_cmd='$OBJDUMP -f'
3544  ;;
3545
3546darwin* | rhapsody*)
3547  lt_cv_deplibs_check_method=pass_all
3548  ;;
3549
3550freebsd* | kfreebsd*-gnu | dragonfly*)
3551  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3552    case $host_cpu in
3553    i*86 )
3554      # Not sure whether the presence of OpenBSD here was a mistake.
3555      # Let's accept both of them until this is cleared up.
3556      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3557      lt_cv_file_magic_cmd=/usr/bin/file
3558      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3559      ;;
3560    esac
3561  else
3562    lt_cv_deplibs_check_method=pass_all
3563  fi
3564  ;;
3565
3566gnu*)
3567  lt_cv_deplibs_check_method=pass_all
3568  ;;
3569
3570hpux10.20* | hpux11*)
3571  lt_cv_file_magic_cmd=/usr/bin/file
3572  case $host_cpu in
3573  ia64*)
3574    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3575    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3576    ;;
3577  hppa*64*)
3578    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]'
3579    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3580    ;;
3581  *)
3582    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3583    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3584    ;;
3585  esac
3586  ;;
3587
3588interix3*)
3589  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3590  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3591  ;;
3592
3593irix5* | irix6* | nonstopux*)
3594  case $LD in
3595  *-32|*"-32 ") libmagic=32-bit;;
3596  *-n32|*"-n32 ") libmagic=N32;;
3597  *-64|*"-64 ") libmagic=64-bit;;
3598  *) libmagic=never-match;;
3599  esac
3600  lt_cv_deplibs_check_method=pass_all
3601  ;;
3602
3603# This must be Linux ELF.
3604linux*)
3605  lt_cv_deplibs_check_method=pass_all
3606  ;;
3607
3608netbsd*)
3609  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3610    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3611  else
3612    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3613  fi
3614  ;;
3615
3616newos6*)
3617  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3618  lt_cv_file_magic_cmd=/usr/bin/file
3619  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3620  ;;
3621
3622nto-qnx*)
3623  lt_cv_deplibs_check_method=unknown
3624  ;;
3625
3626openbsd*)
3627  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3628    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3629  else
3630    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3631  fi
3632  ;;
3633
3634osf3* | osf4* | osf5*)
3635  lt_cv_deplibs_check_method=pass_all
3636  ;;
3637
3638solaris*)
3639  lt_cv_deplibs_check_method=pass_all
3640  ;;
3641
3642sysv4 | sysv4.3*)
3643  case $host_vendor in
3644  motorola)
3645    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3646    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3647    ;;
3648  ncr)
3649    lt_cv_deplibs_check_method=pass_all
3650    ;;
3651  sequent)
3652    lt_cv_file_magic_cmd='/bin/file'
3653    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3654    ;;
3655  sni)
3656    lt_cv_file_magic_cmd='/bin/file'
3657    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3658    lt_cv_file_magic_test_file=/lib/libc.so
3659    ;;
3660  siemens)
3661    lt_cv_deplibs_check_method=pass_all
3662    ;;
3663  pc)
3664    lt_cv_deplibs_check_method=pass_all
3665    ;;
3666  esac
3667  ;;
3668
3669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3670  lt_cv_deplibs_check_method=pass_all
3671  ;;
3672esac
3673
3674fi
3675echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3676echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3677file_magic_cmd=$lt_cv_file_magic_cmd
3678deplibs_check_method=$lt_cv_deplibs_check_method
3679test -z "$deplibs_check_method" && deplibs_check_method=unknown
3680
3681
3682
3683
3684# If no C compiler was specified, use CC.
3685LTCC=${LTCC-"$CC"}
3686
3687# If no C compiler flags were specified, use CFLAGS.
3688LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3689
3690# Allow CC to be a program name with arguments.
3691compiler=$CC
3692
3693
3694# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3695if test "${enable_libtool_lock+set}" = set; then
3696  enableval="$enable_libtool_lock"
3697
3698fi;
3699test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3700
3701# Some flags need to be propagated to the compiler or linker for good
3702# libtool support.
3703case $host in
3704ia64-*-hpux*)
3705  # Find out which ABI we are using.
3706  echo 'int i;' > conftest.$ac_ext
3707  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708  (eval $ac_compile) 2>&5
3709  ac_status=$?
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); }; then
3712    case `/usr/bin/file conftest.$ac_objext` in
3713    *ELF-32*)
3714      HPUX_IA64_MODE="32"
3715      ;;
3716    *ELF-64*)
3717      HPUX_IA64_MODE="64"
3718      ;;
3719    esac
3720  fi
3721  rm -rf conftest*
3722  ;;
3723*-*-irix6*)
3724  # Find out which ABI we are using.
3725  echo '#line 3725 "configure"' > conftest.$ac_ext
3726  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3727  (eval $ac_compile) 2>&5
3728  ac_status=$?
3729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730  (exit $ac_status); }; then
3731   if test "$lt_cv_prog_gnu_ld" = yes; then
3732    case `/usr/bin/file conftest.$ac_objext` in
3733    *32-bit*)
3734      LD="${LD-ld} -melf32bsmip"
3735      ;;
3736    *N32*)
3737      LD="${LD-ld} -melf32bmipn32"
3738      ;;
3739    *64-bit*)
3740      LD="${LD-ld} -melf64bmip"
3741      ;;
3742    esac
3743   else
3744    case `/usr/bin/file conftest.$ac_objext` in
3745    *32-bit*)
3746      LD="${LD-ld} -32"
3747      ;;
3748    *N32*)
3749      LD="${LD-ld} -n32"
3750      ;;
3751    *64-bit*)
3752      LD="${LD-ld} -64"
3753      ;;
3754    esac
3755   fi
3756  fi
3757  rm -rf conftest*
3758  ;;
3759
3760x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3761  # Find out which ABI we are using.
3762  echo 'int i;' > conftest.$ac_ext
3763  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764  (eval $ac_compile) 2>&5
3765  ac_status=$?
3766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767  (exit $ac_status); }; then
3768    case `/usr/bin/file conftest.o` in
3769    *32-bit*)
3770      case $host in
3771        x86_64-*linux*)
3772          LD="${LD-ld} -m elf_i386"
3773          ;;
3774        ppc64-*linux*|powerpc64-*linux*)
3775          LD="${LD-ld} -m elf32ppclinux"
3776          ;;
3777        s390x-*linux*)
3778          LD="${LD-ld} -m elf_s390"
3779          ;;
3780        sparc64-*linux*)
3781          LD="${LD-ld} -m elf32_sparc"
3782          ;;
3783      esac
3784      ;;
3785    *64-bit*)
3786      case $host in
3787        x86_64-*linux*)
3788          LD="${LD-ld} -m elf_x86_64"
3789          ;;
3790        ppc*-*linux*|powerpc*-*linux*)
3791          LD="${LD-ld} -m elf64ppc"
3792          ;;
3793        s390*-*linux*)
3794          LD="${LD-ld} -m elf64_s390"
3795          ;;
3796        sparc*-*linux*)
3797          LD="${LD-ld} -m elf64_sparc"
3798          ;;
3799      esac
3800      ;;
3801    esac
3802  fi
3803  rm -rf conftest*
3804  ;;
3805
3806*-*-sco3.2v5*)
3807  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3808  SAVE_CFLAGS="$CFLAGS"
3809  CFLAGS="$CFLAGS -belf"
3810  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3811echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3812if test "${lt_cv_cc_needs_belf+set}" = set; then
3813  echo $ECHO_N "(cached) $ECHO_C" >&6
3814else
3815  ac_ext=c
3816ac_cpp='$CPP $CPPFLAGS'
3817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820
3821     cat >conftest.$ac_ext <<_ACEOF
3822/* confdefs.h.  */
3823_ACEOF
3824cat confdefs.h >>conftest.$ac_ext
3825cat >>conftest.$ac_ext <<_ACEOF
3826/* end confdefs.h.  */
3827
3828int
3829main ()
3830{
3831
3832  ;
3833  return 0;
3834}
3835_ACEOF
3836rm -f conftest.$ac_objext conftest$ac_exeext
3837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3838  (eval $ac_link) 2>conftest.er1
3839  ac_status=$?
3840  grep -v '^ *+' conftest.er1 >conftest.err
3841  rm -f conftest.er1
3842  cat conftest.err >&5
3843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844  (exit $ac_status); } &&
3845	 { ac_try='test -z "$ac_c_werror_flag"
3846			 || test ! -s conftest.err'
3847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848  (eval $ac_try) 2>&5
3849  ac_status=$?
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); }; } &&
3852	 { ac_try='test -s conftest$ac_exeext'
3853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854  (eval $ac_try) 2>&5
3855  ac_status=$?
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); }; }; then
3858  lt_cv_cc_needs_belf=yes
3859else
3860  echo "$as_me: failed program was:" >&5
3861sed 's/^/| /' conftest.$ac_ext >&5
3862
3863lt_cv_cc_needs_belf=no
3864fi
3865rm -f conftest.err conftest.$ac_objext \
3866      conftest$ac_exeext conftest.$ac_ext
3867     ac_ext=c
3868ac_cpp='$CPP $CPPFLAGS'
3869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872
3873fi
3874echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3875echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3876  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3877    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3878    CFLAGS="$SAVE_CFLAGS"
3879  fi
3880  ;;
3881sparc*-*solaris*)
3882  # Find out which ABI we are using.
3883  echo 'int i;' > conftest.$ac_ext
3884  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3885  (eval $ac_compile) 2>&5
3886  ac_status=$?
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); }; then
3889    case `/usr/bin/file conftest.o` in
3890    *64-bit*)
3891      case $lt_cv_prog_gnu_ld in
3892      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3893      *)    LD="${LD-ld} -64" ;;
3894      esac
3895      ;;
3896    esac
3897  fi
3898  rm -rf conftest*
3899  ;;
3900
3901
3902esac
3903
3904need_locks="$enable_libtool_lock"
3905
3906
3907ac_ext=c
3908ac_cpp='$CPP $CPPFLAGS'
3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3913echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3914# On Suns, sometimes $CPP names a directory.
3915if test -n "$CPP" && test -d "$CPP"; then
3916  CPP=
3917fi
3918if test -z "$CPP"; then
3919  if test "${ac_cv_prog_CPP+set}" = set; then
3920  echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922      # Double quotes because CPP needs to be expanded
3923    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3924    do
3925      ac_preproc_ok=false
3926for ac_c_preproc_warn_flag in '' yes
3927do
3928  # Use a header file that comes with gcc, so configuring glibc
3929  # with a fresh cross-compiler works.
3930  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3931  # <limits.h> exists even on freestanding compilers.
3932  # On the NeXT, cc -E runs the code through the compiler's parser,
3933  # not just through cpp. "Syntax error" is here to catch this case.
3934  cat >conftest.$ac_ext <<_ACEOF
3935/* confdefs.h.  */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h.  */
3940#ifdef __STDC__
3941# include <limits.h>
3942#else
3943# include <assert.h>
3944#endif
3945		     Syntax error
3946_ACEOF
3947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3948  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3949  ac_status=$?
3950  grep -v '^ *+' conftest.er1 >conftest.err
3951  rm -f conftest.er1
3952  cat conftest.err >&5
3953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954  (exit $ac_status); } >/dev/null; then
3955  if test -s conftest.err; then
3956    ac_cpp_err=$ac_c_preproc_warn_flag
3957    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3958  else
3959    ac_cpp_err=
3960  fi
3961else
3962  ac_cpp_err=yes
3963fi
3964if test -z "$ac_cpp_err"; then
3965  :
3966else
3967  echo "$as_me: failed program was:" >&5
3968sed 's/^/| /' conftest.$ac_ext >&5
3969
3970  # Broken: fails on valid input.
3971continue
3972fi
3973rm -f conftest.err conftest.$ac_ext
3974
3975  # OK, works on sane cases.  Now check whether non-existent headers
3976  # can be detected and how.
3977  cat >conftest.$ac_ext <<_ACEOF
3978/* confdefs.h.  */
3979_ACEOF
3980cat confdefs.h >>conftest.$ac_ext
3981cat >>conftest.$ac_ext <<_ACEOF
3982/* end confdefs.h.  */
3983#include <ac_nonexistent.h>
3984_ACEOF
3985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3986  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3987  ac_status=$?
3988  grep -v '^ *+' conftest.er1 >conftest.err
3989  rm -f conftest.er1
3990  cat conftest.err >&5
3991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); } >/dev/null; then
3993  if test -s conftest.err; then
3994    ac_cpp_err=$ac_c_preproc_warn_flag
3995    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3996  else
3997    ac_cpp_err=
3998  fi
3999else
4000  ac_cpp_err=yes
4001fi
4002if test -z "$ac_cpp_err"; then
4003  # Broken: success on invalid input.
4004continue
4005else
4006  echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009  # Passes both tests.
4010ac_preproc_ok=:
4011break
4012fi
4013rm -f conftest.err conftest.$ac_ext
4014
4015done
4016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4017rm -f conftest.err conftest.$ac_ext
4018if $ac_preproc_ok; then
4019  break
4020fi
4021
4022    done
4023    ac_cv_prog_CPP=$CPP
4024
4025fi
4026  CPP=$ac_cv_prog_CPP
4027else
4028  ac_cv_prog_CPP=$CPP
4029fi
4030echo "$as_me:$LINENO: result: $CPP" >&5
4031echo "${ECHO_T}$CPP" >&6
4032ac_preproc_ok=false
4033for ac_c_preproc_warn_flag in '' yes
4034do
4035  # Use a header file that comes with gcc, so configuring glibc
4036  # with a fresh cross-compiler works.
4037  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4038  # <limits.h> exists even on freestanding compilers.
4039  # On the NeXT, cc -E runs the code through the compiler's parser,
4040  # not just through cpp. "Syntax error" is here to catch this case.
4041  cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h.  */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h.  */
4047#ifdef __STDC__
4048# include <limits.h>
4049#else
4050# include <assert.h>
4051#endif
4052		     Syntax error
4053_ACEOF
4054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4055  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4056  ac_status=$?
4057  grep -v '^ *+' conftest.er1 >conftest.err
4058  rm -f conftest.er1
4059  cat conftest.err >&5
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); } >/dev/null; then
4062  if test -s conftest.err; then
4063    ac_cpp_err=$ac_c_preproc_warn_flag
4064    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4065  else
4066    ac_cpp_err=
4067  fi
4068else
4069  ac_cpp_err=yes
4070fi
4071if test -z "$ac_cpp_err"; then
4072  :
4073else
4074  echo "$as_me: failed program was:" >&5
4075sed 's/^/| /' conftest.$ac_ext >&5
4076
4077  # Broken: fails on valid input.
4078continue
4079fi
4080rm -f conftest.err conftest.$ac_ext
4081
4082  # OK, works on sane cases.  Now check whether non-existent headers
4083  # can be detected and how.
4084  cat >conftest.$ac_ext <<_ACEOF
4085/* confdefs.h.  */
4086_ACEOF
4087cat confdefs.h >>conftest.$ac_ext
4088cat >>conftest.$ac_ext <<_ACEOF
4089/* end confdefs.h.  */
4090#include <ac_nonexistent.h>
4091_ACEOF
4092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4093  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4094  ac_status=$?
4095  grep -v '^ *+' conftest.er1 >conftest.err
4096  rm -f conftest.er1
4097  cat conftest.err >&5
4098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099  (exit $ac_status); } >/dev/null; then
4100  if test -s conftest.err; then
4101    ac_cpp_err=$ac_c_preproc_warn_flag
4102    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4103  else
4104    ac_cpp_err=
4105  fi
4106else
4107  ac_cpp_err=yes
4108fi
4109if test -z "$ac_cpp_err"; then
4110  # Broken: success on invalid input.
4111continue
4112else
4113  echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
4115
4116  # Passes both tests.
4117ac_preproc_ok=:
4118break
4119fi
4120rm -f conftest.err conftest.$ac_ext
4121
4122done
4123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124rm -f conftest.err conftest.$ac_ext
4125if $ac_preproc_ok; then
4126  :
4127else
4128  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4129See \`config.log' for more details." >&5
4130echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4131See \`config.log' for more details." >&2;}
4132   { (exit 1); exit 1; }; }
4133fi
4134
4135ac_ext=c
4136ac_cpp='$CPP $CPPFLAGS'
4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141
4142echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4143echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4144if test "${ac_cv_header_stdc+set}" = set; then
4145  echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147  cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h.  */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h.  */
4153#include <stdlib.h>
4154#include <stdarg.h>
4155#include <string.h>
4156#include <float.h>
4157
4158int
4159main ()
4160{
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166rm -f conftest.$ac_objext
4167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4168  (eval $ac_compile) 2>conftest.er1
4169  ac_status=$?
4170  grep -v '^ *+' conftest.er1 >conftest.err
4171  rm -f conftest.er1
4172  cat conftest.err >&5
4173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174  (exit $ac_status); } &&
4175	 { ac_try='test -z "$ac_c_werror_flag"
4176			 || test ! -s conftest.err'
4177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178  (eval $ac_try) 2>&5
4179  ac_status=$?
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); }; } &&
4182	 { ac_try='test -s conftest.$ac_objext'
4183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184  (eval $ac_try) 2>&5
4185  ac_status=$?
4186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187  (exit $ac_status); }; }; then
4188  ac_cv_header_stdc=yes
4189else
4190  echo "$as_me: failed program was:" >&5
4191sed 's/^/| /' conftest.$ac_ext >&5
4192
4193ac_cv_header_stdc=no
4194fi
4195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4196
4197if test $ac_cv_header_stdc = yes; then
4198  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4199  cat >conftest.$ac_ext <<_ACEOF
4200/* confdefs.h.  */
4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
4204/* end confdefs.h.  */
4205#include <string.h>
4206
4207_ACEOF
4208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209  $EGREP "memchr" >/dev/null 2>&1; then
4210  :
4211else
4212  ac_cv_header_stdc=no
4213fi
4214rm -f conftest*
4215
4216fi
4217
4218if test $ac_cv_header_stdc = yes; then
4219  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4220  cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h.  */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h.  */
4226#include <stdlib.h>
4227
4228_ACEOF
4229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4230  $EGREP "free" >/dev/null 2>&1; then
4231  :
4232else
4233  ac_cv_header_stdc=no
4234fi
4235rm -f conftest*
4236
4237fi
4238
4239if test $ac_cv_header_stdc = yes; then
4240  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4241  if test "$cross_compiling" = yes; then
4242  :
4243else
4244  cat >conftest.$ac_ext <<_ACEOF
4245/* confdefs.h.  */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h.  */
4250#include <ctype.h>
4251#if ((' ' & 0x0FF) == 0x020)
4252# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4253# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4254#else
4255# define ISLOWER(c) \
4256		   (('a' <= (c) && (c) <= 'i') \
4257		     || ('j' <= (c) && (c) <= 'r') \
4258		     || ('s' <= (c) && (c) <= 'z'))
4259# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4260#endif
4261
4262#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4263int
4264main ()
4265{
4266  int i;
4267  for (i = 0; i < 256; i++)
4268    if (XOR (islower (i), ISLOWER (i))
4269	|| toupper (i) != TOUPPER (i))
4270      exit(2);
4271  exit (0);
4272}
4273_ACEOF
4274rm -f conftest$ac_exeext
4275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4276  (eval $ac_link) 2>&5
4277  ac_status=$?
4278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281  (eval $ac_try) 2>&5
4282  ac_status=$?
4283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284  (exit $ac_status); }; }; then
4285  :
4286else
4287  echo "$as_me: program exited with status $ac_status" >&5
4288echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291( exit $ac_status )
4292ac_cv_header_stdc=no
4293fi
4294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4295fi
4296fi
4297fi
4298echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4299echo "${ECHO_T}$ac_cv_header_stdc" >&6
4300if test $ac_cv_header_stdc = yes; then
4301
4302cat >>confdefs.h <<\_ACEOF
4303#define STDC_HEADERS 1
4304_ACEOF
4305
4306fi
4307
4308# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4319		  inttypes.h stdint.h unistd.h
4320do
4321as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4322echo "$as_me:$LINENO: checking for $ac_header" >&5
4323echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4324if eval "test \"\${$as_ac_Header+set}\" = set"; then
4325  echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327  cat >conftest.$ac_ext <<_ACEOF
4328/* confdefs.h.  */
4329_ACEOF
4330cat confdefs.h >>conftest.$ac_ext
4331cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h.  */
4333$ac_includes_default
4334
4335#include <$ac_header>
4336_ACEOF
4337rm -f conftest.$ac_objext
4338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339  (eval $ac_compile) 2>conftest.er1
4340  ac_status=$?
4341  grep -v '^ *+' conftest.er1 >conftest.err
4342  rm -f conftest.er1
4343  cat conftest.err >&5
4344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345  (exit $ac_status); } &&
4346	 { ac_try='test -z "$ac_c_werror_flag"
4347			 || test ! -s conftest.err'
4348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349  (eval $ac_try) 2>&5
4350  ac_status=$?
4351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352  (exit $ac_status); }; } &&
4353	 { ac_try='test -s conftest.$ac_objext'
4354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355  (eval $ac_try) 2>&5
4356  ac_status=$?
4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358  (exit $ac_status); }; }; then
4359  eval "$as_ac_Header=yes"
4360else
4361  echo "$as_me: failed program was:" >&5
4362sed 's/^/| /' conftest.$ac_ext >&5
4363
4364eval "$as_ac_Header=no"
4365fi
4366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4367fi
4368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370if test `eval echo '${'$as_ac_Header'}'` = yes; then
4371  cat >>confdefs.h <<_ACEOF
4372#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4373_ACEOF
4374
4375fi
4376
4377done
4378
4379
4380
4381for ac_header in dlfcn.h
4382do
4383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4384if eval "test \"\${$as_ac_Header+set}\" = set"; then
4385  echo "$as_me:$LINENO: checking for $ac_header" >&5
4386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4387if eval "test \"\${$as_ac_Header+set}\" = set"; then
4388  echo $ECHO_N "(cached) $ECHO_C" >&6
4389fi
4390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4392else
4393  # Is the header compilable?
4394echo "$as_me:$LINENO: checking $ac_header usability" >&5
4395echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4396cat >conftest.$ac_ext <<_ACEOF
4397/* confdefs.h.  */
4398_ACEOF
4399cat confdefs.h >>conftest.$ac_ext
4400cat >>conftest.$ac_ext <<_ACEOF
4401/* end confdefs.h.  */
4402$ac_includes_default
4403#include <$ac_header>
4404_ACEOF
4405rm -f conftest.$ac_objext
4406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407  (eval $ac_compile) 2>conftest.er1
4408  ac_status=$?
4409  grep -v '^ *+' conftest.er1 >conftest.err
4410  rm -f conftest.er1
4411  cat conftest.err >&5
4412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413  (exit $ac_status); } &&
4414	 { ac_try='test -z "$ac_c_werror_flag"
4415			 || test ! -s conftest.err'
4416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417  (eval $ac_try) 2>&5
4418  ac_status=$?
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); }; } &&
4421	 { ac_try='test -s conftest.$ac_objext'
4422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423  (eval $ac_try) 2>&5
4424  ac_status=$?
4425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426  (exit $ac_status); }; }; then
4427  ac_header_compiler=yes
4428else
4429  echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432ac_header_compiler=no
4433fi
4434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4436echo "${ECHO_T}$ac_header_compiler" >&6
4437
4438# Is the header present?
4439echo "$as_me:$LINENO: checking $ac_header presence" >&5
4440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4441cat >conftest.$ac_ext <<_ACEOF
4442/* confdefs.h.  */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h.  */
4447#include <$ac_header>
4448_ACEOF
4449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4450  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4451  ac_status=$?
4452  grep -v '^ *+' conftest.er1 >conftest.err
4453  rm -f conftest.er1
4454  cat conftest.err >&5
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); } >/dev/null; then
4457  if test -s conftest.err; then
4458    ac_cpp_err=$ac_c_preproc_warn_flag
4459    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4460  else
4461    ac_cpp_err=
4462  fi
4463else
4464  ac_cpp_err=yes
4465fi
4466if test -z "$ac_cpp_err"; then
4467  ac_header_preproc=yes
4468else
4469  echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
4472  ac_header_preproc=no
4473fi
4474rm -f conftest.err conftest.$ac_ext
4475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4476echo "${ECHO_T}$ac_header_preproc" >&6
4477
4478# So?  What about this header?
4479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4480  yes:no: )
4481    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4483    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4484echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4485    ac_header_preproc=yes
4486    ;;
4487  no:yes:* )
4488    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4489echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4490    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4491echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4492    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4493echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4494    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4495echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4496    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4497echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4498    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4499echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4500    (
4501      cat <<\_ASBOX
4502## ---------------------------------------------------------------------- ##
4503## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4504## ---------------------------------------------------------------------- ##
4505_ASBOX
4506    ) |
4507      sed "s/^/$as_me: WARNING:     /" >&2
4508    ;;
4509esac
4510echo "$as_me:$LINENO: checking for $ac_header" >&5
4511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4512if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513  echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515  eval "$as_ac_Header=\$ac_header_preproc"
4516fi
4517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4519
4520fi
4521if test `eval echo '${'$as_ac_Header'}'` = yes; then
4522  cat >>confdefs.h <<_ACEOF
4523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4524_ACEOF
4525
4526fi
4527
4528done
4529
4530ac_ext=cc
4531ac_cpp='$CXXCPP $CPPFLAGS'
4532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4535if test -n "$ac_tool_prefix"; then
4536  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4537  do
4538    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4539set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4540echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542if test "${ac_cv_prog_CXX+set}" = set; then
4543  echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
4545  if test -n "$CXX"; then
4546  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4547else
4548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551  IFS=$as_save_IFS
4552  test -z "$as_dir" && as_dir=.
4553  for ac_exec_ext in '' $ac_executable_extensions; do
4554  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4556    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557    break 2
4558  fi
4559done
4560done
4561
4562fi
4563fi
4564CXX=$ac_cv_prog_CXX
4565if test -n "$CXX"; then
4566  echo "$as_me:$LINENO: result: $CXX" >&5
4567echo "${ECHO_T}$CXX" >&6
4568else
4569  echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
4571fi
4572
4573    test -n "$CXX" && break
4574  done
4575fi
4576if test -z "$CXX"; then
4577  ac_ct_CXX=$CXX
4578  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4579do
4580  # Extract the first word of "$ac_prog", so it can be a program name with args.
4581set dummy $ac_prog; ac_word=$2
4582echo "$as_me:$LINENO: checking for $ac_word" >&5
4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4585  echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587  if test -n "$ac_ct_CXX"; then
4588  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4589else
4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593  IFS=$as_save_IFS
4594  test -z "$as_dir" && as_dir=.
4595  for ac_exec_ext in '' $ac_executable_extensions; do
4596  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597    ac_cv_prog_ac_ct_CXX="$ac_prog"
4598    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599    break 2
4600  fi
4601done
4602done
4603
4604fi
4605fi
4606ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4607if test -n "$ac_ct_CXX"; then
4608  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4609echo "${ECHO_T}$ac_ct_CXX" >&6
4610else
4611  echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6
4613fi
4614
4615  test -n "$ac_ct_CXX" && break
4616done
4617test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4618
4619  CXX=$ac_ct_CXX
4620fi
4621
4622
4623# Provide some information about the compiler.
4624echo "$as_me:$LINENO:" \
4625     "checking for C++ compiler version" >&5
4626ac_compiler=`set X $ac_compile; echo $2`
4627{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4628  (eval $ac_compiler --version </dev/null >&5) 2>&5
4629  ac_status=$?
4630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631  (exit $ac_status); }
4632{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4633  (eval $ac_compiler -v </dev/null >&5) 2>&5
4634  ac_status=$?
4635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636  (exit $ac_status); }
4637{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4638  (eval $ac_compiler -V </dev/null >&5) 2>&5
4639  ac_status=$?
4640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641  (exit $ac_status); }
4642
4643echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4644echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4645if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648  cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h.  */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h.  */
4654
4655int
4656main ()
4657{
4658#ifndef __GNUC__
4659       choke me
4660#endif
4661
4662  ;
4663  return 0;
4664}
4665_ACEOF
4666rm -f conftest.$ac_objext
4667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668  (eval $ac_compile) 2>conftest.er1
4669  ac_status=$?
4670  grep -v '^ *+' conftest.er1 >conftest.err
4671  rm -f conftest.er1
4672  cat conftest.err >&5
4673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674  (exit $ac_status); } &&
4675	 { ac_try='test -z "$ac_cxx_werror_flag"
4676			 || test ! -s conftest.err'
4677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678  (eval $ac_try) 2>&5
4679  ac_status=$?
4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681  (exit $ac_status); }; } &&
4682	 { ac_try='test -s conftest.$ac_objext'
4683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684  (eval $ac_try) 2>&5
4685  ac_status=$?
4686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687  (exit $ac_status); }; }; then
4688  ac_compiler_gnu=yes
4689else
4690  echo "$as_me: failed program was:" >&5
4691sed 's/^/| /' conftest.$ac_ext >&5
4692
4693ac_compiler_gnu=no
4694fi
4695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4697
4698fi
4699echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4700echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4701GXX=`test $ac_compiler_gnu = yes && echo yes`
4702ac_test_CXXFLAGS=${CXXFLAGS+set}
4703ac_save_CXXFLAGS=$CXXFLAGS
4704CXXFLAGS="-g"
4705echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4706echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4707if test "${ac_cv_prog_cxx_g+set}" = set; then
4708  echo $ECHO_N "(cached) $ECHO_C" >&6
4709else
4710  cat >conftest.$ac_ext <<_ACEOF
4711/* confdefs.h.  */
4712_ACEOF
4713cat confdefs.h >>conftest.$ac_ext
4714cat >>conftest.$ac_ext <<_ACEOF
4715/* end confdefs.h.  */
4716
4717int
4718main ()
4719{
4720
4721  ;
4722  return 0;
4723}
4724_ACEOF
4725rm -f conftest.$ac_objext
4726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727  (eval $ac_compile) 2>conftest.er1
4728  ac_status=$?
4729  grep -v '^ *+' conftest.er1 >conftest.err
4730  rm -f conftest.er1
4731  cat conftest.err >&5
4732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733  (exit $ac_status); } &&
4734	 { ac_try='test -z "$ac_cxx_werror_flag"
4735			 || test ! -s conftest.err'
4736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737  (eval $ac_try) 2>&5
4738  ac_status=$?
4739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740  (exit $ac_status); }; } &&
4741	 { ac_try='test -s conftest.$ac_objext'
4742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743  (eval $ac_try) 2>&5
4744  ac_status=$?
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); }; }; then
4747  ac_cv_prog_cxx_g=yes
4748else
4749  echo "$as_me: failed program was:" >&5
4750sed 's/^/| /' conftest.$ac_ext >&5
4751
4752ac_cv_prog_cxx_g=no
4753fi
4754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4755fi
4756echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4757echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4758if test "$ac_test_CXXFLAGS" = set; then
4759  CXXFLAGS=$ac_save_CXXFLAGS
4760elif test $ac_cv_prog_cxx_g = yes; then
4761  if test "$GXX" = yes; then
4762    CXXFLAGS="-g -O2"
4763  else
4764    CXXFLAGS="-g"
4765  fi
4766else
4767  if test "$GXX" = yes; then
4768    CXXFLAGS="-O2"
4769  else
4770    CXXFLAGS=
4771  fi
4772fi
4773for ac_declaration in \
4774   '' \
4775   'extern "C" void std::exit (int) throw (); using std::exit;' \
4776   'extern "C" void std::exit (int); using std::exit;' \
4777   'extern "C" void exit (int) throw ();' \
4778   'extern "C" void exit (int);' \
4779   'void exit (int);'
4780do
4781  cat >conftest.$ac_ext <<_ACEOF
4782/* confdefs.h.  */
4783_ACEOF
4784cat confdefs.h >>conftest.$ac_ext
4785cat >>conftest.$ac_ext <<_ACEOF
4786/* end confdefs.h.  */
4787$ac_declaration
4788#include <stdlib.h>
4789int
4790main ()
4791{
4792exit (42);
4793  ;
4794  return 0;
4795}
4796_ACEOF
4797rm -f conftest.$ac_objext
4798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799  (eval $ac_compile) 2>conftest.er1
4800  ac_status=$?
4801  grep -v '^ *+' conftest.er1 >conftest.err
4802  rm -f conftest.er1
4803  cat conftest.err >&5
4804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805  (exit $ac_status); } &&
4806	 { ac_try='test -z "$ac_cxx_werror_flag"
4807			 || test ! -s conftest.err'
4808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809  (eval $ac_try) 2>&5
4810  ac_status=$?
4811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812  (exit $ac_status); }; } &&
4813	 { ac_try='test -s conftest.$ac_objext'
4814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815  (eval $ac_try) 2>&5
4816  ac_status=$?
4817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818  (exit $ac_status); }; }; then
4819  :
4820else
4821  echo "$as_me: failed program was:" >&5
4822sed 's/^/| /' conftest.$ac_ext >&5
4823
4824continue
4825fi
4826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4827  cat >conftest.$ac_ext <<_ACEOF
4828/* confdefs.h.  */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h.  */
4833$ac_declaration
4834int
4835main ()
4836{
4837exit (42);
4838  ;
4839  return 0;
4840}
4841_ACEOF
4842rm -f conftest.$ac_objext
4843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4844  (eval $ac_compile) 2>conftest.er1
4845  ac_status=$?
4846  grep -v '^ *+' conftest.er1 >conftest.err
4847  rm -f conftest.er1
4848  cat conftest.err >&5
4849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850  (exit $ac_status); } &&
4851	 { ac_try='test -z "$ac_cxx_werror_flag"
4852			 || test ! -s conftest.err'
4853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854  (eval $ac_try) 2>&5
4855  ac_status=$?
4856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857  (exit $ac_status); }; } &&
4858	 { ac_try='test -s conftest.$ac_objext'
4859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860  (eval $ac_try) 2>&5
4861  ac_status=$?
4862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863  (exit $ac_status); }; }; then
4864  break
4865else
4866  echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
4869fi
4870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4871done
4872rm -f conftest*
4873if test -n "$ac_declaration"; then
4874  echo '#ifdef __cplusplus' >>confdefs.h
4875  echo $ac_declaration      >>confdefs.h
4876  echo '#endif'             >>confdefs.h
4877fi
4878
4879ac_ext=cc
4880ac_cpp='$CXXCPP $CPPFLAGS'
4881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4884
4885depcc="$CXX"  am_compiler_list=
4886
4887echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4888echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4889if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4890  echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
4892  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4893  # We make a subdir and do the tests there.  Otherwise we can end up
4894  # making bogus files that we don't know about and never remove.  For
4895  # instance it was reported that on HP-UX the gcc test will end up
4896  # making a dummy file named `D' -- because `-MD' means `put the output
4897  # in D'.
4898  mkdir conftest.dir
4899  # Copy depcomp to subdir because otherwise we won't find it if we're
4900  # using a relative directory.
4901  cp "$am_depcomp" conftest.dir
4902  cd conftest.dir
4903  # We will build objects and dependencies in a subdirectory because
4904  # it helps to detect inapplicable dependency modes.  For instance
4905  # both Tru64's cc and ICC support -MD to output dependencies as a
4906  # side effect of compilation, but ICC will put the dependencies in
4907  # the current directory while Tru64 will put them in the object
4908  # directory.
4909  mkdir sub
4910
4911  am_cv_CXX_dependencies_compiler_type=none
4912  if test "$am_compiler_list" = ""; then
4913     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4914  fi
4915  for depmode in $am_compiler_list; do
4916    # Setup a source with many dependencies, because some compilers
4917    # like to wrap large dependency lists on column 80 (with \), and
4918    # we should not choose a depcomp mode which is confused by this.
4919    #
4920    # We need to recreate these files for each test, as the compiler may
4921    # overwrite some of them when testing with obscure command lines.
4922    # This happens at least with the AIX C compiler.
4923    : > sub/conftest.c
4924    for i in 1 2 3 4 5 6; do
4925      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4926      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4927      # Solaris 8's {/usr,}/bin/sh.
4928      touch sub/conftst$i.h
4929    done
4930    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4931
4932    case $depmode in
4933    nosideeffect)
4934      # after this tag, mechanisms are not by side-effect, so they'll
4935      # only be used when explicitly requested
4936      if test "x$enable_dependency_tracking" = xyes; then
4937	continue
4938      else
4939	break
4940      fi
4941      ;;
4942    none) break ;;
4943    esac
4944    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4945    # mode.  It turns out that the SunPro C++ compiler does not properly
4946    # handle `-M -o', and we need to detect this.
4947    if depmode=$depmode \
4948       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4949       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4950       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4951         >/dev/null 2>conftest.err &&
4952       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4953       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4954       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4955      # icc doesn't choke on unknown options, it will just issue warnings
4956      # or remarks (even with -Werror).  So we grep stderr for any message
4957      # that says an option was ignored or not supported.
4958      # When given -MP, icc 7.0 and 7.1 complain thusly:
4959      #   icc: Command line warning: ignoring option '-M'; no argument required
4960      # The diagnosis changed in icc 8.0:
4961      #   icc: Command line remark: option '-MP' not supported
4962      if (grep 'ignoring option' conftest.err ||
4963          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4964        am_cv_CXX_dependencies_compiler_type=$depmode
4965        break
4966      fi
4967    fi
4968  done
4969
4970  cd ..
4971  rm -rf conftest.dir
4972else
4973  am_cv_CXX_dependencies_compiler_type=none
4974fi
4975
4976fi
4977echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4978echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4979CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4980
4981
4982
4983if
4984  test "x$enable_dependency_tracking" != xno \
4985  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4986  am__fastdepCXX_TRUE=
4987  am__fastdepCXX_FALSE='#'
4988else
4989  am__fastdepCXX_TRUE='#'
4990  am__fastdepCXX_FALSE=
4991fi
4992
4993
4994
4995
4996if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4997    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4998    (test "X$CXX" != "Xg++"))) ; then
4999  ac_ext=cc
5000ac_cpp='$CXXCPP $CPPFLAGS'
5001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5004echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5005echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5006if test -z "$CXXCPP"; then
5007  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5008  echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010      # Double quotes because CXXCPP needs to be expanded
5011    for CXXCPP in "$CXX -E" "/lib/cpp"
5012    do
5013      ac_preproc_ok=false
5014for ac_cxx_preproc_warn_flag in '' yes
5015do
5016  # Use a header file that comes with gcc, so configuring glibc
5017  # with a fresh cross-compiler works.
5018  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019  # <limits.h> exists even on freestanding compilers.
5020  # On the NeXT, cc -E runs the code through the compiler's parser,
5021  # not just through cpp. "Syntax error" is here to catch this case.
5022  cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h.  */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h.  */
5028#ifdef __STDC__
5029# include <limits.h>
5030#else
5031# include <assert.h>
5032#endif
5033		     Syntax error
5034_ACEOF
5035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5036  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5037  ac_status=$?
5038  grep -v '^ *+' conftest.er1 >conftest.err
5039  rm -f conftest.er1
5040  cat conftest.err >&5
5041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042  (exit $ac_status); } >/dev/null; then
5043  if test -s conftest.err; then
5044    ac_cpp_err=$ac_cxx_preproc_warn_flag
5045    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5046  else
5047    ac_cpp_err=
5048  fi
5049else
5050  ac_cpp_err=yes
5051fi
5052if test -z "$ac_cpp_err"; then
5053  :
5054else
5055  echo "$as_me: failed program was:" >&5
5056sed 's/^/| /' conftest.$ac_ext >&5
5057
5058  # Broken: fails on valid input.
5059continue
5060fi
5061rm -f conftest.err conftest.$ac_ext
5062
5063  # OK, works on sane cases.  Now check whether non-existent headers
5064  # can be detected and how.
5065  cat >conftest.$ac_ext <<_ACEOF
5066/* confdefs.h.  */
5067_ACEOF
5068cat confdefs.h >>conftest.$ac_ext
5069cat >>conftest.$ac_ext <<_ACEOF
5070/* end confdefs.h.  */
5071#include <ac_nonexistent.h>
5072_ACEOF
5073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5074  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5075  ac_status=$?
5076  grep -v '^ *+' conftest.er1 >conftest.err
5077  rm -f conftest.er1
5078  cat conftest.err >&5
5079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080  (exit $ac_status); } >/dev/null; then
5081  if test -s conftest.err; then
5082    ac_cpp_err=$ac_cxx_preproc_warn_flag
5083    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5084  else
5085    ac_cpp_err=
5086  fi
5087else
5088  ac_cpp_err=yes
5089fi
5090if test -z "$ac_cpp_err"; then
5091  # Broken: success on invalid input.
5092continue
5093else
5094  echo "$as_me: failed program was:" >&5
5095sed 's/^/| /' conftest.$ac_ext >&5
5096
5097  # Passes both tests.
5098ac_preproc_ok=:
5099break
5100fi
5101rm -f conftest.err conftest.$ac_ext
5102
5103done
5104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5105rm -f conftest.err conftest.$ac_ext
5106if $ac_preproc_ok; then
5107  break
5108fi
5109
5110    done
5111    ac_cv_prog_CXXCPP=$CXXCPP
5112
5113fi
5114  CXXCPP=$ac_cv_prog_CXXCPP
5115else
5116  ac_cv_prog_CXXCPP=$CXXCPP
5117fi
5118echo "$as_me:$LINENO: result: $CXXCPP" >&5
5119echo "${ECHO_T}$CXXCPP" >&6
5120ac_preproc_ok=false
5121for ac_cxx_preproc_warn_flag in '' yes
5122do
5123  # Use a header file that comes with gcc, so configuring glibc
5124  # with a fresh cross-compiler works.
5125  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5126  # <limits.h> exists even on freestanding compilers.
5127  # On the NeXT, cc -E runs the code through the compiler's parser,
5128  # not just through cpp. "Syntax error" is here to catch this case.
5129  cat >conftest.$ac_ext <<_ACEOF
5130/* confdefs.h.  */
5131_ACEOF
5132cat confdefs.h >>conftest.$ac_ext
5133cat >>conftest.$ac_ext <<_ACEOF
5134/* end confdefs.h.  */
5135#ifdef __STDC__
5136# include <limits.h>
5137#else
5138# include <assert.h>
5139#endif
5140		     Syntax error
5141_ACEOF
5142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5143  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5144  ac_status=$?
5145  grep -v '^ *+' conftest.er1 >conftest.err
5146  rm -f conftest.er1
5147  cat conftest.err >&5
5148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149  (exit $ac_status); } >/dev/null; then
5150  if test -s conftest.err; then
5151    ac_cpp_err=$ac_cxx_preproc_warn_flag
5152    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5153  else
5154    ac_cpp_err=
5155  fi
5156else
5157  ac_cpp_err=yes
5158fi
5159if test -z "$ac_cpp_err"; then
5160  :
5161else
5162  echo "$as_me: failed program was:" >&5
5163sed 's/^/| /' conftest.$ac_ext >&5
5164
5165  # Broken: fails on valid input.
5166continue
5167fi
5168rm -f conftest.err conftest.$ac_ext
5169
5170  # OK, works on sane cases.  Now check whether non-existent headers
5171  # can be detected and how.
5172  cat >conftest.$ac_ext <<_ACEOF
5173/* confdefs.h.  */
5174_ACEOF
5175cat confdefs.h >>conftest.$ac_ext
5176cat >>conftest.$ac_ext <<_ACEOF
5177/* end confdefs.h.  */
5178#include <ac_nonexistent.h>
5179_ACEOF
5180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5181  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5182  ac_status=$?
5183  grep -v '^ *+' conftest.er1 >conftest.err
5184  rm -f conftest.er1
5185  cat conftest.err >&5
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); } >/dev/null; then
5188  if test -s conftest.err; then
5189    ac_cpp_err=$ac_cxx_preproc_warn_flag
5190    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5191  else
5192    ac_cpp_err=
5193  fi
5194else
5195  ac_cpp_err=yes
5196fi
5197if test -z "$ac_cpp_err"; then
5198  # Broken: success on invalid input.
5199continue
5200else
5201  echo "$as_me: failed program was:" >&5
5202sed 's/^/| /' conftest.$ac_ext >&5
5203
5204  # Passes both tests.
5205ac_preproc_ok=:
5206break
5207fi
5208rm -f conftest.err conftest.$ac_ext
5209
5210done
5211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5212rm -f conftest.err conftest.$ac_ext
5213if $ac_preproc_ok; then
5214  :
5215else
5216  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5217See \`config.log' for more details." >&5
5218echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5219See \`config.log' for more details." >&2;}
5220   { (exit 1); exit 1; }; }
5221fi
5222
5223ac_ext=cc
5224ac_cpp='$CXXCPP $CPPFLAGS'
5225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5228
5229fi
5230
5231
5232ac_ext=f
5233ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5234ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5236if test -n "$ac_tool_prefix"; then
5237  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5238  do
5239    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5241echo "$as_me:$LINENO: checking for $ac_word" >&5
5242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243if test "${ac_cv_prog_F77+set}" = set; then
5244  echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246  if test -n "$F77"; then
5247  ac_cv_prog_F77="$F77" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252  IFS=$as_save_IFS
5253  test -z "$as_dir" && as_dir=.
5254  for ac_exec_ext in '' $ac_executable_extensions; do
5255  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258    break 2
5259  fi
5260done
5261done
5262
5263fi
5264fi
5265F77=$ac_cv_prog_F77
5266if test -n "$F77"; then
5267  echo "$as_me:$LINENO: result: $F77" >&5
5268echo "${ECHO_T}$F77" >&6
5269else
5270  echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272fi
5273
5274    test -n "$F77" && break
5275  done
5276fi
5277if test -z "$F77"; then
5278  ac_ct_F77=$F77
5279  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5280do
5281  # Extract the first word of "$ac_prog", so it can be a program name with args.
5282set dummy $ac_prog; ac_word=$2
5283echo "$as_me:$LINENO: checking for $ac_word" >&5
5284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5285if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5286  echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288  if test -n "$ac_ct_F77"; then
5289  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5290else
5291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292for as_dir in $PATH
5293do
5294  IFS=$as_save_IFS
5295  test -z "$as_dir" && as_dir=.
5296  for ac_exec_ext in '' $ac_executable_extensions; do
5297  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298    ac_cv_prog_ac_ct_F77="$ac_prog"
5299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300    break 2
5301  fi
5302done
5303done
5304
5305fi
5306fi
5307ac_ct_F77=$ac_cv_prog_ac_ct_F77
5308if test -n "$ac_ct_F77"; then
5309  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5310echo "${ECHO_T}$ac_ct_F77" >&6
5311else
5312  echo "$as_me:$LINENO: result: no" >&5
5313echo "${ECHO_T}no" >&6
5314fi
5315
5316  test -n "$ac_ct_F77" && break
5317done
5318
5319  F77=$ac_ct_F77
5320fi
5321
5322
5323# Provide some information about the compiler.
5324echo "$as_me:5324:" \
5325     "checking for Fortran 77 compiler version" >&5
5326ac_compiler=`set X $ac_compile; echo $2`
5327{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5328  (eval $ac_compiler --version </dev/null >&5) 2>&5
5329  ac_status=$?
5330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331  (exit $ac_status); }
5332{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5333  (eval $ac_compiler -v </dev/null >&5) 2>&5
5334  ac_status=$?
5335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336  (exit $ac_status); }
5337{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5338  (eval $ac_compiler -V </dev/null >&5) 2>&5
5339  ac_status=$?
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); }
5342rm -f a.out
5343
5344# If we don't use `.F' as extension, the preprocessor is not run on the
5345# input file.  (Note that this only needs to work for GNU compilers.)
5346ac_save_ext=$ac_ext
5347ac_ext=F
5348echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5349echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5350if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5351  echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353  cat >conftest.$ac_ext <<_ACEOF
5354      program main
5355#ifndef __GNUC__
5356       choke me
5357#endif
5358
5359      end
5360_ACEOF
5361rm -f conftest.$ac_objext
5362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363  (eval $ac_compile) 2>conftest.er1
5364  ac_status=$?
5365  grep -v '^ *+' conftest.er1 >conftest.err
5366  rm -f conftest.er1
5367  cat conftest.err >&5
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); } &&
5370	 { ac_try='test -z "$ac_f77_werror_flag"
5371			 || test ! -s conftest.err'
5372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373  (eval $ac_try) 2>&5
5374  ac_status=$?
5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376  (exit $ac_status); }; } &&
5377	 { ac_try='test -s conftest.$ac_objext'
5378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379  (eval $ac_try) 2>&5
5380  ac_status=$?
5381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382  (exit $ac_status); }; }; then
5383  ac_compiler_gnu=yes
5384else
5385  echo "$as_me: failed program was:" >&5
5386sed 's/^/| /' conftest.$ac_ext >&5
5387
5388ac_compiler_gnu=no
5389fi
5390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5391ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5392
5393fi
5394echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5395echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5396ac_ext=$ac_save_ext
5397ac_test_FFLAGS=${FFLAGS+set}
5398ac_save_FFLAGS=$FFLAGS
5399FFLAGS=
5400echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5401echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5402if test "${ac_cv_prog_f77_g+set}" = set; then
5403  echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405  FFLAGS=-g
5406cat >conftest.$ac_ext <<_ACEOF
5407      program main
5408
5409      end
5410_ACEOF
5411rm -f conftest.$ac_objext
5412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413  (eval $ac_compile) 2>conftest.er1
5414  ac_status=$?
5415  grep -v '^ *+' conftest.er1 >conftest.err
5416  rm -f conftest.er1
5417  cat conftest.err >&5
5418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419  (exit $ac_status); } &&
5420	 { ac_try='test -z "$ac_f77_werror_flag"
5421			 || test ! -s conftest.err'
5422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423  (eval $ac_try) 2>&5
5424  ac_status=$?
5425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426  (exit $ac_status); }; } &&
5427	 { ac_try='test -s conftest.$ac_objext'
5428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429  (eval $ac_try) 2>&5
5430  ac_status=$?
5431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432  (exit $ac_status); }; }; then
5433  ac_cv_prog_f77_g=yes
5434else
5435  echo "$as_me: failed program was:" >&5
5436sed 's/^/| /' conftest.$ac_ext >&5
5437
5438ac_cv_prog_f77_g=no
5439fi
5440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5441
5442fi
5443echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5444echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5445if test "$ac_test_FFLAGS" = set; then
5446  FFLAGS=$ac_save_FFLAGS
5447elif test $ac_cv_prog_f77_g = yes; then
5448  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5449    FFLAGS="-g -O2"
5450  else
5451    FFLAGS="-g"
5452  fi
5453else
5454  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5455    FFLAGS="-O2"
5456  else
5457    FFLAGS=
5458  fi
5459fi
5460
5461G77=`test $ac_compiler_gnu = yes && echo yes`
5462ac_ext=c
5463ac_cpp='$CPP $CPPFLAGS'
5464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467
5468
5469
5470# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5471
5472# find the maximum length of command line arguments
5473echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5474echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5475if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5476  echo $ECHO_N "(cached) $ECHO_C" >&6
5477else
5478    i=0
5479  teststring="ABCD"
5480
5481  case $build_os in
5482  msdosdjgpp*)
5483    # On DJGPP, this test can blow up pretty badly due to problems in libc
5484    # (any single argument exceeding 2000 bytes causes a buffer overrun
5485    # during glob expansion).  Even if it were fixed, the result of this
5486    # check would be larger than it should be.
5487    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5488    ;;
5489
5490  gnu*)
5491    # Under GNU Hurd, this test is not required because there is
5492    # no limit to the length of command line arguments.
5493    # Libtool will interpret -1 as no limit whatsoever
5494    lt_cv_sys_max_cmd_len=-1;
5495    ;;
5496
5497  cygwin* | mingw*)
5498    # On Win9x/ME, this test blows up -- it succeeds, but takes
5499    # about 5 minutes as the teststring grows exponentially.
5500    # Worse, since 9x/ME are not pre-emptively multitasking,
5501    # you end up with a "frozen" computer, even though with patience
5502    # the test eventually succeeds (with a max line length of 256k).
5503    # Instead, let's just punt: use the minimum linelength reported by
5504    # all of the supported platforms: 8192 (on NT/2K/XP).
5505    lt_cv_sys_max_cmd_len=8192;
5506    ;;
5507
5508  amigaos*)
5509    # On AmigaOS with pdksh, this test takes hours, literally.
5510    # So we just punt and use a minimum line length of 8192.
5511    lt_cv_sys_max_cmd_len=8192;
5512    ;;
5513
5514  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5515    # This has been around since 386BSD, at least.  Likely further.
5516    if test -x /sbin/sysctl; then
5517      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5518    elif test -x /usr/sbin/sysctl; then
5519      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5520    else
5521      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5522    fi
5523    # And add a safety zone
5524    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5525    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5526    ;;
5527
5528  interix*)
5529    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5530    lt_cv_sys_max_cmd_len=196608
5531    ;;
5532
5533  osf*)
5534    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5535    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5536    # nice to cause kernel panics so lets avoid the loop below.
5537    # First set a reasonable default.
5538    lt_cv_sys_max_cmd_len=16384
5539    #
5540    if test -x /sbin/sysconfig; then
5541      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5542        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5543      esac
5544    fi
5545    ;;
5546  sco3.2v5*)
5547    lt_cv_sys_max_cmd_len=102400
5548    ;;
5549  sysv5* | sco5v6* | sysv4.2uw2*)
5550    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5551    if test -n "$kargmax"; then
5552      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5553    else
5554      lt_cv_sys_max_cmd_len=32768
5555    fi
5556    ;;
5557  *)
5558    # If test is not a shell built-in, we'll probably end up computing a
5559    # maximum length that is only half of the actual maximum length, but
5560    # we can't tell.
5561    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5562    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5563	       = "XX$teststring") >/dev/null 2>&1 &&
5564	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5565	    lt_cv_sys_max_cmd_len=$new_result &&
5566	    test $i != 17 # 1/2 MB should be enough
5567    do
5568      i=`expr $i + 1`
5569      teststring=$teststring$teststring
5570    done
5571    teststring=
5572    # Add a significant safety factor because C++ compilers can tack on massive
5573    # amounts of additional arguments before passing them to the linker.
5574    # It appears as though 1/2 is a usable value.
5575    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5576    ;;
5577  esac
5578
5579fi
5580
5581if test -n $lt_cv_sys_max_cmd_len ; then
5582  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5583echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5584else
5585  echo "$as_me:$LINENO: result: none" >&5
5586echo "${ECHO_T}none" >&6
5587fi
5588
5589
5590
5591
5592# Check for command to grab the raw symbol name followed by C symbol from nm.
5593echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5594echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5595if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5596  echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598
5599# These are sane defaults that work on at least a few old systems.
5600# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5601
5602# Character class describing NM global symbol codes.
5603symcode='[BCDEGRST]'
5604
5605# Regexp to match symbols that can be accessed directly from C.
5606sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5607
5608# Transform an extracted symbol line into a proper C declaration
5609lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5610
5611# Transform an extracted symbol line into symbol name and symbol address
5612lt_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'"
5613
5614# Define system-specific variables.
5615case $host_os in
5616aix*)
5617  symcode='[BCDT]'
5618  ;;
5619cygwin* | mingw* | pw32*)
5620  symcode='[ABCDGISTW]'
5621  ;;
5622hpux*) # Its linker distinguishes data from code symbols
5623  if test "$host_cpu" = ia64; then
5624    symcode='[ABCDEGRST]'
5625  fi
5626  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5627  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'"
5628  ;;
5629linux*)
5630  if test "$host_cpu" = ia64; then
5631    symcode='[ABCDGIRSTW]'
5632    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5633    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'"
5634  fi
5635  ;;
5636irix* | nonstopux*)
5637  symcode='[BCDEGRST]'
5638  ;;
5639osf*)
5640  symcode='[BCDEGQRST]'
5641  ;;
5642solaris*)
5643  symcode='[BDRT]'
5644  ;;
5645sco3.2v5*)
5646  symcode='[DT]'
5647  ;;
5648sysv4.2uw2*)
5649  symcode='[DT]'
5650  ;;
5651sysv5* | sco5v6* | unixware* | OpenUNIX*)
5652  symcode='[ABDT]'
5653  ;;
5654sysv4)
5655  symcode='[DFNSTU]'
5656  ;;
5657esac
5658
5659# Handle CRLF in mingw tool chain
5660opt_cr=
5661case $build_os in
5662mingw*)
5663  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5664  ;;
5665esac
5666
5667# If we're using GNU nm, then use its standard symbol codes.
5668case `$NM -V 2>&1` in
5669*GNU* | *'with BFD'*)
5670  symcode='[ABCDGIRSTW]' ;;
5671esac
5672
5673# Try without a prefix undercore, then with it.
5674for ac_symprfx in "" "_"; do
5675
5676  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5677  symxfrm="\\1 $ac_symprfx\\2 \\2"
5678
5679  # Write the raw and C identifiers.
5680  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5681
5682  # Check to see that the pipe works correctly.
5683  pipe_works=no
5684
5685  rm -f conftest*
5686  cat > conftest.$ac_ext <<EOF
5687#ifdef __cplusplus
5688extern "C" {
5689#endif
5690char nm_test_var;
5691void nm_test_func(){}
5692#ifdef __cplusplus
5693}
5694#endif
5695int main(){nm_test_var='a';nm_test_func();return(0);}
5696EOF
5697
5698  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699  (eval $ac_compile) 2>&5
5700  ac_status=$?
5701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702  (exit $ac_status); }; then
5703    # Now try to grab the symbols.
5704    nlist=conftest.nm
5705    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5706  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5707  ac_status=$?
5708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709  (exit $ac_status); } && test -s "$nlist"; then
5710      # Try sorting and uniquifying the output.
5711      if sort "$nlist" | uniq > "$nlist"T; then
5712	mv -f "$nlist"T "$nlist"
5713      else
5714	rm -f "$nlist"T
5715      fi
5716
5717      # Make sure that we snagged all the symbols we need.
5718      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5719	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5720	  cat <<EOF > conftest.$ac_ext
5721#ifdef __cplusplus
5722extern "C" {
5723#endif
5724
5725EOF
5726	  # Now generate the symbol file.
5727	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5728
5729	  cat <<EOF >> conftest.$ac_ext
5730#if defined (__STDC__) && __STDC__
5731# define lt_ptr_t void *
5732#else
5733# define lt_ptr_t char *
5734# define const
5735#endif
5736
5737/* The mapping between symbol names and symbols. */
5738const struct {
5739  const char *name;
5740  lt_ptr_t address;
5741}
5742lt_preloaded_symbols[] =
5743{
5744EOF
5745	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5746	  cat <<\EOF >> conftest.$ac_ext
5747  {0, (lt_ptr_t) 0}
5748};
5749
5750#ifdef __cplusplus
5751}
5752#endif
5753EOF
5754	  # Now try linking the two files.
5755	  mv conftest.$ac_objext conftstm.$ac_objext
5756	  lt_save_LIBS="$LIBS"
5757	  lt_save_CFLAGS="$CFLAGS"
5758	  LIBS="conftstm.$ac_objext"
5759	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5760	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5761  (eval $ac_link) 2>&5
5762  ac_status=$?
5763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5765	    pipe_works=yes
5766	  fi
5767	  LIBS="$lt_save_LIBS"
5768	  CFLAGS="$lt_save_CFLAGS"
5769	else
5770	  echo "cannot find nm_test_func in $nlist" >&5
5771	fi
5772      else
5773	echo "cannot find nm_test_var in $nlist" >&5
5774      fi
5775    else
5776      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5777    fi
5778  else
5779    echo "$progname: failed program was:" >&5
5780    cat conftest.$ac_ext >&5
5781  fi
5782  rm -f conftest* conftst*
5783
5784  # Do not use the global_symbol_pipe unless it works.
5785  if test "$pipe_works" = yes; then
5786    break
5787  else
5788    lt_cv_sys_global_symbol_pipe=
5789  fi
5790done
5791
5792fi
5793
5794if test -z "$lt_cv_sys_global_symbol_pipe"; then
5795  lt_cv_sys_global_symbol_to_cdecl=
5796fi
5797if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5798  echo "$as_me:$LINENO: result: failed" >&5
5799echo "${ECHO_T}failed" >&6
5800else
5801  echo "$as_me:$LINENO: result: ok" >&5
5802echo "${ECHO_T}ok" >&6
5803fi
5804
5805echo "$as_me:$LINENO: checking for objdir" >&5
5806echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5807if test "${lt_cv_objdir+set}" = set; then
5808  echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810  rm -f .libs 2>/dev/null
5811mkdir .libs 2>/dev/null
5812if test -d .libs; then
5813  lt_cv_objdir=.libs
5814else
5815  # MS-DOS does not allow filenames that begin with a dot.
5816  lt_cv_objdir=_libs
5817fi
5818rmdir .libs 2>/dev/null
5819fi
5820echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5821echo "${ECHO_T}$lt_cv_objdir" >&6
5822objdir=$lt_cv_objdir
5823
5824
5825
5826
5827
5828case $host_os in
5829aix3*)
5830  # AIX sometimes has problems with the GCC collect2 program.  For some
5831  # reason, if we set the COLLECT_NAMES environment variable, the problems
5832  # vanish in a puff of smoke.
5833  if test "X${COLLECT_NAMES+set}" != Xset; then
5834    COLLECT_NAMES=
5835    export COLLECT_NAMES
5836  fi
5837  ;;
5838esac
5839
5840# Sed substitution that helps us do robust quoting.  It backslashifies
5841# metacharacters that are still active within double-quoted strings.
5842Xsed='sed -e 1s/^X//'
5843sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5844
5845# Same as above, but do not quote variable references.
5846double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5847
5848# Sed substitution to delay expansion of an escaped shell variable in a
5849# double_quote_subst'ed string.
5850delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5851
5852# Sed substitution to avoid accidental globbing in evaled expressions
5853no_glob_subst='s/\*/\\\*/g'
5854
5855# Constants:
5856rm="rm -f"
5857
5858# Global variables:
5859default_ofile=libtool
5860can_build_shared=yes
5861
5862# All known linkers require a `.a' archive for static linking (except MSVC,
5863# which needs '.lib').
5864libext=a
5865ltmain="$ac_aux_dir/ltmain.sh"
5866ofile="$default_ofile"
5867with_gnu_ld="$lt_cv_prog_gnu_ld"
5868
5869if test -n "$ac_tool_prefix"; then
5870  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5871set dummy ${ac_tool_prefix}ar; ac_word=$2
5872echo "$as_me:$LINENO: checking for $ac_word" >&5
5873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5874if test "${ac_cv_prog_AR+set}" = set; then
5875  echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877  if test -n "$AR"; then
5878  ac_cv_prog_AR="$AR" # Let the user override the test.
5879else
5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881for as_dir in $PATH
5882do
5883  IFS=$as_save_IFS
5884  test -z "$as_dir" && as_dir=.
5885  for ac_exec_ext in '' $ac_executable_extensions; do
5886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5887    ac_cv_prog_AR="${ac_tool_prefix}ar"
5888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889    break 2
5890  fi
5891done
5892done
5893
5894fi
5895fi
5896AR=$ac_cv_prog_AR
5897if test -n "$AR"; then
5898  echo "$as_me:$LINENO: result: $AR" >&5
5899echo "${ECHO_T}$AR" >&6
5900else
5901  echo "$as_me:$LINENO: result: no" >&5
5902echo "${ECHO_T}no" >&6
5903fi
5904
5905fi
5906if test -z "$ac_cv_prog_AR"; then
5907  ac_ct_AR=$AR
5908  # Extract the first word of "ar", so it can be a program name with args.
5909set dummy ar; ac_word=$2
5910echo "$as_me:$LINENO: checking for $ac_word" >&5
5911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5912if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5913  echo $ECHO_N "(cached) $ECHO_C" >&6
5914else
5915  if test -n "$ac_ct_AR"; then
5916  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921  IFS=$as_save_IFS
5922  test -z "$as_dir" && as_dir=.
5923  for ac_exec_ext in '' $ac_executable_extensions; do
5924  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925    ac_cv_prog_ac_ct_AR="ar"
5926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927    break 2
5928  fi
5929done
5930done
5931
5932  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5933fi
5934fi
5935ac_ct_AR=$ac_cv_prog_ac_ct_AR
5936if test -n "$ac_ct_AR"; then
5937  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5938echo "${ECHO_T}$ac_ct_AR" >&6
5939else
5940  echo "$as_me:$LINENO: result: no" >&5
5941echo "${ECHO_T}no" >&6
5942fi
5943
5944  AR=$ac_ct_AR
5945else
5946  AR="$ac_cv_prog_AR"
5947fi
5948
5949if test -n "$ac_tool_prefix"; then
5950  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5951set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5952echo "$as_me:$LINENO: checking for $ac_word" >&5
5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5954if test "${ac_cv_prog_RANLIB+set}" = set; then
5955  echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
5957  if test -n "$RANLIB"; then
5958  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963  IFS=$as_save_IFS
5964  test -z "$as_dir" && as_dir=.
5965  for ac_exec_ext in '' $ac_executable_extensions; do
5966  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5967    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969    break 2
5970  fi
5971done
5972done
5973
5974fi
5975fi
5976RANLIB=$ac_cv_prog_RANLIB
5977if test -n "$RANLIB"; then
5978  echo "$as_me:$LINENO: result: $RANLIB" >&5
5979echo "${ECHO_T}$RANLIB" >&6
5980else
5981  echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6
5983fi
5984
5985fi
5986if test -z "$ac_cv_prog_RANLIB"; then
5987  ac_ct_RANLIB=$RANLIB
5988  # Extract the first word of "ranlib", so it can be a program name with args.
5989set dummy ranlib; ac_word=$2
5990echo "$as_me:$LINENO: checking for $ac_word" >&5
5991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5992if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5993  echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995  if test -n "$ac_ct_RANLIB"; then
5996  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001  IFS=$as_save_IFS
6002  test -z "$as_dir" && as_dir=.
6003  for ac_exec_ext in '' $ac_executable_extensions; do
6004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005    ac_cv_prog_ac_ct_RANLIB="ranlib"
6006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007    break 2
6008  fi
6009done
6010done
6011
6012  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6013fi
6014fi
6015ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6016if test -n "$ac_ct_RANLIB"; then
6017  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6018echo "${ECHO_T}$ac_ct_RANLIB" >&6
6019else
6020  echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6
6022fi
6023
6024  RANLIB=$ac_ct_RANLIB
6025else
6026  RANLIB="$ac_cv_prog_RANLIB"
6027fi
6028
6029if test -n "$ac_tool_prefix"; then
6030  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6031set dummy ${ac_tool_prefix}strip; ac_word=$2
6032echo "$as_me:$LINENO: checking for $ac_word" >&5
6033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6034if test "${ac_cv_prog_STRIP+set}" = set; then
6035  echo $ECHO_N "(cached) $ECHO_C" >&6
6036else
6037  if test -n "$STRIP"; then
6038  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6039else
6040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041for as_dir in $PATH
6042do
6043  IFS=$as_save_IFS
6044  test -z "$as_dir" && as_dir=.
6045  for ac_exec_ext in '' $ac_executable_extensions; do
6046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049    break 2
6050  fi
6051done
6052done
6053
6054fi
6055fi
6056STRIP=$ac_cv_prog_STRIP
6057if test -n "$STRIP"; then
6058  echo "$as_me:$LINENO: result: $STRIP" >&5
6059echo "${ECHO_T}$STRIP" >&6
6060else
6061  echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6
6063fi
6064
6065fi
6066if test -z "$ac_cv_prog_STRIP"; then
6067  ac_ct_STRIP=$STRIP
6068  # Extract the first word of "strip", so it can be a program name with args.
6069set dummy strip; ac_word=$2
6070echo "$as_me:$LINENO: checking for $ac_word" >&5
6071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6072if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075  if test -n "$ac_ct_STRIP"; then
6076  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6077else
6078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079for as_dir in $PATH
6080do
6081  IFS=$as_save_IFS
6082  test -z "$as_dir" && as_dir=.
6083  for ac_exec_ext in '' $ac_executable_extensions; do
6084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085    ac_cv_prog_ac_ct_STRIP="strip"
6086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087    break 2
6088  fi
6089done
6090done
6091
6092  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6093fi
6094fi
6095ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6096if test -n "$ac_ct_STRIP"; then
6097  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6098echo "${ECHO_T}$ac_ct_STRIP" >&6
6099else
6100  echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6
6102fi
6103
6104  STRIP=$ac_ct_STRIP
6105else
6106  STRIP="$ac_cv_prog_STRIP"
6107fi
6108
6109
6110old_CC="$CC"
6111old_CFLAGS="$CFLAGS"
6112
6113# Set sane defaults for various variables
6114test -z "$AR" && AR=ar
6115test -z "$AR_FLAGS" && AR_FLAGS=cru
6116test -z "$AS" && AS=as
6117test -z "$CC" && CC=cc
6118test -z "$LTCC" && LTCC=$CC
6119test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6120test -z "$DLLTOOL" && DLLTOOL=dlltool
6121test -z "$LD" && LD=ld
6122test -z "$LN_S" && LN_S="ln -s"
6123test -z "$MAGIC_CMD" && MAGIC_CMD=file
6124test -z "$NM" && NM=nm
6125test -z "$SED" && SED=sed
6126test -z "$OBJDUMP" && OBJDUMP=objdump
6127test -z "$RANLIB" && RANLIB=:
6128test -z "$STRIP" && STRIP=:
6129test -z "$ac_objext" && ac_objext=o
6130
6131# Determine commands to create old-style static archives.
6132old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6133old_postinstall_cmds='chmod 644 $oldlib'
6134old_postuninstall_cmds=
6135
6136if test -n "$RANLIB"; then
6137  case $host_os in
6138  openbsd*)
6139    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6140    ;;
6141  *)
6142    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6143    ;;
6144  esac
6145  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6146fi
6147
6148for cc_temp in $compiler""; do
6149  case $cc_temp in
6150    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6151    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6152    \-*) ;;
6153    *) break;;
6154  esac
6155done
6156cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6157
6158
6159# Only perform the check for file, if the check method requires it
6160case $deplibs_check_method in
6161file_magic*)
6162  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6163    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6164echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6165if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6166  echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168  case $MAGIC_CMD in
6169[\\/*] |  ?:[\\/]*)
6170  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6171  ;;
6172*)
6173  lt_save_MAGIC_CMD="$MAGIC_CMD"
6174  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6175  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6176  for ac_dir in $ac_dummy; do
6177    IFS="$lt_save_ifs"
6178    test -z "$ac_dir" && ac_dir=.
6179    if test -f $ac_dir/${ac_tool_prefix}file; then
6180      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6181      if test -n "$file_magic_test_file"; then
6182	case $deplibs_check_method in
6183	"file_magic "*)
6184	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6185	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6186	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6187	    $EGREP "$file_magic_regex" > /dev/null; then
6188	    :
6189	  else
6190	    cat <<EOF 1>&2
6191
6192*** Warning: the command libtool uses to detect shared libraries,
6193*** $file_magic_cmd, produces output that libtool cannot recognize.
6194*** The result is that libtool may fail to recognize shared libraries
6195*** as such.  This will affect the creation of libtool libraries that
6196*** depend on shared libraries, but programs linked with such libtool
6197*** libraries will work regardless of this problem.  Nevertheless, you
6198*** may want to report the problem to your system manager and/or to
6199*** bug-libtool@gnu.org
6200
6201EOF
6202	  fi ;;
6203	esac
6204      fi
6205      break
6206    fi
6207  done
6208  IFS="$lt_save_ifs"
6209  MAGIC_CMD="$lt_save_MAGIC_CMD"
6210  ;;
6211esac
6212fi
6213
6214MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6215if test -n "$MAGIC_CMD"; then
6216  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6217echo "${ECHO_T}$MAGIC_CMD" >&6
6218else
6219  echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6
6221fi
6222
6223if test -z "$lt_cv_path_MAGIC_CMD"; then
6224  if test -n "$ac_tool_prefix"; then
6225    echo "$as_me:$LINENO: checking for file" >&5
6226echo $ECHO_N "checking for file... $ECHO_C" >&6
6227if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6228  echo $ECHO_N "(cached) $ECHO_C" >&6
6229else
6230  case $MAGIC_CMD in
6231[\\/*] |  ?:[\\/]*)
6232  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6233  ;;
6234*)
6235  lt_save_MAGIC_CMD="$MAGIC_CMD"
6236  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6237  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6238  for ac_dir in $ac_dummy; do
6239    IFS="$lt_save_ifs"
6240    test -z "$ac_dir" && ac_dir=.
6241    if test -f $ac_dir/file; then
6242      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6243      if test -n "$file_magic_test_file"; then
6244	case $deplibs_check_method in
6245	"file_magic "*)
6246	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6247	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6248	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6249	    $EGREP "$file_magic_regex" > /dev/null; then
6250	    :
6251	  else
6252	    cat <<EOF 1>&2
6253
6254*** Warning: the command libtool uses to detect shared libraries,
6255*** $file_magic_cmd, produces output that libtool cannot recognize.
6256*** The result is that libtool may fail to recognize shared libraries
6257*** as such.  This will affect the creation of libtool libraries that
6258*** depend on shared libraries, but programs linked with such libtool
6259*** libraries will work regardless of this problem.  Nevertheless, you
6260*** may want to report the problem to your system manager and/or to
6261*** bug-libtool@gnu.org
6262
6263EOF
6264	  fi ;;
6265	esac
6266      fi
6267      break
6268    fi
6269  done
6270  IFS="$lt_save_ifs"
6271  MAGIC_CMD="$lt_save_MAGIC_CMD"
6272  ;;
6273esac
6274fi
6275
6276MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6277if test -n "$MAGIC_CMD"; then
6278  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6279echo "${ECHO_T}$MAGIC_CMD" >&6
6280else
6281  echo "$as_me:$LINENO: result: no" >&5
6282echo "${ECHO_T}no" >&6
6283fi
6284
6285  else
6286    MAGIC_CMD=:
6287  fi
6288fi
6289
6290  fi
6291  ;;
6292esac
6293
6294enable_dlopen=no
6295enable_win32_dll=no
6296
6297# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6298if test "${enable_libtool_lock+set}" = set; then
6299  enableval="$enable_libtool_lock"
6300
6301fi;
6302test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6303
6304
6305# Check whether --with-pic or --without-pic was given.
6306if test "${with_pic+set}" = set; then
6307  withval="$with_pic"
6308  pic_mode="$withval"
6309else
6310  pic_mode=default
6311fi;
6312test -z "$pic_mode" && pic_mode=default
6313
6314# Use C for the default configuration in the libtool script
6315tagname=
6316lt_save_CC="$CC"
6317ac_ext=c
6318ac_cpp='$CPP $CPPFLAGS'
6319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322
6323
6324# Source file extension for C test sources.
6325ac_ext=c
6326
6327# Object file extension for compiled C test sources.
6328objext=o
6329objext=$objext
6330
6331# Code to be used in simple compile tests
6332lt_simple_compile_test_code="int some_variable = 0;\n"
6333
6334# Code to be used in simple link tests
6335lt_simple_link_test_code='int main(){return(0);}\n'
6336
6337
6338# If no C compiler was specified, use CC.
6339LTCC=${LTCC-"$CC"}
6340
6341# If no C compiler flags were specified, use CFLAGS.
6342LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6343
6344# Allow CC to be a program name with arguments.
6345compiler=$CC
6346
6347
6348# save warnings/boilerplate of simple test code
6349ac_outfile=conftest.$ac_objext
6350printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6351eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6352_lt_compiler_boilerplate=`cat conftest.err`
6353$rm conftest*
6354
6355ac_outfile=conftest.$ac_objext
6356printf "$lt_simple_link_test_code" >conftest.$ac_ext
6357eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6358_lt_linker_boilerplate=`cat conftest.err`
6359$rm conftest*
6360
6361
6362
6363lt_prog_compiler_no_builtin_flag=
6364
6365if test "$GCC" = yes; then
6366  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6367
6368
6369echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6370echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6371if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6372  echo $ECHO_N "(cached) $ECHO_C" >&6
6373else
6374  lt_cv_prog_compiler_rtti_exceptions=no
6375  ac_outfile=conftest.$ac_objext
6376   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6377   lt_compiler_flag="-fno-rtti -fno-exceptions"
6378   # Insert the option either (1) after the last *FLAGS variable, or
6379   # (2) before a word containing "conftest.", or (3) at the end.
6380   # Note that $ac_compile itself does not contain backslashes and begins
6381   # with a dollar sign (not a hyphen), so the echo should work correctly.
6382   # The option is referenced via a variable to avoid confusing sed.
6383   lt_compile=`echo "$ac_compile" | $SED \
6384   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6386   -e 's:$: $lt_compiler_flag:'`
6387   (eval echo "\"\$as_me:6387: $lt_compile\"" >&5)
6388   (eval "$lt_compile" 2>conftest.err)
6389   ac_status=$?
6390   cat conftest.err >&5
6391   echo "$as_me:6391: \$? = $ac_status" >&5
6392   if (exit $ac_status) && test -s "$ac_outfile"; then
6393     # The compiler can only warn and ignore the option if not recognized
6394     # So say no if there are warnings other than the usual output.
6395     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6396     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6397     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6398       lt_cv_prog_compiler_rtti_exceptions=yes
6399     fi
6400   fi
6401   $rm conftest*
6402
6403fi
6404echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6405echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6406
6407if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6408    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6409else
6410    :
6411fi
6412
6413fi
6414
6415lt_prog_compiler_wl=
6416lt_prog_compiler_pic=
6417lt_prog_compiler_static=
6418
6419echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6420echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6421
6422  if test "$GCC" = yes; then
6423    lt_prog_compiler_wl='-Wl,'
6424    lt_prog_compiler_static='-static'
6425
6426    case $host_os in
6427      aix*)
6428      # All AIX code is PIC.
6429      if test "$host_cpu" = ia64; then
6430	# AIX 5 now supports IA64 processor
6431	lt_prog_compiler_static='-Bstatic'
6432      fi
6433      ;;
6434
6435    amigaos*)
6436      # FIXME: we need at least 68020 code to build shared libraries, but
6437      # adding the `-m68020' flag to GCC prevents building anything better,
6438      # like `-m68040'.
6439      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6440      ;;
6441
6442    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6443      # PIC is the default for these OSes.
6444      ;;
6445
6446    mingw* | pw32* | os2*)
6447      # This hack is so that the source file can tell whether it is being
6448      # built for inclusion in a dll (and should export symbols for example).
6449      lt_prog_compiler_pic='-DDLL_EXPORT'
6450      ;;
6451
6452    darwin* | rhapsody*)
6453      # PIC is the default on this platform
6454      # Common symbols not allowed in MH_DYLIB files
6455      lt_prog_compiler_pic='-fno-common'
6456      ;;
6457
6458    interix3*)
6459      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6460      # Instead, we relocate shared libraries at runtime.
6461      ;;
6462
6463    msdosdjgpp*)
6464      # Just because we use GCC doesn't mean we suddenly get shared libraries
6465      # on systems that don't support them.
6466      lt_prog_compiler_can_build_shared=no
6467      enable_shared=no
6468      ;;
6469
6470    sysv4*MP*)
6471      if test -d /usr/nec; then
6472	lt_prog_compiler_pic=-Kconform_pic
6473      fi
6474      ;;
6475
6476    hpux*)
6477      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6478      # not for PA HP-UX.
6479      case $host_cpu in
6480      hppa*64*|ia64*)
6481	# +Z the default
6482	;;
6483      *)
6484	lt_prog_compiler_pic='-fPIC'
6485	;;
6486      esac
6487      ;;
6488
6489    *)
6490      lt_prog_compiler_pic='-fPIC'
6491      ;;
6492    esac
6493  else
6494    # PORTME Check for flag to pass linker flags through the system compiler.
6495    case $host_os in
6496    aix*)
6497      lt_prog_compiler_wl='-Wl,'
6498      if test "$host_cpu" = ia64; then
6499	# AIX 5 now supports IA64 processor
6500	lt_prog_compiler_static='-Bstatic'
6501      else
6502	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6503      fi
6504      ;;
6505      darwin*)
6506        # PIC is the default on this platform
6507        # Common symbols not allowed in MH_DYLIB files
6508       case $cc_basename in
6509         xlc*)
6510         lt_prog_compiler_pic='-qnocommon'
6511         lt_prog_compiler_wl='-Wl,'
6512         ;;
6513       esac
6514       ;;
6515
6516    mingw* | pw32* | os2*)
6517      # This hack is so that the source file can tell whether it is being
6518      # built for inclusion in a dll (and should export symbols for example).
6519      lt_prog_compiler_pic='-DDLL_EXPORT'
6520      ;;
6521
6522    hpux9* | hpux10* | hpux11*)
6523      lt_prog_compiler_wl='-Wl,'
6524      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6525      # not for PA HP-UX.
6526      case $host_cpu in
6527      hppa*64*|ia64*)
6528	# +Z the default
6529	;;
6530      *)
6531	lt_prog_compiler_pic='+Z'
6532	;;
6533      esac
6534      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6535      lt_prog_compiler_static='${wl}-a ${wl}archive'
6536      ;;
6537
6538    irix5* | irix6* | nonstopux*)
6539      lt_prog_compiler_wl='-Wl,'
6540      # PIC (with -KPIC) is the default.
6541      lt_prog_compiler_static='-non_shared'
6542      ;;
6543
6544    newsos6)
6545      lt_prog_compiler_pic='-KPIC'
6546      lt_prog_compiler_static='-Bstatic'
6547      ;;
6548
6549    linux*)
6550      case $cc_basename in
6551      icc* | ecc*)
6552	lt_prog_compiler_wl='-Wl,'
6553	lt_prog_compiler_pic='-KPIC'
6554	lt_prog_compiler_static='-static'
6555        ;;
6556      pgcc* | pgf77* | pgf90* | pgf95*)
6557        # Portland Group compilers (*not* the Pentium gcc compiler,
6558	# which looks to be a dead project)
6559	lt_prog_compiler_wl='-Wl,'
6560	lt_prog_compiler_pic='-fpic'
6561	lt_prog_compiler_static='-Bstatic'
6562        ;;
6563      ccc*)
6564        lt_prog_compiler_wl='-Wl,'
6565        # All Alpha code is PIC.
6566        lt_prog_compiler_static='-non_shared'
6567        ;;
6568      esac
6569      ;;
6570
6571    osf3* | osf4* | osf5*)
6572      lt_prog_compiler_wl='-Wl,'
6573      # All OSF/1 code is PIC.
6574      lt_prog_compiler_static='-non_shared'
6575      ;;
6576
6577    solaris*)
6578      lt_prog_compiler_pic='-KPIC'
6579      lt_prog_compiler_static='-Bstatic'
6580      case $cc_basename in
6581      f77* | f90* | f95*)
6582	lt_prog_compiler_wl='-Qoption ld ';;
6583      *)
6584	lt_prog_compiler_wl='-Wl,';;
6585      esac
6586      ;;
6587
6588    sunos4*)
6589      lt_prog_compiler_wl='-Qoption ld '
6590      lt_prog_compiler_pic='-PIC'
6591      lt_prog_compiler_static='-Bstatic'
6592      ;;
6593
6594    sysv4 | sysv4.2uw2* | sysv4.3*)
6595      lt_prog_compiler_wl='-Wl,'
6596      lt_prog_compiler_pic='-KPIC'
6597      lt_prog_compiler_static='-Bstatic'
6598      ;;
6599
6600    sysv4*MP*)
6601      if test -d /usr/nec ;then
6602	lt_prog_compiler_pic='-Kconform_pic'
6603	lt_prog_compiler_static='-Bstatic'
6604      fi
6605      ;;
6606
6607    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6608      lt_prog_compiler_wl='-Wl,'
6609      lt_prog_compiler_pic='-KPIC'
6610      lt_prog_compiler_static='-Bstatic'
6611      ;;
6612
6613    unicos*)
6614      lt_prog_compiler_wl='-Wl,'
6615      lt_prog_compiler_can_build_shared=no
6616      ;;
6617
6618    uts4*)
6619      lt_prog_compiler_pic='-pic'
6620      lt_prog_compiler_static='-Bstatic'
6621      ;;
6622
6623    *)
6624      lt_prog_compiler_can_build_shared=no
6625      ;;
6626    esac
6627  fi
6628
6629echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6630echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6631
6632#
6633# Check to make sure the PIC flag actually works.
6634#
6635if test -n "$lt_prog_compiler_pic"; then
6636
6637echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6638echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6639if test "${lt_prog_compiler_pic_works+set}" = set; then
6640  echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642  lt_prog_compiler_pic_works=no
6643  ac_outfile=conftest.$ac_objext
6644   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6645   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6646   # Insert the option either (1) after the last *FLAGS variable, or
6647   # (2) before a word containing "conftest.", or (3) at the end.
6648   # Note that $ac_compile itself does not contain backslashes and begins
6649   # with a dollar sign (not a hyphen), so the echo should work correctly.
6650   # The option is referenced via a variable to avoid confusing sed.
6651   lt_compile=`echo "$ac_compile" | $SED \
6652   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6653   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6654   -e 's:$: $lt_compiler_flag:'`
6655   (eval echo "\"\$as_me:6655: $lt_compile\"" >&5)
6656   (eval "$lt_compile" 2>conftest.err)
6657   ac_status=$?
6658   cat conftest.err >&5
6659   echo "$as_me:6659: \$? = $ac_status" >&5
6660   if (exit $ac_status) && test -s "$ac_outfile"; then
6661     # The compiler can only warn and ignore the option if not recognized
6662     # So say no if there are warnings other than the usual output.
6663     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6664     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6665     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6666       lt_prog_compiler_pic_works=yes
6667     fi
6668   fi
6669   $rm conftest*
6670
6671fi
6672echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6673echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6674
6675if test x"$lt_prog_compiler_pic_works" = xyes; then
6676    case $lt_prog_compiler_pic in
6677     "" | " "*) ;;
6678     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6679     esac
6680else
6681    lt_prog_compiler_pic=
6682     lt_prog_compiler_can_build_shared=no
6683fi
6684
6685fi
6686case $host_os in
6687  # For platforms which do not support PIC, -DPIC is meaningless:
6688  *djgpp*)
6689    lt_prog_compiler_pic=
6690    ;;
6691  *)
6692    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6693    ;;
6694esac
6695
6696#
6697# Check to make sure the static flag actually works.
6698#
6699wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6700echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6701echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6702if test "${lt_prog_compiler_static_works+set}" = set; then
6703  echo $ECHO_N "(cached) $ECHO_C" >&6
6704else
6705  lt_prog_compiler_static_works=no
6706   save_LDFLAGS="$LDFLAGS"
6707   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6708   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6709   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6710     # The linker can only warn and ignore the option if not recognized
6711     # So say no if there are warnings
6712     if test -s conftest.err; then
6713       # Append any errors to the config.log.
6714       cat conftest.err 1>&5
6715       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6716       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6717       if diff conftest.exp conftest.er2 >/dev/null; then
6718         lt_prog_compiler_static_works=yes
6719       fi
6720     else
6721       lt_prog_compiler_static_works=yes
6722     fi
6723   fi
6724   $rm conftest*
6725   LDFLAGS="$save_LDFLAGS"
6726
6727fi
6728echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6729echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6730
6731if test x"$lt_prog_compiler_static_works" = xyes; then
6732    :
6733else
6734    lt_prog_compiler_static=
6735fi
6736
6737
6738echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6739echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6740if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6741  echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743  lt_cv_prog_compiler_c_o=no
6744   $rm -r conftest 2>/dev/null
6745   mkdir conftest
6746   cd conftest
6747   mkdir out
6748   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6749
6750   lt_compiler_flag="-o out/conftest2.$ac_objext"
6751   # Insert the option either (1) after the last *FLAGS variable, or
6752   # (2) before a word containing "conftest.", or (3) at the end.
6753   # Note that $ac_compile itself does not contain backslashes and begins
6754   # with a dollar sign (not a hyphen), so the echo should work correctly.
6755   lt_compile=`echo "$ac_compile" | $SED \
6756   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6757   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6758   -e 's:$: $lt_compiler_flag:'`
6759   (eval echo "\"\$as_me:6759: $lt_compile\"" >&5)
6760   (eval "$lt_compile" 2>out/conftest.err)
6761   ac_status=$?
6762   cat out/conftest.err >&5
6763   echo "$as_me:6763: \$? = $ac_status" >&5
6764   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6765   then
6766     # The compiler can only warn and ignore the option if not recognized
6767     # So say no if there are warnings
6768     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6769     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6770     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6771       lt_cv_prog_compiler_c_o=yes
6772     fi
6773   fi
6774   chmod u+w . 2>&5
6775   $rm conftest*
6776   # SGI C++ compiler will create directory out/ii_files/ for
6777   # template instantiation
6778   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6779   $rm out/* && rmdir out
6780   cd ..
6781   rmdir conftest
6782   $rm conftest*
6783
6784fi
6785echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6786echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6787
6788
6789hard_links="nottested"
6790if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6791  # do not overwrite the value of need_locks provided by the user
6792  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6793echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6794  hard_links=yes
6795  $rm conftest*
6796  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6797  touch conftest.a
6798  ln conftest.a conftest.b 2>&5 || hard_links=no
6799  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6800  echo "$as_me:$LINENO: result: $hard_links" >&5
6801echo "${ECHO_T}$hard_links" >&6
6802  if test "$hard_links" = no; then
6803    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6804echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6805    need_locks=warn
6806  fi
6807else
6808  need_locks=no
6809fi
6810
6811echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6812echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6813
6814  runpath_var=
6815  allow_undefined_flag=
6816  enable_shared_with_static_runtimes=no
6817  archive_cmds=
6818  archive_expsym_cmds=
6819  old_archive_From_new_cmds=
6820  old_archive_from_expsyms_cmds=
6821  export_dynamic_flag_spec=
6822  whole_archive_flag_spec=
6823  thread_safe_flag_spec=
6824  hardcode_libdir_flag_spec=
6825  hardcode_libdir_flag_spec_ld=
6826  hardcode_libdir_separator=
6827  hardcode_direct=no
6828  hardcode_minus_L=no
6829  hardcode_shlibpath_var=unsupported
6830  link_all_deplibs=unknown
6831  hardcode_automatic=no
6832  module_cmds=
6833  module_expsym_cmds=
6834  always_export_symbols=no
6835  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6836  # include_expsyms should be a list of space-separated symbols to be *always*
6837  # included in the symbol list
6838  include_expsyms=
6839  # exclude_expsyms can be an extended regexp of symbols to exclude
6840  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6841  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6842  # as well as any symbol that contains `d'.
6843  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6844  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6845  # platforms (ab)use it in PIC code, but their linkers get confused if
6846  # the symbol is explicitly referenced.  Since portable code cannot
6847  # rely on this symbol name, it's probably fine to never include it in
6848  # preloaded symbol tables.
6849  extract_expsyms_cmds=
6850  # Just being paranoid about ensuring that cc_basename is set.
6851  for cc_temp in $compiler""; do
6852  case $cc_temp in
6853    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6854    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6855    \-*) ;;
6856    *) break;;
6857  esac
6858done
6859cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6860
6861  case $host_os in
6862  cygwin* | mingw* | pw32*)
6863    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6864    # When not using gcc, we currently assume that we are using
6865    # Microsoft Visual C++.
6866    if test "$GCC" != yes; then
6867      with_gnu_ld=no
6868    fi
6869    ;;
6870  interix*)
6871    # we just hope/assume this is gcc and not c89 (= MSVC++)
6872    with_gnu_ld=yes
6873    ;;
6874  openbsd*)
6875    with_gnu_ld=no
6876    ;;
6877  esac
6878
6879  ld_shlibs=yes
6880  if test "$with_gnu_ld" = yes; then
6881    # If archive_cmds runs LD, not CC, wlarc should be empty
6882    wlarc='${wl}'
6883
6884    # Set some defaults for GNU ld with shared library support. These
6885    # are reset later if shared libraries are not supported. Putting them
6886    # here allows them to be overridden if necessary.
6887    runpath_var=LD_RUN_PATH
6888    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6889    export_dynamic_flag_spec='${wl}--export-dynamic'
6890    # ancient GNU ld didn't support --whole-archive et. al.
6891    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6892	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6893      else
6894  	whole_archive_flag_spec=
6895    fi
6896    supports_anon_versioning=no
6897    case `$LD -v 2>/dev/null` in
6898      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6899      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6900      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6901      *\ 2.11.*) ;; # other 2.11 versions
6902      *) supports_anon_versioning=yes ;;
6903    esac
6904
6905    # See if GNU ld supports shared libraries.
6906    case $host_os in
6907    aix3* | aix4* | aix5*)
6908      # On AIX/PPC, the GNU linker is very broken
6909      if test "$host_cpu" != ia64; then
6910	ld_shlibs=no
6911	cat <<EOF 1>&2
6912
6913*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6914*** to be unable to reliably create shared libraries on AIX.
6915*** Therefore, libtool is disabling shared libraries support.  If you
6916*** really care for shared libraries, you may want to modify your PATH
6917*** so that a non-GNU linker is found, and then restart.
6918
6919EOF
6920      fi
6921      ;;
6922
6923    amigaos*)
6924      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)'
6925      hardcode_libdir_flag_spec='-L$libdir'
6926      hardcode_minus_L=yes
6927
6928      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6929      # that the semantics of dynamic libraries on AmigaOS, at least up
6930      # to version 4, is to share data among multiple programs linked
6931      # with the same dynamic library.  Since this doesn't match the
6932      # behavior of shared libraries on other platforms, we can't use
6933      # them.
6934      ld_shlibs=no
6935      ;;
6936
6937    beos*)
6938      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6939	allow_undefined_flag=unsupported
6940	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6941	# support --undefined.  This deserves some investigation.  FIXME
6942	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6943      else
6944	ld_shlibs=no
6945      fi
6946      ;;
6947
6948    cygwin* | mingw* | pw32*)
6949      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6950      # as there is no search path for DLLs.
6951      hardcode_libdir_flag_spec='-L$libdir'
6952      allow_undefined_flag=unsupported
6953      always_export_symbols=no
6954      enable_shared_with_static_runtimes=yes
6955      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6956
6957      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6958        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6959	# If the export-symbols file already is a .def file (1st line
6960	# is EXPORTS), use it as is; otherwise, prepend...
6961	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6962	  cp $export_symbols $output_objdir/$soname.def;
6963	else
6964	  echo EXPORTS > $output_objdir/$soname.def;
6965	  cat $export_symbols >> $output_objdir/$soname.def;
6966	fi~
6967	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6968      else
6969	ld_shlibs=no
6970      fi
6971      ;;
6972
6973    interix3*)
6974      hardcode_direct=no
6975      hardcode_shlibpath_var=no
6976      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6977      export_dynamic_flag_spec='${wl}-E'
6978      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6979      # Instead, shared libraries are loaded at an image base (0x10000000 by
6980      # default) and relocated if they conflict, which is a slow very memory
6981      # consuming and fragmenting process.  To avoid this, we pick a random,
6982      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6983      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6984      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6985      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6986      ;;
6987
6988    linux*)
6989      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6990	tmp_addflag=
6991	case $cc_basename,$host_cpu in
6992	pgcc*)				# Portland Group C compiler
6993	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6994	  tmp_addflag=' $pic_flag'
6995	  ;;
6996	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6997	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6998	  tmp_addflag=' $pic_flag -Mnomain' ;;
6999	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7000	  tmp_addflag=' -i_dynamic' ;;
7001	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7002	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7003	ifc* | ifort*)			# Intel Fortran compiler
7004	  tmp_addflag=' -nofor_main' ;;
7005	esac
7006	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7007
7008	if test $supports_anon_versioning = yes; then
7009	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7010  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7011  $echo "local: *; };" >> $output_objdir/$libname.ver~
7012	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7013	fi
7014      else
7015	ld_shlibs=no
7016      fi
7017      ;;
7018
7019    netbsd*)
7020      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7021	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7022	wlarc=
7023      else
7024	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7025	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7026      fi
7027      ;;
7028
7029    solaris*)
7030      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7031	ld_shlibs=no
7032	cat <<EOF 1>&2
7033
7034*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7035*** create shared libraries on Solaris systems.  Therefore, libtool
7036*** is disabling shared libraries support.  We urge you to upgrade GNU
7037*** binutils to release 2.9.1 or newer.  Another option is to modify
7038*** your PATH or compiler configuration so that the native linker is
7039*** used, and then restart.
7040
7041EOF
7042      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7043	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7045      else
7046	ld_shlibs=no
7047      fi
7048      ;;
7049
7050    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7051      case `$LD -v 2>&1` in
7052        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7053	ld_shlibs=no
7054	cat <<_LT_EOF 1>&2
7055
7056*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7057*** reliably create shared libraries on SCO systems.  Therefore, libtool
7058*** is disabling shared libraries support.  We urge you to upgrade GNU
7059*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7060*** your PATH or compiler configuration so that the native linker is
7061*** used, and then restart.
7062
7063_LT_EOF
7064	;;
7065	*)
7066	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7067	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7068	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7069	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7070	  else
7071	    ld_shlibs=no
7072	  fi
7073	;;
7074      esac
7075      ;;
7076
7077    sunos4*)
7078      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7079      wlarc=
7080      hardcode_direct=yes
7081      hardcode_shlibpath_var=no
7082      ;;
7083
7084    *)
7085      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7086	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7087	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7088      else
7089	ld_shlibs=no
7090      fi
7091      ;;
7092    esac
7093
7094    if test "$ld_shlibs" = no; then
7095      runpath_var=
7096      hardcode_libdir_flag_spec=
7097      export_dynamic_flag_spec=
7098      whole_archive_flag_spec=
7099    fi
7100  else
7101    # PORTME fill in a description of your system's linker (not GNU ld)
7102    case $host_os in
7103    aix3*)
7104      allow_undefined_flag=unsupported
7105      always_export_symbols=yes
7106      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'
7107      # Note: this linker hardcodes the directories in LIBPATH if there
7108      # are no directories specified by -L.
7109      hardcode_minus_L=yes
7110      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7111	# Neither direct hardcoding nor static linking is supported with a
7112	# broken collect2.
7113	hardcode_direct=unsupported
7114      fi
7115      ;;
7116
7117    aix4* | aix5*)
7118      if test "$host_cpu" = ia64; then
7119	# On IA64, the linker does run time linking by default, so we don't
7120	# have to do anything special.
7121	aix_use_runtimelinking=no
7122	exp_sym_flag='-Bexport'
7123	no_entry_flag=""
7124      else
7125	# If we're using GNU nm, then we don't want the "-C" option.
7126	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7127	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7128	  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'
7129	else
7130	  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'
7131	fi
7132	aix_use_runtimelinking=no
7133
7134	# Test if we are trying to use run time linking or normal
7135	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7136	# need to do runtime linking.
7137	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7138	  for ld_flag in $LDFLAGS; do
7139  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7140  	    aix_use_runtimelinking=yes
7141  	    break
7142  	  fi
7143	  done
7144	  ;;
7145	esac
7146
7147	exp_sym_flag='-bexport'
7148	no_entry_flag='-bnoentry'
7149      fi
7150
7151      # When large executables or shared objects are built, AIX ld can
7152      # have problems creating the table of contents.  If linking a library
7153      # or program results in "error TOC overflow" add -mminimal-toc to
7154      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7155      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7156
7157      archive_cmds=''
7158      hardcode_direct=yes
7159      hardcode_libdir_separator=':'
7160      link_all_deplibs=yes
7161
7162      if test "$GCC" = yes; then
7163	case $host_os in aix4.[012]|aix4.[012].*)
7164	# We only want to do this on AIX 4.2 and lower, the check
7165	# below for broken collect2 doesn't work under 4.3+
7166	  collect2name=`${CC} -print-prog-name=collect2`
7167	  if test -f "$collect2name" && \
7168  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7169	  then
7170  	  # We have reworked collect2
7171  	  hardcode_direct=yes
7172	  else
7173  	  # We have old collect2
7174  	  hardcode_direct=unsupported
7175  	  # It fails to find uninstalled libraries when the uninstalled
7176  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7177  	  # to unsupported forces relinking
7178  	  hardcode_minus_L=yes
7179  	  hardcode_libdir_flag_spec='-L$libdir'
7180  	  hardcode_libdir_separator=
7181	  fi
7182	  ;;
7183	esac
7184	shared_flag='-shared'
7185	if test "$aix_use_runtimelinking" = yes; then
7186	  shared_flag="$shared_flag "'${wl}-G'
7187	fi
7188      else
7189	# not using gcc
7190	if test "$host_cpu" = ia64; then
7191  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7192  	# chokes on -Wl,-G. The following line is correct:
7193	  shared_flag='-G'
7194	else
7195	  if test "$aix_use_runtimelinking" = yes; then
7196	    shared_flag='${wl}-G'
7197	  else
7198	    shared_flag='${wl}-bM:SRE'
7199	  fi
7200	fi
7201      fi
7202
7203      # It seems that -bexpall does not export symbols beginning with
7204      # underscore (_), so it is better to generate a list of symbols to export.
7205      always_export_symbols=yes
7206      if test "$aix_use_runtimelinking" = yes; then
7207	# Warning - without using the other runtime loading flags (-brtl),
7208	# -berok will link without error, but may produce a broken library.
7209	allow_undefined_flag='-berok'
7210       # Determine the default libpath from the value encoded in an empty executable.
7211       cat >conftest.$ac_ext <<_ACEOF
7212/* confdefs.h.  */
7213_ACEOF
7214cat confdefs.h >>conftest.$ac_ext
7215cat >>conftest.$ac_ext <<_ACEOF
7216/* end confdefs.h.  */
7217
7218int
7219main ()
7220{
7221
7222  ;
7223  return 0;
7224}
7225_ACEOF
7226rm -f conftest.$ac_objext conftest$ac_exeext
7227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7228  (eval $ac_link) 2>conftest.er1
7229  ac_status=$?
7230  grep -v '^ *+' conftest.er1 >conftest.err
7231  rm -f conftest.er1
7232  cat conftest.err >&5
7233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234  (exit $ac_status); } &&
7235	 { ac_try='test -z "$ac_c_werror_flag"
7236			 || test ! -s conftest.err'
7237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238  (eval $ac_try) 2>&5
7239  ac_status=$?
7240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241  (exit $ac_status); }; } &&
7242	 { ac_try='test -s conftest$ac_exeext'
7243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244  (eval $ac_try) 2>&5
7245  ac_status=$?
7246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247  (exit $ac_status); }; }; then
7248
7249aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7250}'`
7251# Check for a 64-bit object if we didn't find anything.
7252if 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; }
7253}'`; fi
7254else
7255  echo "$as_me: failed program was:" >&5
7256sed 's/^/| /' conftest.$ac_ext >&5
7257
7258fi
7259rm -f conftest.err conftest.$ac_objext \
7260      conftest$ac_exeext conftest.$ac_ext
7261if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7262
7263       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7264	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7265       else
7266	if test "$host_cpu" = ia64; then
7267	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7268	  allow_undefined_flag="-z nodefs"
7269	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7270	else
7271	 # Determine the default libpath from the value encoded in an empty executable.
7272	 cat >conftest.$ac_ext <<_ACEOF
7273/* confdefs.h.  */
7274_ACEOF
7275cat confdefs.h >>conftest.$ac_ext
7276cat >>conftest.$ac_ext <<_ACEOF
7277/* end confdefs.h.  */
7278
7279int
7280main ()
7281{
7282
7283  ;
7284  return 0;
7285}
7286_ACEOF
7287rm -f conftest.$ac_objext conftest$ac_exeext
7288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7289  (eval $ac_link) 2>conftest.er1
7290  ac_status=$?
7291  grep -v '^ *+' conftest.er1 >conftest.err
7292  rm -f conftest.er1
7293  cat conftest.err >&5
7294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295  (exit $ac_status); } &&
7296	 { ac_try='test -z "$ac_c_werror_flag"
7297			 || test ! -s conftest.err'
7298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299  (eval $ac_try) 2>&5
7300  ac_status=$?
7301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302  (exit $ac_status); }; } &&
7303	 { ac_try='test -s conftest$ac_exeext'
7304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305  (eval $ac_try) 2>&5
7306  ac_status=$?
7307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308  (exit $ac_status); }; }; then
7309
7310aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7311}'`
7312# Check for a 64-bit object if we didn't find anything.
7313if 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; }
7314}'`; fi
7315else
7316  echo "$as_me: failed program was:" >&5
7317sed 's/^/| /' conftest.$ac_ext >&5
7318
7319fi
7320rm -f conftest.err conftest.$ac_objext \
7321      conftest$ac_exeext conftest.$ac_ext
7322if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7323
7324	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7325	  # Warning - without using the other run time loading flags,
7326	  # -berok will link without error, but may produce a broken library.
7327	  no_undefined_flag=' ${wl}-bernotok'
7328	  allow_undefined_flag=' ${wl}-berok'
7329	  # Exported symbols can be pulled into shared objects from archives
7330	  whole_archive_flag_spec='$convenience'
7331	  archive_cmds_need_lc=yes
7332	  # This is similar to how AIX traditionally builds its shared libraries.
7333	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7334	fi
7335      fi
7336      ;;
7337
7338    amigaos*)
7339      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)'
7340      hardcode_libdir_flag_spec='-L$libdir'
7341      hardcode_minus_L=yes
7342      # see comment about different semantics on the GNU ld section
7343      ld_shlibs=no
7344      ;;
7345
7346    bsdi[45]*)
7347      export_dynamic_flag_spec=-rdynamic
7348      ;;
7349
7350    cygwin* | mingw* | pw32*)
7351      # When not using gcc, we currently assume that we are using
7352      # Microsoft Visual C++.
7353      # hardcode_libdir_flag_spec is actually meaningless, as there is
7354      # no search path for DLLs.
7355      hardcode_libdir_flag_spec=' '
7356      allow_undefined_flag=unsupported
7357      # Tell ltmain to make .lib files, not .a files.
7358      libext=lib
7359      # Tell ltmain to make .dll files, not .so files.
7360      shrext_cmds=".dll"
7361      # FIXME: Setting linknames here is a bad hack.
7362      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7363      # The linker will automatically build a .lib file if we build a DLL.
7364      old_archive_From_new_cmds='true'
7365      # FIXME: Should let the user specify the lib program.
7366      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7367      fix_srcfile_path='`cygpath -w "$srcfile"`'
7368      enable_shared_with_static_runtimes=yes
7369      ;;
7370
7371    darwin* | rhapsody*)
7372      case $host_os in
7373        rhapsody* | darwin1.[012])
7374         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7375         ;;
7376       *) # Darwin 1.3 on
7377         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7378           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7379         else
7380           case ${MACOSX_DEPLOYMENT_TARGET} in
7381             10.[012])
7382               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7383               ;;
7384             10.*)
7385               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7386               ;;
7387           esac
7388         fi
7389         ;;
7390      esac
7391      archive_cmds_need_lc=no
7392      hardcode_direct=no
7393      hardcode_automatic=yes
7394      hardcode_shlibpath_var=unsupported
7395      whole_archive_flag_spec=''
7396      link_all_deplibs=yes
7397    if test "$GCC" = yes ; then
7398    	output_verbose_link_cmd='echo'
7399        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7400      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7401      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7402      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}'
7403      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}'
7404    else
7405      case $cc_basename in
7406        xlc*)
7407         output_verbose_link_cmd='echo'
7408         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7409         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7410          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7411         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7412          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}'
7413          ;;
7414       *)
7415         ld_shlibs=no
7416          ;;
7417      esac
7418    fi
7419      ;;
7420
7421    dgux*)
7422      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7423      hardcode_libdir_flag_spec='-L$libdir'
7424      hardcode_shlibpath_var=no
7425      ;;
7426
7427    freebsd1*)
7428      ld_shlibs=no
7429      ;;
7430
7431    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7432    # support.  Future versions do this automatically, but an explicit c++rt0.o
7433    # does not break anything, and helps significantly (at the cost of a little
7434    # extra space).
7435    freebsd2.2*)
7436      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7437      hardcode_libdir_flag_spec='-R$libdir'
7438      hardcode_direct=yes
7439      hardcode_shlibpath_var=no
7440      ;;
7441
7442    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7443    freebsd2*)
7444      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7445      hardcode_direct=yes
7446      hardcode_minus_L=yes
7447      hardcode_shlibpath_var=no
7448      ;;
7449
7450    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7451    freebsd* | kfreebsd*-gnu | dragonfly*)
7452      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7453      hardcode_libdir_flag_spec='-R$libdir'
7454      hardcode_direct=yes
7455      hardcode_shlibpath_var=no
7456      ;;
7457
7458    hpux9*)
7459      if test "$GCC" = yes; then
7460	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'
7461      else
7462	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'
7463      fi
7464      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7465      hardcode_libdir_separator=:
7466      hardcode_direct=yes
7467
7468      # hardcode_minus_L: Not really in the search PATH,
7469      # but as the default location of the library.
7470      hardcode_minus_L=yes
7471      export_dynamic_flag_spec='${wl}-E'
7472      ;;
7473
7474    hpux10*)
7475      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7476	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7477      else
7478	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7479      fi
7480      if test "$with_gnu_ld" = no; then
7481	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7482	hardcode_libdir_separator=:
7483
7484	hardcode_direct=yes
7485	export_dynamic_flag_spec='${wl}-E'
7486
7487	# hardcode_minus_L: Not really in the search PATH,
7488	# but as the default location of the library.
7489	hardcode_minus_L=yes
7490      fi
7491      ;;
7492
7493    hpux11*)
7494      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7495	case $host_cpu in
7496	hppa*64*)
7497	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7498	  ;;
7499	ia64*)
7500	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7501	  ;;
7502	*)
7503	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7504	  ;;
7505	esac
7506      else
7507	case $host_cpu in
7508	hppa*64*)
7509	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7510	  ;;
7511	ia64*)
7512	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7513	  ;;
7514	*)
7515	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7516	  ;;
7517	esac
7518      fi
7519      if test "$with_gnu_ld" = no; then
7520	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7521	hardcode_libdir_separator=:
7522
7523	case $host_cpu in
7524	hppa*64*|ia64*)
7525	  hardcode_libdir_flag_spec_ld='+b $libdir'
7526	  hardcode_direct=no
7527	  hardcode_shlibpath_var=no
7528	  ;;
7529	*)
7530	  hardcode_direct=yes
7531	  export_dynamic_flag_spec='${wl}-E'
7532
7533	  # hardcode_minus_L: Not really in the search PATH,
7534	  # but as the default location of the library.
7535	  hardcode_minus_L=yes
7536	  ;;
7537	esac
7538      fi
7539      ;;
7540
7541    irix5* | irix6* | nonstopux*)
7542      if test "$GCC" = yes; then
7543	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'
7544      else
7545	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'
7546	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7547      fi
7548      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7549      hardcode_libdir_separator=:
7550      link_all_deplibs=yes
7551      ;;
7552
7553    netbsd*)
7554      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7555	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7556      else
7557	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7558      fi
7559      hardcode_libdir_flag_spec='-R$libdir'
7560      hardcode_direct=yes
7561      hardcode_shlibpath_var=no
7562      ;;
7563
7564    newsos6)
7565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7566      hardcode_direct=yes
7567      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7568      hardcode_libdir_separator=:
7569      hardcode_shlibpath_var=no
7570      ;;
7571
7572    openbsd*)
7573      hardcode_direct=yes
7574      hardcode_shlibpath_var=no
7575      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7576	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7577	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7578	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7579	export_dynamic_flag_spec='${wl}-E'
7580      else
7581       case $host_os in
7582	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7583	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7584	   hardcode_libdir_flag_spec='-R$libdir'
7585	   ;;
7586	 *)
7587	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7588	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7589	   ;;
7590       esac
7591      fi
7592      ;;
7593
7594    os2*)
7595      hardcode_libdir_flag_spec='-L$libdir'
7596      hardcode_minus_L=yes
7597      allow_undefined_flag=unsupported
7598      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'
7599      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7600      ;;
7601
7602    osf3*)
7603      if test "$GCC" = yes; then
7604	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7605	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'
7606      else
7607	allow_undefined_flag=' -expect_unresolved \*'
7608	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'
7609      fi
7610      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7611      hardcode_libdir_separator=:
7612      ;;
7613
7614    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7615      if test "$GCC" = yes; then
7616	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7617	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'
7618	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7619      else
7620	allow_undefined_flag=' -expect_unresolved \*'
7621	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'
7622	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7623	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7624
7625	# Both c and cxx compiler support -rpath directly
7626	hardcode_libdir_flag_spec='-rpath $libdir'
7627      fi
7628      hardcode_libdir_separator=:
7629      ;;
7630
7631    solaris*)
7632      no_undefined_flag=' -z text'
7633      if test "$GCC" = yes; then
7634	wlarc='${wl}'
7635	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7636	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7637	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7638      else
7639	wlarc=''
7640	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7641	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7642  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7643      fi
7644      hardcode_libdir_flag_spec='-R$libdir'
7645      hardcode_shlibpath_var=no
7646      case $host_os in
7647      solaris2.[0-5] | solaris2.[0-5].*) ;;
7648      *)
7649 	# The compiler driver will combine linker options so we
7650 	# cannot just pass the convience library names through
7651 	# without $wl, iff we do not link with $LD.
7652 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7653 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7654 	case $wlarc in
7655 	'')
7656 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7657 	*)
7658 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7659 	esac ;;
7660      esac
7661      link_all_deplibs=yes
7662      ;;
7663
7664    sunos4*)
7665      if test "x$host_vendor" = xsequent; then
7666	# Use $CC to link under sequent, because it throws in some extra .o
7667	# files that make .init and .fini sections work.
7668	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7669      else
7670	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7671      fi
7672      hardcode_libdir_flag_spec='-L$libdir'
7673      hardcode_direct=yes
7674      hardcode_minus_L=yes
7675      hardcode_shlibpath_var=no
7676      ;;
7677
7678    sysv4)
7679      case $host_vendor in
7680	sni)
7681	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7682	  hardcode_direct=yes # is this really true???
7683	;;
7684	siemens)
7685	  ## LD is ld it makes a PLAMLIB
7686	  ## CC just makes a GrossModule.
7687	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7688	  reload_cmds='$CC -r -o $output$reload_objs'
7689	  hardcode_direct=no
7690        ;;
7691	motorola)
7692	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7693	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7694	;;
7695      esac
7696      runpath_var='LD_RUN_PATH'
7697      hardcode_shlibpath_var=no
7698      ;;
7699
7700    sysv4.3*)
7701      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7702      hardcode_shlibpath_var=no
7703      export_dynamic_flag_spec='-Bexport'
7704      ;;
7705
7706    sysv4*MP*)
7707      if test -d /usr/nec; then
7708	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7709	hardcode_shlibpath_var=no
7710	runpath_var=LD_RUN_PATH
7711	hardcode_runpath_var=yes
7712	ld_shlibs=yes
7713      fi
7714      ;;
7715
7716    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7717      no_undefined_flag='${wl}-z,text'
7718      archive_cmds_need_lc=no
7719      hardcode_shlibpath_var=no
7720      runpath_var='LD_RUN_PATH'
7721
7722      if test "$GCC" = yes; then
7723	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7724	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7725      else
7726	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7727	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7728      fi
7729      ;;
7730
7731    sysv5* | sco3.2v5* | sco5v6*)
7732      # Note: We can NOT use -z defs as we might desire, because we do not
7733      # link with -lc, and that would cause any symbols used from libc to
7734      # always be unresolved, which means just about no library would
7735      # ever link correctly.  If we're not using GNU ld we use -z text
7736      # though, which does catch some bad symbols but isn't as heavy-handed
7737      # as -z defs.
7738      no_undefined_flag='${wl}-z,text'
7739      allow_undefined_flag='${wl}-z,nodefs'
7740      archive_cmds_need_lc=no
7741      hardcode_shlibpath_var=no
7742      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7743      hardcode_libdir_separator=':'
7744      link_all_deplibs=yes
7745      export_dynamic_flag_spec='${wl}-Bexport'
7746      runpath_var='LD_RUN_PATH'
7747
7748      if test "$GCC" = yes; then
7749	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7750	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7751      else
7752	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7753	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7754      fi
7755      ;;
7756
7757    uts4*)
7758      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7759      hardcode_libdir_flag_spec='-L$libdir'
7760      hardcode_shlibpath_var=no
7761      ;;
7762
7763    *)
7764      ld_shlibs=no
7765      ;;
7766    esac
7767  fi
7768
7769echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7770echo "${ECHO_T}$ld_shlibs" >&6
7771test "$ld_shlibs" = no && can_build_shared=no
7772
7773#
7774# Do we need to explicitly link libc?
7775#
7776case "x$archive_cmds_need_lc" in
7777x|xyes)
7778  # Assume -lc should be added
7779  archive_cmds_need_lc=yes
7780
7781  if test "$enable_shared" = yes && test "$GCC" = yes; then
7782    case $archive_cmds in
7783    *'~'*)
7784      # FIXME: we may have to deal with multi-command sequences.
7785      ;;
7786    '$CC '*)
7787      # Test whether the compiler implicitly links with -lc since on some
7788      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7789      # to ld, don't add -lc before -lgcc.
7790      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7791echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7792      $rm conftest*
7793      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7794
7795      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7796  (eval $ac_compile) 2>&5
7797  ac_status=$?
7798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799  (exit $ac_status); } 2>conftest.err; then
7800        soname=conftest
7801        lib=conftest
7802        libobjs=conftest.$ac_objext
7803        deplibs=
7804        wl=$lt_prog_compiler_wl
7805	pic_flag=$lt_prog_compiler_pic
7806        compiler_flags=-v
7807        linker_flags=-v
7808        verstring=
7809        output_objdir=.
7810        libname=conftest
7811        lt_save_allow_undefined_flag=$allow_undefined_flag
7812        allow_undefined_flag=
7813        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7814  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7815  ac_status=$?
7816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817  (exit $ac_status); }
7818        then
7819	  archive_cmds_need_lc=no
7820        else
7821	  archive_cmds_need_lc=yes
7822        fi
7823        allow_undefined_flag=$lt_save_allow_undefined_flag
7824      else
7825        cat conftest.err 1>&5
7826      fi
7827      $rm conftest*
7828      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7829echo "${ECHO_T}$archive_cmds_need_lc" >&6
7830      ;;
7831    esac
7832  fi
7833  ;;
7834esac
7835
7836echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7837echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7838library_names_spec=
7839libname_spec='lib$name'
7840soname_spec=
7841shrext_cmds=".so"
7842postinstall_cmds=
7843postuninstall_cmds=
7844finish_cmds=
7845finish_eval=
7846shlibpath_var=
7847shlibpath_overrides_runpath=unknown
7848version_type=none
7849dynamic_linker="$host_os ld.so"
7850sys_lib_dlsearch_path_spec="/lib /usr/lib"
7851if test "$GCC" = yes; then
7852  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7853  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7854    # if the path contains ";" then we assume it to be the separator
7855    # otherwise default to the standard path separator (i.e. ":") - it is
7856    # assumed that no part of a normal pathname contains ";" but that should
7857    # okay in the real world where ";" in dirpaths is itself problematic.
7858    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7859  else
7860    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7861  fi
7862else
7863  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7864fi
7865need_lib_prefix=unknown
7866hardcode_into_libs=no
7867
7868# when you set need_version to no, make sure it does not cause -set_version
7869# flags to be left without arguments
7870need_version=unknown
7871
7872case $host_os in
7873aix3*)
7874  version_type=linux
7875  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7876  shlibpath_var=LIBPATH
7877
7878  # AIX 3 has no versioning support, so we append a major version to the name.
7879  soname_spec='${libname}${release}${shared_ext}$major'
7880  ;;
7881
7882aix4* | aix5*)
7883  version_type=linux
7884  need_lib_prefix=no
7885  need_version=no
7886  hardcode_into_libs=yes
7887  if test "$host_cpu" = ia64; then
7888    # AIX 5 supports IA64
7889    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7890    shlibpath_var=LD_LIBRARY_PATH
7891  else
7892    # With GCC up to 2.95.x, collect2 would create an import file
7893    # for dependence libraries.  The import file would start with
7894    # the line `#! .'.  This would cause the generated library to
7895    # depend on `.', always an invalid library.  This was fixed in
7896    # development snapshots of GCC prior to 3.0.
7897    case $host_os in
7898      aix4 | aix4.[01] | aix4.[01].*)
7899      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7900	   echo ' yes '
7901	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7902	:
7903      else
7904	can_build_shared=no
7905      fi
7906      ;;
7907    esac
7908    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7909    # soname into executable. Probably we can add versioning support to
7910    # collect2, so additional links can be useful in future.
7911    if test "$aix_use_runtimelinking" = yes; then
7912      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7913      # instead of lib<name>.a to let people know that these are not
7914      # typical AIX shared libraries.
7915      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7916    else
7917      # We preserve .a as extension for shared libraries through AIX4.2
7918      # and later when we are not doing run time linking.
7919      library_names_spec='${libname}${release}.a $libname.a'
7920      soname_spec='${libname}${release}${shared_ext}$major'
7921    fi
7922    shlibpath_var=LIBPATH
7923  fi
7924  ;;
7925
7926amigaos*)
7927  library_names_spec='$libname.ixlibrary $libname.a'
7928  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7929  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'
7930  ;;
7931
7932beos*)
7933  library_names_spec='${libname}${shared_ext}'
7934  dynamic_linker="$host_os ld.so"
7935  shlibpath_var=LIBRARY_PATH
7936  ;;
7937
7938bsdi[45]*)
7939  version_type=linux
7940  need_version=no
7941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7942  soname_spec='${libname}${release}${shared_ext}$major'
7943  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7944  shlibpath_var=LD_LIBRARY_PATH
7945  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7946  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7947  # the default ld.so.conf also contains /usr/contrib/lib and
7948  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7949  # libtool to hard-code these into programs
7950  ;;
7951
7952cygwin* | mingw* | pw32*)
7953  version_type=windows
7954  shrext_cmds=".dll"
7955  need_version=no
7956  need_lib_prefix=no
7957
7958  case $GCC,$host_os in
7959  yes,cygwin* | yes,mingw* | yes,pw32*)
7960    library_names_spec='$libname.dll.a'
7961    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7962    postinstall_cmds='base_file=`basename \${file}`~
7963      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7964      dldir=$destdir/`dirname \$dlpath`~
7965      test -d \$dldir || mkdir -p \$dldir~
7966      $install_prog $dir/$dlname \$dldir/$dlname~
7967      chmod a+x \$dldir/$dlname'
7968    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7969      dlpath=$dir/\$dldll~
7970       $rm \$dlpath'
7971    shlibpath_overrides_runpath=yes
7972
7973    case $host_os in
7974    cygwin*)
7975      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7976      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7977      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7978      ;;
7979    mingw*)
7980      # MinGW DLLs use traditional 'lib' prefix
7981      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7982      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7983      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7984        # It is most probably a Windows format PATH printed by
7985        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7986        # path with ; separators, and with drive letters. We can handle the
7987        # drive letters (cygwin fileutils understands them), so leave them,
7988        # especially as we might pass files found there to a mingw objdump,
7989        # which wouldn't understand a cygwinified path. Ahh.
7990        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7991      else
7992        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7993      fi
7994      ;;
7995    pw32*)
7996      # pw32 DLLs use 'pw' prefix rather than 'lib'
7997      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7998      ;;
7999    esac
8000    ;;
8001
8002  *)
8003    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8004    ;;
8005  esac
8006  dynamic_linker='Win32 ld.exe'
8007  # FIXME: first we should search . and the directory the executable is in
8008  shlibpath_var=PATH
8009  ;;
8010
8011darwin* | rhapsody*)
8012  dynamic_linker="$host_os dyld"
8013  version_type=darwin
8014  need_lib_prefix=no
8015  need_version=no
8016  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8017  soname_spec='${libname}${release}${major}$shared_ext'
8018  shlibpath_overrides_runpath=yes
8019  shlibpath_var=DYLD_LIBRARY_PATH
8020  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8021  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8022  if test "$GCC" = yes; then
8023    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"`
8024  else
8025    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8026  fi
8027  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8028  ;;
8029
8030dgux*)
8031  version_type=linux
8032  need_lib_prefix=no
8033  need_version=no
8034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8035  soname_spec='${libname}${release}${shared_ext}$major'
8036  shlibpath_var=LD_LIBRARY_PATH
8037  ;;
8038
8039freebsd1*)
8040  dynamic_linker=no
8041  ;;
8042
8043kfreebsd*-gnu)
8044  version_type=linux
8045  need_lib_prefix=no
8046  need_version=no
8047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8048  soname_spec='${libname}${release}${shared_ext}$major'
8049  shlibpath_var=LD_LIBRARY_PATH
8050  shlibpath_overrides_runpath=no
8051  hardcode_into_libs=yes
8052  dynamic_linker='GNU ld.so'
8053  ;;
8054
8055freebsd* | dragonfly*)
8056  # DragonFly does not have aout.  When/if they implement a new
8057  # versioning mechanism, adjust this.
8058  if test -x /usr/bin/objformat; then
8059    objformat=`/usr/bin/objformat`
8060  else
8061    case $host_os in
8062    freebsd[123]*) objformat=aout ;;
8063    *) objformat=elf ;;
8064    esac
8065  fi
8066  version_type=freebsd-$objformat
8067  case $version_type in
8068    freebsd-elf*)
8069      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8070      need_version=no
8071      need_lib_prefix=no
8072      ;;
8073    freebsd-*)
8074      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8075      need_version=yes
8076      ;;
8077  esac
8078  shlibpath_var=LD_LIBRARY_PATH
8079  case $host_os in
8080  freebsd2*)
8081    shlibpath_overrides_runpath=yes
8082    ;;
8083  freebsd3.[01]* | freebsdelf3.[01]*)
8084    shlibpath_overrides_runpath=yes
8085    hardcode_into_libs=yes
8086    ;;
8087  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8088  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8089    shlibpath_overrides_runpath=no
8090    hardcode_into_libs=yes
8091    ;;
8092  freebsd*) # from 4.6 on
8093    shlibpath_overrides_runpath=yes
8094    hardcode_into_libs=yes
8095    ;;
8096  esac
8097  ;;
8098
8099gnu*)
8100  version_type=linux
8101  need_lib_prefix=no
8102  need_version=no
8103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8104  soname_spec='${libname}${release}${shared_ext}$major'
8105  shlibpath_var=LD_LIBRARY_PATH
8106  hardcode_into_libs=yes
8107  ;;
8108
8109hpux9* | hpux10* | hpux11*)
8110  # Give a soname corresponding to the major version so that dld.sl refuses to
8111  # link against other versions.
8112  version_type=sunos
8113  need_lib_prefix=no
8114  need_version=no
8115  case $host_cpu in
8116  ia64*)
8117    shrext_cmds='.so'
8118    hardcode_into_libs=yes
8119    dynamic_linker="$host_os dld.so"
8120    shlibpath_var=LD_LIBRARY_PATH
8121    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8122    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8123    soname_spec='${libname}${release}${shared_ext}$major'
8124    if test "X$HPUX_IA64_MODE" = X32; then
8125      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8126    else
8127      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8128    fi
8129    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8130    ;;
8131   hppa*64*)
8132     shrext_cmds='.sl'
8133     hardcode_into_libs=yes
8134     dynamic_linker="$host_os dld.sl"
8135     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8136     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8138     soname_spec='${libname}${release}${shared_ext}$major'
8139     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8140     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8141     ;;
8142   *)
8143    shrext_cmds='.sl'
8144    dynamic_linker="$host_os dld.sl"
8145    shlibpath_var=SHLIB_PATH
8146    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8147    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8148    soname_spec='${libname}${release}${shared_ext}$major'
8149    ;;
8150  esac
8151  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8152  postinstall_cmds='chmod 555 $lib'
8153  ;;
8154
8155interix3*)
8156  version_type=linux
8157  need_lib_prefix=no
8158  need_version=no
8159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8160  soname_spec='${libname}${release}${shared_ext}$major'
8161  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8162  shlibpath_var=LD_LIBRARY_PATH
8163  shlibpath_overrides_runpath=no
8164  hardcode_into_libs=yes
8165  ;;
8166
8167irix5* | irix6* | nonstopux*)
8168  case $host_os in
8169    nonstopux*) version_type=nonstopux ;;
8170    *)
8171	if test "$lt_cv_prog_gnu_ld" = yes; then
8172		version_type=linux
8173	else
8174		version_type=irix
8175	fi ;;
8176  esac
8177  need_lib_prefix=no
8178  need_version=no
8179  soname_spec='${libname}${release}${shared_ext}$major'
8180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8181  case $host_os in
8182  irix5* | nonstopux*)
8183    libsuff= shlibsuff=
8184    ;;
8185  *)
8186    case $LD in # libtool.m4 will add one of these switches to LD
8187    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8188      libsuff= shlibsuff= libmagic=32-bit;;
8189    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8190      libsuff=32 shlibsuff=N32 libmagic=N32;;
8191    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8192      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8193    *) libsuff= shlibsuff= libmagic=never-match;;
8194    esac
8195    ;;
8196  esac
8197  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8198  shlibpath_overrides_runpath=no
8199  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8200  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8201  hardcode_into_libs=yes
8202  ;;
8203
8204# No shared lib support for Linux oldld, aout, or coff.
8205linux*oldld* | linux*aout* | linux*coff*)
8206  dynamic_linker=no
8207  ;;
8208
8209# This must be Linux ELF.
8210linux*)
8211  version_type=linux
8212  need_lib_prefix=no
8213  need_version=no
8214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8215  soname_spec='${libname}${release}${shared_ext}$major'
8216  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8217  shlibpath_var=LD_LIBRARY_PATH
8218  shlibpath_overrides_runpath=no
8219  # This implies no fast_install, which is unacceptable.
8220  # Some rework will be needed to allow for fast_install
8221  # before this can be enabled.
8222  hardcode_into_libs=yes
8223
8224  # find out which ABI we are using
8225  libsuff=
8226  case "$host_cpu" in
8227  x86_64*|s390x*|powerpc64*)
8228    echo '#line 8228 "configure"' > conftest.$ac_ext
8229    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8230  (eval $ac_compile) 2>&5
8231  ac_status=$?
8232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233  (exit $ac_status); }; then
8234      case `/usr/bin/file conftest.$ac_objext` in
8235      *64-bit*)
8236        libsuff=64
8237        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8238        ;;
8239      esac
8240    fi
8241    rm -rf conftest*
8242    ;;
8243  esac
8244
8245  # Append ld.so.conf contents to the search path
8246  if test -f /etc/ld.so.conf; then
8247    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8248    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8249  fi
8250
8251  # We used to test for /lib/ld.so.1 and disable shared libraries on
8252  # powerpc, because MkLinux only supported shared libraries with the
8253  # GNU dynamic linker.  Since this was broken with cross compilers,
8254  # most powerpc-linux boxes support dynamic linking these days and
8255  # people can always --disable-shared, the test was removed, and we
8256  # assume the GNU/Linux dynamic linker is in use.
8257  dynamic_linker='GNU/Linux ld.so'
8258  ;;
8259
8260knetbsd*-gnu)
8261  version_type=linux
8262  need_lib_prefix=no
8263  need_version=no
8264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8265  soname_spec='${libname}${release}${shared_ext}$major'
8266  shlibpath_var=LD_LIBRARY_PATH
8267  shlibpath_overrides_runpath=no
8268  hardcode_into_libs=yes
8269  dynamic_linker='GNU ld.so'
8270  ;;
8271
8272netbsd*)
8273  version_type=sunos
8274  need_lib_prefix=no
8275  need_version=no
8276  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8277    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8278    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8279    dynamic_linker='NetBSD (a.out) ld.so'
8280  else
8281    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8282    soname_spec='${libname}${release}${shared_ext}$major'
8283    dynamic_linker='NetBSD ld.elf_so'
8284  fi
8285  shlibpath_var=LD_LIBRARY_PATH
8286  shlibpath_overrides_runpath=yes
8287  hardcode_into_libs=yes
8288  ;;
8289
8290newsos6)
8291  version_type=linux
8292  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8293  shlibpath_var=LD_LIBRARY_PATH
8294  shlibpath_overrides_runpath=yes
8295  ;;
8296
8297nto-qnx*)
8298  version_type=linux
8299  need_lib_prefix=no
8300  need_version=no
8301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8302  soname_spec='${libname}${release}${shared_ext}$major'
8303  shlibpath_var=LD_LIBRARY_PATH
8304  shlibpath_overrides_runpath=yes
8305  ;;
8306
8307openbsd*)
8308  version_type=sunos
8309  sys_lib_dlsearch_path_spec="/usr/lib"
8310  need_lib_prefix=no
8311  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8312  case $host_os in
8313    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8314    *)                         need_version=no  ;;
8315  esac
8316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8317  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8318  shlibpath_var=LD_LIBRARY_PATH
8319  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8320    case $host_os in
8321      openbsd2.[89] | openbsd2.[89].*)
8322	shlibpath_overrides_runpath=no
8323	;;
8324      *)
8325	shlibpath_overrides_runpath=yes
8326	;;
8327      esac
8328  else
8329    shlibpath_overrides_runpath=yes
8330  fi
8331  ;;
8332
8333os2*)
8334  libname_spec='$name'
8335  shrext_cmds=".dll"
8336  need_lib_prefix=no
8337  library_names_spec='$libname${shared_ext} $libname.a'
8338  dynamic_linker='OS/2 ld.exe'
8339  shlibpath_var=LIBPATH
8340  ;;
8341
8342osf3* | osf4* | osf5*)
8343  version_type=osf
8344  need_lib_prefix=no
8345  need_version=no
8346  soname_spec='${libname}${release}${shared_ext}$major'
8347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8348  shlibpath_var=LD_LIBRARY_PATH
8349  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8350  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8351  ;;
8352
8353solaris*)
8354  version_type=linux
8355  need_lib_prefix=no
8356  need_version=no
8357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8358  soname_spec='${libname}${release}${shared_ext}$major'
8359  shlibpath_var=LD_LIBRARY_PATH
8360  shlibpath_overrides_runpath=yes
8361  hardcode_into_libs=yes
8362  # ldd complains unless libraries are executable
8363  postinstall_cmds='chmod +x $lib'
8364  ;;
8365
8366sunos4*)
8367  version_type=sunos
8368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8369  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8370  shlibpath_var=LD_LIBRARY_PATH
8371  shlibpath_overrides_runpath=yes
8372  if test "$with_gnu_ld" = yes; then
8373    need_lib_prefix=no
8374  fi
8375  need_version=yes
8376  ;;
8377
8378sysv4 | sysv4.3*)
8379  version_type=linux
8380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8381  soname_spec='${libname}${release}${shared_ext}$major'
8382  shlibpath_var=LD_LIBRARY_PATH
8383  case $host_vendor in
8384    sni)
8385      shlibpath_overrides_runpath=no
8386      need_lib_prefix=no
8387      export_dynamic_flag_spec='${wl}-Blargedynsym'
8388      runpath_var=LD_RUN_PATH
8389      ;;
8390    siemens)
8391      need_lib_prefix=no
8392      ;;
8393    motorola)
8394      need_lib_prefix=no
8395      need_version=no
8396      shlibpath_overrides_runpath=no
8397      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8398      ;;
8399  esac
8400  ;;
8401
8402sysv4*MP*)
8403  if test -d /usr/nec ;then
8404    version_type=linux
8405    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8406    soname_spec='$libname${shared_ext}.$major'
8407    shlibpath_var=LD_LIBRARY_PATH
8408  fi
8409  ;;
8410
8411sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8412  version_type=freebsd-elf
8413  need_lib_prefix=no
8414  need_version=no
8415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8416  soname_spec='${libname}${release}${shared_ext}$major'
8417  shlibpath_var=LD_LIBRARY_PATH
8418  hardcode_into_libs=yes
8419  if test "$with_gnu_ld" = yes; then
8420    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8421    shlibpath_overrides_runpath=no
8422  else
8423    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8424    shlibpath_overrides_runpath=yes
8425    case $host_os in
8426      sco3.2v5*)
8427        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8428	;;
8429    esac
8430  fi
8431  sys_lib_dlsearch_path_spec='/usr/lib'
8432  ;;
8433
8434uts4*)
8435  version_type=linux
8436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8437  soname_spec='${libname}${release}${shared_ext}$major'
8438  shlibpath_var=LD_LIBRARY_PATH
8439  ;;
8440
8441*)
8442  dynamic_linker=no
8443  ;;
8444esac
8445echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8446echo "${ECHO_T}$dynamic_linker" >&6
8447test "$dynamic_linker" = no && can_build_shared=no
8448
8449variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8450if test "$GCC" = yes; then
8451  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8452fi
8453
8454echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8455echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8456hardcode_action=
8457if test -n "$hardcode_libdir_flag_spec" || \
8458   test -n "$runpath_var" || \
8459   test "X$hardcode_automatic" = "Xyes" ; then
8460
8461  # We can hardcode non-existant directories.
8462  if test "$hardcode_direct" != no &&
8463     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8464     # have to relink, otherwise we might link with an installed library
8465     # when we should be linking with a yet-to-be-installed one
8466     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8467     test "$hardcode_minus_L" != no; then
8468    # Linking always hardcodes the temporary library directory.
8469    hardcode_action=relink
8470  else
8471    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8472    hardcode_action=immediate
8473  fi
8474else
8475  # We cannot hardcode anything, or else we can only hardcode existing
8476  # directories.
8477  hardcode_action=unsupported
8478fi
8479echo "$as_me:$LINENO: result: $hardcode_action" >&5
8480echo "${ECHO_T}$hardcode_action" >&6
8481
8482if test "$hardcode_action" = relink; then
8483  # Fast installation is not supported
8484  enable_fast_install=no
8485elif test "$shlibpath_overrides_runpath" = yes ||
8486     test "$enable_shared" = no; then
8487  # Fast installation is not necessary
8488  enable_fast_install=needless
8489fi
8490
8491striplib=
8492old_striplib=
8493echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8494echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8495if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8496  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8497  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8498  echo "$as_me:$LINENO: result: yes" >&5
8499echo "${ECHO_T}yes" >&6
8500else
8501# FIXME - insert some real tests, host_os isn't really good enough
8502  case $host_os in
8503   darwin*)
8504       if test -n "$STRIP" ; then
8505         striplib="$STRIP -x"
8506         echo "$as_me:$LINENO: result: yes" >&5
8507echo "${ECHO_T}yes" >&6
8508       else
8509  echo "$as_me:$LINENO: result: no" >&5
8510echo "${ECHO_T}no" >&6
8511fi
8512       ;;
8513   *)
8514  echo "$as_me:$LINENO: result: no" >&5
8515echo "${ECHO_T}no" >&6
8516    ;;
8517  esac
8518fi
8519
8520if test "x$enable_dlopen" != xyes; then
8521  enable_dlopen=unknown
8522  enable_dlopen_self=unknown
8523  enable_dlopen_self_static=unknown
8524else
8525  lt_cv_dlopen=no
8526  lt_cv_dlopen_libs=
8527
8528  case $host_os in
8529  beos*)
8530    lt_cv_dlopen="load_add_on"
8531    lt_cv_dlopen_libs=
8532    lt_cv_dlopen_self=yes
8533    ;;
8534
8535  mingw* | pw32*)
8536    lt_cv_dlopen="LoadLibrary"
8537    lt_cv_dlopen_libs=
8538   ;;
8539
8540  cygwin*)
8541    lt_cv_dlopen="dlopen"
8542    lt_cv_dlopen_libs=
8543   ;;
8544
8545  darwin*)
8546  # if libdl is installed we need to link against it
8547    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8548echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8549if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8550  echo $ECHO_N "(cached) $ECHO_C" >&6
8551else
8552  ac_check_lib_save_LIBS=$LIBS
8553LIBS="-ldl  $LIBS"
8554cat >conftest.$ac_ext <<_ACEOF
8555/* confdefs.h.  */
8556_ACEOF
8557cat confdefs.h >>conftest.$ac_ext
8558cat >>conftest.$ac_ext <<_ACEOF
8559/* end confdefs.h.  */
8560
8561/* Override any gcc2 internal prototype to avoid an error.  */
8562#ifdef __cplusplus
8563extern "C"
8564#endif
8565/* We use char because int might match the return type of a gcc2
8566   builtin and then its argument prototype would still apply.  */
8567char dlopen ();
8568int
8569main ()
8570{
8571dlopen ();
8572  ;
8573  return 0;
8574}
8575_ACEOF
8576rm -f conftest.$ac_objext conftest$ac_exeext
8577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8578  (eval $ac_link) 2>conftest.er1
8579  ac_status=$?
8580  grep -v '^ *+' conftest.er1 >conftest.err
8581  rm -f conftest.er1
8582  cat conftest.err >&5
8583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584  (exit $ac_status); } &&
8585	 { ac_try='test -z "$ac_c_werror_flag"
8586			 || test ! -s conftest.err'
8587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588  (eval $ac_try) 2>&5
8589  ac_status=$?
8590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591  (exit $ac_status); }; } &&
8592	 { ac_try='test -s conftest$ac_exeext'
8593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594  (eval $ac_try) 2>&5
8595  ac_status=$?
8596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597  (exit $ac_status); }; }; then
8598  ac_cv_lib_dl_dlopen=yes
8599else
8600  echo "$as_me: failed program was:" >&5
8601sed 's/^/| /' conftest.$ac_ext >&5
8602
8603ac_cv_lib_dl_dlopen=no
8604fi
8605rm -f conftest.err conftest.$ac_objext \
8606      conftest$ac_exeext conftest.$ac_ext
8607LIBS=$ac_check_lib_save_LIBS
8608fi
8609echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8610echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8611if test $ac_cv_lib_dl_dlopen = yes; then
8612  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8613else
8614
8615    lt_cv_dlopen="dyld"
8616    lt_cv_dlopen_libs=
8617    lt_cv_dlopen_self=yes
8618
8619fi
8620
8621   ;;
8622
8623  *)
8624    echo "$as_me:$LINENO: checking for shl_load" >&5
8625echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8626if test "${ac_cv_func_shl_load+set}" = set; then
8627  echo $ECHO_N "(cached) $ECHO_C" >&6
8628else
8629  cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h.  */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h.  */
8635/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8636   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8637#define shl_load innocuous_shl_load
8638
8639/* System header to define __stub macros and hopefully few prototypes,
8640    which can conflict with char shl_load (); below.
8641    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8642    <limits.h> exists even on freestanding compilers.  */
8643
8644#ifdef __STDC__
8645# include <limits.h>
8646#else
8647# include <assert.h>
8648#endif
8649
8650#undef shl_load
8651
8652/* Override any gcc2 internal prototype to avoid an error.  */
8653#ifdef __cplusplus
8654extern "C"
8655{
8656#endif
8657/* We use char because int might match the return type of a gcc2
8658   builtin and then its argument prototype would still apply.  */
8659char shl_load ();
8660/* The GNU C library defines this for functions which it implements
8661    to always fail with ENOSYS.  Some functions are actually named
8662    something starting with __ and the normal name is an alias.  */
8663#if defined (__stub_shl_load) || defined (__stub___shl_load)
8664choke me
8665#else
8666char (*f) () = shl_load;
8667#endif
8668#ifdef __cplusplus
8669}
8670#endif
8671
8672int
8673main ()
8674{
8675return f != shl_load;
8676  ;
8677  return 0;
8678}
8679_ACEOF
8680rm -f conftest.$ac_objext conftest$ac_exeext
8681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8682  (eval $ac_link) 2>conftest.er1
8683  ac_status=$?
8684  grep -v '^ *+' conftest.er1 >conftest.err
8685  rm -f conftest.er1
8686  cat conftest.err >&5
8687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688  (exit $ac_status); } &&
8689	 { ac_try='test -z "$ac_c_werror_flag"
8690			 || test ! -s conftest.err'
8691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692  (eval $ac_try) 2>&5
8693  ac_status=$?
8694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695  (exit $ac_status); }; } &&
8696	 { ac_try='test -s conftest$ac_exeext'
8697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698  (eval $ac_try) 2>&5
8699  ac_status=$?
8700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701  (exit $ac_status); }; }; then
8702  ac_cv_func_shl_load=yes
8703else
8704  echo "$as_me: failed program was:" >&5
8705sed 's/^/| /' conftest.$ac_ext >&5
8706
8707ac_cv_func_shl_load=no
8708fi
8709rm -f conftest.err conftest.$ac_objext \
8710      conftest$ac_exeext conftest.$ac_ext
8711fi
8712echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8713echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8714if test $ac_cv_func_shl_load = yes; then
8715  lt_cv_dlopen="shl_load"
8716else
8717  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8718echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8719if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8720  echo $ECHO_N "(cached) $ECHO_C" >&6
8721else
8722  ac_check_lib_save_LIBS=$LIBS
8723LIBS="-ldld  $LIBS"
8724cat >conftest.$ac_ext <<_ACEOF
8725/* confdefs.h.  */
8726_ACEOF
8727cat confdefs.h >>conftest.$ac_ext
8728cat >>conftest.$ac_ext <<_ACEOF
8729/* end confdefs.h.  */
8730
8731/* Override any gcc2 internal prototype to avoid an error.  */
8732#ifdef __cplusplus
8733extern "C"
8734#endif
8735/* We use char because int might match the return type of a gcc2
8736   builtin and then its argument prototype would still apply.  */
8737char shl_load ();
8738int
8739main ()
8740{
8741shl_load ();
8742  ;
8743  return 0;
8744}
8745_ACEOF
8746rm -f conftest.$ac_objext conftest$ac_exeext
8747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748  (eval $ac_link) 2>conftest.er1
8749  ac_status=$?
8750  grep -v '^ *+' conftest.er1 >conftest.err
8751  rm -f conftest.er1
8752  cat conftest.err >&5
8753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754  (exit $ac_status); } &&
8755	 { ac_try='test -z "$ac_c_werror_flag"
8756			 || test ! -s conftest.err'
8757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758  (eval $ac_try) 2>&5
8759  ac_status=$?
8760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761  (exit $ac_status); }; } &&
8762	 { ac_try='test -s conftest$ac_exeext'
8763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764  (eval $ac_try) 2>&5
8765  ac_status=$?
8766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767  (exit $ac_status); }; }; then
8768  ac_cv_lib_dld_shl_load=yes
8769else
8770  echo "$as_me: failed program was:" >&5
8771sed 's/^/| /' conftest.$ac_ext >&5
8772
8773ac_cv_lib_dld_shl_load=no
8774fi
8775rm -f conftest.err conftest.$ac_objext \
8776      conftest$ac_exeext conftest.$ac_ext
8777LIBS=$ac_check_lib_save_LIBS
8778fi
8779echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8780echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8781if test $ac_cv_lib_dld_shl_load = yes; then
8782  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8783else
8784  echo "$as_me:$LINENO: checking for dlopen" >&5
8785echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8786if test "${ac_cv_func_dlopen+set}" = set; then
8787  echo $ECHO_N "(cached) $ECHO_C" >&6
8788else
8789  cat >conftest.$ac_ext <<_ACEOF
8790/* confdefs.h.  */
8791_ACEOF
8792cat confdefs.h >>conftest.$ac_ext
8793cat >>conftest.$ac_ext <<_ACEOF
8794/* end confdefs.h.  */
8795/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8796   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8797#define dlopen innocuous_dlopen
8798
8799/* System header to define __stub macros and hopefully few prototypes,
8800    which can conflict with char dlopen (); below.
8801    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8802    <limits.h> exists even on freestanding compilers.  */
8803
8804#ifdef __STDC__
8805# include <limits.h>
8806#else
8807# include <assert.h>
8808#endif
8809
8810#undef dlopen
8811
8812/* Override any gcc2 internal prototype to avoid an error.  */
8813#ifdef __cplusplus
8814extern "C"
8815{
8816#endif
8817/* We use char because int might match the return type of a gcc2
8818   builtin and then its argument prototype would still apply.  */
8819char dlopen ();
8820/* The GNU C library defines this for functions which it implements
8821    to always fail with ENOSYS.  Some functions are actually named
8822    something starting with __ and the normal name is an alias.  */
8823#if defined (__stub_dlopen) || defined (__stub___dlopen)
8824choke me
8825#else
8826char (*f) () = dlopen;
8827#endif
8828#ifdef __cplusplus
8829}
8830#endif
8831
8832int
8833main ()
8834{
8835return f != dlopen;
8836  ;
8837  return 0;
8838}
8839_ACEOF
8840rm -f conftest.$ac_objext conftest$ac_exeext
8841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842  (eval $ac_link) 2>conftest.er1
8843  ac_status=$?
8844  grep -v '^ *+' conftest.er1 >conftest.err
8845  rm -f conftest.er1
8846  cat conftest.err >&5
8847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848  (exit $ac_status); } &&
8849	 { ac_try='test -z "$ac_c_werror_flag"
8850			 || test ! -s conftest.err'
8851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852  (eval $ac_try) 2>&5
8853  ac_status=$?
8854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855  (exit $ac_status); }; } &&
8856	 { ac_try='test -s conftest$ac_exeext'
8857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858  (eval $ac_try) 2>&5
8859  ac_status=$?
8860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861  (exit $ac_status); }; }; then
8862  ac_cv_func_dlopen=yes
8863else
8864  echo "$as_me: failed program was:" >&5
8865sed 's/^/| /' conftest.$ac_ext >&5
8866
8867ac_cv_func_dlopen=no
8868fi
8869rm -f conftest.err conftest.$ac_objext \
8870      conftest$ac_exeext conftest.$ac_ext
8871fi
8872echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8873echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8874if test $ac_cv_func_dlopen = yes; then
8875  lt_cv_dlopen="dlopen"
8876else
8877  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8878echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8879if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8880  echo $ECHO_N "(cached) $ECHO_C" >&6
8881else
8882  ac_check_lib_save_LIBS=$LIBS
8883LIBS="-ldl  $LIBS"
8884cat >conftest.$ac_ext <<_ACEOF
8885/* confdefs.h.  */
8886_ACEOF
8887cat confdefs.h >>conftest.$ac_ext
8888cat >>conftest.$ac_ext <<_ACEOF
8889/* end confdefs.h.  */
8890
8891/* Override any gcc2 internal prototype to avoid an error.  */
8892#ifdef __cplusplus
8893extern "C"
8894#endif
8895/* We use char because int might match the return type of a gcc2
8896   builtin and then its argument prototype would still apply.  */
8897char dlopen ();
8898int
8899main ()
8900{
8901dlopen ();
8902  ;
8903  return 0;
8904}
8905_ACEOF
8906rm -f conftest.$ac_objext conftest$ac_exeext
8907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908  (eval $ac_link) 2>conftest.er1
8909  ac_status=$?
8910  grep -v '^ *+' conftest.er1 >conftest.err
8911  rm -f conftest.er1
8912  cat conftest.err >&5
8913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914  (exit $ac_status); } &&
8915	 { ac_try='test -z "$ac_c_werror_flag"
8916			 || test ! -s conftest.err'
8917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918  (eval $ac_try) 2>&5
8919  ac_status=$?
8920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921  (exit $ac_status); }; } &&
8922	 { ac_try='test -s conftest$ac_exeext'
8923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924  (eval $ac_try) 2>&5
8925  ac_status=$?
8926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927  (exit $ac_status); }; }; then
8928  ac_cv_lib_dl_dlopen=yes
8929else
8930  echo "$as_me: failed program was:" >&5
8931sed 's/^/| /' conftest.$ac_ext >&5
8932
8933ac_cv_lib_dl_dlopen=no
8934fi
8935rm -f conftest.err conftest.$ac_objext \
8936      conftest$ac_exeext conftest.$ac_ext
8937LIBS=$ac_check_lib_save_LIBS
8938fi
8939echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8940echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8941if test $ac_cv_lib_dl_dlopen = yes; then
8942  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8943else
8944  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8945echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8946if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8947  echo $ECHO_N "(cached) $ECHO_C" >&6
8948else
8949  ac_check_lib_save_LIBS=$LIBS
8950LIBS="-lsvld  $LIBS"
8951cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h.  */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h.  */
8957
8958/* Override any gcc2 internal prototype to avoid an error.  */
8959#ifdef __cplusplus
8960extern "C"
8961#endif
8962/* We use char because int might match the return type of a gcc2
8963   builtin and then its argument prototype would still apply.  */
8964char dlopen ();
8965int
8966main ()
8967{
8968dlopen ();
8969  ;
8970  return 0;
8971}
8972_ACEOF
8973rm -f conftest.$ac_objext conftest$ac_exeext
8974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975  (eval $ac_link) 2>conftest.er1
8976  ac_status=$?
8977  grep -v '^ *+' conftest.er1 >conftest.err
8978  rm -f conftest.er1
8979  cat conftest.err >&5
8980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981  (exit $ac_status); } &&
8982	 { ac_try='test -z "$ac_c_werror_flag"
8983			 || test ! -s conftest.err'
8984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985  (eval $ac_try) 2>&5
8986  ac_status=$?
8987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988  (exit $ac_status); }; } &&
8989	 { ac_try='test -s conftest$ac_exeext'
8990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991  (eval $ac_try) 2>&5
8992  ac_status=$?
8993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994  (exit $ac_status); }; }; then
8995  ac_cv_lib_svld_dlopen=yes
8996else
8997  echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
8999
9000ac_cv_lib_svld_dlopen=no
9001fi
9002rm -f conftest.err conftest.$ac_objext \
9003      conftest$ac_exeext conftest.$ac_ext
9004LIBS=$ac_check_lib_save_LIBS
9005fi
9006echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9007echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9008if test $ac_cv_lib_svld_dlopen = yes; then
9009  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9010else
9011  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9012echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9013if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9014  echo $ECHO_N "(cached) $ECHO_C" >&6
9015else
9016  ac_check_lib_save_LIBS=$LIBS
9017LIBS="-ldld  $LIBS"
9018cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h.  */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
9023/* end confdefs.h.  */
9024
9025/* Override any gcc2 internal prototype to avoid an error.  */
9026#ifdef __cplusplus
9027extern "C"
9028#endif
9029/* We use char because int might match the return type of a gcc2
9030   builtin and then its argument prototype would still apply.  */
9031char dld_link ();
9032int
9033main ()
9034{
9035dld_link ();
9036  ;
9037  return 0;
9038}
9039_ACEOF
9040rm -f conftest.$ac_objext conftest$ac_exeext
9041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042  (eval $ac_link) 2>conftest.er1
9043  ac_status=$?
9044  grep -v '^ *+' conftest.er1 >conftest.err
9045  rm -f conftest.er1
9046  cat conftest.err >&5
9047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048  (exit $ac_status); } &&
9049	 { ac_try='test -z "$ac_c_werror_flag"
9050			 || test ! -s conftest.err'
9051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052  (eval $ac_try) 2>&5
9053  ac_status=$?
9054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055  (exit $ac_status); }; } &&
9056	 { ac_try='test -s conftest$ac_exeext'
9057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058  (eval $ac_try) 2>&5
9059  ac_status=$?
9060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061  (exit $ac_status); }; }; then
9062  ac_cv_lib_dld_dld_link=yes
9063else
9064  echo "$as_me: failed program was:" >&5
9065sed 's/^/| /' conftest.$ac_ext >&5
9066
9067ac_cv_lib_dld_dld_link=no
9068fi
9069rm -f conftest.err conftest.$ac_objext \
9070      conftest$ac_exeext conftest.$ac_ext
9071LIBS=$ac_check_lib_save_LIBS
9072fi
9073echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9074echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9075if test $ac_cv_lib_dld_dld_link = yes; then
9076  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9077fi
9078
9079
9080fi
9081
9082
9083fi
9084
9085
9086fi
9087
9088
9089fi
9090
9091
9092fi
9093
9094    ;;
9095  esac
9096
9097  if test "x$lt_cv_dlopen" != xno; then
9098    enable_dlopen=yes
9099  else
9100    enable_dlopen=no
9101  fi
9102
9103  case $lt_cv_dlopen in
9104  dlopen)
9105    save_CPPFLAGS="$CPPFLAGS"
9106    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9107
9108    save_LDFLAGS="$LDFLAGS"
9109    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9110
9111    save_LIBS="$LIBS"
9112    LIBS="$lt_cv_dlopen_libs $LIBS"
9113
9114    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9115echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9116if test "${lt_cv_dlopen_self+set}" = set; then
9117  echo $ECHO_N "(cached) $ECHO_C" >&6
9118else
9119  	  if test "$cross_compiling" = yes; then :
9120  lt_cv_dlopen_self=cross
9121else
9122  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9123  lt_status=$lt_dlunknown
9124  cat > conftest.$ac_ext <<EOF
9125#line 9125 "configure"
9126#include "confdefs.h"
9127
9128#if HAVE_DLFCN_H
9129#include <dlfcn.h>
9130#endif
9131
9132#include <stdio.h>
9133
9134#ifdef RTLD_GLOBAL
9135#  define LT_DLGLOBAL		RTLD_GLOBAL
9136#else
9137#  ifdef DL_GLOBAL
9138#    define LT_DLGLOBAL		DL_GLOBAL
9139#  else
9140#    define LT_DLGLOBAL		0
9141#  endif
9142#endif
9143
9144/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9145   find out it does not work in some platform. */
9146#ifndef LT_DLLAZY_OR_NOW
9147#  ifdef RTLD_LAZY
9148#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9149#  else
9150#    ifdef DL_LAZY
9151#      define LT_DLLAZY_OR_NOW		DL_LAZY
9152#    else
9153#      ifdef RTLD_NOW
9154#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9155#      else
9156#        ifdef DL_NOW
9157#          define LT_DLLAZY_OR_NOW	DL_NOW
9158#        else
9159#          define LT_DLLAZY_OR_NOW	0
9160#        endif
9161#      endif
9162#    endif
9163#  endif
9164#endif
9165
9166#ifdef __cplusplus
9167extern "C" void exit (int);
9168#endif
9169
9170void fnord() { int i=42;}
9171int main ()
9172{
9173  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9174  int status = $lt_dlunknown;
9175
9176  if (self)
9177    {
9178      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9179      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9180      /* dlclose (self); */
9181    }
9182  else
9183    puts (dlerror ());
9184
9185    exit (status);
9186}
9187EOF
9188  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189  (eval $ac_link) 2>&5
9190  ac_status=$?
9191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9193    (./conftest; exit; ) >&5 2>/dev/null
9194    lt_status=$?
9195    case x$lt_status in
9196      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9197      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9198      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9199    esac
9200  else :
9201    # compilation failed
9202    lt_cv_dlopen_self=no
9203  fi
9204fi
9205rm -fr conftest*
9206
9207
9208fi
9209echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9210echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9211
9212    if test "x$lt_cv_dlopen_self" = xyes; then
9213      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9214      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9215echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9216if test "${lt_cv_dlopen_self_static+set}" = set; then
9217  echo $ECHO_N "(cached) $ECHO_C" >&6
9218else
9219  	  if test "$cross_compiling" = yes; then :
9220  lt_cv_dlopen_self_static=cross
9221else
9222  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9223  lt_status=$lt_dlunknown
9224  cat > conftest.$ac_ext <<EOF
9225#line 9225 "configure"
9226#include "confdefs.h"
9227
9228#if HAVE_DLFCN_H
9229#include <dlfcn.h>
9230#endif
9231
9232#include <stdio.h>
9233
9234#ifdef RTLD_GLOBAL
9235#  define LT_DLGLOBAL		RTLD_GLOBAL
9236#else
9237#  ifdef DL_GLOBAL
9238#    define LT_DLGLOBAL		DL_GLOBAL
9239#  else
9240#    define LT_DLGLOBAL		0
9241#  endif
9242#endif
9243
9244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9245   find out it does not work in some platform. */
9246#ifndef LT_DLLAZY_OR_NOW
9247#  ifdef RTLD_LAZY
9248#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9249#  else
9250#    ifdef DL_LAZY
9251#      define LT_DLLAZY_OR_NOW		DL_LAZY
9252#    else
9253#      ifdef RTLD_NOW
9254#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9255#      else
9256#        ifdef DL_NOW
9257#          define LT_DLLAZY_OR_NOW	DL_NOW
9258#        else
9259#          define LT_DLLAZY_OR_NOW	0
9260#        endif
9261#      endif
9262#    endif
9263#  endif
9264#endif
9265
9266#ifdef __cplusplus
9267extern "C" void exit (int);
9268#endif
9269
9270void fnord() { int i=42;}
9271int main ()
9272{
9273  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9274  int status = $lt_dlunknown;
9275
9276  if (self)
9277    {
9278      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9279      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9280      /* dlclose (self); */
9281    }
9282  else
9283    puts (dlerror ());
9284
9285    exit (status);
9286}
9287EOF
9288  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289  (eval $ac_link) 2>&5
9290  ac_status=$?
9291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9293    (./conftest; exit; ) >&5 2>/dev/null
9294    lt_status=$?
9295    case x$lt_status in
9296      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9297      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9298      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9299    esac
9300  else :
9301    # compilation failed
9302    lt_cv_dlopen_self_static=no
9303  fi
9304fi
9305rm -fr conftest*
9306
9307
9308fi
9309echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9310echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9311    fi
9312
9313    CPPFLAGS="$save_CPPFLAGS"
9314    LDFLAGS="$save_LDFLAGS"
9315    LIBS="$save_LIBS"
9316    ;;
9317  esac
9318
9319  case $lt_cv_dlopen_self in
9320  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9321  *) enable_dlopen_self=unknown ;;
9322  esac
9323
9324  case $lt_cv_dlopen_self_static in
9325  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9326  *) enable_dlopen_self_static=unknown ;;
9327  esac
9328fi
9329
9330
9331# Report which library types will actually be built
9332echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9333echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9334echo "$as_me:$LINENO: result: $can_build_shared" >&5
9335echo "${ECHO_T}$can_build_shared" >&6
9336
9337echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9338echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9339test "$can_build_shared" = "no" && enable_shared=no
9340
9341# On AIX, shared libraries and static libraries use the same namespace, and
9342# are all built from PIC.
9343case $host_os in
9344aix3*)
9345  test "$enable_shared" = yes && enable_static=no
9346  if test -n "$RANLIB"; then
9347    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9348    postinstall_cmds='$RANLIB $lib'
9349  fi
9350  ;;
9351
9352aix4* | aix5*)
9353  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9354    test "$enable_shared" = yes && enable_static=no
9355  fi
9356    ;;
9357esac
9358echo "$as_me:$LINENO: result: $enable_shared" >&5
9359echo "${ECHO_T}$enable_shared" >&6
9360
9361echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9362echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9363# Make sure either enable_shared or enable_static is yes.
9364test "$enable_shared" = yes || enable_static=yes
9365echo "$as_me:$LINENO: result: $enable_static" >&5
9366echo "${ECHO_T}$enable_static" >&6
9367
9368# The else clause should only fire when bootstrapping the
9369# libtool distribution, otherwise you forgot to ship ltmain.sh
9370# with your package, and you will get complaints that there are
9371# no rules to generate ltmain.sh.
9372if test -f "$ltmain"; then
9373  # See if we are running on zsh, and set the options which allow our commands through
9374  # without removal of \ escapes.
9375  if test -n "${ZSH_VERSION+set}" ; then
9376    setopt NO_GLOB_SUBST
9377  fi
9378  # Now quote all the things that may contain metacharacters while being
9379  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9380  # variables and quote the copies for generation of the libtool script.
9381  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9382    SED SHELL STRIP \
9383    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9384    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9385    deplibs_check_method reload_flag reload_cmds need_locks \
9386    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9387    lt_cv_sys_global_symbol_to_c_name_address \
9388    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9389    old_postinstall_cmds old_postuninstall_cmds \
9390    compiler \
9391    CC \
9392    LD \
9393    lt_prog_compiler_wl \
9394    lt_prog_compiler_pic \
9395    lt_prog_compiler_static \
9396    lt_prog_compiler_no_builtin_flag \
9397    export_dynamic_flag_spec \
9398    thread_safe_flag_spec \
9399    whole_archive_flag_spec \
9400    enable_shared_with_static_runtimes \
9401    old_archive_cmds \
9402    old_archive_from_new_cmds \
9403    predep_objects \
9404    postdep_objects \
9405    predeps \
9406    postdeps \
9407    compiler_lib_search_path \
9408    archive_cmds \
9409    archive_expsym_cmds \
9410    postinstall_cmds \
9411    postuninstall_cmds \
9412    old_archive_from_expsyms_cmds \
9413    allow_undefined_flag \
9414    no_undefined_flag \
9415    export_symbols_cmds \
9416    hardcode_libdir_flag_spec \
9417    hardcode_libdir_flag_spec_ld \
9418    hardcode_libdir_separator \
9419    hardcode_automatic \
9420    module_cmds \
9421    module_expsym_cmds \
9422    lt_cv_prog_compiler_c_o \
9423    exclude_expsyms \
9424    include_expsyms; do
9425
9426    case $var in
9427    old_archive_cmds | \
9428    old_archive_from_new_cmds | \
9429    archive_cmds | \
9430    archive_expsym_cmds | \
9431    module_cmds | \
9432    module_expsym_cmds | \
9433    old_archive_from_expsyms_cmds | \
9434    export_symbols_cmds | \
9435    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9436    postinstall_cmds | postuninstall_cmds | \
9437    old_postinstall_cmds | old_postuninstall_cmds | \
9438    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9439      # Double-quote double-evaled strings.
9440      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9441      ;;
9442    *)
9443      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9444      ;;
9445    esac
9446  done
9447
9448  case $lt_echo in
9449  *'\$0 --fallback-echo"')
9450    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9451    ;;
9452  esac
9453
9454cfgfile="${ofile}T"
9455  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9456  $rm -f "$cfgfile"
9457  { echo "$as_me:$LINENO: creating $ofile" >&5
9458echo "$as_me: creating $ofile" >&6;}
9459
9460  cat <<__EOF__ >> "$cfgfile"
9461#! $SHELL
9462
9463# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9464# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9465# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9466#
9467# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9468# Free Software Foundation, Inc.
9469#
9470# This file is part of GNU Libtool:
9471# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9472#
9473# This program is free software; you can redistribute it and/or modify
9474# it under the terms of the GNU General Public License as published by
9475# the Free Software Foundation; either version 2 of the License, or
9476# (at your option) any later version.
9477#
9478# This program is distributed in the hope that it will be useful, but
9479# WITHOUT ANY WARRANTY; without even the implied warranty of
9480# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9481# General Public License for more details.
9482#
9483# You should have received a copy of the GNU General Public License
9484# along with this program; if not, write to the Free Software
9485# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9486#
9487# As a special exception to the GNU General Public License, if you
9488# distribute this file as part of a program that contains a
9489# configuration script generated by Autoconf, you may include it under
9490# the same distribution terms that you use for the rest of that program.
9491
9492# A sed program that does not truncate output.
9493SED=$lt_SED
9494
9495# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9496Xsed="$SED -e 1s/^X//"
9497
9498# The HP-UX ksh and POSIX shell print the target directory to stdout
9499# if CDPATH is set.
9500(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9501
9502# The names of the tagged configurations supported by this script.
9503available_tags=
9504
9505# ### BEGIN LIBTOOL CONFIG
9506
9507# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9508
9509# Shell to use when invoking shell scripts.
9510SHELL=$lt_SHELL
9511
9512# Whether or not to build shared libraries.
9513build_libtool_libs=$enable_shared
9514
9515# Whether or not to build static libraries.
9516build_old_libs=$enable_static
9517
9518# Whether or not to add -lc for building shared libraries.
9519build_libtool_need_lc=$archive_cmds_need_lc
9520
9521# Whether or not to disallow shared libs when runtime libs are static
9522allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9523
9524# Whether or not to optimize for fast installation.
9525fast_install=$enable_fast_install
9526
9527# The host system.
9528host_alias=$host_alias
9529host=$host
9530host_os=$host_os
9531
9532# The build system.
9533build_alias=$build_alias
9534build=$build
9535build_os=$build_os
9536
9537# An echo program that does not interpret backslashes.
9538echo=$lt_echo
9539
9540# The archiver.
9541AR=$lt_AR
9542AR_FLAGS=$lt_AR_FLAGS
9543
9544# A C compiler.
9545LTCC=$lt_LTCC
9546
9547# LTCC compiler flags.
9548LTCFLAGS=$lt_LTCFLAGS
9549
9550# A language-specific compiler.
9551CC=$lt_compiler
9552
9553# Is the compiler the GNU C compiler?
9554with_gcc=$GCC
9555
9556gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9557gcc_ver=\`gcc -dumpversion\`
9558
9559# An ERE matcher.
9560EGREP=$lt_EGREP
9561
9562# The linker used to build libraries.
9563LD=$lt_LD
9564
9565# Whether we need hard or soft links.
9566LN_S=$lt_LN_S
9567
9568# A BSD-compatible nm program.
9569NM=$lt_NM
9570
9571# A symbol stripping program
9572STRIP=$lt_STRIP
9573
9574# Used to examine libraries when file_magic_cmd begins "file"
9575MAGIC_CMD=$MAGIC_CMD
9576
9577# Used on cygwin: DLL creation program.
9578DLLTOOL="$DLLTOOL"
9579
9580# Used on cygwin: object dumper.
9581OBJDUMP="$OBJDUMP"
9582
9583# Used on cygwin: assembler.
9584AS="$AS"
9585
9586# The name of the directory that contains temporary libtool files.
9587objdir=$objdir
9588
9589# How to create reloadable object files.
9590reload_flag=$lt_reload_flag
9591reload_cmds=$lt_reload_cmds
9592
9593# How to pass a linker flag through the compiler.
9594wl=$lt_lt_prog_compiler_wl
9595
9596# Object file suffix (normally "o").
9597objext="$ac_objext"
9598
9599# Old archive suffix (normally "a").
9600libext="$libext"
9601
9602# Shared library suffix (normally ".so").
9603shrext_cmds='$shrext_cmds'
9604
9605# Executable file suffix (normally "").
9606exeext="$exeext"
9607
9608# Additional compiler flags for building library objects.
9609pic_flag=$lt_lt_prog_compiler_pic
9610pic_mode=$pic_mode
9611
9612# What is the maximum length of a command?
9613max_cmd_len=$lt_cv_sys_max_cmd_len
9614
9615# Does compiler simultaneously support -c and -o options?
9616compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9617
9618# Must we lock files when doing compilation?
9619need_locks=$lt_need_locks
9620
9621# Do we need the lib prefix for modules?
9622need_lib_prefix=$need_lib_prefix
9623
9624# Do we need a version for libraries?
9625need_version=$need_version
9626
9627# Whether dlopen is supported.
9628dlopen_support=$enable_dlopen
9629
9630# Whether dlopen of programs is supported.
9631dlopen_self=$enable_dlopen_self
9632
9633# Whether dlopen of statically linked programs is supported.
9634dlopen_self_static=$enable_dlopen_self_static
9635
9636# Compiler flag to prevent dynamic linking.
9637link_static_flag=$lt_lt_prog_compiler_static
9638
9639# Compiler flag to turn off builtin functions.
9640no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9641
9642# Compiler flag to allow reflexive dlopens.
9643export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9644
9645# Compiler flag to generate shared objects directly from archives.
9646whole_archive_flag_spec=$lt_whole_archive_flag_spec
9647
9648# Compiler flag to generate thread-safe objects.
9649thread_safe_flag_spec=$lt_thread_safe_flag_spec
9650
9651# Library versioning type.
9652version_type=$version_type
9653
9654# Format of library name prefix.
9655libname_spec=$lt_libname_spec
9656
9657# List of archive names.  First name is the real one, the rest are links.
9658# The last name is the one that the linker finds with -lNAME.
9659library_names_spec=$lt_library_names_spec
9660
9661# The coded name of the library, if different from the real name.
9662soname_spec=$lt_soname_spec
9663
9664# Commands used to build and install an old-style archive.
9665RANLIB=$lt_RANLIB
9666old_archive_cmds=$lt_old_archive_cmds
9667old_postinstall_cmds=$lt_old_postinstall_cmds
9668old_postuninstall_cmds=$lt_old_postuninstall_cmds
9669
9670# Create an old-style archive from a shared archive.
9671old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9672
9673# Create a temporary old-style archive to link instead of a shared archive.
9674old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9675
9676# Commands used to build and install a shared archive.
9677archive_cmds=$lt_archive_cmds
9678archive_expsym_cmds=$lt_archive_expsym_cmds
9679postinstall_cmds=$lt_postinstall_cmds
9680postuninstall_cmds=$lt_postuninstall_cmds
9681
9682# Commands used to build a loadable module (assumed same as above if empty)
9683module_cmds=$lt_module_cmds
9684module_expsym_cmds=$lt_module_expsym_cmds
9685
9686# Commands to strip libraries.
9687old_striplib=$lt_old_striplib
9688striplib=$lt_striplib
9689
9690# Dependencies to place before the objects being linked to create a
9691# shared library.
9692predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9693
9694# Dependencies to place after the objects being linked to create a
9695# shared library.
9696postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9697
9698# Dependencies to place before the objects being linked to create a
9699# shared library.
9700predeps=$lt_predeps
9701
9702# Dependencies to place after the objects being linked to create a
9703# shared library.
9704postdeps=$lt_postdeps
9705
9706# The library search path used internally by the compiler when linking
9707# a shared library.
9708compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9709
9710# Method to check whether dependent libraries are shared objects.
9711deplibs_check_method=$lt_deplibs_check_method
9712
9713# Command to use when deplibs_check_method == file_magic.
9714file_magic_cmd=$lt_file_magic_cmd
9715
9716# Flag that allows shared libraries with undefined symbols to be built.
9717allow_undefined_flag=$lt_allow_undefined_flag
9718
9719# Flag that forces no undefined symbols.
9720no_undefined_flag=$lt_no_undefined_flag
9721
9722# Commands used to finish a libtool library installation in a directory.
9723finish_cmds=$lt_finish_cmds
9724
9725# Same as above, but a single script fragment to be evaled but not shown.
9726finish_eval=$lt_finish_eval
9727
9728# Take the output of nm and produce a listing of raw symbols and C names.
9729global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9730
9731# Transform the output of nm in a proper C declaration
9732global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9733
9734# Transform the output of nm in a C name address pair
9735global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9736
9737# This is the shared library runtime path variable.
9738runpath_var=$runpath_var
9739
9740# This is the shared library path variable.
9741shlibpath_var=$shlibpath_var
9742
9743# Is shlibpath searched before the hard-coded library search path?
9744shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9745
9746# How to hardcode a shared library path into an executable.
9747hardcode_action=$hardcode_action
9748
9749# Whether we should hardcode library paths into libraries.
9750hardcode_into_libs=$hardcode_into_libs
9751
9752# Flag to hardcode \$libdir into a binary during linking.
9753# This must work even if \$libdir does not exist.
9754hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9755
9756# If ld is used when linking, flag to hardcode \$libdir into
9757# a binary during linking. This must work even if \$libdir does
9758# not exist.
9759hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9760
9761# Whether we need a single -rpath flag with a separated argument.
9762hardcode_libdir_separator=$lt_hardcode_libdir_separator
9763
9764# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9765# resulting binary.
9766hardcode_direct=$hardcode_direct
9767
9768# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9769# resulting binary.
9770hardcode_minus_L=$hardcode_minus_L
9771
9772# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9773# the resulting binary.
9774hardcode_shlibpath_var=$hardcode_shlibpath_var
9775
9776# Set to yes if building a shared library automatically hardcodes DIR into the library
9777# and all subsequent libraries and executables linked against it.
9778hardcode_automatic=$hardcode_automatic
9779
9780# Variables whose values should be saved in libtool wrapper scripts and
9781# restored at relink time.
9782variables_saved_for_relink="$variables_saved_for_relink"
9783
9784# Whether libtool must link a program against all its dependency libraries.
9785link_all_deplibs=$link_all_deplibs
9786
9787# Compile-time system search path for libraries
9788sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9789
9790# Run-time system search path for libraries
9791sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9792
9793# Fix the shell variable \$srcfile for the compiler.
9794fix_srcfile_path="$fix_srcfile_path"
9795
9796# Set to yes if exported symbols are required.
9797always_export_symbols=$always_export_symbols
9798
9799# The commands to list exported symbols.
9800export_symbols_cmds=$lt_export_symbols_cmds
9801
9802# The commands to extract the exported symbol list from a shared archive.
9803extract_expsyms_cmds=$lt_extract_expsyms_cmds
9804
9805# Symbols that should not be listed in the preloaded symbols.
9806exclude_expsyms=$lt_exclude_expsyms
9807
9808# Symbols that must always be exported.
9809include_expsyms=$lt_include_expsyms
9810
9811# ### END LIBTOOL CONFIG
9812
9813__EOF__
9814
9815
9816  case $host_os in
9817  aix3*)
9818    cat <<\EOF >> "$cfgfile"
9819
9820# AIX sometimes has problems with the GCC collect2 program.  For some
9821# reason, if we set the COLLECT_NAMES environment variable, the problems
9822# vanish in a puff of smoke.
9823if test "X${COLLECT_NAMES+set}" != Xset; then
9824  COLLECT_NAMES=
9825  export COLLECT_NAMES
9826fi
9827EOF
9828    ;;
9829  esac
9830
9831  # We use sed instead of cat because bash on DJGPP gets confused if
9832  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9833  # text mode, it properly converts lines to CR/LF.  This bash problem
9834  # is reportedly fixed, but why not run on old versions too?
9835  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9836
9837  mv -f "$cfgfile" "$ofile" || \
9838    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9839  chmod +x "$ofile"
9840
9841else
9842  # If there is no Makefile yet, we rely on a make rule to execute
9843  # `config.status --recheck' to rerun these tests and create the
9844  # libtool script then.
9845  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9846  if test -f "$ltmain_in"; then
9847    test -f Makefile && make "$ltmain"
9848  fi
9849fi
9850
9851
9852ac_ext=c
9853ac_cpp='$CPP $CPPFLAGS'
9854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9856ac_compiler_gnu=$ac_cv_c_compiler_gnu
9857
9858CC="$lt_save_CC"
9859
9860
9861# Check whether --with-tags or --without-tags was given.
9862if test "${with_tags+set}" = set; then
9863  withval="$with_tags"
9864  tagnames="$withval"
9865fi;
9866
9867if test -f "$ltmain" && test -n "$tagnames"; then
9868  if test ! -f "${ofile}"; then
9869    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9870echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9871  fi
9872
9873  if test -z "$LTCC"; then
9874    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9875    if test -z "$LTCC"; then
9876      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9877echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9878    else
9879      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9880echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9881    fi
9882  fi
9883  if test -z "$LTCFLAGS"; then
9884    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9885  fi
9886
9887  # Extract list of available tagged configurations in $ofile.
9888  # Note that this assumes the entire list is on one line.
9889  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9890
9891  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9892  for tagname in $tagnames; do
9893    IFS="$lt_save_ifs"
9894    # Check whether tagname contains only valid characters
9895    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9896    "") ;;
9897    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9898echo "$as_me: error: invalid tag name: $tagname" >&2;}
9899   { (exit 1); exit 1; }; }
9900	;;
9901    esac
9902
9903    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9904    then
9905      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9906echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9907   { (exit 1); exit 1; }; }
9908    fi
9909
9910    # Update the list of available tags.
9911    if test -n "$tagname"; then
9912      echo appending configuration tag \"$tagname\" to $ofile
9913
9914      case $tagname in
9915      CXX)
9916	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9917	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9918	    (test "X$CXX" != "Xg++"))) ; then
9919	  ac_ext=cc
9920ac_cpp='$CXXCPP $CPPFLAGS'
9921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9924
9925
9926
9927
9928archive_cmds_need_lc_CXX=no
9929allow_undefined_flag_CXX=
9930always_export_symbols_CXX=no
9931archive_expsym_cmds_CXX=
9932export_dynamic_flag_spec_CXX=
9933hardcode_direct_CXX=no
9934hardcode_libdir_flag_spec_CXX=
9935hardcode_libdir_flag_spec_ld_CXX=
9936hardcode_libdir_separator_CXX=
9937hardcode_minus_L_CXX=no
9938hardcode_shlibpath_var_CXX=unsupported
9939hardcode_automatic_CXX=no
9940module_cmds_CXX=
9941module_expsym_cmds_CXX=
9942link_all_deplibs_CXX=unknown
9943old_archive_cmds_CXX=$old_archive_cmds
9944no_undefined_flag_CXX=
9945whole_archive_flag_spec_CXX=
9946enable_shared_with_static_runtimes_CXX=no
9947
9948# Dependencies to place before and after the object being linked:
9949predep_objects_CXX=
9950postdep_objects_CXX=
9951predeps_CXX=
9952postdeps_CXX=
9953compiler_lib_search_path_CXX=
9954
9955# Source file extension for C++ test sources.
9956ac_ext=cpp
9957
9958# Object file extension for compiled C++ test sources.
9959objext=o
9960objext_CXX=$objext
9961
9962# Code to be used in simple compile tests
9963lt_simple_compile_test_code="int some_variable = 0;\n"
9964
9965# Code to be used in simple link tests
9966lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9967
9968# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9969
9970# If no C compiler was specified, use CC.
9971LTCC=${LTCC-"$CC"}
9972
9973# If no C compiler flags were specified, use CFLAGS.
9974LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9975
9976# Allow CC to be a program name with arguments.
9977compiler=$CC
9978
9979
9980# save warnings/boilerplate of simple test code
9981ac_outfile=conftest.$ac_objext
9982printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9983eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9984_lt_compiler_boilerplate=`cat conftest.err`
9985$rm conftest*
9986
9987ac_outfile=conftest.$ac_objext
9988printf "$lt_simple_link_test_code" >conftest.$ac_ext
9989eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9990_lt_linker_boilerplate=`cat conftest.err`
9991$rm conftest*
9992
9993
9994# Allow CC to be a program name with arguments.
9995lt_save_CC=$CC
9996lt_save_LD=$LD
9997lt_save_GCC=$GCC
9998GCC=$GXX
9999lt_save_with_gnu_ld=$with_gnu_ld
10000lt_save_path_LD=$lt_cv_path_LD
10001if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10002  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10003else
10004  $as_unset lt_cv_prog_gnu_ld
10005fi
10006if test -n "${lt_cv_path_LDCXX+set}"; then
10007  lt_cv_path_LD=$lt_cv_path_LDCXX
10008else
10009  $as_unset lt_cv_path_LD
10010fi
10011test -z "${LDCXX+set}" || LD=$LDCXX
10012CC=${CXX-"c++"}
10013compiler=$CC
10014compiler_CXX=$CC
10015for cc_temp in $compiler""; do
10016  case $cc_temp in
10017    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10018    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10019    \-*) ;;
10020    *) break;;
10021  esac
10022done
10023cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10024
10025
10026# We don't want -fno-exception wen compiling C++ code, so set the
10027# no_builtin_flag separately
10028if test "$GXX" = yes; then
10029  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10030else
10031  lt_prog_compiler_no_builtin_flag_CXX=
10032fi
10033
10034if test "$GXX" = yes; then
10035  # Set up default GNU C++ configuration
10036
10037
10038# Check whether --with-gnu-ld or --without-gnu-ld was given.
10039if test "${with_gnu_ld+set}" = set; then
10040  withval="$with_gnu_ld"
10041  test "$withval" = no || with_gnu_ld=yes
10042else
10043  with_gnu_ld=no
10044fi;
10045ac_prog=ld
10046if test "$GCC" = yes; then
10047  # Check if gcc -print-prog-name=ld gives a path.
10048  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10049echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10050  case $host in
10051  *-*-mingw*)
10052    # gcc leaves a trailing carriage return which upsets mingw
10053    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10054  *)
10055    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10056  esac
10057  case $ac_prog in
10058    # Accept absolute paths.
10059    [\\/]* | ?:[\\/]*)
10060      re_direlt='/[^/][^/]*/\.\./'
10061      # Canonicalize the pathname of ld
10062      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10063      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10064	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10065      done
10066      test -z "$LD" && LD="$ac_prog"
10067      ;;
10068  "")
10069    # If it fails, then pretend we aren't using GCC.
10070    ac_prog=ld
10071    ;;
10072  *)
10073    # If it is relative, then search for the first ld in PATH.
10074    with_gnu_ld=unknown
10075    ;;
10076  esac
10077elif test "$with_gnu_ld" = yes; then
10078  echo "$as_me:$LINENO: checking for GNU ld" >&5
10079echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10080else
10081  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10082echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10083fi
10084if test "${lt_cv_path_LD+set}" = set; then
10085  echo $ECHO_N "(cached) $ECHO_C" >&6
10086else
10087  if test -z "$LD"; then
10088  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10089  for ac_dir in $PATH; do
10090    IFS="$lt_save_ifs"
10091    test -z "$ac_dir" && ac_dir=.
10092    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10093      lt_cv_path_LD="$ac_dir/$ac_prog"
10094      # Check to see if the program is GNU ld.  I'd rather use --version,
10095      # but apparently some variants of GNU ld only accept -v.
10096      # Break only if it was the GNU/non-GNU ld that we prefer.
10097      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10098      *GNU* | *'with BFD'*)
10099	test "$with_gnu_ld" != no && break
10100	;;
10101      *)
10102	test "$with_gnu_ld" != yes && break
10103	;;
10104      esac
10105    fi
10106  done
10107  IFS="$lt_save_ifs"
10108else
10109  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10110fi
10111fi
10112
10113LD="$lt_cv_path_LD"
10114if test -n "$LD"; then
10115  echo "$as_me:$LINENO: result: $LD" >&5
10116echo "${ECHO_T}$LD" >&6
10117else
10118  echo "$as_me:$LINENO: result: no" >&5
10119echo "${ECHO_T}no" >&6
10120fi
10121test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10122echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10123   { (exit 1); exit 1; }; }
10124echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10125echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10126if test "${lt_cv_prog_gnu_ld+set}" = set; then
10127  echo $ECHO_N "(cached) $ECHO_C" >&6
10128else
10129  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10130case `$LD -v 2>&1 </dev/null` in
10131*GNU* | *'with BFD'*)
10132  lt_cv_prog_gnu_ld=yes
10133  ;;
10134*)
10135  lt_cv_prog_gnu_ld=no
10136  ;;
10137esac
10138fi
10139echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10140echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10141with_gnu_ld=$lt_cv_prog_gnu_ld
10142
10143
10144
10145  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10146  # archiving commands below assume that GNU ld is being used.
10147  if test "$with_gnu_ld" = yes; then
10148    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149    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'
10150
10151    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10152    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10153
10154    # If archive_cmds runs LD, not CC, wlarc should be empty
10155    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10156    #     investigate it a little bit more. (MM)
10157    wlarc='${wl}'
10158
10159    # ancient GNU ld didn't support --whole-archive et. al.
10160    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10161	grep 'no-whole-archive' > /dev/null; then
10162      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10163    else
10164      whole_archive_flag_spec_CXX=
10165    fi
10166  else
10167    with_gnu_ld=no
10168    wlarc=
10169
10170    # A generic and very simple default shared library creation
10171    # command for GNU C++ for the case where it uses the native
10172    # linker, instead of GNU ld.  If possible, this setting should
10173    # overridden to take advantage of the native linker features on
10174    # the platform it is being used on.
10175    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10176  fi
10177
10178  # Commands to make compiler produce verbose output that lists
10179  # what "hidden" libraries, object files and flags are used when
10180  # linking a shared library.
10181  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10182
10183else
10184  GXX=no
10185  with_gnu_ld=no
10186  wlarc=
10187fi
10188
10189# PORTME: fill in a description of your system's C++ link characteristics
10190echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10191echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10192ld_shlibs_CXX=yes
10193case $host_os in
10194  aix3*)
10195    # FIXME: insert proper C++ library support
10196    ld_shlibs_CXX=no
10197    ;;
10198  aix4* | aix5*)
10199    if test "$host_cpu" = ia64; then
10200      # On IA64, the linker does run time linking by default, so we don't
10201      # have to do anything special.
10202      aix_use_runtimelinking=no
10203      exp_sym_flag='-Bexport'
10204      no_entry_flag=""
10205    else
10206      aix_use_runtimelinking=no
10207
10208      # Test if we are trying to use run time linking or normal
10209      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10210      # need to do runtime linking.
10211      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10212	for ld_flag in $LDFLAGS; do
10213	  case $ld_flag in
10214	  *-brtl*)
10215	    aix_use_runtimelinking=yes
10216	    break
10217	    ;;
10218	  esac
10219	done
10220	;;
10221      esac
10222
10223      exp_sym_flag='-bexport'
10224      no_entry_flag='-bnoentry'
10225    fi
10226
10227    # When large executables or shared objects are built, AIX ld can
10228    # have problems creating the table of contents.  If linking a library
10229    # or program results in "error TOC overflow" add -mminimal-toc to
10230    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10231    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10232
10233    archive_cmds_CXX=''
10234    hardcode_direct_CXX=yes
10235    hardcode_libdir_separator_CXX=':'
10236    link_all_deplibs_CXX=yes
10237
10238    if test "$GXX" = yes; then
10239      case $host_os in aix4.[012]|aix4.[012].*)
10240      # We only want to do this on AIX 4.2 and lower, the check
10241      # below for broken collect2 doesn't work under 4.3+
10242	collect2name=`${CC} -print-prog-name=collect2`
10243	if test -f "$collect2name" && \
10244	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10245	then
10246	  # We have reworked collect2
10247	  hardcode_direct_CXX=yes
10248	else
10249	  # We have old collect2
10250	  hardcode_direct_CXX=unsupported
10251	  # It fails to find uninstalled libraries when the uninstalled
10252	  # path is not listed in the libpath.  Setting hardcode_minus_L
10253	  # to unsupported forces relinking
10254	  hardcode_minus_L_CXX=yes
10255	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10256	  hardcode_libdir_separator_CXX=
10257	fi
10258	;;
10259      esac
10260      shared_flag='-shared'
10261      if test "$aix_use_runtimelinking" = yes; then
10262	shared_flag="$shared_flag "'${wl}-G'
10263      fi
10264    else
10265      # not using gcc
10266      if test "$host_cpu" = ia64; then
10267	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10268	# chokes on -Wl,-G. The following line is correct:
10269	shared_flag='-G'
10270      else
10271	if test "$aix_use_runtimelinking" = yes; then
10272	  shared_flag='${wl}-G'
10273	else
10274	  shared_flag='${wl}-bM:SRE'
10275	fi
10276      fi
10277    fi
10278
10279    # It seems that -bexpall does not export symbols beginning with
10280    # underscore (_), so it is better to generate a list of symbols to export.
10281    always_export_symbols_CXX=yes
10282    if test "$aix_use_runtimelinking" = yes; then
10283      # Warning - without using the other runtime loading flags (-brtl),
10284      # -berok will link without error, but may produce a broken library.
10285      allow_undefined_flag_CXX='-berok'
10286      # Determine the default libpath from the value encoded in an empty executable.
10287      cat >conftest.$ac_ext <<_ACEOF
10288/* confdefs.h.  */
10289_ACEOF
10290cat confdefs.h >>conftest.$ac_ext
10291cat >>conftest.$ac_ext <<_ACEOF
10292/* end confdefs.h.  */
10293
10294int
10295main ()
10296{
10297
10298  ;
10299  return 0;
10300}
10301_ACEOF
10302rm -f conftest.$ac_objext conftest$ac_exeext
10303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304  (eval $ac_link) 2>conftest.er1
10305  ac_status=$?
10306  grep -v '^ *+' conftest.er1 >conftest.err
10307  rm -f conftest.er1
10308  cat conftest.err >&5
10309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310  (exit $ac_status); } &&
10311	 { ac_try='test -z "$ac_cxx_werror_flag"
10312			 || test ! -s conftest.err'
10313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314  (eval $ac_try) 2>&5
10315  ac_status=$?
10316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317  (exit $ac_status); }; } &&
10318	 { ac_try='test -s conftest$ac_exeext'
10319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320  (eval $ac_try) 2>&5
10321  ac_status=$?
10322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323  (exit $ac_status); }; }; then
10324
10325aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10326}'`
10327# Check for a 64-bit object if we didn't find anything.
10328if 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; }
10329}'`; fi
10330else
10331  echo "$as_me: failed program was:" >&5
10332sed 's/^/| /' conftest.$ac_ext >&5
10333
10334fi
10335rm -f conftest.err conftest.$ac_objext \
10336      conftest$ac_exeext conftest.$ac_ext
10337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10338
10339      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10340
10341      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10342     else
10343      if test "$host_cpu" = ia64; then
10344	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10345	allow_undefined_flag_CXX="-z nodefs"
10346	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10347      else
10348	# Determine the default libpath from the value encoded in an empty executable.
10349	cat >conftest.$ac_ext <<_ACEOF
10350/* confdefs.h.  */
10351_ACEOF
10352cat confdefs.h >>conftest.$ac_ext
10353cat >>conftest.$ac_ext <<_ACEOF
10354/* end confdefs.h.  */
10355
10356int
10357main ()
10358{
10359
10360  ;
10361  return 0;
10362}
10363_ACEOF
10364rm -f conftest.$ac_objext conftest$ac_exeext
10365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10366  (eval $ac_link) 2>conftest.er1
10367  ac_status=$?
10368  grep -v '^ *+' conftest.er1 >conftest.err
10369  rm -f conftest.er1
10370  cat conftest.err >&5
10371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372  (exit $ac_status); } &&
10373	 { ac_try='test -z "$ac_cxx_werror_flag"
10374			 || test ! -s conftest.err'
10375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376  (eval $ac_try) 2>&5
10377  ac_status=$?
10378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379  (exit $ac_status); }; } &&
10380	 { ac_try='test -s conftest$ac_exeext'
10381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382  (eval $ac_try) 2>&5
10383  ac_status=$?
10384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385  (exit $ac_status); }; }; then
10386
10387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10388}'`
10389# Check for a 64-bit object if we didn't find anything.
10390if 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; }
10391}'`; fi
10392else
10393  echo "$as_me: failed program was:" >&5
10394sed 's/^/| /' conftest.$ac_ext >&5
10395
10396fi
10397rm -f conftest.err conftest.$ac_objext \
10398      conftest$ac_exeext conftest.$ac_ext
10399if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10400
10401	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10402	# Warning - without using the other run time loading flags,
10403	# -berok will link without error, but may produce a broken library.
10404	no_undefined_flag_CXX=' ${wl}-bernotok'
10405	allow_undefined_flag_CXX=' ${wl}-berok'
10406	# Exported symbols can be pulled into shared objects from archives
10407	whole_archive_flag_spec_CXX='$convenience'
10408	archive_cmds_need_lc_CXX=yes
10409	# This is similar to how AIX traditionally builds its shared libraries.
10410	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10411      fi
10412    fi
10413    ;;
10414
10415  beos*)
10416    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10417      allow_undefined_flag_CXX=unsupported
10418      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10419      # support --undefined.  This deserves some investigation.  FIXME
10420      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421    else
10422      ld_shlibs_CXX=no
10423    fi
10424    ;;
10425
10426  chorus*)
10427    case $cc_basename in
10428      *)
10429	# FIXME: insert proper C++ library support
10430	ld_shlibs_CXX=no
10431	;;
10432    esac
10433    ;;
10434
10435  cygwin* | mingw* | pw32*)
10436    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10437    # as there is no search path for DLLs.
10438    hardcode_libdir_flag_spec_CXX='-L$libdir'
10439    allow_undefined_flag_CXX=unsupported
10440    always_export_symbols_CXX=no
10441    enable_shared_with_static_runtimes_CXX=yes
10442
10443    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10444      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10445      # If the export-symbols file already is a .def file (1st line
10446      # is EXPORTS), use it as is; otherwise, prepend...
10447      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10448	cp $export_symbols $output_objdir/$soname.def;
10449      else
10450	echo EXPORTS > $output_objdir/$soname.def;
10451	cat $export_symbols >> $output_objdir/$soname.def;
10452      fi~
10453      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10454    else
10455      ld_shlibs_CXX=no
10456    fi
10457  ;;
10458      darwin* | rhapsody*)
10459        case $host_os in
10460        rhapsody* | darwin1.[012])
10461         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10462         ;;
10463       *) # Darwin 1.3 on
10464         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10465           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10466         else
10467           case ${MACOSX_DEPLOYMENT_TARGET} in
10468             10.[012])
10469               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10470               ;;
10471             10.*)
10472               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10473               ;;
10474           esac
10475         fi
10476         ;;
10477        esac
10478      archive_cmds_need_lc_CXX=no
10479      hardcode_direct_CXX=no
10480      hardcode_automatic_CXX=yes
10481      hardcode_shlibpath_var_CXX=unsupported
10482      whole_archive_flag_spec_CXX=''
10483      link_all_deplibs_CXX=yes
10484
10485    if test "$GXX" = yes ; then
10486      lt_int_apple_cc_single_mod=no
10487      output_verbose_link_cmd='echo'
10488      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10489       lt_int_apple_cc_single_mod=yes
10490      fi
10491      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10492       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10493      else
10494          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10495        fi
10496        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10497        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10498          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10499            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}'
10500          else
10501            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10502          fi
10503            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}'
10504      else
10505      case $cc_basename in
10506        xlc*)
10507         output_verbose_link_cmd='echo'
10508          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10509          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10510          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10511          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10512          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}'
10513          ;;
10514       *)
10515         ld_shlibs_CXX=no
10516          ;;
10517      esac
10518      fi
10519        ;;
10520
10521  dgux*)
10522    case $cc_basename in
10523      ec++*)
10524	# FIXME: insert proper C++ library support
10525	ld_shlibs_CXX=no
10526	;;
10527      ghcx*)
10528	# Green Hills C++ Compiler
10529	# FIXME: insert proper C++ library support
10530	ld_shlibs_CXX=no
10531	;;
10532      *)
10533	# FIXME: insert proper C++ library support
10534	ld_shlibs_CXX=no
10535	;;
10536    esac
10537    ;;
10538  freebsd[12]*)
10539    # C++ shared libraries reported to be fairly broken before switch to ELF
10540    ld_shlibs_CXX=no
10541    ;;
10542  freebsd-elf*)
10543    archive_cmds_need_lc_CXX=no
10544    ;;
10545  freebsd* | kfreebsd*-gnu | dragonfly*)
10546    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10547    # conventions
10548    ld_shlibs_CXX=yes
10549    ;;
10550  gnu*)
10551    ;;
10552  hpux9*)
10553    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10554    hardcode_libdir_separator_CXX=:
10555    export_dynamic_flag_spec_CXX='${wl}-E'
10556    hardcode_direct_CXX=yes
10557    hardcode_minus_L_CXX=yes # Not in the search PATH,
10558				# but as the default
10559				# location of the library.
10560
10561    case $cc_basename in
10562    CC*)
10563      # FIXME: insert proper C++ library support
10564      ld_shlibs_CXX=no
10565      ;;
10566    aCC*)
10567      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'
10568      # Commands to make compiler produce verbose output that lists
10569      # what "hidden" libraries, object files and flags are used when
10570      # linking a shared library.
10571      #
10572      # There doesn't appear to be a way to prevent this compiler from
10573      # explicitly linking system object files so we need to strip them
10574      # from the output so that they don't get included in the library
10575      # dependencies.
10576      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'
10577      ;;
10578    *)
10579      if test "$GXX" = yes; then
10580        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'
10581      else
10582        # FIXME: insert proper C++ library support
10583        ld_shlibs_CXX=no
10584      fi
10585      ;;
10586    esac
10587    ;;
10588  hpux10*|hpux11*)
10589    if test $with_gnu_ld = no; then
10590      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10591      hardcode_libdir_separator_CXX=:
10592
10593      case $host_cpu in
10594      hppa*64*|ia64*)
10595	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10596        ;;
10597      *)
10598	export_dynamic_flag_spec_CXX='${wl}-E'
10599        ;;
10600      esac
10601    fi
10602    case $host_cpu in
10603    hppa*64*|ia64*)
10604      hardcode_direct_CXX=no
10605      hardcode_shlibpath_var_CXX=no
10606      ;;
10607    *)
10608      hardcode_direct_CXX=yes
10609      hardcode_minus_L_CXX=yes # Not in the search PATH,
10610					      # but as the default
10611					      # location of the library.
10612      ;;
10613    esac
10614
10615    case $cc_basename in
10616      CC*)
10617	# FIXME: insert proper C++ library support
10618	ld_shlibs_CXX=no
10619	;;
10620      aCC*)
10621	case $host_cpu in
10622	hppa*64*)
10623	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10624	  ;;
10625	ia64*)
10626	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10627	  ;;
10628	*)
10629	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10630	  ;;
10631	esac
10632	# Commands to make compiler produce verbose output that lists
10633	# what "hidden" libraries, object files and flags are used when
10634	# linking a shared library.
10635	#
10636	# There doesn't appear to be a way to prevent this compiler from
10637	# explicitly linking system object files so we need to strip them
10638	# from the output so that they don't get included in the library
10639	# dependencies.
10640	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'
10641	;;
10642      *)
10643	if test "$GXX" = yes; then
10644	  if test $with_gnu_ld = no; then
10645	    case $host_cpu in
10646	    hppa*64*)
10647	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10648	      ;;
10649	    ia64*)
10650	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10651	      ;;
10652	    *)
10653	      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'
10654	      ;;
10655	    esac
10656	  fi
10657	else
10658	  # FIXME: insert proper C++ library support
10659	  ld_shlibs_CXX=no
10660	fi
10661	;;
10662    esac
10663    ;;
10664  interix3*)
10665    hardcode_direct_CXX=no
10666    hardcode_shlibpath_var_CXX=no
10667    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10668    export_dynamic_flag_spec_CXX='${wl}-E'
10669    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10670    # Instead, shared libraries are loaded at an image base (0x10000000 by
10671    # default) and relocated if they conflict, which is a slow very memory
10672    # consuming and fragmenting process.  To avoid this, we pick a random,
10673    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10674    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10675    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10676    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10677    ;;
10678  irix5* | irix6*)
10679    case $cc_basename in
10680      CC*)
10681	# SGI C++
10682	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10683
10684	# Archives containing C++ object files must be created using
10685	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10686	# necessary to make sure instantiated templates are included
10687	# in the archive.
10688	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10689	;;
10690      *)
10691	if test "$GXX" = yes; then
10692	  if test "$with_gnu_ld" = no; then
10693	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10694	  else
10695	    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'
10696	  fi
10697	fi
10698	link_all_deplibs_CXX=yes
10699	;;
10700    esac
10701    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10702    hardcode_libdir_separator_CXX=:
10703    ;;
10704  linux*)
10705    case $cc_basename in
10706      KCC*)
10707	# Kuck and Associates, Inc. (KAI) C++ Compiler
10708
10709	# KCC will only create a shared library if the output file
10710	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10711	# to its proper name (with version) after linking.
10712	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'
10713	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'
10714	# Commands to make compiler produce verbose output that lists
10715	# what "hidden" libraries, object files and flags are used when
10716	# linking a shared library.
10717	#
10718	# There doesn't appear to be a way to prevent this compiler from
10719	# explicitly linking system object files so we need to strip them
10720	# from the output so that they don't get included in the library
10721	# dependencies.
10722	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'
10723
10724	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10725	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10726
10727	# Archives containing C++ object files must be created using
10728	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10729	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10730	;;
10731      icpc*)
10732	# Intel C++
10733	with_gnu_ld=yes
10734	# version 8.0 and above of icpc choke on multiply defined symbols
10735	# if we add $predep_objects and $postdep_objects, however 7.1 and
10736	# earlier do not add the objects themselves.
10737	case `$CC -V 2>&1` in
10738	*"Version 7."*)
10739  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10740  	  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'
10741	  ;;
10742	*)  # Version 8.0 or newer
10743	  tmp_idyn=
10744	  case $host_cpu in
10745	    ia64*) tmp_idyn=' -i_dynamic';;
10746	  esac
10747  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10748	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10749	  ;;
10750	esac
10751	archive_cmds_need_lc_CXX=no
10752	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10753	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10754	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10755	;;
10756      pgCC*)
10757        # Portland Group C++ compiler
10758	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10759  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10760
10761	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10762	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10763	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10764        ;;
10765      cxx*)
10766	# Compaq C++
10767	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10768	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'
10769
10770	runpath_var=LD_RUN_PATH
10771	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10772	hardcode_libdir_separator_CXX=:
10773
10774	# Commands to make compiler produce verbose output that lists
10775	# what "hidden" libraries, object files and flags are used when
10776	# linking a shared library.
10777	#
10778	# There doesn't appear to be a way to prevent this compiler from
10779	# explicitly linking system object files so we need to strip them
10780	# from the output so that they don't get included in the library
10781	# dependencies.
10782	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'
10783	;;
10784    esac
10785    ;;
10786  lynxos*)
10787    # FIXME: insert proper C++ library support
10788    ld_shlibs_CXX=no
10789    ;;
10790  m88k*)
10791    # FIXME: insert proper C++ library support
10792    ld_shlibs_CXX=no
10793    ;;
10794  mvs*)
10795    case $cc_basename in
10796      cxx*)
10797	# FIXME: insert proper C++ library support
10798	ld_shlibs_CXX=no
10799	;;
10800      *)
10801	# FIXME: insert proper C++ library support
10802	ld_shlibs_CXX=no
10803	;;
10804    esac
10805    ;;
10806  netbsd*)
10807    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10808      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10809      wlarc=
10810      hardcode_libdir_flag_spec_CXX='-R$libdir'
10811      hardcode_direct_CXX=yes
10812      hardcode_shlibpath_var_CXX=no
10813    fi
10814    # Workaround some broken pre-1.5 toolchains
10815    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10816    ;;
10817  openbsd2*)
10818    # C++ shared libraries are fairly broken
10819    ld_shlibs_CXX=no
10820    ;;
10821  openbsd*)
10822    hardcode_direct_CXX=yes
10823    hardcode_shlibpath_var_CXX=no
10824    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10825    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10826    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10827      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10828      export_dynamic_flag_spec_CXX='${wl}-E'
10829      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10830    fi
10831    output_verbose_link_cmd='echo'
10832    ;;
10833  osf3*)
10834    case $cc_basename in
10835      KCC*)
10836	# Kuck and Associates, Inc. (KAI) C++ Compiler
10837
10838	# KCC will only create a shared library if the output file
10839	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10840	# to its proper name (with version) after linking.
10841	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'
10842
10843	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10844	hardcode_libdir_separator_CXX=:
10845
10846	# Archives containing C++ object files must be created using
10847	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10848	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10849
10850	;;
10851      RCC*)
10852	# Rational C++ 2.4.1
10853	# FIXME: insert proper C++ library support
10854	ld_shlibs_CXX=no
10855	;;
10856      cxx*)
10857	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10858	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10859
10860	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10861	hardcode_libdir_separator_CXX=:
10862
10863	# Commands to make compiler produce verbose output that lists
10864	# what "hidden" libraries, object files and flags are used when
10865	# linking a shared library.
10866	#
10867	# There doesn't appear to be a way to prevent this compiler from
10868	# explicitly linking system object files so we need to strip them
10869	# from the output so that they don't get included in the library
10870	# dependencies.
10871	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'
10872	;;
10873      *)
10874	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10875	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10876	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10877
10878	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10879	  hardcode_libdir_separator_CXX=:
10880
10881	  # Commands to make compiler produce verbose output that lists
10882	  # what "hidden" libraries, object files and flags are used when
10883	  # linking a shared library.
10884	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10885
10886	else
10887	  # FIXME: insert proper C++ library support
10888	  ld_shlibs_CXX=no
10889	fi
10890	;;
10891    esac
10892    ;;
10893  osf4* | osf5*)
10894    case $cc_basename in
10895      KCC*)
10896	# Kuck and Associates, Inc. (KAI) C++ Compiler
10897
10898	# KCC will only create a shared library if the output file
10899	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10900	# to its proper name (with version) after linking.
10901	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'
10902
10903	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10904	hardcode_libdir_separator_CXX=:
10905
10906	# Archives containing C++ object files must be created using
10907	# the KAI C++ compiler.
10908	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10909	;;
10910      RCC*)
10911	# Rational C++ 2.4.1
10912	# FIXME: insert proper C++ library support
10913	ld_shlibs_CXX=no
10914	;;
10915      cxx*)
10916	allow_undefined_flag_CXX=' -expect_unresolved \*'
10917	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10918	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10919	  echo "-hidden">> $lib.exp~
10920	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10921	  $rm $lib.exp'
10922
10923	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10924	hardcode_libdir_separator_CXX=:
10925
10926	# Commands to make compiler produce verbose output that lists
10927	# what "hidden" libraries, object files and flags are used when
10928	# linking a shared library.
10929	#
10930	# There doesn't appear to be a way to prevent this compiler from
10931	# explicitly linking system object files so we need to strip them
10932	# from the output so that they don't get included in the library
10933	# dependencies.
10934	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'
10935	;;
10936      *)
10937	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10938	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10939	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10940
10941	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10942	  hardcode_libdir_separator_CXX=:
10943
10944	  # Commands to make compiler produce verbose output that lists
10945	  # what "hidden" libraries, object files and flags are used when
10946	  # linking a shared library.
10947	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10948
10949	else
10950	  # FIXME: insert proper C++ library support
10951	  ld_shlibs_CXX=no
10952	fi
10953	;;
10954    esac
10955    ;;
10956  psos*)
10957    # FIXME: insert proper C++ library support
10958    ld_shlibs_CXX=no
10959    ;;
10960  sunos4*)
10961    case $cc_basename in
10962      CC*)
10963	# Sun C++ 4.x
10964	# FIXME: insert proper C++ library support
10965	ld_shlibs_CXX=no
10966	;;
10967      lcc*)
10968	# Lucid
10969	# FIXME: insert proper C++ library support
10970	ld_shlibs_CXX=no
10971	;;
10972      *)
10973	# FIXME: insert proper C++ library support
10974	ld_shlibs_CXX=no
10975	;;
10976    esac
10977    ;;
10978  solaris*)
10979    case $cc_basename in
10980      CC*)
10981	# Sun C++ 4.2, 5.x and Centerline C++
10982        archive_cmds_need_lc_CXX=yes
10983	no_undefined_flag_CXX=' -zdefs'
10984	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10985	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10986	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10987
10988	hardcode_libdir_flag_spec_CXX='-R$libdir'
10989	hardcode_shlibpath_var_CXX=no
10990	case $host_os in
10991	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10992	  *)
10993	    # The C++ compiler is used as linker so we must use $wl
10994	    # flag to pass the commands to the underlying system
10995	    # linker. We must also pass each convience library through
10996	    # to the system linker between allextract/defaultextract.
10997	    # The C++ compiler will combine linker options so we
10998	    # cannot just pass the convience library names through
10999	    # without $wl.
11000	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11001	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11002	    ;;
11003	esac
11004	link_all_deplibs_CXX=yes
11005
11006	output_verbose_link_cmd='echo'
11007
11008	# Archives containing C++ object files must be created using
11009	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11010	# necessary to make sure instantiated templates are included
11011	# in the archive.
11012	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11013	;;
11014      gcx*)
11015	# Green Hills C++ Compiler
11016	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11017
11018	# The C++ compiler must be used to create the archive.
11019	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11020	;;
11021      *)
11022	# GNU C++ compiler with Solaris linker
11023	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11024	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11025	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11026	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11027	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11028		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11029
11030	    # Commands to make compiler produce verbose output that lists
11031	    # what "hidden" libraries, object files and flags are used when
11032	    # linking a shared library.
11033	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11034	  else
11035	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11036	    # platform.
11037	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11038	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11039		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11040
11041	    # Commands to make compiler produce verbose output that lists
11042	    # what "hidden" libraries, object files and flags are used when
11043	    # linking a shared library.
11044	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11045	  fi
11046
11047	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11048	fi
11049	;;
11050    esac
11051    ;;
11052  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11053    no_undefined_flag_CXX='${wl}-z,text'
11054    archive_cmds_need_lc_CXX=no
11055    hardcode_shlibpath_var_CXX=no
11056    runpath_var='LD_RUN_PATH'
11057
11058    case $cc_basename in
11059      CC*)
11060	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11061	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11062	;;
11063      *)
11064	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11065	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11066	;;
11067    esac
11068    ;;
11069  sysv5* | sco3.2v5* | sco5v6*)
11070    # Note: We can NOT use -z defs as we might desire, because we do not
11071    # link with -lc, and that would cause any symbols used from libc to
11072    # always be unresolved, which means just about no library would
11073    # ever link correctly.  If we're not using GNU ld we use -z text
11074    # though, which does catch some bad symbols but isn't as heavy-handed
11075    # as -z defs.
11076    # For security reasons, it is highly recommended that you always
11077    # use absolute paths for naming shared libraries, and exclude the
11078    # DT_RUNPATH tag from executables and libraries.  But doing so
11079    # requires that you compile everything twice, which is a pain.
11080    # So that behaviour is only enabled if SCOABSPATH is set to a
11081    # non-empty value in the environment.  Most likely only useful for
11082    # creating official distributions of packages.
11083    # This is a hack until libtool officially supports absolute path
11084    # names for shared libraries.
11085    no_undefined_flag_CXX='${wl}-z,text'
11086    allow_undefined_flag_CXX='${wl}-z,nodefs'
11087    archive_cmds_need_lc_CXX=no
11088    hardcode_shlibpath_var_CXX=no
11089    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11090    hardcode_libdir_separator_CXX=':'
11091    link_all_deplibs_CXX=yes
11092    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11093    runpath_var='LD_RUN_PATH'
11094
11095    case $cc_basename in
11096      CC*)
11097	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11098	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11099	;;
11100      *)
11101	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11102	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11103	;;
11104    esac
11105    ;;
11106  tandem*)
11107    case $cc_basename in
11108      NCC*)
11109	# NonStop-UX NCC 3.20
11110	# FIXME: insert proper C++ library support
11111	ld_shlibs_CXX=no
11112	;;
11113      *)
11114	# FIXME: insert proper C++ library support
11115	ld_shlibs_CXX=no
11116	;;
11117    esac
11118    ;;
11119  vxworks*)
11120    # FIXME: insert proper C++ library support
11121    ld_shlibs_CXX=no
11122    ;;
11123  *)
11124    # FIXME: insert proper C++ library support
11125    ld_shlibs_CXX=no
11126    ;;
11127esac
11128echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11129echo "${ECHO_T}$ld_shlibs_CXX" >&6
11130test "$ld_shlibs_CXX" = no && can_build_shared=no
11131
11132GCC_CXX="$GXX"
11133LD_CXX="$LD"
11134
11135
11136cat > conftest.$ac_ext <<EOF
11137class Foo
11138{
11139public:
11140  Foo (void) { a = 0; }
11141private:
11142  int a;
11143};
11144EOF
11145
11146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147  (eval $ac_compile) 2>&5
11148  ac_status=$?
11149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150  (exit $ac_status); }; then
11151  # Parse the compiler output and extract the necessary
11152  # objects, libraries and library flags.
11153
11154  # Sentinel used to keep track of whether or not we are before
11155  # the conftest object file.
11156  pre_test_object_deps_done=no
11157
11158  # The `*' in the case matches for architectures that use `case' in
11159  # $output_verbose_cmd can trigger glob expansion during the loop
11160  # eval without this substitution.
11161  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11162
11163  for p in `eval $output_verbose_link_cmd`; do
11164    case $p in
11165
11166    -L* | -R* | -l*)
11167       # Some compilers place space between "-{L,R}" and the path.
11168       # Remove the space.
11169       if test $p = "-L" \
11170	  || test $p = "-R"; then
11171	 prev=$p
11172	 continue
11173       else
11174	 prev=
11175       fi
11176
11177       if test "$pre_test_object_deps_done" = no; then
11178	 case $p in
11179	 -L* | -R*)
11180	   # Internal compiler library paths should come after those
11181	   # provided the user.  The postdeps already come after the
11182	   # user supplied libs so there is no need to process them.
11183	   if test -z "$compiler_lib_search_path_CXX"; then
11184	     compiler_lib_search_path_CXX="${prev}${p}"
11185	   else
11186	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11187	   fi
11188	   ;;
11189	 # The "-l" case would never come before the object being
11190	 # linked, so don't bother handling this case.
11191	 esac
11192       else
11193	 if test -z "$postdeps_CXX"; then
11194	   postdeps_CXX="${prev}${p}"
11195	 else
11196	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11197	 fi
11198       fi
11199       ;;
11200
11201    *.$objext)
11202       # This assumes that the test object file only shows up
11203       # once in the compiler output.
11204       if test "$p" = "conftest.$objext"; then
11205	 pre_test_object_deps_done=yes
11206	 continue
11207       fi
11208
11209       if test "$pre_test_object_deps_done" = no; then
11210	 if test -z "$predep_objects_CXX"; then
11211	   predep_objects_CXX="$p"
11212	 else
11213	   predep_objects_CXX="$predep_objects_CXX $p"
11214	 fi
11215       else
11216	 if test -z "$postdep_objects_CXX"; then
11217	   postdep_objects_CXX="$p"
11218	 else
11219	   postdep_objects_CXX="$postdep_objects_CXX $p"
11220	 fi
11221       fi
11222       ;;
11223
11224    *) ;; # Ignore the rest.
11225
11226    esac
11227  done
11228
11229  # Clean up.
11230  rm -f a.out a.exe
11231else
11232  echo "libtool.m4: error: problem compiling CXX test program"
11233fi
11234
11235$rm -f confest.$objext
11236
11237# PORTME: override above test on systems where it is broken
11238case $host_os in
11239interix3*)
11240  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11241  # hack all around it, let's just trust "g++" to DTRT.
11242  predep_objects_CXX=
11243  postdep_objects_CXX=
11244  postdeps_CXX=
11245  ;;
11246
11247solaris*)
11248  case $cc_basename in
11249  CC*)
11250    # Adding this requires a known-good setup of shared libraries for
11251    # Sun compiler versions before 5.6, else PIC objects from an old
11252    # archive will be linked into the output, leading to subtle bugs.
11253    postdeps_CXX='-lCstd -lCrun'
11254    ;;
11255  esac
11256  ;;
11257esac
11258
11259
11260case " $postdeps_CXX " in
11261*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11262esac
11263
11264lt_prog_compiler_wl_CXX=
11265lt_prog_compiler_pic_CXX=
11266lt_prog_compiler_static_CXX=
11267
11268echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11269echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11270
11271  # C++ specific cases for pic, static, wl, etc.
11272  if test "$GXX" = yes; then
11273    lt_prog_compiler_wl_CXX='-Wl,'
11274    lt_prog_compiler_static_CXX='-static'
11275
11276    case $host_os in
11277    aix*)
11278      # All AIX code is PIC.
11279      if test "$host_cpu" = ia64; then
11280	# AIX 5 now supports IA64 processor
11281	lt_prog_compiler_static_CXX='-Bstatic'
11282      fi
11283      ;;
11284    amigaos*)
11285      # FIXME: we need at least 68020 code to build shared libraries, but
11286      # adding the `-m68020' flag to GCC prevents building anything better,
11287      # like `-m68040'.
11288      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11289      ;;
11290    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11291      # PIC is the default for these OSes.
11292      ;;
11293    mingw* | os2* | pw32*)
11294      # This hack is so that the source file can tell whether it is being
11295      # built for inclusion in a dll (and should export symbols for example).
11296      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11297      ;;
11298    darwin* | rhapsody*)
11299      # PIC is the default on this platform
11300      # Common symbols not allowed in MH_DYLIB files
11301      lt_prog_compiler_pic_CXX='-fno-common'
11302      ;;
11303    *djgpp*)
11304      # DJGPP does not support shared libraries at all
11305      lt_prog_compiler_pic_CXX=
11306      ;;
11307    interix3*)
11308      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11309      # Instead, we relocate shared libraries at runtime.
11310      ;;
11311    sysv4*MP*)
11312      if test -d /usr/nec; then
11313	lt_prog_compiler_pic_CXX=-Kconform_pic
11314      fi
11315      ;;
11316    hpux*)
11317      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11318      # not for PA HP-UX.
11319      case $host_cpu in
11320      hppa*64*|ia64*)
11321	;;
11322      *)
11323	lt_prog_compiler_pic_CXX='-fPIC'
11324	;;
11325      esac
11326      ;;
11327    *)
11328      lt_prog_compiler_pic_CXX='-fPIC'
11329      ;;
11330    esac
11331  else
11332    case $host_os in
11333      aix4* | aix5*)
11334	# All AIX code is PIC.
11335	if test "$host_cpu" = ia64; then
11336	  # AIX 5 now supports IA64 processor
11337	  lt_prog_compiler_static_CXX='-Bstatic'
11338	else
11339	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11340	fi
11341	;;
11342      chorus*)
11343	case $cc_basename in
11344	cxch68*)
11345	  # Green Hills C++ Compiler
11346	  # _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"
11347	  ;;
11348	esac
11349	;;
11350       darwin*)
11351         # PIC is the default on this platform
11352         # Common symbols not allowed in MH_DYLIB files
11353         case $cc_basename in
11354           xlc*)
11355           lt_prog_compiler_pic_CXX='-qnocommon'
11356           lt_prog_compiler_wl_CXX='-Wl,'
11357           ;;
11358         esac
11359       ;;
11360      dgux*)
11361	case $cc_basename in
11362	  ec++*)
11363	    lt_prog_compiler_pic_CXX='-KPIC'
11364	    ;;
11365	  ghcx*)
11366	    # Green Hills C++ Compiler
11367	    lt_prog_compiler_pic_CXX='-pic'
11368	    ;;
11369	  *)
11370	    ;;
11371	esac
11372	;;
11373      freebsd* | kfreebsd*-gnu | dragonfly*)
11374	# FreeBSD uses GNU C++
11375	;;
11376      hpux9* | hpux10* | hpux11*)
11377	case $cc_basename in
11378	  CC*)
11379	    lt_prog_compiler_wl_CXX='-Wl,'
11380	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11381	    if test "$host_cpu" != ia64; then
11382	      lt_prog_compiler_pic_CXX='+Z'
11383	    fi
11384	    ;;
11385	  aCC*)
11386	    lt_prog_compiler_wl_CXX='-Wl,'
11387	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11388	    case $host_cpu in
11389	    hppa*64*|ia64*)
11390	      # +Z the default
11391	      ;;
11392	    *)
11393	      lt_prog_compiler_pic_CXX='+Z'
11394	      ;;
11395	    esac
11396	    ;;
11397	  *)
11398	    ;;
11399	esac
11400	;;
11401      interix*)
11402	# This is c89, which is MS Visual C++ (no shared libs)
11403	# Anyone wants to do a port?
11404	;;
11405      irix5* | irix6* | nonstopux*)
11406	case $cc_basename in
11407	  CC*)
11408	    lt_prog_compiler_wl_CXX='-Wl,'
11409	    lt_prog_compiler_static_CXX='-non_shared'
11410	    # CC pic flag -KPIC is the default.
11411	    ;;
11412	  *)
11413	    ;;
11414	esac
11415	;;
11416      linux*)
11417	case $cc_basename in
11418	  KCC*)
11419	    # KAI C++ Compiler
11420	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11421	    lt_prog_compiler_pic_CXX='-fPIC'
11422	    ;;
11423	  icpc* | ecpc*)
11424	    # Intel C++
11425	    lt_prog_compiler_wl_CXX='-Wl,'
11426	    lt_prog_compiler_pic_CXX='-KPIC'
11427	    lt_prog_compiler_static_CXX='-static'
11428	    ;;
11429	  pgCC*)
11430	    # Portland Group C++ compiler.
11431	    lt_prog_compiler_wl_CXX='-Wl,'
11432	    lt_prog_compiler_pic_CXX='-fpic'
11433	    lt_prog_compiler_static_CXX='-Bstatic'
11434	    ;;
11435	  cxx*)
11436	    # Compaq C++
11437	    # Make sure the PIC flag is empty.  It appears that all Alpha
11438	    # Linux and Compaq Tru64 Unix objects are PIC.
11439	    lt_prog_compiler_pic_CXX=
11440	    lt_prog_compiler_static_CXX='-non_shared'
11441	    ;;
11442	  *)
11443	    ;;
11444	esac
11445	;;
11446      lynxos*)
11447	;;
11448      m88k*)
11449	;;
11450      mvs*)
11451	case $cc_basename in
11452	  cxx*)
11453	    lt_prog_compiler_pic_CXX='-W c,exportall'
11454	    ;;
11455	  *)
11456	    ;;
11457	esac
11458	;;
11459      netbsd*)
11460	;;
11461      osf3* | osf4* | osf5*)
11462	case $cc_basename in
11463	  KCC*)
11464	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11465	    ;;
11466	  RCC*)
11467	    # Rational C++ 2.4.1
11468	    lt_prog_compiler_pic_CXX='-pic'
11469	    ;;
11470	  cxx*)
11471	    # Digital/Compaq C++
11472	    lt_prog_compiler_wl_CXX='-Wl,'
11473	    # Make sure the PIC flag is empty.  It appears that all Alpha
11474	    # Linux and Compaq Tru64 Unix objects are PIC.
11475	    lt_prog_compiler_pic_CXX=
11476	    lt_prog_compiler_static_CXX='-non_shared'
11477	    ;;
11478	  *)
11479	    ;;
11480	esac
11481	;;
11482      psos*)
11483	;;
11484      solaris*)
11485	case $cc_basename in
11486	  CC*)
11487	    # Sun C++ 4.2, 5.x and Centerline C++
11488	    lt_prog_compiler_pic_CXX='-KPIC'
11489	    lt_prog_compiler_static_CXX='-Bstatic'
11490	    lt_prog_compiler_wl_CXX='-Qoption ld '
11491	    ;;
11492	  gcx*)
11493	    # Green Hills C++ Compiler
11494	    lt_prog_compiler_pic_CXX='-PIC'
11495	    ;;
11496	  *)
11497	    ;;
11498	esac
11499	;;
11500      sunos4*)
11501	case $cc_basename in
11502	  CC*)
11503	    # Sun C++ 4.x
11504	    lt_prog_compiler_pic_CXX='-pic'
11505	    lt_prog_compiler_static_CXX='-Bstatic'
11506	    ;;
11507	  lcc*)
11508	    # Lucid
11509	    lt_prog_compiler_pic_CXX='-pic'
11510	    ;;
11511	  *)
11512	    ;;
11513	esac
11514	;;
11515      tandem*)
11516	case $cc_basename in
11517	  NCC*)
11518	    # NonStop-UX NCC 3.20
11519	    lt_prog_compiler_pic_CXX='-KPIC'
11520	    ;;
11521	  *)
11522	    ;;
11523	esac
11524	;;
11525      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11526	case $cc_basename in
11527	  CC*)
11528	    lt_prog_compiler_wl_CXX='-Wl,'
11529	    lt_prog_compiler_pic_CXX='-KPIC'
11530	    lt_prog_compiler_static_CXX='-Bstatic'
11531	    ;;
11532	esac
11533	;;
11534      vxworks*)
11535	;;
11536      *)
11537	lt_prog_compiler_can_build_shared_CXX=no
11538	;;
11539    esac
11540  fi
11541
11542echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11543echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11544
11545#
11546# Check to make sure the PIC flag actually works.
11547#
11548if test -n "$lt_prog_compiler_pic_CXX"; then
11549
11550echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11551echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11552if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11553  echo $ECHO_N "(cached) $ECHO_C" >&6
11554else
11555  lt_prog_compiler_pic_works_CXX=no
11556  ac_outfile=conftest.$ac_objext
11557   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11558   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11559   # Insert the option either (1) after the last *FLAGS variable, or
11560   # (2) before a word containing "conftest.", or (3) at the end.
11561   # Note that $ac_compile itself does not contain backslashes and begins
11562   # with a dollar sign (not a hyphen), so the echo should work correctly.
11563   # The option is referenced via a variable to avoid confusing sed.
11564   lt_compile=`echo "$ac_compile" | $SED \
11565   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11566   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11567   -e 's:$: $lt_compiler_flag:'`
11568   (eval echo "\"\$as_me:11568: $lt_compile\"" >&5)
11569   (eval "$lt_compile" 2>conftest.err)
11570   ac_status=$?
11571   cat conftest.err >&5
11572   echo "$as_me:11572: \$? = $ac_status" >&5
11573   if (exit $ac_status) && test -s "$ac_outfile"; then
11574     # The compiler can only warn and ignore the option if not recognized
11575     # So say no if there are warnings other than the usual output.
11576     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11577     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11578     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11579       lt_prog_compiler_pic_works_CXX=yes
11580     fi
11581   fi
11582   $rm conftest*
11583
11584fi
11585echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11586echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11587
11588if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11589    case $lt_prog_compiler_pic_CXX in
11590     "" | " "*) ;;
11591     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11592     esac
11593else
11594    lt_prog_compiler_pic_CXX=
11595     lt_prog_compiler_can_build_shared_CXX=no
11596fi
11597
11598fi
11599case $host_os in
11600  # For platforms which do not support PIC, -DPIC is meaningless:
11601  *djgpp*)
11602    lt_prog_compiler_pic_CXX=
11603    ;;
11604  *)
11605    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11606    ;;
11607esac
11608
11609#
11610# Check to make sure the static flag actually works.
11611#
11612wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11613echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11614echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11615if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11616  echo $ECHO_N "(cached) $ECHO_C" >&6
11617else
11618  lt_prog_compiler_static_works_CXX=no
11619   save_LDFLAGS="$LDFLAGS"
11620   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11621   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11622   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11623     # The linker can only warn and ignore the option if not recognized
11624     # So say no if there are warnings
11625     if test -s conftest.err; then
11626       # Append any errors to the config.log.
11627       cat conftest.err 1>&5
11628       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11629       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11630       if diff conftest.exp conftest.er2 >/dev/null; then
11631         lt_prog_compiler_static_works_CXX=yes
11632       fi
11633     else
11634       lt_prog_compiler_static_works_CXX=yes
11635     fi
11636   fi
11637   $rm conftest*
11638   LDFLAGS="$save_LDFLAGS"
11639
11640fi
11641echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11642echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11643
11644if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11645    :
11646else
11647    lt_prog_compiler_static_CXX=
11648fi
11649
11650
11651echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11652echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11653if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11654  echo $ECHO_N "(cached) $ECHO_C" >&6
11655else
11656  lt_cv_prog_compiler_c_o_CXX=no
11657   $rm -r conftest 2>/dev/null
11658   mkdir conftest
11659   cd conftest
11660   mkdir out
11661   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11662
11663   lt_compiler_flag="-o out/conftest2.$ac_objext"
11664   # Insert the option either (1) after the last *FLAGS variable, or
11665   # (2) before a word containing "conftest.", or (3) at the end.
11666   # Note that $ac_compile itself does not contain backslashes and begins
11667   # with a dollar sign (not a hyphen), so the echo should work correctly.
11668   lt_compile=`echo "$ac_compile" | $SED \
11669   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11670   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11671   -e 's:$: $lt_compiler_flag:'`
11672   (eval echo "\"\$as_me:11672: $lt_compile\"" >&5)
11673   (eval "$lt_compile" 2>out/conftest.err)
11674   ac_status=$?
11675   cat out/conftest.err >&5
11676   echo "$as_me:11676: \$? = $ac_status" >&5
11677   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11678   then
11679     # The compiler can only warn and ignore the option if not recognized
11680     # So say no if there are warnings
11681     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11682     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11683     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11684       lt_cv_prog_compiler_c_o_CXX=yes
11685     fi
11686   fi
11687   chmod u+w . 2>&5
11688   $rm conftest*
11689   # SGI C++ compiler will create directory out/ii_files/ for
11690   # template instantiation
11691   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11692   $rm out/* && rmdir out
11693   cd ..
11694   rmdir conftest
11695   $rm conftest*
11696
11697fi
11698echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11699echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11700
11701
11702hard_links="nottested"
11703if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11704  # do not overwrite the value of need_locks provided by the user
11705  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11706echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11707  hard_links=yes
11708  $rm conftest*
11709  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11710  touch conftest.a
11711  ln conftest.a conftest.b 2>&5 || hard_links=no
11712  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11713  echo "$as_me:$LINENO: result: $hard_links" >&5
11714echo "${ECHO_T}$hard_links" >&6
11715  if test "$hard_links" = no; then
11716    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11717echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11718    need_locks=warn
11719  fi
11720else
11721  need_locks=no
11722fi
11723
11724echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11725echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11726
11727  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11728  case $host_os in
11729  aix4* | aix5*)
11730    # If we're using GNU nm, then we don't want the "-C" option.
11731    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11732    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11733      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'
11734    else
11735      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'
11736    fi
11737    ;;
11738  pw32*)
11739    export_symbols_cmds_CXX="$ltdll_cmds"
11740  ;;
11741  cygwin* | mingw*)
11742    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11743  ;;
11744  *)
11745    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11746  ;;
11747  esac
11748
11749echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11750echo "${ECHO_T}$ld_shlibs_CXX" >&6
11751test "$ld_shlibs_CXX" = no && can_build_shared=no
11752
11753#
11754# Do we need to explicitly link libc?
11755#
11756case "x$archive_cmds_need_lc_CXX" in
11757x|xyes)
11758  # Assume -lc should be added
11759  archive_cmds_need_lc_CXX=yes
11760
11761  if test "$enable_shared" = yes && test "$GCC" = yes; then
11762    case $archive_cmds_CXX in
11763    *'~'*)
11764      # FIXME: we may have to deal with multi-command sequences.
11765      ;;
11766    '$CC '*)
11767      # Test whether the compiler implicitly links with -lc since on some
11768      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11769      # to ld, don't add -lc before -lgcc.
11770      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11771echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11772      $rm conftest*
11773      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11774
11775      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776  (eval $ac_compile) 2>&5
11777  ac_status=$?
11778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779  (exit $ac_status); } 2>conftest.err; then
11780        soname=conftest
11781        lib=conftest
11782        libobjs=conftest.$ac_objext
11783        deplibs=
11784        wl=$lt_prog_compiler_wl_CXX
11785	pic_flag=$lt_prog_compiler_pic_CXX
11786        compiler_flags=-v
11787        linker_flags=-v
11788        verstring=
11789        output_objdir=.
11790        libname=conftest
11791        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11792        allow_undefined_flag_CXX=
11793        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11794  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11795  ac_status=$?
11796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797  (exit $ac_status); }
11798        then
11799	  archive_cmds_need_lc_CXX=no
11800        else
11801	  archive_cmds_need_lc_CXX=yes
11802        fi
11803        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11804      else
11805        cat conftest.err 1>&5
11806      fi
11807      $rm conftest*
11808      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11809echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11810      ;;
11811    esac
11812  fi
11813  ;;
11814esac
11815
11816echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11817echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11818library_names_spec=
11819libname_spec='lib$name'
11820soname_spec=
11821shrext_cmds=".so"
11822postinstall_cmds=
11823postuninstall_cmds=
11824finish_cmds=
11825finish_eval=
11826shlibpath_var=
11827shlibpath_overrides_runpath=unknown
11828version_type=none
11829dynamic_linker="$host_os ld.so"
11830sys_lib_dlsearch_path_spec="/lib /usr/lib"
11831if test "$GCC" = yes; then
11832  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11833  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11834    # if the path contains ";" then we assume it to be the separator
11835    # otherwise default to the standard path separator (i.e. ":") - it is
11836    # assumed that no part of a normal pathname contains ";" but that should
11837    # okay in the real world where ";" in dirpaths is itself problematic.
11838    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11839  else
11840    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11841  fi
11842else
11843  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11844fi
11845need_lib_prefix=unknown
11846hardcode_into_libs=no
11847
11848# when you set need_version to no, make sure it does not cause -set_version
11849# flags to be left without arguments
11850need_version=unknown
11851
11852case $host_os in
11853aix3*)
11854  version_type=linux
11855  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11856  shlibpath_var=LIBPATH
11857
11858  # AIX 3 has no versioning support, so we append a major version to the name.
11859  soname_spec='${libname}${release}${shared_ext}$major'
11860  ;;
11861
11862aix4* | aix5*)
11863  version_type=linux
11864  need_lib_prefix=no
11865  need_version=no
11866  hardcode_into_libs=yes
11867  if test "$host_cpu" = ia64; then
11868    # AIX 5 supports IA64
11869    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11870    shlibpath_var=LD_LIBRARY_PATH
11871  else
11872    # With GCC up to 2.95.x, collect2 would create an import file
11873    # for dependence libraries.  The import file would start with
11874    # the line `#! .'.  This would cause the generated library to
11875    # depend on `.', always an invalid library.  This was fixed in
11876    # development snapshots of GCC prior to 3.0.
11877    case $host_os in
11878      aix4 | aix4.[01] | aix4.[01].*)
11879      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11880	   echo ' yes '
11881	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11882	:
11883      else
11884	can_build_shared=no
11885      fi
11886      ;;
11887    esac
11888    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11889    # soname into executable. Probably we can add versioning support to
11890    # collect2, so additional links can be useful in future.
11891    if test "$aix_use_runtimelinking" = yes; then
11892      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11893      # instead of lib<name>.a to let people know that these are not
11894      # typical AIX shared libraries.
11895      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896    else
11897      # We preserve .a as extension for shared libraries through AIX4.2
11898      # and later when we are not doing run time linking.
11899      library_names_spec='${libname}${release}.a $libname.a'
11900      soname_spec='${libname}${release}${shared_ext}$major'
11901    fi
11902    shlibpath_var=LIBPATH
11903  fi
11904  ;;
11905
11906amigaos*)
11907  library_names_spec='$libname.ixlibrary $libname.a'
11908  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11909  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'
11910  ;;
11911
11912beos*)
11913  library_names_spec='${libname}${shared_ext}'
11914  dynamic_linker="$host_os ld.so"
11915  shlibpath_var=LIBRARY_PATH
11916  ;;
11917
11918bsdi[45]*)
11919  version_type=linux
11920  need_version=no
11921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11922  soname_spec='${libname}${release}${shared_ext}$major'
11923  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11924  shlibpath_var=LD_LIBRARY_PATH
11925  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11926  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11927  # the default ld.so.conf also contains /usr/contrib/lib and
11928  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11929  # libtool to hard-code these into programs
11930  ;;
11931
11932cygwin* | mingw* | pw32*)
11933  version_type=windows
11934  shrext_cmds=".dll"
11935  need_version=no
11936  need_lib_prefix=no
11937
11938  case $GCC,$host_os in
11939  yes,cygwin* | yes,mingw* | yes,pw32*)
11940    library_names_spec='$libname.dll.a'
11941    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11942    postinstall_cmds='base_file=`basename \${file}`~
11943      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11944      dldir=$destdir/`dirname \$dlpath`~
11945      test -d \$dldir || mkdir -p \$dldir~
11946      $install_prog $dir/$dlname \$dldir/$dlname~
11947      chmod a+x \$dldir/$dlname'
11948    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11949      dlpath=$dir/\$dldll~
11950       $rm \$dlpath'
11951    shlibpath_overrides_runpath=yes
11952
11953    case $host_os in
11954    cygwin*)
11955      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11956      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11957      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11958      ;;
11959    mingw*)
11960      # MinGW DLLs use traditional 'lib' prefix
11961      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11962      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11963      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11964        # It is most probably a Windows format PATH printed by
11965        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11966        # path with ; separators, and with drive letters. We can handle the
11967        # drive letters (cygwin fileutils understands them), so leave them,
11968        # especially as we might pass files found there to a mingw objdump,
11969        # which wouldn't understand a cygwinified path. Ahh.
11970        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11971      else
11972        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11973      fi
11974      ;;
11975    pw32*)
11976      # pw32 DLLs use 'pw' prefix rather than 'lib'
11977      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11978      ;;
11979    esac
11980    ;;
11981
11982  *)
11983    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11984    ;;
11985  esac
11986  dynamic_linker='Win32 ld.exe'
11987  # FIXME: first we should search . and the directory the executable is in
11988  shlibpath_var=PATH
11989  ;;
11990
11991darwin* | rhapsody*)
11992  dynamic_linker="$host_os dyld"
11993  version_type=darwin
11994  need_lib_prefix=no
11995  need_version=no
11996  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11997  soname_spec='${libname}${release}${major}$shared_ext'
11998  shlibpath_overrides_runpath=yes
11999  shlibpath_var=DYLD_LIBRARY_PATH
12000  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12001  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12002  if test "$GCC" = yes; then
12003    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"`
12004  else
12005    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12006  fi
12007  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12008  ;;
12009
12010dgux*)
12011  version_type=linux
12012  need_lib_prefix=no
12013  need_version=no
12014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12015  soname_spec='${libname}${release}${shared_ext}$major'
12016  shlibpath_var=LD_LIBRARY_PATH
12017  ;;
12018
12019freebsd1*)
12020  dynamic_linker=no
12021  ;;
12022
12023kfreebsd*-gnu)
12024  version_type=linux
12025  need_lib_prefix=no
12026  need_version=no
12027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12028  soname_spec='${libname}${release}${shared_ext}$major'
12029  shlibpath_var=LD_LIBRARY_PATH
12030  shlibpath_overrides_runpath=no
12031  hardcode_into_libs=yes
12032  dynamic_linker='GNU ld.so'
12033  ;;
12034
12035freebsd* | dragonfly*)
12036  # DragonFly does not have aout.  When/if they implement a new
12037  # versioning mechanism, adjust this.
12038  if test -x /usr/bin/objformat; then
12039    objformat=`/usr/bin/objformat`
12040  else
12041    case $host_os in
12042    freebsd[123]*) objformat=aout ;;
12043    *) objformat=elf ;;
12044    esac
12045  fi
12046  version_type=freebsd-$objformat
12047  case $version_type in
12048    freebsd-elf*)
12049      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12050      need_version=no
12051      need_lib_prefix=no
12052      ;;
12053    freebsd-*)
12054      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12055      need_version=yes
12056      ;;
12057  esac
12058  shlibpath_var=LD_LIBRARY_PATH
12059  case $host_os in
12060  freebsd2*)
12061    shlibpath_overrides_runpath=yes
12062    ;;
12063  freebsd3.[01]* | freebsdelf3.[01]*)
12064    shlibpath_overrides_runpath=yes
12065    hardcode_into_libs=yes
12066    ;;
12067  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12068  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12069    shlibpath_overrides_runpath=no
12070    hardcode_into_libs=yes
12071    ;;
12072  freebsd*) # from 4.6 on
12073    shlibpath_overrides_runpath=yes
12074    hardcode_into_libs=yes
12075    ;;
12076  esac
12077  ;;
12078
12079gnu*)
12080  version_type=linux
12081  need_lib_prefix=no
12082  need_version=no
12083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12084  soname_spec='${libname}${release}${shared_ext}$major'
12085  shlibpath_var=LD_LIBRARY_PATH
12086  hardcode_into_libs=yes
12087  ;;
12088
12089hpux9* | hpux10* | hpux11*)
12090  # Give a soname corresponding to the major version so that dld.sl refuses to
12091  # link against other versions.
12092  version_type=sunos
12093  need_lib_prefix=no
12094  need_version=no
12095  case $host_cpu in
12096  ia64*)
12097    shrext_cmds='.so'
12098    hardcode_into_libs=yes
12099    dynamic_linker="$host_os dld.so"
12100    shlibpath_var=LD_LIBRARY_PATH
12101    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12102    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12103    soname_spec='${libname}${release}${shared_ext}$major'
12104    if test "X$HPUX_IA64_MODE" = X32; then
12105      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12106    else
12107      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12108    fi
12109    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12110    ;;
12111   hppa*64*)
12112     shrext_cmds='.sl'
12113     hardcode_into_libs=yes
12114     dynamic_linker="$host_os dld.sl"
12115     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12116     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118     soname_spec='${libname}${release}${shared_ext}$major'
12119     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12120     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12121     ;;
12122   *)
12123    shrext_cmds='.sl'
12124    dynamic_linker="$host_os dld.sl"
12125    shlibpath_var=SHLIB_PATH
12126    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12127    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12128    soname_spec='${libname}${release}${shared_ext}$major'
12129    ;;
12130  esac
12131  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12132  postinstall_cmds='chmod 555 $lib'
12133  ;;
12134
12135interix3*)
12136  version_type=linux
12137  need_lib_prefix=no
12138  need_version=no
12139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12140  soname_spec='${libname}${release}${shared_ext}$major'
12141  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12142  shlibpath_var=LD_LIBRARY_PATH
12143  shlibpath_overrides_runpath=no
12144  hardcode_into_libs=yes
12145  ;;
12146
12147irix5* | irix6* | nonstopux*)
12148  case $host_os in
12149    nonstopux*) version_type=nonstopux ;;
12150    *)
12151	if test "$lt_cv_prog_gnu_ld" = yes; then
12152		version_type=linux
12153	else
12154		version_type=irix
12155	fi ;;
12156  esac
12157  need_lib_prefix=no
12158  need_version=no
12159  soname_spec='${libname}${release}${shared_ext}$major'
12160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12161  case $host_os in
12162  irix5* | nonstopux*)
12163    libsuff= shlibsuff=
12164    ;;
12165  *)
12166    case $LD in # libtool.m4 will add one of these switches to LD
12167    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12168      libsuff= shlibsuff= libmagic=32-bit;;
12169    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12170      libsuff=32 shlibsuff=N32 libmagic=N32;;
12171    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12172      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12173    *) libsuff= shlibsuff= libmagic=never-match;;
12174    esac
12175    ;;
12176  esac
12177  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12178  shlibpath_overrides_runpath=no
12179  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12180  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12181  hardcode_into_libs=yes
12182  ;;
12183
12184# No shared lib support for Linux oldld, aout, or coff.
12185linux*oldld* | linux*aout* | linux*coff*)
12186  dynamic_linker=no
12187  ;;
12188
12189# This must be Linux ELF.
12190linux*)
12191  version_type=linux
12192  need_lib_prefix=no
12193  need_version=no
12194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195  soname_spec='${libname}${release}${shared_ext}$major'
12196  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12197  shlibpath_var=LD_LIBRARY_PATH
12198  shlibpath_overrides_runpath=no
12199  # This implies no fast_install, which is unacceptable.
12200  # Some rework will be needed to allow for fast_install
12201  # before this can be enabled.
12202  hardcode_into_libs=yes
12203
12204  # find out which ABI we are using
12205  libsuff=
12206  case "$host_cpu" in
12207  x86_64*|s390x*|powerpc64*)
12208    echo '#line 12208 "configure"' > conftest.$ac_ext
12209    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210  (eval $ac_compile) 2>&5
12211  ac_status=$?
12212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213  (exit $ac_status); }; then
12214      case `/usr/bin/file conftest.$ac_objext` in
12215      *64-bit*)
12216        libsuff=64
12217        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12218        ;;
12219      esac
12220    fi
12221    rm -rf conftest*
12222    ;;
12223  esac
12224
12225  # Append ld.so.conf contents to the search path
12226  if test -f /etc/ld.so.conf; then
12227    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12228    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12229  fi
12230
12231  # We used to test for /lib/ld.so.1 and disable shared libraries on
12232  # powerpc, because MkLinux only supported shared libraries with the
12233  # GNU dynamic linker.  Since this was broken with cross compilers,
12234  # most powerpc-linux boxes support dynamic linking these days and
12235  # people can always --disable-shared, the test was removed, and we
12236  # assume the GNU/Linux dynamic linker is in use.
12237  dynamic_linker='GNU/Linux ld.so'
12238  ;;
12239
12240knetbsd*-gnu)
12241  version_type=linux
12242  need_lib_prefix=no
12243  need_version=no
12244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12245  soname_spec='${libname}${release}${shared_ext}$major'
12246  shlibpath_var=LD_LIBRARY_PATH
12247  shlibpath_overrides_runpath=no
12248  hardcode_into_libs=yes
12249  dynamic_linker='GNU ld.so'
12250  ;;
12251
12252netbsd*)
12253  version_type=sunos
12254  need_lib_prefix=no
12255  need_version=no
12256  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12257    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12258    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12259    dynamic_linker='NetBSD (a.out) ld.so'
12260  else
12261    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12262    soname_spec='${libname}${release}${shared_ext}$major'
12263    dynamic_linker='NetBSD ld.elf_so'
12264  fi
12265  shlibpath_var=LD_LIBRARY_PATH
12266  shlibpath_overrides_runpath=yes
12267  hardcode_into_libs=yes
12268  ;;
12269
12270newsos6)
12271  version_type=linux
12272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273  shlibpath_var=LD_LIBRARY_PATH
12274  shlibpath_overrides_runpath=yes
12275  ;;
12276
12277nto-qnx*)
12278  version_type=linux
12279  need_lib_prefix=no
12280  need_version=no
12281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12282  soname_spec='${libname}${release}${shared_ext}$major'
12283  shlibpath_var=LD_LIBRARY_PATH
12284  shlibpath_overrides_runpath=yes
12285  ;;
12286
12287openbsd*)
12288  version_type=sunos
12289  sys_lib_dlsearch_path_spec="/usr/lib"
12290  need_lib_prefix=no
12291  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12292  case $host_os in
12293    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12294    *)                         need_version=no  ;;
12295  esac
12296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12297  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12298  shlibpath_var=LD_LIBRARY_PATH
12299  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12300    case $host_os in
12301      openbsd2.[89] | openbsd2.[89].*)
12302	shlibpath_overrides_runpath=no
12303	;;
12304      *)
12305	shlibpath_overrides_runpath=yes
12306	;;
12307      esac
12308  else
12309    shlibpath_overrides_runpath=yes
12310  fi
12311  ;;
12312
12313os2*)
12314  libname_spec='$name'
12315  shrext_cmds=".dll"
12316  need_lib_prefix=no
12317  library_names_spec='$libname${shared_ext} $libname.a'
12318  dynamic_linker='OS/2 ld.exe'
12319  shlibpath_var=LIBPATH
12320  ;;
12321
12322osf3* | osf4* | osf5*)
12323  version_type=osf
12324  need_lib_prefix=no
12325  need_version=no
12326  soname_spec='${libname}${release}${shared_ext}$major'
12327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328  shlibpath_var=LD_LIBRARY_PATH
12329  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12330  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12331  ;;
12332
12333solaris*)
12334  version_type=linux
12335  need_lib_prefix=no
12336  need_version=no
12337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12338  soname_spec='${libname}${release}${shared_ext}$major'
12339  shlibpath_var=LD_LIBRARY_PATH
12340  shlibpath_overrides_runpath=yes
12341  hardcode_into_libs=yes
12342  # ldd complains unless libraries are executable
12343  postinstall_cmds='chmod +x $lib'
12344  ;;
12345
12346sunos4*)
12347  version_type=sunos
12348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12349  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12350  shlibpath_var=LD_LIBRARY_PATH
12351  shlibpath_overrides_runpath=yes
12352  if test "$with_gnu_ld" = yes; then
12353    need_lib_prefix=no
12354  fi
12355  need_version=yes
12356  ;;
12357
12358sysv4 | sysv4.3*)
12359  version_type=linux
12360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12361  soname_spec='${libname}${release}${shared_ext}$major'
12362  shlibpath_var=LD_LIBRARY_PATH
12363  case $host_vendor in
12364    sni)
12365      shlibpath_overrides_runpath=no
12366      need_lib_prefix=no
12367      export_dynamic_flag_spec='${wl}-Blargedynsym'
12368      runpath_var=LD_RUN_PATH
12369      ;;
12370    siemens)
12371      need_lib_prefix=no
12372      ;;
12373    motorola)
12374      need_lib_prefix=no
12375      need_version=no
12376      shlibpath_overrides_runpath=no
12377      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12378      ;;
12379  esac
12380  ;;
12381
12382sysv4*MP*)
12383  if test -d /usr/nec ;then
12384    version_type=linux
12385    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12386    soname_spec='$libname${shared_ext}.$major'
12387    shlibpath_var=LD_LIBRARY_PATH
12388  fi
12389  ;;
12390
12391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12392  version_type=freebsd-elf
12393  need_lib_prefix=no
12394  need_version=no
12395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12396  soname_spec='${libname}${release}${shared_ext}$major'
12397  shlibpath_var=LD_LIBRARY_PATH
12398  hardcode_into_libs=yes
12399  if test "$with_gnu_ld" = yes; then
12400    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12401    shlibpath_overrides_runpath=no
12402  else
12403    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12404    shlibpath_overrides_runpath=yes
12405    case $host_os in
12406      sco3.2v5*)
12407        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12408	;;
12409    esac
12410  fi
12411  sys_lib_dlsearch_path_spec='/usr/lib'
12412  ;;
12413
12414uts4*)
12415  version_type=linux
12416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12417  soname_spec='${libname}${release}${shared_ext}$major'
12418  shlibpath_var=LD_LIBRARY_PATH
12419  ;;
12420
12421*)
12422  dynamic_linker=no
12423  ;;
12424esac
12425echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12426echo "${ECHO_T}$dynamic_linker" >&6
12427test "$dynamic_linker" = no && can_build_shared=no
12428
12429variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12430if test "$GCC" = yes; then
12431  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12432fi
12433
12434echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12435echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12436hardcode_action_CXX=
12437if test -n "$hardcode_libdir_flag_spec_CXX" || \
12438   test -n "$runpath_var_CXX" || \
12439   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12440
12441  # We can hardcode non-existant directories.
12442  if test "$hardcode_direct_CXX" != no &&
12443     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12444     # have to relink, otherwise we might link with an installed library
12445     # when we should be linking with a yet-to-be-installed one
12446     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12447     test "$hardcode_minus_L_CXX" != no; then
12448    # Linking always hardcodes the temporary library directory.
12449    hardcode_action_CXX=relink
12450  else
12451    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12452    hardcode_action_CXX=immediate
12453  fi
12454else
12455  # We cannot hardcode anything, or else we can only hardcode existing
12456  # directories.
12457  hardcode_action_CXX=unsupported
12458fi
12459echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12460echo "${ECHO_T}$hardcode_action_CXX" >&6
12461
12462if test "$hardcode_action_CXX" = relink; then
12463  # Fast installation is not supported
12464  enable_fast_install=no
12465elif test "$shlibpath_overrides_runpath" = yes ||
12466     test "$enable_shared" = no; then
12467  # Fast installation is not necessary
12468  enable_fast_install=needless
12469fi
12470
12471
12472# The else clause should only fire when bootstrapping the
12473# libtool distribution, otherwise you forgot to ship ltmain.sh
12474# with your package, and you will get complaints that there are
12475# no rules to generate ltmain.sh.
12476if test -f "$ltmain"; then
12477  # See if we are running on zsh, and set the options which allow our commands through
12478  # without removal of \ escapes.
12479  if test -n "${ZSH_VERSION+set}" ; then
12480    setopt NO_GLOB_SUBST
12481  fi
12482  # Now quote all the things that may contain metacharacters while being
12483  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12484  # variables and quote the copies for generation of the libtool script.
12485  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12486    SED SHELL STRIP \
12487    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12488    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12489    deplibs_check_method reload_flag reload_cmds need_locks \
12490    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12491    lt_cv_sys_global_symbol_to_c_name_address \
12492    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12493    old_postinstall_cmds old_postuninstall_cmds \
12494    compiler_CXX \
12495    CC_CXX \
12496    LD_CXX \
12497    lt_prog_compiler_wl_CXX \
12498    lt_prog_compiler_pic_CXX \
12499    lt_prog_compiler_static_CXX \
12500    lt_prog_compiler_no_builtin_flag_CXX \
12501    export_dynamic_flag_spec_CXX \
12502    thread_safe_flag_spec_CXX \
12503    whole_archive_flag_spec_CXX \
12504    enable_shared_with_static_runtimes_CXX \
12505    old_archive_cmds_CXX \
12506    old_archive_from_new_cmds_CXX \
12507    predep_objects_CXX \
12508    postdep_objects_CXX \
12509    predeps_CXX \
12510    postdeps_CXX \
12511    compiler_lib_search_path_CXX \
12512    archive_cmds_CXX \
12513    archive_expsym_cmds_CXX \
12514    postinstall_cmds_CXX \
12515    postuninstall_cmds_CXX \
12516    old_archive_from_expsyms_cmds_CXX \
12517    allow_undefined_flag_CXX \
12518    no_undefined_flag_CXX \
12519    export_symbols_cmds_CXX \
12520    hardcode_libdir_flag_spec_CXX \
12521    hardcode_libdir_flag_spec_ld_CXX \
12522    hardcode_libdir_separator_CXX \
12523    hardcode_automatic_CXX \
12524    module_cmds_CXX \
12525    module_expsym_cmds_CXX \
12526    lt_cv_prog_compiler_c_o_CXX \
12527    exclude_expsyms_CXX \
12528    include_expsyms_CXX; do
12529
12530    case $var in
12531    old_archive_cmds_CXX | \
12532    old_archive_from_new_cmds_CXX | \
12533    archive_cmds_CXX | \
12534    archive_expsym_cmds_CXX | \
12535    module_cmds_CXX | \
12536    module_expsym_cmds_CXX | \
12537    old_archive_from_expsyms_cmds_CXX | \
12538    export_symbols_cmds_CXX | \
12539    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12540    postinstall_cmds | postuninstall_cmds | \
12541    old_postinstall_cmds | old_postuninstall_cmds | \
12542    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12543      # Double-quote double-evaled strings.
12544      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12545      ;;
12546    *)
12547      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12548      ;;
12549    esac
12550  done
12551
12552  case $lt_echo in
12553  *'\$0 --fallback-echo"')
12554    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12555    ;;
12556  esac
12557
12558cfgfile="$ofile"
12559
12560  cat <<__EOF__ >> "$cfgfile"
12561# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12562
12563# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12564
12565# Shell to use when invoking shell scripts.
12566SHELL=$lt_SHELL
12567
12568# Whether or not to build shared libraries.
12569build_libtool_libs=$enable_shared
12570
12571# Whether or not to build static libraries.
12572build_old_libs=$enable_static
12573
12574# Whether or not to add -lc for building shared libraries.
12575build_libtool_need_lc=$archive_cmds_need_lc_CXX
12576
12577# Whether or not to disallow shared libs when runtime libs are static
12578allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12579
12580# Whether or not to optimize for fast installation.
12581fast_install=$enable_fast_install
12582
12583# The host system.
12584host_alias=$host_alias
12585host=$host
12586host_os=$host_os
12587
12588# The build system.
12589build_alias=$build_alias
12590build=$build
12591build_os=$build_os
12592
12593# An echo program that does not interpret backslashes.
12594echo=$lt_echo
12595
12596# The archiver.
12597AR=$lt_AR
12598AR_FLAGS=$lt_AR_FLAGS
12599
12600# A C compiler.
12601LTCC=$lt_LTCC
12602
12603# LTCC compiler flags.
12604LTCFLAGS=$lt_LTCFLAGS
12605
12606# A language-specific compiler.
12607CC=$lt_compiler_CXX
12608
12609# Is the compiler the GNU C compiler?
12610with_gcc=$GCC_CXX
12611
12612gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12613gcc_ver=\`gcc -dumpversion\`
12614
12615# An ERE matcher.
12616EGREP=$lt_EGREP
12617
12618# The linker used to build libraries.
12619LD=$lt_LD_CXX
12620
12621# Whether we need hard or soft links.
12622LN_S=$lt_LN_S
12623
12624# A BSD-compatible nm program.
12625NM=$lt_NM
12626
12627# A symbol stripping program
12628STRIP=$lt_STRIP
12629
12630# Used to examine libraries when file_magic_cmd begins "file"
12631MAGIC_CMD=$MAGIC_CMD
12632
12633# Used on cygwin: DLL creation program.
12634DLLTOOL="$DLLTOOL"
12635
12636# Used on cygwin: object dumper.
12637OBJDUMP="$OBJDUMP"
12638
12639# Used on cygwin: assembler.
12640AS="$AS"
12641
12642# The name of the directory that contains temporary libtool files.
12643objdir=$objdir
12644
12645# How to create reloadable object files.
12646reload_flag=$lt_reload_flag
12647reload_cmds=$lt_reload_cmds
12648
12649# How to pass a linker flag through the compiler.
12650wl=$lt_lt_prog_compiler_wl_CXX
12651
12652# Object file suffix (normally "o").
12653objext="$ac_objext"
12654
12655# Old archive suffix (normally "a").
12656libext="$libext"
12657
12658# Shared library suffix (normally ".so").
12659shrext_cmds='$shrext_cmds'
12660
12661# Executable file suffix (normally "").
12662exeext="$exeext"
12663
12664# Additional compiler flags for building library objects.
12665pic_flag=$lt_lt_prog_compiler_pic_CXX
12666pic_mode=$pic_mode
12667
12668# What is the maximum length of a command?
12669max_cmd_len=$lt_cv_sys_max_cmd_len
12670
12671# Does compiler simultaneously support -c and -o options?
12672compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12673
12674# Must we lock files when doing compilation?
12675need_locks=$lt_need_locks
12676
12677# Do we need the lib prefix for modules?
12678need_lib_prefix=$need_lib_prefix
12679
12680# Do we need a version for libraries?
12681need_version=$need_version
12682
12683# Whether dlopen is supported.
12684dlopen_support=$enable_dlopen
12685
12686# Whether dlopen of programs is supported.
12687dlopen_self=$enable_dlopen_self
12688
12689# Whether dlopen of statically linked programs is supported.
12690dlopen_self_static=$enable_dlopen_self_static
12691
12692# Compiler flag to prevent dynamic linking.
12693link_static_flag=$lt_lt_prog_compiler_static_CXX
12694
12695# Compiler flag to turn off builtin functions.
12696no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12697
12698# Compiler flag to allow reflexive dlopens.
12699export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12700
12701# Compiler flag to generate shared objects directly from archives.
12702whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12703
12704# Compiler flag to generate thread-safe objects.
12705thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12706
12707# Library versioning type.
12708version_type=$version_type
12709
12710# Format of library name prefix.
12711libname_spec=$lt_libname_spec
12712
12713# List of archive names.  First name is the real one, the rest are links.
12714# The last name is the one that the linker finds with -lNAME.
12715library_names_spec=$lt_library_names_spec
12716
12717# The coded name of the library, if different from the real name.
12718soname_spec=$lt_soname_spec
12719
12720# Commands used to build and install an old-style archive.
12721RANLIB=$lt_RANLIB
12722old_archive_cmds=$lt_old_archive_cmds_CXX
12723old_postinstall_cmds=$lt_old_postinstall_cmds
12724old_postuninstall_cmds=$lt_old_postuninstall_cmds
12725
12726# Create an old-style archive from a shared archive.
12727old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12728
12729# Create a temporary old-style archive to link instead of a shared archive.
12730old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12731
12732# Commands used to build and install a shared archive.
12733archive_cmds=$lt_archive_cmds_CXX
12734archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12735postinstall_cmds=$lt_postinstall_cmds
12736postuninstall_cmds=$lt_postuninstall_cmds
12737
12738# Commands used to build a loadable module (assumed same as above if empty)
12739module_cmds=$lt_module_cmds_CXX
12740module_expsym_cmds=$lt_module_expsym_cmds_CXX
12741
12742# Commands to strip libraries.
12743old_striplib=$lt_old_striplib
12744striplib=$lt_striplib
12745
12746# Dependencies to place before the objects being linked to create a
12747# shared library.
12748predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12749
12750# Dependencies to place after the objects being linked to create a
12751# shared library.
12752postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12753
12754# Dependencies to place before the objects being linked to create a
12755# shared library.
12756predeps=$lt_predeps_CXX
12757
12758# Dependencies to place after the objects being linked to create a
12759# shared library.
12760postdeps=$lt_postdeps_CXX
12761
12762# The library search path used internally by the compiler when linking
12763# a shared library.
12764compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12765
12766# Method to check whether dependent libraries are shared objects.
12767deplibs_check_method=$lt_deplibs_check_method
12768
12769# Command to use when deplibs_check_method == file_magic.
12770file_magic_cmd=$lt_file_magic_cmd
12771
12772# Flag that allows shared libraries with undefined symbols to be built.
12773allow_undefined_flag=$lt_allow_undefined_flag_CXX
12774
12775# Flag that forces no undefined symbols.
12776no_undefined_flag=$lt_no_undefined_flag_CXX
12777
12778# Commands used to finish a libtool library installation in a directory.
12779finish_cmds=$lt_finish_cmds
12780
12781# Same as above, but a single script fragment to be evaled but not shown.
12782finish_eval=$lt_finish_eval
12783
12784# Take the output of nm and produce a listing of raw symbols and C names.
12785global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12786
12787# Transform the output of nm in a proper C declaration
12788global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12789
12790# Transform the output of nm in a C name address pair
12791global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12792
12793# This is the shared library runtime path variable.
12794runpath_var=$runpath_var
12795
12796# This is the shared library path variable.
12797shlibpath_var=$shlibpath_var
12798
12799# Is shlibpath searched before the hard-coded library search path?
12800shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12801
12802# How to hardcode a shared library path into an executable.
12803hardcode_action=$hardcode_action_CXX
12804
12805# Whether we should hardcode library paths into libraries.
12806hardcode_into_libs=$hardcode_into_libs
12807
12808# Flag to hardcode \$libdir into a binary during linking.
12809# This must work even if \$libdir does not exist.
12810hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12811
12812# If ld is used when linking, flag to hardcode \$libdir into
12813# a binary during linking. This must work even if \$libdir does
12814# not exist.
12815hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12816
12817# Whether we need a single -rpath flag with a separated argument.
12818hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12819
12820# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12821# resulting binary.
12822hardcode_direct=$hardcode_direct_CXX
12823
12824# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12825# resulting binary.
12826hardcode_minus_L=$hardcode_minus_L_CXX
12827
12828# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12829# the resulting binary.
12830hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12831
12832# Set to yes if building a shared library automatically hardcodes DIR into the library
12833# and all subsequent libraries and executables linked against it.
12834hardcode_automatic=$hardcode_automatic_CXX
12835
12836# Variables whose values should be saved in libtool wrapper scripts and
12837# restored at relink time.
12838variables_saved_for_relink="$variables_saved_for_relink"
12839
12840# Whether libtool must link a program against all its dependency libraries.
12841link_all_deplibs=$link_all_deplibs_CXX
12842
12843# Compile-time system search path for libraries
12844sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12845
12846# Run-time system search path for libraries
12847sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12848
12849# Fix the shell variable \$srcfile for the compiler.
12850fix_srcfile_path="$fix_srcfile_path_CXX"
12851
12852# Set to yes if exported symbols are required.
12853always_export_symbols=$always_export_symbols_CXX
12854
12855# The commands to list exported symbols.
12856export_symbols_cmds=$lt_export_symbols_cmds_CXX
12857
12858# The commands to extract the exported symbol list from a shared archive.
12859extract_expsyms_cmds=$lt_extract_expsyms_cmds
12860
12861# Symbols that should not be listed in the preloaded symbols.
12862exclude_expsyms=$lt_exclude_expsyms_CXX
12863
12864# Symbols that must always be exported.
12865include_expsyms=$lt_include_expsyms_CXX
12866
12867# ### END LIBTOOL TAG CONFIG: $tagname
12868
12869__EOF__
12870
12871
12872else
12873  # If there is no Makefile yet, we rely on a make rule to execute
12874  # `config.status --recheck' to rerun these tests and create the
12875  # libtool script then.
12876  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12877  if test -f "$ltmain_in"; then
12878    test -f Makefile && make "$ltmain"
12879  fi
12880fi
12881
12882
12883ac_ext=c
12884ac_cpp='$CPP $CPPFLAGS'
12885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12887ac_compiler_gnu=$ac_cv_c_compiler_gnu
12888
12889CC=$lt_save_CC
12890LDCXX=$LD
12891LD=$lt_save_LD
12892GCC=$lt_save_GCC
12893with_gnu_ldcxx=$with_gnu_ld
12894with_gnu_ld=$lt_save_with_gnu_ld
12895lt_cv_path_LDCXX=$lt_cv_path_LD
12896lt_cv_path_LD=$lt_save_path_LD
12897lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12898lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12899
12900	else
12901	  tagname=""
12902	fi
12903	;;
12904
12905      F77)
12906	if test -n "$F77" && test "X$F77" != "Xno"; then
12907
12908ac_ext=f
12909ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12910ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12912
12913
12914archive_cmds_need_lc_F77=no
12915allow_undefined_flag_F77=
12916always_export_symbols_F77=no
12917archive_expsym_cmds_F77=
12918export_dynamic_flag_spec_F77=
12919hardcode_direct_F77=no
12920hardcode_libdir_flag_spec_F77=
12921hardcode_libdir_flag_spec_ld_F77=
12922hardcode_libdir_separator_F77=
12923hardcode_minus_L_F77=no
12924hardcode_automatic_F77=no
12925module_cmds_F77=
12926module_expsym_cmds_F77=
12927link_all_deplibs_F77=unknown
12928old_archive_cmds_F77=$old_archive_cmds
12929no_undefined_flag_F77=
12930whole_archive_flag_spec_F77=
12931enable_shared_with_static_runtimes_F77=no
12932
12933# Source file extension for f77 test sources.
12934ac_ext=f
12935
12936# Object file extension for compiled f77 test sources.
12937objext=o
12938objext_F77=$objext
12939
12940# Code to be used in simple compile tests
12941lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12942
12943# Code to be used in simple link tests
12944lt_simple_link_test_code="      program t\n      end\n"
12945
12946# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12947
12948# If no C compiler was specified, use CC.
12949LTCC=${LTCC-"$CC"}
12950
12951# If no C compiler flags were specified, use CFLAGS.
12952LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12953
12954# Allow CC to be a program name with arguments.
12955compiler=$CC
12956
12957
12958# save warnings/boilerplate of simple test code
12959ac_outfile=conftest.$ac_objext
12960printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12961eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12962_lt_compiler_boilerplate=`cat conftest.err`
12963$rm conftest*
12964
12965ac_outfile=conftest.$ac_objext
12966printf "$lt_simple_link_test_code" >conftest.$ac_ext
12967eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12968_lt_linker_boilerplate=`cat conftest.err`
12969$rm conftest*
12970
12971
12972# Allow CC to be a program name with arguments.
12973lt_save_CC="$CC"
12974CC=${F77-"f77"}
12975compiler=$CC
12976compiler_F77=$CC
12977for cc_temp in $compiler""; do
12978  case $cc_temp in
12979    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12980    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12981    \-*) ;;
12982    *) break;;
12983  esac
12984done
12985cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12986
12987
12988echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12989echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12990echo "$as_me:$LINENO: result: $can_build_shared" >&5
12991echo "${ECHO_T}$can_build_shared" >&6
12992
12993echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12994echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12995test "$can_build_shared" = "no" && enable_shared=no
12996
12997# On AIX, shared libraries and static libraries use the same namespace, and
12998# are all built from PIC.
12999case $host_os in
13000aix3*)
13001  test "$enable_shared" = yes && enable_static=no
13002  if test -n "$RANLIB"; then
13003    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13004    postinstall_cmds='$RANLIB $lib'
13005  fi
13006  ;;
13007aix4* | aix5*)
13008  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13009    test "$enable_shared" = yes && enable_static=no
13010  fi
13011  ;;
13012esac
13013echo "$as_me:$LINENO: result: $enable_shared" >&5
13014echo "${ECHO_T}$enable_shared" >&6
13015
13016echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13017echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13018# Make sure either enable_shared or enable_static is yes.
13019test "$enable_shared" = yes || enable_static=yes
13020echo "$as_me:$LINENO: result: $enable_static" >&5
13021echo "${ECHO_T}$enable_static" >&6
13022
13023GCC_F77="$G77"
13024LD_F77="$LD"
13025
13026lt_prog_compiler_wl_F77=
13027lt_prog_compiler_pic_F77=
13028lt_prog_compiler_static_F77=
13029
13030echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13031echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13032
13033  if test "$GCC" = yes; then
13034    lt_prog_compiler_wl_F77='-Wl,'
13035    lt_prog_compiler_static_F77='-static'
13036
13037    case $host_os in
13038      aix*)
13039      # All AIX code is PIC.
13040      if test "$host_cpu" = ia64; then
13041	# AIX 5 now supports IA64 processor
13042	lt_prog_compiler_static_F77='-Bstatic'
13043      fi
13044      ;;
13045
13046    amigaos*)
13047      # FIXME: we need at least 68020 code to build shared libraries, but
13048      # adding the `-m68020' flag to GCC prevents building anything better,
13049      # like `-m68040'.
13050      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13051      ;;
13052
13053    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13054      # PIC is the default for these OSes.
13055      ;;
13056
13057    mingw* | pw32* | os2*)
13058      # This hack is so that the source file can tell whether it is being
13059      # built for inclusion in a dll (and should export symbols for example).
13060      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13061      ;;
13062
13063    darwin* | rhapsody*)
13064      # PIC is the default on this platform
13065      # Common symbols not allowed in MH_DYLIB files
13066      lt_prog_compiler_pic_F77='-fno-common'
13067      ;;
13068
13069    interix3*)
13070      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13071      # Instead, we relocate shared libraries at runtime.
13072      ;;
13073
13074    msdosdjgpp*)
13075      # Just because we use GCC doesn't mean we suddenly get shared libraries
13076      # on systems that don't support them.
13077      lt_prog_compiler_can_build_shared_F77=no
13078      enable_shared=no
13079      ;;
13080
13081    sysv4*MP*)
13082      if test -d /usr/nec; then
13083	lt_prog_compiler_pic_F77=-Kconform_pic
13084      fi
13085      ;;
13086
13087    hpux*)
13088      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13089      # not for PA HP-UX.
13090      case $host_cpu in
13091      hppa*64*|ia64*)
13092	# +Z the default
13093	;;
13094      *)
13095	lt_prog_compiler_pic_F77='-fPIC'
13096	;;
13097      esac
13098      ;;
13099
13100    *)
13101      lt_prog_compiler_pic_F77='-fPIC'
13102      ;;
13103    esac
13104  else
13105    # PORTME Check for flag to pass linker flags through the system compiler.
13106    case $host_os in
13107    aix*)
13108      lt_prog_compiler_wl_F77='-Wl,'
13109      if test "$host_cpu" = ia64; then
13110	# AIX 5 now supports IA64 processor
13111	lt_prog_compiler_static_F77='-Bstatic'
13112      else
13113	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13114      fi
13115      ;;
13116      darwin*)
13117        # PIC is the default on this platform
13118        # Common symbols not allowed in MH_DYLIB files
13119       case $cc_basename in
13120         xlc*)
13121         lt_prog_compiler_pic_F77='-qnocommon'
13122         lt_prog_compiler_wl_F77='-Wl,'
13123         ;;
13124       esac
13125       ;;
13126
13127    mingw* | pw32* | os2*)
13128      # This hack is so that the source file can tell whether it is being
13129      # built for inclusion in a dll (and should export symbols for example).
13130      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13131      ;;
13132
13133    hpux9* | hpux10* | hpux11*)
13134      lt_prog_compiler_wl_F77='-Wl,'
13135      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13136      # not for PA HP-UX.
13137      case $host_cpu in
13138      hppa*64*|ia64*)
13139	# +Z the default
13140	;;
13141      *)
13142	lt_prog_compiler_pic_F77='+Z'
13143	;;
13144      esac
13145      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13146      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13147      ;;
13148
13149    irix5* | irix6* | nonstopux*)
13150      lt_prog_compiler_wl_F77='-Wl,'
13151      # PIC (with -KPIC) is the default.
13152      lt_prog_compiler_static_F77='-non_shared'
13153      ;;
13154
13155    newsos6)
13156      lt_prog_compiler_pic_F77='-KPIC'
13157      lt_prog_compiler_static_F77='-Bstatic'
13158      ;;
13159
13160    linux*)
13161      case $cc_basename in
13162      icc* | ecc*)
13163	lt_prog_compiler_wl_F77='-Wl,'
13164	lt_prog_compiler_pic_F77='-KPIC'
13165	lt_prog_compiler_static_F77='-static'
13166        ;;
13167      pgcc* | pgf77* | pgf90* | pgf95*)
13168        # Portland Group compilers (*not* the Pentium gcc compiler,
13169	# which looks to be a dead project)
13170	lt_prog_compiler_wl_F77='-Wl,'
13171	lt_prog_compiler_pic_F77='-fpic'
13172	lt_prog_compiler_static_F77='-Bstatic'
13173        ;;
13174      ccc*)
13175        lt_prog_compiler_wl_F77='-Wl,'
13176        # All Alpha code is PIC.
13177        lt_prog_compiler_static_F77='-non_shared'
13178        ;;
13179      esac
13180      ;;
13181
13182    osf3* | osf4* | osf5*)
13183      lt_prog_compiler_wl_F77='-Wl,'
13184      # All OSF/1 code is PIC.
13185      lt_prog_compiler_static_F77='-non_shared'
13186      ;;
13187
13188    solaris*)
13189      lt_prog_compiler_pic_F77='-KPIC'
13190      lt_prog_compiler_static_F77='-Bstatic'
13191      case $cc_basename in
13192      f77* | f90* | f95*)
13193	lt_prog_compiler_wl_F77='-Qoption ld ';;
13194      *)
13195	lt_prog_compiler_wl_F77='-Wl,';;
13196      esac
13197      ;;
13198
13199    sunos4*)
13200      lt_prog_compiler_wl_F77='-Qoption ld '
13201      lt_prog_compiler_pic_F77='-PIC'
13202      lt_prog_compiler_static_F77='-Bstatic'
13203      ;;
13204
13205    sysv4 | sysv4.2uw2* | sysv4.3*)
13206      lt_prog_compiler_wl_F77='-Wl,'
13207      lt_prog_compiler_pic_F77='-KPIC'
13208      lt_prog_compiler_static_F77='-Bstatic'
13209      ;;
13210
13211    sysv4*MP*)
13212      if test -d /usr/nec ;then
13213	lt_prog_compiler_pic_F77='-Kconform_pic'
13214	lt_prog_compiler_static_F77='-Bstatic'
13215      fi
13216      ;;
13217
13218    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13219      lt_prog_compiler_wl_F77='-Wl,'
13220      lt_prog_compiler_pic_F77='-KPIC'
13221      lt_prog_compiler_static_F77='-Bstatic'
13222      ;;
13223
13224    unicos*)
13225      lt_prog_compiler_wl_F77='-Wl,'
13226      lt_prog_compiler_can_build_shared_F77=no
13227      ;;
13228
13229    uts4*)
13230      lt_prog_compiler_pic_F77='-pic'
13231      lt_prog_compiler_static_F77='-Bstatic'
13232      ;;
13233
13234    *)
13235      lt_prog_compiler_can_build_shared_F77=no
13236      ;;
13237    esac
13238  fi
13239
13240echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13241echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13242
13243#
13244# Check to make sure the PIC flag actually works.
13245#
13246if test -n "$lt_prog_compiler_pic_F77"; then
13247
13248echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13249echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13250if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13251  echo $ECHO_N "(cached) $ECHO_C" >&6
13252else
13253  lt_prog_compiler_pic_works_F77=no
13254  ac_outfile=conftest.$ac_objext
13255   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13256   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13257   # Insert the option either (1) after the last *FLAGS variable, or
13258   # (2) before a word containing "conftest.", or (3) at the end.
13259   # Note that $ac_compile itself does not contain backslashes and begins
13260   # with a dollar sign (not a hyphen), so the echo should work correctly.
13261   # The option is referenced via a variable to avoid confusing sed.
13262   lt_compile=`echo "$ac_compile" | $SED \
13263   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13264   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13265   -e 's:$: $lt_compiler_flag:'`
13266   (eval echo "\"\$as_me:13266: $lt_compile\"" >&5)
13267   (eval "$lt_compile" 2>conftest.err)
13268   ac_status=$?
13269   cat conftest.err >&5
13270   echo "$as_me:13270: \$? = $ac_status" >&5
13271   if (exit $ac_status) && test -s "$ac_outfile"; then
13272     # The compiler can only warn and ignore the option if not recognized
13273     # So say no if there are warnings other than the usual output.
13274     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13275     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13276     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13277       lt_prog_compiler_pic_works_F77=yes
13278     fi
13279   fi
13280   $rm conftest*
13281
13282fi
13283echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13284echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13285
13286if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13287    case $lt_prog_compiler_pic_F77 in
13288     "" | " "*) ;;
13289     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13290     esac
13291else
13292    lt_prog_compiler_pic_F77=
13293     lt_prog_compiler_can_build_shared_F77=no
13294fi
13295
13296fi
13297case $host_os in
13298  # For platforms which do not support PIC, -DPIC is meaningless:
13299  *djgpp*)
13300    lt_prog_compiler_pic_F77=
13301    ;;
13302  *)
13303    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13304    ;;
13305esac
13306
13307#
13308# Check to make sure the static flag actually works.
13309#
13310wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13311echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13312echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13313if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13314  echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316  lt_prog_compiler_static_works_F77=no
13317   save_LDFLAGS="$LDFLAGS"
13318   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13319   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13320   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13321     # The linker can only warn and ignore the option if not recognized
13322     # So say no if there are warnings
13323     if test -s conftest.err; then
13324       # Append any errors to the config.log.
13325       cat conftest.err 1>&5
13326       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13327       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13328       if diff conftest.exp conftest.er2 >/dev/null; then
13329         lt_prog_compiler_static_works_F77=yes
13330       fi
13331     else
13332       lt_prog_compiler_static_works_F77=yes
13333     fi
13334   fi
13335   $rm conftest*
13336   LDFLAGS="$save_LDFLAGS"
13337
13338fi
13339echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13340echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13341
13342if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13343    :
13344else
13345    lt_prog_compiler_static_F77=
13346fi
13347
13348
13349echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13350echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13351if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13352  echo $ECHO_N "(cached) $ECHO_C" >&6
13353else
13354  lt_cv_prog_compiler_c_o_F77=no
13355   $rm -r conftest 2>/dev/null
13356   mkdir conftest
13357   cd conftest
13358   mkdir out
13359   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13360
13361   lt_compiler_flag="-o out/conftest2.$ac_objext"
13362   # Insert the option either (1) after the last *FLAGS variable, or
13363   # (2) before a word containing "conftest.", or (3) at the end.
13364   # Note that $ac_compile itself does not contain backslashes and begins
13365   # with a dollar sign (not a hyphen), so the echo should work correctly.
13366   lt_compile=`echo "$ac_compile" | $SED \
13367   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13368   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13369   -e 's:$: $lt_compiler_flag:'`
13370   (eval echo "\"\$as_me:13370: $lt_compile\"" >&5)
13371   (eval "$lt_compile" 2>out/conftest.err)
13372   ac_status=$?
13373   cat out/conftest.err >&5
13374   echo "$as_me:13374: \$? = $ac_status" >&5
13375   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13376   then
13377     # The compiler can only warn and ignore the option if not recognized
13378     # So say no if there are warnings
13379     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13380     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13381     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13382       lt_cv_prog_compiler_c_o_F77=yes
13383     fi
13384   fi
13385   chmod u+w . 2>&5
13386   $rm conftest*
13387   # SGI C++ compiler will create directory out/ii_files/ for
13388   # template instantiation
13389   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13390   $rm out/* && rmdir out
13391   cd ..
13392   rmdir conftest
13393   $rm conftest*
13394
13395fi
13396echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13397echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13398
13399
13400hard_links="nottested"
13401if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13402  # do not overwrite the value of need_locks provided by the user
13403  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13404echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13405  hard_links=yes
13406  $rm conftest*
13407  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13408  touch conftest.a
13409  ln conftest.a conftest.b 2>&5 || hard_links=no
13410  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13411  echo "$as_me:$LINENO: result: $hard_links" >&5
13412echo "${ECHO_T}$hard_links" >&6
13413  if test "$hard_links" = no; then
13414    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13415echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13416    need_locks=warn
13417  fi
13418else
13419  need_locks=no
13420fi
13421
13422echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13423echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13424
13425  runpath_var=
13426  allow_undefined_flag_F77=
13427  enable_shared_with_static_runtimes_F77=no
13428  archive_cmds_F77=
13429  archive_expsym_cmds_F77=
13430  old_archive_From_new_cmds_F77=
13431  old_archive_from_expsyms_cmds_F77=
13432  export_dynamic_flag_spec_F77=
13433  whole_archive_flag_spec_F77=
13434  thread_safe_flag_spec_F77=
13435  hardcode_libdir_flag_spec_F77=
13436  hardcode_libdir_flag_spec_ld_F77=
13437  hardcode_libdir_separator_F77=
13438  hardcode_direct_F77=no
13439  hardcode_minus_L_F77=no
13440  hardcode_shlibpath_var_F77=unsupported
13441  link_all_deplibs_F77=unknown
13442  hardcode_automatic_F77=no
13443  module_cmds_F77=
13444  module_expsym_cmds_F77=
13445  always_export_symbols_F77=no
13446  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13447  # include_expsyms should be a list of space-separated symbols to be *always*
13448  # included in the symbol list
13449  include_expsyms_F77=
13450  # exclude_expsyms can be an extended regexp of symbols to exclude
13451  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13452  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13453  # as well as any symbol that contains `d'.
13454  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13455  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13456  # platforms (ab)use it in PIC code, but their linkers get confused if
13457  # the symbol is explicitly referenced.  Since portable code cannot
13458  # rely on this symbol name, it's probably fine to never include it in
13459  # preloaded symbol tables.
13460  extract_expsyms_cmds=
13461  # Just being paranoid about ensuring that cc_basename is set.
13462  for cc_temp in $compiler""; do
13463  case $cc_temp in
13464    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13465    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13466    \-*) ;;
13467    *) break;;
13468  esac
13469done
13470cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13471
13472  case $host_os in
13473  cygwin* | mingw* | pw32*)
13474    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13475    # When not using gcc, we currently assume that we are using
13476    # Microsoft Visual C++.
13477    if test "$GCC" != yes; then
13478      with_gnu_ld=no
13479    fi
13480    ;;
13481  interix*)
13482    # we just hope/assume this is gcc and not c89 (= MSVC++)
13483    with_gnu_ld=yes
13484    ;;
13485  openbsd*)
13486    with_gnu_ld=no
13487    ;;
13488  esac
13489
13490  ld_shlibs_F77=yes
13491  if test "$with_gnu_ld" = yes; then
13492    # If archive_cmds runs LD, not CC, wlarc should be empty
13493    wlarc='${wl}'
13494
13495    # Set some defaults for GNU ld with shared library support. These
13496    # are reset later if shared libraries are not supported. Putting them
13497    # here allows them to be overridden if necessary.
13498    runpath_var=LD_RUN_PATH
13499    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13500    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13501    # ancient GNU ld didn't support --whole-archive et. al.
13502    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13503	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13504      else
13505  	whole_archive_flag_spec_F77=
13506    fi
13507    supports_anon_versioning=no
13508    case `$LD -v 2>/dev/null` in
13509      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13510      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13511      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13512      *\ 2.11.*) ;; # other 2.11 versions
13513      *) supports_anon_versioning=yes ;;
13514    esac
13515
13516    # See if GNU ld supports shared libraries.
13517    case $host_os in
13518    aix3* | aix4* | aix5*)
13519      # On AIX/PPC, the GNU linker is very broken
13520      if test "$host_cpu" != ia64; then
13521	ld_shlibs_F77=no
13522	cat <<EOF 1>&2
13523
13524*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13525*** to be unable to reliably create shared libraries on AIX.
13526*** Therefore, libtool is disabling shared libraries support.  If you
13527*** really care for shared libraries, you may want to modify your PATH
13528*** so that a non-GNU linker is found, and then restart.
13529
13530EOF
13531      fi
13532      ;;
13533
13534    amigaos*)
13535      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)'
13536      hardcode_libdir_flag_spec_F77='-L$libdir'
13537      hardcode_minus_L_F77=yes
13538
13539      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13540      # that the semantics of dynamic libraries on AmigaOS, at least up
13541      # to version 4, is to share data among multiple programs linked
13542      # with the same dynamic library.  Since this doesn't match the
13543      # behavior of shared libraries on other platforms, we can't use
13544      # them.
13545      ld_shlibs_F77=no
13546      ;;
13547
13548    beos*)
13549      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13550	allow_undefined_flag_F77=unsupported
13551	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13552	# support --undefined.  This deserves some investigation.  FIXME
13553	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13554      else
13555	ld_shlibs_F77=no
13556      fi
13557      ;;
13558
13559    cygwin* | mingw* | pw32*)
13560      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13561      # as there is no search path for DLLs.
13562      hardcode_libdir_flag_spec_F77='-L$libdir'
13563      allow_undefined_flag_F77=unsupported
13564      always_export_symbols_F77=no
13565      enable_shared_with_static_runtimes_F77=yes
13566      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13567
13568      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13569        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13570	# If the export-symbols file already is a .def file (1st line
13571	# is EXPORTS), use it as is; otherwise, prepend...
13572	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13573	  cp $export_symbols $output_objdir/$soname.def;
13574	else
13575	  echo EXPORTS > $output_objdir/$soname.def;
13576	  cat $export_symbols >> $output_objdir/$soname.def;
13577	fi~
13578	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13579      else
13580	ld_shlibs_F77=no
13581      fi
13582      ;;
13583
13584    interix3*)
13585      hardcode_direct_F77=no
13586      hardcode_shlibpath_var_F77=no
13587      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13588      export_dynamic_flag_spec_F77='${wl}-E'
13589      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13590      # Instead, shared libraries are loaded at an image base (0x10000000 by
13591      # default) and relocated if they conflict, which is a slow very memory
13592      # consuming and fragmenting process.  To avoid this, we pick a random,
13593      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13594      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13595      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13596      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13597      ;;
13598
13599    linux*)
13600      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13601	tmp_addflag=
13602	case $cc_basename,$host_cpu in
13603	pgcc*)				# Portland Group C compiler
13604	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13605	  tmp_addflag=' $pic_flag'
13606	  ;;
13607	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13608	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13609	  tmp_addflag=' $pic_flag -Mnomain' ;;
13610	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13611	  tmp_addflag=' -i_dynamic' ;;
13612	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13613	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13614	ifc* | ifort*)			# Intel Fortran compiler
13615	  tmp_addflag=' -nofor_main' ;;
13616	esac
13617	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618
13619	if test $supports_anon_versioning = yes; then
13620	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13621  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13622  $echo "local: *; };" >> $output_objdir/$libname.ver~
13623	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13624	fi
13625      else
13626	ld_shlibs_F77=no
13627      fi
13628      ;;
13629
13630    netbsd*)
13631      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13632	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13633	wlarc=
13634      else
13635	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13636	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13637      fi
13638      ;;
13639
13640    solaris*)
13641      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13642	ld_shlibs_F77=no
13643	cat <<EOF 1>&2
13644
13645*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13646*** create shared libraries on Solaris systems.  Therefore, libtool
13647*** is disabling shared libraries support.  We urge you to upgrade GNU
13648*** binutils to release 2.9.1 or newer.  Another option is to modify
13649*** your PATH or compiler configuration so that the native linker is
13650*** used, and then restart.
13651
13652EOF
13653      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13654	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13655	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13656      else
13657	ld_shlibs_F77=no
13658      fi
13659      ;;
13660
13661    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13662      case `$LD -v 2>&1` in
13663        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13664	ld_shlibs_F77=no
13665	cat <<_LT_EOF 1>&2
13666
13667*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13668*** reliably create shared libraries on SCO systems.  Therefore, libtool
13669*** is disabling shared libraries support.  We urge you to upgrade GNU
13670*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13671*** your PATH or compiler configuration so that the native linker is
13672*** used, and then restart.
13673
13674_LT_EOF
13675	;;
13676	*)
13677	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13678	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13679	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13680	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13681	  else
13682	    ld_shlibs_F77=no
13683	  fi
13684	;;
13685      esac
13686      ;;
13687
13688    sunos4*)
13689      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13690      wlarc=
13691      hardcode_direct_F77=yes
13692      hardcode_shlibpath_var_F77=no
13693      ;;
13694
13695    *)
13696      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13697	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13698	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13699      else
13700	ld_shlibs_F77=no
13701      fi
13702      ;;
13703    esac
13704
13705    if test "$ld_shlibs_F77" = no; then
13706      runpath_var=
13707      hardcode_libdir_flag_spec_F77=
13708      export_dynamic_flag_spec_F77=
13709      whole_archive_flag_spec_F77=
13710    fi
13711  else
13712    # PORTME fill in a description of your system's linker (not GNU ld)
13713    case $host_os in
13714    aix3*)
13715      allow_undefined_flag_F77=unsupported
13716      always_export_symbols_F77=yes
13717      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'
13718      # Note: this linker hardcodes the directories in LIBPATH if there
13719      # are no directories specified by -L.
13720      hardcode_minus_L_F77=yes
13721      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13722	# Neither direct hardcoding nor static linking is supported with a
13723	# broken collect2.
13724	hardcode_direct_F77=unsupported
13725      fi
13726      ;;
13727
13728    aix4* | aix5*)
13729      if test "$host_cpu" = ia64; then
13730	# On IA64, the linker does run time linking by default, so we don't
13731	# have to do anything special.
13732	aix_use_runtimelinking=no
13733	exp_sym_flag='-Bexport'
13734	no_entry_flag=""
13735      else
13736	# If we're using GNU nm, then we don't want the "-C" option.
13737	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13738	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13739	  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'
13740	else
13741	  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'
13742	fi
13743	aix_use_runtimelinking=no
13744
13745	# Test if we are trying to use run time linking or normal
13746	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13747	# need to do runtime linking.
13748	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13749	  for ld_flag in $LDFLAGS; do
13750  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13751  	    aix_use_runtimelinking=yes
13752  	    break
13753  	  fi
13754	  done
13755	  ;;
13756	esac
13757
13758	exp_sym_flag='-bexport'
13759	no_entry_flag='-bnoentry'
13760      fi
13761
13762      # When large executables or shared objects are built, AIX ld can
13763      # have problems creating the table of contents.  If linking a library
13764      # or program results in "error TOC overflow" add -mminimal-toc to
13765      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13766      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13767
13768      archive_cmds_F77=''
13769      hardcode_direct_F77=yes
13770      hardcode_libdir_separator_F77=':'
13771      link_all_deplibs_F77=yes
13772
13773      if test "$GCC" = yes; then
13774	case $host_os in aix4.[012]|aix4.[012].*)
13775	# We only want to do this on AIX 4.2 and lower, the check
13776	# below for broken collect2 doesn't work under 4.3+
13777	  collect2name=`${CC} -print-prog-name=collect2`
13778	  if test -f "$collect2name" && \
13779  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13780	  then
13781  	  # We have reworked collect2
13782  	  hardcode_direct_F77=yes
13783	  else
13784  	  # We have old collect2
13785  	  hardcode_direct_F77=unsupported
13786  	  # It fails to find uninstalled libraries when the uninstalled
13787  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13788  	  # to unsupported forces relinking
13789  	  hardcode_minus_L_F77=yes
13790  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13791  	  hardcode_libdir_separator_F77=
13792	  fi
13793	  ;;
13794	esac
13795	shared_flag='-shared'
13796	if test "$aix_use_runtimelinking" = yes; then
13797	  shared_flag="$shared_flag "'${wl}-G'
13798	fi
13799      else
13800	# not using gcc
13801	if test "$host_cpu" = ia64; then
13802  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13803  	# chokes on -Wl,-G. The following line is correct:
13804	  shared_flag='-G'
13805	else
13806	  if test "$aix_use_runtimelinking" = yes; then
13807	    shared_flag='${wl}-G'
13808	  else
13809	    shared_flag='${wl}-bM:SRE'
13810	  fi
13811	fi
13812      fi
13813
13814      # It seems that -bexpall does not export symbols beginning with
13815      # underscore (_), so it is better to generate a list of symbols to export.
13816      always_export_symbols_F77=yes
13817      if test "$aix_use_runtimelinking" = yes; then
13818	# Warning - without using the other runtime loading flags (-brtl),
13819	# -berok will link without error, but may produce a broken library.
13820	allow_undefined_flag_F77='-berok'
13821       # Determine the default libpath from the value encoded in an empty executable.
13822       cat >conftest.$ac_ext <<_ACEOF
13823      program main
13824
13825      end
13826_ACEOF
13827rm -f conftest.$ac_objext conftest$ac_exeext
13828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13829  (eval $ac_link) 2>conftest.er1
13830  ac_status=$?
13831  grep -v '^ *+' conftest.er1 >conftest.err
13832  rm -f conftest.er1
13833  cat conftest.err >&5
13834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835  (exit $ac_status); } &&
13836	 { ac_try='test -z "$ac_f77_werror_flag"
13837			 || test ! -s conftest.err'
13838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839  (eval $ac_try) 2>&5
13840  ac_status=$?
13841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842  (exit $ac_status); }; } &&
13843	 { ac_try='test -s conftest$ac_exeext'
13844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845  (eval $ac_try) 2>&5
13846  ac_status=$?
13847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848  (exit $ac_status); }; }; then
13849
13850aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13851}'`
13852# Check for a 64-bit object if we didn't find anything.
13853if 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; }
13854}'`; fi
13855else
13856  echo "$as_me: failed program was:" >&5
13857sed 's/^/| /' conftest.$ac_ext >&5
13858
13859fi
13860rm -f conftest.err conftest.$ac_objext \
13861      conftest$ac_exeext conftest.$ac_ext
13862if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13863
13864       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13865	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13866       else
13867	if test "$host_cpu" = ia64; then
13868	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13869	  allow_undefined_flag_F77="-z nodefs"
13870	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13871	else
13872	 # Determine the default libpath from the value encoded in an empty executable.
13873	 cat >conftest.$ac_ext <<_ACEOF
13874      program main
13875
13876      end
13877_ACEOF
13878rm -f conftest.$ac_objext conftest$ac_exeext
13879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13880  (eval $ac_link) 2>conftest.er1
13881  ac_status=$?
13882  grep -v '^ *+' conftest.er1 >conftest.err
13883  rm -f conftest.er1
13884  cat conftest.err >&5
13885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886  (exit $ac_status); } &&
13887	 { ac_try='test -z "$ac_f77_werror_flag"
13888			 || test ! -s conftest.err'
13889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890  (eval $ac_try) 2>&5
13891  ac_status=$?
13892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893  (exit $ac_status); }; } &&
13894	 { ac_try='test -s conftest$ac_exeext'
13895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896  (eval $ac_try) 2>&5
13897  ac_status=$?
13898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899  (exit $ac_status); }; }; then
13900
13901aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13902}'`
13903# Check for a 64-bit object if we didn't find anything.
13904if 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; }
13905}'`; fi
13906else
13907  echo "$as_me: failed program was:" >&5
13908sed 's/^/| /' conftest.$ac_ext >&5
13909
13910fi
13911rm -f conftest.err conftest.$ac_objext \
13912      conftest$ac_exeext conftest.$ac_ext
13913if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13914
13915	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13916	  # Warning - without using the other run time loading flags,
13917	  # -berok will link without error, but may produce a broken library.
13918	  no_undefined_flag_F77=' ${wl}-bernotok'
13919	  allow_undefined_flag_F77=' ${wl}-berok'
13920	  # Exported symbols can be pulled into shared objects from archives
13921	  whole_archive_flag_spec_F77='$convenience'
13922	  archive_cmds_need_lc_F77=yes
13923	  # This is similar to how AIX traditionally builds its shared libraries.
13924	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13925	fi
13926      fi
13927      ;;
13928
13929    amigaos*)
13930      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)'
13931      hardcode_libdir_flag_spec_F77='-L$libdir'
13932      hardcode_minus_L_F77=yes
13933      # see comment about different semantics on the GNU ld section
13934      ld_shlibs_F77=no
13935      ;;
13936
13937    bsdi[45]*)
13938      export_dynamic_flag_spec_F77=-rdynamic
13939      ;;
13940
13941    cygwin* | mingw* | pw32*)
13942      # When not using gcc, we currently assume that we are using
13943      # Microsoft Visual C++.
13944      # hardcode_libdir_flag_spec is actually meaningless, as there is
13945      # no search path for DLLs.
13946      hardcode_libdir_flag_spec_F77=' '
13947      allow_undefined_flag_F77=unsupported
13948      # Tell ltmain to make .lib files, not .a files.
13949      libext=lib
13950      # Tell ltmain to make .dll files, not .so files.
13951      shrext_cmds=".dll"
13952      # FIXME: Setting linknames here is a bad hack.
13953      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13954      # The linker will automatically build a .lib file if we build a DLL.
13955      old_archive_From_new_cmds_F77='true'
13956      # FIXME: Should let the user specify the lib program.
13957      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13958      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13959      enable_shared_with_static_runtimes_F77=yes
13960      ;;
13961
13962    darwin* | rhapsody*)
13963      case $host_os in
13964        rhapsody* | darwin1.[012])
13965         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13966         ;;
13967       *) # Darwin 1.3 on
13968         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13969           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13970         else
13971           case ${MACOSX_DEPLOYMENT_TARGET} in
13972             10.[012])
13973               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13974               ;;
13975             10.*)
13976               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13977               ;;
13978           esac
13979         fi
13980         ;;
13981      esac
13982      archive_cmds_need_lc_F77=no
13983      hardcode_direct_F77=no
13984      hardcode_automatic_F77=yes
13985      hardcode_shlibpath_var_F77=unsupported
13986      whole_archive_flag_spec_F77=''
13987      link_all_deplibs_F77=yes
13988    if test "$GCC" = yes ; then
13989    	output_verbose_link_cmd='echo'
13990        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13991      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13992      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13993      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13994      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}'
13995    else
13996      case $cc_basename in
13997        xlc*)
13998         output_verbose_link_cmd='echo'
13999         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14000         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14001          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14002         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14003          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}'
14004          ;;
14005       *)
14006         ld_shlibs_F77=no
14007          ;;
14008      esac
14009    fi
14010      ;;
14011
14012    dgux*)
14013      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14014      hardcode_libdir_flag_spec_F77='-L$libdir'
14015      hardcode_shlibpath_var_F77=no
14016      ;;
14017
14018    freebsd1*)
14019      ld_shlibs_F77=no
14020      ;;
14021
14022    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14023    # support.  Future versions do this automatically, but an explicit c++rt0.o
14024    # does not break anything, and helps significantly (at the cost of a little
14025    # extra space).
14026    freebsd2.2*)
14027      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14028      hardcode_libdir_flag_spec_F77='-R$libdir'
14029      hardcode_direct_F77=yes
14030      hardcode_shlibpath_var_F77=no
14031      ;;
14032
14033    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14034    freebsd2*)
14035      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14036      hardcode_direct_F77=yes
14037      hardcode_minus_L_F77=yes
14038      hardcode_shlibpath_var_F77=no
14039      ;;
14040
14041    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14042    freebsd* | kfreebsd*-gnu | dragonfly*)
14043      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14044      hardcode_libdir_flag_spec_F77='-R$libdir'
14045      hardcode_direct_F77=yes
14046      hardcode_shlibpath_var_F77=no
14047      ;;
14048
14049    hpux9*)
14050      if test "$GCC" = yes; then
14051	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'
14052      else
14053	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'
14054      fi
14055      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14056      hardcode_libdir_separator_F77=:
14057      hardcode_direct_F77=yes
14058
14059      # hardcode_minus_L: Not really in the search PATH,
14060      # but as the default location of the library.
14061      hardcode_minus_L_F77=yes
14062      export_dynamic_flag_spec_F77='${wl}-E'
14063      ;;
14064
14065    hpux10*)
14066      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14067	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14068      else
14069	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14070      fi
14071      if test "$with_gnu_ld" = no; then
14072	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14073	hardcode_libdir_separator_F77=:
14074
14075	hardcode_direct_F77=yes
14076	export_dynamic_flag_spec_F77='${wl}-E'
14077
14078	# hardcode_minus_L: Not really in the search PATH,
14079	# but as the default location of the library.
14080	hardcode_minus_L_F77=yes
14081      fi
14082      ;;
14083
14084    hpux11*)
14085      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14086	case $host_cpu in
14087	hppa*64*)
14088	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14089	  ;;
14090	ia64*)
14091	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14092	  ;;
14093	*)
14094	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14095	  ;;
14096	esac
14097      else
14098	case $host_cpu in
14099	hppa*64*)
14100	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14101	  ;;
14102	ia64*)
14103	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14104	  ;;
14105	*)
14106	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14107	  ;;
14108	esac
14109      fi
14110      if test "$with_gnu_ld" = no; then
14111	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14112	hardcode_libdir_separator_F77=:
14113
14114	case $host_cpu in
14115	hppa*64*|ia64*)
14116	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14117	  hardcode_direct_F77=no
14118	  hardcode_shlibpath_var_F77=no
14119	  ;;
14120	*)
14121	  hardcode_direct_F77=yes
14122	  export_dynamic_flag_spec_F77='${wl}-E'
14123
14124	  # hardcode_minus_L: Not really in the search PATH,
14125	  # but as the default location of the library.
14126	  hardcode_minus_L_F77=yes
14127	  ;;
14128	esac
14129      fi
14130      ;;
14131
14132    irix5* | irix6* | nonstopux*)
14133      if test "$GCC" = yes; then
14134	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'
14135      else
14136	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'
14137	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14138      fi
14139      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14140      hardcode_libdir_separator_F77=:
14141      link_all_deplibs_F77=yes
14142      ;;
14143
14144    netbsd*)
14145      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14146	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14147      else
14148	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14149      fi
14150      hardcode_libdir_flag_spec_F77='-R$libdir'
14151      hardcode_direct_F77=yes
14152      hardcode_shlibpath_var_F77=no
14153      ;;
14154
14155    newsos6)
14156      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14157      hardcode_direct_F77=yes
14158      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14159      hardcode_libdir_separator_F77=:
14160      hardcode_shlibpath_var_F77=no
14161      ;;
14162
14163    openbsd*)
14164      hardcode_direct_F77=yes
14165      hardcode_shlibpath_var_F77=no
14166      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14167	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14168	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14169	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14170	export_dynamic_flag_spec_F77='${wl}-E'
14171      else
14172       case $host_os in
14173	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14174	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14175	   hardcode_libdir_flag_spec_F77='-R$libdir'
14176	   ;;
14177	 *)
14178	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14179	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14180	   ;;
14181       esac
14182      fi
14183      ;;
14184
14185    os2*)
14186      hardcode_libdir_flag_spec_F77='-L$libdir'
14187      hardcode_minus_L_F77=yes
14188      allow_undefined_flag_F77=unsupported
14189      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'
14190      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14191      ;;
14192
14193    osf3*)
14194      if test "$GCC" = yes; then
14195	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14196	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'
14197      else
14198	allow_undefined_flag_F77=' -expect_unresolved \*'
14199	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'
14200      fi
14201      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14202      hardcode_libdir_separator_F77=:
14203      ;;
14204
14205    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14206      if test "$GCC" = yes; then
14207	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14208	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'
14209	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14210      else
14211	allow_undefined_flag_F77=' -expect_unresolved \*'
14212	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'
14213	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~
14214	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14215
14216	# Both c and cxx compiler support -rpath directly
14217	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14218      fi
14219      hardcode_libdir_separator_F77=:
14220      ;;
14221
14222    solaris*)
14223      no_undefined_flag_F77=' -z text'
14224      if test "$GCC" = yes; then
14225	wlarc='${wl}'
14226	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14227	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14228	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14229      else
14230	wlarc=''
14231	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14233  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14234      fi
14235      hardcode_libdir_flag_spec_F77='-R$libdir'
14236      hardcode_shlibpath_var_F77=no
14237      case $host_os in
14238      solaris2.[0-5] | solaris2.[0-5].*) ;;
14239      *)
14240 	# The compiler driver will combine linker options so we
14241 	# cannot just pass the convience library names through
14242 	# without $wl, iff we do not link with $LD.
14243 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14244 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14245 	case $wlarc in
14246 	'')
14247 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14248 	*)
14249 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14250 	esac ;;
14251      esac
14252      link_all_deplibs_F77=yes
14253      ;;
14254
14255    sunos4*)
14256      if test "x$host_vendor" = xsequent; then
14257	# Use $CC to link under sequent, because it throws in some extra .o
14258	# files that make .init and .fini sections work.
14259	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14260      else
14261	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14262      fi
14263      hardcode_libdir_flag_spec_F77='-L$libdir'
14264      hardcode_direct_F77=yes
14265      hardcode_minus_L_F77=yes
14266      hardcode_shlibpath_var_F77=no
14267      ;;
14268
14269    sysv4)
14270      case $host_vendor in
14271	sni)
14272	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14273	  hardcode_direct_F77=yes # is this really true???
14274	;;
14275	siemens)
14276	  ## LD is ld it makes a PLAMLIB
14277	  ## CC just makes a GrossModule.
14278	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14279	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14280	  hardcode_direct_F77=no
14281        ;;
14282	motorola)
14283	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14285	;;
14286      esac
14287      runpath_var='LD_RUN_PATH'
14288      hardcode_shlibpath_var_F77=no
14289      ;;
14290
14291    sysv4.3*)
14292      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14293      hardcode_shlibpath_var_F77=no
14294      export_dynamic_flag_spec_F77='-Bexport'
14295      ;;
14296
14297    sysv4*MP*)
14298      if test -d /usr/nec; then
14299	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14300	hardcode_shlibpath_var_F77=no
14301	runpath_var=LD_RUN_PATH
14302	hardcode_runpath_var=yes
14303	ld_shlibs_F77=yes
14304      fi
14305      ;;
14306
14307    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14308      no_undefined_flag_F77='${wl}-z,text'
14309      archive_cmds_need_lc_F77=no
14310      hardcode_shlibpath_var_F77=no
14311      runpath_var='LD_RUN_PATH'
14312
14313      if test "$GCC" = yes; then
14314	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14315	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14316      else
14317	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14318	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14319      fi
14320      ;;
14321
14322    sysv5* | sco3.2v5* | sco5v6*)
14323      # Note: We can NOT use -z defs as we might desire, because we do not
14324      # link with -lc, and that would cause any symbols used from libc to
14325      # always be unresolved, which means just about no library would
14326      # ever link correctly.  If we're not using GNU ld we use -z text
14327      # though, which does catch some bad symbols but isn't as heavy-handed
14328      # as -z defs.
14329      no_undefined_flag_F77='${wl}-z,text'
14330      allow_undefined_flag_F77='${wl}-z,nodefs'
14331      archive_cmds_need_lc_F77=no
14332      hardcode_shlibpath_var_F77=no
14333      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14334      hardcode_libdir_separator_F77=':'
14335      link_all_deplibs_F77=yes
14336      export_dynamic_flag_spec_F77='${wl}-Bexport'
14337      runpath_var='LD_RUN_PATH'
14338
14339      if test "$GCC" = yes; then
14340	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14341	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14342      else
14343	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14344	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14345      fi
14346      ;;
14347
14348    uts4*)
14349      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14350      hardcode_libdir_flag_spec_F77='-L$libdir'
14351      hardcode_shlibpath_var_F77=no
14352      ;;
14353
14354    *)
14355      ld_shlibs_F77=no
14356      ;;
14357    esac
14358  fi
14359
14360echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14361echo "${ECHO_T}$ld_shlibs_F77" >&6
14362test "$ld_shlibs_F77" = no && can_build_shared=no
14363
14364#
14365# Do we need to explicitly link libc?
14366#
14367case "x$archive_cmds_need_lc_F77" in
14368x|xyes)
14369  # Assume -lc should be added
14370  archive_cmds_need_lc_F77=yes
14371
14372  if test "$enable_shared" = yes && test "$GCC" = yes; then
14373    case $archive_cmds_F77 in
14374    *'~'*)
14375      # FIXME: we may have to deal with multi-command sequences.
14376      ;;
14377    '$CC '*)
14378      # Test whether the compiler implicitly links with -lc since on some
14379      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14380      # to ld, don't add -lc before -lgcc.
14381      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14382echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14383      $rm conftest*
14384      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14385
14386      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387  (eval $ac_compile) 2>&5
14388  ac_status=$?
14389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390  (exit $ac_status); } 2>conftest.err; then
14391        soname=conftest
14392        lib=conftest
14393        libobjs=conftest.$ac_objext
14394        deplibs=
14395        wl=$lt_prog_compiler_wl_F77
14396	pic_flag=$lt_prog_compiler_pic_F77
14397        compiler_flags=-v
14398        linker_flags=-v
14399        verstring=
14400        output_objdir=.
14401        libname=conftest
14402        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14403        allow_undefined_flag_F77=
14404        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14405  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14406  ac_status=$?
14407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408  (exit $ac_status); }
14409        then
14410	  archive_cmds_need_lc_F77=no
14411        else
14412	  archive_cmds_need_lc_F77=yes
14413        fi
14414        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14415      else
14416        cat conftest.err 1>&5
14417      fi
14418      $rm conftest*
14419      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14420echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14421      ;;
14422    esac
14423  fi
14424  ;;
14425esac
14426
14427echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14428echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14429library_names_spec=
14430libname_spec='lib$name'
14431soname_spec=
14432shrext_cmds=".so"
14433postinstall_cmds=
14434postuninstall_cmds=
14435finish_cmds=
14436finish_eval=
14437shlibpath_var=
14438shlibpath_overrides_runpath=unknown
14439version_type=none
14440dynamic_linker="$host_os ld.so"
14441sys_lib_dlsearch_path_spec="/lib /usr/lib"
14442if test "$GCC" = yes; then
14443  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14444  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14445    # if the path contains ";" then we assume it to be the separator
14446    # otherwise default to the standard path separator (i.e. ":") - it is
14447    # assumed that no part of a normal pathname contains ";" but that should
14448    # okay in the real world where ";" in dirpaths is itself problematic.
14449    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14450  else
14451    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14452  fi
14453else
14454  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14455fi
14456need_lib_prefix=unknown
14457hardcode_into_libs=no
14458
14459# when you set need_version to no, make sure it does not cause -set_version
14460# flags to be left without arguments
14461need_version=unknown
14462
14463case $host_os in
14464aix3*)
14465  version_type=linux
14466  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14467  shlibpath_var=LIBPATH
14468
14469  # AIX 3 has no versioning support, so we append a major version to the name.
14470  soname_spec='${libname}${release}${shared_ext}$major'
14471  ;;
14472
14473aix4* | aix5*)
14474  version_type=linux
14475  need_lib_prefix=no
14476  need_version=no
14477  hardcode_into_libs=yes
14478  if test "$host_cpu" = ia64; then
14479    # AIX 5 supports IA64
14480    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14481    shlibpath_var=LD_LIBRARY_PATH
14482  else
14483    # With GCC up to 2.95.x, collect2 would create an import file
14484    # for dependence libraries.  The import file would start with
14485    # the line `#! .'.  This would cause the generated library to
14486    # depend on `.', always an invalid library.  This was fixed in
14487    # development snapshots of GCC prior to 3.0.
14488    case $host_os in
14489      aix4 | aix4.[01] | aix4.[01].*)
14490      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14491	   echo ' yes '
14492	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14493	:
14494      else
14495	can_build_shared=no
14496      fi
14497      ;;
14498    esac
14499    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14500    # soname into executable. Probably we can add versioning support to
14501    # collect2, so additional links can be useful in future.
14502    if test "$aix_use_runtimelinking" = yes; then
14503      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14504      # instead of lib<name>.a to let people know that these are not
14505      # typical AIX shared libraries.
14506      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507    else
14508      # We preserve .a as extension for shared libraries through AIX4.2
14509      # and later when we are not doing run time linking.
14510      library_names_spec='${libname}${release}.a $libname.a'
14511      soname_spec='${libname}${release}${shared_ext}$major'
14512    fi
14513    shlibpath_var=LIBPATH
14514  fi
14515  ;;
14516
14517amigaos*)
14518  library_names_spec='$libname.ixlibrary $libname.a'
14519  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14520  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'
14521  ;;
14522
14523beos*)
14524  library_names_spec='${libname}${shared_ext}'
14525  dynamic_linker="$host_os ld.so"
14526  shlibpath_var=LIBRARY_PATH
14527  ;;
14528
14529bsdi[45]*)
14530  version_type=linux
14531  need_version=no
14532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14533  soname_spec='${libname}${release}${shared_ext}$major'
14534  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14535  shlibpath_var=LD_LIBRARY_PATH
14536  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14537  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14538  # the default ld.so.conf also contains /usr/contrib/lib and
14539  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14540  # libtool to hard-code these into programs
14541  ;;
14542
14543cygwin* | mingw* | pw32*)
14544  version_type=windows
14545  shrext_cmds=".dll"
14546  need_version=no
14547  need_lib_prefix=no
14548
14549  case $GCC,$host_os in
14550  yes,cygwin* | yes,mingw* | yes,pw32*)
14551    library_names_spec='$libname.dll.a'
14552    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14553    postinstall_cmds='base_file=`basename \${file}`~
14554      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14555      dldir=$destdir/`dirname \$dlpath`~
14556      test -d \$dldir || mkdir -p \$dldir~
14557      $install_prog $dir/$dlname \$dldir/$dlname~
14558      chmod a+x \$dldir/$dlname'
14559    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14560      dlpath=$dir/\$dldll~
14561       $rm \$dlpath'
14562    shlibpath_overrides_runpath=yes
14563
14564    case $host_os in
14565    cygwin*)
14566      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14567      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14568      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14569      ;;
14570    mingw*)
14571      # MinGW DLLs use traditional 'lib' prefix
14572      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14573      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14574      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14575        # It is most probably a Windows format PATH printed by
14576        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14577        # path with ; separators, and with drive letters. We can handle the
14578        # drive letters (cygwin fileutils understands them), so leave them,
14579        # especially as we might pass files found there to a mingw objdump,
14580        # which wouldn't understand a cygwinified path. Ahh.
14581        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14582      else
14583        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14584      fi
14585      ;;
14586    pw32*)
14587      # pw32 DLLs use 'pw' prefix rather than 'lib'
14588      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14589      ;;
14590    esac
14591    ;;
14592
14593  *)
14594    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14595    ;;
14596  esac
14597  dynamic_linker='Win32 ld.exe'
14598  # FIXME: first we should search . and the directory the executable is in
14599  shlibpath_var=PATH
14600  ;;
14601
14602darwin* | rhapsody*)
14603  dynamic_linker="$host_os dyld"
14604  version_type=darwin
14605  need_lib_prefix=no
14606  need_version=no
14607  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14608  soname_spec='${libname}${release}${major}$shared_ext'
14609  shlibpath_overrides_runpath=yes
14610  shlibpath_var=DYLD_LIBRARY_PATH
14611  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14612  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14613  if test "$GCC" = yes; then
14614    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"`
14615  else
14616    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14617  fi
14618  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14619  ;;
14620
14621dgux*)
14622  version_type=linux
14623  need_lib_prefix=no
14624  need_version=no
14625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14626  soname_spec='${libname}${release}${shared_ext}$major'
14627  shlibpath_var=LD_LIBRARY_PATH
14628  ;;
14629
14630freebsd1*)
14631  dynamic_linker=no
14632  ;;
14633
14634kfreebsd*-gnu)
14635  version_type=linux
14636  need_lib_prefix=no
14637  need_version=no
14638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14639  soname_spec='${libname}${release}${shared_ext}$major'
14640  shlibpath_var=LD_LIBRARY_PATH
14641  shlibpath_overrides_runpath=no
14642  hardcode_into_libs=yes
14643  dynamic_linker='GNU ld.so'
14644  ;;
14645
14646freebsd* | dragonfly*)
14647  # DragonFly does not have aout.  When/if they implement a new
14648  # versioning mechanism, adjust this.
14649  if test -x /usr/bin/objformat; then
14650    objformat=`/usr/bin/objformat`
14651  else
14652    case $host_os in
14653    freebsd[123]*) objformat=aout ;;
14654    *) objformat=elf ;;
14655    esac
14656  fi
14657  version_type=freebsd-$objformat
14658  case $version_type in
14659    freebsd-elf*)
14660      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14661      need_version=no
14662      need_lib_prefix=no
14663      ;;
14664    freebsd-*)
14665      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14666      need_version=yes
14667      ;;
14668  esac
14669  shlibpath_var=LD_LIBRARY_PATH
14670  case $host_os in
14671  freebsd2*)
14672    shlibpath_overrides_runpath=yes
14673    ;;
14674  freebsd3.[01]* | freebsdelf3.[01]*)
14675    shlibpath_overrides_runpath=yes
14676    hardcode_into_libs=yes
14677    ;;
14678  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14679  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14680    shlibpath_overrides_runpath=no
14681    hardcode_into_libs=yes
14682    ;;
14683  freebsd*) # from 4.6 on
14684    shlibpath_overrides_runpath=yes
14685    hardcode_into_libs=yes
14686    ;;
14687  esac
14688  ;;
14689
14690gnu*)
14691  version_type=linux
14692  need_lib_prefix=no
14693  need_version=no
14694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14695  soname_spec='${libname}${release}${shared_ext}$major'
14696  shlibpath_var=LD_LIBRARY_PATH
14697  hardcode_into_libs=yes
14698  ;;
14699
14700hpux9* | hpux10* | hpux11*)
14701  # Give a soname corresponding to the major version so that dld.sl refuses to
14702  # link against other versions.
14703  version_type=sunos
14704  need_lib_prefix=no
14705  need_version=no
14706  case $host_cpu in
14707  ia64*)
14708    shrext_cmds='.so'
14709    hardcode_into_libs=yes
14710    dynamic_linker="$host_os dld.so"
14711    shlibpath_var=LD_LIBRARY_PATH
14712    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14713    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714    soname_spec='${libname}${release}${shared_ext}$major'
14715    if test "X$HPUX_IA64_MODE" = X32; then
14716      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14717    else
14718      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14719    fi
14720    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14721    ;;
14722   hppa*64*)
14723     shrext_cmds='.sl'
14724     hardcode_into_libs=yes
14725     dynamic_linker="$host_os dld.sl"
14726     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14727     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729     soname_spec='${libname}${release}${shared_ext}$major'
14730     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14731     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14732     ;;
14733   *)
14734    shrext_cmds='.sl'
14735    dynamic_linker="$host_os dld.sl"
14736    shlibpath_var=SHLIB_PATH
14737    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14738    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739    soname_spec='${libname}${release}${shared_ext}$major'
14740    ;;
14741  esac
14742  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14743  postinstall_cmds='chmod 555 $lib'
14744  ;;
14745
14746interix3*)
14747  version_type=linux
14748  need_lib_prefix=no
14749  need_version=no
14750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14751  soname_spec='${libname}${release}${shared_ext}$major'
14752  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14753  shlibpath_var=LD_LIBRARY_PATH
14754  shlibpath_overrides_runpath=no
14755  hardcode_into_libs=yes
14756  ;;
14757
14758irix5* | irix6* | nonstopux*)
14759  case $host_os in
14760    nonstopux*) version_type=nonstopux ;;
14761    *)
14762	if test "$lt_cv_prog_gnu_ld" = yes; then
14763		version_type=linux
14764	else
14765		version_type=irix
14766	fi ;;
14767  esac
14768  need_lib_prefix=no
14769  need_version=no
14770  soname_spec='${libname}${release}${shared_ext}$major'
14771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14772  case $host_os in
14773  irix5* | nonstopux*)
14774    libsuff= shlibsuff=
14775    ;;
14776  *)
14777    case $LD in # libtool.m4 will add one of these switches to LD
14778    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14779      libsuff= shlibsuff= libmagic=32-bit;;
14780    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14781      libsuff=32 shlibsuff=N32 libmagic=N32;;
14782    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14783      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14784    *) libsuff= shlibsuff= libmagic=never-match;;
14785    esac
14786    ;;
14787  esac
14788  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14789  shlibpath_overrides_runpath=no
14790  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14791  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14792  hardcode_into_libs=yes
14793  ;;
14794
14795# No shared lib support for Linux oldld, aout, or coff.
14796linux*oldld* | linux*aout* | linux*coff*)
14797  dynamic_linker=no
14798  ;;
14799
14800# This must be Linux ELF.
14801linux*)
14802  version_type=linux
14803  need_lib_prefix=no
14804  need_version=no
14805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14806  soname_spec='${libname}${release}${shared_ext}$major'
14807  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14808  shlibpath_var=LD_LIBRARY_PATH
14809  shlibpath_overrides_runpath=no
14810  # This implies no fast_install, which is unacceptable.
14811  # Some rework will be needed to allow for fast_install
14812  # before this can be enabled.
14813  hardcode_into_libs=yes
14814
14815  # find out which ABI we are using
14816  libsuff=
14817  case "$host_cpu" in
14818  x86_64*|s390x*|powerpc64*)
14819    echo '#line 14819 "configure"' > conftest.$ac_ext
14820    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14821  (eval $ac_compile) 2>&5
14822  ac_status=$?
14823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824  (exit $ac_status); }; then
14825      case `/usr/bin/file conftest.$ac_objext` in
14826      *64-bit*)
14827        libsuff=64
14828        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14829        ;;
14830      esac
14831    fi
14832    rm -rf conftest*
14833    ;;
14834  esac
14835
14836  # Append ld.so.conf contents to the search path
14837  if test -f /etc/ld.so.conf; then
14838    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14839    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14840  fi
14841
14842  # We used to test for /lib/ld.so.1 and disable shared libraries on
14843  # powerpc, because MkLinux only supported shared libraries with the
14844  # GNU dynamic linker.  Since this was broken with cross compilers,
14845  # most powerpc-linux boxes support dynamic linking these days and
14846  # people can always --disable-shared, the test was removed, and we
14847  # assume the GNU/Linux dynamic linker is in use.
14848  dynamic_linker='GNU/Linux ld.so'
14849  ;;
14850
14851knetbsd*-gnu)
14852  version_type=linux
14853  need_lib_prefix=no
14854  need_version=no
14855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14856  soname_spec='${libname}${release}${shared_ext}$major'
14857  shlibpath_var=LD_LIBRARY_PATH
14858  shlibpath_overrides_runpath=no
14859  hardcode_into_libs=yes
14860  dynamic_linker='GNU ld.so'
14861  ;;
14862
14863netbsd*)
14864  version_type=sunos
14865  need_lib_prefix=no
14866  need_version=no
14867  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14868    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14869    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14870    dynamic_linker='NetBSD (a.out) ld.so'
14871  else
14872    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14873    soname_spec='${libname}${release}${shared_ext}$major'
14874    dynamic_linker='NetBSD ld.elf_so'
14875  fi
14876  shlibpath_var=LD_LIBRARY_PATH
14877  shlibpath_overrides_runpath=yes
14878  hardcode_into_libs=yes
14879  ;;
14880
14881newsos6)
14882  version_type=linux
14883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884  shlibpath_var=LD_LIBRARY_PATH
14885  shlibpath_overrides_runpath=yes
14886  ;;
14887
14888nto-qnx*)
14889  version_type=linux
14890  need_lib_prefix=no
14891  need_version=no
14892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893  soname_spec='${libname}${release}${shared_ext}$major'
14894  shlibpath_var=LD_LIBRARY_PATH
14895  shlibpath_overrides_runpath=yes
14896  ;;
14897
14898openbsd*)
14899  version_type=sunos
14900  sys_lib_dlsearch_path_spec="/usr/lib"
14901  need_lib_prefix=no
14902  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14903  case $host_os in
14904    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14905    *)                         need_version=no  ;;
14906  esac
14907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14908  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14909  shlibpath_var=LD_LIBRARY_PATH
14910  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14911    case $host_os in
14912      openbsd2.[89] | openbsd2.[89].*)
14913	shlibpath_overrides_runpath=no
14914	;;
14915      *)
14916	shlibpath_overrides_runpath=yes
14917	;;
14918      esac
14919  else
14920    shlibpath_overrides_runpath=yes
14921  fi
14922  ;;
14923
14924os2*)
14925  libname_spec='$name'
14926  shrext_cmds=".dll"
14927  need_lib_prefix=no
14928  library_names_spec='$libname${shared_ext} $libname.a'
14929  dynamic_linker='OS/2 ld.exe'
14930  shlibpath_var=LIBPATH
14931  ;;
14932
14933osf3* | osf4* | osf5*)
14934  version_type=osf
14935  need_lib_prefix=no
14936  need_version=no
14937  soname_spec='${libname}${release}${shared_ext}$major'
14938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939  shlibpath_var=LD_LIBRARY_PATH
14940  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14941  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14942  ;;
14943
14944solaris*)
14945  version_type=linux
14946  need_lib_prefix=no
14947  need_version=no
14948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949  soname_spec='${libname}${release}${shared_ext}$major'
14950  shlibpath_var=LD_LIBRARY_PATH
14951  shlibpath_overrides_runpath=yes
14952  hardcode_into_libs=yes
14953  # ldd complains unless libraries are executable
14954  postinstall_cmds='chmod +x $lib'
14955  ;;
14956
14957sunos4*)
14958  version_type=sunos
14959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14960  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14961  shlibpath_var=LD_LIBRARY_PATH
14962  shlibpath_overrides_runpath=yes
14963  if test "$with_gnu_ld" = yes; then
14964    need_lib_prefix=no
14965  fi
14966  need_version=yes
14967  ;;
14968
14969sysv4 | sysv4.3*)
14970  version_type=linux
14971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972  soname_spec='${libname}${release}${shared_ext}$major'
14973  shlibpath_var=LD_LIBRARY_PATH
14974  case $host_vendor in
14975    sni)
14976      shlibpath_overrides_runpath=no
14977      need_lib_prefix=no
14978      export_dynamic_flag_spec='${wl}-Blargedynsym'
14979      runpath_var=LD_RUN_PATH
14980      ;;
14981    siemens)
14982      need_lib_prefix=no
14983      ;;
14984    motorola)
14985      need_lib_prefix=no
14986      need_version=no
14987      shlibpath_overrides_runpath=no
14988      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14989      ;;
14990  esac
14991  ;;
14992
14993sysv4*MP*)
14994  if test -d /usr/nec ;then
14995    version_type=linux
14996    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14997    soname_spec='$libname${shared_ext}.$major'
14998    shlibpath_var=LD_LIBRARY_PATH
14999  fi
15000  ;;
15001
15002sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15003  version_type=freebsd-elf
15004  need_lib_prefix=no
15005  need_version=no
15006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15007  soname_spec='${libname}${release}${shared_ext}$major'
15008  shlibpath_var=LD_LIBRARY_PATH
15009  hardcode_into_libs=yes
15010  if test "$with_gnu_ld" = yes; then
15011    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15012    shlibpath_overrides_runpath=no
15013  else
15014    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15015    shlibpath_overrides_runpath=yes
15016    case $host_os in
15017      sco3.2v5*)
15018        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15019	;;
15020    esac
15021  fi
15022  sys_lib_dlsearch_path_spec='/usr/lib'
15023  ;;
15024
15025uts4*)
15026  version_type=linux
15027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028  soname_spec='${libname}${release}${shared_ext}$major'
15029  shlibpath_var=LD_LIBRARY_PATH
15030  ;;
15031
15032*)
15033  dynamic_linker=no
15034  ;;
15035esac
15036echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15037echo "${ECHO_T}$dynamic_linker" >&6
15038test "$dynamic_linker" = no && can_build_shared=no
15039
15040variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15041if test "$GCC" = yes; then
15042  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15043fi
15044
15045echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15046echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15047hardcode_action_F77=
15048if test -n "$hardcode_libdir_flag_spec_F77" || \
15049   test -n "$runpath_var_F77" || \
15050   test "X$hardcode_automatic_F77" = "Xyes" ; then
15051
15052  # We can hardcode non-existant directories.
15053  if test "$hardcode_direct_F77" != no &&
15054     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15055     # have to relink, otherwise we might link with an installed library
15056     # when we should be linking with a yet-to-be-installed one
15057     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15058     test "$hardcode_minus_L_F77" != no; then
15059    # Linking always hardcodes the temporary library directory.
15060    hardcode_action_F77=relink
15061  else
15062    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15063    hardcode_action_F77=immediate
15064  fi
15065else
15066  # We cannot hardcode anything, or else we can only hardcode existing
15067  # directories.
15068  hardcode_action_F77=unsupported
15069fi
15070echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15071echo "${ECHO_T}$hardcode_action_F77" >&6
15072
15073if test "$hardcode_action_F77" = relink; then
15074  # Fast installation is not supported
15075  enable_fast_install=no
15076elif test "$shlibpath_overrides_runpath" = yes ||
15077     test "$enable_shared" = no; then
15078  # Fast installation is not necessary
15079  enable_fast_install=needless
15080fi
15081
15082
15083# The else clause should only fire when bootstrapping the
15084# libtool distribution, otherwise you forgot to ship ltmain.sh
15085# with your package, and you will get complaints that there are
15086# no rules to generate ltmain.sh.
15087if test -f "$ltmain"; then
15088  # See if we are running on zsh, and set the options which allow our commands through
15089  # without removal of \ escapes.
15090  if test -n "${ZSH_VERSION+set}" ; then
15091    setopt NO_GLOB_SUBST
15092  fi
15093  # Now quote all the things that may contain metacharacters while being
15094  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15095  # variables and quote the copies for generation of the libtool script.
15096  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15097    SED SHELL STRIP \
15098    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15099    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15100    deplibs_check_method reload_flag reload_cmds need_locks \
15101    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15102    lt_cv_sys_global_symbol_to_c_name_address \
15103    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15104    old_postinstall_cmds old_postuninstall_cmds \
15105    compiler_F77 \
15106    CC_F77 \
15107    LD_F77 \
15108    lt_prog_compiler_wl_F77 \
15109    lt_prog_compiler_pic_F77 \
15110    lt_prog_compiler_static_F77 \
15111    lt_prog_compiler_no_builtin_flag_F77 \
15112    export_dynamic_flag_spec_F77 \
15113    thread_safe_flag_spec_F77 \
15114    whole_archive_flag_spec_F77 \
15115    enable_shared_with_static_runtimes_F77 \
15116    old_archive_cmds_F77 \
15117    old_archive_from_new_cmds_F77 \
15118    predep_objects_F77 \
15119    postdep_objects_F77 \
15120    predeps_F77 \
15121    postdeps_F77 \
15122    compiler_lib_search_path_F77 \
15123    archive_cmds_F77 \
15124    archive_expsym_cmds_F77 \
15125    postinstall_cmds_F77 \
15126    postuninstall_cmds_F77 \
15127    old_archive_from_expsyms_cmds_F77 \
15128    allow_undefined_flag_F77 \
15129    no_undefined_flag_F77 \
15130    export_symbols_cmds_F77 \
15131    hardcode_libdir_flag_spec_F77 \
15132    hardcode_libdir_flag_spec_ld_F77 \
15133    hardcode_libdir_separator_F77 \
15134    hardcode_automatic_F77 \
15135    module_cmds_F77 \
15136    module_expsym_cmds_F77 \
15137    lt_cv_prog_compiler_c_o_F77 \
15138    exclude_expsyms_F77 \
15139    include_expsyms_F77; do
15140
15141    case $var in
15142    old_archive_cmds_F77 | \
15143    old_archive_from_new_cmds_F77 | \
15144    archive_cmds_F77 | \
15145    archive_expsym_cmds_F77 | \
15146    module_cmds_F77 | \
15147    module_expsym_cmds_F77 | \
15148    old_archive_from_expsyms_cmds_F77 | \
15149    export_symbols_cmds_F77 | \
15150    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15151    postinstall_cmds | postuninstall_cmds | \
15152    old_postinstall_cmds | old_postuninstall_cmds | \
15153    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15154      # Double-quote double-evaled strings.
15155      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15156      ;;
15157    *)
15158      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15159      ;;
15160    esac
15161  done
15162
15163  case $lt_echo in
15164  *'\$0 --fallback-echo"')
15165    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15166    ;;
15167  esac
15168
15169cfgfile="$ofile"
15170
15171  cat <<__EOF__ >> "$cfgfile"
15172# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15173
15174# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15175
15176# Shell to use when invoking shell scripts.
15177SHELL=$lt_SHELL
15178
15179# Whether or not to build shared libraries.
15180build_libtool_libs=$enable_shared
15181
15182# Whether or not to build static libraries.
15183build_old_libs=$enable_static
15184
15185# Whether or not to add -lc for building shared libraries.
15186build_libtool_need_lc=$archive_cmds_need_lc_F77
15187
15188# Whether or not to disallow shared libs when runtime libs are static
15189allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15190
15191# Whether or not to optimize for fast installation.
15192fast_install=$enable_fast_install
15193
15194# The host system.
15195host_alias=$host_alias
15196host=$host
15197host_os=$host_os
15198
15199# The build system.
15200build_alias=$build_alias
15201build=$build
15202build_os=$build_os
15203
15204# An echo program that does not interpret backslashes.
15205echo=$lt_echo
15206
15207# The archiver.
15208AR=$lt_AR
15209AR_FLAGS=$lt_AR_FLAGS
15210
15211# A C compiler.
15212LTCC=$lt_LTCC
15213
15214# LTCC compiler flags.
15215LTCFLAGS=$lt_LTCFLAGS
15216
15217# A language-specific compiler.
15218CC=$lt_compiler_F77
15219
15220# Is the compiler the GNU C compiler?
15221with_gcc=$GCC_F77
15222
15223gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15224gcc_ver=\`gcc -dumpversion\`
15225
15226# An ERE matcher.
15227EGREP=$lt_EGREP
15228
15229# The linker used to build libraries.
15230LD=$lt_LD_F77
15231
15232# Whether we need hard or soft links.
15233LN_S=$lt_LN_S
15234
15235# A BSD-compatible nm program.
15236NM=$lt_NM
15237
15238# A symbol stripping program
15239STRIP=$lt_STRIP
15240
15241# Used to examine libraries when file_magic_cmd begins "file"
15242MAGIC_CMD=$MAGIC_CMD
15243
15244# Used on cygwin: DLL creation program.
15245DLLTOOL="$DLLTOOL"
15246
15247# Used on cygwin: object dumper.
15248OBJDUMP="$OBJDUMP"
15249
15250# Used on cygwin: assembler.
15251AS="$AS"
15252
15253# The name of the directory that contains temporary libtool files.
15254objdir=$objdir
15255
15256# How to create reloadable object files.
15257reload_flag=$lt_reload_flag
15258reload_cmds=$lt_reload_cmds
15259
15260# How to pass a linker flag through the compiler.
15261wl=$lt_lt_prog_compiler_wl_F77
15262
15263# Object file suffix (normally "o").
15264objext="$ac_objext"
15265
15266# Old archive suffix (normally "a").
15267libext="$libext"
15268
15269# Shared library suffix (normally ".so").
15270shrext_cmds='$shrext_cmds'
15271
15272# Executable file suffix (normally "").
15273exeext="$exeext"
15274
15275# Additional compiler flags for building library objects.
15276pic_flag=$lt_lt_prog_compiler_pic_F77
15277pic_mode=$pic_mode
15278
15279# What is the maximum length of a command?
15280max_cmd_len=$lt_cv_sys_max_cmd_len
15281
15282# Does compiler simultaneously support -c and -o options?
15283compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15284
15285# Must we lock files when doing compilation?
15286need_locks=$lt_need_locks
15287
15288# Do we need the lib prefix for modules?
15289need_lib_prefix=$need_lib_prefix
15290
15291# Do we need a version for libraries?
15292need_version=$need_version
15293
15294# Whether dlopen is supported.
15295dlopen_support=$enable_dlopen
15296
15297# Whether dlopen of programs is supported.
15298dlopen_self=$enable_dlopen_self
15299
15300# Whether dlopen of statically linked programs is supported.
15301dlopen_self_static=$enable_dlopen_self_static
15302
15303# Compiler flag to prevent dynamic linking.
15304link_static_flag=$lt_lt_prog_compiler_static_F77
15305
15306# Compiler flag to turn off builtin functions.
15307no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15308
15309# Compiler flag to allow reflexive dlopens.
15310export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15311
15312# Compiler flag to generate shared objects directly from archives.
15313whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15314
15315# Compiler flag to generate thread-safe objects.
15316thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15317
15318# Library versioning type.
15319version_type=$version_type
15320
15321# Format of library name prefix.
15322libname_spec=$lt_libname_spec
15323
15324# List of archive names.  First name is the real one, the rest are links.
15325# The last name is the one that the linker finds with -lNAME.
15326library_names_spec=$lt_library_names_spec
15327
15328# The coded name of the library, if different from the real name.
15329soname_spec=$lt_soname_spec
15330
15331# Commands used to build and install an old-style archive.
15332RANLIB=$lt_RANLIB
15333old_archive_cmds=$lt_old_archive_cmds_F77
15334old_postinstall_cmds=$lt_old_postinstall_cmds
15335old_postuninstall_cmds=$lt_old_postuninstall_cmds
15336
15337# Create an old-style archive from a shared archive.
15338old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15339
15340# Create a temporary old-style archive to link instead of a shared archive.
15341old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15342
15343# Commands used to build and install a shared archive.
15344archive_cmds=$lt_archive_cmds_F77
15345archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15346postinstall_cmds=$lt_postinstall_cmds
15347postuninstall_cmds=$lt_postuninstall_cmds
15348
15349# Commands used to build a loadable module (assumed same as above if empty)
15350module_cmds=$lt_module_cmds_F77
15351module_expsym_cmds=$lt_module_expsym_cmds_F77
15352
15353# Commands to strip libraries.
15354old_striplib=$lt_old_striplib
15355striplib=$lt_striplib
15356
15357# Dependencies to place before the objects being linked to create a
15358# shared library.
15359predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15360
15361# Dependencies to place after the objects being linked to create a
15362# shared library.
15363postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15364
15365# Dependencies to place before the objects being linked to create a
15366# shared library.
15367predeps=$lt_predeps_F77
15368
15369# Dependencies to place after the objects being linked to create a
15370# shared library.
15371postdeps=$lt_postdeps_F77
15372
15373# The library search path used internally by the compiler when linking
15374# a shared library.
15375compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15376
15377# Method to check whether dependent libraries are shared objects.
15378deplibs_check_method=$lt_deplibs_check_method
15379
15380# Command to use when deplibs_check_method == file_magic.
15381file_magic_cmd=$lt_file_magic_cmd
15382
15383# Flag that allows shared libraries with undefined symbols to be built.
15384allow_undefined_flag=$lt_allow_undefined_flag_F77
15385
15386# Flag that forces no undefined symbols.
15387no_undefined_flag=$lt_no_undefined_flag_F77
15388
15389# Commands used to finish a libtool library installation in a directory.
15390finish_cmds=$lt_finish_cmds
15391
15392# Same as above, but a single script fragment to be evaled but not shown.
15393finish_eval=$lt_finish_eval
15394
15395# Take the output of nm and produce a listing of raw symbols and C names.
15396global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15397
15398# Transform the output of nm in a proper C declaration
15399global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15400
15401# Transform the output of nm in a C name address pair
15402global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15403
15404# This is the shared library runtime path variable.
15405runpath_var=$runpath_var
15406
15407# This is the shared library path variable.
15408shlibpath_var=$shlibpath_var
15409
15410# Is shlibpath searched before the hard-coded library search path?
15411shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15412
15413# How to hardcode a shared library path into an executable.
15414hardcode_action=$hardcode_action_F77
15415
15416# Whether we should hardcode library paths into libraries.
15417hardcode_into_libs=$hardcode_into_libs
15418
15419# Flag to hardcode \$libdir into a binary during linking.
15420# This must work even if \$libdir does not exist.
15421hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15422
15423# If ld is used when linking, flag to hardcode \$libdir into
15424# a binary during linking. This must work even if \$libdir does
15425# not exist.
15426hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15427
15428# Whether we need a single -rpath flag with a separated argument.
15429hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15430
15431# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15432# resulting binary.
15433hardcode_direct=$hardcode_direct_F77
15434
15435# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15436# resulting binary.
15437hardcode_minus_L=$hardcode_minus_L_F77
15438
15439# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15440# the resulting binary.
15441hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15442
15443# Set to yes if building a shared library automatically hardcodes DIR into the library
15444# and all subsequent libraries and executables linked against it.
15445hardcode_automatic=$hardcode_automatic_F77
15446
15447# Variables whose values should be saved in libtool wrapper scripts and
15448# restored at relink time.
15449variables_saved_for_relink="$variables_saved_for_relink"
15450
15451# Whether libtool must link a program against all its dependency libraries.
15452link_all_deplibs=$link_all_deplibs_F77
15453
15454# Compile-time system search path for libraries
15455sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15456
15457# Run-time system search path for libraries
15458sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15459
15460# Fix the shell variable \$srcfile for the compiler.
15461fix_srcfile_path="$fix_srcfile_path_F77"
15462
15463# Set to yes if exported symbols are required.
15464always_export_symbols=$always_export_symbols_F77
15465
15466# The commands to list exported symbols.
15467export_symbols_cmds=$lt_export_symbols_cmds_F77
15468
15469# The commands to extract the exported symbol list from a shared archive.
15470extract_expsyms_cmds=$lt_extract_expsyms_cmds
15471
15472# Symbols that should not be listed in the preloaded symbols.
15473exclude_expsyms=$lt_exclude_expsyms_F77
15474
15475# Symbols that must always be exported.
15476include_expsyms=$lt_include_expsyms_F77
15477
15478# ### END LIBTOOL TAG CONFIG: $tagname
15479
15480__EOF__
15481
15482
15483else
15484  # If there is no Makefile yet, we rely on a make rule to execute
15485  # `config.status --recheck' to rerun these tests and create the
15486  # libtool script then.
15487  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15488  if test -f "$ltmain_in"; then
15489    test -f Makefile && make "$ltmain"
15490  fi
15491fi
15492
15493
15494ac_ext=c
15495ac_cpp='$CPP $CPPFLAGS'
15496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15498ac_compiler_gnu=$ac_cv_c_compiler_gnu
15499
15500CC="$lt_save_CC"
15501
15502	else
15503	  tagname=""
15504	fi
15505	;;
15506
15507      GCJ)
15508	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15509
15510
15511
15512# Source file extension for Java test sources.
15513ac_ext=java
15514
15515# Object file extension for compiled Java test sources.
15516objext=o
15517objext_GCJ=$objext
15518
15519# Code to be used in simple compile tests
15520lt_simple_compile_test_code="class foo {}\n"
15521
15522# Code to be used in simple link tests
15523lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15524
15525# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15526
15527# If no C compiler was specified, use CC.
15528LTCC=${LTCC-"$CC"}
15529
15530# If no C compiler flags were specified, use CFLAGS.
15531LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15532
15533# Allow CC to be a program name with arguments.
15534compiler=$CC
15535
15536
15537# save warnings/boilerplate of simple test code
15538ac_outfile=conftest.$ac_objext
15539printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15540eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15541_lt_compiler_boilerplate=`cat conftest.err`
15542$rm conftest*
15543
15544ac_outfile=conftest.$ac_objext
15545printf "$lt_simple_link_test_code" >conftest.$ac_ext
15546eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15547_lt_linker_boilerplate=`cat conftest.err`
15548$rm conftest*
15549
15550
15551# Allow CC to be a program name with arguments.
15552lt_save_CC="$CC"
15553CC=${GCJ-"gcj"}
15554compiler=$CC
15555compiler_GCJ=$CC
15556for cc_temp in $compiler""; do
15557  case $cc_temp in
15558    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15559    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15560    \-*) ;;
15561    *) break;;
15562  esac
15563done
15564cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15565
15566
15567# GCJ did not exist at the time GCC didn't implicitly link libc in.
15568archive_cmds_need_lc_GCJ=no
15569
15570old_archive_cmds_GCJ=$old_archive_cmds
15571
15572
15573lt_prog_compiler_no_builtin_flag_GCJ=
15574
15575if test "$GCC" = yes; then
15576  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15577
15578
15579echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15580echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15581if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15582  echo $ECHO_N "(cached) $ECHO_C" >&6
15583else
15584  lt_cv_prog_compiler_rtti_exceptions=no
15585  ac_outfile=conftest.$ac_objext
15586   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15587   lt_compiler_flag="-fno-rtti -fno-exceptions"
15588   # Insert the option either (1) after the last *FLAGS variable, or
15589   # (2) before a word containing "conftest.", or (3) at the end.
15590   # Note that $ac_compile itself does not contain backslashes and begins
15591   # with a dollar sign (not a hyphen), so the echo should work correctly.
15592   # The option is referenced via a variable to avoid confusing sed.
15593   lt_compile=`echo "$ac_compile" | $SED \
15594   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15595   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15596   -e 's:$: $lt_compiler_flag:'`
15597   (eval echo "\"\$as_me:15597: $lt_compile\"" >&5)
15598   (eval "$lt_compile" 2>conftest.err)
15599   ac_status=$?
15600   cat conftest.err >&5
15601   echo "$as_me:15601: \$? = $ac_status" >&5
15602   if (exit $ac_status) && test -s "$ac_outfile"; then
15603     # The compiler can only warn and ignore the option if not recognized
15604     # So say no if there are warnings other than the usual output.
15605     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15606     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15607     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15608       lt_cv_prog_compiler_rtti_exceptions=yes
15609     fi
15610   fi
15611   $rm conftest*
15612
15613fi
15614echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15615echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15616
15617if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15618    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15619else
15620    :
15621fi
15622
15623fi
15624
15625lt_prog_compiler_wl_GCJ=
15626lt_prog_compiler_pic_GCJ=
15627lt_prog_compiler_static_GCJ=
15628
15629echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15630echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15631
15632  if test "$GCC" = yes; then
15633    lt_prog_compiler_wl_GCJ='-Wl,'
15634    lt_prog_compiler_static_GCJ='-static'
15635
15636    case $host_os in
15637      aix*)
15638      # All AIX code is PIC.
15639      if test "$host_cpu" = ia64; then
15640	# AIX 5 now supports IA64 processor
15641	lt_prog_compiler_static_GCJ='-Bstatic'
15642      fi
15643      ;;
15644
15645    amigaos*)
15646      # FIXME: we need at least 68020 code to build shared libraries, but
15647      # adding the `-m68020' flag to GCC prevents building anything better,
15648      # like `-m68040'.
15649      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15650      ;;
15651
15652    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15653      # PIC is the default for these OSes.
15654      ;;
15655
15656    mingw* | pw32* | os2*)
15657      # This hack is so that the source file can tell whether it is being
15658      # built for inclusion in a dll (and should export symbols for example).
15659      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15660      ;;
15661
15662    darwin* | rhapsody*)
15663      # PIC is the default on this platform
15664      # Common symbols not allowed in MH_DYLIB files
15665      lt_prog_compiler_pic_GCJ='-fno-common'
15666      ;;
15667
15668    interix3*)
15669      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15670      # Instead, we relocate shared libraries at runtime.
15671      ;;
15672
15673    msdosdjgpp*)
15674      # Just because we use GCC doesn't mean we suddenly get shared libraries
15675      # on systems that don't support them.
15676      lt_prog_compiler_can_build_shared_GCJ=no
15677      enable_shared=no
15678      ;;
15679
15680    sysv4*MP*)
15681      if test -d /usr/nec; then
15682	lt_prog_compiler_pic_GCJ=-Kconform_pic
15683      fi
15684      ;;
15685
15686    hpux*)
15687      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15688      # not for PA HP-UX.
15689      case $host_cpu in
15690      hppa*64*|ia64*)
15691	# +Z the default
15692	;;
15693      *)
15694	lt_prog_compiler_pic_GCJ='-fPIC'
15695	;;
15696      esac
15697      ;;
15698
15699    *)
15700      lt_prog_compiler_pic_GCJ='-fPIC'
15701      ;;
15702    esac
15703  else
15704    # PORTME Check for flag to pass linker flags through the system compiler.
15705    case $host_os in
15706    aix*)
15707      lt_prog_compiler_wl_GCJ='-Wl,'
15708      if test "$host_cpu" = ia64; then
15709	# AIX 5 now supports IA64 processor
15710	lt_prog_compiler_static_GCJ='-Bstatic'
15711      else
15712	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15713      fi
15714      ;;
15715      darwin*)
15716        # PIC is the default on this platform
15717        # Common symbols not allowed in MH_DYLIB files
15718       case $cc_basename in
15719         xlc*)
15720         lt_prog_compiler_pic_GCJ='-qnocommon'
15721         lt_prog_compiler_wl_GCJ='-Wl,'
15722         ;;
15723       esac
15724       ;;
15725
15726    mingw* | pw32* | os2*)
15727      # This hack is so that the source file can tell whether it is being
15728      # built for inclusion in a dll (and should export symbols for example).
15729      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15730      ;;
15731
15732    hpux9* | hpux10* | hpux11*)
15733      lt_prog_compiler_wl_GCJ='-Wl,'
15734      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15735      # not for PA HP-UX.
15736      case $host_cpu in
15737      hppa*64*|ia64*)
15738	# +Z the default
15739	;;
15740      *)
15741	lt_prog_compiler_pic_GCJ='+Z'
15742	;;
15743      esac
15744      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15745      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15746      ;;
15747
15748    irix5* | irix6* | nonstopux*)
15749      lt_prog_compiler_wl_GCJ='-Wl,'
15750      # PIC (with -KPIC) is the default.
15751      lt_prog_compiler_static_GCJ='-non_shared'
15752      ;;
15753
15754    newsos6)
15755      lt_prog_compiler_pic_GCJ='-KPIC'
15756      lt_prog_compiler_static_GCJ='-Bstatic'
15757      ;;
15758
15759    linux*)
15760      case $cc_basename in
15761      icc* | ecc*)
15762	lt_prog_compiler_wl_GCJ='-Wl,'
15763	lt_prog_compiler_pic_GCJ='-KPIC'
15764	lt_prog_compiler_static_GCJ='-static'
15765        ;;
15766      pgcc* | pgf77* | pgf90* | pgf95*)
15767        # Portland Group compilers (*not* the Pentium gcc compiler,
15768	# which looks to be a dead project)
15769	lt_prog_compiler_wl_GCJ='-Wl,'
15770	lt_prog_compiler_pic_GCJ='-fpic'
15771	lt_prog_compiler_static_GCJ='-Bstatic'
15772        ;;
15773      ccc*)
15774        lt_prog_compiler_wl_GCJ='-Wl,'
15775        # All Alpha code is PIC.
15776        lt_prog_compiler_static_GCJ='-non_shared'
15777        ;;
15778      esac
15779      ;;
15780
15781    osf3* | osf4* | osf5*)
15782      lt_prog_compiler_wl_GCJ='-Wl,'
15783      # All OSF/1 code is PIC.
15784      lt_prog_compiler_static_GCJ='-non_shared'
15785      ;;
15786
15787    solaris*)
15788      lt_prog_compiler_pic_GCJ='-KPIC'
15789      lt_prog_compiler_static_GCJ='-Bstatic'
15790      case $cc_basename in
15791      f77* | f90* | f95*)
15792	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15793      *)
15794	lt_prog_compiler_wl_GCJ='-Wl,';;
15795      esac
15796      ;;
15797
15798    sunos4*)
15799      lt_prog_compiler_wl_GCJ='-Qoption ld '
15800      lt_prog_compiler_pic_GCJ='-PIC'
15801      lt_prog_compiler_static_GCJ='-Bstatic'
15802      ;;
15803
15804    sysv4 | sysv4.2uw2* | sysv4.3*)
15805      lt_prog_compiler_wl_GCJ='-Wl,'
15806      lt_prog_compiler_pic_GCJ='-KPIC'
15807      lt_prog_compiler_static_GCJ='-Bstatic'
15808      ;;
15809
15810    sysv4*MP*)
15811      if test -d /usr/nec ;then
15812	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15813	lt_prog_compiler_static_GCJ='-Bstatic'
15814      fi
15815      ;;
15816
15817    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15818      lt_prog_compiler_wl_GCJ='-Wl,'
15819      lt_prog_compiler_pic_GCJ='-KPIC'
15820      lt_prog_compiler_static_GCJ='-Bstatic'
15821      ;;
15822
15823    unicos*)
15824      lt_prog_compiler_wl_GCJ='-Wl,'
15825      lt_prog_compiler_can_build_shared_GCJ=no
15826      ;;
15827
15828    uts4*)
15829      lt_prog_compiler_pic_GCJ='-pic'
15830      lt_prog_compiler_static_GCJ='-Bstatic'
15831      ;;
15832
15833    *)
15834      lt_prog_compiler_can_build_shared_GCJ=no
15835      ;;
15836    esac
15837  fi
15838
15839echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15840echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15841
15842#
15843# Check to make sure the PIC flag actually works.
15844#
15845if test -n "$lt_prog_compiler_pic_GCJ"; then
15846
15847echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15848echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15849if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15850  echo $ECHO_N "(cached) $ECHO_C" >&6
15851else
15852  lt_prog_compiler_pic_works_GCJ=no
15853  ac_outfile=conftest.$ac_objext
15854   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15855   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15856   # Insert the option either (1) after the last *FLAGS variable, or
15857   # (2) before a word containing "conftest.", or (3) at the end.
15858   # Note that $ac_compile itself does not contain backslashes and begins
15859   # with a dollar sign (not a hyphen), so the echo should work correctly.
15860   # The option is referenced via a variable to avoid confusing sed.
15861   lt_compile=`echo "$ac_compile" | $SED \
15862   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15864   -e 's:$: $lt_compiler_flag:'`
15865   (eval echo "\"\$as_me:15865: $lt_compile\"" >&5)
15866   (eval "$lt_compile" 2>conftest.err)
15867   ac_status=$?
15868   cat conftest.err >&5
15869   echo "$as_me:15869: \$? = $ac_status" >&5
15870   if (exit $ac_status) && test -s "$ac_outfile"; then
15871     # The compiler can only warn and ignore the option if not recognized
15872     # So say no if there are warnings other than the usual output.
15873     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15874     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15875     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15876       lt_prog_compiler_pic_works_GCJ=yes
15877     fi
15878   fi
15879   $rm conftest*
15880
15881fi
15882echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15883echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15884
15885if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15886    case $lt_prog_compiler_pic_GCJ in
15887     "" | " "*) ;;
15888     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15889     esac
15890else
15891    lt_prog_compiler_pic_GCJ=
15892     lt_prog_compiler_can_build_shared_GCJ=no
15893fi
15894
15895fi
15896case $host_os in
15897  # For platforms which do not support PIC, -DPIC is meaningless:
15898  *djgpp*)
15899    lt_prog_compiler_pic_GCJ=
15900    ;;
15901  *)
15902    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15903    ;;
15904esac
15905
15906#
15907# Check to make sure the static flag actually works.
15908#
15909wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15910echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15911echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15912if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15913  echo $ECHO_N "(cached) $ECHO_C" >&6
15914else
15915  lt_prog_compiler_static_works_GCJ=no
15916   save_LDFLAGS="$LDFLAGS"
15917   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15918   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15919   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15920     # The linker can only warn and ignore the option if not recognized
15921     # So say no if there are warnings
15922     if test -s conftest.err; then
15923       # Append any errors to the config.log.
15924       cat conftest.err 1>&5
15925       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15926       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15927       if diff conftest.exp conftest.er2 >/dev/null; then
15928         lt_prog_compiler_static_works_GCJ=yes
15929       fi
15930     else
15931       lt_prog_compiler_static_works_GCJ=yes
15932     fi
15933   fi
15934   $rm conftest*
15935   LDFLAGS="$save_LDFLAGS"
15936
15937fi
15938echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15939echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15940
15941if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15942    :
15943else
15944    lt_prog_compiler_static_GCJ=
15945fi
15946
15947
15948echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15949echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15950if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15951  echo $ECHO_N "(cached) $ECHO_C" >&6
15952else
15953  lt_cv_prog_compiler_c_o_GCJ=no
15954   $rm -r conftest 2>/dev/null
15955   mkdir conftest
15956   cd conftest
15957   mkdir out
15958   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15959
15960   lt_compiler_flag="-o out/conftest2.$ac_objext"
15961   # Insert the option either (1) after the last *FLAGS variable, or
15962   # (2) before a word containing "conftest.", or (3) at the end.
15963   # Note that $ac_compile itself does not contain backslashes and begins
15964   # with a dollar sign (not a hyphen), so the echo should work correctly.
15965   lt_compile=`echo "$ac_compile" | $SED \
15966   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15967   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15968   -e 's:$: $lt_compiler_flag:'`
15969   (eval echo "\"\$as_me:15969: $lt_compile\"" >&5)
15970   (eval "$lt_compile" 2>out/conftest.err)
15971   ac_status=$?
15972   cat out/conftest.err >&5
15973   echo "$as_me:15973: \$? = $ac_status" >&5
15974   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15975   then
15976     # The compiler can only warn and ignore the option if not recognized
15977     # So say no if there are warnings
15978     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15979     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15980     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15981       lt_cv_prog_compiler_c_o_GCJ=yes
15982     fi
15983   fi
15984   chmod u+w . 2>&5
15985   $rm conftest*
15986   # SGI C++ compiler will create directory out/ii_files/ for
15987   # template instantiation
15988   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15989   $rm out/* && rmdir out
15990   cd ..
15991   rmdir conftest
15992   $rm conftest*
15993
15994fi
15995echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15996echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15997
15998
15999hard_links="nottested"
16000if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16001  # do not overwrite the value of need_locks provided by the user
16002  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16003echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16004  hard_links=yes
16005  $rm conftest*
16006  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16007  touch conftest.a
16008  ln conftest.a conftest.b 2>&5 || hard_links=no
16009  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16010  echo "$as_me:$LINENO: result: $hard_links" >&5
16011echo "${ECHO_T}$hard_links" >&6
16012  if test "$hard_links" = no; then
16013    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16014echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16015    need_locks=warn
16016  fi
16017else
16018  need_locks=no
16019fi
16020
16021echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16022echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16023
16024  runpath_var=
16025  allow_undefined_flag_GCJ=
16026  enable_shared_with_static_runtimes_GCJ=no
16027  archive_cmds_GCJ=
16028  archive_expsym_cmds_GCJ=
16029  old_archive_From_new_cmds_GCJ=
16030  old_archive_from_expsyms_cmds_GCJ=
16031  export_dynamic_flag_spec_GCJ=
16032  whole_archive_flag_spec_GCJ=
16033  thread_safe_flag_spec_GCJ=
16034  hardcode_libdir_flag_spec_GCJ=
16035  hardcode_libdir_flag_spec_ld_GCJ=
16036  hardcode_libdir_separator_GCJ=
16037  hardcode_direct_GCJ=no
16038  hardcode_minus_L_GCJ=no
16039  hardcode_shlibpath_var_GCJ=unsupported
16040  link_all_deplibs_GCJ=unknown
16041  hardcode_automatic_GCJ=no
16042  module_cmds_GCJ=
16043  module_expsym_cmds_GCJ=
16044  always_export_symbols_GCJ=no
16045  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16046  # include_expsyms should be a list of space-separated symbols to be *always*
16047  # included in the symbol list
16048  include_expsyms_GCJ=
16049  # exclude_expsyms can be an extended regexp of symbols to exclude
16050  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16051  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16052  # as well as any symbol that contains `d'.
16053  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16054  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16055  # platforms (ab)use it in PIC code, but their linkers get confused if
16056  # the symbol is explicitly referenced.  Since portable code cannot
16057  # rely on this symbol name, it's probably fine to never include it in
16058  # preloaded symbol tables.
16059  extract_expsyms_cmds=
16060  # Just being paranoid about ensuring that cc_basename is set.
16061  for cc_temp in $compiler""; do
16062  case $cc_temp in
16063    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16064    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16065    \-*) ;;
16066    *) break;;
16067  esac
16068done
16069cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16070
16071  case $host_os in
16072  cygwin* | mingw* | pw32*)
16073    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16074    # When not using gcc, we currently assume that we are using
16075    # Microsoft Visual C++.
16076    if test "$GCC" != yes; then
16077      with_gnu_ld=no
16078    fi
16079    ;;
16080  interix*)
16081    # we just hope/assume this is gcc and not c89 (= MSVC++)
16082    with_gnu_ld=yes
16083    ;;
16084  openbsd*)
16085    with_gnu_ld=no
16086    ;;
16087  esac
16088
16089  ld_shlibs_GCJ=yes
16090  if test "$with_gnu_ld" = yes; then
16091    # If archive_cmds runs LD, not CC, wlarc should be empty
16092    wlarc='${wl}'
16093
16094    # Set some defaults for GNU ld with shared library support. These
16095    # are reset later if shared libraries are not supported. Putting them
16096    # here allows them to be overridden if necessary.
16097    runpath_var=LD_RUN_PATH
16098    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16099    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16100    # ancient GNU ld didn't support --whole-archive et. al.
16101    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16102	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16103      else
16104  	whole_archive_flag_spec_GCJ=
16105    fi
16106    supports_anon_versioning=no
16107    case `$LD -v 2>/dev/null` in
16108      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16109      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16110      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16111      *\ 2.11.*) ;; # other 2.11 versions
16112      *) supports_anon_versioning=yes ;;
16113    esac
16114
16115    # See if GNU ld supports shared libraries.
16116    case $host_os in
16117    aix3* | aix4* | aix5*)
16118      # On AIX/PPC, the GNU linker is very broken
16119      if test "$host_cpu" != ia64; then
16120	ld_shlibs_GCJ=no
16121	cat <<EOF 1>&2
16122
16123*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16124*** to be unable to reliably create shared libraries on AIX.
16125*** Therefore, libtool is disabling shared libraries support.  If you
16126*** really care for shared libraries, you may want to modify your PATH
16127*** so that a non-GNU linker is found, and then restart.
16128
16129EOF
16130      fi
16131      ;;
16132
16133    amigaos*)
16134      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)'
16135      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16136      hardcode_minus_L_GCJ=yes
16137
16138      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16139      # that the semantics of dynamic libraries on AmigaOS, at least up
16140      # to version 4, is to share data among multiple programs linked
16141      # with the same dynamic library.  Since this doesn't match the
16142      # behavior of shared libraries on other platforms, we can't use
16143      # them.
16144      ld_shlibs_GCJ=no
16145      ;;
16146
16147    beos*)
16148      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16149	allow_undefined_flag_GCJ=unsupported
16150	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16151	# support --undefined.  This deserves some investigation.  FIXME
16152	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16153      else
16154	ld_shlibs_GCJ=no
16155      fi
16156      ;;
16157
16158    cygwin* | mingw* | pw32*)
16159      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16160      # as there is no search path for DLLs.
16161      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16162      allow_undefined_flag_GCJ=unsupported
16163      always_export_symbols_GCJ=no
16164      enable_shared_with_static_runtimes_GCJ=yes
16165      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16166
16167      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16168        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16169	# If the export-symbols file already is a .def file (1st line
16170	# is EXPORTS), use it as is; otherwise, prepend...
16171	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16172	  cp $export_symbols $output_objdir/$soname.def;
16173	else
16174	  echo EXPORTS > $output_objdir/$soname.def;
16175	  cat $export_symbols >> $output_objdir/$soname.def;
16176	fi~
16177	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16178      else
16179	ld_shlibs_GCJ=no
16180      fi
16181      ;;
16182
16183    interix3*)
16184      hardcode_direct_GCJ=no
16185      hardcode_shlibpath_var_GCJ=no
16186      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16187      export_dynamic_flag_spec_GCJ='${wl}-E'
16188      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16189      # Instead, shared libraries are loaded at an image base (0x10000000 by
16190      # default) and relocated if they conflict, which is a slow very memory
16191      # consuming and fragmenting process.  To avoid this, we pick a random,
16192      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16193      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16194      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16195      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16196      ;;
16197
16198    linux*)
16199      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16200	tmp_addflag=
16201	case $cc_basename,$host_cpu in
16202	pgcc*)				# Portland Group C compiler
16203	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16204	  tmp_addflag=' $pic_flag'
16205	  ;;
16206	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16207	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16208	  tmp_addflag=' $pic_flag -Mnomain' ;;
16209	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16210	  tmp_addflag=' -i_dynamic' ;;
16211	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16212	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16213	ifc* | ifort*)			# Intel Fortran compiler
16214	  tmp_addflag=' -nofor_main' ;;
16215	esac
16216	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16217
16218	if test $supports_anon_versioning = yes; then
16219	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16220  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16221  $echo "local: *; };" >> $output_objdir/$libname.ver~
16222	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16223	fi
16224      else
16225	ld_shlibs_GCJ=no
16226      fi
16227      ;;
16228
16229    netbsd*)
16230      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16231	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16232	wlarc=
16233      else
16234	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16235	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16236      fi
16237      ;;
16238
16239    solaris*)
16240      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16241	ld_shlibs_GCJ=no
16242	cat <<EOF 1>&2
16243
16244*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16245*** create shared libraries on Solaris systems.  Therefore, libtool
16246*** is disabling shared libraries support.  We urge you to upgrade GNU
16247*** binutils to release 2.9.1 or newer.  Another option is to modify
16248*** your PATH or compiler configuration so that the native linker is
16249*** used, and then restart.
16250
16251EOF
16252      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16253	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16254	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16255      else
16256	ld_shlibs_GCJ=no
16257      fi
16258      ;;
16259
16260    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16261      case `$LD -v 2>&1` in
16262        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16263	ld_shlibs_GCJ=no
16264	cat <<_LT_EOF 1>&2
16265
16266*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16267*** reliably create shared libraries on SCO systems.  Therefore, libtool
16268*** is disabling shared libraries support.  We urge you to upgrade GNU
16269*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16270*** your PATH or compiler configuration so that the native linker is
16271*** used, and then restart.
16272
16273_LT_EOF
16274	;;
16275	*)
16276	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16277	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16278	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16279	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16280	  else
16281	    ld_shlibs_GCJ=no
16282	  fi
16283	;;
16284      esac
16285      ;;
16286
16287    sunos4*)
16288      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16289      wlarc=
16290      hardcode_direct_GCJ=yes
16291      hardcode_shlibpath_var_GCJ=no
16292      ;;
16293
16294    *)
16295      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16296	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16297	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16298      else
16299	ld_shlibs_GCJ=no
16300      fi
16301      ;;
16302    esac
16303
16304    if test "$ld_shlibs_GCJ" = no; then
16305      runpath_var=
16306      hardcode_libdir_flag_spec_GCJ=
16307      export_dynamic_flag_spec_GCJ=
16308      whole_archive_flag_spec_GCJ=
16309    fi
16310  else
16311    # PORTME fill in a description of your system's linker (not GNU ld)
16312    case $host_os in
16313    aix3*)
16314      allow_undefined_flag_GCJ=unsupported
16315      always_export_symbols_GCJ=yes
16316      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'
16317      # Note: this linker hardcodes the directories in LIBPATH if there
16318      # are no directories specified by -L.
16319      hardcode_minus_L_GCJ=yes
16320      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16321	# Neither direct hardcoding nor static linking is supported with a
16322	# broken collect2.
16323	hardcode_direct_GCJ=unsupported
16324      fi
16325      ;;
16326
16327    aix4* | aix5*)
16328      if test "$host_cpu" = ia64; then
16329	# On IA64, the linker does run time linking by default, so we don't
16330	# have to do anything special.
16331	aix_use_runtimelinking=no
16332	exp_sym_flag='-Bexport'
16333	no_entry_flag=""
16334      else
16335	# If we're using GNU nm, then we don't want the "-C" option.
16336	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16337	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16338	  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'
16339	else
16340	  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'
16341	fi
16342	aix_use_runtimelinking=no
16343
16344	# Test if we are trying to use run time linking or normal
16345	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16346	# need to do runtime linking.
16347	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16348	  for ld_flag in $LDFLAGS; do
16349  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16350  	    aix_use_runtimelinking=yes
16351  	    break
16352  	  fi
16353	  done
16354	  ;;
16355	esac
16356
16357	exp_sym_flag='-bexport'
16358	no_entry_flag='-bnoentry'
16359      fi
16360
16361      # When large executables or shared objects are built, AIX ld can
16362      # have problems creating the table of contents.  If linking a library
16363      # or program results in "error TOC overflow" add -mminimal-toc to
16364      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16365      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16366
16367      archive_cmds_GCJ=''
16368      hardcode_direct_GCJ=yes
16369      hardcode_libdir_separator_GCJ=':'
16370      link_all_deplibs_GCJ=yes
16371
16372      if test "$GCC" = yes; then
16373	case $host_os in aix4.[012]|aix4.[012].*)
16374	# We only want to do this on AIX 4.2 and lower, the check
16375	# below for broken collect2 doesn't work under 4.3+
16376	  collect2name=`${CC} -print-prog-name=collect2`
16377	  if test -f "$collect2name" && \
16378  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16379	  then
16380  	  # We have reworked collect2
16381  	  hardcode_direct_GCJ=yes
16382	  else
16383  	  # We have old collect2
16384  	  hardcode_direct_GCJ=unsupported
16385  	  # It fails to find uninstalled libraries when the uninstalled
16386  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16387  	  # to unsupported forces relinking
16388  	  hardcode_minus_L_GCJ=yes
16389  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16390  	  hardcode_libdir_separator_GCJ=
16391	  fi
16392	  ;;
16393	esac
16394	shared_flag='-shared'
16395	if test "$aix_use_runtimelinking" = yes; then
16396	  shared_flag="$shared_flag "'${wl}-G'
16397	fi
16398      else
16399	# not using gcc
16400	if test "$host_cpu" = ia64; then
16401  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16402  	# chokes on -Wl,-G. The following line is correct:
16403	  shared_flag='-G'
16404	else
16405	  if test "$aix_use_runtimelinking" = yes; then
16406	    shared_flag='${wl}-G'
16407	  else
16408	    shared_flag='${wl}-bM:SRE'
16409	  fi
16410	fi
16411      fi
16412
16413      # It seems that -bexpall does not export symbols beginning with
16414      # underscore (_), so it is better to generate a list of symbols to export.
16415      always_export_symbols_GCJ=yes
16416      if test "$aix_use_runtimelinking" = yes; then
16417	# Warning - without using the other runtime loading flags (-brtl),
16418	# -berok will link without error, but may produce a broken library.
16419	allow_undefined_flag_GCJ='-berok'
16420       # Determine the default libpath from the value encoded in an empty executable.
16421       cat >conftest.$ac_ext <<_ACEOF
16422/* confdefs.h.  */
16423_ACEOF
16424cat confdefs.h >>conftest.$ac_ext
16425cat >>conftest.$ac_ext <<_ACEOF
16426/* end confdefs.h.  */
16427
16428int
16429main ()
16430{
16431
16432  ;
16433  return 0;
16434}
16435_ACEOF
16436rm -f conftest.$ac_objext conftest$ac_exeext
16437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16438  (eval $ac_link) 2>conftest.er1
16439  ac_status=$?
16440  grep -v '^ *+' conftest.er1 >conftest.err
16441  rm -f conftest.er1
16442  cat conftest.err >&5
16443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444  (exit $ac_status); } &&
16445	 { ac_try='test -z "$ac_c_werror_flag"
16446			 || test ! -s conftest.err'
16447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448  (eval $ac_try) 2>&5
16449  ac_status=$?
16450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451  (exit $ac_status); }; } &&
16452	 { ac_try='test -s conftest$ac_exeext'
16453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454  (eval $ac_try) 2>&5
16455  ac_status=$?
16456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457  (exit $ac_status); }; }; then
16458
16459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16460}'`
16461# Check for a 64-bit object if we didn't find anything.
16462if 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; }
16463}'`; fi
16464else
16465  echo "$as_me: failed program was:" >&5
16466sed 's/^/| /' conftest.$ac_ext >&5
16467
16468fi
16469rm -f conftest.err conftest.$ac_objext \
16470      conftest$ac_exeext conftest.$ac_ext
16471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16472
16473       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16474	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16475       else
16476	if test "$host_cpu" = ia64; then
16477	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16478	  allow_undefined_flag_GCJ="-z nodefs"
16479	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16480	else
16481	 # Determine the default libpath from the value encoded in an empty executable.
16482	 cat >conftest.$ac_ext <<_ACEOF
16483/* confdefs.h.  */
16484_ACEOF
16485cat confdefs.h >>conftest.$ac_ext
16486cat >>conftest.$ac_ext <<_ACEOF
16487/* end confdefs.h.  */
16488
16489int
16490main ()
16491{
16492
16493  ;
16494  return 0;
16495}
16496_ACEOF
16497rm -f conftest.$ac_objext conftest$ac_exeext
16498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16499  (eval $ac_link) 2>conftest.er1
16500  ac_status=$?
16501  grep -v '^ *+' conftest.er1 >conftest.err
16502  rm -f conftest.er1
16503  cat conftest.err >&5
16504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505  (exit $ac_status); } &&
16506	 { ac_try='test -z "$ac_c_werror_flag"
16507			 || test ! -s conftest.err'
16508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509  (eval $ac_try) 2>&5
16510  ac_status=$?
16511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512  (exit $ac_status); }; } &&
16513	 { ac_try='test -s conftest$ac_exeext'
16514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515  (eval $ac_try) 2>&5
16516  ac_status=$?
16517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518  (exit $ac_status); }; }; then
16519
16520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16521}'`
16522# Check for a 64-bit object if we didn't find anything.
16523if 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; }
16524}'`; fi
16525else
16526  echo "$as_me: failed program was:" >&5
16527sed 's/^/| /' conftest.$ac_ext >&5
16528
16529fi
16530rm -f conftest.err conftest.$ac_objext \
16531      conftest$ac_exeext conftest.$ac_ext
16532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16533
16534	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16535	  # Warning - without using the other run time loading flags,
16536	  # -berok will link without error, but may produce a broken library.
16537	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16538	  allow_undefined_flag_GCJ=' ${wl}-berok'
16539	  # Exported symbols can be pulled into shared objects from archives
16540	  whole_archive_flag_spec_GCJ='$convenience'
16541	  archive_cmds_need_lc_GCJ=yes
16542	  # This is similar to how AIX traditionally builds its shared libraries.
16543	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16544	fi
16545      fi
16546      ;;
16547
16548    amigaos*)
16549      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)'
16550      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16551      hardcode_minus_L_GCJ=yes
16552      # see comment about different semantics on the GNU ld section
16553      ld_shlibs_GCJ=no
16554      ;;
16555
16556    bsdi[45]*)
16557      export_dynamic_flag_spec_GCJ=-rdynamic
16558      ;;
16559
16560    cygwin* | mingw* | pw32*)
16561      # When not using gcc, we currently assume that we are using
16562      # Microsoft Visual C++.
16563      # hardcode_libdir_flag_spec is actually meaningless, as there is
16564      # no search path for DLLs.
16565      hardcode_libdir_flag_spec_GCJ=' '
16566      allow_undefined_flag_GCJ=unsupported
16567      # Tell ltmain to make .lib files, not .a files.
16568      libext=lib
16569      # Tell ltmain to make .dll files, not .so files.
16570      shrext_cmds=".dll"
16571      # FIXME: Setting linknames here is a bad hack.
16572      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16573      # The linker will automatically build a .lib file if we build a DLL.
16574      old_archive_From_new_cmds_GCJ='true'
16575      # FIXME: Should let the user specify the lib program.
16576      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16577      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16578      enable_shared_with_static_runtimes_GCJ=yes
16579      ;;
16580
16581    darwin* | rhapsody*)
16582      case $host_os in
16583        rhapsody* | darwin1.[012])
16584         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16585         ;;
16586       *) # Darwin 1.3 on
16587         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16588           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16589         else
16590           case ${MACOSX_DEPLOYMENT_TARGET} in
16591             10.[012])
16592               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16593               ;;
16594             10.*)
16595               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16596               ;;
16597           esac
16598         fi
16599         ;;
16600      esac
16601      archive_cmds_need_lc_GCJ=no
16602      hardcode_direct_GCJ=no
16603      hardcode_automatic_GCJ=yes
16604      hardcode_shlibpath_var_GCJ=unsupported
16605      whole_archive_flag_spec_GCJ=''
16606      link_all_deplibs_GCJ=yes
16607    if test "$GCC" = yes ; then
16608    	output_verbose_link_cmd='echo'
16609        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16610      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16611      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16612      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16613      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}'
16614    else
16615      case $cc_basename in
16616        xlc*)
16617         output_verbose_link_cmd='echo'
16618         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16619         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16620          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16621         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16622          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}'
16623          ;;
16624       *)
16625         ld_shlibs_GCJ=no
16626          ;;
16627      esac
16628    fi
16629      ;;
16630
16631    dgux*)
16632      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16633      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16634      hardcode_shlibpath_var_GCJ=no
16635      ;;
16636
16637    freebsd1*)
16638      ld_shlibs_GCJ=no
16639      ;;
16640
16641    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16642    # support.  Future versions do this automatically, but an explicit c++rt0.o
16643    # does not break anything, and helps significantly (at the cost of a little
16644    # extra space).
16645    freebsd2.2*)
16646      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16647      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16648      hardcode_direct_GCJ=yes
16649      hardcode_shlibpath_var_GCJ=no
16650      ;;
16651
16652    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16653    freebsd2*)
16654      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16655      hardcode_direct_GCJ=yes
16656      hardcode_minus_L_GCJ=yes
16657      hardcode_shlibpath_var_GCJ=no
16658      ;;
16659
16660    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16661    freebsd* | kfreebsd*-gnu | dragonfly*)
16662      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16663      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16664      hardcode_direct_GCJ=yes
16665      hardcode_shlibpath_var_GCJ=no
16666      ;;
16667
16668    hpux9*)
16669      if test "$GCC" = yes; then
16670	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'
16671      else
16672	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'
16673      fi
16674      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16675      hardcode_libdir_separator_GCJ=:
16676      hardcode_direct_GCJ=yes
16677
16678      # hardcode_minus_L: Not really in the search PATH,
16679      # but as the default location of the library.
16680      hardcode_minus_L_GCJ=yes
16681      export_dynamic_flag_spec_GCJ='${wl}-E'
16682      ;;
16683
16684    hpux10*)
16685      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16686	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16687      else
16688	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16689      fi
16690      if test "$with_gnu_ld" = no; then
16691	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16692	hardcode_libdir_separator_GCJ=:
16693
16694	hardcode_direct_GCJ=yes
16695	export_dynamic_flag_spec_GCJ='${wl}-E'
16696
16697	# hardcode_minus_L: Not really in the search PATH,
16698	# but as the default location of the library.
16699	hardcode_minus_L_GCJ=yes
16700      fi
16701      ;;
16702
16703    hpux11*)
16704      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16705	case $host_cpu in
16706	hppa*64*)
16707	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16708	  ;;
16709	ia64*)
16710	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16711	  ;;
16712	*)
16713	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16714	  ;;
16715	esac
16716      else
16717	case $host_cpu in
16718	hppa*64*)
16719	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16720	  ;;
16721	ia64*)
16722	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16723	  ;;
16724	*)
16725	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16726	  ;;
16727	esac
16728      fi
16729      if test "$with_gnu_ld" = no; then
16730	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16731	hardcode_libdir_separator_GCJ=:
16732
16733	case $host_cpu in
16734	hppa*64*|ia64*)
16735	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16736	  hardcode_direct_GCJ=no
16737	  hardcode_shlibpath_var_GCJ=no
16738	  ;;
16739	*)
16740	  hardcode_direct_GCJ=yes
16741	  export_dynamic_flag_spec_GCJ='${wl}-E'
16742
16743	  # hardcode_minus_L: Not really in the search PATH,
16744	  # but as the default location of the library.
16745	  hardcode_minus_L_GCJ=yes
16746	  ;;
16747	esac
16748      fi
16749      ;;
16750
16751    irix5* | irix6* | nonstopux*)
16752      if test "$GCC" = yes; then
16753	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'
16754      else
16755	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'
16756	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16757      fi
16758      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16759      hardcode_libdir_separator_GCJ=:
16760      link_all_deplibs_GCJ=yes
16761      ;;
16762
16763    netbsd*)
16764      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16765	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16766      else
16767	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16768      fi
16769      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16770      hardcode_direct_GCJ=yes
16771      hardcode_shlibpath_var_GCJ=no
16772      ;;
16773
16774    newsos6)
16775      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16776      hardcode_direct_GCJ=yes
16777      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16778      hardcode_libdir_separator_GCJ=:
16779      hardcode_shlibpath_var_GCJ=no
16780      ;;
16781
16782    openbsd*)
16783      hardcode_direct_GCJ=yes
16784      hardcode_shlibpath_var_GCJ=no
16785      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16786	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16787	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16788	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16789	export_dynamic_flag_spec_GCJ='${wl}-E'
16790      else
16791       case $host_os in
16792	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16793	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16794	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16795	   ;;
16796	 *)
16797	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16798	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16799	   ;;
16800       esac
16801      fi
16802      ;;
16803
16804    os2*)
16805      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16806      hardcode_minus_L_GCJ=yes
16807      allow_undefined_flag_GCJ=unsupported
16808      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'
16809      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16810      ;;
16811
16812    osf3*)
16813      if test "$GCC" = yes; then
16814	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16815	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'
16816      else
16817	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16818	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'
16819      fi
16820      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16821      hardcode_libdir_separator_GCJ=:
16822      ;;
16823
16824    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16825      if test "$GCC" = yes; then
16826	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16827	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'
16828	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16829      else
16830	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16831	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'
16832	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~
16833	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16834
16835	# Both c and cxx compiler support -rpath directly
16836	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16837      fi
16838      hardcode_libdir_separator_GCJ=:
16839      ;;
16840
16841    solaris*)
16842      no_undefined_flag_GCJ=' -z text'
16843      if test "$GCC" = yes; then
16844	wlarc='${wl}'
16845	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16846	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16847	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16848      else
16849	wlarc=''
16850	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16851	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16852  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16853      fi
16854      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16855      hardcode_shlibpath_var_GCJ=no
16856      case $host_os in
16857      solaris2.[0-5] | solaris2.[0-5].*) ;;
16858      *)
16859 	# The compiler driver will combine linker options so we
16860 	# cannot just pass the convience library names through
16861 	# without $wl, iff we do not link with $LD.
16862 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16863 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16864 	case $wlarc in
16865 	'')
16866 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16867 	*)
16868 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16869 	esac ;;
16870      esac
16871      link_all_deplibs_GCJ=yes
16872      ;;
16873
16874    sunos4*)
16875      if test "x$host_vendor" = xsequent; then
16876	# Use $CC to link under sequent, because it throws in some extra .o
16877	# files that make .init and .fini sections work.
16878	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16879      else
16880	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16881      fi
16882      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16883      hardcode_direct_GCJ=yes
16884      hardcode_minus_L_GCJ=yes
16885      hardcode_shlibpath_var_GCJ=no
16886      ;;
16887
16888    sysv4)
16889      case $host_vendor in
16890	sni)
16891	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892	  hardcode_direct_GCJ=yes # is this really true???
16893	;;
16894	siemens)
16895	  ## LD is ld it makes a PLAMLIB
16896	  ## CC just makes a GrossModule.
16897	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16898	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16899	  hardcode_direct_GCJ=no
16900        ;;
16901	motorola)
16902	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16903	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16904	;;
16905      esac
16906      runpath_var='LD_RUN_PATH'
16907      hardcode_shlibpath_var_GCJ=no
16908      ;;
16909
16910    sysv4.3*)
16911      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16912      hardcode_shlibpath_var_GCJ=no
16913      export_dynamic_flag_spec_GCJ='-Bexport'
16914      ;;
16915
16916    sysv4*MP*)
16917      if test -d /usr/nec; then
16918	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16919	hardcode_shlibpath_var_GCJ=no
16920	runpath_var=LD_RUN_PATH
16921	hardcode_runpath_var=yes
16922	ld_shlibs_GCJ=yes
16923      fi
16924      ;;
16925
16926    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16927      no_undefined_flag_GCJ='${wl}-z,text'
16928      archive_cmds_need_lc_GCJ=no
16929      hardcode_shlibpath_var_GCJ=no
16930      runpath_var='LD_RUN_PATH'
16931
16932      if test "$GCC" = yes; then
16933	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16934	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16935      else
16936	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16937	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16938      fi
16939      ;;
16940
16941    sysv5* | sco3.2v5* | sco5v6*)
16942      # Note: We can NOT use -z defs as we might desire, because we do not
16943      # link with -lc, and that would cause any symbols used from libc to
16944      # always be unresolved, which means just about no library would
16945      # ever link correctly.  If we're not using GNU ld we use -z text
16946      # though, which does catch some bad symbols but isn't as heavy-handed
16947      # as -z defs.
16948      no_undefined_flag_GCJ='${wl}-z,text'
16949      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16950      archive_cmds_need_lc_GCJ=no
16951      hardcode_shlibpath_var_GCJ=no
16952      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16953      hardcode_libdir_separator_GCJ=':'
16954      link_all_deplibs_GCJ=yes
16955      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16956      runpath_var='LD_RUN_PATH'
16957
16958      if test "$GCC" = yes; then
16959	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16960	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16961      else
16962	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16963	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16964      fi
16965      ;;
16966
16967    uts4*)
16968      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16969      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16970      hardcode_shlibpath_var_GCJ=no
16971      ;;
16972
16973    *)
16974      ld_shlibs_GCJ=no
16975      ;;
16976    esac
16977  fi
16978
16979echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16980echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16981test "$ld_shlibs_GCJ" = no && can_build_shared=no
16982
16983#
16984# Do we need to explicitly link libc?
16985#
16986case "x$archive_cmds_need_lc_GCJ" in
16987x|xyes)
16988  # Assume -lc should be added
16989  archive_cmds_need_lc_GCJ=yes
16990
16991  if test "$enable_shared" = yes && test "$GCC" = yes; then
16992    case $archive_cmds_GCJ in
16993    *'~'*)
16994      # FIXME: we may have to deal with multi-command sequences.
16995      ;;
16996    '$CC '*)
16997      # Test whether the compiler implicitly links with -lc since on some
16998      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16999      # to ld, don't add -lc before -lgcc.
17000      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17001echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17002      $rm conftest*
17003      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17004
17005      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17006  (eval $ac_compile) 2>&5
17007  ac_status=$?
17008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009  (exit $ac_status); } 2>conftest.err; then
17010        soname=conftest
17011        lib=conftest
17012        libobjs=conftest.$ac_objext
17013        deplibs=
17014        wl=$lt_prog_compiler_wl_GCJ
17015	pic_flag=$lt_prog_compiler_pic_GCJ
17016        compiler_flags=-v
17017        linker_flags=-v
17018        verstring=
17019        output_objdir=.
17020        libname=conftest
17021        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17022        allow_undefined_flag_GCJ=
17023        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17024  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17025  ac_status=$?
17026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027  (exit $ac_status); }
17028        then
17029	  archive_cmds_need_lc_GCJ=no
17030        else
17031	  archive_cmds_need_lc_GCJ=yes
17032        fi
17033        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17034      else
17035        cat conftest.err 1>&5
17036      fi
17037      $rm conftest*
17038      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17039echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17040      ;;
17041    esac
17042  fi
17043  ;;
17044esac
17045
17046echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17047echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17048library_names_spec=
17049libname_spec='lib$name'
17050soname_spec=
17051shrext_cmds=".so"
17052postinstall_cmds=
17053postuninstall_cmds=
17054finish_cmds=
17055finish_eval=
17056shlibpath_var=
17057shlibpath_overrides_runpath=unknown
17058version_type=none
17059dynamic_linker="$host_os ld.so"
17060sys_lib_dlsearch_path_spec="/lib /usr/lib"
17061if test "$GCC" = yes; then
17062  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17063  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17064    # if the path contains ";" then we assume it to be the separator
17065    # otherwise default to the standard path separator (i.e. ":") - it is
17066    # assumed that no part of a normal pathname contains ";" but that should
17067    # okay in the real world where ";" in dirpaths is itself problematic.
17068    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17069  else
17070    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17071  fi
17072else
17073  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17074fi
17075need_lib_prefix=unknown
17076hardcode_into_libs=no
17077
17078# when you set need_version to no, make sure it does not cause -set_version
17079# flags to be left without arguments
17080need_version=unknown
17081
17082case $host_os in
17083aix3*)
17084  version_type=linux
17085  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17086  shlibpath_var=LIBPATH
17087
17088  # AIX 3 has no versioning support, so we append a major version to the name.
17089  soname_spec='${libname}${release}${shared_ext}$major'
17090  ;;
17091
17092aix4* | aix5*)
17093  version_type=linux
17094  need_lib_prefix=no
17095  need_version=no
17096  hardcode_into_libs=yes
17097  if test "$host_cpu" = ia64; then
17098    # AIX 5 supports IA64
17099    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17100    shlibpath_var=LD_LIBRARY_PATH
17101  else
17102    # With GCC up to 2.95.x, collect2 would create an import file
17103    # for dependence libraries.  The import file would start with
17104    # the line `#! .'.  This would cause the generated library to
17105    # depend on `.', always an invalid library.  This was fixed in
17106    # development snapshots of GCC prior to 3.0.
17107    case $host_os in
17108      aix4 | aix4.[01] | aix4.[01].*)
17109      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17110	   echo ' yes '
17111	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17112	:
17113      else
17114	can_build_shared=no
17115      fi
17116      ;;
17117    esac
17118    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17119    # soname into executable. Probably we can add versioning support to
17120    # collect2, so additional links can be useful in future.
17121    if test "$aix_use_runtimelinking" = yes; then
17122      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17123      # instead of lib<name>.a to let people know that these are not
17124      # typical AIX shared libraries.
17125      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17126    else
17127      # We preserve .a as extension for shared libraries through AIX4.2
17128      # and later when we are not doing run time linking.
17129      library_names_spec='${libname}${release}.a $libname.a'
17130      soname_spec='${libname}${release}${shared_ext}$major'
17131    fi
17132    shlibpath_var=LIBPATH
17133  fi
17134  ;;
17135
17136amigaos*)
17137  library_names_spec='$libname.ixlibrary $libname.a'
17138  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17139  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'
17140  ;;
17141
17142beos*)
17143  library_names_spec='${libname}${shared_ext}'
17144  dynamic_linker="$host_os ld.so"
17145  shlibpath_var=LIBRARY_PATH
17146  ;;
17147
17148bsdi[45]*)
17149  version_type=linux
17150  need_version=no
17151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17152  soname_spec='${libname}${release}${shared_ext}$major'
17153  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17154  shlibpath_var=LD_LIBRARY_PATH
17155  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17156  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17157  # the default ld.so.conf also contains /usr/contrib/lib and
17158  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17159  # libtool to hard-code these into programs
17160  ;;
17161
17162cygwin* | mingw* | pw32*)
17163  version_type=windows
17164  shrext_cmds=".dll"
17165  need_version=no
17166  need_lib_prefix=no
17167
17168  case $GCC,$host_os in
17169  yes,cygwin* | yes,mingw* | yes,pw32*)
17170    library_names_spec='$libname.dll.a'
17171    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17172    postinstall_cmds='base_file=`basename \${file}`~
17173      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17174      dldir=$destdir/`dirname \$dlpath`~
17175      test -d \$dldir || mkdir -p \$dldir~
17176      $install_prog $dir/$dlname \$dldir/$dlname~
17177      chmod a+x \$dldir/$dlname'
17178    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17179      dlpath=$dir/\$dldll~
17180       $rm \$dlpath'
17181    shlibpath_overrides_runpath=yes
17182
17183    case $host_os in
17184    cygwin*)
17185      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17186      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17187      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17188      ;;
17189    mingw*)
17190      # MinGW DLLs use traditional 'lib' prefix
17191      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17192      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17193      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17194        # It is most probably a Windows format PATH printed by
17195        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17196        # path with ; separators, and with drive letters. We can handle the
17197        # drive letters (cygwin fileutils understands them), so leave them,
17198        # especially as we might pass files found there to a mingw objdump,
17199        # which wouldn't understand a cygwinified path. Ahh.
17200        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17201      else
17202        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17203      fi
17204      ;;
17205    pw32*)
17206      # pw32 DLLs use 'pw' prefix rather than 'lib'
17207      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17208      ;;
17209    esac
17210    ;;
17211
17212  *)
17213    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17214    ;;
17215  esac
17216  dynamic_linker='Win32 ld.exe'
17217  # FIXME: first we should search . and the directory the executable is in
17218  shlibpath_var=PATH
17219  ;;
17220
17221darwin* | rhapsody*)
17222  dynamic_linker="$host_os dyld"
17223  version_type=darwin
17224  need_lib_prefix=no
17225  need_version=no
17226  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17227  soname_spec='${libname}${release}${major}$shared_ext'
17228  shlibpath_overrides_runpath=yes
17229  shlibpath_var=DYLD_LIBRARY_PATH
17230  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17231  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17232  if test "$GCC" = yes; then
17233    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"`
17234  else
17235    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17236  fi
17237  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17238  ;;
17239
17240dgux*)
17241  version_type=linux
17242  need_lib_prefix=no
17243  need_version=no
17244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17245  soname_spec='${libname}${release}${shared_ext}$major'
17246  shlibpath_var=LD_LIBRARY_PATH
17247  ;;
17248
17249freebsd1*)
17250  dynamic_linker=no
17251  ;;
17252
17253kfreebsd*-gnu)
17254  version_type=linux
17255  need_lib_prefix=no
17256  need_version=no
17257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17258  soname_spec='${libname}${release}${shared_ext}$major'
17259  shlibpath_var=LD_LIBRARY_PATH
17260  shlibpath_overrides_runpath=no
17261  hardcode_into_libs=yes
17262  dynamic_linker='GNU ld.so'
17263  ;;
17264
17265freebsd* | dragonfly*)
17266  # DragonFly does not have aout.  When/if they implement a new
17267  # versioning mechanism, adjust this.
17268  if test -x /usr/bin/objformat; then
17269    objformat=`/usr/bin/objformat`
17270  else
17271    case $host_os in
17272    freebsd[123]*) objformat=aout ;;
17273    *) objformat=elf ;;
17274    esac
17275  fi
17276  version_type=freebsd-$objformat
17277  case $version_type in
17278    freebsd-elf*)
17279      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17280      need_version=no
17281      need_lib_prefix=no
17282      ;;
17283    freebsd-*)
17284      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17285      need_version=yes
17286      ;;
17287  esac
17288  shlibpath_var=LD_LIBRARY_PATH
17289  case $host_os in
17290  freebsd2*)
17291    shlibpath_overrides_runpath=yes
17292    ;;
17293  freebsd3.[01]* | freebsdelf3.[01]*)
17294    shlibpath_overrides_runpath=yes
17295    hardcode_into_libs=yes
17296    ;;
17297  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17298  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17299    shlibpath_overrides_runpath=no
17300    hardcode_into_libs=yes
17301    ;;
17302  freebsd*) # from 4.6 on
17303    shlibpath_overrides_runpath=yes
17304    hardcode_into_libs=yes
17305    ;;
17306  esac
17307  ;;
17308
17309gnu*)
17310  version_type=linux
17311  need_lib_prefix=no
17312  need_version=no
17313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17314  soname_spec='${libname}${release}${shared_ext}$major'
17315  shlibpath_var=LD_LIBRARY_PATH
17316  hardcode_into_libs=yes
17317  ;;
17318
17319hpux9* | hpux10* | hpux11*)
17320  # Give a soname corresponding to the major version so that dld.sl refuses to
17321  # link against other versions.
17322  version_type=sunos
17323  need_lib_prefix=no
17324  need_version=no
17325  case $host_cpu in
17326  ia64*)
17327    shrext_cmds='.so'
17328    hardcode_into_libs=yes
17329    dynamic_linker="$host_os dld.so"
17330    shlibpath_var=LD_LIBRARY_PATH
17331    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17332    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333    soname_spec='${libname}${release}${shared_ext}$major'
17334    if test "X$HPUX_IA64_MODE" = X32; then
17335      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17336    else
17337      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17338    fi
17339    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17340    ;;
17341   hppa*64*)
17342     shrext_cmds='.sl'
17343     hardcode_into_libs=yes
17344     dynamic_linker="$host_os dld.sl"
17345     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17346     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17347     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348     soname_spec='${libname}${release}${shared_ext}$major'
17349     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17350     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17351     ;;
17352   *)
17353    shrext_cmds='.sl'
17354    dynamic_linker="$host_os dld.sl"
17355    shlibpath_var=SHLIB_PATH
17356    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17357    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358    soname_spec='${libname}${release}${shared_ext}$major'
17359    ;;
17360  esac
17361  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17362  postinstall_cmds='chmod 555 $lib'
17363  ;;
17364
17365interix3*)
17366  version_type=linux
17367  need_lib_prefix=no
17368  need_version=no
17369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17370  soname_spec='${libname}${release}${shared_ext}$major'
17371  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17372  shlibpath_var=LD_LIBRARY_PATH
17373  shlibpath_overrides_runpath=no
17374  hardcode_into_libs=yes
17375  ;;
17376
17377irix5* | irix6* | nonstopux*)
17378  case $host_os in
17379    nonstopux*) version_type=nonstopux ;;
17380    *)
17381	if test "$lt_cv_prog_gnu_ld" = yes; then
17382		version_type=linux
17383	else
17384		version_type=irix
17385	fi ;;
17386  esac
17387  need_lib_prefix=no
17388  need_version=no
17389  soname_spec='${libname}${release}${shared_ext}$major'
17390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17391  case $host_os in
17392  irix5* | nonstopux*)
17393    libsuff= shlibsuff=
17394    ;;
17395  *)
17396    case $LD in # libtool.m4 will add one of these switches to LD
17397    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17398      libsuff= shlibsuff= libmagic=32-bit;;
17399    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17400      libsuff=32 shlibsuff=N32 libmagic=N32;;
17401    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17402      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17403    *) libsuff= shlibsuff= libmagic=never-match;;
17404    esac
17405    ;;
17406  esac
17407  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17408  shlibpath_overrides_runpath=no
17409  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17410  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17411  hardcode_into_libs=yes
17412  ;;
17413
17414# No shared lib support for Linux oldld, aout, or coff.
17415linux*oldld* | linux*aout* | linux*coff*)
17416  dynamic_linker=no
17417  ;;
17418
17419# This must be Linux ELF.
17420linux*)
17421  version_type=linux
17422  need_lib_prefix=no
17423  need_version=no
17424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425  soname_spec='${libname}${release}${shared_ext}$major'
17426  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17427  shlibpath_var=LD_LIBRARY_PATH
17428  shlibpath_overrides_runpath=no
17429  # This implies no fast_install, which is unacceptable.
17430  # Some rework will be needed to allow for fast_install
17431  # before this can be enabled.
17432  hardcode_into_libs=yes
17433
17434  # find out which ABI we are using
17435  libsuff=
17436  case "$host_cpu" in
17437  x86_64*|s390x*|powerpc64*)
17438    echo '#line 17438 "configure"' > conftest.$ac_ext
17439    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17440  (eval $ac_compile) 2>&5
17441  ac_status=$?
17442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443  (exit $ac_status); }; then
17444      case `/usr/bin/file conftest.$ac_objext` in
17445      *64-bit*)
17446        libsuff=64
17447        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17448        ;;
17449      esac
17450    fi
17451    rm -rf conftest*
17452    ;;
17453  esac
17454
17455  # Append ld.so.conf contents to the search path
17456  if test -f /etc/ld.so.conf; then
17457    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17458    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17459  fi
17460
17461  # We used to test for /lib/ld.so.1 and disable shared libraries on
17462  # powerpc, because MkLinux only supported shared libraries with the
17463  # GNU dynamic linker.  Since this was broken with cross compilers,
17464  # most powerpc-linux boxes support dynamic linking these days and
17465  # people can always --disable-shared, the test was removed, and we
17466  # assume the GNU/Linux dynamic linker is in use.
17467  dynamic_linker='GNU/Linux ld.so'
17468  ;;
17469
17470knetbsd*-gnu)
17471  version_type=linux
17472  need_lib_prefix=no
17473  need_version=no
17474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17475  soname_spec='${libname}${release}${shared_ext}$major'
17476  shlibpath_var=LD_LIBRARY_PATH
17477  shlibpath_overrides_runpath=no
17478  hardcode_into_libs=yes
17479  dynamic_linker='GNU ld.so'
17480  ;;
17481
17482netbsd*)
17483  version_type=sunos
17484  need_lib_prefix=no
17485  need_version=no
17486  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17487    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17488    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17489    dynamic_linker='NetBSD (a.out) ld.so'
17490  else
17491    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17492    soname_spec='${libname}${release}${shared_ext}$major'
17493    dynamic_linker='NetBSD ld.elf_so'
17494  fi
17495  shlibpath_var=LD_LIBRARY_PATH
17496  shlibpath_overrides_runpath=yes
17497  hardcode_into_libs=yes
17498  ;;
17499
17500newsos6)
17501  version_type=linux
17502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17503  shlibpath_var=LD_LIBRARY_PATH
17504  shlibpath_overrides_runpath=yes
17505  ;;
17506
17507nto-qnx*)
17508  version_type=linux
17509  need_lib_prefix=no
17510  need_version=no
17511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17512  soname_spec='${libname}${release}${shared_ext}$major'
17513  shlibpath_var=LD_LIBRARY_PATH
17514  shlibpath_overrides_runpath=yes
17515  ;;
17516
17517openbsd*)
17518  version_type=sunos
17519  sys_lib_dlsearch_path_spec="/usr/lib"
17520  need_lib_prefix=no
17521  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17522  case $host_os in
17523    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17524    *)                         need_version=no  ;;
17525  esac
17526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17527  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17528  shlibpath_var=LD_LIBRARY_PATH
17529  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17530    case $host_os in
17531      openbsd2.[89] | openbsd2.[89].*)
17532	shlibpath_overrides_runpath=no
17533	;;
17534      *)
17535	shlibpath_overrides_runpath=yes
17536	;;
17537      esac
17538  else
17539    shlibpath_overrides_runpath=yes
17540  fi
17541  ;;
17542
17543os2*)
17544  libname_spec='$name'
17545  shrext_cmds=".dll"
17546  need_lib_prefix=no
17547  library_names_spec='$libname${shared_ext} $libname.a'
17548  dynamic_linker='OS/2 ld.exe'
17549  shlibpath_var=LIBPATH
17550  ;;
17551
17552osf3* | osf4* | osf5*)
17553  version_type=osf
17554  need_lib_prefix=no
17555  need_version=no
17556  soname_spec='${libname}${release}${shared_ext}$major'
17557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558  shlibpath_var=LD_LIBRARY_PATH
17559  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17560  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17561  ;;
17562
17563solaris*)
17564  version_type=linux
17565  need_lib_prefix=no
17566  need_version=no
17567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568  soname_spec='${libname}${release}${shared_ext}$major'
17569  shlibpath_var=LD_LIBRARY_PATH
17570  shlibpath_overrides_runpath=yes
17571  hardcode_into_libs=yes
17572  # ldd complains unless libraries are executable
17573  postinstall_cmds='chmod +x $lib'
17574  ;;
17575
17576sunos4*)
17577  version_type=sunos
17578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17579  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17580  shlibpath_var=LD_LIBRARY_PATH
17581  shlibpath_overrides_runpath=yes
17582  if test "$with_gnu_ld" = yes; then
17583    need_lib_prefix=no
17584  fi
17585  need_version=yes
17586  ;;
17587
17588sysv4 | sysv4.3*)
17589  version_type=linux
17590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17591  soname_spec='${libname}${release}${shared_ext}$major'
17592  shlibpath_var=LD_LIBRARY_PATH
17593  case $host_vendor in
17594    sni)
17595      shlibpath_overrides_runpath=no
17596      need_lib_prefix=no
17597      export_dynamic_flag_spec='${wl}-Blargedynsym'
17598      runpath_var=LD_RUN_PATH
17599      ;;
17600    siemens)
17601      need_lib_prefix=no
17602      ;;
17603    motorola)
17604      need_lib_prefix=no
17605      need_version=no
17606      shlibpath_overrides_runpath=no
17607      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17608      ;;
17609  esac
17610  ;;
17611
17612sysv4*MP*)
17613  if test -d /usr/nec ;then
17614    version_type=linux
17615    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17616    soname_spec='$libname${shared_ext}.$major'
17617    shlibpath_var=LD_LIBRARY_PATH
17618  fi
17619  ;;
17620
17621sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17622  version_type=freebsd-elf
17623  need_lib_prefix=no
17624  need_version=no
17625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17626  soname_spec='${libname}${release}${shared_ext}$major'
17627  shlibpath_var=LD_LIBRARY_PATH
17628  hardcode_into_libs=yes
17629  if test "$with_gnu_ld" = yes; then
17630    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17631    shlibpath_overrides_runpath=no
17632  else
17633    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17634    shlibpath_overrides_runpath=yes
17635    case $host_os in
17636      sco3.2v5*)
17637        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17638	;;
17639    esac
17640  fi
17641  sys_lib_dlsearch_path_spec='/usr/lib'
17642  ;;
17643
17644uts4*)
17645  version_type=linux
17646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647  soname_spec='${libname}${release}${shared_ext}$major'
17648  shlibpath_var=LD_LIBRARY_PATH
17649  ;;
17650
17651*)
17652  dynamic_linker=no
17653  ;;
17654esac
17655echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17656echo "${ECHO_T}$dynamic_linker" >&6
17657test "$dynamic_linker" = no && can_build_shared=no
17658
17659variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17660if test "$GCC" = yes; then
17661  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17662fi
17663
17664echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17665echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17666hardcode_action_GCJ=
17667if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17668   test -n "$runpath_var_GCJ" || \
17669   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17670
17671  # We can hardcode non-existant directories.
17672  if test "$hardcode_direct_GCJ" != no &&
17673     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17674     # have to relink, otherwise we might link with an installed library
17675     # when we should be linking with a yet-to-be-installed one
17676     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17677     test "$hardcode_minus_L_GCJ" != no; then
17678    # Linking always hardcodes the temporary library directory.
17679    hardcode_action_GCJ=relink
17680  else
17681    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17682    hardcode_action_GCJ=immediate
17683  fi
17684else
17685  # We cannot hardcode anything, or else we can only hardcode existing
17686  # directories.
17687  hardcode_action_GCJ=unsupported
17688fi
17689echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17690echo "${ECHO_T}$hardcode_action_GCJ" >&6
17691
17692if test "$hardcode_action_GCJ" = relink; then
17693  # Fast installation is not supported
17694  enable_fast_install=no
17695elif test "$shlibpath_overrides_runpath" = yes ||
17696     test "$enable_shared" = no; then
17697  # Fast installation is not necessary
17698  enable_fast_install=needless
17699fi
17700
17701
17702# The else clause should only fire when bootstrapping the
17703# libtool distribution, otherwise you forgot to ship ltmain.sh
17704# with your package, and you will get complaints that there are
17705# no rules to generate ltmain.sh.
17706if test -f "$ltmain"; then
17707  # See if we are running on zsh, and set the options which allow our commands through
17708  # without removal of \ escapes.
17709  if test -n "${ZSH_VERSION+set}" ; then
17710    setopt NO_GLOB_SUBST
17711  fi
17712  # Now quote all the things that may contain metacharacters while being
17713  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17714  # variables and quote the copies for generation of the libtool script.
17715  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17716    SED SHELL STRIP \
17717    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17718    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17719    deplibs_check_method reload_flag reload_cmds need_locks \
17720    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17721    lt_cv_sys_global_symbol_to_c_name_address \
17722    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17723    old_postinstall_cmds old_postuninstall_cmds \
17724    compiler_GCJ \
17725    CC_GCJ \
17726    LD_GCJ \
17727    lt_prog_compiler_wl_GCJ \
17728    lt_prog_compiler_pic_GCJ \
17729    lt_prog_compiler_static_GCJ \
17730    lt_prog_compiler_no_builtin_flag_GCJ \
17731    export_dynamic_flag_spec_GCJ \
17732    thread_safe_flag_spec_GCJ \
17733    whole_archive_flag_spec_GCJ \
17734    enable_shared_with_static_runtimes_GCJ \
17735    old_archive_cmds_GCJ \
17736    old_archive_from_new_cmds_GCJ \
17737    predep_objects_GCJ \
17738    postdep_objects_GCJ \
17739    predeps_GCJ \
17740    postdeps_GCJ \
17741    compiler_lib_search_path_GCJ \
17742    archive_cmds_GCJ \
17743    archive_expsym_cmds_GCJ \
17744    postinstall_cmds_GCJ \
17745    postuninstall_cmds_GCJ \
17746    old_archive_from_expsyms_cmds_GCJ \
17747    allow_undefined_flag_GCJ \
17748    no_undefined_flag_GCJ \
17749    export_symbols_cmds_GCJ \
17750    hardcode_libdir_flag_spec_GCJ \
17751    hardcode_libdir_flag_spec_ld_GCJ \
17752    hardcode_libdir_separator_GCJ \
17753    hardcode_automatic_GCJ \
17754    module_cmds_GCJ \
17755    module_expsym_cmds_GCJ \
17756    lt_cv_prog_compiler_c_o_GCJ \
17757    exclude_expsyms_GCJ \
17758    include_expsyms_GCJ; do
17759
17760    case $var in
17761    old_archive_cmds_GCJ | \
17762    old_archive_from_new_cmds_GCJ | \
17763    archive_cmds_GCJ | \
17764    archive_expsym_cmds_GCJ | \
17765    module_cmds_GCJ | \
17766    module_expsym_cmds_GCJ | \
17767    old_archive_from_expsyms_cmds_GCJ | \
17768    export_symbols_cmds_GCJ | \
17769    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17770    postinstall_cmds | postuninstall_cmds | \
17771    old_postinstall_cmds | old_postuninstall_cmds | \
17772    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17773      # Double-quote double-evaled strings.
17774      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17775      ;;
17776    *)
17777      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17778      ;;
17779    esac
17780  done
17781
17782  case $lt_echo in
17783  *'\$0 --fallback-echo"')
17784    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17785    ;;
17786  esac
17787
17788cfgfile="$ofile"
17789
17790  cat <<__EOF__ >> "$cfgfile"
17791# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17792
17793# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17794
17795# Shell to use when invoking shell scripts.
17796SHELL=$lt_SHELL
17797
17798# Whether or not to build shared libraries.
17799build_libtool_libs=$enable_shared
17800
17801# Whether or not to build static libraries.
17802build_old_libs=$enable_static
17803
17804# Whether or not to add -lc for building shared libraries.
17805build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17806
17807# Whether or not to disallow shared libs when runtime libs are static
17808allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17809
17810# Whether or not to optimize for fast installation.
17811fast_install=$enable_fast_install
17812
17813# The host system.
17814host_alias=$host_alias
17815host=$host
17816host_os=$host_os
17817
17818# The build system.
17819build_alias=$build_alias
17820build=$build
17821build_os=$build_os
17822
17823# An echo program that does not interpret backslashes.
17824echo=$lt_echo
17825
17826# The archiver.
17827AR=$lt_AR
17828AR_FLAGS=$lt_AR_FLAGS
17829
17830# A C compiler.
17831LTCC=$lt_LTCC
17832
17833# LTCC compiler flags.
17834LTCFLAGS=$lt_LTCFLAGS
17835
17836# A language-specific compiler.
17837CC=$lt_compiler_GCJ
17838
17839# Is the compiler the GNU C compiler?
17840with_gcc=$GCC_GCJ
17841
17842gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17843gcc_ver=\`gcc -dumpversion\`
17844
17845# An ERE matcher.
17846EGREP=$lt_EGREP
17847
17848# The linker used to build libraries.
17849LD=$lt_LD_GCJ
17850
17851# Whether we need hard or soft links.
17852LN_S=$lt_LN_S
17853
17854# A BSD-compatible nm program.
17855NM=$lt_NM
17856
17857# A symbol stripping program
17858STRIP=$lt_STRIP
17859
17860# Used to examine libraries when file_magic_cmd begins "file"
17861MAGIC_CMD=$MAGIC_CMD
17862
17863# Used on cygwin: DLL creation program.
17864DLLTOOL="$DLLTOOL"
17865
17866# Used on cygwin: object dumper.
17867OBJDUMP="$OBJDUMP"
17868
17869# Used on cygwin: assembler.
17870AS="$AS"
17871
17872# The name of the directory that contains temporary libtool files.
17873objdir=$objdir
17874
17875# How to create reloadable object files.
17876reload_flag=$lt_reload_flag
17877reload_cmds=$lt_reload_cmds
17878
17879# How to pass a linker flag through the compiler.
17880wl=$lt_lt_prog_compiler_wl_GCJ
17881
17882# Object file suffix (normally "o").
17883objext="$ac_objext"
17884
17885# Old archive suffix (normally "a").
17886libext="$libext"
17887
17888# Shared library suffix (normally ".so").
17889shrext_cmds='$shrext_cmds'
17890
17891# Executable file suffix (normally "").
17892exeext="$exeext"
17893
17894# Additional compiler flags for building library objects.
17895pic_flag=$lt_lt_prog_compiler_pic_GCJ
17896pic_mode=$pic_mode
17897
17898# What is the maximum length of a command?
17899max_cmd_len=$lt_cv_sys_max_cmd_len
17900
17901# Does compiler simultaneously support -c and -o options?
17902compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17903
17904# Must we lock files when doing compilation?
17905need_locks=$lt_need_locks
17906
17907# Do we need the lib prefix for modules?
17908need_lib_prefix=$need_lib_prefix
17909
17910# Do we need a version for libraries?
17911need_version=$need_version
17912
17913# Whether dlopen is supported.
17914dlopen_support=$enable_dlopen
17915
17916# Whether dlopen of programs is supported.
17917dlopen_self=$enable_dlopen_self
17918
17919# Whether dlopen of statically linked programs is supported.
17920dlopen_self_static=$enable_dlopen_self_static
17921
17922# Compiler flag to prevent dynamic linking.
17923link_static_flag=$lt_lt_prog_compiler_static_GCJ
17924
17925# Compiler flag to turn off builtin functions.
17926no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17927
17928# Compiler flag to allow reflexive dlopens.
17929export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17930
17931# Compiler flag to generate shared objects directly from archives.
17932whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17933
17934# Compiler flag to generate thread-safe objects.
17935thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17936
17937# Library versioning type.
17938version_type=$version_type
17939
17940# Format of library name prefix.
17941libname_spec=$lt_libname_spec
17942
17943# List of archive names.  First name is the real one, the rest are links.
17944# The last name is the one that the linker finds with -lNAME.
17945library_names_spec=$lt_library_names_spec
17946
17947# The coded name of the library, if different from the real name.
17948soname_spec=$lt_soname_spec
17949
17950# Commands used to build and install an old-style archive.
17951RANLIB=$lt_RANLIB
17952old_archive_cmds=$lt_old_archive_cmds_GCJ
17953old_postinstall_cmds=$lt_old_postinstall_cmds
17954old_postuninstall_cmds=$lt_old_postuninstall_cmds
17955
17956# Create an old-style archive from a shared archive.
17957old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17958
17959# Create a temporary old-style archive to link instead of a shared archive.
17960old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17961
17962# Commands used to build and install a shared archive.
17963archive_cmds=$lt_archive_cmds_GCJ
17964archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17965postinstall_cmds=$lt_postinstall_cmds
17966postuninstall_cmds=$lt_postuninstall_cmds
17967
17968# Commands used to build a loadable module (assumed same as above if empty)
17969module_cmds=$lt_module_cmds_GCJ
17970module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17971
17972# Commands to strip libraries.
17973old_striplib=$lt_old_striplib
17974striplib=$lt_striplib
17975
17976# Dependencies to place before the objects being linked to create a
17977# shared library.
17978predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17979
17980# Dependencies to place after the objects being linked to create a
17981# shared library.
17982postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17983
17984# Dependencies to place before the objects being linked to create a
17985# shared library.
17986predeps=$lt_predeps_GCJ
17987
17988# Dependencies to place after the objects being linked to create a
17989# shared library.
17990postdeps=$lt_postdeps_GCJ
17991
17992# The library search path used internally by the compiler when linking
17993# a shared library.
17994compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17995
17996# Method to check whether dependent libraries are shared objects.
17997deplibs_check_method=$lt_deplibs_check_method
17998
17999# Command to use when deplibs_check_method == file_magic.
18000file_magic_cmd=$lt_file_magic_cmd
18001
18002# Flag that allows shared libraries with undefined symbols to be built.
18003allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18004
18005# Flag that forces no undefined symbols.
18006no_undefined_flag=$lt_no_undefined_flag_GCJ
18007
18008# Commands used to finish a libtool library installation in a directory.
18009finish_cmds=$lt_finish_cmds
18010
18011# Same as above, but a single script fragment to be evaled but not shown.
18012finish_eval=$lt_finish_eval
18013
18014# Take the output of nm and produce a listing of raw symbols and C names.
18015global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18016
18017# Transform the output of nm in a proper C declaration
18018global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18019
18020# Transform the output of nm in a C name address pair
18021global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18022
18023# This is the shared library runtime path variable.
18024runpath_var=$runpath_var
18025
18026# This is the shared library path variable.
18027shlibpath_var=$shlibpath_var
18028
18029# Is shlibpath searched before the hard-coded library search path?
18030shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18031
18032# How to hardcode a shared library path into an executable.
18033hardcode_action=$hardcode_action_GCJ
18034
18035# Whether we should hardcode library paths into libraries.
18036hardcode_into_libs=$hardcode_into_libs
18037
18038# Flag to hardcode \$libdir into a binary during linking.
18039# This must work even if \$libdir does not exist.
18040hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18041
18042# If ld is used when linking, flag to hardcode \$libdir into
18043# a binary during linking. This must work even if \$libdir does
18044# not exist.
18045hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18046
18047# Whether we need a single -rpath flag with a separated argument.
18048hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18049
18050# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18051# resulting binary.
18052hardcode_direct=$hardcode_direct_GCJ
18053
18054# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18055# resulting binary.
18056hardcode_minus_L=$hardcode_minus_L_GCJ
18057
18058# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18059# the resulting binary.
18060hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18061
18062# Set to yes if building a shared library automatically hardcodes DIR into the library
18063# and all subsequent libraries and executables linked against it.
18064hardcode_automatic=$hardcode_automatic_GCJ
18065
18066# Variables whose values should be saved in libtool wrapper scripts and
18067# restored at relink time.
18068variables_saved_for_relink="$variables_saved_for_relink"
18069
18070# Whether libtool must link a program against all its dependency libraries.
18071link_all_deplibs=$link_all_deplibs_GCJ
18072
18073# Compile-time system search path for libraries
18074sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18075
18076# Run-time system search path for libraries
18077sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18078
18079# Fix the shell variable \$srcfile for the compiler.
18080fix_srcfile_path="$fix_srcfile_path_GCJ"
18081
18082# Set to yes if exported symbols are required.
18083always_export_symbols=$always_export_symbols_GCJ
18084
18085# The commands to list exported symbols.
18086export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18087
18088# The commands to extract the exported symbol list from a shared archive.
18089extract_expsyms_cmds=$lt_extract_expsyms_cmds
18090
18091# Symbols that should not be listed in the preloaded symbols.
18092exclude_expsyms=$lt_exclude_expsyms_GCJ
18093
18094# Symbols that must always be exported.
18095include_expsyms=$lt_include_expsyms_GCJ
18096
18097# ### END LIBTOOL TAG CONFIG: $tagname
18098
18099__EOF__
18100
18101
18102else
18103  # If there is no Makefile yet, we rely on a make rule to execute
18104  # `config.status --recheck' to rerun these tests and create the
18105  # libtool script then.
18106  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18107  if test -f "$ltmain_in"; then
18108    test -f Makefile && make "$ltmain"
18109  fi
18110fi
18111
18112
18113ac_ext=c
18114ac_cpp='$CPP $CPPFLAGS'
18115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18117ac_compiler_gnu=$ac_cv_c_compiler_gnu
18118
18119CC="$lt_save_CC"
18120
18121	else
18122	  tagname=""
18123	fi
18124	;;
18125
18126      RC)
18127
18128
18129
18130# Source file extension for RC test sources.
18131ac_ext=rc
18132
18133# Object file extension for compiled RC test sources.
18134objext=o
18135objext_RC=$objext
18136
18137# Code to be used in simple compile tests
18138lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18139
18140# Code to be used in simple link tests
18141lt_simple_link_test_code="$lt_simple_compile_test_code"
18142
18143# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18144
18145# If no C compiler was specified, use CC.
18146LTCC=${LTCC-"$CC"}
18147
18148# If no C compiler flags were specified, use CFLAGS.
18149LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18150
18151# Allow CC to be a program name with arguments.
18152compiler=$CC
18153
18154
18155# save warnings/boilerplate of simple test code
18156ac_outfile=conftest.$ac_objext
18157printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18158eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18159_lt_compiler_boilerplate=`cat conftest.err`
18160$rm conftest*
18161
18162ac_outfile=conftest.$ac_objext
18163printf "$lt_simple_link_test_code" >conftest.$ac_ext
18164eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18165_lt_linker_boilerplate=`cat conftest.err`
18166$rm conftest*
18167
18168
18169# Allow CC to be a program name with arguments.
18170lt_save_CC="$CC"
18171CC=${RC-"windres"}
18172compiler=$CC
18173compiler_RC=$CC
18174for cc_temp in $compiler""; do
18175  case $cc_temp in
18176    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18177    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18178    \-*) ;;
18179    *) break;;
18180  esac
18181done
18182cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18183
18184lt_cv_prog_compiler_c_o_RC=yes
18185
18186# The else clause should only fire when bootstrapping the
18187# libtool distribution, otherwise you forgot to ship ltmain.sh
18188# with your package, and you will get complaints that there are
18189# no rules to generate ltmain.sh.
18190if test -f "$ltmain"; then
18191  # See if we are running on zsh, and set the options which allow our commands through
18192  # without removal of \ escapes.
18193  if test -n "${ZSH_VERSION+set}" ; then
18194    setopt NO_GLOB_SUBST
18195  fi
18196  # Now quote all the things that may contain metacharacters while being
18197  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18198  # variables and quote the copies for generation of the libtool script.
18199  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18200    SED SHELL STRIP \
18201    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18202    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18203    deplibs_check_method reload_flag reload_cmds need_locks \
18204    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18205    lt_cv_sys_global_symbol_to_c_name_address \
18206    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18207    old_postinstall_cmds old_postuninstall_cmds \
18208    compiler_RC \
18209    CC_RC \
18210    LD_RC \
18211    lt_prog_compiler_wl_RC \
18212    lt_prog_compiler_pic_RC \
18213    lt_prog_compiler_static_RC \
18214    lt_prog_compiler_no_builtin_flag_RC \
18215    export_dynamic_flag_spec_RC \
18216    thread_safe_flag_spec_RC \
18217    whole_archive_flag_spec_RC \
18218    enable_shared_with_static_runtimes_RC \
18219    old_archive_cmds_RC \
18220    old_archive_from_new_cmds_RC \
18221    predep_objects_RC \
18222    postdep_objects_RC \
18223    predeps_RC \
18224    postdeps_RC \
18225    compiler_lib_search_path_RC \
18226    archive_cmds_RC \
18227    archive_expsym_cmds_RC \
18228    postinstall_cmds_RC \
18229    postuninstall_cmds_RC \
18230    old_archive_from_expsyms_cmds_RC \
18231    allow_undefined_flag_RC \
18232    no_undefined_flag_RC \
18233    export_symbols_cmds_RC \
18234    hardcode_libdir_flag_spec_RC \
18235    hardcode_libdir_flag_spec_ld_RC \
18236    hardcode_libdir_separator_RC \
18237    hardcode_automatic_RC \
18238    module_cmds_RC \
18239    module_expsym_cmds_RC \
18240    lt_cv_prog_compiler_c_o_RC \
18241    exclude_expsyms_RC \
18242    include_expsyms_RC; do
18243
18244    case $var in
18245    old_archive_cmds_RC | \
18246    old_archive_from_new_cmds_RC | \
18247    archive_cmds_RC | \
18248    archive_expsym_cmds_RC | \
18249    module_cmds_RC | \
18250    module_expsym_cmds_RC | \
18251    old_archive_from_expsyms_cmds_RC | \
18252    export_symbols_cmds_RC | \
18253    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18254    postinstall_cmds | postuninstall_cmds | \
18255    old_postinstall_cmds | old_postuninstall_cmds | \
18256    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18257      # Double-quote double-evaled strings.
18258      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18259      ;;
18260    *)
18261      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18262      ;;
18263    esac
18264  done
18265
18266  case $lt_echo in
18267  *'\$0 --fallback-echo"')
18268    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18269    ;;
18270  esac
18271
18272cfgfile="$ofile"
18273
18274  cat <<__EOF__ >> "$cfgfile"
18275# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18276
18277# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18278
18279# Shell to use when invoking shell scripts.
18280SHELL=$lt_SHELL
18281
18282# Whether or not to build shared libraries.
18283build_libtool_libs=$enable_shared
18284
18285# Whether or not to build static libraries.
18286build_old_libs=$enable_static
18287
18288# Whether or not to add -lc for building shared libraries.
18289build_libtool_need_lc=$archive_cmds_need_lc_RC
18290
18291# Whether or not to disallow shared libs when runtime libs are static
18292allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18293
18294# Whether or not to optimize for fast installation.
18295fast_install=$enable_fast_install
18296
18297# The host system.
18298host_alias=$host_alias
18299host=$host
18300host_os=$host_os
18301
18302# The build system.
18303build_alias=$build_alias
18304build=$build
18305build_os=$build_os
18306
18307# An echo program that does not interpret backslashes.
18308echo=$lt_echo
18309
18310# The archiver.
18311AR=$lt_AR
18312AR_FLAGS=$lt_AR_FLAGS
18313
18314# A C compiler.
18315LTCC=$lt_LTCC
18316
18317# LTCC compiler flags.
18318LTCFLAGS=$lt_LTCFLAGS
18319
18320# A language-specific compiler.
18321CC=$lt_compiler_RC
18322
18323# Is the compiler the GNU C compiler?
18324with_gcc=$GCC_RC
18325
18326gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18327gcc_ver=\`gcc -dumpversion\`
18328
18329# An ERE matcher.
18330EGREP=$lt_EGREP
18331
18332# The linker used to build libraries.
18333LD=$lt_LD_RC
18334
18335# Whether we need hard or soft links.
18336LN_S=$lt_LN_S
18337
18338# A BSD-compatible nm program.
18339NM=$lt_NM
18340
18341# A symbol stripping program
18342STRIP=$lt_STRIP
18343
18344# Used to examine libraries when file_magic_cmd begins "file"
18345MAGIC_CMD=$MAGIC_CMD
18346
18347# Used on cygwin: DLL creation program.
18348DLLTOOL="$DLLTOOL"
18349
18350# Used on cygwin: object dumper.
18351OBJDUMP="$OBJDUMP"
18352
18353# Used on cygwin: assembler.
18354AS="$AS"
18355
18356# The name of the directory that contains temporary libtool files.
18357objdir=$objdir
18358
18359# How to create reloadable object files.
18360reload_flag=$lt_reload_flag
18361reload_cmds=$lt_reload_cmds
18362
18363# How to pass a linker flag through the compiler.
18364wl=$lt_lt_prog_compiler_wl_RC
18365
18366# Object file suffix (normally "o").
18367objext="$ac_objext"
18368
18369# Old archive suffix (normally "a").
18370libext="$libext"
18371
18372# Shared library suffix (normally ".so").
18373shrext_cmds='$shrext_cmds'
18374
18375# Executable file suffix (normally "").
18376exeext="$exeext"
18377
18378# Additional compiler flags for building library objects.
18379pic_flag=$lt_lt_prog_compiler_pic_RC
18380pic_mode=$pic_mode
18381
18382# What is the maximum length of a command?
18383max_cmd_len=$lt_cv_sys_max_cmd_len
18384
18385# Does compiler simultaneously support -c and -o options?
18386compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18387
18388# Must we lock files when doing compilation?
18389need_locks=$lt_need_locks
18390
18391# Do we need the lib prefix for modules?
18392need_lib_prefix=$need_lib_prefix
18393
18394# Do we need a version for libraries?
18395need_version=$need_version
18396
18397# Whether dlopen is supported.
18398dlopen_support=$enable_dlopen
18399
18400# Whether dlopen of programs is supported.
18401dlopen_self=$enable_dlopen_self
18402
18403# Whether dlopen of statically linked programs is supported.
18404dlopen_self_static=$enable_dlopen_self_static
18405
18406# Compiler flag to prevent dynamic linking.
18407link_static_flag=$lt_lt_prog_compiler_static_RC
18408
18409# Compiler flag to turn off builtin functions.
18410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18411
18412# Compiler flag to allow reflexive dlopens.
18413export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18414
18415# Compiler flag to generate shared objects directly from archives.
18416whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18417
18418# Compiler flag to generate thread-safe objects.
18419thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18420
18421# Library versioning type.
18422version_type=$version_type
18423
18424# Format of library name prefix.
18425libname_spec=$lt_libname_spec
18426
18427# List of archive names.  First name is the real one, the rest are links.
18428# The last name is the one that the linker finds with -lNAME.
18429library_names_spec=$lt_library_names_spec
18430
18431# The coded name of the library, if different from the real name.
18432soname_spec=$lt_soname_spec
18433
18434# Commands used to build and install an old-style archive.
18435RANLIB=$lt_RANLIB
18436old_archive_cmds=$lt_old_archive_cmds_RC
18437old_postinstall_cmds=$lt_old_postinstall_cmds
18438old_postuninstall_cmds=$lt_old_postuninstall_cmds
18439
18440# Create an old-style archive from a shared archive.
18441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18442
18443# Create a temporary old-style archive to link instead of a shared archive.
18444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18445
18446# Commands used to build and install a shared archive.
18447archive_cmds=$lt_archive_cmds_RC
18448archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18449postinstall_cmds=$lt_postinstall_cmds
18450postuninstall_cmds=$lt_postuninstall_cmds
18451
18452# Commands used to build a loadable module (assumed same as above if empty)
18453module_cmds=$lt_module_cmds_RC
18454module_expsym_cmds=$lt_module_expsym_cmds_RC
18455
18456# Commands to strip libraries.
18457old_striplib=$lt_old_striplib
18458striplib=$lt_striplib
18459
18460# Dependencies to place before the objects being linked to create a
18461# shared library.
18462predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18463
18464# Dependencies to place after the objects being linked to create a
18465# shared library.
18466postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18467
18468# Dependencies to place before the objects being linked to create a
18469# shared library.
18470predeps=$lt_predeps_RC
18471
18472# Dependencies to place after the objects being linked to create a
18473# shared library.
18474postdeps=$lt_postdeps_RC
18475
18476# The library search path used internally by the compiler when linking
18477# a shared library.
18478compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18479
18480# Method to check whether dependent libraries are shared objects.
18481deplibs_check_method=$lt_deplibs_check_method
18482
18483# Command to use when deplibs_check_method == file_magic.
18484file_magic_cmd=$lt_file_magic_cmd
18485
18486# Flag that allows shared libraries with undefined symbols to be built.
18487allow_undefined_flag=$lt_allow_undefined_flag_RC
18488
18489# Flag that forces no undefined symbols.
18490no_undefined_flag=$lt_no_undefined_flag_RC
18491
18492# Commands used to finish a libtool library installation in a directory.
18493finish_cmds=$lt_finish_cmds
18494
18495# Same as above, but a single script fragment to be evaled but not shown.
18496finish_eval=$lt_finish_eval
18497
18498# Take the output of nm and produce a listing of raw symbols and C names.
18499global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18500
18501# Transform the output of nm in a proper C declaration
18502global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18503
18504# Transform the output of nm in a C name address pair
18505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18506
18507# This is the shared library runtime path variable.
18508runpath_var=$runpath_var
18509
18510# This is the shared library path variable.
18511shlibpath_var=$shlibpath_var
18512
18513# Is shlibpath searched before the hard-coded library search path?
18514shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18515
18516# How to hardcode a shared library path into an executable.
18517hardcode_action=$hardcode_action_RC
18518
18519# Whether we should hardcode library paths into libraries.
18520hardcode_into_libs=$hardcode_into_libs
18521
18522# Flag to hardcode \$libdir into a binary during linking.
18523# This must work even if \$libdir does not exist.
18524hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18525
18526# If ld is used when linking, flag to hardcode \$libdir into
18527# a binary during linking. This must work even if \$libdir does
18528# not exist.
18529hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18530
18531# Whether we need a single -rpath flag with a separated argument.
18532hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18533
18534# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18535# resulting binary.
18536hardcode_direct=$hardcode_direct_RC
18537
18538# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18539# resulting binary.
18540hardcode_minus_L=$hardcode_minus_L_RC
18541
18542# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18543# the resulting binary.
18544hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18545
18546# Set to yes if building a shared library automatically hardcodes DIR into the library
18547# and all subsequent libraries and executables linked against it.
18548hardcode_automatic=$hardcode_automatic_RC
18549
18550# Variables whose values should be saved in libtool wrapper scripts and
18551# restored at relink time.
18552variables_saved_for_relink="$variables_saved_for_relink"
18553
18554# Whether libtool must link a program against all its dependency libraries.
18555link_all_deplibs=$link_all_deplibs_RC
18556
18557# Compile-time system search path for libraries
18558sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18559
18560# Run-time system search path for libraries
18561sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18562
18563# Fix the shell variable \$srcfile for the compiler.
18564fix_srcfile_path="$fix_srcfile_path_RC"
18565
18566# Set to yes if exported symbols are required.
18567always_export_symbols=$always_export_symbols_RC
18568
18569# The commands to list exported symbols.
18570export_symbols_cmds=$lt_export_symbols_cmds_RC
18571
18572# The commands to extract the exported symbol list from a shared archive.
18573extract_expsyms_cmds=$lt_extract_expsyms_cmds
18574
18575# Symbols that should not be listed in the preloaded symbols.
18576exclude_expsyms=$lt_exclude_expsyms_RC
18577
18578# Symbols that must always be exported.
18579include_expsyms=$lt_include_expsyms_RC
18580
18581# ### END LIBTOOL TAG CONFIG: $tagname
18582
18583__EOF__
18584
18585
18586else
18587  # If there is no Makefile yet, we rely on a make rule to execute
18588  # `config.status --recheck' to rerun these tests and create the
18589  # libtool script then.
18590  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18591  if test -f "$ltmain_in"; then
18592    test -f Makefile && make "$ltmain"
18593  fi
18594fi
18595
18596
18597ac_ext=c
18598ac_cpp='$CPP $CPPFLAGS'
18599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601ac_compiler_gnu=$ac_cv_c_compiler_gnu
18602
18603CC="$lt_save_CC"
18604
18605	;;
18606
18607      *)
18608	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18609echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18610   { (exit 1); exit 1; }; }
18611	;;
18612      esac
18613
18614      # Append the new tag name to the list of available tags.
18615      if test -n "$tagname" ; then
18616      available_tags="$available_tags $tagname"
18617    fi
18618    fi
18619  done
18620  IFS="$lt_save_ifs"
18621
18622  # Now substitute the updated list of available tags.
18623  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18624    mv "${ofile}T" "$ofile"
18625    chmod +x "$ofile"
18626  else
18627    rm -f "${ofile}T"
18628    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18629echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18630   { (exit 1); exit 1; }; }
18631  fi
18632fi
18633
18634
18635
18636# This can be used to rebuild libtool when needed
18637LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18638
18639# Always use our own libtool.
18640LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18641
18642# Prevent multiple expansion
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664# Checks for pkg-config packages
18665
18666
18667if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18668	if test -n "$ac_tool_prefix"; then
18669  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18670set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18671echo "$as_me:$LINENO: checking for $ac_word" >&5
18672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18673if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18674  echo $ECHO_N "(cached) $ECHO_C" >&6
18675else
18676  case $PKG_CONFIG in
18677  [\\/]* | ?:[\\/]*)
18678  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18679  ;;
18680  *)
18681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18682for as_dir in $PATH
18683do
18684  IFS=$as_save_IFS
18685  test -z "$as_dir" && as_dir=.
18686  for ac_exec_ext in '' $ac_executable_extensions; do
18687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18688    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18690    break 2
18691  fi
18692done
18693done
18694
18695  ;;
18696esac
18697fi
18698PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18699
18700if test -n "$PKG_CONFIG"; then
18701  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18702echo "${ECHO_T}$PKG_CONFIG" >&6
18703else
18704  echo "$as_me:$LINENO: result: no" >&5
18705echo "${ECHO_T}no" >&6
18706fi
18707
18708fi
18709if test -z "$ac_cv_path_PKG_CONFIG"; then
18710  ac_pt_PKG_CONFIG=$PKG_CONFIG
18711  # Extract the first word of "pkg-config", so it can be a program name with args.
18712set dummy pkg-config; ac_word=$2
18713echo "$as_me:$LINENO: checking for $ac_word" >&5
18714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18715if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
18716  echo $ECHO_N "(cached) $ECHO_C" >&6
18717else
18718  case $ac_pt_PKG_CONFIG in
18719  [\\/]* | ?:[\\/]*)
18720  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18721  ;;
18722  *)
18723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18724for as_dir in $PATH
18725do
18726  IFS=$as_save_IFS
18727  test -z "$as_dir" && as_dir=.
18728  for ac_exec_ext in '' $ac_executable_extensions; do
18729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18730    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18732    break 2
18733  fi
18734done
18735done
18736
18737  ;;
18738esac
18739fi
18740ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18741
18742if test -n "$ac_pt_PKG_CONFIG"; then
18743  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
18744echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
18745else
18746  echo "$as_me:$LINENO: result: no" >&5
18747echo "${ECHO_T}no" >&6
18748fi
18749
18750  PKG_CONFIG=$ac_pt_PKG_CONFIG
18751else
18752  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18753fi
18754
18755fi
18756if test -n "$PKG_CONFIG"; then
18757	_pkg_min_version=0.9.0
18758	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
18759echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
18760	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18761		echo "$as_me:$LINENO: result: yes" >&5
18762echo "${ECHO_T}yes" >&6
18763	else
18764		echo "$as_me:$LINENO: result: no" >&5
18765echo "${ECHO_T}no" >&6
18766		PKG_CONFIG=""
18767	fi
18768
18769fi
18770
18771pkg_failed=no
18772echo "$as_me:$LINENO: checking for XEVIE" >&5
18773echo $ECHO_N "checking for XEVIE... $ECHO_C" >&6
18774
18775if test -n "$PKG_CONFIG"; then
18776    if test -n "$XEVIE_CFLAGS"; then
18777        pkg_cv_XEVIE_CFLAGS="$XEVIE_CFLAGS"
18778    else
18779        if test -n "$PKG_CONFIG" && \
18780    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext evieproto\"") >&5
18781  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext evieproto") 2>&5
18782  ac_status=$?
18783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784  (exit $ac_status); }; then
18785  pkg_cv_XEVIE_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext evieproto" 2>/dev/null`
18786else
18787  pkg_failed=yes
18788fi
18789    fi
18790else
18791	pkg_failed=untried
18792fi
18793if test -n "$PKG_CONFIG"; then
18794    if test -n "$XEVIE_LIBS"; then
18795        pkg_cv_XEVIE_LIBS="$XEVIE_LIBS"
18796    else
18797        if test -n "$PKG_CONFIG" && \
18798    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext evieproto\"") >&5
18799  ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext evieproto") 2>&5
18800  ac_status=$?
18801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802  (exit $ac_status); }; then
18803  pkg_cv_XEVIE_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext evieproto" 2>/dev/null`
18804else
18805  pkg_failed=yes
18806fi
18807    fi
18808else
18809	pkg_failed=untried
18810fi
18811
18812
18813
18814if test $pkg_failed = yes; then
18815
18816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18817        _pkg_short_errors_supported=yes
18818else
18819        _pkg_short_errors_supported=no
18820fi
18821        if test $_pkg_short_errors_supported = yes; then
18822	        XEVIE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto x11 xextproto xext evieproto"`
18823        else
18824	        XEVIE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto x11 xextproto xext evieproto"`
18825        fi
18826	# Put the nasty error message in config.log where it belongs
18827	echo "$XEVIE_PKG_ERRORS" >&5
18828
18829	{ { echo "$as_me:$LINENO: error: Package requirements (xproto x11 xextproto xext evieproto) were not met:
18830
18831$XEVIE_PKG_ERRORS
18832
18833Consider adjusting the PKG_CONFIG_PATH environment variable if you
18834installed software in a non-standard prefix.
18835
18836Alternatively, you may set the environment variables XEVIE_CFLAGS
18837and XEVIE_LIBS to avoid the need to call pkg-config.
18838See the pkg-config man page for more details.
18839" >&5
18840echo "$as_me: error: Package requirements (xproto x11 xextproto xext evieproto) were not met:
18841
18842$XEVIE_PKG_ERRORS
18843
18844Consider adjusting the PKG_CONFIG_PATH environment variable if you
18845installed software in a non-standard prefix.
18846
18847Alternatively, you may set the environment variables XEVIE_CFLAGS
18848and XEVIE_LIBS to avoid the need to call pkg-config.
18849See the pkg-config man page for more details.
18850" >&2;}
18851   { (exit 1); exit 1; }; }
18852elif test $pkg_failed = untried; then
18853	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
18854is in your PATH or set the PKG_CONFIG environment variable to the full
18855path to pkg-config.
18856
18857Alternatively, you may set the environment variables XEVIE_CFLAGS
18858and XEVIE_LIBS to avoid the need to call pkg-config.
18859See the pkg-config man page for more details.
18860
18861To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18862See \`config.log' for more details." >&5
18863echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
18864is in your PATH or set the PKG_CONFIG environment variable to the full
18865path to pkg-config.
18866
18867Alternatively, you may set the environment variables XEVIE_CFLAGS
18868and XEVIE_LIBS to avoid the need to call pkg-config.
18869See the pkg-config man page for more details.
18870
18871To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18872See \`config.log' for more details." >&2;}
18873   { (exit 1); exit 1; }; }
18874else
18875	XEVIE_CFLAGS=$pkg_cv_XEVIE_CFLAGS
18876	XEVIE_LIBS=$pkg_cv_XEVIE_LIBS
18877        echo "$as_me:$LINENO: result: yes" >&5
18878echo "${ECHO_T}yes" >&6
18879	:
18880fi
18881
18882
18883
18884
18885# Check whether --enable-malloc0returnsnull or --disable-malloc0returnsnull was given.
18886if test "${enable_malloc0returnsnull+set}" = set; then
18887  enableval="$enable_malloc0returnsnull"
18888  MALLOC_ZERO_RETURNS_NULL=$enableval
18889else
18890  MALLOC_ZERO_RETURNS_NULL=auto
18891fi;
18892
18893echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
18894echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6
18895if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
18896	if test "$cross_compiling" = yes; then
18897  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18898See \`config.log' for more details." >&5
18899echo "$as_me: error: cannot run test program while cross compiling
18900See \`config.log' for more details." >&2;}
18901   { (exit 1); exit 1; }; }
18902else
18903  cat >conftest.$ac_ext <<_ACEOF
18904
18905char *malloc();
18906char *realloc();
18907char *calloc();
18908main() {
18909    char *m0, *r0, *c0, *p;
18910    m0 = malloc(0);
18911    p = malloc(10);
18912    r0 = realloc(p,0);
18913    c0 = calloc(0);
18914    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
18915}
18916_ACEOF
18917rm -f conftest$ac_exeext
18918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18919  (eval $ac_link) 2>&5
18920  ac_status=$?
18921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924  (eval $ac_try) 2>&5
18925  ac_status=$?
18926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927  (exit $ac_status); }; }; then
18928  MALLOC_ZERO_RETURNS_NULL=yes
18929else
18930  echo "$as_me: program exited with status $ac_status" >&5
18931echo "$as_me: failed program was:" >&5
18932sed 's/^/| /' conftest.$ac_ext >&5
18933
18934( exit $ac_status )
18935MALLOC_ZERO_RETURNS_NULL=no
18936fi
18937rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18938fi
18939fi
18940echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
18941echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6
18942
18943if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
18944	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
18945	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
18946	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
18947else
18948	MALLOC_ZERO_CFLAGS=""
18949	XMALLOC_ZERO_CFLAGS=""
18950	XTMALLOC_ZERO_CFLAGS=""
18951fi
18952
18953
18954
18955
18956
18957
18958
18959
18960if test x$APP_MAN_SUFFIX = x    ; then
18961    APP_MAN_SUFFIX=1
18962fi
18963if test x$APP_MAN_DIR = x    ; then
18964    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18965fi
18966
18967if test x$LIB_MAN_SUFFIX = x    ; then
18968    LIB_MAN_SUFFIX=3
18969fi
18970if test x$LIB_MAN_DIR = x    ; then
18971    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18972fi
18973
18974if test x$FILE_MAN_SUFFIX = x    ; then
18975    case $host_os in
18976	solaris*)	FILE_MAN_SUFFIX=4  ;;
18977	*)		FILE_MAN_SUFFIX=5  ;;
18978    esac
18979fi
18980if test x$FILE_MAN_DIR = x    ; then
18981    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18982fi
18983
18984if test x$MISC_MAN_SUFFIX = x    ; then
18985    case $host_os in
18986	solaris*)	MISC_MAN_SUFFIX=5  ;;
18987	*)		MISC_MAN_SUFFIX=7  ;;
18988    esac
18989fi
18990if test x$MISC_MAN_DIR = x    ; then
18991    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18992fi
18993
18994if test x$DRIVER_MAN_SUFFIX = x    ; then
18995    case $host_os in
18996	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18997	*)		DRIVER_MAN_SUFFIX=4  ;;
18998    esac
18999fi
19000if test x$DRIVER_MAN_DIR = x    ; then
19001    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19002fi
19003
19004if test x$ADMIN_MAN_SUFFIX = x    ; then
19005    case $host_os in
19006	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
19007	*)		ADMIN_MAN_SUFFIX=8  ;;
19008    esac
19009fi
19010if test x$ADMIN_MAN_DIR = x    ; then
19011    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19012fi
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030# Check whether --with-release-version or --without-release-version was given.
19031if test "${with_release_version+set}" = set; then
19032  withval="$with_release_version"
19033  RELEASE_VERSION="$withval"
19034else
19035  RELEASE_VERSION=""
19036fi;
19037	if test "x$RELEASE_VERSION" != "x"; then
19038		PACKAGE="$PACKAGE-$RELEASE_VERSION"
19039		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19040		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19041echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19042	fi
19043
19044
19045                                        ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xevie.pc"
19046cat >confcache <<\_ACEOF
19047# This file is a shell script that caches the results of configure
19048# tests run on this system so they can be shared between configure
19049# scripts and configure runs, see configure's option --config-cache.
19050# It is not useful on other systems.  If it contains results you don't
19051# want to keep, you may remove or edit it.
19052#
19053# config.status only pays attention to the cache file if you give it
19054# the --recheck option to rerun configure.
19055#
19056# `ac_cv_env_foo' variables (set or unset) will be overridden when
19057# loading this file, other *unset* `ac_cv_foo' will be assigned the
19058# following values.
19059
19060_ACEOF
19061
19062# The following way of writing the cache mishandles newlines in values,
19063# but we know of no workaround that is simple, portable, and efficient.
19064# So, don't put newlines in cache variables' values.
19065# Ultrix sh set writes to stderr and can't be redirected directly,
19066# and sets the high bit in the cache file unless we assign to the vars.
19067{
19068  (set) 2>&1 |
19069    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19070    *ac_space=\ *)
19071      # `set' does not quote correctly, so add quotes (double-quote
19072      # substitution turns \\\\ into \\, and sed turns \\ into \).
19073      sed -n \
19074	"s/'/'\\\\''/g;
19075	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19076      ;;
19077    *)
19078      # `set' quotes correctly as required by POSIX, so do not add quotes.
19079      sed -n \
19080	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19081      ;;
19082    esac;
19083} |
19084  sed '
19085     t clear
19086     : clear
19087     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19088     t end
19089     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19090     : end' >>confcache
19091if diff $cache_file confcache >/dev/null 2>&1; then :; else
19092  if test -w $cache_file; then
19093    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19094    cat confcache >$cache_file
19095  else
19096    echo "not updating unwritable cache $cache_file"
19097  fi
19098fi
19099rm -f confcache
19100
19101test "x$prefix" = xNONE && prefix=$ac_default_prefix
19102# Let make expand exec_prefix.
19103test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19104
19105# VPATH may cause trouble with some makes, so we remove $(srcdir),
19106# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19107# trailing colons and then remove the whole line if VPATH becomes empty
19108# (actually we leave an empty line to preserve line numbers).
19109if test "x$srcdir" = x.; then
19110  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19111s/:*\$(srcdir):*/:/;
19112s/:*\${srcdir}:*/:/;
19113s/:*@srcdir@:*/:/;
19114s/^\([^=]*=[	 ]*\):*/\1/;
19115s/:*$//;
19116s/^[^=]*=[	 ]*$//;
19117}'
19118fi
19119
19120DEFS=-DHAVE_CONFIG_H
19121
19122ac_libobjs=
19123ac_ltlibobjs=
19124for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19125  # 1. Remove the extension, and $U if already installed.
19126  ac_i=`echo "$ac_i" |
19127	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19128  # 2. Add them.
19129  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19130  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19131done
19132LIBOBJS=$ac_libobjs
19133
19134LTLIBOBJS=$ac_ltlibobjs
19135
19136
19137if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19138  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19139Usually this means the macro was only invoked conditionally." >&5
19140echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19141Usually this means the macro was only invoked conditionally." >&2;}
19142   { (exit 1); exit 1; }; }
19143fi
19144if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19145  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19146Usually this means the macro was only invoked conditionally." >&5
19147echo "$as_me: error: conditional \"AMDEP\" was never defined.
19148Usually this means the macro was only invoked conditionally." >&2;}
19149   { (exit 1); exit 1; }; }
19150fi
19151if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19152  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19153Usually this means the macro was only invoked conditionally." >&5
19154echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19155Usually this means the macro was only invoked conditionally." >&2;}
19156   { (exit 1); exit 1; }; }
19157fi
19158if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19159  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19160Usually this means the macro was only invoked conditionally." >&5
19161echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19162Usually this means the macro was only invoked conditionally." >&2;}
19163   { (exit 1); exit 1; }; }
19164fi
19165
19166: ${CONFIG_STATUS=./config.status}
19167ac_clean_files_save=$ac_clean_files
19168ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19169{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19170echo "$as_me: creating $CONFIG_STATUS" >&6;}
19171cat >$CONFIG_STATUS <<_ACEOF
19172#! $SHELL
19173# Generated by $as_me.
19174# Run this file to recreate the current configuration.
19175# Compiler output produced by configure, useful for debugging
19176# configure, is in config.log if it exists.
19177
19178debug=false
19179ac_cs_recheck=false
19180ac_cs_silent=false
19181SHELL=\${CONFIG_SHELL-$SHELL}
19182_ACEOF
19183
19184cat >>$CONFIG_STATUS <<\_ACEOF
19185## --------------------- ##
19186## M4sh Initialization.  ##
19187## --------------------- ##
19188
19189# Be Bourne compatible
19190if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19191  emulate sh
19192  NULLCMD=:
19193  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19194  # is contrary to our usage.  Disable this feature.
19195  alias -g '${1+"$@"}'='"$@"'
19196elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19197  set -o posix
19198fi
19199DUALCASE=1; export DUALCASE # for MKS sh
19200
19201# Support unset when possible.
19202if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19203  as_unset=unset
19204else
19205  as_unset=false
19206fi
19207
19208
19209# Work around bugs in pre-3.0 UWIN ksh.
19210$as_unset ENV MAIL MAILPATH
19211PS1='$ '
19212PS2='> '
19213PS4='+ '
19214
19215# NLS nuisances.
19216for as_var in \
19217  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19218  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19219  LC_TELEPHONE LC_TIME
19220do
19221  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19222    eval $as_var=C; export $as_var
19223  else
19224    $as_unset $as_var
19225  fi
19226done
19227
19228# Required to use basename.
19229if expr a : '\(a\)' >/dev/null 2>&1; then
19230  as_expr=expr
19231else
19232  as_expr=false
19233fi
19234
19235if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19236  as_basename=basename
19237else
19238  as_basename=false
19239fi
19240
19241
19242# Name of the executable.
19243as_me=`$as_basename "$0" ||
19244$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19245	 X"$0" : 'X\(//\)$' \| \
19246	 X"$0" : 'X\(/\)$' \| \
19247	 .     : '\(.\)' 2>/dev/null ||
19248echo X/"$0" |
19249    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19250  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
19251  	  /^X\/\(\/\).*/{ s//\1/; q; }
19252  	  s/.*/./; q'`
19253
19254
19255# PATH needs CR, and LINENO needs CR and PATH.
19256# Avoid depending upon Character Ranges.
19257as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19258as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19259as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19260as_cr_digits='0123456789'
19261as_cr_alnum=$as_cr_Letters$as_cr_digits
19262
19263# The user is always right.
19264if test "${PATH_SEPARATOR+set}" != set; then
19265  echo "#! /bin/sh" >conf$$.sh
19266  echo  "exit 0"   >>conf$$.sh
19267  chmod +x conf$$.sh
19268  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19269    PATH_SEPARATOR=';'
19270  else
19271    PATH_SEPARATOR=:
19272  fi
19273  rm -f conf$$.sh
19274fi
19275
19276
19277  as_lineno_1=$LINENO
19278  as_lineno_2=$LINENO
19279  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19280  test "x$as_lineno_1" != "x$as_lineno_2" &&
19281  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19282  # Find who we are.  Look in the path if we contain no path at all
19283  # relative or not.
19284  case $0 in
19285    *[\\/]* ) as_myself=$0 ;;
19286    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19287for as_dir in $PATH
19288do
19289  IFS=$as_save_IFS
19290  test -z "$as_dir" && as_dir=.
19291  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19292done
19293
19294       ;;
19295  esac
19296  # We did not find ourselves, most probably we were run as `sh COMMAND'
19297  # in which case we are not to be found in the path.
19298  if test "x$as_myself" = x; then
19299    as_myself=$0
19300  fi
19301  if test ! -f "$as_myself"; then
19302    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19303echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19304   { (exit 1); exit 1; }; }
19305  fi
19306  case $CONFIG_SHELL in
19307  '')
19308    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19309for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19310do
19311  IFS=$as_save_IFS
19312  test -z "$as_dir" && as_dir=.
19313  for as_base in sh bash ksh sh5; do
19314	 case $as_dir in
19315	 /*)
19316	   if ("$as_dir/$as_base" -c '
19317  as_lineno_1=$LINENO
19318  as_lineno_2=$LINENO
19319  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19320  test "x$as_lineno_1" != "x$as_lineno_2" &&
19321  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19322	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19323	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19324	     CONFIG_SHELL=$as_dir/$as_base
19325	     export CONFIG_SHELL
19326	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19327	   fi;;
19328	 esac
19329       done
19330done
19331;;
19332  esac
19333
19334  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19335  # uniformly replaced by the line number.  The first 'sed' inserts a
19336  # line-number line before each line; the second 'sed' does the real
19337  # work.  The second script uses 'N' to pair each line-number line
19338  # with the numbered line, and appends trailing '-' during
19339  # substitution so that $LINENO is not a special case at line end.
19340  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19341  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19342  sed '=' <$as_myself |
19343    sed '
19344      N
19345      s,$,-,
19346      : loop
19347      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19348      t loop
19349      s,-$,,
19350      s,^['$as_cr_digits']*\n,,
19351    ' >$as_me.lineno &&
19352  chmod +x $as_me.lineno ||
19353    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19354echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19355   { (exit 1); exit 1; }; }
19356
19357  # Don't try to exec as it changes $[0], causing all sort of problems
19358  # (the dirname of $[0] is not the place where we might find the
19359  # original and so on.  Autoconf is especially sensible to this).
19360  . ./$as_me.lineno
19361  # Exit status is that of the last command.
19362  exit
19363}
19364
19365
19366case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19367  *c*,-n*) ECHO_N= ECHO_C='
19368' ECHO_T='	' ;;
19369  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19370  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19371esac
19372
19373if expr a : '\(a\)' >/dev/null 2>&1; then
19374  as_expr=expr
19375else
19376  as_expr=false
19377fi
19378
19379rm -f conf$$ conf$$.exe conf$$.file
19380echo >conf$$.file
19381if ln -s conf$$.file conf$$ 2>/dev/null; then
19382  # We could just check for DJGPP; but this test a) works b) is more generic
19383  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19384  if test -f conf$$.exe; then
19385    # Don't use ln at all; we don't have any links
19386    as_ln_s='cp -p'
19387  else
19388    as_ln_s='ln -s'
19389  fi
19390elif ln conf$$.file conf$$ 2>/dev/null; then
19391  as_ln_s=ln
19392else
19393  as_ln_s='cp -p'
19394fi
19395rm -f conf$$ conf$$.exe conf$$.file
19396
19397if mkdir -p . 2>/dev/null; then
19398  as_mkdir_p=:
19399else
19400  test -d ./-p && rmdir ./-p
19401  as_mkdir_p=false
19402fi
19403
19404as_executable_p="test -f"
19405
19406# Sed expression to map a string onto a valid CPP name.
19407as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19408
19409# Sed expression to map a string onto a valid variable name.
19410as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19411
19412
19413# IFS
19414# We need space, tab and new line, in precisely that order.
19415as_nl='
19416'
19417IFS=" 	$as_nl"
19418
19419# CDPATH.
19420$as_unset CDPATH
19421
19422exec 6>&1
19423
19424# Open the log real soon, to keep \$[0] and so on meaningful, and to
19425# report actual input values of CONFIG_FILES etc. instead of their
19426# values after options handling.  Logging --version etc. is OK.
19427exec 5>>config.log
19428{
19429  echo
19430  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19431## Running $as_me. ##
19432_ASBOX
19433} >&5
19434cat >&5 <<_CSEOF
19435
19436This file was extended by libXevie $as_me 1.0.2, which was
19437generated by GNU Autoconf 2.59.  Invocation command line was
19438
19439  CONFIG_FILES    = $CONFIG_FILES
19440  CONFIG_HEADERS  = $CONFIG_HEADERS
19441  CONFIG_LINKS    = $CONFIG_LINKS
19442  CONFIG_COMMANDS = $CONFIG_COMMANDS
19443  $ $0 $@
19444
19445_CSEOF
19446echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19447echo >&5
19448_ACEOF
19449
19450# Files that config.status was made for.
19451if test -n "$ac_config_files"; then
19452  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19453fi
19454
19455if test -n "$ac_config_headers"; then
19456  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19457fi
19458
19459if test -n "$ac_config_links"; then
19460  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19461fi
19462
19463if test -n "$ac_config_commands"; then
19464  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19465fi
19466
19467cat >>$CONFIG_STATUS <<\_ACEOF
19468
19469ac_cs_usage="\
19470\`$as_me' instantiates files from templates according to the
19471current configuration.
19472
19473Usage: $0 [OPTIONS] [FILE]...
19474
19475  -h, --help       print this help, then exit
19476  -V, --version    print version number, then exit
19477  -q, --quiet      do not print progress messages
19478  -d, --debug      don't remove temporary files
19479      --recheck    update $as_me by reconfiguring in the same conditions
19480  --file=FILE[:TEMPLATE]
19481		   instantiate the configuration file FILE
19482  --header=FILE[:TEMPLATE]
19483		   instantiate the configuration header FILE
19484
19485Configuration files:
19486$config_files
19487
19488Configuration headers:
19489$config_headers
19490
19491Configuration commands:
19492$config_commands
19493
19494Report bugs to <bug-autoconf@gnu.org>."
19495_ACEOF
19496
19497cat >>$CONFIG_STATUS <<_ACEOF
19498ac_cs_version="\\
19499libXevie config.status 1.0.2
19500configured by $0, generated by GNU Autoconf 2.59,
19501  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19502
19503Copyright (C) 2003 Free Software Foundation, Inc.
19504This config.status script is free software; the Free Software Foundation
19505gives unlimited permission to copy, distribute and modify it."
19506srcdir=$srcdir
19507INSTALL="$INSTALL"
19508_ACEOF
19509
19510cat >>$CONFIG_STATUS <<\_ACEOF
19511# If no file are specified by the user, then we need to provide default
19512# value.  By we need to know if files were specified by the user.
19513ac_need_defaults=:
19514while test $# != 0
19515do
19516  case $1 in
19517  --*=*)
19518    ac_option=`expr "x$1" : 'x\([^=]*\)='`
19519    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19520    ac_shift=:
19521    ;;
19522  -*)
19523    ac_option=$1
19524    ac_optarg=$2
19525    ac_shift=shift
19526    ;;
19527  *) # This is not an option, so the user has probably given explicit
19528     # arguments.
19529     ac_option=$1
19530     ac_need_defaults=false;;
19531  esac
19532
19533  case $ac_option in
19534  # Handling of the options.
19535_ACEOF
19536cat >>$CONFIG_STATUS <<\_ACEOF
19537  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19538    ac_cs_recheck=: ;;
19539  --version | --vers* | -V )
19540    echo "$ac_cs_version"; exit 0 ;;
19541  --he | --h)
19542    # Conflict between --help and --header
19543    { { echo "$as_me:$LINENO: error: ambiguous option: $1
19544Try \`$0 --help' for more information." >&5
19545echo "$as_me: error: ambiguous option: $1
19546Try \`$0 --help' for more information." >&2;}
19547   { (exit 1); exit 1; }; };;
19548  --help | --hel | -h )
19549    echo "$ac_cs_usage"; exit 0 ;;
19550  --debug | --d* | -d )
19551    debug=: ;;
19552  --file | --fil | --fi | --f )
19553    $ac_shift
19554    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19555    ac_need_defaults=false;;
19556  --header | --heade | --head | --hea )
19557    $ac_shift
19558    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19559    ac_need_defaults=false;;
19560  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19561  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19562    ac_cs_silent=: ;;
19563
19564  # This is an error.
19565  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19566Try \`$0 --help' for more information." >&5
19567echo "$as_me: error: unrecognized option: $1
19568Try \`$0 --help' for more information." >&2;}
19569   { (exit 1); exit 1; }; } ;;
19570
19571  *) ac_config_targets="$ac_config_targets $1" ;;
19572
19573  esac
19574  shift
19575done
19576
19577ac_configure_extra_args=
19578
19579if $ac_cs_silent; then
19580  exec 6>/dev/null
19581  ac_configure_extra_args="$ac_configure_extra_args --silent"
19582fi
19583
19584_ACEOF
19585cat >>$CONFIG_STATUS <<_ACEOF
19586if \$ac_cs_recheck; then
19587  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19588  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19589fi
19590
19591_ACEOF
19592
19593cat >>$CONFIG_STATUS <<_ACEOF
19594#
19595# INIT-COMMANDS section.
19596#
19597
19598AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19599
19600_ACEOF
19601
19602
19603
19604cat >>$CONFIG_STATUS <<\_ACEOF
19605for ac_config_target in $ac_config_targets
19606do
19607  case "$ac_config_target" in
19608  # Handling of arguments.
19609  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19610  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19611  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19612  "xevie.pc" ) CONFIG_FILES="$CONFIG_FILES xevie.pc" ;;
19613  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19614  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19615  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19616echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19617   { (exit 1); exit 1; }; };;
19618  esac
19619done
19620
19621# If the user did not use the arguments to specify the items to instantiate,
19622# then the envvar interface is used.  Set only those that are not.
19623# We use the long form for the default assignment because of an extremely
19624# bizarre bug on SunOS 4.1.3.
19625if $ac_need_defaults; then
19626  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19627  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19628  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19629fi
19630
19631# Have a temporary directory for convenience.  Make it in the build tree
19632# simply because there is no reason to put it here, and in addition,
19633# creating and moving files from /tmp can sometimes cause problems.
19634# Create a temporary directory, and hook for its removal unless debugging.
19635$debug ||
19636{
19637  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19638  trap '{ (exit 1); exit 1; }' 1 2 13 15
19639}
19640
19641# Create a (secure) tmp directory for tmp files.
19642
19643{
19644  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19645  test -n "$tmp" && test -d "$tmp"
19646}  ||
19647{
19648  tmp=./confstat$$-$RANDOM
19649  (umask 077 && mkdir $tmp)
19650} ||
19651{
19652   echo "$me: cannot create a temporary directory in ." >&2
19653   { (exit 1); exit 1; }
19654}
19655
19656_ACEOF
19657
19658cat >>$CONFIG_STATUS <<_ACEOF
19659
19660#
19661# CONFIG_FILES section.
19662#
19663
19664# No need to generate the scripts if there are no CONFIG_FILES.
19665# This happens for instance when ./config.status config.h
19666if test -n "\$CONFIG_FILES"; then
19667  # Protect against being on the right side of a sed subst in config.status.
19668  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19669   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19670s,@SHELL@,$SHELL,;t t
19671s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19672s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19673s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19674s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19675s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19676s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19677s,@exec_prefix@,$exec_prefix,;t t
19678s,@prefix@,$prefix,;t t
19679s,@program_transform_name@,$program_transform_name,;t t
19680s,@bindir@,$bindir,;t t
19681s,@sbindir@,$sbindir,;t t
19682s,@libexecdir@,$libexecdir,;t t
19683s,@datadir@,$datadir,;t t
19684s,@sysconfdir@,$sysconfdir,;t t
19685s,@sharedstatedir@,$sharedstatedir,;t t
19686s,@localstatedir@,$localstatedir,;t t
19687s,@libdir@,$libdir,;t t
19688s,@includedir@,$includedir,;t t
19689s,@oldincludedir@,$oldincludedir,;t t
19690s,@infodir@,$infodir,;t t
19691s,@mandir@,$mandir,;t t
19692s,@build_alias@,$build_alias,;t t
19693s,@host_alias@,$host_alias,;t t
19694s,@target_alias@,$target_alias,;t t
19695s,@DEFS@,$DEFS,;t t
19696s,@ECHO_C@,$ECHO_C,;t t
19697s,@ECHO_N@,$ECHO_N,;t t
19698s,@ECHO_T@,$ECHO_T,;t t
19699s,@LIBS@,$LIBS,;t t
19700s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19701s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19702s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19703s,@CYGPATH_W@,$CYGPATH_W,;t t
19704s,@PACKAGE@,$PACKAGE,;t t
19705s,@VERSION@,$VERSION,;t t
19706s,@ACLOCAL@,$ACLOCAL,;t t
19707s,@AUTOCONF@,$AUTOCONF,;t t
19708s,@AUTOMAKE@,$AUTOMAKE,;t t
19709s,@AUTOHEADER@,$AUTOHEADER,;t t
19710s,@MAKEINFO@,$MAKEINFO,;t t
19711s,@install_sh@,$install_sh,;t t
19712s,@STRIP@,$STRIP,;t t
19713s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19714s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19715s,@mkdir_p@,$mkdir_p,;t t
19716s,@AWK@,$AWK,;t t
19717s,@SET_MAKE@,$SET_MAKE,;t t
19718s,@am__leading_dot@,$am__leading_dot,;t t
19719s,@AMTAR@,$AMTAR,;t t
19720s,@am__tar@,$am__tar,;t t
19721s,@am__untar@,$am__untar,;t t
19722s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19723s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19724s,@MAINT@,$MAINT,;t t
19725s,@CC@,$CC,;t t
19726s,@CFLAGS@,$CFLAGS,;t t
19727s,@LDFLAGS@,$LDFLAGS,;t t
19728s,@CPPFLAGS@,$CPPFLAGS,;t t
19729s,@ac_ct_CC@,$ac_ct_CC,;t t
19730s,@EXEEXT@,$EXEEXT,;t t
19731s,@OBJEXT@,$OBJEXT,;t t
19732s,@DEPDIR@,$DEPDIR,;t t
19733s,@am__include@,$am__include,;t t
19734s,@am__quote@,$am__quote,;t t
19735s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19736s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19737s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19738s,@CCDEPMODE@,$CCDEPMODE,;t t
19739s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19740s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19741s,@build@,$build,;t t
19742s,@build_cpu@,$build_cpu,;t t
19743s,@build_vendor@,$build_vendor,;t t
19744s,@build_os@,$build_os,;t t
19745s,@host@,$host,;t t
19746s,@host_cpu@,$host_cpu,;t t
19747s,@host_vendor@,$host_vendor,;t t
19748s,@host_os@,$host_os,;t t
19749s,@SED@,$SED,;t t
19750s,@EGREP@,$EGREP,;t t
19751s,@LN_S@,$LN_S,;t t
19752s,@ECHO@,$ECHO,;t t
19753s,@AR@,$AR,;t t
19754s,@ac_ct_AR@,$ac_ct_AR,;t t
19755s,@RANLIB@,$RANLIB,;t t
19756s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19757s,@CPP@,$CPP,;t t
19758s,@CXX@,$CXX,;t t
19759s,@CXXFLAGS@,$CXXFLAGS,;t t
19760s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19761s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19762s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19763s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19764s,@CXXCPP@,$CXXCPP,;t t
19765s,@F77@,$F77,;t t
19766s,@FFLAGS@,$FFLAGS,;t t
19767s,@ac_ct_F77@,$ac_ct_F77,;t t
19768s,@LIBTOOL@,$LIBTOOL,;t t
19769s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19770s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19771s,@XEVIE_CFLAGS@,$XEVIE_CFLAGS,;t t
19772s,@XEVIE_LIBS@,$XEVIE_LIBS,;t t
19773s,@MALLOC_ZERO_CFLAGS@,$MALLOC_ZERO_CFLAGS,;t t
19774s,@XMALLOC_ZERO_CFLAGS@,$XMALLOC_ZERO_CFLAGS,;t t
19775s,@XTMALLOC_ZERO_CFLAGS@,$XTMALLOC_ZERO_CFLAGS,;t t
19776s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
19777s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
19778s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
19779s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
19780s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
19781s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
19782s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
19783s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
19784s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
19785s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
19786s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
19787s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
19788s,@LIBOBJS@,$LIBOBJS,;t t
19789s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19790CEOF
19791
19792_ACEOF
19793
19794  cat >>$CONFIG_STATUS <<\_ACEOF
19795  # Split the substitutions into bite-sized pieces for seds with
19796  # small command number limits, like on Digital OSF/1 and HP-UX.
19797  ac_max_sed_lines=48
19798  ac_sed_frag=1 # Number of current file.
19799  ac_beg=1 # First line for current file.
19800  ac_end=$ac_max_sed_lines # Line after last line for current file.
19801  ac_more_lines=:
19802  ac_sed_cmds=
19803  while $ac_more_lines; do
19804    if test $ac_beg -gt 1; then
19805      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19806    else
19807      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19808    fi
19809    if test ! -s $tmp/subs.frag; then
19810      ac_more_lines=false
19811    else
19812      # The purpose of the label and of the branching condition is to
19813      # speed up the sed processing (if there are no `@' at all, there
19814      # is no need to browse any of the substitutions).
19815      # These are the two extra sed commands mentioned above.
19816      (echo ':t
19817  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19818      if test -z "$ac_sed_cmds"; then
19819	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19820      else
19821	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19822      fi
19823      ac_sed_frag=`expr $ac_sed_frag + 1`
19824      ac_beg=$ac_end
19825      ac_end=`expr $ac_end + $ac_max_sed_lines`
19826    fi
19827  done
19828  if test -z "$ac_sed_cmds"; then
19829    ac_sed_cmds=cat
19830  fi
19831fi # test -n "$CONFIG_FILES"
19832
19833_ACEOF
19834cat >>$CONFIG_STATUS <<\_ACEOF
19835for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19836  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19837  case $ac_file in
19838  - | *:- | *:-:* ) # input from stdin
19839	cat >$tmp/stdin
19840	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19841	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19842  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19843	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19844  * )   ac_file_in=$ac_file.in ;;
19845  esac
19846
19847  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19848  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19849$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19850	 X"$ac_file" : 'X\(//\)[^/]' \| \
19851	 X"$ac_file" : 'X\(//\)$' \| \
19852	 X"$ac_file" : 'X\(/\)' \| \
19853	 .     : '\(.\)' 2>/dev/null ||
19854echo X"$ac_file" |
19855    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19856  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19857  	  /^X\(\/\/\)$/{ s//\1/; q; }
19858  	  /^X\(\/\).*/{ s//\1/; q; }
19859  	  s/.*/./; q'`
19860  { if $as_mkdir_p; then
19861    mkdir -p "$ac_dir"
19862  else
19863    as_dir="$ac_dir"
19864    as_dirs=
19865    while test ! -d "$as_dir"; do
19866      as_dirs="$as_dir $as_dirs"
19867      as_dir=`(dirname "$as_dir") 2>/dev/null ||
19868$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19869	 X"$as_dir" : 'X\(//\)[^/]' \| \
19870	 X"$as_dir" : 'X\(//\)$' \| \
19871	 X"$as_dir" : 'X\(/\)' \| \
19872	 .     : '\(.\)' 2>/dev/null ||
19873echo X"$as_dir" |
19874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19875  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19876  	  /^X\(\/\/\)$/{ s//\1/; q; }
19877  	  /^X\(\/\).*/{ s//\1/; q; }
19878  	  s/.*/./; q'`
19879    done
19880    test ! -n "$as_dirs" || mkdir $as_dirs
19881  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19882echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19883   { (exit 1); exit 1; }; }; }
19884
19885  ac_builddir=.
19886
19887if test "$ac_dir" != .; then
19888  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19889  # A "../" for each directory in $ac_dir_suffix.
19890  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19891else
19892  ac_dir_suffix= ac_top_builddir=
19893fi
19894
19895case $srcdir in
19896  .)  # No --srcdir option.  We are building in place.
19897    ac_srcdir=.
19898    if test -z "$ac_top_builddir"; then
19899       ac_top_srcdir=.
19900    else
19901       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19902    fi ;;
19903  [\\/]* | ?:[\\/]* )  # Absolute path.
19904    ac_srcdir=$srcdir$ac_dir_suffix;
19905    ac_top_srcdir=$srcdir ;;
19906  *) # Relative path.
19907    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19908    ac_top_srcdir=$ac_top_builddir$srcdir ;;
19909esac
19910
19911# Do not use `cd foo && pwd` to compute absolute paths, because
19912# the directories may not exist.
19913case `pwd` in
19914.) ac_abs_builddir="$ac_dir";;
19915*)
19916  case "$ac_dir" in
19917  .) ac_abs_builddir=`pwd`;;
19918  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19919  *) ac_abs_builddir=`pwd`/"$ac_dir";;
19920  esac;;
19921esac
19922case $ac_abs_builddir in
19923.) ac_abs_top_builddir=${ac_top_builddir}.;;
19924*)
19925  case ${ac_top_builddir}. in
19926  .) ac_abs_top_builddir=$ac_abs_builddir;;
19927  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19928  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19929  esac;;
19930esac
19931case $ac_abs_builddir in
19932.) ac_abs_srcdir=$ac_srcdir;;
19933*)
19934  case $ac_srcdir in
19935  .) ac_abs_srcdir=$ac_abs_builddir;;
19936  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19937  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19938  esac;;
19939esac
19940case $ac_abs_builddir in
19941.) ac_abs_top_srcdir=$ac_top_srcdir;;
19942*)
19943  case $ac_top_srcdir in
19944  .) ac_abs_top_srcdir=$ac_abs_builddir;;
19945  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19946  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19947  esac;;
19948esac
19949
19950
19951  case $INSTALL in
19952  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19953  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19954  esac
19955
19956  if test x"$ac_file" != x-; then
19957    { echo "$as_me:$LINENO: creating $ac_file" >&5
19958echo "$as_me: creating $ac_file" >&6;}
19959    rm -f "$ac_file"
19960  fi
19961  # Let's still pretend it is `configure' which instantiates (i.e., don't
19962  # use $as_me), people would be surprised to read:
19963  #    /* config.h.  Generated by config.status.  */
19964  if test x"$ac_file" = x-; then
19965    configure_input=
19966  else
19967    configure_input="$ac_file.  "
19968  fi
19969  configure_input=$configure_input"Generated from `echo $ac_file_in |
19970				     sed 's,.*/,,'` by configure."
19971
19972  # First look for the input files in the build tree, otherwise in the
19973  # src tree.
19974  ac_file_inputs=`IFS=:
19975    for f in $ac_file_in; do
19976      case $f in
19977      -) echo $tmp/stdin ;;
19978      [\\/$]*)
19979	 # Absolute (can't be DOS-style, as IFS=:)
19980	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19981echo "$as_me: error: cannot find input file: $f" >&2;}
19982   { (exit 1); exit 1; }; }
19983	 echo "$f";;
19984      *) # Relative
19985	 if test -f "$f"; then
19986	   # Build tree
19987	   echo "$f"
19988	 elif test -f "$srcdir/$f"; then
19989	   # Source tree
19990	   echo "$srcdir/$f"
19991	 else
19992	   # /dev/null tree
19993	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19994echo "$as_me: error: cannot find input file: $f" >&2;}
19995   { (exit 1); exit 1; }; }
19996	 fi;;
19997      esac
19998    done` || { (exit 1); exit 1; }
19999_ACEOF
20000cat >>$CONFIG_STATUS <<_ACEOF
20001  sed "$ac_vpsub
20002$extrasub
20003_ACEOF
20004cat >>$CONFIG_STATUS <<\_ACEOF
20005:t
20006/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20007s,@configure_input@,$configure_input,;t t
20008s,@srcdir@,$ac_srcdir,;t t
20009s,@abs_srcdir@,$ac_abs_srcdir,;t t
20010s,@top_srcdir@,$ac_top_srcdir,;t t
20011s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20012s,@builddir@,$ac_builddir,;t t
20013s,@abs_builddir@,$ac_abs_builddir,;t t
20014s,@top_builddir@,$ac_top_builddir,;t t
20015s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20016s,@INSTALL@,$ac_INSTALL,;t t
20017" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20018  rm -f $tmp/stdin
20019  if test x"$ac_file" != x-; then
20020    mv $tmp/out $ac_file
20021  else
20022    cat $tmp/out
20023    rm -f $tmp/out
20024  fi
20025
20026done
20027_ACEOF
20028cat >>$CONFIG_STATUS <<\_ACEOF
20029
20030#
20031# CONFIG_HEADER section.
20032#
20033
20034# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20035# NAME is the cpp macro being defined and VALUE is the value it is being given.
20036#
20037# ac_d sets the value in "#define NAME VALUE" lines.
20038ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
20039ac_dB='[	 ].*$,\1#\2'
20040ac_dC=' '
20041ac_dD=',;t'
20042# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20043ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
20044ac_uB='$,\1#\2define\3'
20045ac_uC=' '
20046ac_uD=',;t'
20047
20048for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20049  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20050  case $ac_file in
20051  - | *:- | *:-:* ) # input from stdin
20052	cat >$tmp/stdin
20053	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20054	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20055  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20056	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20057  * )   ac_file_in=$ac_file.in ;;
20058  esac
20059
20060  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20061echo "$as_me: creating $ac_file" >&6;}
20062
20063  # First look for the input files in the build tree, otherwise in the
20064  # src tree.
20065  ac_file_inputs=`IFS=:
20066    for f in $ac_file_in; do
20067      case $f in
20068      -) echo $tmp/stdin ;;
20069      [\\/$]*)
20070	 # Absolute (can't be DOS-style, as IFS=:)
20071	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20072echo "$as_me: error: cannot find input file: $f" >&2;}
20073   { (exit 1); exit 1; }; }
20074	 # Do quote $f, to prevent DOS paths from being IFS'd.
20075	 echo "$f";;
20076      *) # Relative
20077	 if test -f "$f"; then
20078	   # Build tree
20079	   echo "$f"
20080	 elif test -f "$srcdir/$f"; then
20081	   # Source tree
20082	   echo "$srcdir/$f"
20083	 else
20084	   # /dev/null tree
20085	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20086echo "$as_me: error: cannot find input file: $f" >&2;}
20087   { (exit 1); exit 1; }; }
20088	 fi;;
20089      esac
20090    done` || { (exit 1); exit 1; }
20091  # Remove the trailing spaces.
20092  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
20093
20094_ACEOF
20095
20096# Transform confdefs.h into two sed scripts, `conftest.defines' and
20097# `conftest.undefs', that substitutes the proper values into
20098# config.h.in to produce config.h.  The first handles `#define'
20099# templates, and the second `#undef' templates.
20100# And first: Protect against being on the right side of a sed subst in
20101# config.status.  Protect against being in an unquoted here document
20102# in config.status.
20103rm -f conftest.defines conftest.undefs
20104# Using a here document instead of a string reduces the quoting nightmare.
20105# Putting comments in sed scripts is not portable.
20106#
20107# `end' is used to avoid that the second main sed command (meant for
20108# 0-ary CPP macros) applies to n-ary macro definitions.
20109# See the Autoconf documentation for `clear'.
20110cat >confdef2sed.sed <<\_ACEOF
20111s/[\\&,]/\\&/g
20112s,[\\$`],\\&,g
20113t clear
20114: clear
20115s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20116t end
20117s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20118: end
20119_ACEOF
20120# If some macros were called several times there might be several times
20121# the same #defines, which is useless.  Nevertheless, we may not want to
20122# sort them, since we want the *last* AC-DEFINE to be honored.
20123uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20124sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20125rm -f confdef2sed.sed
20126
20127# This sed command replaces #undef with comments.  This is necessary, for
20128# example, in the case of _POSIX_SOURCE, which is predefined and required
20129# on some systems where configure will not decide to define it.
20130cat >>conftest.undefs <<\_ACEOF
20131s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20132_ACEOF
20133
20134# Break up conftest.defines because some shells have a limit on the size
20135# of here documents, and old seds have small limits too (100 cmds).
20136echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20137echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20138echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20139echo '  :' >>$CONFIG_STATUS
20140rm -f conftest.tail
20141while grep . conftest.defines >/dev/null
20142do
20143  # Write a limited-size here document to $tmp/defines.sed.
20144  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20145  # Speed up: don't consider the non `#define' lines.
20146  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
20147  # Work around the forget-to-reset-the-flag bug.
20148  echo 't clr' >>$CONFIG_STATUS
20149  echo ': clr' >>$CONFIG_STATUS
20150  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20151  echo 'CEOF
20152  sed -f $tmp/defines.sed $tmp/in >$tmp/out
20153  rm -f $tmp/in
20154  mv $tmp/out $tmp/in
20155' >>$CONFIG_STATUS
20156  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20157  rm -f conftest.defines
20158  mv conftest.tail conftest.defines
20159done
20160rm -f conftest.defines
20161echo '  fi # grep' >>$CONFIG_STATUS
20162echo >>$CONFIG_STATUS
20163
20164# Break up conftest.undefs because some shells have a limit on the size
20165# of here documents, and old seds have small limits too (100 cmds).
20166echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20167rm -f conftest.tail
20168while grep . conftest.undefs >/dev/null
20169do
20170  # Write a limited-size here document to $tmp/undefs.sed.
20171  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20172  # Speed up: don't consider the non `#undef'
20173  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
20174  # Work around the forget-to-reset-the-flag bug.
20175  echo 't clr' >>$CONFIG_STATUS
20176  echo ': clr' >>$CONFIG_STATUS
20177  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20178  echo 'CEOF
20179  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20180  rm -f $tmp/in
20181  mv $tmp/out $tmp/in
20182' >>$CONFIG_STATUS
20183  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20184  rm -f conftest.undefs
20185  mv conftest.tail conftest.undefs
20186done
20187rm -f conftest.undefs
20188
20189cat >>$CONFIG_STATUS <<\_ACEOF
20190  # Let's still pretend it is `configure' which instantiates (i.e., don't
20191  # use $as_me), people would be surprised to read:
20192  #    /* config.h.  Generated by config.status.  */
20193  if test x"$ac_file" = x-; then
20194    echo "/* Generated by configure.  */" >$tmp/config.h
20195  else
20196    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20197  fi
20198  cat $tmp/in >>$tmp/config.h
20199  rm -f $tmp/in
20200  if test x"$ac_file" != x-; then
20201    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20202      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20203echo "$as_me: $ac_file is unchanged" >&6;}
20204    else
20205      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20206$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20207	 X"$ac_file" : 'X\(//\)[^/]' \| \
20208	 X"$ac_file" : 'X\(//\)$' \| \
20209	 X"$ac_file" : 'X\(/\)' \| \
20210	 .     : '\(.\)' 2>/dev/null ||
20211echo X"$ac_file" |
20212    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20213  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20214  	  /^X\(\/\/\)$/{ s//\1/; q; }
20215  	  /^X\(\/\).*/{ s//\1/; q; }
20216  	  s/.*/./; q'`
20217      { if $as_mkdir_p; then
20218    mkdir -p "$ac_dir"
20219  else
20220    as_dir="$ac_dir"
20221    as_dirs=
20222    while test ! -d "$as_dir"; do
20223      as_dirs="$as_dir $as_dirs"
20224      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20225$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20226	 X"$as_dir" : 'X\(//\)[^/]' \| \
20227	 X"$as_dir" : 'X\(//\)$' \| \
20228	 X"$as_dir" : 'X\(/\)' \| \
20229	 .     : '\(.\)' 2>/dev/null ||
20230echo X"$as_dir" |
20231    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20232  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20233  	  /^X\(\/\/\)$/{ s//\1/; q; }
20234  	  /^X\(\/\).*/{ s//\1/; q; }
20235  	  s/.*/./; q'`
20236    done
20237    test ! -n "$as_dirs" || mkdir $as_dirs
20238  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20239echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20240   { (exit 1); exit 1; }; }; }
20241
20242      rm -f $ac_file
20243      mv $tmp/config.h $ac_file
20244    fi
20245  else
20246    cat $tmp/config.h
20247    rm -f $tmp/config.h
20248  fi
20249# Compute $ac_file's index in $config_headers.
20250_am_stamp_count=1
20251for _am_header in $config_headers :; do
20252  case $_am_header in
20253    $ac_file | $ac_file:* )
20254      break ;;
20255    * )
20256      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20257  esac
20258done
20259echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20260$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20261	 X$ac_file : 'X\(//\)[^/]' \| \
20262	 X$ac_file : 'X\(//\)$' \| \
20263	 X$ac_file : 'X\(/\)' \| \
20264	 .     : '\(.\)' 2>/dev/null ||
20265echo X$ac_file |
20266    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20267  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20268  	  /^X\(\/\/\)$/{ s//\1/; q; }
20269  	  /^X\(\/\).*/{ s//\1/; q; }
20270  	  s/.*/./; q'`/stamp-h$_am_stamp_count
20271done
20272_ACEOF
20273cat >>$CONFIG_STATUS <<\_ACEOF
20274
20275#
20276# CONFIG_COMMANDS section.
20277#
20278for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20279  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20280  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20281  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20282$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20283	 X"$ac_dest" : 'X\(//\)[^/]' \| \
20284	 X"$ac_dest" : 'X\(//\)$' \| \
20285	 X"$ac_dest" : 'X\(/\)' \| \
20286	 .     : '\(.\)' 2>/dev/null ||
20287echo X"$ac_dest" |
20288    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20289  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20290  	  /^X\(\/\/\)$/{ s//\1/; q; }
20291  	  /^X\(\/\).*/{ s//\1/; q; }
20292  	  s/.*/./; q'`
20293  { if $as_mkdir_p; then
20294    mkdir -p "$ac_dir"
20295  else
20296    as_dir="$ac_dir"
20297    as_dirs=
20298    while test ! -d "$as_dir"; do
20299      as_dirs="$as_dir $as_dirs"
20300      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20302	 X"$as_dir" : 'X\(//\)[^/]' \| \
20303	 X"$as_dir" : 'X\(//\)$' \| \
20304	 X"$as_dir" : 'X\(/\)' \| \
20305	 .     : '\(.\)' 2>/dev/null ||
20306echo X"$as_dir" |
20307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20308  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20309  	  /^X\(\/\/\)$/{ s//\1/; q; }
20310  	  /^X\(\/\).*/{ s//\1/; q; }
20311  	  s/.*/./; q'`
20312    done
20313    test ! -n "$as_dirs" || mkdir $as_dirs
20314  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20315echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20316   { (exit 1); exit 1; }; }; }
20317
20318  ac_builddir=.
20319
20320if test "$ac_dir" != .; then
20321  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20322  # A "../" for each directory in $ac_dir_suffix.
20323  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20324else
20325  ac_dir_suffix= ac_top_builddir=
20326fi
20327
20328case $srcdir in
20329  .)  # No --srcdir option.  We are building in place.
20330    ac_srcdir=.
20331    if test -z "$ac_top_builddir"; then
20332       ac_top_srcdir=.
20333    else
20334       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20335    fi ;;
20336  [\\/]* | ?:[\\/]* )  # Absolute path.
20337    ac_srcdir=$srcdir$ac_dir_suffix;
20338    ac_top_srcdir=$srcdir ;;
20339  *) # Relative path.
20340    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20341    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20342esac
20343
20344# Do not use `cd foo && pwd` to compute absolute paths, because
20345# the directories may not exist.
20346case `pwd` in
20347.) ac_abs_builddir="$ac_dir";;
20348*)
20349  case "$ac_dir" in
20350  .) ac_abs_builddir=`pwd`;;
20351  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20352  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20353  esac;;
20354esac
20355case $ac_abs_builddir in
20356.) ac_abs_top_builddir=${ac_top_builddir}.;;
20357*)
20358  case ${ac_top_builddir}. in
20359  .) ac_abs_top_builddir=$ac_abs_builddir;;
20360  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20361  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20362  esac;;
20363esac
20364case $ac_abs_builddir in
20365.) ac_abs_srcdir=$ac_srcdir;;
20366*)
20367  case $ac_srcdir in
20368  .) ac_abs_srcdir=$ac_abs_builddir;;
20369  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20370  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20371  esac;;
20372esac
20373case $ac_abs_builddir in
20374.) ac_abs_top_srcdir=$ac_top_srcdir;;
20375*)
20376  case $ac_top_srcdir in
20377  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20378  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20379  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20380  esac;;
20381esac
20382
20383
20384  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20385echo "$as_me: executing $ac_dest commands" >&6;}
20386  case $ac_dest in
20387    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20388  # Strip MF so we end up with the name of the file.
20389  mf=`echo "$mf" | sed -e 's/:.*$//'`
20390  # Check whether this is an Automake generated Makefile or not.
20391  # We used to match only the files named `Makefile.in', but
20392  # some people rename them; so instead we look at the file content.
20393  # Grep'ing the first line is not enough: some people post-process
20394  # each Makefile.in and add a new line on top of each file to say so.
20395  # So let's grep whole file.
20396  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20397    dirpart=`(dirname "$mf") 2>/dev/null ||
20398$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20399	 X"$mf" : 'X\(//\)[^/]' \| \
20400	 X"$mf" : 'X\(//\)$' \| \
20401	 X"$mf" : 'X\(/\)' \| \
20402	 .     : '\(.\)' 2>/dev/null ||
20403echo X"$mf" |
20404    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20405  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20406  	  /^X\(\/\/\)$/{ s//\1/; q; }
20407  	  /^X\(\/\).*/{ s//\1/; q; }
20408  	  s/.*/./; q'`
20409  else
20410    continue
20411  fi
20412  # Extract the definition of DEPDIR, am__include, and am__quote
20413  # from the Makefile without running `make'.
20414  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20415  test -z "$DEPDIR" && continue
20416  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20417  test -z "am__include" && continue
20418  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20419  # When using ansi2knr, U may be empty or an underscore; expand it
20420  U=`sed -n 's/^U = //p' < "$mf"`
20421  # Find all dependency output files, they are included files with
20422  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20423  # simplest approach to changing $(DEPDIR) to its actual value in the
20424  # expansion.
20425  for file in `sed -n "
20426    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20427       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20428    # Make sure the directory exists.
20429    test -f "$dirpart/$file" && continue
20430    fdir=`(dirname "$file") 2>/dev/null ||
20431$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20432	 X"$file" : 'X\(//\)[^/]' \| \
20433	 X"$file" : 'X\(//\)$' \| \
20434	 X"$file" : 'X\(/\)' \| \
20435	 .     : '\(.\)' 2>/dev/null ||
20436echo X"$file" |
20437    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20438  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20439  	  /^X\(\/\/\)$/{ s//\1/; q; }
20440  	  /^X\(\/\).*/{ s//\1/; q; }
20441  	  s/.*/./; q'`
20442    { if $as_mkdir_p; then
20443    mkdir -p $dirpart/$fdir
20444  else
20445    as_dir=$dirpart/$fdir
20446    as_dirs=
20447    while test ! -d "$as_dir"; do
20448      as_dirs="$as_dir $as_dirs"
20449      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20450$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20451	 X"$as_dir" : 'X\(//\)[^/]' \| \
20452	 X"$as_dir" : 'X\(//\)$' \| \
20453	 X"$as_dir" : 'X\(/\)' \| \
20454	 .     : '\(.\)' 2>/dev/null ||
20455echo X"$as_dir" |
20456    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20457  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20458  	  /^X\(\/\/\)$/{ s//\1/; q; }
20459  	  /^X\(\/\).*/{ s//\1/; q; }
20460  	  s/.*/./; q'`
20461    done
20462    test ! -n "$as_dirs" || mkdir $as_dirs
20463  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20464echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20465   { (exit 1); exit 1; }; }; }
20466
20467    # echo "creating $dirpart/$file"
20468    echo '# dummy' > "$dirpart/$file"
20469  done
20470done
20471 ;;
20472  esac
20473done
20474_ACEOF
20475
20476cat >>$CONFIG_STATUS <<\_ACEOF
20477
20478{ (exit 0); exit 0; }
20479_ACEOF
20480chmod +x $CONFIG_STATUS
20481ac_clean_files=$ac_clean_files_save
20482
20483
20484# configure is writing to config.log, and then calls config.status.
20485# config.status does its own redirection, appending to config.log.
20486# Unfortunately, on DOS this fails, as config.log is still kept open
20487# by configure, so config.status won't be able to write to it; its
20488# output is simply discarded.  So we exec the FD to /dev/null,
20489# effectively closing config.log, so it can be properly (re)opened and
20490# appended to by config.status.  When coming back to configure, we
20491# need to make the FD available again.
20492if test "$no_create" != yes; then
20493  ac_cs_success=:
20494  ac_config_status_args=
20495  test "$silent" = yes &&
20496    ac_config_status_args="$ac_config_status_args --quiet"
20497  exec 5>/dev/null
20498  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20499  exec 5>>config.log
20500  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20501  # would make configure fail if this is the last instruction.
20502  $ac_cs_success || { (exit 1); exit 1; }
20503fi
20504
20505
20506