configure revision 943345d3
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for xf86-video-ark 0.6.0.
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='xf86-video-ark'
425PACKAGE_TARNAME='xf86-video-ark'
426PACKAGE_VERSION='0.6.0'
427PACKAGE_STRING='xf86-video-ark 0.6.0'
428PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
430ac_unique_file="Makefile.am"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 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 moduledir PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS INCLUDES DRIVER_NAME 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'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950ac_env_PKG_CONFIG_value=$PKG_CONFIG
951ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953ac_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
954ac_env_XORG_CFLAGS_value=$XORG_CFLAGS
955ac_cv_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
956ac_cv_env_XORG_CFLAGS_value=$XORG_CFLAGS
957ac_env_XORG_LIBS_set=${XORG_LIBS+set}
958ac_env_XORG_LIBS_value=$XORG_LIBS
959ac_cv_env_XORG_LIBS_set=${XORG_LIBS+set}
960ac_cv_env_XORG_LIBS_value=$XORG_LIBS
961
962#
963# Report the --help message.
964#
965if test "$ac_init_help" = "long"; then
966  # Omit some internal or obsolete options to make the list less imposing.
967  # This message is too long to be a string in the A/UX 3.1 sh.
968  cat <<_ACEOF
969\`configure' configures xf86-video-ark 0.6.0 to adapt to many kinds of systems.
970
971Usage: $0 [OPTION]... [VAR=VALUE]...
972
973To assign environment variables (e.g., CC, CFLAGS...), specify them as
974VAR=VALUE.  See below for descriptions of some of the useful variables.
975
976Defaults for the options are specified in brackets.
977
978Configuration:
979  -h, --help              display this help and exit
980      --help=short        display options specific to this package
981      --help=recursive    display the short help of all the included packages
982  -V, --version           display version information and exit
983  -q, --quiet, --silent   do not print \`checking...' messages
984      --cache-file=FILE   cache test results in FILE [disabled]
985  -C, --config-cache      alias for \`--cache-file=config.cache'
986  -n, --no-create         do not create output files
987      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
988
989_ACEOF
990
991  cat <<_ACEOF
992Installation directories:
993  --prefix=PREFIX         install architecture-independent files in PREFIX
994			  [$ac_default_prefix]
995  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
996			  [PREFIX]
997
998By default, \`make install' will install all the files in
999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1000an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001for instance \`--prefix=\$HOME'.
1002
1003For better control, use the options below.
1004
1005Fine tuning of the installation directories:
1006  --bindir=DIR           user executables [EPREFIX/bin]
1007  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1008  --libexecdir=DIR       program executables [EPREFIX/libexec]
1009  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1010  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1011  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1012  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1013  --libdir=DIR           object code libraries [EPREFIX/lib]
1014  --includedir=DIR       C header files [PREFIX/include]
1015  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1016  --infodir=DIR          info documentation [PREFIX/info]
1017  --mandir=DIR           man documentation [PREFIX/man]
1018_ACEOF
1019
1020  cat <<\_ACEOF
1021
1022Program names:
1023  --program-prefix=PREFIX            prepend PREFIX to installed program names
1024  --program-suffix=SUFFIX            append SUFFIX to installed program names
1025  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1026
1027System types:
1028  --build=BUILD     configure for building on BUILD [guessed]
1029  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1030_ACEOF
1031fi
1032
1033if test -n "$ac_init_help"; then
1034  case $ac_init_help in
1035     short | recursive ) echo "Configuration of xf86-video-ark 0.6.0:";;
1036   esac
1037  cat <<\_ACEOF
1038
1039Optional Features:
1040  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1041  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1042  --enable-maintainer-mode  enable make rules and dependencies not useful
1043			  (and sometimes confusing) to the casual installer
1044  --enable-static[=PKGS]
1045                          build static libraries [default=no]
1046  --enable-shared[=PKGS]
1047                          build shared libraries [default=yes]
1048  --enable-fast-install[=PKGS]
1049                          optimize for fast installation [default=yes]
1050  --disable-dependency-tracking  speeds up one-time build
1051  --enable-dependency-tracking   do not reject slow dependency extractors
1052  --disable-libtool-lock  avoid locking (might break parallel builds)
1053
1054Optional Packages:
1055  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058  --with-pic              try to use only PIC/non-PIC objects [default=use
1059                          both]
1060  --with-tags[=TAGS]
1061                          include additional configurations [automatic]
1062  --with-xorg-module-dir=DIR
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  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1081  XORG_LIBS   linker flags for XORG, overriding pkg-config
1082
1083Use these variables to override the choices made by `configure' or to help
1084it to find libraries and programs with nonstandard names/locations.
1085
1086Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1087_ACEOF
1088fi
1089
1090if test "$ac_init_help" = "recursive"; then
1091  # If there are subdirs, report their specific --help.
1092  ac_popdir=`pwd`
1093  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1094    test -d $ac_dir || continue
1095    ac_builddir=.
1096
1097if test "$ac_dir" != .; then
1098  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1099  # A "../" for each directory in $ac_dir_suffix.
1100  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101else
1102  ac_dir_suffix= ac_top_builddir=
1103fi
1104
1105case $srcdir in
1106  .)  # No --srcdir option.  We are building in place.
1107    ac_srcdir=.
1108    if test -z "$ac_top_builddir"; then
1109       ac_top_srcdir=.
1110    else
1111       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112    fi ;;
1113  [\\/]* | ?:[\\/]* )  # Absolute path.
1114    ac_srcdir=$srcdir$ac_dir_suffix;
1115    ac_top_srcdir=$srcdir ;;
1116  *) # Relative path.
1117    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1118    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1119esac
1120
1121# Do not use `cd foo && pwd` to compute absolute paths, because
1122# the directories may not exist.
1123case `pwd` in
1124.) ac_abs_builddir="$ac_dir";;
1125*)
1126  case "$ac_dir" in
1127  .) ac_abs_builddir=`pwd`;;
1128  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1129  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1130  esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_builddir=${ac_top_builddir}.;;
1134*)
1135  case ${ac_top_builddir}. in
1136  .) ac_abs_top_builddir=$ac_abs_builddir;;
1137  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1138  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1139  esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_srcdir=$ac_srcdir;;
1143*)
1144  case $ac_srcdir in
1145  .) ac_abs_srcdir=$ac_abs_builddir;;
1146  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1147  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1148  esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_srcdir=$ac_top_srcdir;;
1152*)
1153  case $ac_top_srcdir in
1154  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1155  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1156  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157  esac;;
1158esac
1159
1160    cd $ac_dir
1161    # Check for guested configure; otherwise get Cygnus style configure.
1162    if test -f $ac_srcdir/configure.gnu; then
1163      echo
1164      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1165    elif test -f $ac_srcdir/configure; then
1166      echo
1167      $SHELL $ac_srcdir/configure  --help=recursive
1168    elif test -f $ac_srcdir/configure.ac ||
1169	   test -f $ac_srcdir/configure.in; then
1170      echo
1171      $ac_configure --help
1172    else
1173      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1174    fi
1175    cd $ac_popdir
1176  done
1177fi
1178
1179test -n "$ac_init_help" && exit 0
1180if $ac_init_version; then
1181  cat <<\_ACEOF
1182xf86-video-ark configure 0.6.0
1183generated by GNU Autoconf 2.59
1184
1185Copyright (C) 2003 Free Software Foundation, Inc.
1186This configure script is free software; the Free Software Foundation
1187gives unlimited permission to copy, distribute and modify it.
1188_ACEOF
1189  exit 0
1190fi
1191exec 5>config.log
1192cat >&5 <<_ACEOF
1193This file contains any messages produced by compilers while
1194running configure, to aid debugging if configure makes a mistake.
1195
1196It was created by xf86-video-ark $as_me 0.6.0, which was
1197generated by GNU Autoconf 2.59.  Invocation command line was
1198
1199  $ $0 $@
1200
1201_ACEOF
1202{
1203cat <<_ASUNAME
1204## --------- ##
1205## Platform. ##
1206## --------- ##
1207
1208hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1209uname -m = `(uname -m) 2>/dev/null || echo unknown`
1210uname -r = `(uname -r) 2>/dev/null || echo unknown`
1211uname -s = `(uname -s) 2>/dev/null || echo unknown`
1212uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213
1214/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1215/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1216
1217/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1218/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1219/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1220hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1221/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1222/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1223/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1224
1225_ASUNAME
1226
1227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228for as_dir in $PATH
1229do
1230  IFS=$as_save_IFS
1231  test -z "$as_dir" && as_dir=.
1232  echo "PATH: $as_dir"
1233done
1234
1235} >&5
1236
1237cat >&5 <<_ACEOF
1238
1239
1240## ----------- ##
1241## Core tests. ##
1242## ----------- ##
1243
1244_ACEOF
1245
1246
1247# Keep a trace of the command line.
1248# Strip out --no-create and --no-recursion so they do not pile up.
1249# Strip out --silent because we don't want to record it for future runs.
1250# Also quote any args containing shell meta-characters.
1251# Make two passes to allow for proper duplicate-argument suppression.
1252ac_configure_args=
1253ac_configure_args0=
1254ac_configure_args1=
1255ac_sep=
1256ac_must_keep_next=false
1257for ac_pass in 1 2
1258do
1259  for ac_arg
1260  do
1261    case $ac_arg in
1262    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1263    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264    | -silent | --silent | --silen | --sile | --sil)
1265      continue ;;
1266    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1268    esac
1269    case $ac_pass in
1270    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271    2)
1272      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1273      if test $ac_must_keep_next = true; then
1274	ac_must_keep_next=false # Got value, back to normal.
1275      else
1276	case $ac_arg in
1277	  *=* | --config-cache | -C | -disable-* | --disable-* \
1278	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1279	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1280	  | -with-* | --with-* | -without-* | --without-* | --x)
1281	    case "$ac_configure_args0 " in
1282	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1283	    esac
1284	    ;;
1285	  -* ) ac_must_keep_next=true ;;
1286	esac
1287      fi
1288      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1289      # Get rid of the leading space.
1290      ac_sep=" "
1291      ;;
1292    esac
1293  done
1294done
1295$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1296$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297
1298# When interrupted or exit'd, cleanup temporary files, and complete
1299# config.log.  We remove comments because anyway the quotes in there
1300# would cause problems or look ugly.
1301# WARNING: Be sure not to use single quotes in there, as some shells,
1302# such as our DU 5.0 friend, will then `close' the trap.
1303trap 'exit_status=$?
1304  # Save into config.log some information that might help in debugging.
1305  {
1306    echo
1307
1308    cat <<\_ASBOX
1309## ---------------- ##
1310## Cache variables. ##
1311## ---------------- ##
1312_ASBOX
1313    echo
1314    # The following way of writing the cache mishandles newlines in values,
1315{
1316  (set) 2>&1 |
1317    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1318    *ac_space=\ *)
1319      sed -n \
1320	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1321	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1322      ;;
1323    *)
1324      sed -n \
1325	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1326      ;;
1327    esac;
1328}
1329    echo
1330
1331    cat <<\_ASBOX
1332## ----------------- ##
1333## Output variables. ##
1334## ----------------- ##
1335_ASBOX
1336    echo
1337    for ac_var in $ac_subst_vars
1338    do
1339      eval ac_val=$`echo $ac_var`
1340      echo "$ac_var='"'"'$ac_val'"'"'"
1341    done | sort
1342    echo
1343
1344    if test -n "$ac_subst_files"; then
1345      cat <<\_ASBOX
1346## ------------- ##
1347## Output files. ##
1348## ------------- ##
1349_ASBOX
1350      echo
1351      for ac_var in $ac_subst_files
1352      do
1353	eval ac_val=$`echo $ac_var`
1354	echo "$ac_var='"'"'$ac_val'"'"'"
1355      done | sort
1356      echo
1357    fi
1358
1359    if test -s confdefs.h; then
1360      cat <<\_ASBOX
1361## ----------- ##
1362## confdefs.h. ##
1363## ----------- ##
1364_ASBOX
1365      echo
1366      sed "/^$/d" confdefs.h | sort
1367      echo
1368    fi
1369    test "$ac_signal" != 0 &&
1370      echo "$as_me: caught signal $ac_signal"
1371    echo "$as_me: exit $exit_status"
1372  } >&5
1373  rm -f core *.core &&
1374  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1375    exit $exit_status
1376     ' 0
1377for ac_signal in 1 2 13 15; do
1378  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379done
1380ac_signal=0
1381
1382# confdefs.h avoids OS command line length limits that DEFS can exceed.
1383rm -rf conftest* confdefs.h
1384# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1385echo >confdefs.h
1386
1387# Predefined preprocessor variables.
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_NAME "$PACKAGE_NAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_VERSION "$PACKAGE_VERSION"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_STRING "$PACKAGE_STRING"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411_ACEOF
1412
1413
1414# Let the site file select an alternate cache file if it wants to.
1415# Prefer explicitly selected file to automatically selected ones.
1416if test -z "$CONFIG_SITE"; then
1417  if test "x$prefix" != xNONE; then
1418    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419  else
1420    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1421  fi
1422fi
1423for ac_site_file in $CONFIG_SITE; do
1424  if test -r "$ac_site_file"; then
1425    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1426echo "$as_me: loading site script $ac_site_file" >&6;}
1427    sed 's/^/| /' "$ac_site_file" >&5
1428    . "$ac_site_file"
1429  fi
1430done
1431
1432if test -r "$cache_file"; then
1433  # Some versions of bash will fail to source /dev/null (special
1434  # files actually), so we avoid doing that.
1435  if test -f "$cache_file"; then
1436    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1437echo "$as_me: loading cache $cache_file" >&6;}
1438    case $cache_file in
1439      [\\/]* | ?:[\\/]* ) . $cache_file;;
1440      *)                      . ./$cache_file;;
1441    esac
1442  fi
1443else
1444  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1445echo "$as_me: creating cache $cache_file" >&6;}
1446  >$cache_file
1447fi
1448
1449# Check that the precious variables saved in the cache have kept the same
1450# value.
1451ac_cache_corrupted=false
1452for ac_var in `(set) 2>&1 |
1453	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1454  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1455  eval ac_new_set=\$ac_env_${ac_var}_set
1456  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1457  eval ac_new_val="\$ac_env_${ac_var}_value"
1458  case $ac_old_set,$ac_new_set in
1459    set,)
1460      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1461echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1462      ac_cache_corrupted=: ;;
1463    ,set)
1464      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1465echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1466      ac_cache_corrupted=: ;;
1467    ,);;
1468    *)
1469      if test "x$ac_old_val" != "x$ac_new_val"; then
1470	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1471echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1472	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1473echo "$as_me:   former value:  $ac_old_val" >&2;}
1474	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1475echo "$as_me:   current value: $ac_new_val" >&2;}
1476	ac_cache_corrupted=:
1477      fi;;
1478  esac
1479  # Pass precious variables to config.status.
1480  if test "$ac_new_set" = set; then
1481    case $ac_new_val in
1482    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1483      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1484    *) ac_arg=$ac_var=$ac_new_val ;;
1485    esac
1486    case " $ac_configure_args " in
1487      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1488      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489    esac
1490  fi
1491done
1492if $ac_cache_corrupted; then
1493  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1494echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1495  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1496echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1497   { (exit 1); exit 1; }; }
1498fi
1499
1500ac_ext=c
1501ac_cpp='$CPP $CPPFLAGS'
1502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1504ac_compiler_gnu=$ac_cv_c_compiler_gnu
1505
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
1533
1534          ac_config_headers="$ac_config_headers config.h"
1535
1536ac_aux_dir=
1537for ac_dir in . $srcdir/.; do
1538  if test -f $ac_dir/install-sh; then
1539    ac_aux_dir=$ac_dir
1540    ac_install_sh="$ac_aux_dir/install-sh -c"
1541    break
1542  elif test -f $ac_dir/install.sh; then
1543    ac_aux_dir=$ac_dir
1544    ac_install_sh="$ac_aux_dir/install.sh -c"
1545    break
1546  elif test -f $ac_dir/shtool; then
1547    ac_aux_dir=$ac_dir
1548    ac_install_sh="$ac_aux_dir/shtool install -c"
1549    break
1550  fi
1551done
1552if test -z "$ac_aux_dir"; then
1553  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1554echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1555   { (exit 1); exit 1; }; }
1556fi
1557ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
1561
1562am__api_version="1.9"
1563# Find a good install program.  We prefer a C program (faster),
1564# so one script is as good as another.  But avoid the broken or
1565# incompatible versions:
1566# SysV /etc/install, /usr/sbin/install
1567# SunOS /usr/etc/install
1568# IRIX /sbin/install
1569# AIX /bin/install
1570# AmigaOS /C/install, which installs bootblocks on floppy discs
1571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1574# OS/2's system install, which has a completely different semantic
1575# ./install, which can be erroneously created by make from ./install.sh.
1576echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1577echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1578if test -z "$INSTALL"; then
1579if test "${ac_cv_path_install+set}" = set; then
1580  echo $ECHO_N "(cached) $ECHO_C" >&6
1581else
1582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585  IFS=$as_save_IFS
1586  test -z "$as_dir" && as_dir=.
1587  # Account for people who put trailing slashes in PATH elements.
1588case $as_dir/ in
1589  ./ | .// | /cC/* | \
1590  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1591  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1592  /usr/ucb/* ) ;;
1593  *)
1594    # OSF1 and SCO ODT 3.0 have their own names for install.
1595    # Don't use installbsd from OSF since it installs stuff as root
1596    # by default.
1597    for ac_prog in ginstall scoinst install; do
1598      for ac_exec_ext in '' $ac_executable_extensions; do
1599	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1600	  if test $ac_prog = install &&
1601	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602	    # AIX install.  It has an incompatible calling convention.
1603	    :
1604	  elif test $ac_prog = install &&
1605	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1606	    # program-specific install script used by HP pwplus--don't use.
1607	    :
1608	  else
1609	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1610	    break 3
1611	  fi
1612	fi
1613      done
1614    done
1615    ;;
1616esac
1617done
1618
1619
1620fi
1621  if test "${ac_cv_path_install+set}" = set; then
1622    INSTALL=$ac_cv_path_install
1623  else
1624    # As a last resort, use the slow shell script.  We don't cache a
1625    # path for INSTALL within a source directory, because that will
1626    # break other packages using the cache if that directory is
1627    # removed, or if the path is relative.
1628    INSTALL=$ac_install_sh
1629  fi
1630fi
1631echo "$as_me:$LINENO: result: $INSTALL" >&5
1632echo "${ECHO_T}$INSTALL" >&6
1633
1634# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1635# It thinks the first close brace ends the variable substitution.
1636test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1637
1638test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1639
1640test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1641
1642echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1643echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1644# Just in case
1645sleep 1
1646echo timestamp > conftest.file
1647# Do `set' in a subshell so we don't clobber the current shell's
1648# arguments.  Must try -L first in case configure is actually a
1649# symlink; some systems play weird games with the mod time of symlinks
1650# (eg FreeBSD returns the mod time of the symlink's containing
1651# directory).
1652if (
1653   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1654   if test "$*" = "X"; then
1655      # -L didn't work.
1656      set X `ls -t $srcdir/configure conftest.file`
1657   fi
1658   rm -f conftest.file
1659   if test "$*" != "X $srcdir/configure conftest.file" \
1660      && test "$*" != "X conftest.file $srcdir/configure"; then
1661
1662      # If neither matched, then we have a broken ls.  This can happen
1663      # if, for instance, CONFIG_SHELL is bash and it inherits a
1664      # broken ls alias from the environment.  This has actually
1665      # happened.  Such a system could not be considered "sane".
1666      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1667alias in your environment" >&5
1668echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1669alias in your environment" >&2;}
1670   { (exit 1); exit 1; }; }
1671   fi
1672
1673   test "$2" = conftest.file
1674   )
1675then
1676   # Ok.
1677   :
1678else
1679   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1680Check your system clock" >&5
1681echo "$as_me: error: newly created file is older than distributed files!
1682Check your system clock" >&2;}
1683   { (exit 1); exit 1; }; }
1684fi
1685echo "$as_me:$LINENO: result: yes" >&5
1686echo "${ECHO_T}yes" >&6
1687test "$program_prefix" != NONE &&
1688  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1689# Use a double $ so make ignores it.
1690test "$program_suffix" != NONE &&
1691  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1692# Double any \ or $.  echo might interpret backslashes.
1693# By default was `s,x,x', remove it if useless.
1694cat <<\_ACEOF >conftest.sed
1695s/[\\$]/&&/g;s/;s,x,x,$//
1696_ACEOF
1697program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1698rm conftest.sed
1699
1700# expand $ac_aux_dir to an absolute path
1701am_aux_dir=`cd $ac_aux_dir && pwd`
1702
1703test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1704# Use eval to expand $SHELL
1705if eval "$MISSING --run true"; then
1706  am_missing_run="$MISSING --run "
1707else
1708  am_missing_run=
1709  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1710echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1711fi
1712
1713if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1714  # We used to keeping the `.' as first argument, in order to
1715  # allow $(mkdir_p) to be used without argument.  As in
1716  #   $(mkdir_p) $(somedir)
1717  # where $(somedir) is conditionally defined.  However this is wrong
1718  # for two reasons:
1719  #  1. if the package is installed by a user who cannot write `.'
1720  #     make install will fail,
1721  #  2. the above comment should most certainly read
1722  #     $(mkdir_p) $(DESTDIR)$(somedir)
1723  #     so it does not work when $(somedir) is undefined and
1724  #     $(DESTDIR) is not.
1725  #  To support the latter case, we have to write
1726  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1727  #  so the `.' trick is pointless.
1728  mkdir_p='mkdir -p --'
1729else
1730  # On NextStep and OpenStep, the `mkdir' command does not
1731  # recognize any option.  It will interpret all options as
1732  # directories to create, and then abort because `.' already
1733  # exists.
1734  for d in ./-p ./--version;
1735  do
1736    test -d $d && rmdir $d
1737  done
1738  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1739  if test -f "$ac_aux_dir/mkinstalldirs"; then
1740    mkdir_p='$(mkinstalldirs)'
1741  else
1742    mkdir_p='$(install_sh) -d'
1743  fi
1744fi
1745
1746for ac_prog in gawk mawk nawk awk
1747do
1748  # Extract the first word of "$ac_prog", so it can be a program name with args.
1749set dummy $ac_prog; ac_word=$2
1750echo "$as_me:$LINENO: checking for $ac_word" >&5
1751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1752if test "${ac_cv_prog_AWK+set}" = set; then
1753  echo $ECHO_N "(cached) $ECHO_C" >&6
1754else
1755  if test -n "$AWK"; then
1756  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1757else
1758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759for as_dir in $PATH
1760do
1761  IFS=$as_save_IFS
1762  test -z "$as_dir" && as_dir=.
1763  for ac_exec_ext in '' $ac_executable_extensions; do
1764  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1765    ac_cv_prog_AWK="$ac_prog"
1766    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1767    break 2
1768  fi
1769done
1770done
1771
1772fi
1773fi
1774AWK=$ac_cv_prog_AWK
1775if test -n "$AWK"; then
1776  echo "$as_me:$LINENO: result: $AWK" >&5
1777echo "${ECHO_T}$AWK" >&6
1778else
1779  echo "$as_me:$LINENO: result: no" >&5
1780echo "${ECHO_T}no" >&6
1781fi
1782
1783  test -n "$AWK" && break
1784done
1785
1786echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1787echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1788set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1789if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1790  echo $ECHO_N "(cached) $ECHO_C" >&6
1791else
1792  cat >conftest.make <<\_ACEOF
1793all:
1794	@echo 'ac_maketemp="$(MAKE)"'
1795_ACEOF
1796# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1797eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1798if test -n "$ac_maketemp"; then
1799  eval ac_cv_prog_make_${ac_make}_set=yes
1800else
1801  eval ac_cv_prog_make_${ac_make}_set=no
1802fi
1803rm -f conftest.make
1804fi
1805if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1806  echo "$as_me:$LINENO: result: yes" >&5
1807echo "${ECHO_T}yes" >&6
1808  SET_MAKE=
1809else
1810  echo "$as_me:$LINENO: result: no" >&5
1811echo "${ECHO_T}no" >&6
1812  SET_MAKE="MAKE=${MAKE-make}"
1813fi
1814
1815rm -rf .tst 2>/dev/null
1816mkdir .tst 2>/dev/null
1817if test -d .tst; then
1818  am__leading_dot=.
1819else
1820  am__leading_dot=_
1821fi
1822rmdir .tst 2>/dev/null
1823
1824# test to see if srcdir already configured
1825if test "`cd $srcdir && pwd`" != "`pwd`" &&
1826   test -f $srcdir/config.status; then
1827  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1828echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1829   { (exit 1); exit 1; }; }
1830fi
1831
1832# test whether we have cygpath
1833if test -z "$CYGPATH_W"; then
1834  if (cygpath --version) >/dev/null 2>/dev/null; then
1835    CYGPATH_W='cygpath -w'
1836  else
1837    CYGPATH_W=echo
1838  fi
1839fi
1840
1841
1842# Define the identity of the package.
1843 PACKAGE='xf86-video-ark'
1844 VERSION='0.6.0'
1845
1846
1847cat >>confdefs.h <<_ACEOF
1848#define PACKAGE "$PACKAGE"
1849_ACEOF
1850
1851
1852cat >>confdefs.h <<_ACEOF
1853#define VERSION "$VERSION"
1854_ACEOF
1855
1856# Some tools Automake needs.
1857
1858ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1859
1860
1861AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1862
1863
1864AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1865
1866
1867AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1868
1869
1870MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1871
1872install_sh=${install_sh-"$am_aux_dir/install-sh"}
1873
1874# Installed binaries are usually stripped using `strip' when the user
1875# run `make install-strip'.  However `strip' might not be the right
1876# tool to use in cross-compilation environments, therefore Automake
1877# will honor the `STRIP' environment variable to overrule this program.
1878if test "$cross_compiling" != no; then
1879  if test -n "$ac_tool_prefix"; then
1880  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1881set dummy ${ac_tool_prefix}strip; ac_word=$2
1882echo "$as_me:$LINENO: checking for $ac_word" >&5
1883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1884if test "${ac_cv_prog_STRIP+set}" = set; then
1885  echo $ECHO_N "(cached) $ECHO_C" >&6
1886else
1887  if test -n "$STRIP"; then
1888  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1889else
1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891for as_dir in $PATH
1892do
1893  IFS=$as_save_IFS
1894  test -z "$as_dir" && as_dir=.
1895  for ac_exec_ext in '' $ac_executable_extensions; do
1896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899    break 2
1900  fi
1901done
1902done
1903
1904fi
1905fi
1906STRIP=$ac_cv_prog_STRIP
1907if test -n "$STRIP"; then
1908  echo "$as_me:$LINENO: result: $STRIP" >&5
1909echo "${ECHO_T}$STRIP" >&6
1910else
1911  echo "$as_me:$LINENO: result: no" >&5
1912echo "${ECHO_T}no" >&6
1913fi
1914
1915fi
1916if test -z "$ac_cv_prog_STRIP"; then
1917  ac_ct_STRIP=$STRIP
1918  # Extract the first word of "strip", so it can be a program name with args.
1919set dummy strip; ac_word=$2
1920echo "$as_me:$LINENO: checking for $ac_word" >&5
1921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1923  echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925  if test -n "$ac_ct_STRIP"; then
1926  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1927else
1928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929for as_dir in $PATH
1930do
1931  IFS=$as_save_IFS
1932  test -z "$as_dir" && as_dir=.
1933  for ac_exec_ext in '' $ac_executable_extensions; do
1934  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935    ac_cv_prog_ac_ct_STRIP="strip"
1936    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937    break 2
1938  fi
1939done
1940done
1941
1942  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1943fi
1944fi
1945ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1946if test -n "$ac_ct_STRIP"; then
1947  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1948echo "${ECHO_T}$ac_ct_STRIP" >&6
1949else
1950  echo "$as_me:$LINENO: result: no" >&5
1951echo "${ECHO_T}no" >&6
1952fi
1953
1954  STRIP=$ac_ct_STRIP
1955else
1956  STRIP="$ac_cv_prog_STRIP"
1957fi
1958
1959fi
1960INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1961
1962# We need awk for the "check" target.  The system "awk" is bad on
1963# some platforms.
1964# Always define AMTAR for backward compatibility.
1965
1966AMTAR=${AMTAR-"${am_missing_run}tar"}
1967
1968am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1969
1970
1971
1972
1973
1974
1975echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1976echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1977    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1978if test "${enable_maintainer_mode+set}" = set; then
1979  enableval="$enable_maintainer_mode"
1980  USE_MAINTAINER_MODE=$enableval
1981else
1982  USE_MAINTAINER_MODE=no
1983fi;
1984  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1985echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1986
1987
1988if test $USE_MAINTAINER_MODE = yes; then
1989  MAINTAINER_MODE_TRUE=
1990  MAINTAINER_MODE_FALSE='#'
1991else
1992  MAINTAINER_MODE_TRUE='#'
1993  MAINTAINER_MODE_FALSE=
1994fi
1995
1996  MAINT=$MAINTAINER_MODE_TRUE
1997
1998
1999
2000# Checks for programs.
2001# Check whether --enable-static or --disable-static was given.
2002if test "${enable_static+set}" = set; then
2003  enableval="$enable_static"
2004  p=${PACKAGE-default}
2005    case $enableval in
2006    yes) enable_static=yes ;;
2007    no) enable_static=no ;;
2008    *)
2009     enable_static=no
2010      # Look at the argument we got.  We use all the common list separators.
2011      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2012      for pkg in $enableval; do
2013	IFS="$lt_save_ifs"
2014	if test "X$pkg" = "X$p"; then
2015	  enable_static=yes
2016	fi
2017      done
2018      IFS="$lt_save_ifs"
2019      ;;
2020    esac
2021else
2022  enable_static=no
2023fi;
2024
2025
2026# Check whether --enable-shared or --disable-shared was given.
2027if test "${enable_shared+set}" = set; then
2028  enableval="$enable_shared"
2029  p=${PACKAGE-default}
2030    case $enableval in
2031    yes) enable_shared=yes ;;
2032    no) enable_shared=no ;;
2033    *)
2034      enable_shared=no
2035      # Look at the argument we got.  We use all the common list separators.
2036      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2037      for pkg in $enableval; do
2038	IFS="$lt_save_ifs"
2039	if test "X$pkg" = "X$p"; then
2040	  enable_shared=yes
2041	fi
2042      done
2043      IFS="$lt_save_ifs"
2044      ;;
2045    esac
2046else
2047  enable_shared=yes
2048fi;
2049
2050# Check whether --enable-fast-install or --disable-fast-install was given.
2051if test "${enable_fast_install+set}" = set; then
2052  enableval="$enable_fast_install"
2053  p=${PACKAGE-default}
2054    case $enableval in
2055    yes) enable_fast_install=yes ;;
2056    no) enable_fast_install=no ;;
2057    *)
2058      enable_fast_install=no
2059      # Look at the argument we got.  We use all the common list separators.
2060      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2061      for pkg in $enableval; do
2062	IFS="$lt_save_ifs"
2063	if test "X$pkg" = "X$p"; then
2064	  enable_fast_install=yes
2065	fi
2066      done
2067      IFS="$lt_save_ifs"
2068      ;;
2069    esac
2070else
2071  enable_fast_install=yes
2072fi;
2073
2074# Make sure we can run config.sub.
2075$ac_config_sub sun4 >/dev/null 2>&1 ||
2076  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2077echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2078   { (exit 1); exit 1; }; }
2079
2080echo "$as_me:$LINENO: checking build system type" >&5
2081echo $ECHO_N "checking build system type... $ECHO_C" >&6
2082if test "${ac_cv_build+set}" = set; then
2083  echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085  ac_cv_build_alias=$build_alias
2086test -z "$ac_cv_build_alias" &&
2087  ac_cv_build_alias=`$ac_config_guess`
2088test -z "$ac_cv_build_alias" &&
2089  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2090echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2091   { (exit 1); exit 1; }; }
2092ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2093  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2094echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2095   { (exit 1); exit 1; }; }
2096
2097fi
2098echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2099echo "${ECHO_T}$ac_cv_build" >&6
2100build=$ac_cv_build
2101build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2102build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2103build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2104
2105
2106echo "$as_me:$LINENO: checking host system type" >&5
2107echo $ECHO_N "checking host system type... $ECHO_C" >&6
2108if test "${ac_cv_host+set}" = set; then
2109  echo $ECHO_N "(cached) $ECHO_C" >&6
2110else
2111  ac_cv_host_alias=$host_alias
2112test -z "$ac_cv_host_alias" &&
2113  ac_cv_host_alias=$ac_cv_build_alias
2114ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2115  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2116echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2117   { (exit 1); exit 1; }; }
2118
2119fi
2120echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2121echo "${ECHO_T}$ac_cv_host" >&6
2122host=$ac_cv_host
2123host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2124host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2125host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2126
2127
2128DEPDIR="${am__leading_dot}deps"
2129
2130          ac_config_commands="$ac_config_commands depfiles"
2131
2132
2133am_make=${MAKE-make}
2134cat > confinc << 'END'
2135am__doit:
2136	@echo done
2137.PHONY: am__doit
2138END
2139# If we don't find an include directive, just comment out the code.
2140echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2141echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2142am__include="#"
2143am__quote=
2144_am_result=none
2145# First try GNU make style include.
2146echo "include confinc" > confmf
2147# We grep out `Entering directory' and `Leaving directory'
2148# messages which can occur if `w' ends up in MAKEFLAGS.
2149# In particular we don't look at `^make:' because GNU make might
2150# be invoked under some other name (usually "gmake"), in which
2151# case it prints its new name instead of `make'.
2152if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2153   am__include=include
2154   am__quote=
2155   _am_result=GNU
2156fi
2157# Now try BSD make style include.
2158if test "$am__include" = "#"; then
2159   echo '.include "confinc"' > confmf
2160   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2161      am__include=.include
2162      am__quote="\""
2163      _am_result=BSD
2164   fi
2165fi
2166
2167
2168echo "$as_me:$LINENO: result: $_am_result" >&5
2169echo "${ECHO_T}$_am_result" >&6
2170rm -f confinc confmf
2171
2172# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2173if test "${enable_dependency_tracking+set}" = set; then
2174  enableval="$enable_dependency_tracking"
2175
2176fi;
2177if test "x$enable_dependency_tracking" != xno; then
2178  am_depcomp="$ac_aux_dir/depcomp"
2179  AMDEPBACKSLASH='\'
2180fi
2181
2182
2183if test "x$enable_dependency_tracking" != xno; then
2184  AMDEP_TRUE=
2185  AMDEP_FALSE='#'
2186else
2187  AMDEP_TRUE='#'
2188  AMDEP_FALSE=
2189fi
2190
2191
2192
2193ac_ext=c
2194ac_cpp='$CPP $CPPFLAGS'
2195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197ac_compiler_gnu=$ac_cv_c_compiler_gnu
2198if test -n "$ac_tool_prefix"; then
2199  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2200set dummy ${ac_tool_prefix}gcc; ac_word=$2
2201echo "$as_me:$LINENO: checking for $ac_word" >&5
2202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2203if test "${ac_cv_prog_CC+set}" = set; then
2204  echo $ECHO_N "(cached) $ECHO_C" >&6
2205else
2206  if test -n "$CC"; then
2207  ac_cv_prog_CC="$CC" # Let the user override the test.
2208else
2209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212  IFS=$as_save_IFS
2213  test -z "$as_dir" && as_dir=.
2214  for ac_exec_ext in '' $ac_executable_extensions; do
2215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2216    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218    break 2
2219  fi
2220done
2221done
2222
2223fi
2224fi
2225CC=$ac_cv_prog_CC
2226if test -n "$CC"; then
2227  echo "$as_me:$LINENO: result: $CC" >&5
2228echo "${ECHO_T}$CC" >&6
2229else
2230  echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6
2232fi
2233
2234fi
2235if test -z "$ac_cv_prog_CC"; then
2236  ac_ct_CC=$CC
2237  # Extract the first word of "gcc", so it can be a program name with args.
2238set dummy gcc; ac_word=$2
2239echo "$as_me:$LINENO: checking for $ac_word" >&5
2240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2242  echo $ECHO_N "(cached) $ECHO_C" >&6
2243else
2244  if test -n "$ac_ct_CC"; then
2245  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2246else
2247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248for as_dir in $PATH
2249do
2250  IFS=$as_save_IFS
2251  test -z "$as_dir" && as_dir=.
2252  for ac_exec_ext in '' $ac_executable_extensions; do
2253  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254    ac_cv_prog_ac_ct_CC="gcc"
2255    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256    break 2
2257  fi
2258done
2259done
2260
2261fi
2262fi
2263ac_ct_CC=$ac_cv_prog_ac_ct_CC
2264if test -n "$ac_ct_CC"; then
2265  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2266echo "${ECHO_T}$ac_ct_CC" >&6
2267else
2268  echo "$as_me:$LINENO: result: no" >&5
2269echo "${ECHO_T}no" >&6
2270fi
2271
2272  CC=$ac_ct_CC
2273else
2274  CC="$ac_cv_prog_CC"
2275fi
2276
2277if test -z "$CC"; then
2278  if test -n "$ac_tool_prefix"; then
2279  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2280set dummy ${ac_tool_prefix}cc; ac_word=$2
2281echo "$as_me:$LINENO: checking for $ac_word" >&5
2282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2283if test "${ac_cv_prog_CC+set}" = set; then
2284  echo $ECHO_N "(cached) $ECHO_C" >&6
2285else
2286  if test -n "$CC"; then
2287  ac_cv_prog_CC="$CC" # Let the user override the test.
2288else
2289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290for as_dir in $PATH
2291do
2292  IFS=$as_save_IFS
2293  test -z "$as_dir" && as_dir=.
2294  for ac_exec_ext in '' $ac_executable_extensions; do
2295  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2296    ac_cv_prog_CC="${ac_tool_prefix}cc"
2297    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298    break 2
2299  fi
2300done
2301done
2302
2303fi
2304fi
2305CC=$ac_cv_prog_CC
2306if test -n "$CC"; then
2307  echo "$as_me:$LINENO: result: $CC" >&5
2308echo "${ECHO_T}$CC" >&6
2309else
2310  echo "$as_me:$LINENO: result: no" >&5
2311echo "${ECHO_T}no" >&6
2312fi
2313
2314fi
2315if test -z "$ac_cv_prog_CC"; then
2316  ac_ct_CC=$CC
2317  # Extract the first word of "cc", so it can be a program name with args.
2318set dummy cc; ac_word=$2
2319echo "$as_me:$LINENO: checking for $ac_word" >&5
2320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2321if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2322  echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324  if test -n "$ac_ct_CC"; then
2325  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2326else
2327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328for as_dir in $PATH
2329do
2330  IFS=$as_save_IFS
2331  test -z "$as_dir" && as_dir=.
2332  for ac_exec_ext in '' $ac_executable_extensions; do
2333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334    ac_cv_prog_ac_ct_CC="cc"
2335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336    break 2
2337  fi
2338done
2339done
2340
2341fi
2342fi
2343ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344if test -n "$ac_ct_CC"; then
2345  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2346echo "${ECHO_T}$ac_ct_CC" >&6
2347else
2348  echo "$as_me:$LINENO: result: no" >&5
2349echo "${ECHO_T}no" >&6
2350fi
2351
2352  CC=$ac_ct_CC
2353else
2354  CC="$ac_cv_prog_CC"
2355fi
2356
2357fi
2358if test -z "$CC"; then
2359  # Extract the first word of "cc", so it can be a program name with args.
2360set dummy cc; ac_word=$2
2361echo "$as_me:$LINENO: checking for $ac_word" >&5
2362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2363if test "${ac_cv_prog_CC+set}" = set; then
2364  echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366  if test -n "$CC"; then
2367  ac_cv_prog_CC="$CC" # Let the user override the test.
2368else
2369  ac_prog_rejected=no
2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371for as_dir in $PATH
2372do
2373  IFS=$as_save_IFS
2374  test -z "$as_dir" && as_dir=.
2375  for ac_exec_ext in '' $ac_executable_extensions; do
2376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2377    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2378       ac_prog_rejected=yes
2379       continue
2380     fi
2381    ac_cv_prog_CC="cc"
2382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2383    break 2
2384  fi
2385done
2386done
2387
2388if test $ac_prog_rejected = yes; then
2389  # We found a bogon in the path, so make sure we never use it.
2390  set dummy $ac_cv_prog_CC
2391  shift
2392  if test $# != 0; then
2393    # We chose a different compiler from the bogus one.
2394    # However, it has the same basename, so the bogon will be chosen
2395    # first if we set CC to just the basename; use the full file name.
2396    shift
2397    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2398  fi
2399fi
2400fi
2401fi
2402CC=$ac_cv_prog_CC
2403if test -n "$CC"; then
2404  echo "$as_me:$LINENO: result: $CC" >&5
2405echo "${ECHO_T}$CC" >&6
2406else
2407  echo "$as_me:$LINENO: result: no" >&5
2408echo "${ECHO_T}no" >&6
2409fi
2410
2411fi
2412if test -z "$CC"; then
2413  if test -n "$ac_tool_prefix"; then
2414  for ac_prog in cl
2415  do
2416    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2417set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2418echo "$as_me:$LINENO: checking for $ac_word" >&5
2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2420if test "${ac_cv_prog_CC+set}" = set; then
2421  echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423  if test -n "$CC"; then
2424  ac_cv_prog_CC="$CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429  IFS=$as_save_IFS
2430  test -z "$as_dir" && as_dir=.
2431  for ac_exec_ext in '' $ac_executable_extensions; do
2432  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2434    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435    break 2
2436  fi
2437done
2438done
2439
2440fi
2441fi
2442CC=$ac_cv_prog_CC
2443if test -n "$CC"; then
2444  echo "$as_me:$LINENO: result: $CC" >&5
2445echo "${ECHO_T}$CC" >&6
2446else
2447  echo "$as_me:$LINENO: result: no" >&5
2448echo "${ECHO_T}no" >&6
2449fi
2450
2451    test -n "$CC" && break
2452  done
2453fi
2454if test -z "$CC"; then
2455  ac_ct_CC=$CC
2456  for ac_prog in cl
2457do
2458  # Extract the first word of "$ac_prog", so it can be a program name with args.
2459set dummy $ac_prog; ac_word=$2
2460echo "$as_me:$LINENO: checking for $ac_word" >&5
2461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2463  echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465  if test -n "$ac_ct_CC"; then
2466  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471  IFS=$as_save_IFS
2472  test -z "$as_dir" && as_dir=.
2473  for ac_exec_ext in '' $ac_executable_extensions; do
2474  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2475    ac_cv_prog_ac_ct_CC="$ac_prog"
2476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477    break 2
2478  fi
2479done
2480done
2481
2482fi
2483fi
2484ac_ct_CC=$ac_cv_prog_ac_ct_CC
2485if test -n "$ac_ct_CC"; then
2486  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2487echo "${ECHO_T}$ac_ct_CC" >&6
2488else
2489  echo "$as_me:$LINENO: result: no" >&5
2490echo "${ECHO_T}no" >&6
2491fi
2492
2493  test -n "$ac_ct_CC" && break
2494done
2495
2496  CC=$ac_ct_CC
2497fi
2498
2499fi
2500
2501
2502test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2503See \`config.log' for more details." >&5
2504echo "$as_me: error: no acceptable C compiler found in \$PATH
2505See \`config.log' for more details." >&2;}
2506   { (exit 1); exit 1; }; }
2507
2508# Provide some information about the compiler.
2509echo "$as_me:$LINENO:" \
2510     "checking for C compiler version" >&5
2511ac_compiler=`set X $ac_compile; echo $2`
2512{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2513  (eval $ac_compiler --version </dev/null >&5) 2>&5
2514  ac_status=$?
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); }
2517{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2518  (eval $ac_compiler -v </dev/null >&5) 2>&5
2519  ac_status=$?
2520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521  (exit $ac_status); }
2522{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2523  (eval $ac_compiler -V </dev/null >&5) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }
2527
2528cat >conftest.$ac_ext <<_ACEOF
2529/* confdefs.h.  */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h.  */
2534
2535int
2536main ()
2537{
2538
2539  ;
2540  return 0;
2541}
2542_ACEOF
2543ac_clean_files_save=$ac_clean_files
2544ac_clean_files="$ac_clean_files a.out a.exe b.out"
2545# Try to create an executable without -o first, disregard a.out.
2546# It will help us diagnose broken compilers, and finding out an intuition
2547# of exeext.
2548echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2549echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2550ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2551if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2552  (eval $ac_link_default) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; then
2556  # Find the output, starting from the most likely.  This scheme is
2557# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2558# resort.
2559
2560# Be careful to initialize this variable, since it used to be cached.
2561# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2562ac_cv_exeext=
2563# b.out is created by i960 compilers.
2564for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2565do
2566  test -f "$ac_file" || continue
2567  case $ac_file in
2568    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2569	;;
2570    conftest.$ac_ext )
2571	# This is the source file.
2572	;;
2573    [ab].out )
2574	# We found the default executable, but exeext='' is most
2575	# certainly right.
2576	break;;
2577    *.* )
2578	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2579	# FIXME: I believe we export ac_cv_exeext for Libtool,
2580	# but it would be cool to find out if it's true.  Does anybody
2581	# maintain Libtool? --akim.
2582	export ac_cv_exeext
2583	break;;
2584    * )
2585	break;;
2586  esac
2587done
2588else
2589  echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2593See \`config.log' for more details." >&5
2594echo "$as_me: error: C compiler cannot create executables
2595See \`config.log' for more details." >&2;}
2596   { (exit 77); exit 77; }; }
2597fi
2598
2599ac_exeext=$ac_cv_exeext
2600echo "$as_me:$LINENO: result: $ac_file" >&5
2601echo "${ECHO_T}$ac_file" >&6
2602
2603# Check the compiler produces executables we can run.  If not, either
2604# the compiler is broken, or we cross compile.
2605echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2606echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2607# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2608# If not cross compiling, check that we can run a simple program.
2609if test "$cross_compiling" != yes; then
2610  if { ac_try='./$ac_file'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; }; then
2616    cross_compiling=no
2617  else
2618    if test "$cross_compiling" = maybe; then
2619	cross_compiling=yes
2620    else
2621	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2622If you meant to cross compile, use \`--host'.
2623See \`config.log' for more details." >&5
2624echo "$as_me: error: cannot run C compiled programs.
2625If you meant to cross compile, use \`--host'.
2626See \`config.log' for more details." >&2;}
2627   { (exit 1); exit 1; }; }
2628    fi
2629  fi
2630fi
2631echo "$as_me:$LINENO: result: yes" >&5
2632echo "${ECHO_T}yes" >&6
2633
2634rm -f a.out a.exe conftest$ac_cv_exeext b.out
2635ac_clean_files=$ac_clean_files_save
2636# Check the compiler produces executables we can run.  If not, either
2637# the compiler is broken, or we cross compile.
2638echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2639echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2640echo "$as_me:$LINENO: result: $cross_compiling" >&5
2641echo "${ECHO_T}$cross_compiling" >&6
2642
2643echo "$as_me:$LINENO: checking for suffix of executables" >&5
2644echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2646  (eval $ac_link) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; then
2650  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2651# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2652# work properly (i.e., refer to `conftest.exe'), while it won't with
2653# `rm'.
2654for ac_file in conftest.exe conftest conftest.*; do
2655  test -f "$ac_file" || continue
2656  case $ac_file in
2657    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2658    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2659	  export ac_cv_exeext
2660	  break;;
2661    * ) break;;
2662  esac
2663done
2664else
2665  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2666See \`config.log' for more details." >&5
2667echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2668See \`config.log' for more details." >&2;}
2669   { (exit 1); exit 1; }; }
2670fi
2671
2672rm -f conftest$ac_cv_exeext
2673echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2674echo "${ECHO_T}$ac_cv_exeext" >&6
2675
2676rm -f conftest.$ac_ext
2677EXEEXT=$ac_cv_exeext
2678ac_exeext=$EXEEXT
2679echo "$as_me:$LINENO: checking for suffix of object files" >&5
2680echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2681if test "${ac_cv_objext+set}" = set; then
2682  echo $ECHO_N "(cached) $ECHO_C" >&6
2683else
2684  cat >conftest.$ac_ext <<_ACEOF
2685/* confdefs.h.  */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h.  */
2690
2691int
2692main ()
2693{
2694
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699rm -f conftest.o conftest.obj
2700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701  (eval $ac_compile) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; then
2705  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2706  case $ac_file in
2707    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2708    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2709       break;;
2710  esac
2711done
2712else
2713  echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2717See \`config.log' for more details." >&5
2718echo "$as_me: error: cannot compute suffix of object files: cannot compile
2719See \`config.log' for more details." >&2;}
2720   { (exit 1); exit 1; }; }
2721fi
2722
2723rm -f conftest.$ac_cv_objext conftest.$ac_ext
2724fi
2725echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2726echo "${ECHO_T}$ac_cv_objext" >&6
2727OBJEXT=$ac_cv_objext
2728ac_objext=$OBJEXT
2729echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2730echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2731if test "${ac_cv_c_compiler_gnu+set}" = set; then
2732  echo $ECHO_N "(cached) $ECHO_C" >&6
2733else
2734  cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h.  */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h.  */
2740
2741int
2742main ()
2743{
2744#ifndef __GNUC__
2745       choke me
2746#endif
2747
2748  ;
2749  return 0;
2750}
2751_ACEOF
2752rm -f conftest.$ac_objext
2753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754  (eval $ac_compile) 2>conftest.er1
2755  ac_status=$?
2756  grep -v '^ *+' conftest.er1 >conftest.err
2757  rm -f conftest.er1
2758  cat conftest.err >&5
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); } &&
2761	 { ac_try='test -z "$ac_c_werror_flag"
2762			 || test ! -s conftest.err'
2763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764  (eval $ac_try) 2>&5
2765  ac_status=$?
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); }; } &&
2768	 { ac_try='test -s conftest.$ac_objext'
2769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770  (eval $ac_try) 2>&5
2771  ac_status=$?
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); }; }; then
2774  ac_compiler_gnu=yes
2775else
2776  echo "$as_me: failed program was:" >&5
2777sed 's/^/| /' conftest.$ac_ext >&5
2778
2779ac_compiler_gnu=no
2780fi
2781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2782ac_cv_c_compiler_gnu=$ac_compiler_gnu
2783
2784fi
2785echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2786echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2787GCC=`test $ac_compiler_gnu = yes && echo yes`
2788ac_test_CFLAGS=${CFLAGS+set}
2789ac_save_CFLAGS=$CFLAGS
2790CFLAGS="-g"
2791echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2792echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2793if test "${ac_cv_prog_cc_g+set}" = set; then
2794  echo $ECHO_N "(cached) $ECHO_C" >&6
2795else
2796  cat >conftest.$ac_ext <<_ACEOF
2797/* confdefs.h.  */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
2801/* end confdefs.h.  */
2802
2803int
2804main ()
2805{
2806
2807  ;
2808  return 0;
2809}
2810_ACEOF
2811rm -f conftest.$ac_objext
2812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813  (eval $ac_compile) 2>conftest.er1
2814  ac_status=$?
2815  grep -v '^ *+' conftest.er1 >conftest.err
2816  rm -f conftest.er1
2817  cat conftest.err >&5
2818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819  (exit $ac_status); } &&
2820	 { ac_try='test -z "$ac_c_werror_flag"
2821			 || test ! -s conftest.err'
2822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823  (eval $ac_try) 2>&5
2824  ac_status=$?
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); }; } &&
2827	 { ac_try='test -s conftest.$ac_objext'
2828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829  (eval $ac_try) 2>&5
2830  ac_status=$?
2831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832  (exit $ac_status); }; }; then
2833  ac_cv_prog_cc_g=yes
2834else
2835  echo "$as_me: failed program was:" >&5
2836sed 's/^/| /' conftest.$ac_ext >&5
2837
2838ac_cv_prog_cc_g=no
2839fi
2840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841fi
2842echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2843echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2844if test "$ac_test_CFLAGS" = set; then
2845  CFLAGS=$ac_save_CFLAGS
2846elif test $ac_cv_prog_cc_g = yes; then
2847  if test "$GCC" = yes; then
2848    CFLAGS="-g -O2"
2849  else
2850    CFLAGS="-g"
2851  fi
2852else
2853  if test "$GCC" = yes; then
2854    CFLAGS="-O2"
2855  else
2856    CFLAGS=
2857  fi
2858fi
2859echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2860echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2861if test "${ac_cv_prog_cc_stdc+set}" = set; then
2862  echo $ECHO_N "(cached) $ECHO_C" >&6
2863else
2864  ac_cv_prog_cc_stdc=no
2865ac_save_CC=$CC
2866cat >conftest.$ac_ext <<_ACEOF
2867/* confdefs.h.  */
2868_ACEOF
2869cat confdefs.h >>conftest.$ac_ext
2870cat >>conftest.$ac_ext <<_ACEOF
2871/* end confdefs.h.  */
2872#include <stdarg.h>
2873#include <stdio.h>
2874#include <sys/types.h>
2875#include <sys/stat.h>
2876/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2877struct buf { int x; };
2878FILE * (*rcsopen) (struct buf *, struct stat *, int);
2879static char *e (p, i)
2880     char **p;
2881     int i;
2882{
2883  return p[i];
2884}
2885static char *f (char * (*g) (char **, int), char **p, ...)
2886{
2887  char *s;
2888  va_list v;
2889  va_start (v,p);
2890  s = g (p, va_arg (v,int));
2891  va_end (v);
2892  return s;
2893}
2894
2895/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2896   function prototypes and stuff, but not '\xHH' hex character constants.
2897   These don't provoke an error unfortunately, instead are silently treated
2898   as 'x'.  The following induces an error, until -std1 is added to get
2899   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2900   array size at least.  It's necessary to write '\x00'==0 to get something
2901   that's true only with -std1.  */
2902int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2903
2904int test (int i, double x);
2905struct s1 {int (*f) (int a);};
2906struct s2 {int (*f) (double a);};
2907int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2908int argc;
2909char **argv;
2910int
2911main ()
2912{
2913return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918# Don't try gcc -ansi; that turns off useful extensions and
2919# breaks some systems' header files.
2920# AIX			-qlanglvl=ansi
2921# Ultrix and OSF/1	-std1
2922# HP-UX 10.20 and later	-Ae
2923# HP-UX older versions	-Aa -D_HPUX_SOURCE
2924# SVR4			-Xc -D__EXTENSIONS__
2925for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2926do
2927  CC="$ac_save_CC $ac_arg"
2928  rm -f conftest.$ac_objext
2929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930  (eval $ac_compile) 2>conftest.er1
2931  ac_status=$?
2932  grep -v '^ *+' conftest.er1 >conftest.err
2933  rm -f conftest.er1
2934  cat conftest.err >&5
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); } &&
2937	 { ac_try='test -z "$ac_c_werror_flag"
2938			 || test ! -s conftest.err'
2939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940  (eval $ac_try) 2>&5
2941  ac_status=$?
2942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943  (exit $ac_status); }; } &&
2944	 { ac_try='test -s conftest.$ac_objext'
2945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946  (eval $ac_try) 2>&5
2947  ac_status=$?
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); }; }; then
2950  ac_cv_prog_cc_stdc=$ac_arg
2951break
2952else
2953  echo "$as_me: failed program was:" >&5
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956fi
2957rm -f conftest.err conftest.$ac_objext
2958done
2959rm -f conftest.$ac_ext conftest.$ac_objext
2960CC=$ac_save_CC
2961
2962fi
2963
2964case "x$ac_cv_prog_cc_stdc" in
2965  x|xno)
2966    echo "$as_me:$LINENO: result: none needed" >&5
2967echo "${ECHO_T}none needed" >&6 ;;
2968  *)
2969    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2970echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2971    CC="$CC $ac_cv_prog_cc_stdc" ;;
2972esac
2973
2974# Some people use a C++ compiler to compile C.  Since we use `exit',
2975# in C++ we need to declare it.  In case someone uses the same compiler
2976# for both compiling C and C++ we need to have the C++ compiler decide
2977# the declaration of exit, since it's the most demanding environment.
2978cat >conftest.$ac_ext <<_ACEOF
2979#ifndef __cplusplus
2980  choke me
2981#endif
2982_ACEOF
2983rm -f conftest.$ac_objext
2984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985  (eval $ac_compile) 2>conftest.er1
2986  ac_status=$?
2987  grep -v '^ *+' conftest.er1 >conftest.err
2988  rm -f conftest.er1
2989  cat conftest.err >&5
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); } &&
2992	 { ac_try='test -z "$ac_c_werror_flag"
2993			 || test ! -s conftest.err'
2994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995  (eval $ac_try) 2>&5
2996  ac_status=$?
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); }; } &&
2999	 { ac_try='test -s conftest.$ac_objext'
3000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001  (eval $ac_try) 2>&5
3002  ac_status=$?
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); }; }; then
3005  for ac_declaration in \
3006   '' \
3007   'extern "C" void std::exit (int) throw (); using std::exit;' \
3008   'extern "C" void std::exit (int); using std::exit;' \
3009   'extern "C" void exit (int) throw ();' \
3010   'extern "C" void exit (int);' \
3011   'void exit (int);'
3012do
3013  cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019$ac_declaration
3020#include <stdlib.h>
3021int
3022main ()
3023{
3024exit (42);
3025  ;
3026  return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext
3030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3031  (eval $ac_compile) 2>conftest.er1
3032  ac_status=$?
3033  grep -v '^ *+' conftest.er1 >conftest.err
3034  rm -f conftest.er1
3035  cat conftest.err >&5
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); } &&
3038	 { ac_try='test -z "$ac_c_werror_flag"
3039			 || test ! -s conftest.err'
3040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041  (eval $ac_try) 2>&5
3042  ac_status=$?
3043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044  (exit $ac_status); }; } &&
3045	 { ac_try='test -s conftest.$ac_objext'
3046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047  (eval $ac_try) 2>&5
3048  ac_status=$?
3049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050  (exit $ac_status); }; }; then
3051  :
3052else
3053  echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056continue
3057fi
3058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3059  cat >conftest.$ac_ext <<_ACEOF
3060/* confdefs.h.  */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h.  */
3065$ac_declaration
3066int
3067main ()
3068{
3069exit (42);
3070  ;
3071  return 0;
3072}
3073_ACEOF
3074rm -f conftest.$ac_objext
3075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076  (eval $ac_compile) 2>conftest.er1
3077  ac_status=$?
3078  grep -v '^ *+' conftest.er1 >conftest.err
3079  rm -f conftest.er1
3080  cat conftest.err >&5
3081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082  (exit $ac_status); } &&
3083	 { ac_try='test -z "$ac_c_werror_flag"
3084			 || test ! -s conftest.err'
3085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086  (eval $ac_try) 2>&5
3087  ac_status=$?
3088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089  (exit $ac_status); }; } &&
3090	 { ac_try='test -s conftest.$ac_objext'
3091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092  (eval $ac_try) 2>&5
3093  ac_status=$?
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); }; }; then
3096  break
3097else
3098  echo "$as_me: failed program was:" >&5
3099sed 's/^/| /' conftest.$ac_ext >&5
3100
3101fi
3102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103done
3104rm -f conftest*
3105if test -n "$ac_declaration"; then
3106  echo '#ifdef __cplusplus' >>confdefs.h
3107  echo $ac_declaration      >>confdefs.h
3108  echo '#endif'             >>confdefs.h
3109fi
3110
3111else
3112  echo "$as_me: failed program was:" >&5
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115fi
3116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3117ac_ext=c
3118ac_cpp='$CPP $CPPFLAGS'
3119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122
3123depcc="$CC"   am_compiler_list=
3124
3125echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3126echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3127if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3128  echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3131  # We make a subdir and do the tests there.  Otherwise we can end up
3132  # making bogus files that we don't know about and never remove.  For
3133  # instance it was reported that on HP-UX the gcc test will end up
3134  # making a dummy file named `D' -- because `-MD' means `put the output
3135  # in D'.
3136  mkdir conftest.dir
3137  # Copy depcomp to subdir because otherwise we won't find it if we're
3138  # using a relative directory.
3139  cp "$am_depcomp" conftest.dir
3140  cd conftest.dir
3141  # We will build objects and dependencies in a subdirectory because
3142  # it helps to detect inapplicable dependency modes.  For instance
3143  # both Tru64's cc and ICC support -MD to output dependencies as a
3144  # side effect of compilation, but ICC will put the dependencies in
3145  # the current directory while Tru64 will put them in the object
3146  # directory.
3147  mkdir sub
3148
3149  am_cv_CC_dependencies_compiler_type=none
3150  if test "$am_compiler_list" = ""; then
3151     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152  fi
3153  for depmode in $am_compiler_list; do
3154    # Setup a source with many dependencies, because some compilers
3155    # like to wrap large dependency lists on column 80 (with \), and
3156    # we should not choose a depcomp mode which is confused by this.
3157    #
3158    # We need to recreate these files for each test, as the compiler may
3159    # overwrite some of them when testing with obscure command lines.
3160    # This happens at least with the AIX C compiler.
3161    : > sub/conftest.c
3162    for i in 1 2 3 4 5 6; do
3163      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3164      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3165      # Solaris 8's {/usr,}/bin/sh.
3166      touch sub/conftst$i.h
3167    done
3168    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3169
3170    case $depmode in
3171    nosideeffect)
3172      # after this tag, mechanisms are not by side-effect, so they'll
3173      # only be used when explicitly requested
3174      if test "x$enable_dependency_tracking" = xyes; then
3175	continue
3176      else
3177	break
3178      fi
3179      ;;
3180    none) break ;;
3181    esac
3182    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183    # mode.  It turns out that the SunPro C++ compiler does not properly
3184    # handle `-M -o', and we need to detect this.
3185    if depmode=$depmode \
3186       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3187       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3188       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3189         >/dev/null 2>conftest.err &&
3190       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3191       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3192       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3193      # icc doesn't choke on unknown options, it will just issue warnings
3194      # or remarks (even with -Werror).  So we grep stderr for any message
3195      # that says an option was ignored or not supported.
3196      # When given -MP, icc 7.0 and 7.1 complain thusly:
3197      #   icc: Command line warning: ignoring option '-M'; no argument required
3198      # The diagnosis changed in icc 8.0:
3199      #   icc: Command line remark: option '-MP' not supported
3200      if (grep 'ignoring option' conftest.err ||
3201          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202        am_cv_CC_dependencies_compiler_type=$depmode
3203        break
3204      fi
3205    fi
3206  done
3207
3208  cd ..
3209  rm -rf conftest.dir
3210else
3211  am_cv_CC_dependencies_compiler_type=none
3212fi
3213
3214fi
3215echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3217CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3218
3219
3220
3221if
3222  test "x$enable_dependency_tracking" != xno \
3223  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224  am__fastdepCC_TRUE=
3225  am__fastdepCC_FALSE='#'
3226else
3227  am__fastdepCC_TRUE='#'
3228  am__fastdepCC_FALSE=
3229fi
3230
3231
3232echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3233echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3234if test "${lt_cv_path_SED+set}" = set; then
3235  echo $ECHO_N "(cached) $ECHO_C" >&6
3236else
3237  # Loop through the user's path and test for sed and gsed.
3238# Then use that list of sed's as ones to test for truncation.
3239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242  IFS=$as_save_IFS
3243  test -z "$as_dir" && as_dir=.
3244  for lt_ac_prog in sed gsed; do
3245    for ac_exec_ext in '' $ac_executable_extensions; do
3246      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3247        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3248      fi
3249    done
3250  done
3251done
3252lt_ac_max=0
3253lt_ac_count=0
3254# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3255# along with /bin/sed that truncates output.
3256for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3257  test ! -f $lt_ac_sed && continue
3258  cat /dev/null > conftest.in
3259  lt_ac_count=0
3260  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3261  # Check for GNU sed and select it if it is found.
3262  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3263    lt_cv_path_SED=$lt_ac_sed
3264    break
3265  fi
3266  while true; do
3267    cat conftest.in conftest.in >conftest.tmp
3268    mv conftest.tmp conftest.in
3269    cp conftest.in conftest.nl
3270    echo >>conftest.nl
3271    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3272    cmp -s conftest.out conftest.nl || break
3273    # 10000 chars as input seems more than enough
3274    test $lt_ac_count -gt 10 && break
3275    lt_ac_count=`expr $lt_ac_count + 1`
3276    if test $lt_ac_count -gt $lt_ac_max; then
3277      lt_ac_max=$lt_ac_count
3278      lt_cv_path_SED=$lt_ac_sed
3279    fi
3280  done
3281done
3282
3283fi
3284
3285SED=$lt_cv_path_SED
3286echo "$as_me:$LINENO: result: $SED" >&5
3287echo "${ECHO_T}$SED" >&6
3288
3289echo "$as_me:$LINENO: checking for egrep" >&5
3290echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3291if test "${ac_cv_prog_egrep+set}" = set; then
3292  echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3295    then ac_cv_prog_egrep='grep -E'
3296    else ac_cv_prog_egrep='egrep'
3297    fi
3298fi
3299echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3300echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3301 EGREP=$ac_cv_prog_egrep
3302
3303
3304
3305# Check whether --with-gnu-ld or --without-gnu-ld was given.
3306if test "${with_gnu_ld+set}" = set; then
3307  withval="$with_gnu_ld"
3308  test "$withval" = no || with_gnu_ld=yes
3309else
3310  with_gnu_ld=no
3311fi;
3312ac_prog=ld
3313if test "$GCC" = yes; then
3314  # Check if gcc -print-prog-name=ld gives a path.
3315  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3316echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3317  case $host in
3318  *-*-mingw*)
3319    # gcc leaves a trailing carriage return which upsets mingw
3320    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3321  *)
3322    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3323  esac
3324  case $ac_prog in
3325    # Accept absolute paths.
3326    [\\/]* | ?:[\\/]*)
3327      re_direlt='/[^/][^/]*/\.\./'
3328      # Canonicalize the pathname of ld
3329      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3330      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3331	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3332      done
3333      test -z "$LD" && LD="$ac_prog"
3334      ;;
3335  "")
3336    # If it fails, then pretend we aren't using GCC.
3337    ac_prog=ld
3338    ;;
3339  *)
3340    # If it is relative, then search for the first ld in PATH.
3341    with_gnu_ld=unknown
3342    ;;
3343  esac
3344elif test "$with_gnu_ld" = yes; then
3345  echo "$as_me:$LINENO: checking for GNU ld" >&5
3346echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3347else
3348  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3349echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3350fi
3351if test "${lt_cv_path_LD+set}" = set; then
3352  echo $ECHO_N "(cached) $ECHO_C" >&6
3353else
3354  if test -z "$LD"; then
3355  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3356  for ac_dir in $PATH; do
3357    IFS="$lt_save_ifs"
3358    test -z "$ac_dir" && ac_dir=.
3359    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3360      lt_cv_path_LD="$ac_dir/$ac_prog"
3361      # Check to see if the program is GNU ld.  I'd rather use --version,
3362      # but apparently some variants of GNU ld only accept -v.
3363      # Break only if it was the GNU/non-GNU ld that we prefer.
3364      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3365      *GNU* | *'with BFD'*)
3366	test "$with_gnu_ld" != no && break
3367	;;
3368      *)
3369	test "$with_gnu_ld" != yes && break
3370	;;
3371      esac
3372    fi
3373  done
3374  IFS="$lt_save_ifs"
3375else
3376  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3377fi
3378fi
3379
3380LD="$lt_cv_path_LD"
3381if test -n "$LD"; then
3382  echo "$as_me:$LINENO: result: $LD" >&5
3383echo "${ECHO_T}$LD" >&6
3384else
3385  echo "$as_me:$LINENO: result: no" >&5
3386echo "${ECHO_T}no" >&6
3387fi
3388test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3389echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3390   { (exit 1); exit 1; }; }
3391echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3392echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3393if test "${lt_cv_prog_gnu_ld+set}" = set; then
3394  echo $ECHO_N "(cached) $ECHO_C" >&6
3395else
3396  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3397case `$LD -v 2>&1 </dev/null` in
3398*GNU* | *'with BFD'*)
3399  lt_cv_prog_gnu_ld=yes
3400  ;;
3401*)
3402  lt_cv_prog_gnu_ld=no
3403  ;;
3404esac
3405fi
3406echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3407echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3408with_gnu_ld=$lt_cv_prog_gnu_ld
3409
3410
3411echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3412echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3413if test "${lt_cv_ld_reload_flag+set}" = set; then
3414  echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416  lt_cv_ld_reload_flag='-r'
3417fi
3418echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3419echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3420reload_flag=$lt_cv_ld_reload_flag
3421case $reload_flag in
3422"" | " "*) ;;
3423*) reload_flag=" $reload_flag" ;;
3424esac
3425reload_cmds='$LD$reload_flag -o $output$reload_objs'
3426case $host_os in
3427  darwin*)
3428    if test "$GCC" = yes; then
3429      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3430    else
3431      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3432    fi
3433    ;;
3434esac
3435
3436echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3437echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3438if test "${lt_cv_path_NM+set}" = set; then
3439  echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441  if test -n "$NM"; then
3442  # Let the user override the test.
3443  lt_cv_path_NM="$NM"
3444else
3445  lt_nm_to_check="${ac_tool_prefix}nm"
3446  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3447    lt_nm_to_check="$lt_nm_to_check nm"
3448  fi
3449  for lt_tmp_nm in $lt_nm_to_check; do
3450    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3451    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3452      IFS="$lt_save_ifs"
3453      test -z "$ac_dir" && ac_dir=.
3454      tmp_nm="$ac_dir/$lt_tmp_nm"
3455      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3456	# Check to see if the nm accepts a BSD-compat flag.
3457	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3458	#   nm: unknown option "B" ignored
3459	# Tru64's nm complains that /dev/null is an invalid object file
3460	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3461	*/dev/null* | *'Invalid file or object type'*)
3462	  lt_cv_path_NM="$tmp_nm -B"
3463	  break
3464	  ;;
3465	*)
3466	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3467	  */dev/null*)
3468	    lt_cv_path_NM="$tmp_nm -p"
3469	    break
3470	    ;;
3471	  *)
3472	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3473	    continue # so that we can try to find one that supports BSD flags
3474	    ;;
3475	  esac
3476	  ;;
3477	esac
3478      fi
3479    done
3480    IFS="$lt_save_ifs"
3481  done
3482  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3483fi
3484fi
3485echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3486echo "${ECHO_T}$lt_cv_path_NM" >&6
3487NM="$lt_cv_path_NM"
3488
3489echo "$as_me:$LINENO: checking whether ln -s works" >&5
3490echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3491LN_S=$as_ln_s
3492if test "$LN_S" = "ln -s"; then
3493  echo "$as_me:$LINENO: result: yes" >&5
3494echo "${ECHO_T}yes" >&6
3495else
3496  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3497echo "${ECHO_T}no, using $LN_S" >&6
3498fi
3499
3500echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3501echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3502if test "${lt_cv_deplibs_check_method+set}" = set; then
3503  echo $ECHO_N "(cached) $ECHO_C" >&6
3504else
3505  lt_cv_file_magic_cmd='$MAGIC_CMD'
3506lt_cv_file_magic_test_file=
3507lt_cv_deplibs_check_method='unknown'
3508# Need to set the preceding variable on all platforms that support
3509# interlibrary dependencies.
3510# 'none' -- dependencies not supported.
3511# `unknown' -- same as none, but documents that we really don't know.
3512# 'pass_all' -- all dependencies passed with no checks.
3513# 'test_compile' -- check by making test program.
3514# 'file_magic [[regex]]' -- check by looking for files in library path
3515# which responds to the $file_magic_cmd with a given extended regex.
3516# If you have `file' or equivalent on your system and you're not sure
3517# whether `pass_all' will *always* work, you probably want this one.
3518
3519case $host_os in
3520aix4* | aix5*)
3521  lt_cv_deplibs_check_method=pass_all
3522  ;;
3523
3524beos*)
3525  lt_cv_deplibs_check_method=pass_all
3526  ;;
3527
3528bsdi[45]*)
3529  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3530  lt_cv_file_magic_cmd='/usr/bin/file -L'
3531  lt_cv_file_magic_test_file=/shlib/libc.so
3532  ;;
3533
3534cygwin*)
3535  # func_win32_libid is a shell function defined in ltmain.sh
3536  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3537  lt_cv_file_magic_cmd='func_win32_libid'
3538  ;;
3539
3540mingw* | pw32*)
3541  # Base MSYS/MinGW do not provide the 'file' command needed by
3542  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3543  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3544  lt_cv_file_magic_cmd='$OBJDUMP -f'
3545  ;;
3546
3547darwin* | rhapsody*)
3548  lt_cv_deplibs_check_method=pass_all
3549  ;;
3550
3551freebsd* | kfreebsd*-gnu | dragonfly*)
3552  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3553    case $host_cpu in
3554    i*86 )
3555      # Not sure whether the presence of OpenBSD here was a mistake.
3556      # Let's accept both of them until this is cleared up.
3557      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3558      lt_cv_file_magic_cmd=/usr/bin/file
3559      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3560      ;;
3561    esac
3562  else
3563    lt_cv_deplibs_check_method=pass_all
3564  fi
3565  ;;
3566
3567gnu*)
3568  lt_cv_deplibs_check_method=pass_all
3569  ;;
3570
3571hpux10.20* | hpux11*)
3572  lt_cv_file_magic_cmd=/usr/bin/file
3573  case $host_cpu in
3574  ia64*)
3575    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3576    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3577    ;;
3578  hppa*64*)
3579    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]'
3580    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3581    ;;
3582  *)
3583    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3584    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3585    ;;
3586  esac
3587  ;;
3588
3589interix3*)
3590  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3591  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3592  ;;
3593
3594irix5* | irix6* | nonstopux*)
3595  case $LD in
3596  *-32|*"-32 ") libmagic=32-bit;;
3597  *-n32|*"-n32 ") libmagic=N32;;
3598  *-64|*"-64 ") libmagic=64-bit;;
3599  *) libmagic=never-match;;
3600  esac
3601  lt_cv_deplibs_check_method=pass_all
3602  ;;
3603
3604# This must be Linux ELF.
3605linux*)
3606  lt_cv_deplibs_check_method=pass_all
3607  ;;
3608
3609netbsd*)
3610  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3611    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3612  else
3613    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3614  fi
3615  ;;
3616
3617newos6*)
3618  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3619  lt_cv_file_magic_cmd=/usr/bin/file
3620  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3621  ;;
3622
3623nto-qnx*)
3624  lt_cv_deplibs_check_method=unknown
3625  ;;
3626
3627openbsd*)
3628  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3629    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3630  else
3631    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3632  fi
3633  ;;
3634
3635osf3* | osf4* | osf5*)
3636  lt_cv_deplibs_check_method=pass_all
3637  ;;
3638
3639solaris*)
3640  lt_cv_deplibs_check_method=pass_all
3641  ;;
3642
3643sysv4 | sysv4.3*)
3644  case $host_vendor in
3645  motorola)
3646    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]'
3647    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3648    ;;
3649  ncr)
3650    lt_cv_deplibs_check_method=pass_all
3651    ;;
3652  sequent)
3653    lt_cv_file_magic_cmd='/bin/file'
3654    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3655    ;;
3656  sni)
3657    lt_cv_file_magic_cmd='/bin/file'
3658    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3659    lt_cv_file_magic_test_file=/lib/libc.so
3660    ;;
3661  siemens)
3662    lt_cv_deplibs_check_method=pass_all
3663    ;;
3664  pc)
3665    lt_cv_deplibs_check_method=pass_all
3666    ;;
3667  esac
3668  ;;
3669
3670sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3671  lt_cv_deplibs_check_method=pass_all
3672  ;;
3673esac
3674
3675fi
3676echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3677echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3678file_magic_cmd=$lt_cv_file_magic_cmd
3679deplibs_check_method=$lt_cv_deplibs_check_method
3680test -z "$deplibs_check_method" && deplibs_check_method=unknown
3681
3682
3683
3684
3685# If no C compiler was specified, use CC.
3686LTCC=${LTCC-"$CC"}
3687
3688# If no C compiler flags were specified, use CFLAGS.
3689LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3690
3691# Allow CC to be a program name with arguments.
3692compiler=$CC
3693
3694
3695# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3696if test "${enable_libtool_lock+set}" = set; then
3697  enableval="$enable_libtool_lock"
3698
3699fi;
3700test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3701
3702# Some flags need to be propagated to the compiler or linker for good
3703# libtool support.
3704case $host in
3705ia64-*-hpux*)
3706  # Find out which ABI we are using.
3707  echo 'int i;' > conftest.$ac_ext
3708  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3709  (eval $ac_compile) 2>&5
3710  ac_status=$?
3711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712  (exit $ac_status); }; then
3713    case `/usr/bin/file conftest.$ac_objext` in
3714    *ELF-32*)
3715      HPUX_IA64_MODE="32"
3716      ;;
3717    *ELF-64*)
3718      HPUX_IA64_MODE="64"
3719      ;;
3720    esac
3721  fi
3722  rm -rf conftest*
3723  ;;
3724*-*-irix6*)
3725  # Find out which ABI we are using.
3726  echo '#line 3726 "configure"' > conftest.$ac_ext
3727  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3728  (eval $ac_compile) 2>&5
3729  ac_status=$?
3730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731  (exit $ac_status); }; then
3732   if test "$lt_cv_prog_gnu_ld" = yes; then
3733    case `/usr/bin/file conftest.$ac_objext` in
3734    *32-bit*)
3735      LD="${LD-ld} -melf32bsmip"
3736      ;;
3737    *N32*)
3738      LD="${LD-ld} -melf32bmipn32"
3739      ;;
3740    *64-bit*)
3741      LD="${LD-ld} -melf64bmip"
3742      ;;
3743    esac
3744   else
3745    case `/usr/bin/file conftest.$ac_objext` in
3746    *32-bit*)
3747      LD="${LD-ld} -32"
3748      ;;
3749    *N32*)
3750      LD="${LD-ld} -n32"
3751      ;;
3752    *64-bit*)
3753      LD="${LD-ld} -64"
3754      ;;
3755    esac
3756   fi
3757  fi
3758  rm -rf conftest*
3759  ;;
3760
3761x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3762  # Find out which ABI we are using.
3763  echo 'int i;' > conftest.$ac_ext
3764  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3765  (eval $ac_compile) 2>&5
3766  ac_status=$?
3767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768  (exit $ac_status); }; then
3769    case `/usr/bin/file conftest.o` in
3770    *32-bit*)
3771      case $host in
3772        x86_64-*linux*)
3773          LD="${LD-ld} -m elf_i386"
3774          ;;
3775        ppc64-*linux*|powerpc64-*linux*)
3776          LD="${LD-ld} -m elf32ppclinux"
3777          ;;
3778        s390x-*linux*)
3779          LD="${LD-ld} -m elf_s390"
3780          ;;
3781        sparc64-*linux*)
3782          LD="${LD-ld} -m elf32_sparc"
3783          ;;
3784      esac
3785      ;;
3786    *64-bit*)
3787      case $host in
3788        x86_64-*linux*)
3789          LD="${LD-ld} -m elf_x86_64"
3790          ;;
3791        ppc*-*linux*|powerpc*-*linux*)
3792          LD="${LD-ld} -m elf64ppc"
3793          ;;
3794        s390*-*linux*)
3795          LD="${LD-ld} -m elf64_s390"
3796          ;;
3797        sparc*-*linux*)
3798          LD="${LD-ld} -m elf64_sparc"
3799          ;;
3800      esac
3801      ;;
3802    esac
3803  fi
3804  rm -rf conftest*
3805  ;;
3806
3807*-*-sco3.2v5*)
3808  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3809  SAVE_CFLAGS="$CFLAGS"
3810  CFLAGS="$CFLAGS -belf"
3811  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3812echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3813if test "${lt_cv_cc_needs_belf+set}" = set; then
3814  echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816  ac_ext=c
3817ac_cpp='$CPP $CPPFLAGS'
3818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821
3822     cat >conftest.$ac_ext <<_ACEOF
3823/* confdefs.h.  */
3824_ACEOF
3825cat confdefs.h >>conftest.$ac_ext
3826cat >>conftest.$ac_ext <<_ACEOF
3827/* end confdefs.h.  */
3828
3829int
3830main ()
3831{
3832
3833  ;
3834  return 0;
3835}
3836_ACEOF
3837rm -f conftest.$ac_objext conftest$ac_exeext
3838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3839  (eval $ac_link) 2>conftest.er1
3840  ac_status=$?
3841  grep -v '^ *+' conftest.er1 >conftest.err
3842  rm -f conftest.er1
3843  cat conftest.err >&5
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); } &&
3846	 { ac_try='test -z "$ac_c_werror_flag"
3847			 || test ! -s conftest.err'
3848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849  (eval $ac_try) 2>&5
3850  ac_status=$?
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); }; } &&
3853	 { ac_try='test -s conftest$ac_exeext'
3854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855  (eval $ac_try) 2>&5
3856  ac_status=$?
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); }; }; then
3859  lt_cv_cc_needs_belf=yes
3860else
3861  echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864lt_cv_cc_needs_belf=no
3865fi
3866rm -f conftest.err conftest.$ac_objext \
3867      conftest$ac_exeext conftest.$ac_ext
3868     ac_ext=c
3869ac_cpp='$CPP $CPPFLAGS'
3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872ac_compiler_gnu=$ac_cv_c_compiler_gnu
3873
3874fi
3875echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3876echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3877  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3878    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3879    CFLAGS="$SAVE_CFLAGS"
3880  fi
3881  ;;
3882sparc*-*solaris*)
3883  # Find out which ABI we are using.
3884  echo 'int i;' > conftest.$ac_ext
3885  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886  (eval $ac_compile) 2>&5
3887  ac_status=$?
3888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889  (exit $ac_status); }; then
3890    case `/usr/bin/file conftest.o` in
3891    *64-bit*)
3892      case $lt_cv_prog_gnu_ld in
3893      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3894      *)    LD="${LD-ld} -64" ;;
3895      esac
3896      ;;
3897    esac
3898  fi
3899  rm -rf conftest*
3900  ;;
3901
3902
3903esac
3904
3905need_locks="$enable_libtool_lock"
3906
3907
3908ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3914echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3915# On Suns, sometimes $CPP names a directory.
3916if test -n "$CPP" && test -d "$CPP"; then
3917  CPP=
3918fi
3919if test -z "$CPP"; then
3920  if test "${ac_cv_prog_CPP+set}" = set; then
3921  echo $ECHO_N "(cached) $ECHO_C" >&6
3922else
3923      # Double quotes because CPP needs to be expanded
3924    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3925    do
3926      ac_preproc_ok=false
3927for ac_c_preproc_warn_flag in '' yes
3928do
3929  # Use a header file that comes with gcc, so configuring glibc
3930  # with a fresh cross-compiler works.
3931  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3932  # <limits.h> exists even on freestanding compilers.
3933  # On the NeXT, cc -E runs the code through the compiler's parser,
3934  # not just through cpp. "Syntax error" is here to catch this case.
3935  cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h.  */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h.  */
3941#ifdef __STDC__
3942# include <limits.h>
3943#else
3944# include <assert.h>
3945#endif
3946		     Syntax error
3947_ACEOF
3948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3949  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3950  ac_status=$?
3951  grep -v '^ *+' conftest.er1 >conftest.err
3952  rm -f conftest.er1
3953  cat conftest.err >&5
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); } >/dev/null; then
3956  if test -s conftest.err; then
3957    ac_cpp_err=$ac_c_preproc_warn_flag
3958    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3959  else
3960    ac_cpp_err=
3961  fi
3962else
3963  ac_cpp_err=yes
3964fi
3965if test -z "$ac_cpp_err"; then
3966  :
3967else
3968  echo "$as_me: failed program was:" >&5
3969sed 's/^/| /' conftest.$ac_ext >&5
3970
3971  # Broken: fails on valid input.
3972continue
3973fi
3974rm -f conftest.err conftest.$ac_ext
3975
3976  # OK, works on sane cases.  Now check whether non-existent headers
3977  # can be detected and how.
3978  cat >conftest.$ac_ext <<_ACEOF
3979/* confdefs.h.  */
3980_ACEOF
3981cat confdefs.h >>conftest.$ac_ext
3982cat >>conftest.$ac_ext <<_ACEOF
3983/* end confdefs.h.  */
3984#include <ac_nonexistent.h>
3985_ACEOF
3986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3987  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3988  ac_status=$?
3989  grep -v '^ *+' conftest.er1 >conftest.err
3990  rm -f conftest.er1
3991  cat conftest.err >&5
3992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993  (exit $ac_status); } >/dev/null; then
3994  if test -s conftest.err; then
3995    ac_cpp_err=$ac_c_preproc_warn_flag
3996    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3997  else
3998    ac_cpp_err=
3999  fi
4000else
4001  ac_cpp_err=yes
4002fi
4003if test -z "$ac_cpp_err"; then
4004  # Broken: success on invalid input.
4005continue
4006else
4007  echo "$as_me: failed program was:" >&5
4008sed 's/^/| /' conftest.$ac_ext >&5
4009
4010  # Passes both tests.
4011ac_preproc_ok=:
4012break
4013fi
4014rm -f conftest.err conftest.$ac_ext
4015
4016done
4017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4018rm -f conftest.err conftest.$ac_ext
4019if $ac_preproc_ok; then
4020  break
4021fi
4022
4023    done
4024    ac_cv_prog_CPP=$CPP
4025
4026fi
4027  CPP=$ac_cv_prog_CPP
4028else
4029  ac_cv_prog_CPP=$CPP
4030fi
4031echo "$as_me:$LINENO: result: $CPP" >&5
4032echo "${ECHO_T}$CPP" >&6
4033ac_preproc_ok=false
4034for ac_c_preproc_warn_flag in '' yes
4035do
4036  # Use a header file that comes with gcc, so configuring glibc
4037  # with a fresh cross-compiler works.
4038  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4039  # <limits.h> exists even on freestanding compilers.
4040  # On the NeXT, cc -E runs the code through the compiler's parser,
4041  # not just through cpp. "Syntax error" is here to catch this case.
4042  cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h.  */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h.  */
4048#ifdef __STDC__
4049# include <limits.h>
4050#else
4051# include <assert.h>
4052#endif
4053		     Syntax error
4054_ACEOF
4055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4056  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4057  ac_status=$?
4058  grep -v '^ *+' conftest.er1 >conftest.err
4059  rm -f conftest.er1
4060  cat conftest.err >&5
4061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062  (exit $ac_status); } >/dev/null; then
4063  if test -s conftest.err; then
4064    ac_cpp_err=$ac_c_preproc_warn_flag
4065    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4066  else
4067    ac_cpp_err=
4068  fi
4069else
4070  ac_cpp_err=yes
4071fi
4072if test -z "$ac_cpp_err"; then
4073  :
4074else
4075  echo "$as_me: failed program was:" >&5
4076sed 's/^/| /' conftest.$ac_ext >&5
4077
4078  # Broken: fails on valid input.
4079continue
4080fi
4081rm -f conftest.err conftest.$ac_ext
4082
4083  # OK, works on sane cases.  Now check whether non-existent headers
4084  # can be detected and how.
4085  cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h.  */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h.  */
4091#include <ac_nonexistent.h>
4092_ACEOF
4093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4094  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4095  ac_status=$?
4096  grep -v '^ *+' conftest.er1 >conftest.err
4097  rm -f conftest.er1
4098  cat conftest.err >&5
4099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100  (exit $ac_status); } >/dev/null; then
4101  if test -s conftest.err; then
4102    ac_cpp_err=$ac_c_preproc_warn_flag
4103    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4104  else
4105    ac_cpp_err=
4106  fi
4107else
4108  ac_cpp_err=yes
4109fi
4110if test -z "$ac_cpp_err"; then
4111  # Broken: success on invalid input.
4112continue
4113else
4114  echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117  # Passes both tests.
4118ac_preproc_ok=:
4119break
4120fi
4121rm -f conftest.err conftest.$ac_ext
4122
4123done
4124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4125rm -f conftest.err conftest.$ac_ext
4126if $ac_preproc_ok; then
4127  :
4128else
4129  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4130See \`config.log' for more details." >&5
4131echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4132See \`config.log' for more details." >&2;}
4133   { (exit 1); exit 1; }; }
4134fi
4135
4136ac_ext=c
4137ac_cpp='$CPP $CPPFLAGS'
4138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
4142
4143echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4144echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4145if test "${ac_cv_header_stdc+set}" = set; then
4146  echo $ECHO_N "(cached) $ECHO_C" >&6
4147else
4148  cat >conftest.$ac_ext <<_ACEOF
4149/* confdefs.h.  */
4150_ACEOF
4151cat confdefs.h >>conftest.$ac_ext
4152cat >>conftest.$ac_ext <<_ACEOF
4153/* end confdefs.h.  */
4154#include <stdlib.h>
4155#include <stdarg.h>
4156#include <string.h>
4157#include <float.h>
4158
4159int
4160main ()
4161{
4162
4163  ;
4164  return 0;
4165}
4166_ACEOF
4167rm -f conftest.$ac_objext
4168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169  (eval $ac_compile) 2>conftest.er1
4170  ac_status=$?
4171  grep -v '^ *+' conftest.er1 >conftest.err
4172  rm -f conftest.er1
4173  cat conftest.err >&5
4174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175  (exit $ac_status); } &&
4176	 { ac_try='test -z "$ac_c_werror_flag"
4177			 || test ! -s conftest.err'
4178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179  (eval $ac_try) 2>&5
4180  ac_status=$?
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); }; } &&
4183	 { ac_try='test -s conftest.$ac_objext'
4184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185  (eval $ac_try) 2>&5
4186  ac_status=$?
4187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188  (exit $ac_status); }; }; then
4189  ac_cv_header_stdc=yes
4190else
4191  echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
4194ac_cv_header_stdc=no
4195fi
4196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197
4198if test $ac_cv_header_stdc = yes; then
4199  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4200  cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h.  */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h.  */
4206#include <string.h>
4207
4208_ACEOF
4209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210  $EGREP "memchr" >/dev/null 2>&1; then
4211  :
4212else
4213  ac_cv_header_stdc=no
4214fi
4215rm -f conftest*
4216
4217fi
4218
4219if test $ac_cv_header_stdc = yes; then
4220  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4221  cat >conftest.$ac_ext <<_ACEOF
4222/* confdefs.h.  */
4223_ACEOF
4224cat confdefs.h >>conftest.$ac_ext
4225cat >>conftest.$ac_ext <<_ACEOF
4226/* end confdefs.h.  */
4227#include <stdlib.h>
4228
4229_ACEOF
4230if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4231  $EGREP "free" >/dev/null 2>&1; then
4232  :
4233else
4234  ac_cv_header_stdc=no
4235fi
4236rm -f conftest*
4237
4238fi
4239
4240if test $ac_cv_header_stdc = yes; then
4241  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4242  if test "$cross_compiling" = yes; then
4243  :
4244else
4245  cat >conftest.$ac_ext <<_ACEOF
4246/* confdefs.h.  */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4250/* end confdefs.h.  */
4251#include <ctype.h>
4252#if ((' ' & 0x0FF) == 0x020)
4253# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4254# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4255#else
4256# define ISLOWER(c) \
4257		   (('a' <= (c) && (c) <= 'i') \
4258		     || ('j' <= (c) && (c) <= 'r') \
4259		     || ('s' <= (c) && (c) <= 'z'))
4260# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4261#endif
4262
4263#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4264int
4265main ()
4266{
4267  int i;
4268  for (i = 0; i < 256; i++)
4269    if (XOR (islower (i), ISLOWER (i))
4270	|| toupper (i) != TOUPPER (i))
4271      exit(2);
4272  exit (0);
4273}
4274_ACEOF
4275rm -f conftest$ac_exeext
4276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4277  (eval $ac_link) 2>&5
4278  ac_status=$?
4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282  (eval $ac_try) 2>&5
4283  ac_status=$?
4284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285  (exit $ac_status); }; }; then
4286  :
4287else
4288  echo "$as_me: program exited with status $ac_status" >&5
4289echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292( exit $ac_status )
4293ac_cv_header_stdc=no
4294fi
4295rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4296fi
4297fi
4298fi
4299echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4300echo "${ECHO_T}$ac_cv_header_stdc" >&6
4301if test $ac_cv_header_stdc = yes; then
4302
4303cat >>confdefs.h <<\_ACEOF
4304#define STDC_HEADERS 1
4305_ACEOF
4306
4307fi
4308
4309# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4320		  inttypes.h stdint.h unistd.h
4321do
4322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4323echo "$as_me:$LINENO: checking for $ac_header" >&5
4324echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4325if eval "test \"\${$as_ac_Header+set}\" = set"; then
4326  echo $ECHO_N "(cached) $ECHO_C" >&6
4327else
4328  cat >conftest.$ac_ext <<_ACEOF
4329/* confdefs.h.  */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
4333/* end confdefs.h.  */
4334$ac_includes_default
4335
4336#include <$ac_header>
4337_ACEOF
4338rm -f conftest.$ac_objext
4339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340  (eval $ac_compile) 2>conftest.er1
4341  ac_status=$?
4342  grep -v '^ *+' conftest.er1 >conftest.err
4343  rm -f conftest.er1
4344  cat conftest.err >&5
4345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346  (exit $ac_status); } &&
4347	 { ac_try='test -z "$ac_c_werror_flag"
4348			 || test ! -s conftest.err'
4349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350  (eval $ac_try) 2>&5
4351  ac_status=$?
4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353  (exit $ac_status); }; } &&
4354	 { ac_try='test -s conftest.$ac_objext'
4355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356  (eval $ac_try) 2>&5
4357  ac_status=$?
4358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359  (exit $ac_status); }; }; then
4360  eval "$as_ac_Header=yes"
4361else
4362  echo "$as_me: failed program was:" >&5
4363sed 's/^/| /' conftest.$ac_ext >&5
4364
4365eval "$as_ac_Header=no"
4366fi
4367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4368fi
4369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4371if test `eval echo '${'$as_ac_Header'}'` = yes; then
4372  cat >>confdefs.h <<_ACEOF
4373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4374_ACEOF
4375
4376fi
4377
4378done
4379
4380
4381
4382for ac_header in dlfcn.h
4383do
4384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4385if eval "test \"\${$as_ac_Header+set}\" = set"; then
4386  echo "$as_me:$LINENO: checking for $ac_header" >&5
4387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4388if eval "test \"\${$as_ac_Header+set}\" = set"; then
4389  echo $ECHO_N "(cached) $ECHO_C" >&6
4390fi
4391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4393else
4394  # Is the header compilable?
4395echo "$as_me:$LINENO: checking $ac_header usability" >&5
4396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4397cat >conftest.$ac_ext <<_ACEOF
4398/* confdefs.h.  */
4399_ACEOF
4400cat confdefs.h >>conftest.$ac_ext
4401cat >>conftest.$ac_ext <<_ACEOF
4402/* end confdefs.h.  */
4403$ac_includes_default
4404#include <$ac_header>
4405_ACEOF
4406rm -f conftest.$ac_objext
4407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408  (eval $ac_compile) 2>conftest.er1
4409  ac_status=$?
4410  grep -v '^ *+' conftest.er1 >conftest.err
4411  rm -f conftest.er1
4412  cat conftest.err >&5
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); } &&
4415	 { ac_try='test -z "$ac_c_werror_flag"
4416			 || test ! -s conftest.err'
4417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418  (eval $ac_try) 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; } &&
4422	 { ac_try='test -s conftest.$ac_objext'
4423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424  (eval $ac_try) 2>&5
4425  ac_status=$?
4426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427  (exit $ac_status); }; }; then
4428  ac_header_compiler=yes
4429else
4430  echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433ac_header_compiler=no
4434fi
4435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4437echo "${ECHO_T}$ac_header_compiler" >&6
4438
4439# Is the header present?
4440echo "$as_me:$LINENO: checking $ac_header presence" >&5
4441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4442cat >conftest.$ac_ext <<_ACEOF
4443/* confdefs.h.  */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4447/* end confdefs.h.  */
4448#include <$ac_header>
4449_ACEOF
4450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4451  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4452  ac_status=$?
4453  grep -v '^ *+' conftest.er1 >conftest.err
4454  rm -f conftest.er1
4455  cat conftest.err >&5
4456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457  (exit $ac_status); } >/dev/null; then
4458  if test -s conftest.err; then
4459    ac_cpp_err=$ac_c_preproc_warn_flag
4460    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4461  else
4462    ac_cpp_err=
4463  fi
4464else
4465  ac_cpp_err=yes
4466fi
4467if test -z "$ac_cpp_err"; then
4468  ac_header_preproc=yes
4469else
4470  echo "$as_me: failed program was:" >&5
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
4473  ac_header_preproc=no
4474fi
4475rm -f conftest.err conftest.$ac_ext
4476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4477echo "${ECHO_T}$ac_header_preproc" >&6
4478
4479# So?  What about this header?
4480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4481  yes:no: )
4482    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4484    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4486    ac_header_preproc=yes
4487    ;;
4488  no:yes:* )
4489    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4491    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4492echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4493    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4495    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4496echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4497    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4499    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4501    (
4502      cat <<\_ASBOX
4503## ---------------------------------------------------------------------- ##
4504## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4505## ---------------------------------------------------------------------- ##
4506_ASBOX
4507    ) |
4508      sed "s/^/$as_me: WARNING:     /" >&2
4509    ;;
4510esac
4511echo "$as_me:$LINENO: checking for $ac_header" >&5
4512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4513if eval "test \"\${$as_ac_Header+set}\" = set"; then
4514  echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516  eval "$as_ac_Header=\$ac_header_preproc"
4517fi
4518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4520
4521fi
4522if test `eval echo '${'$as_ac_Header'}'` = yes; then
4523  cat >>confdefs.h <<_ACEOF
4524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4525_ACEOF
4526
4527fi
4528
4529done
4530
4531ac_ext=cc
4532ac_cpp='$CXXCPP $CPPFLAGS'
4533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4536if test -n "$ac_tool_prefix"; then
4537  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4538  do
4539    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4540set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4541echo "$as_me:$LINENO: checking for $ac_word" >&5
4542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4543if test "${ac_cv_prog_CXX+set}" = set; then
4544  echo $ECHO_N "(cached) $ECHO_C" >&6
4545else
4546  if test -n "$CXX"; then
4547  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4548else
4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550for as_dir in $PATH
4551do
4552  IFS=$as_save_IFS
4553  test -z "$as_dir" && as_dir=.
4554  for ac_exec_ext in '' $ac_executable_extensions; do
4555  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4557    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558    break 2
4559  fi
4560done
4561done
4562
4563fi
4564fi
4565CXX=$ac_cv_prog_CXX
4566if test -n "$CXX"; then
4567  echo "$as_me:$LINENO: result: $CXX" >&5
4568echo "${ECHO_T}$CXX" >&6
4569else
4570  echo "$as_me:$LINENO: result: no" >&5
4571echo "${ECHO_T}no" >&6
4572fi
4573
4574    test -n "$CXX" && break
4575  done
4576fi
4577if test -z "$CXX"; then
4578  ac_ct_CXX=$CXX
4579  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4580do
4581  # Extract the first word of "$ac_prog", so it can be a program name with args.
4582set dummy $ac_prog; ac_word=$2
4583echo "$as_me:$LINENO: checking for $ac_word" >&5
4584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4585if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4586  echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588  if test -n "$ac_ct_CXX"; then
4589  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4590else
4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594  IFS=$as_save_IFS
4595  test -z "$as_dir" && as_dir=.
4596  for ac_exec_ext in '' $ac_executable_extensions; do
4597  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598    ac_cv_prog_ac_ct_CXX="$ac_prog"
4599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600    break 2
4601  fi
4602done
4603done
4604
4605fi
4606fi
4607ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4608if test -n "$ac_ct_CXX"; then
4609  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4610echo "${ECHO_T}$ac_ct_CXX" >&6
4611else
4612  echo "$as_me:$LINENO: result: no" >&5
4613echo "${ECHO_T}no" >&6
4614fi
4615
4616  test -n "$ac_ct_CXX" && break
4617done
4618test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4619
4620  CXX=$ac_ct_CXX
4621fi
4622
4623
4624# Provide some information about the compiler.
4625echo "$as_me:$LINENO:" \
4626     "checking for C++ compiler version" >&5
4627ac_compiler=`set X $ac_compile; echo $2`
4628{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4629  (eval $ac_compiler --version </dev/null >&5) 2>&5
4630  ac_status=$?
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); }
4633{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4634  (eval $ac_compiler -v </dev/null >&5) 2>&5
4635  ac_status=$?
4636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637  (exit $ac_status); }
4638{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4639  (eval $ac_compiler -V </dev/null >&5) 2>&5
4640  ac_status=$?
4641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); }
4643
4644echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4645echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4646if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4647  echo $ECHO_N "(cached) $ECHO_C" >&6
4648else
4649  cat >conftest.$ac_ext <<_ACEOF
4650/* confdefs.h.  */
4651_ACEOF
4652cat confdefs.h >>conftest.$ac_ext
4653cat >>conftest.$ac_ext <<_ACEOF
4654/* end confdefs.h.  */
4655
4656int
4657main ()
4658{
4659#ifndef __GNUC__
4660       choke me
4661#endif
4662
4663  ;
4664  return 0;
4665}
4666_ACEOF
4667rm -f conftest.$ac_objext
4668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669  (eval $ac_compile) 2>conftest.er1
4670  ac_status=$?
4671  grep -v '^ *+' conftest.er1 >conftest.err
4672  rm -f conftest.er1
4673  cat conftest.err >&5
4674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675  (exit $ac_status); } &&
4676	 { ac_try='test -z "$ac_cxx_werror_flag"
4677			 || test ! -s conftest.err'
4678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679  (eval $ac_try) 2>&5
4680  ac_status=$?
4681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682  (exit $ac_status); }; } &&
4683	 { ac_try='test -s conftest.$ac_objext'
4684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685  (eval $ac_try) 2>&5
4686  ac_status=$?
4687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688  (exit $ac_status); }; }; then
4689  ac_compiler_gnu=yes
4690else
4691  echo "$as_me: failed program was:" >&5
4692sed 's/^/| /' conftest.$ac_ext >&5
4693
4694ac_compiler_gnu=no
4695fi
4696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4698
4699fi
4700echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4701echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4702GXX=`test $ac_compiler_gnu = yes && echo yes`
4703ac_test_CXXFLAGS=${CXXFLAGS+set}
4704ac_save_CXXFLAGS=$CXXFLAGS
4705CXXFLAGS="-g"
4706echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4707echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4708if test "${ac_cv_prog_cxx_g+set}" = set; then
4709  echo $ECHO_N "(cached) $ECHO_C" >&6
4710else
4711  cat >conftest.$ac_ext <<_ACEOF
4712/* confdefs.h.  */
4713_ACEOF
4714cat confdefs.h >>conftest.$ac_ext
4715cat >>conftest.$ac_ext <<_ACEOF
4716/* end confdefs.h.  */
4717
4718int
4719main ()
4720{
4721
4722  ;
4723  return 0;
4724}
4725_ACEOF
4726rm -f conftest.$ac_objext
4727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4728  (eval $ac_compile) 2>conftest.er1
4729  ac_status=$?
4730  grep -v '^ *+' conftest.er1 >conftest.err
4731  rm -f conftest.er1
4732  cat conftest.err >&5
4733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734  (exit $ac_status); } &&
4735	 { ac_try='test -z "$ac_cxx_werror_flag"
4736			 || test ! -s conftest.err'
4737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738  (eval $ac_try) 2>&5
4739  ac_status=$?
4740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741  (exit $ac_status); }; } &&
4742	 { ac_try='test -s conftest.$ac_objext'
4743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744  (eval $ac_try) 2>&5
4745  ac_status=$?
4746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747  (exit $ac_status); }; }; then
4748  ac_cv_prog_cxx_g=yes
4749else
4750  echo "$as_me: failed program was:" >&5
4751sed 's/^/| /' conftest.$ac_ext >&5
4752
4753ac_cv_prog_cxx_g=no
4754fi
4755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4756fi
4757echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4758echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4759if test "$ac_test_CXXFLAGS" = set; then
4760  CXXFLAGS=$ac_save_CXXFLAGS
4761elif test $ac_cv_prog_cxx_g = yes; then
4762  if test "$GXX" = yes; then
4763    CXXFLAGS="-g -O2"
4764  else
4765    CXXFLAGS="-g"
4766  fi
4767else
4768  if test "$GXX" = yes; then
4769    CXXFLAGS="-O2"
4770  else
4771    CXXFLAGS=
4772  fi
4773fi
4774for ac_declaration in \
4775   '' \
4776   'extern "C" void std::exit (int) throw (); using std::exit;' \
4777   'extern "C" void std::exit (int); using std::exit;' \
4778   'extern "C" void exit (int) throw ();' \
4779   'extern "C" void exit (int);' \
4780   'void exit (int);'
4781do
4782  cat >conftest.$ac_ext <<_ACEOF
4783/* confdefs.h.  */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h.  */
4788$ac_declaration
4789#include <stdlib.h>
4790int
4791main ()
4792{
4793exit (42);
4794  ;
4795  return 0;
4796}
4797_ACEOF
4798rm -f conftest.$ac_objext
4799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4800  (eval $ac_compile) 2>conftest.er1
4801  ac_status=$?
4802  grep -v '^ *+' conftest.er1 >conftest.err
4803  rm -f conftest.er1
4804  cat conftest.err >&5
4805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806  (exit $ac_status); } &&
4807	 { ac_try='test -z "$ac_cxx_werror_flag"
4808			 || test ! -s conftest.err'
4809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810  (eval $ac_try) 2>&5
4811  ac_status=$?
4812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813  (exit $ac_status); }; } &&
4814	 { ac_try='test -s conftest.$ac_objext'
4815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816  (eval $ac_try) 2>&5
4817  ac_status=$?
4818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819  (exit $ac_status); }; }; then
4820  :
4821else
4822  echo "$as_me: failed program was:" >&5
4823sed 's/^/| /' conftest.$ac_ext >&5
4824
4825continue
4826fi
4827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4828  cat >conftest.$ac_ext <<_ACEOF
4829/* confdefs.h.  */
4830_ACEOF
4831cat confdefs.h >>conftest.$ac_ext
4832cat >>conftest.$ac_ext <<_ACEOF
4833/* end confdefs.h.  */
4834$ac_declaration
4835int
4836main ()
4837{
4838exit (42);
4839  ;
4840  return 0;
4841}
4842_ACEOF
4843rm -f conftest.$ac_objext
4844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4845  (eval $ac_compile) 2>conftest.er1
4846  ac_status=$?
4847  grep -v '^ *+' conftest.er1 >conftest.err
4848  rm -f conftest.er1
4849  cat conftest.err >&5
4850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851  (exit $ac_status); } &&
4852	 { ac_try='test -z "$ac_cxx_werror_flag"
4853			 || test ! -s conftest.err'
4854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855  (eval $ac_try) 2>&5
4856  ac_status=$?
4857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858  (exit $ac_status); }; } &&
4859	 { ac_try='test -s conftest.$ac_objext'
4860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861  (eval $ac_try) 2>&5
4862  ac_status=$?
4863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864  (exit $ac_status); }; }; then
4865  break
4866else
4867  echo "$as_me: failed program was:" >&5
4868sed 's/^/| /' conftest.$ac_ext >&5
4869
4870fi
4871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4872done
4873rm -f conftest*
4874if test -n "$ac_declaration"; then
4875  echo '#ifdef __cplusplus' >>confdefs.h
4876  echo $ac_declaration      >>confdefs.h
4877  echo '#endif'             >>confdefs.h
4878fi
4879
4880ac_ext=cc
4881ac_cpp='$CXXCPP $CPPFLAGS'
4882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4885
4886depcc="$CXX"  am_compiler_list=
4887
4888echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4889echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4890if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4891  echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4894  # We make a subdir and do the tests there.  Otherwise we can end up
4895  # making bogus files that we don't know about and never remove.  For
4896  # instance it was reported that on HP-UX the gcc test will end up
4897  # making a dummy file named `D' -- because `-MD' means `put the output
4898  # in D'.
4899  mkdir conftest.dir
4900  # Copy depcomp to subdir because otherwise we won't find it if we're
4901  # using a relative directory.
4902  cp "$am_depcomp" conftest.dir
4903  cd conftest.dir
4904  # We will build objects and dependencies in a subdirectory because
4905  # it helps to detect inapplicable dependency modes.  For instance
4906  # both Tru64's cc and ICC support -MD to output dependencies as a
4907  # side effect of compilation, but ICC will put the dependencies in
4908  # the current directory while Tru64 will put them in the object
4909  # directory.
4910  mkdir sub
4911
4912  am_cv_CXX_dependencies_compiler_type=none
4913  if test "$am_compiler_list" = ""; then
4914     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4915  fi
4916  for depmode in $am_compiler_list; do
4917    # Setup a source with many dependencies, because some compilers
4918    # like to wrap large dependency lists on column 80 (with \), and
4919    # we should not choose a depcomp mode which is confused by this.
4920    #
4921    # We need to recreate these files for each test, as the compiler may
4922    # overwrite some of them when testing with obscure command lines.
4923    # This happens at least with the AIX C compiler.
4924    : > sub/conftest.c
4925    for i in 1 2 3 4 5 6; do
4926      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4927      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4928      # Solaris 8's {/usr,}/bin/sh.
4929      touch sub/conftst$i.h
4930    done
4931    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4932
4933    case $depmode in
4934    nosideeffect)
4935      # after this tag, mechanisms are not by side-effect, so they'll
4936      # only be used when explicitly requested
4937      if test "x$enable_dependency_tracking" = xyes; then
4938	continue
4939      else
4940	break
4941      fi
4942      ;;
4943    none) break ;;
4944    esac
4945    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4946    # mode.  It turns out that the SunPro C++ compiler does not properly
4947    # handle `-M -o', and we need to detect this.
4948    if depmode=$depmode \
4949       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4950       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4951       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4952         >/dev/null 2>conftest.err &&
4953       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4954       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4955       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4956      # icc doesn't choke on unknown options, it will just issue warnings
4957      # or remarks (even with -Werror).  So we grep stderr for any message
4958      # that says an option was ignored or not supported.
4959      # When given -MP, icc 7.0 and 7.1 complain thusly:
4960      #   icc: Command line warning: ignoring option '-M'; no argument required
4961      # The diagnosis changed in icc 8.0:
4962      #   icc: Command line remark: option '-MP' not supported
4963      if (grep 'ignoring option' conftest.err ||
4964          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4965        am_cv_CXX_dependencies_compiler_type=$depmode
4966        break
4967      fi
4968    fi
4969  done
4970
4971  cd ..
4972  rm -rf conftest.dir
4973else
4974  am_cv_CXX_dependencies_compiler_type=none
4975fi
4976
4977fi
4978echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4979echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4980CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4981
4982
4983
4984if
4985  test "x$enable_dependency_tracking" != xno \
4986  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4987  am__fastdepCXX_TRUE=
4988  am__fastdepCXX_FALSE='#'
4989else
4990  am__fastdepCXX_TRUE='#'
4991  am__fastdepCXX_FALSE=
4992fi
4993
4994
4995
4996
4997if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4998    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4999    (test "X$CXX" != "Xg++"))) ; then
5000  ac_ext=cc
5001ac_cpp='$CXXCPP $CPPFLAGS'
5002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5005echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5006echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5007if test -z "$CXXCPP"; then
5008  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5009  echo $ECHO_N "(cached) $ECHO_C" >&6
5010else
5011      # Double quotes because CXXCPP needs to be expanded
5012    for CXXCPP in "$CXX -E" "/lib/cpp"
5013    do
5014      ac_preproc_ok=false
5015for ac_cxx_preproc_warn_flag in '' yes
5016do
5017  # Use a header file that comes with gcc, so configuring glibc
5018  # with a fresh cross-compiler works.
5019  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5020  # <limits.h> exists even on freestanding compilers.
5021  # On the NeXT, cc -E runs the code through the compiler's parser,
5022  # not just through cpp. "Syntax error" is here to catch this case.
5023  cat >conftest.$ac_ext <<_ACEOF
5024/* confdefs.h.  */
5025_ACEOF
5026cat confdefs.h >>conftest.$ac_ext
5027cat >>conftest.$ac_ext <<_ACEOF
5028/* end confdefs.h.  */
5029#ifdef __STDC__
5030# include <limits.h>
5031#else
5032# include <assert.h>
5033#endif
5034		     Syntax error
5035_ACEOF
5036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5037  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5038  ac_status=$?
5039  grep -v '^ *+' conftest.er1 >conftest.err
5040  rm -f conftest.er1
5041  cat conftest.err >&5
5042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043  (exit $ac_status); } >/dev/null; then
5044  if test -s conftest.err; then
5045    ac_cpp_err=$ac_cxx_preproc_warn_flag
5046    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5047  else
5048    ac_cpp_err=
5049  fi
5050else
5051  ac_cpp_err=yes
5052fi
5053if test -z "$ac_cpp_err"; then
5054  :
5055else
5056  echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059  # Broken: fails on valid input.
5060continue
5061fi
5062rm -f conftest.err conftest.$ac_ext
5063
5064  # OK, works on sane cases.  Now check whether non-existent headers
5065  # can be detected and how.
5066  cat >conftest.$ac_ext <<_ACEOF
5067/* confdefs.h.  */
5068_ACEOF
5069cat confdefs.h >>conftest.$ac_ext
5070cat >>conftest.$ac_ext <<_ACEOF
5071/* end confdefs.h.  */
5072#include <ac_nonexistent.h>
5073_ACEOF
5074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5075  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5076  ac_status=$?
5077  grep -v '^ *+' conftest.er1 >conftest.err
5078  rm -f conftest.er1
5079  cat conftest.err >&5
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); } >/dev/null; then
5082  if test -s conftest.err; then
5083    ac_cpp_err=$ac_cxx_preproc_warn_flag
5084    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5085  else
5086    ac_cpp_err=
5087  fi
5088else
5089  ac_cpp_err=yes
5090fi
5091if test -z "$ac_cpp_err"; then
5092  # Broken: success on invalid input.
5093continue
5094else
5095  echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098  # Passes both tests.
5099ac_preproc_ok=:
5100break
5101fi
5102rm -f conftest.err conftest.$ac_ext
5103
5104done
5105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5106rm -f conftest.err conftest.$ac_ext
5107if $ac_preproc_ok; then
5108  break
5109fi
5110
5111    done
5112    ac_cv_prog_CXXCPP=$CXXCPP
5113
5114fi
5115  CXXCPP=$ac_cv_prog_CXXCPP
5116else
5117  ac_cv_prog_CXXCPP=$CXXCPP
5118fi
5119echo "$as_me:$LINENO: result: $CXXCPP" >&5
5120echo "${ECHO_T}$CXXCPP" >&6
5121ac_preproc_ok=false
5122for ac_cxx_preproc_warn_flag in '' yes
5123do
5124  # Use a header file that comes with gcc, so configuring glibc
5125  # with a fresh cross-compiler works.
5126  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5127  # <limits.h> exists even on freestanding compilers.
5128  # On the NeXT, cc -E runs the code through the compiler's parser,
5129  # not just through cpp. "Syntax error" is here to catch this case.
5130  cat >conftest.$ac_ext <<_ACEOF
5131/* confdefs.h.  */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h.  */
5136#ifdef __STDC__
5137# include <limits.h>
5138#else
5139# include <assert.h>
5140#endif
5141		     Syntax error
5142_ACEOF
5143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5145  ac_status=$?
5146  grep -v '^ *+' conftest.er1 >conftest.err
5147  rm -f conftest.er1
5148  cat conftest.err >&5
5149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150  (exit $ac_status); } >/dev/null; then
5151  if test -s conftest.err; then
5152    ac_cpp_err=$ac_cxx_preproc_warn_flag
5153    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5154  else
5155    ac_cpp_err=
5156  fi
5157else
5158  ac_cpp_err=yes
5159fi
5160if test -z "$ac_cpp_err"; then
5161  :
5162else
5163  echo "$as_me: failed program was:" >&5
5164sed 's/^/| /' conftest.$ac_ext >&5
5165
5166  # Broken: fails on valid input.
5167continue
5168fi
5169rm -f conftest.err conftest.$ac_ext
5170
5171  # OK, works on sane cases.  Now check whether non-existent headers
5172  # can be detected and how.
5173  cat >conftest.$ac_ext <<_ACEOF
5174/* confdefs.h.  */
5175_ACEOF
5176cat confdefs.h >>conftest.$ac_ext
5177cat >>conftest.$ac_ext <<_ACEOF
5178/* end confdefs.h.  */
5179#include <ac_nonexistent.h>
5180_ACEOF
5181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5182  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5183  ac_status=$?
5184  grep -v '^ *+' conftest.er1 >conftest.err
5185  rm -f conftest.er1
5186  cat conftest.err >&5
5187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188  (exit $ac_status); } >/dev/null; then
5189  if test -s conftest.err; then
5190    ac_cpp_err=$ac_cxx_preproc_warn_flag
5191    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5192  else
5193    ac_cpp_err=
5194  fi
5195else
5196  ac_cpp_err=yes
5197fi
5198if test -z "$ac_cpp_err"; then
5199  # Broken: success on invalid input.
5200continue
5201else
5202  echo "$as_me: failed program was:" >&5
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
5205  # Passes both tests.
5206ac_preproc_ok=:
5207break
5208fi
5209rm -f conftest.err conftest.$ac_ext
5210
5211done
5212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5213rm -f conftest.err conftest.$ac_ext
5214if $ac_preproc_ok; then
5215  :
5216else
5217  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5218See \`config.log' for more details." >&5
5219echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5220See \`config.log' for more details." >&2;}
5221   { (exit 1); exit 1; }; }
5222fi
5223
5224ac_ext=cc
5225ac_cpp='$CXXCPP $CPPFLAGS'
5226ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5229
5230fi
5231
5232
5233ac_ext=f
5234ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5235ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5237if test -n "$ac_tool_prefix"; then
5238  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5239  do
5240    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5241set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5242echo "$as_me:$LINENO: checking for $ac_word" >&5
5243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244if test "${ac_cv_prog_F77+set}" = set; then
5245  echo $ECHO_N "(cached) $ECHO_C" >&6
5246else
5247  if test -n "$F77"; then
5248  ac_cv_prog_F77="$F77" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253  IFS=$as_save_IFS
5254  test -z "$as_dir" && as_dir=.
5255  for ac_exec_ext in '' $ac_executable_extensions; do
5256  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259    break 2
5260  fi
5261done
5262done
5263
5264fi
5265fi
5266F77=$ac_cv_prog_F77
5267if test -n "$F77"; then
5268  echo "$as_me:$LINENO: result: $F77" >&5
5269echo "${ECHO_T}$F77" >&6
5270else
5271  echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6
5273fi
5274
5275    test -n "$F77" && break
5276  done
5277fi
5278if test -z "$F77"; then
5279  ac_ct_F77=$F77
5280  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5281do
5282  # Extract the first word of "$ac_prog", so it can be a program name with args.
5283set dummy $ac_prog; ac_word=$2
5284echo "$as_me:$LINENO: checking for $ac_word" >&5
5285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5287  echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
5289  if test -n "$ac_ct_F77"; then
5290  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5291else
5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH
5294do
5295  IFS=$as_save_IFS
5296  test -z "$as_dir" && as_dir=.
5297  for ac_exec_ext in '' $ac_executable_extensions; do
5298  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299    ac_cv_prog_ac_ct_F77="$ac_prog"
5300    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301    break 2
5302  fi
5303done
5304done
5305
5306fi
5307fi
5308ac_ct_F77=$ac_cv_prog_ac_ct_F77
5309if test -n "$ac_ct_F77"; then
5310  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5311echo "${ECHO_T}$ac_ct_F77" >&6
5312else
5313  echo "$as_me:$LINENO: result: no" >&5
5314echo "${ECHO_T}no" >&6
5315fi
5316
5317  test -n "$ac_ct_F77" && break
5318done
5319
5320  F77=$ac_ct_F77
5321fi
5322
5323
5324# Provide some information about the compiler.
5325echo "$as_me:5325:" \
5326     "checking for Fortran 77 compiler version" >&5
5327ac_compiler=`set X $ac_compile; echo $2`
5328{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5329  (eval $ac_compiler --version </dev/null >&5) 2>&5
5330  ac_status=$?
5331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332  (exit $ac_status); }
5333{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5334  (eval $ac_compiler -v </dev/null >&5) 2>&5
5335  ac_status=$?
5336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337  (exit $ac_status); }
5338{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5339  (eval $ac_compiler -V </dev/null >&5) 2>&5
5340  ac_status=$?
5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342  (exit $ac_status); }
5343rm -f a.out
5344
5345# If we don't use `.F' as extension, the preprocessor is not run on the
5346# input file.  (Note that this only needs to work for GNU compilers.)
5347ac_save_ext=$ac_ext
5348ac_ext=F
5349echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5350echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5351if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5352  echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354  cat >conftest.$ac_ext <<_ACEOF
5355      program main
5356#ifndef __GNUC__
5357       choke me
5358#endif
5359
5360      end
5361_ACEOF
5362rm -f conftest.$ac_objext
5363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5364  (eval $ac_compile) 2>conftest.er1
5365  ac_status=$?
5366  grep -v '^ *+' conftest.er1 >conftest.err
5367  rm -f conftest.er1
5368  cat conftest.err >&5
5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370  (exit $ac_status); } &&
5371	 { ac_try='test -z "$ac_f77_werror_flag"
5372			 || test ! -s conftest.err'
5373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374  (eval $ac_try) 2>&5
5375  ac_status=$?
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); }; } &&
5378	 { ac_try='test -s conftest.$ac_objext'
5379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380  (eval $ac_try) 2>&5
5381  ac_status=$?
5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383  (exit $ac_status); }; }; then
5384  ac_compiler_gnu=yes
5385else
5386  echo "$as_me: failed program was:" >&5
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389ac_compiler_gnu=no
5390fi
5391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5392ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5393
5394fi
5395echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5396echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5397ac_ext=$ac_save_ext
5398ac_test_FFLAGS=${FFLAGS+set}
5399ac_save_FFLAGS=$FFLAGS
5400FFLAGS=
5401echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5402echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5403if test "${ac_cv_prog_f77_g+set}" = set; then
5404  echo $ECHO_N "(cached) $ECHO_C" >&6
5405else
5406  FFLAGS=-g
5407cat >conftest.$ac_ext <<_ACEOF
5408      program main
5409
5410      end
5411_ACEOF
5412rm -f conftest.$ac_objext
5413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5414  (eval $ac_compile) 2>conftest.er1
5415  ac_status=$?
5416  grep -v '^ *+' conftest.er1 >conftest.err
5417  rm -f conftest.er1
5418  cat conftest.err >&5
5419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420  (exit $ac_status); } &&
5421	 { ac_try='test -z "$ac_f77_werror_flag"
5422			 || test ! -s conftest.err'
5423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424  (eval $ac_try) 2>&5
5425  ac_status=$?
5426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427  (exit $ac_status); }; } &&
5428	 { ac_try='test -s conftest.$ac_objext'
5429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430  (eval $ac_try) 2>&5
5431  ac_status=$?
5432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433  (exit $ac_status); }; }; then
5434  ac_cv_prog_f77_g=yes
5435else
5436  echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439ac_cv_prog_f77_g=no
5440fi
5441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5442
5443fi
5444echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5445echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5446if test "$ac_test_FFLAGS" = set; then
5447  FFLAGS=$ac_save_FFLAGS
5448elif test $ac_cv_prog_f77_g = yes; then
5449  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5450    FFLAGS="-g -O2"
5451  else
5452    FFLAGS="-g"
5453  fi
5454else
5455  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5456    FFLAGS="-O2"
5457  else
5458    FFLAGS=
5459  fi
5460fi
5461
5462G77=`test $ac_compiler_gnu = yes && echo yes`
5463ac_ext=c
5464ac_cpp='$CPP $CPPFLAGS'
5465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5467ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468
5469
5470
5471# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5472
5473# find the maximum length of command line arguments
5474echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5475echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5476if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5477  echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479    i=0
5480  teststring="ABCD"
5481
5482  case $build_os in
5483  msdosdjgpp*)
5484    # On DJGPP, this test can blow up pretty badly due to problems in libc
5485    # (any single argument exceeding 2000 bytes causes a buffer overrun
5486    # during glob expansion).  Even if it were fixed, the result of this
5487    # check would be larger than it should be.
5488    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5489    ;;
5490
5491  gnu*)
5492    # Under GNU Hurd, this test is not required because there is
5493    # no limit to the length of command line arguments.
5494    # Libtool will interpret -1 as no limit whatsoever
5495    lt_cv_sys_max_cmd_len=-1;
5496    ;;
5497
5498  cygwin* | mingw*)
5499    # On Win9x/ME, this test blows up -- it succeeds, but takes
5500    # about 5 minutes as the teststring grows exponentially.
5501    # Worse, since 9x/ME are not pre-emptively multitasking,
5502    # you end up with a "frozen" computer, even though with patience
5503    # the test eventually succeeds (with a max line length of 256k).
5504    # Instead, let's just punt: use the minimum linelength reported by
5505    # all of the supported platforms: 8192 (on NT/2K/XP).
5506    lt_cv_sys_max_cmd_len=8192;
5507    ;;
5508
5509  amigaos*)
5510    # On AmigaOS with pdksh, this test takes hours, literally.
5511    # So we just punt and use a minimum line length of 8192.
5512    lt_cv_sys_max_cmd_len=8192;
5513    ;;
5514
5515  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5516    # This has been around since 386BSD, at least.  Likely further.
5517    if test -x /sbin/sysctl; then
5518      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5519    elif test -x /usr/sbin/sysctl; then
5520      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5521    else
5522      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5523    fi
5524    # And add a safety zone
5525    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5526    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5527    ;;
5528
5529  interix*)
5530    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5531    lt_cv_sys_max_cmd_len=196608
5532    ;;
5533
5534  osf*)
5535    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5536    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5537    # nice to cause kernel panics so lets avoid the loop below.
5538    # First set a reasonable default.
5539    lt_cv_sys_max_cmd_len=16384
5540    #
5541    if test -x /sbin/sysconfig; then
5542      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5543        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5544      esac
5545    fi
5546    ;;
5547  sco3.2v5*)
5548    lt_cv_sys_max_cmd_len=102400
5549    ;;
5550  sysv5* | sco5v6* | sysv4.2uw2*)
5551    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5552    if test -n "$kargmax"; then
5553      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5554    else
5555      lt_cv_sys_max_cmd_len=32768
5556    fi
5557    ;;
5558  *)
5559    # If test is not a shell built-in, we'll probably end up computing a
5560    # maximum length that is only half of the actual maximum length, but
5561    # we can't tell.
5562    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5563    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5564	       = "XX$teststring") >/dev/null 2>&1 &&
5565	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5566	    lt_cv_sys_max_cmd_len=$new_result &&
5567	    test $i != 17 # 1/2 MB should be enough
5568    do
5569      i=`expr $i + 1`
5570      teststring=$teststring$teststring
5571    done
5572    teststring=
5573    # Add a significant safety factor because C++ compilers can tack on massive
5574    # amounts of additional arguments before passing them to the linker.
5575    # It appears as though 1/2 is a usable value.
5576    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5577    ;;
5578  esac
5579
5580fi
5581
5582if test -n $lt_cv_sys_max_cmd_len ; then
5583  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5584echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5585else
5586  echo "$as_me:$LINENO: result: none" >&5
5587echo "${ECHO_T}none" >&6
5588fi
5589
5590
5591
5592
5593# Check for command to grab the raw symbol name followed by C symbol from nm.
5594echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5595echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5596if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5597  echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599
5600# These are sane defaults that work on at least a few old systems.
5601# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5602
5603# Character class describing NM global symbol codes.
5604symcode='[BCDEGRST]'
5605
5606# Regexp to match symbols that can be accessed directly from C.
5607sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5608
5609# Transform an extracted symbol line into a proper C declaration
5610lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5611
5612# Transform an extracted symbol line into symbol name and symbol address
5613lt_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'"
5614
5615# Define system-specific variables.
5616case $host_os in
5617aix*)
5618  symcode='[BCDT]'
5619  ;;
5620cygwin* | mingw* | pw32*)
5621  symcode='[ABCDGISTW]'
5622  ;;
5623hpux*) # Its linker distinguishes data from code symbols
5624  if test "$host_cpu" = ia64; then
5625    symcode='[ABCDEGRST]'
5626  fi
5627  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5628  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'"
5629  ;;
5630linux*)
5631  if test "$host_cpu" = ia64; then
5632    symcode='[ABCDGIRSTW]'
5633    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5634    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'"
5635  fi
5636  ;;
5637irix* | nonstopux*)
5638  symcode='[BCDEGRST]'
5639  ;;
5640osf*)
5641  symcode='[BCDEGQRST]'
5642  ;;
5643solaris*)
5644  symcode='[BDRT]'
5645  ;;
5646sco3.2v5*)
5647  symcode='[DT]'
5648  ;;
5649sysv4.2uw2*)
5650  symcode='[DT]'
5651  ;;
5652sysv5* | sco5v6* | unixware* | OpenUNIX*)
5653  symcode='[ABDT]'
5654  ;;
5655sysv4)
5656  symcode='[DFNSTU]'
5657  ;;
5658esac
5659
5660# Handle CRLF in mingw tool chain
5661opt_cr=
5662case $build_os in
5663mingw*)
5664  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5665  ;;
5666esac
5667
5668# If we're using GNU nm, then use its standard symbol codes.
5669case `$NM -V 2>&1` in
5670*GNU* | *'with BFD'*)
5671  symcode='[ABCDGIRSTW]' ;;
5672esac
5673
5674# Try without a prefix undercore, then with it.
5675for ac_symprfx in "" "_"; do
5676
5677  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5678  symxfrm="\\1 $ac_symprfx\\2 \\2"
5679
5680  # Write the raw and C identifiers.
5681  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5682
5683  # Check to see that the pipe works correctly.
5684  pipe_works=no
5685
5686  rm -f conftest*
5687  cat > conftest.$ac_ext <<EOF
5688#ifdef __cplusplus
5689extern "C" {
5690#endif
5691char nm_test_var;
5692void nm_test_func(){}
5693#ifdef __cplusplus
5694}
5695#endif
5696int main(){nm_test_var='a';nm_test_func();return(0);}
5697EOF
5698
5699  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700  (eval $ac_compile) 2>&5
5701  ac_status=$?
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); }; then
5704    # Now try to grab the symbols.
5705    nlist=conftest.nm
5706    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5707  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5708  ac_status=$?
5709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710  (exit $ac_status); } && test -s "$nlist"; then
5711      # Try sorting and uniquifying the output.
5712      if sort "$nlist" | uniq > "$nlist"T; then
5713	mv -f "$nlist"T "$nlist"
5714      else
5715	rm -f "$nlist"T
5716      fi
5717
5718      # Make sure that we snagged all the symbols we need.
5719      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5720	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5721	  cat <<EOF > conftest.$ac_ext
5722#ifdef __cplusplus
5723extern "C" {
5724#endif
5725
5726EOF
5727	  # Now generate the symbol file.
5728	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5729
5730	  cat <<EOF >> conftest.$ac_ext
5731#if defined (__STDC__) && __STDC__
5732# define lt_ptr_t void *
5733#else
5734# define lt_ptr_t char *
5735# define const
5736#endif
5737
5738/* The mapping between symbol names and symbols. */
5739const struct {
5740  const char *name;
5741  lt_ptr_t address;
5742}
5743lt_preloaded_symbols[] =
5744{
5745EOF
5746	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5747	  cat <<\EOF >> conftest.$ac_ext
5748  {0, (lt_ptr_t) 0}
5749};
5750
5751#ifdef __cplusplus
5752}
5753#endif
5754EOF
5755	  # Now try linking the two files.
5756	  mv conftest.$ac_objext conftstm.$ac_objext
5757	  lt_save_LIBS="$LIBS"
5758	  lt_save_CFLAGS="$CFLAGS"
5759	  LIBS="conftstm.$ac_objext"
5760	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5761	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5762  (eval $ac_link) 2>&5
5763  ac_status=$?
5764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5766	    pipe_works=yes
5767	  fi
5768	  LIBS="$lt_save_LIBS"
5769	  CFLAGS="$lt_save_CFLAGS"
5770	else
5771	  echo "cannot find nm_test_func in $nlist" >&5
5772	fi
5773      else
5774	echo "cannot find nm_test_var in $nlist" >&5
5775      fi
5776    else
5777      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5778    fi
5779  else
5780    echo "$progname: failed program was:" >&5
5781    cat conftest.$ac_ext >&5
5782  fi
5783  rm -f conftest* conftst*
5784
5785  # Do not use the global_symbol_pipe unless it works.
5786  if test "$pipe_works" = yes; then
5787    break
5788  else
5789    lt_cv_sys_global_symbol_pipe=
5790  fi
5791done
5792
5793fi
5794
5795if test -z "$lt_cv_sys_global_symbol_pipe"; then
5796  lt_cv_sys_global_symbol_to_cdecl=
5797fi
5798if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5799  echo "$as_me:$LINENO: result: failed" >&5
5800echo "${ECHO_T}failed" >&6
5801else
5802  echo "$as_me:$LINENO: result: ok" >&5
5803echo "${ECHO_T}ok" >&6
5804fi
5805
5806echo "$as_me:$LINENO: checking for objdir" >&5
5807echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5808if test "${lt_cv_objdir+set}" = set; then
5809  echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811  rm -f .libs 2>/dev/null
5812mkdir .libs 2>/dev/null
5813if test -d .libs; then
5814  lt_cv_objdir=.libs
5815else
5816  # MS-DOS does not allow filenames that begin with a dot.
5817  lt_cv_objdir=_libs
5818fi
5819rmdir .libs 2>/dev/null
5820fi
5821echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5822echo "${ECHO_T}$lt_cv_objdir" >&6
5823objdir=$lt_cv_objdir
5824
5825
5826
5827
5828
5829case $host_os in
5830aix3*)
5831  # AIX sometimes has problems with the GCC collect2 program.  For some
5832  # reason, if we set the COLLECT_NAMES environment variable, the problems
5833  # vanish in a puff of smoke.
5834  if test "X${COLLECT_NAMES+set}" != Xset; then
5835    COLLECT_NAMES=
5836    export COLLECT_NAMES
5837  fi
5838  ;;
5839esac
5840
5841# Sed substitution that helps us do robust quoting.  It backslashifies
5842# metacharacters that are still active within double-quoted strings.
5843Xsed='sed -e 1s/^X//'
5844sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5845
5846# Same as above, but do not quote variable references.
5847double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5848
5849# Sed substitution to delay expansion of an escaped shell variable in a
5850# double_quote_subst'ed string.
5851delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5852
5853# Sed substitution to avoid accidental globbing in evaled expressions
5854no_glob_subst='s/\*/\\\*/g'
5855
5856# Constants:
5857rm="rm -f"
5858
5859# Global variables:
5860default_ofile=libtool
5861can_build_shared=yes
5862
5863# All known linkers require a `.a' archive for static linking (except MSVC,
5864# which needs '.lib').
5865libext=a
5866ltmain="$ac_aux_dir/ltmain.sh"
5867ofile="$default_ofile"
5868with_gnu_ld="$lt_cv_prog_gnu_ld"
5869
5870if test -n "$ac_tool_prefix"; then
5871  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5872set dummy ${ac_tool_prefix}ar; ac_word=$2
5873echo "$as_me:$LINENO: checking for $ac_word" >&5
5874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5875if test "${ac_cv_prog_AR+set}" = set; then
5876  echo $ECHO_N "(cached) $ECHO_C" >&6
5877else
5878  if test -n "$AR"; then
5879  ac_cv_prog_AR="$AR" # Let the user override the test.
5880else
5881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5882for as_dir in $PATH
5883do
5884  IFS=$as_save_IFS
5885  test -z "$as_dir" && as_dir=.
5886  for ac_exec_ext in '' $ac_executable_extensions; do
5887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5888    ac_cv_prog_AR="${ac_tool_prefix}ar"
5889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890    break 2
5891  fi
5892done
5893done
5894
5895fi
5896fi
5897AR=$ac_cv_prog_AR
5898if test -n "$AR"; then
5899  echo "$as_me:$LINENO: result: $AR" >&5
5900echo "${ECHO_T}$AR" >&6
5901else
5902  echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904fi
5905
5906fi
5907if test -z "$ac_cv_prog_AR"; then
5908  ac_ct_AR=$AR
5909  # Extract the first word of "ar", so it can be a program name with args.
5910set dummy ar; ac_word=$2
5911echo "$as_me:$LINENO: checking for $ac_word" >&5
5912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5913if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5914  echo $ECHO_N "(cached) $ECHO_C" >&6
5915else
5916  if test -n "$ac_ct_AR"; then
5917  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922  IFS=$as_save_IFS
5923  test -z "$as_dir" && as_dir=.
5924  for ac_exec_ext in '' $ac_executable_extensions; do
5925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926    ac_cv_prog_ac_ct_AR="ar"
5927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928    break 2
5929  fi
5930done
5931done
5932
5933  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5934fi
5935fi
5936ac_ct_AR=$ac_cv_prog_ac_ct_AR
5937if test -n "$ac_ct_AR"; then
5938  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5939echo "${ECHO_T}$ac_ct_AR" >&6
5940else
5941  echo "$as_me:$LINENO: result: no" >&5
5942echo "${ECHO_T}no" >&6
5943fi
5944
5945  AR=$ac_ct_AR
5946else
5947  AR="$ac_cv_prog_AR"
5948fi
5949
5950if test -n "$ac_tool_prefix"; then
5951  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5952set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5953echo "$as_me:$LINENO: checking for $ac_word" >&5
5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5955if test "${ac_cv_prog_RANLIB+set}" = set; then
5956  echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958  if test -n "$RANLIB"; then
5959  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5960else
5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962for as_dir in $PATH
5963do
5964  IFS=$as_save_IFS
5965  test -z "$as_dir" && as_dir=.
5966  for ac_exec_ext in '' $ac_executable_extensions; do
5967  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970    break 2
5971  fi
5972done
5973done
5974
5975fi
5976fi
5977RANLIB=$ac_cv_prog_RANLIB
5978if test -n "$RANLIB"; then
5979  echo "$as_me:$LINENO: result: $RANLIB" >&5
5980echo "${ECHO_T}$RANLIB" >&6
5981else
5982  echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6
5984fi
5985
5986fi
5987if test -z "$ac_cv_prog_RANLIB"; then
5988  ac_ct_RANLIB=$RANLIB
5989  # Extract the first word of "ranlib", so it can be a program name with args.
5990set dummy ranlib; ac_word=$2
5991echo "$as_me:$LINENO: checking for $ac_word" >&5
5992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5993if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5994  echo $ECHO_N "(cached) $ECHO_C" >&6
5995else
5996  if test -n "$ac_ct_RANLIB"; then
5997  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5998else
5999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000for as_dir in $PATH
6001do
6002  IFS=$as_save_IFS
6003  test -z "$as_dir" && as_dir=.
6004  for ac_exec_ext in '' $ac_executable_extensions; do
6005  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6006    ac_cv_prog_ac_ct_RANLIB="ranlib"
6007    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008    break 2
6009  fi
6010done
6011done
6012
6013  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6014fi
6015fi
6016ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6017if test -n "$ac_ct_RANLIB"; then
6018  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6019echo "${ECHO_T}$ac_ct_RANLIB" >&6
6020else
6021  echo "$as_me:$LINENO: result: no" >&5
6022echo "${ECHO_T}no" >&6
6023fi
6024
6025  RANLIB=$ac_ct_RANLIB
6026else
6027  RANLIB="$ac_cv_prog_RANLIB"
6028fi
6029
6030if test -n "$ac_tool_prefix"; then
6031  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6032set dummy ${ac_tool_prefix}strip; ac_word=$2
6033echo "$as_me:$LINENO: checking for $ac_word" >&5
6034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6035if test "${ac_cv_prog_STRIP+set}" = set; then
6036  echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038  if test -n "$STRIP"; then
6039  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044  IFS=$as_save_IFS
6045  test -z "$as_dir" && as_dir=.
6046  for ac_exec_ext in '' $ac_executable_extensions; do
6047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050    break 2
6051  fi
6052done
6053done
6054
6055fi
6056fi
6057STRIP=$ac_cv_prog_STRIP
6058if test -n "$STRIP"; then
6059  echo "$as_me:$LINENO: result: $STRIP" >&5
6060echo "${ECHO_T}$STRIP" >&6
6061else
6062  echo "$as_me:$LINENO: result: no" >&5
6063echo "${ECHO_T}no" >&6
6064fi
6065
6066fi
6067if test -z "$ac_cv_prog_STRIP"; then
6068  ac_ct_STRIP=$STRIP
6069  # Extract the first word of "strip", so it can be a program name with args.
6070set dummy strip; ac_word=$2
6071echo "$as_me:$LINENO: checking for $ac_word" >&5
6072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6073if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6074  echo $ECHO_N "(cached) $ECHO_C" >&6
6075else
6076  if test -n "$ac_ct_STRIP"; then
6077  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6078else
6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080for as_dir in $PATH
6081do
6082  IFS=$as_save_IFS
6083  test -z "$as_dir" && as_dir=.
6084  for ac_exec_ext in '' $ac_executable_extensions; do
6085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086    ac_cv_prog_ac_ct_STRIP="strip"
6087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088    break 2
6089  fi
6090done
6091done
6092
6093  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6094fi
6095fi
6096ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6097if test -n "$ac_ct_STRIP"; then
6098  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6099echo "${ECHO_T}$ac_ct_STRIP" >&6
6100else
6101  echo "$as_me:$LINENO: result: no" >&5
6102echo "${ECHO_T}no" >&6
6103fi
6104
6105  STRIP=$ac_ct_STRIP
6106else
6107  STRIP="$ac_cv_prog_STRIP"
6108fi
6109
6110
6111old_CC="$CC"
6112old_CFLAGS="$CFLAGS"
6113
6114# Set sane defaults for various variables
6115test -z "$AR" && AR=ar
6116test -z "$AR_FLAGS" && AR_FLAGS=cru
6117test -z "$AS" && AS=as
6118test -z "$CC" && CC=cc
6119test -z "$LTCC" && LTCC=$CC
6120test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6121test -z "$DLLTOOL" && DLLTOOL=dlltool
6122test -z "$LD" && LD=ld
6123test -z "$LN_S" && LN_S="ln -s"
6124test -z "$MAGIC_CMD" && MAGIC_CMD=file
6125test -z "$NM" && NM=nm
6126test -z "$SED" && SED=sed
6127test -z "$OBJDUMP" && OBJDUMP=objdump
6128test -z "$RANLIB" && RANLIB=:
6129test -z "$STRIP" && STRIP=:
6130test -z "$ac_objext" && ac_objext=o
6131
6132# Determine commands to create old-style static archives.
6133old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6134old_postinstall_cmds='chmod 644 $oldlib'
6135old_postuninstall_cmds=
6136
6137if test -n "$RANLIB"; then
6138  case $host_os in
6139  openbsd*)
6140    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6141    ;;
6142  *)
6143    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6144    ;;
6145  esac
6146  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6147fi
6148
6149for cc_temp in $compiler""; do
6150  case $cc_temp in
6151    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6152    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6153    \-*) ;;
6154    *) break;;
6155  esac
6156done
6157cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6158
6159
6160# Only perform the check for file, if the check method requires it
6161case $deplibs_check_method in
6162file_magic*)
6163  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6164    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6165echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6166if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6167  echo $ECHO_N "(cached) $ECHO_C" >&6
6168else
6169  case $MAGIC_CMD in
6170[\\/*] |  ?:[\\/]*)
6171  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6172  ;;
6173*)
6174  lt_save_MAGIC_CMD="$MAGIC_CMD"
6175  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6176  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6177  for ac_dir in $ac_dummy; do
6178    IFS="$lt_save_ifs"
6179    test -z "$ac_dir" && ac_dir=.
6180    if test -f $ac_dir/${ac_tool_prefix}file; then
6181      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6182      if test -n "$file_magic_test_file"; then
6183	case $deplibs_check_method in
6184	"file_magic "*)
6185	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6186	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6188	    $EGREP "$file_magic_regex" > /dev/null; then
6189	    :
6190	  else
6191	    cat <<EOF 1>&2
6192
6193*** Warning: the command libtool uses to detect shared libraries,
6194*** $file_magic_cmd, produces output that libtool cannot recognize.
6195*** The result is that libtool may fail to recognize shared libraries
6196*** as such.  This will affect the creation of libtool libraries that
6197*** depend on shared libraries, but programs linked with such libtool
6198*** libraries will work regardless of this problem.  Nevertheless, you
6199*** may want to report the problem to your system manager and/or to
6200*** bug-libtool@gnu.org
6201
6202EOF
6203	  fi ;;
6204	esac
6205      fi
6206      break
6207    fi
6208  done
6209  IFS="$lt_save_ifs"
6210  MAGIC_CMD="$lt_save_MAGIC_CMD"
6211  ;;
6212esac
6213fi
6214
6215MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6216if test -n "$MAGIC_CMD"; then
6217  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6218echo "${ECHO_T}$MAGIC_CMD" >&6
6219else
6220  echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6
6222fi
6223
6224if test -z "$lt_cv_path_MAGIC_CMD"; then
6225  if test -n "$ac_tool_prefix"; then
6226    echo "$as_me:$LINENO: checking for file" >&5
6227echo $ECHO_N "checking for file... $ECHO_C" >&6
6228if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6229  echo $ECHO_N "(cached) $ECHO_C" >&6
6230else
6231  case $MAGIC_CMD in
6232[\\/*] |  ?:[\\/]*)
6233  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6234  ;;
6235*)
6236  lt_save_MAGIC_CMD="$MAGIC_CMD"
6237  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6238  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6239  for ac_dir in $ac_dummy; do
6240    IFS="$lt_save_ifs"
6241    test -z "$ac_dir" && ac_dir=.
6242    if test -f $ac_dir/file; then
6243      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6244      if test -n "$file_magic_test_file"; then
6245	case $deplibs_check_method in
6246	"file_magic "*)
6247	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6248	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6249	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6250	    $EGREP "$file_magic_regex" > /dev/null; then
6251	    :
6252	  else
6253	    cat <<EOF 1>&2
6254
6255*** Warning: the command libtool uses to detect shared libraries,
6256*** $file_magic_cmd, produces output that libtool cannot recognize.
6257*** The result is that libtool may fail to recognize shared libraries
6258*** as such.  This will affect the creation of libtool libraries that
6259*** depend on shared libraries, but programs linked with such libtool
6260*** libraries will work regardless of this problem.  Nevertheless, you
6261*** may want to report the problem to your system manager and/or to
6262*** bug-libtool@gnu.org
6263
6264EOF
6265	  fi ;;
6266	esac
6267      fi
6268      break
6269    fi
6270  done
6271  IFS="$lt_save_ifs"
6272  MAGIC_CMD="$lt_save_MAGIC_CMD"
6273  ;;
6274esac
6275fi
6276
6277MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6278if test -n "$MAGIC_CMD"; then
6279  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6280echo "${ECHO_T}$MAGIC_CMD" >&6
6281else
6282  echo "$as_me:$LINENO: result: no" >&5
6283echo "${ECHO_T}no" >&6
6284fi
6285
6286  else
6287    MAGIC_CMD=:
6288  fi
6289fi
6290
6291  fi
6292  ;;
6293esac
6294
6295enable_dlopen=no
6296enable_win32_dll=no
6297
6298# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6299if test "${enable_libtool_lock+set}" = set; then
6300  enableval="$enable_libtool_lock"
6301
6302fi;
6303test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6304
6305
6306# Check whether --with-pic or --without-pic was given.
6307if test "${with_pic+set}" = set; then
6308  withval="$with_pic"
6309  pic_mode="$withval"
6310else
6311  pic_mode=default
6312fi;
6313test -z "$pic_mode" && pic_mode=default
6314
6315# Use C for the default configuration in the libtool script
6316tagname=
6317lt_save_CC="$CC"
6318ac_ext=c
6319ac_cpp='$CPP $CPPFLAGS'
6320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6322ac_compiler_gnu=$ac_cv_c_compiler_gnu
6323
6324
6325# Source file extension for C test sources.
6326ac_ext=c
6327
6328# Object file extension for compiled C test sources.
6329objext=o
6330objext=$objext
6331
6332# Code to be used in simple compile tests
6333lt_simple_compile_test_code="int some_variable = 0;\n"
6334
6335# Code to be used in simple link tests
6336lt_simple_link_test_code='int main(){return(0);}\n'
6337
6338
6339# If no C compiler was specified, use CC.
6340LTCC=${LTCC-"$CC"}
6341
6342# If no C compiler flags were specified, use CFLAGS.
6343LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6344
6345# Allow CC to be a program name with arguments.
6346compiler=$CC
6347
6348
6349# save warnings/boilerplate of simple test code
6350ac_outfile=conftest.$ac_objext
6351printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6352eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6353_lt_compiler_boilerplate=`cat conftest.err`
6354$rm conftest*
6355
6356ac_outfile=conftest.$ac_objext
6357printf "$lt_simple_link_test_code" >conftest.$ac_ext
6358eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6359_lt_linker_boilerplate=`cat conftest.err`
6360$rm conftest*
6361
6362
6363
6364lt_prog_compiler_no_builtin_flag=
6365
6366if test "$GCC" = yes; then
6367  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6368
6369
6370echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6371echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6372if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6373  echo $ECHO_N "(cached) $ECHO_C" >&6
6374else
6375  lt_cv_prog_compiler_rtti_exceptions=no
6376  ac_outfile=conftest.$ac_objext
6377   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6378   lt_compiler_flag="-fno-rtti -fno-exceptions"
6379   # Insert the option either (1) after the last *FLAGS variable, or
6380   # (2) before a word containing "conftest.", or (3) at the end.
6381   # Note that $ac_compile itself does not contain backslashes and begins
6382   # with a dollar sign (not a hyphen), so the echo should work correctly.
6383   # The option is referenced via a variable to avoid confusing sed.
6384   lt_compile=`echo "$ac_compile" | $SED \
6385   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6386   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6387   -e 's:$: $lt_compiler_flag:'`
6388   (eval echo "\"\$as_me:6388: $lt_compile\"" >&5)
6389   (eval "$lt_compile" 2>conftest.err)
6390   ac_status=$?
6391   cat conftest.err >&5
6392   echo "$as_me:6392: \$? = $ac_status" >&5
6393   if (exit $ac_status) && test -s "$ac_outfile"; then
6394     # The compiler can only warn and ignore the option if not recognized
6395     # So say no if there are warnings other than the usual output.
6396     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6397     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6398     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6399       lt_cv_prog_compiler_rtti_exceptions=yes
6400     fi
6401   fi
6402   $rm conftest*
6403
6404fi
6405echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6406echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6407
6408if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6409    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6410else
6411    :
6412fi
6413
6414fi
6415
6416lt_prog_compiler_wl=
6417lt_prog_compiler_pic=
6418lt_prog_compiler_static=
6419
6420echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6421echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6422
6423  if test "$GCC" = yes; then
6424    lt_prog_compiler_wl='-Wl,'
6425    lt_prog_compiler_static='-static'
6426
6427    case $host_os in
6428      aix*)
6429      # All AIX code is PIC.
6430      if test "$host_cpu" = ia64; then
6431	# AIX 5 now supports IA64 processor
6432	lt_prog_compiler_static='-Bstatic'
6433      fi
6434      ;;
6435
6436    amigaos*)
6437      # FIXME: we need at least 68020 code to build shared libraries, but
6438      # adding the `-m68020' flag to GCC prevents building anything better,
6439      # like `-m68040'.
6440      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6441      ;;
6442
6443    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6444      # PIC is the default for these OSes.
6445      ;;
6446
6447    mingw* | pw32* | os2*)
6448      # This hack is so that the source file can tell whether it is being
6449      # built for inclusion in a dll (and should export symbols for example).
6450      lt_prog_compiler_pic='-DDLL_EXPORT'
6451      ;;
6452
6453    darwin* | rhapsody*)
6454      # PIC is the default on this platform
6455      # Common symbols not allowed in MH_DYLIB files
6456      lt_prog_compiler_pic='-fno-common'
6457      ;;
6458
6459    interix3*)
6460      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6461      # Instead, we relocate shared libraries at runtime.
6462      ;;
6463
6464    msdosdjgpp*)
6465      # Just because we use GCC doesn't mean we suddenly get shared libraries
6466      # on systems that don't support them.
6467      lt_prog_compiler_can_build_shared=no
6468      enable_shared=no
6469      ;;
6470
6471    sysv4*MP*)
6472      if test -d /usr/nec; then
6473	lt_prog_compiler_pic=-Kconform_pic
6474      fi
6475      ;;
6476
6477    hpux*)
6478      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6479      # not for PA HP-UX.
6480      case $host_cpu in
6481      hppa*64*|ia64*)
6482	# +Z the default
6483	;;
6484      *)
6485	lt_prog_compiler_pic='-fPIC'
6486	;;
6487      esac
6488      ;;
6489
6490    *)
6491      lt_prog_compiler_pic='-fPIC'
6492      ;;
6493    esac
6494  else
6495    # PORTME Check for flag to pass linker flags through the system compiler.
6496    case $host_os in
6497    aix*)
6498      lt_prog_compiler_wl='-Wl,'
6499      if test "$host_cpu" = ia64; then
6500	# AIX 5 now supports IA64 processor
6501	lt_prog_compiler_static='-Bstatic'
6502      else
6503	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6504      fi
6505      ;;
6506      darwin*)
6507        # PIC is the default on this platform
6508        # Common symbols not allowed in MH_DYLIB files
6509       case $cc_basename in
6510         xlc*)
6511         lt_prog_compiler_pic='-qnocommon'
6512         lt_prog_compiler_wl='-Wl,'
6513         ;;
6514       esac
6515       ;;
6516
6517    mingw* | pw32* | os2*)
6518      # This hack is so that the source file can tell whether it is being
6519      # built for inclusion in a dll (and should export symbols for example).
6520      lt_prog_compiler_pic='-DDLL_EXPORT'
6521      ;;
6522
6523    hpux9* | hpux10* | hpux11*)
6524      lt_prog_compiler_wl='-Wl,'
6525      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6526      # not for PA HP-UX.
6527      case $host_cpu in
6528      hppa*64*|ia64*)
6529	# +Z the default
6530	;;
6531      *)
6532	lt_prog_compiler_pic='+Z'
6533	;;
6534      esac
6535      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6536      lt_prog_compiler_static='${wl}-a ${wl}archive'
6537      ;;
6538
6539    irix5* | irix6* | nonstopux*)
6540      lt_prog_compiler_wl='-Wl,'
6541      # PIC (with -KPIC) is the default.
6542      lt_prog_compiler_static='-non_shared'
6543      ;;
6544
6545    newsos6)
6546      lt_prog_compiler_pic='-KPIC'
6547      lt_prog_compiler_static='-Bstatic'
6548      ;;
6549
6550    linux*)
6551      case $cc_basename in
6552      icc* | ecc*)
6553	lt_prog_compiler_wl='-Wl,'
6554	lt_prog_compiler_pic='-KPIC'
6555	lt_prog_compiler_static='-static'
6556        ;;
6557      pgcc* | pgf77* | pgf90* | pgf95*)
6558        # Portland Group compilers (*not* the Pentium gcc compiler,
6559	# which looks to be a dead project)
6560	lt_prog_compiler_wl='-Wl,'
6561	lt_prog_compiler_pic='-fpic'
6562	lt_prog_compiler_static='-Bstatic'
6563        ;;
6564      ccc*)
6565        lt_prog_compiler_wl='-Wl,'
6566        # All Alpha code is PIC.
6567        lt_prog_compiler_static='-non_shared'
6568        ;;
6569      esac
6570      ;;
6571
6572    osf3* | osf4* | osf5*)
6573      lt_prog_compiler_wl='-Wl,'
6574      # All OSF/1 code is PIC.
6575      lt_prog_compiler_static='-non_shared'
6576      ;;
6577
6578    solaris*)
6579      lt_prog_compiler_pic='-KPIC'
6580      lt_prog_compiler_static='-Bstatic'
6581      case $cc_basename in
6582      f77* | f90* | f95*)
6583	lt_prog_compiler_wl='-Qoption ld ';;
6584      *)
6585	lt_prog_compiler_wl='-Wl,';;
6586      esac
6587      ;;
6588
6589    sunos4*)
6590      lt_prog_compiler_wl='-Qoption ld '
6591      lt_prog_compiler_pic='-PIC'
6592      lt_prog_compiler_static='-Bstatic'
6593      ;;
6594
6595    sysv4 | sysv4.2uw2* | sysv4.3*)
6596      lt_prog_compiler_wl='-Wl,'
6597      lt_prog_compiler_pic='-KPIC'
6598      lt_prog_compiler_static='-Bstatic'
6599      ;;
6600
6601    sysv4*MP*)
6602      if test -d /usr/nec ;then
6603	lt_prog_compiler_pic='-Kconform_pic'
6604	lt_prog_compiler_static='-Bstatic'
6605      fi
6606      ;;
6607
6608    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6609      lt_prog_compiler_wl='-Wl,'
6610      lt_prog_compiler_pic='-KPIC'
6611      lt_prog_compiler_static='-Bstatic'
6612      ;;
6613
6614    unicos*)
6615      lt_prog_compiler_wl='-Wl,'
6616      lt_prog_compiler_can_build_shared=no
6617      ;;
6618
6619    uts4*)
6620      lt_prog_compiler_pic='-pic'
6621      lt_prog_compiler_static='-Bstatic'
6622      ;;
6623
6624    *)
6625      lt_prog_compiler_can_build_shared=no
6626      ;;
6627    esac
6628  fi
6629
6630echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6631echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6632
6633#
6634# Check to make sure the PIC flag actually works.
6635#
6636if test -n "$lt_prog_compiler_pic"; then
6637
6638echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6639echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6640if test "${lt_prog_compiler_pic_works+set}" = set; then
6641  echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643  lt_prog_compiler_pic_works=no
6644  ac_outfile=conftest.$ac_objext
6645   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6646   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6647   # Insert the option either (1) after the last *FLAGS variable, or
6648   # (2) before a word containing "conftest.", or (3) at the end.
6649   # Note that $ac_compile itself does not contain backslashes and begins
6650   # with a dollar sign (not a hyphen), so the echo should work correctly.
6651   # The option is referenced via a variable to avoid confusing sed.
6652   lt_compile=`echo "$ac_compile" | $SED \
6653   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6654   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6655   -e 's:$: $lt_compiler_flag:'`
6656   (eval echo "\"\$as_me:6656: $lt_compile\"" >&5)
6657   (eval "$lt_compile" 2>conftest.err)
6658   ac_status=$?
6659   cat conftest.err >&5
6660   echo "$as_me:6660: \$? = $ac_status" >&5
6661   if (exit $ac_status) && test -s "$ac_outfile"; then
6662     # The compiler can only warn and ignore the option if not recognized
6663     # So say no if there are warnings other than the usual output.
6664     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6665     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6666     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6667       lt_prog_compiler_pic_works=yes
6668     fi
6669   fi
6670   $rm conftest*
6671
6672fi
6673echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6674echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6675
6676if test x"$lt_prog_compiler_pic_works" = xyes; then
6677    case $lt_prog_compiler_pic in
6678     "" | " "*) ;;
6679     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6680     esac
6681else
6682    lt_prog_compiler_pic=
6683     lt_prog_compiler_can_build_shared=no
6684fi
6685
6686fi
6687case $host_os in
6688  # For platforms which do not support PIC, -DPIC is meaningless:
6689  *djgpp*)
6690    lt_prog_compiler_pic=
6691    ;;
6692  *)
6693    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6694    ;;
6695esac
6696
6697#
6698# Check to make sure the static flag actually works.
6699#
6700wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6701echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6702echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6703if test "${lt_prog_compiler_static_works+set}" = set; then
6704  echo $ECHO_N "(cached) $ECHO_C" >&6
6705else
6706  lt_prog_compiler_static_works=no
6707   save_LDFLAGS="$LDFLAGS"
6708   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6709   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6710   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6711     # The linker can only warn and ignore the option if not recognized
6712     # So say no if there are warnings
6713     if test -s conftest.err; then
6714       # Append any errors to the config.log.
6715       cat conftest.err 1>&5
6716       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6717       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6718       if diff conftest.exp conftest.er2 >/dev/null; then
6719         lt_prog_compiler_static_works=yes
6720       fi
6721     else
6722       lt_prog_compiler_static_works=yes
6723     fi
6724   fi
6725   $rm conftest*
6726   LDFLAGS="$save_LDFLAGS"
6727
6728fi
6729echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6730echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6731
6732if test x"$lt_prog_compiler_static_works" = xyes; then
6733    :
6734else
6735    lt_prog_compiler_static=
6736fi
6737
6738
6739echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6740echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6741if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6742  echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744  lt_cv_prog_compiler_c_o=no
6745   $rm -r conftest 2>/dev/null
6746   mkdir conftest
6747   cd conftest
6748   mkdir out
6749   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6750
6751   lt_compiler_flag="-o out/conftest2.$ac_objext"
6752   # Insert the option either (1) after the last *FLAGS variable, or
6753   # (2) before a word containing "conftest.", or (3) at the end.
6754   # Note that $ac_compile itself does not contain backslashes and begins
6755   # with a dollar sign (not a hyphen), so the echo should work correctly.
6756   lt_compile=`echo "$ac_compile" | $SED \
6757   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6758   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6759   -e 's:$: $lt_compiler_flag:'`
6760   (eval echo "\"\$as_me:6760: $lt_compile\"" >&5)
6761   (eval "$lt_compile" 2>out/conftest.err)
6762   ac_status=$?
6763   cat out/conftest.err >&5
6764   echo "$as_me:6764: \$? = $ac_status" >&5
6765   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6766   then
6767     # The compiler can only warn and ignore the option if not recognized
6768     # So say no if there are warnings
6769     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6770     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6771     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6772       lt_cv_prog_compiler_c_o=yes
6773     fi
6774   fi
6775   chmod u+w . 2>&5
6776   $rm conftest*
6777   # SGI C++ compiler will create directory out/ii_files/ for
6778   # template instantiation
6779   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6780   $rm out/* && rmdir out
6781   cd ..
6782   rmdir conftest
6783   $rm conftest*
6784
6785fi
6786echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6787echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6788
6789
6790hard_links="nottested"
6791if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6792  # do not overwrite the value of need_locks provided by the user
6793  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6794echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6795  hard_links=yes
6796  $rm conftest*
6797  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6798  touch conftest.a
6799  ln conftest.a conftest.b 2>&5 || hard_links=no
6800  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6801  echo "$as_me:$LINENO: result: $hard_links" >&5
6802echo "${ECHO_T}$hard_links" >&6
6803  if test "$hard_links" = no; then
6804    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6805echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6806    need_locks=warn
6807  fi
6808else
6809  need_locks=no
6810fi
6811
6812echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6813echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6814
6815  runpath_var=
6816  allow_undefined_flag=
6817  enable_shared_with_static_runtimes=no
6818  archive_cmds=
6819  archive_expsym_cmds=
6820  old_archive_From_new_cmds=
6821  old_archive_from_expsyms_cmds=
6822  export_dynamic_flag_spec=
6823  whole_archive_flag_spec=
6824  thread_safe_flag_spec=
6825  hardcode_libdir_flag_spec=
6826  hardcode_libdir_flag_spec_ld=
6827  hardcode_libdir_separator=
6828  hardcode_direct=no
6829  hardcode_minus_L=no
6830  hardcode_shlibpath_var=unsupported
6831  link_all_deplibs=unknown
6832  hardcode_automatic=no
6833  module_cmds=
6834  module_expsym_cmds=
6835  always_export_symbols=no
6836  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6837  # include_expsyms should be a list of space-separated symbols to be *always*
6838  # included in the symbol list
6839  include_expsyms=
6840  # exclude_expsyms can be an extended regexp of symbols to exclude
6841  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6842  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6843  # as well as any symbol that contains `d'.
6844  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6845  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6846  # platforms (ab)use it in PIC code, but their linkers get confused if
6847  # the symbol is explicitly referenced.  Since portable code cannot
6848  # rely on this symbol name, it's probably fine to never include it in
6849  # preloaded symbol tables.
6850  extract_expsyms_cmds=
6851  # Just being paranoid about ensuring that cc_basename is set.
6852  for cc_temp in $compiler""; do
6853  case $cc_temp in
6854    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6855    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6856    \-*) ;;
6857    *) break;;
6858  esac
6859done
6860cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6861
6862  case $host_os in
6863  cygwin* | mingw* | pw32*)
6864    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6865    # When not using gcc, we currently assume that we are using
6866    # Microsoft Visual C++.
6867    if test "$GCC" != yes; then
6868      with_gnu_ld=no
6869    fi
6870    ;;
6871  interix*)
6872    # we just hope/assume this is gcc and not c89 (= MSVC++)
6873    with_gnu_ld=yes
6874    ;;
6875  openbsd*)
6876    with_gnu_ld=no
6877    ;;
6878  esac
6879
6880  ld_shlibs=yes
6881  if test "$with_gnu_ld" = yes; then
6882    # If archive_cmds runs LD, not CC, wlarc should be empty
6883    wlarc='${wl}'
6884
6885    # Set some defaults for GNU ld with shared library support. These
6886    # are reset later if shared libraries are not supported. Putting them
6887    # here allows them to be overridden if necessary.
6888    runpath_var=LD_RUN_PATH
6889    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6890    export_dynamic_flag_spec='${wl}--export-dynamic'
6891    # ancient GNU ld didn't support --whole-archive et. al.
6892    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6893	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6894      else
6895  	whole_archive_flag_spec=
6896    fi
6897    supports_anon_versioning=no
6898    case `$LD -v 2>/dev/null` in
6899      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6900      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6901      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6902      *\ 2.11.*) ;; # other 2.11 versions
6903      *) supports_anon_versioning=yes ;;
6904    esac
6905
6906    # See if GNU ld supports shared libraries.
6907    case $host_os in
6908    aix3* | aix4* | aix5*)
6909      # On AIX/PPC, the GNU linker is very broken
6910      if test "$host_cpu" != ia64; then
6911	ld_shlibs=no
6912	cat <<EOF 1>&2
6913
6914*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6915*** to be unable to reliably create shared libraries on AIX.
6916*** Therefore, libtool is disabling shared libraries support.  If you
6917*** really care for shared libraries, you may want to modify your PATH
6918*** so that a non-GNU linker is found, and then restart.
6919
6920EOF
6921      fi
6922      ;;
6923
6924    amigaos*)
6925      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)'
6926      hardcode_libdir_flag_spec='-L$libdir'
6927      hardcode_minus_L=yes
6928
6929      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6930      # that the semantics of dynamic libraries on AmigaOS, at least up
6931      # to version 4, is to share data among multiple programs linked
6932      # with the same dynamic library.  Since this doesn't match the
6933      # behavior of shared libraries on other platforms, we can't use
6934      # them.
6935      ld_shlibs=no
6936      ;;
6937
6938    beos*)
6939      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6940	allow_undefined_flag=unsupported
6941	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6942	# support --undefined.  This deserves some investigation.  FIXME
6943	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6944      else
6945	ld_shlibs=no
6946      fi
6947      ;;
6948
6949    cygwin* | mingw* | pw32*)
6950      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6951      # as there is no search path for DLLs.
6952      hardcode_libdir_flag_spec='-L$libdir'
6953      allow_undefined_flag=unsupported
6954      always_export_symbols=no
6955      enable_shared_with_static_runtimes=yes
6956      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6957
6958      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6959        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6960	# If the export-symbols file already is a .def file (1st line
6961	# is EXPORTS), use it as is; otherwise, prepend...
6962	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6963	  cp $export_symbols $output_objdir/$soname.def;
6964	else
6965	  echo EXPORTS > $output_objdir/$soname.def;
6966	  cat $export_symbols >> $output_objdir/$soname.def;
6967	fi~
6968	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6969      else
6970	ld_shlibs=no
6971      fi
6972      ;;
6973
6974    interix3*)
6975      hardcode_direct=no
6976      hardcode_shlibpath_var=no
6977      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6978      export_dynamic_flag_spec='${wl}-E'
6979      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6980      # Instead, shared libraries are loaded at an image base (0x10000000 by
6981      # default) and relocated if they conflict, which is a slow very memory
6982      # consuming and fragmenting process.  To avoid this, we pick a random,
6983      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6984      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6985      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6986      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'
6987      ;;
6988
6989    linux*)
6990      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6991	tmp_addflag=
6992	case $cc_basename,$host_cpu in
6993	pgcc*)				# Portland Group C compiler
6994	  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'
6995	  tmp_addflag=' $pic_flag'
6996	  ;;
6997	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6998	  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'
6999	  tmp_addflag=' $pic_flag -Mnomain' ;;
7000	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7001	  tmp_addflag=' -i_dynamic' ;;
7002	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7003	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7004	ifc* | ifort*)			# Intel Fortran compiler
7005	  tmp_addflag=' -nofor_main' ;;
7006	esac
7007	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7008
7009	if test $supports_anon_versioning = yes; then
7010	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7011  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7012  $echo "local: *; };" >> $output_objdir/$libname.ver~
7013	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7014	fi
7015      else
7016	ld_shlibs=no
7017      fi
7018      ;;
7019
7020    netbsd*)
7021      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7022	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7023	wlarc=
7024      else
7025	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7026	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7027      fi
7028      ;;
7029
7030    solaris*)
7031      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7032	ld_shlibs=no
7033	cat <<EOF 1>&2
7034
7035*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7036*** create shared libraries on Solaris systems.  Therefore, libtool
7037*** is disabling shared libraries support.  We urge you to upgrade GNU
7038*** binutils to release 2.9.1 or newer.  Another option is to modify
7039*** your PATH or compiler configuration so that the native linker is
7040*** used, and then restart.
7041
7042EOF
7043      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7044	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7045	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7046      else
7047	ld_shlibs=no
7048      fi
7049      ;;
7050
7051    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7052      case `$LD -v 2>&1` in
7053        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7054	ld_shlibs=no
7055	cat <<_LT_EOF 1>&2
7056
7057*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7058*** reliably create shared libraries on SCO systems.  Therefore, libtool
7059*** is disabling shared libraries support.  We urge you to upgrade GNU
7060*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7061*** your PATH or compiler configuration so that the native linker is
7062*** used, and then restart.
7063
7064_LT_EOF
7065	;;
7066	*)
7067	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7068	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7069	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7070	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7071	  else
7072	    ld_shlibs=no
7073	  fi
7074	;;
7075      esac
7076      ;;
7077
7078    sunos4*)
7079      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7080      wlarc=
7081      hardcode_direct=yes
7082      hardcode_shlibpath_var=no
7083      ;;
7084
7085    *)
7086      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7087	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7088	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7089      else
7090	ld_shlibs=no
7091      fi
7092      ;;
7093    esac
7094
7095    if test "$ld_shlibs" = no; then
7096      runpath_var=
7097      hardcode_libdir_flag_spec=
7098      export_dynamic_flag_spec=
7099      whole_archive_flag_spec=
7100    fi
7101  else
7102    # PORTME fill in a description of your system's linker (not GNU ld)
7103    case $host_os in
7104    aix3*)
7105      allow_undefined_flag=unsupported
7106      always_export_symbols=yes
7107      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'
7108      # Note: this linker hardcodes the directories in LIBPATH if there
7109      # are no directories specified by -L.
7110      hardcode_minus_L=yes
7111      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7112	# Neither direct hardcoding nor static linking is supported with a
7113	# broken collect2.
7114	hardcode_direct=unsupported
7115      fi
7116      ;;
7117
7118    aix4* | aix5*)
7119      if test "$host_cpu" = ia64; then
7120	# On IA64, the linker does run time linking by default, so we don't
7121	# have to do anything special.
7122	aix_use_runtimelinking=no
7123	exp_sym_flag='-Bexport'
7124	no_entry_flag=""
7125      else
7126	# If we're using GNU nm, then we don't want the "-C" option.
7127	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7128	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7129	  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'
7130	else
7131	  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'
7132	fi
7133	aix_use_runtimelinking=no
7134
7135	# Test if we are trying to use run time linking or normal
7136	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7137	# need to do runtime linking.
7138	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7139	  for ld_flag in $LDFLAGS; do
7140  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7141  	    aix_use_runtimelinking=yes
7142  	    break
7143  	  fi
7144	  done
7145	  ;;
7146	esac
7147
7148	exp_sym_flag='-bexport'
7149	no_entry_flag='-bnoentry'
7150      fi
7151
7152      # When large executables or shared objects are built, AIX ld can
7153      # have problems creating the table of contents.  If linking a library
7154      # or program results in "error TOC overflow" add -mminimal-toc to
7155      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7156      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7157
7158      archive_cmds=''
7159      hardcode_direct=yes
7160      hardcode_libdir_separator=':'
7161      link_all_deplibs=yes
7162
7163      if test "$GCC" = yes; then
7164	case $host_os in aix4.[012]|aix4.[012].*)
7165	# We only want to do this on AIX 4.2 and lower, the check
7166	# below for broken collect2 doesn't work under 4.3+
7167	  collect2name=`${CC} -print-prog-name=collect2`
7168	  if test -f "$collect2name" && \
7169  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7170	  then
7171  	  # We have reworked collect2
7172  	  hardcode_direct=yes
7173	  else
7174  	  # We have old collect2
7175  	  hardcode_direct=unsupported
7176  	  # It fails to find uninstalled libraries when the uninstalled
7177  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7178  	  # to unsupported forces relinking
7179  	  hardcode_minus_L=yes
7180  	  hardcode_libdir_flag_spec='-L$libdir'
7181  	  hardcode_libdir_separator=
7182	  fi
7183	  ;;
7184	esac
7185	shared_flag='-shared'
7186	if test "$aix_use_runtimelinking" = yes; then
7187	  shared_flag="$shared_flag "'${wl}-G'
7188	fi
7189      else
7190	# not using gcc
7191	if test "$host_cpu" = ia64; then
7192  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7193  	# chokes on -Wl,-G. The following line is correct:
7194	  shared_flag='-G'
7195	else
7196	  if test "$aix_use_runtimelinking" = yes; then
7197	    shared_flag='${wl}-G'
7198	  else
7199	    shared_flag='${wl}-bM:SRE'
7200	  fi
7201	fi
7202      fi
7203
7204      # It seems that -bexpall does not export symbols beginning with
7205      # underscore (_), so it is better to generate a list of symbols to export.
7206      always_export_symbols=yes
7207      if test "$aix_use_runtimelinking" = yes; then
7208	# Warning - without using the other runtime loading flags (-brtl),
7209	# -berok will link without error, but may produce a broken library.
7210	allow_undefined_flag='-berok'
7211       # Determine the default libpath from the value encoded in an empty executable.
7212       cat >conftest.$ac_ext <<_ACEOF
7213/* confdefs.h.  */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h.  */
7218
7219int
7220main ()
7221{
7222
7223  ;
7224  return 0;
7225}
7226_ACEOF
7227rm -f conftest.$ac_objext conftest$ac_exeext
7228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229  (eval $ac_link) 2>conftest.er1
7230  ac_status=$?
7231  grep -v '^ *+' conftest.er1 >conftest.err
7232  rm -f conftest.er1
7233  cat conftest.err >&5
7234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235  (exit $ac_status); } &&
7236	 { ac_try='test -z "$ac_c_werror_flag"
7237			 || test ! -s conftest.err'
7238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239  (eval $ac_try) 2>&5
7240  ac_status=$?
7241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242  (exit $ac_status); }; } &&
7243	 { ac_try='test -s conftest$ac_exeext'
7244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245  (eval $ac_try) 2>&5
7246  ac_status=$?
7247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248  (exit $ac_status); }; }; then
7249
7250aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7251}'`
7252# Check for a 64-bit object if we didn't find anything.
7253if 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; }
7254}'`; fi
7255else
7256  echo "$as_me: failed program was:" >&5
7257sed 's/^/| /' conftest.$ac_ext >&5
7258
7259fi
7260rm -f conftest.err conftest.$ac_objext \
7261      conftest$ac_exeext conftest.$ac_ext
7262if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7263
7264       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7265	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"
7266       else
7267	if test "$host_cpu" = ia64; then
7268	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7269	  allow_undefined_flag="-z nodefs"
7270	  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"
7271	else
7272	 # Determine the default libpath from the value encoded in an empty executable.
7273	 cat >conftest.$ac_ext <<_ACEOF
7274/* confdefs.h.  */
7275_ACEOF
7276cat confdefs.h >>conftest.$ac_ext
7277cat >>conftest.$ac_ext <<_ACEOF
7278/* end confdefs.h.  */
7279
7280int
7281main ()
7282{
7283
7284  ;
7285  return 0;
7286}
7287_ACEOF
7288rm -f conftest.$ac_objext conftest$ac_exeext
7289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290  (eval $ac_link) 2>conftest.er1
7291  ac_status=$?
7292  grep -v '^ *+' conftest.er1 >conftest.err
7293  rm -f conftest.er1
7294  cat conftest.err >&5
7295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296  (exit $ac_status); } &&
7297	 { ac_try='test -z "$ac_c_werror_flag"
7298			 || test ! -s conftest.err'
7299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300  (eval $ac_try) 2>&5
7301  ac_status=$?
7302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303  (exit $ac_status); }; } &&
7304	 { ac_try='test -s conftest$ac_exeext'
7305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306  (eval $ac_try) 2>&5
7307  ac_status=$?
7308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309  (exit $ac_status); }; }; then
7310
7311aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7312}'`
7313# Check for a 64-bit object if we didn't find anything.
7314if 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; }
7315}'`; fi
7316else
7317  echo "$as_me: failed program was:" >&5
7318sed 's/^/| /' conftest.$ac_ext >&5
7319
7320fi
7321rm -f conftest.err conftest.$ac_objext \
7322      conftest$ac_exeext conftest.$ac_ext
7323if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7324
7325	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7326	  # Warning - without using the other run time loading flags,
7327	  # -berok will link without error, but may produce a broken library.
7328	  no_undefined_flag=' ${wl}-bernotok'
7329	  allow_undefined_flag=' ${wl}-berok'
7330	  # Exported symbols can be pulled into shared objects from archives
7331	  whole_archive_flag_spec='$convenience'
7332	  archive_cmds_need_lc=yes
7333	  # This is similar to how AIX traditionally builds its shared libraries.
7334	  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'
7335	fi
7336      fi
7337      ;;
7338
7339    amigaos*)
7340      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)'
7341      hardcode_libdir_flag_spec='-L$libdir'
7342      hardcode_minus_L=yes
7343      # see comment about different semantics on the GNU ld section
7344      ld_shlibs=no
7345      ;;
7346
7347    bsdi[45]*)
7348      export_dynamic_flag_spec=-rdynamic
7349      ;;
7350
7351    cygwin* | mingw* | pw32*)
7352      # When not using gcc, we currently assume that we are using
7353      # Microsoft Visual C++.
7354      # hardcode_libdir_flag_spec is actually meaningless, as there is
7355      # no search path for DLLs.
7356      hardcode_libdir_flag_spec=' '
7357      allow_undefined_flag=unsupported
7358      # Tell ltmain to make .lib files, not .a files.
7359      libext=lib
7360      # Tell ltmain to make .dll files, not .so files.
7361      shrext_cmds=".dll"
7362      # FIXME: Setting linknames here is a bad hack.
7363      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7364      # The linker will automatically build a .lib file if we build a DLL.
7365      old_archive_From_new_cmds='true'
7366      # FIXME: Should let the user specify the lib program.
7367      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7368      fix_srcfile_path='`cygpath -w "$srcfile"`'
7369      enable_shared_with_static_runtimes=yes
7370      ;;
7371
7372    darwin* | rhapsody*)
7373      case $host_os in
7374        rhapsody* | darwin1.[012])
7375         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7376         ;;
7377       *) # Darwin 1.3 on
7378         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7379           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7380         else
7381           case ${MACOSX_DEPLOYMENT_TARGET} in
7382             10.[012])
7383               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7384               ;;
7385             10.*)
7386               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7387               ;;
7388           esac
7389         fi
7390         ;;
7391      esac
7392      archive_cmds_need_lc=no
7393      hardcode_direct=no
7394      hardcode_automatic=yes
7395      hardcode_shlibpath_var=unsupported
7396      whole_archive_flag_spec=''
7397      link_all_deplibs=yes
7398    if test "$GCC" = yes ; then
7399    	output_verbose_link_cmd='echo'
7400        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7401      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7402      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7403      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}'
7404      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}'
7405    else
7406      case $cc_basename in
7407        xlc*)
7408         output_verbose_link_cmd='echo'
7409         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7410         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7411          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7412         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}'
7413          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}'
7414          ;;
7415       *)
7416         ld_shlibs=no
7417          ;;
7418      esac
7419    fi
7420      ;;
7421
7422    dgux*)
7423      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7424      hardcode_libdir_flag_spec='-L$libdir'
7425      hardcode_shlibpath_var=no
7426      ;;
7427
7428    freebsd1*)
7429      ld_shlibs=no
7430      ;;
7431
7432    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7433    # support.  Future versions do this automatically, but an explicit c++rt0.o
7434    # does not break anything, and helps significantly (at the cost of a little
7435    # extra space).
7436    freebsd2.2*)
7437      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7438      hardcode_libdir_flag_spec='-R$libdir'
7439      hardcode_direct=yes
7440      hardcode_shlibpath_var=no
7441      ;;
7442
7443    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7444    freebsd2*)
7445      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7446      hardcode_direct=yes
7447      hardcode_minus_L=yes
7448      hardcode_shlibpath_var=no
7449      ;;
7450
7451    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7452    freebsd* | kfreebsd*-gnu | dragonfly*)
7453      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7454      hardcode_libdir_flag_spec='-R$libdir'
7455      hardcode_direct=yes
7456      hardcode_shlibpath_var=no
7457      ;;
7458
7459    hpux9*)
7460      if test "$GCC" = yes; then
7461	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'
7462      else
7463	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'
7464      fi
7465      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7466      hardcode_libdir_separator=:
7467      hardcode_direct=yes
7468
7469      # hardcode_minus_L: Not really in the search PATH,
7470      # but as the default location of the library.
7471      hardcode_minus_L=yes
7472      export_dynamic_flag_spec='${wl}-E'
7473      ;;
7474
7475    hpux10*)
7476      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7477	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7478      else
7479	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7480      fi
7481      if test "$with_gnu_ld" = no; then
7482	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7483	hardcode_libdir_separator=:
7484
7485	hardcode_direct=yes
7486	export_dynamic_flag_spec='${wl}-E'
7487
7488	# hardcode_minus_L: Not really in the search PATH,
7489	# but as the default location of the library.
7490	hardcode_minus_L=yes
7491      fi
7492      ;;
7493
7494    hpux11*)
7495      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7496	case $host_cpu in
7497	hppa*64*)
7498	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7499	  ;;
7500	ia64*)
7501	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7502	  ;;
7503	*)
7504	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7505	  ;;
7506	esac
7507      else
7508	case $host_cpu in
7509	hppa*64*)
7510	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7511	  ;;
7512	ia64*)
7513	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7514	  ;;
7515	*)
7516	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7517	  ;;
7518	esac
7519      fi
7520      if test "$with_gnu_ld" = no; then
7521	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7522	hardcode_libdir_separator=:
7523
7524	case $host_cpu in
7525	hppa*64*|ia64*)
7526	  hardcode_libdir_flag_spec_ld='+b $libdir'
7527	  hardcode_direct=no
7528	  hardcode_shlibpath_var=no
7529	  ;;
7530	*)
7531	  hardcode_direct=yes
7532	  export_dynamic_flag_spec='${wl}-E'
7533
7534	  # hardcode_minus_L: Not really in the search PATH,
7535	  # but as the default location of the library.
7536	  hardcode_minus_L=yes
7537	  ;;
7538	esac
7539      fi
7540      ;;
7541
7542    irix5* | irix6* | nonstopux*)
7543      if test "$GCC" = yes; then
7544	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'
7545      else
7546	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'
7547	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7548      fi
7549      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7550      hardcode_libdir_separator=:
7551      link_all_deplibs=yes
7552      ;;
7553
7554    netbsd*)
7555      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7556	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7557      else
7558	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7559      fi
7560      hardcode_libdir_flag_spec='-R$libdir'
7561      hardcode_direct=yes
7562      hardcode_shlibpath_var=no
7563      ;;
7564
7565    newsos6)
7566      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7567      hardcode_direct=yes
7568      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7569      hardcode_libdir_separator=:
7570      hardcode_shlibpath_var=no
7571      ;;
7572
7573    openbsd*)
7574      hardcode_direct=yes
7575      hardcode_shlibpath_var=no
7576      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7577	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7578	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7579	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7580	export_dynamic_flag_spec='${wl}-E'
7581      else
7582       case $host_os in
7583	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7584	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7585	   hardcode_libdir_flag_spec='-R$libdir'
7586	   ;;
7587	 *)
7588	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7589	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7590	   ;;
7591       esac
7592      fi
7593      ;;
7594
7595    os2*)
7596      hardcode_libdir_flag_spec='-L$libdir'
7597      hardcode_minus_L=yes
7598      allow_undefined_flag=unsupported
7599      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'
7600      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7601      ;;
7602
7603    osf3*)
7604      if test "$GCC" = yes; then
7605	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7606	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'
7607      else
7608	allow_undefined_flag=' -expect_unresolved \*'
7609	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'
7610      fi
7611      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7612      hardcode_libdir_separator=:
7613      ;;
7614
7615    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7616      if test "$GCC" = yes; then
7617	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7618	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'
7619	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7620      else
7621	allow_undefined_flag=' -expect_unresolved \*'
7622	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'
7623	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7624	$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'
7625
7626	# Both c and cxx compiler support -rpath directly
7627	hardcode_libdir_flag_spec='-rpath $libdir'
7628      fi
7629      hardcode_libdir_separator=:
7630      ;;
7631
7632    solaris*)
7633      no_undefined_flag=' -z text'
7634      if test "$GCC" = yes; then
7635	wlarc='${wl}'
7636	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7637	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7638	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7639      else
7640	wlarc=''
7641	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7642	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7643  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7644      fi
7645      hardcode_libdir_flag_spec='-R$libdir'
7646      hardcode_shlibpath_var=no
7647      case $host_os in
7648      solaris2.[0-5] | solaris2.[0-5].*) ;;
7649      *)
7650 	# The compiler driver will combine linker options so we
7651 	# cannot just pass the convience library names through
7652 	# without $wl, iff we do not link with $LD.
7653 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7654 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7655 	case $wlarc in
7656 	'')
7657 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7658 	*)
7659 	  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' ;;
7660 	esac ;;
7661      esac
7662      link_all_deplibs=yes
7663      ;;
7664
7665    sunos4*)
7666      if test "x$host_vendor" = xsequent; then
7667	# Use $CC to link under sequent, because it throws in some extra .o
7668	# files that make .init and .fini sections work.
7669	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7670      else
7671	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7672      fi
7673      hardcode_libdir_flag_spec='-L$libdir'
7674      hardcode_direct=yes
7675      hardcode_minus_L=yes
7676      hardcode_shlibpath_var=no
7677      ;;
7678
7679    sysv4)
7680      case $host_vendor in
7681	sni)
7682	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7683	  hardcode_direct=yes # is this really true???
7684	;;
7685	siemens)
7686	  ## LD is ld it makes a PLAMLIB
7687	  ## CC just makes a GrossModule.
7688	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7689	  reload_cmds='$CC -r -o $output$reload_objs'
7690	  hardcode_direct=no
7691        ;;
7692	motorola)
7693	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7694	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7695	;;
7696      esac
7697      runpath_var='LD_RUN_PATH'
7698      hardcode_shlibpath_var=no
7699      ;;
7700
7701    sysv4.3*)
7702      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7703      hardcode_shlibpath_var=no
7704      export_dynamic_flag_spec='-Bexport'
7705      ;;
7706
7707    sysv4*MP*)
7708      if test -d /usr/nec; then
7709	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7710	hardcode_shlibpath_var=no
7711	runpath_var=LD_RUN_PATH
7712	hardcode_runpath_var=yes
7713	ld_shlibs=yes
7714      fi
7715      ;;
7716
7717    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7718      no_undefined_flag='${wl}-z,text'
7719      archive_cmds_need_lc=no
7720      hardcode_shlibpath_var=no
7721      runpath_var='LD_RUN_PATH'
7722
7723      if test "$GCC" = yes; then
7724	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7725	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7726      else
7727	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7728	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7729      fi
7730      ;;
7731
7732    sysv5* | sco3.2v5* | sco5v6*)
7733      # Note: We can NOT use -z defs as we might desire, because we do not
7734      # link with -lc, and that would cause any symbols used from libc to
7735      # always be unresolved, which means just about no library would
7736      # ever link correctly.  If we're not using GNU ld we use -z text
7737      # though, which does catch some bad symbols but isn't as heavy-handed
7738      # as -z defs.
7739      no_undefined_flag='${wl}-z,text'
7740      allow_undefined_flag='${wl}-z,nodefs'
7741      archive_cmds_need_lc=no
7742      hardcode_shlibpath_var=no
7743      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7744      hardcode_libdir_separator=':'
7745      link_all_deplibs=yes
7746      export_dynamic_flag_spec='${wl}-Bexport'
7747      runpath_var='LD_RUN_PATH'
7748
7749      if test "$GCC" = yes; then
7750	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7751	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7752      else
7753	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7754	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7755      fi
7756      ;;
7757
7758    uts4*)
7759      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7760      hardcode_libdir_flag_spec='-L$libdir'
7761      hardcode_shlibpath_var=no
7762      ;;
7763
7764    *)
7765      ld_shlibs=no
7766      ;;
7767    esac
7768  fi
7769
7770echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7771echo "${ECHO_T}$ld_shlibs" >&6
7772test "$ld_shlibs" = no && can_build_shared=no
7773
7774#
7775# Do we need to explicitly link libc?
7776#
7777case "x$archive_cmds_need_lc" in
7778x|xyes)
7779  # Assume -lc should be added
7780  archive_cmds_need_lc=yes
7781
7782  if test "$enable_shared" = yes && test "$GCC" = yes; then
7783    case $archive_cmds in
7784    *'~'*)
7785      # FIXME: we may have to deal with multi-command sequences.
7786      ;;
7787    '$CC '*)
7788      # Test whether the compiler implicitly links with -lc since on some
7789      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7790      # to ld, don't add -lc before -lgcc.
7791      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7792echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7793      $rm conftest*
7794      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7795
7796      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7797  (eval $ac_compile) 2>&5
7798  ac_status=$?
7799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800  (exit $ac_status); } 2>conftest.err; then
7801        soname=conftest
7802        lib=conftest
7803        libobjs=conftest.$ac_objext
7804        deplibs=
7805        wl=$lt_prog_compiler_wl
7806	pic_flag=$lt_prog_compiler_pic
7807        compiler_flags=-v
7808        linker_flags=-v
7809        verstring=
7810        output_objdir=.
7811        libname=conftest
7812        lt_save_allow_undefined_flag=$allow_undefined_flag
7813        allow_undefined_flag=
7814        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7815  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7816  ac_status=$?
7817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818  (exit $ac_status); }
7819        then
7820	  archive_cmds_need_lc=no
7821        else
7822	  archive_cmds_need_lc=yes
7823        fi
7824        allow_undefined_flag=$lt_save_allow_undefined_flag
7825      else
7826        cat conftest.err 1>&5
7827      fi
7828      $rm conftest*
7829      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7830echo "${ECHO_T}$archive_cmds_need_lc" >&6
7831      ;;
7832    esac
7833  fi
7834  ;;
7835esac
7836
7837echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7838echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7839library_names_spec=
7840libname_spec='lib$name'
7841soname_spec=
7842shrext_cmds=".so"
7843postinstall_cmds=
7844postuninstall_cmds=
7845finish_cmds=
7846finish_eval=
7847shlibpath_var=
7848shlibpath_overrides_runpath=unknown
7849version_type=none
7850dynamic_linker="$host_os ld.so"
7851sys_lib_dlsearch_path_spec="/lib /usr/lib"
7852if test "$GCC" = yes; then
7853  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7854  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7855    # if the path contains ";" then we assume it to be the separator
7856    # otherwise default to the standard path separator (i.e. ":") - it is
7857    # assumed that no part of a normal pathname contains ";" but that should
7858    # okay in the real world where ";" in dirpaths is itself problematic.
7859    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7860  else
7861    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7862  fi
7863else
7864  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7865fi
7866need_lib_prefix=unknown
7867hardcode_into_libs=no
7868
7869# when you set need_version to no, make sure it does not cause -set_version
7870# flags to be left without arguments
7871need_version=unknown
7872
7873case $host_os in
7874aix3*)
7875  version_type=linux
7876  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7877  shlibpath_var=LIBPATH
7878
7879  # AIX 3 has no versioning support, so we append a major version to the name.
7880  soname_spec='${libname}${release}${shared_ext}$major'
7881  ;;
7882
7883aix4* | aix5*)
7884  version_type=linux
7885  need_lib_prefix=no
7886  need_version=no
7887  hardcode_into_libs=yes
7888  if test "$host_cpu" = ia64; then
7889    # AIX 5 supports IA64
7890    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7891    shlibpath_var=LD_LIBRARY_PATH
7892  else
7893    # With GCC up to 2.95.x, collect2 would create an import file
7894    # for dependence libraries.  The import file would start with
7895    # the line `#! .'.  This would cause the generated library to
7896    # depend on `.', always an invalid library.  This was fixed in
7897    # development snapshots of GCC prior to 3.0.
7898    case $host_os in
7899      aix4 | aix4.[01] | aix4.[01].*)
7900      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7901	   echo ' yes '
7902	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7903	:
7904      else
7905	can_build_shared=no
7906      fi
7907      ;;
7908    esac
7909    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7910    # soname into executable. Probably we can add versioning support to
7911    # collect2, so additional links can be useful in future.
7912    if test "$aix_use_runtimelinking" = yes; then
7913      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7914      # instead of lib<name>.a to let people know that these are not
7915      # typical AIX shared libraries.
7916      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7917    else
7918      # We preserve .a as extension for shared libraries through AIX4.2
7919      # and later when we are not doing run time linking.
7920      library_names_spec='${libname}${release}.a $libname.a'
7921      soname_spec='${libname}${release}${shared_ext}$major'
7922    fi
7923    shlibpath_var=LIBPATH
7924  fi
7925  ;;
7926
7927amigaos*)
7928  library_names_spec='$libname.ixlibrary $libname.a'
7929  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7930  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'
7931  ;;
7932
7933beos*)
7934  library_names_spec='${libname}${shared_ext}'
7935  dynamic_linker="$host_os ld.so"
7936  shlibpath_var=LIBRARY_PATH
7937  ;;
7938
7939bsdi[45]*)
7940  version_type=linux
7941  need_version=no
7942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7943  soname_spec='${libname}${release}${shared_ext}$major'
7944  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7945  shlibpath_var=LD_LIBRARY_PATH
7946  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7947  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7948  # the default ld.so.conf also contains /usr/contrib/lib and
7949  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7950  # libtool to hard-code these into programs
7951  ;;
7952
7953cygwin* | mingw* | pw32*)
7954  version_type=windows
7955  shrext_cmds=".dll"
7956  need_version=no
7957  need_lib_prefix=no
7958
7959  case $GCC,$host_os in
7960  yes,cygwin* | yes,mingw* | yes,pw32*)
7961    library_names_spec='$libname.dll.a'
7962    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7963    postinstall_cmds='base_file=`basename \${file}`~
7964      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7965      dldir=$destdir/`dirname \$dlpath`~
7966      test -d \$dldir || mkdir -p \$dldir~
7967      $install_prog $dir/$dlname \$dldir/$dlname~
7968      chmod a+x \$dldir/$dlname'
7969    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7970      dlpath=$dir/\$dldll~
7971       $rm \$dlpath'
7972    shlibpath_overrides_runpath=yes
7973
7974    case $host_os in
7975    cygwin*)
7976      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7977      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7978      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7979      ;;
7980    mingw*)
7981      # MinGW DLLs use traditional 'lib' prefix
7982      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7983      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7984      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7985        # It is most probably a Windows format PATH printed by
7986        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7987        # path with ; separators, and with drive letters. We can handle the
7988        # drive letters (cygwin fileutils understands them), so leave them,
7989        # especially as we might pass files found there to a mingw objdump,
7990        # which wouldn't understand a cygwinified path. Ahh.
7991        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7992      else
7993        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7994      fi
7995      ;;
7996    pw32*)
7997      # pw32 DLLs use 'pw' prefix rather than 'lib'
7998      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7999      ;;
8000    esac
8001    ;;
8002
8003  *)
8004    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8005    ;;
8006  esac
8007  dynamic_linker='Win32 ld.exe'
8008  # FIXME: first we should search . and the directory the executable is in
8009  shlibpath_var=PATH
8010  ;;
8011
8012darwin* | rhapsody*)
8013  dynamic_linker="$host_os dyld"
8014  version_type=darwin
8015  need_lib_prefix=no
8016  need_version=no
8017  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8018  soname_spec='${libname}${release}${major}$shared_ext'
8019  shlibpath_overrides_runpath=yes
8020  shlibpath_var=DYLD_LIBRARY_PATH
8021  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8022  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8023  if test "$GCC" = yes; then
8024    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"`
8025  else
8026    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8027  fi
8028  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8029  ;;
8030
8031dgux*)
8032  version_type=linux
8033  need_lib_prefix=no
8034  need_version=no
8035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8036  soname_spec='${libname}${release}${shared_ext}$major'
8037  shlibpath_var=LD_LIBRARY_PATH
8038  ;;
8039
8040freebsd1*)
8041  dynamic_linker=no
8042  ;;
8043
8044kfreebsd*-gnu)
8045  version_type=linux
8046  need_lib_prefix=no
8047  need_version=no
8048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8049  soname_spec='${libname}${release}${shared_ext}$major'
8050  shlibpath_var=LD_LIBRARY_PATH
8051  shlibpath_overrides_runpath=no
8052  hardcode_into_libs=yes
8053  dynamic_linker='GNU ld.so'
8054  ;;
8055
8056freebsd* | dragonfly*)
8057  # DragonFly does not have aout.  When/if they implement a new
8058  # versioning mechanism, adjust this.
8059  if test -x /usr/bin/objformat; then
8060    objformat=`/usr/bin/objformat`
8061  else
8062    case $host_os in
8063    freebsd[123]*) objformat=aout ;;
8064    *) objformat=elf ;;
8065    esac
8066  fi
8067  version_type=freebsd-$objformat
8068  case $version_type in
8069    freebsd-elf*)
8070      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8071      need_version=no
8072      need_lib_prefix=no
8073      ;;
8074    freebsd-*)
8075      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8076      need_version=yes
8077      ;;
8078  esac
8079  shlibpath_var=LD_LIBRARY_PATH
8080  case $host_os in
8081  freebsd2*)
8082    shlibpath_overrides_runpath=yes
8083    ;;
8084  freebsd3.[01]* | freebsdelf3.[01]*)
8085    shlibpath_overrides_runpath=yes
8086    hardcode_into_libs=yes
8087    ;;
8088  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8089  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8090    shlibpath_overrides_runpath=no
8091    hardcode_into_libs=yes
8092    ;;
8093  freebsd*) # from 4.6 on
8094    shlibpath_overrides_runpath=yes
8095    hardcode_into_libs=yes
8096    ;;
8097  esac
8098  ;;
8099
8100gnu*)
8101  version_type=linux
8102  need_lib_prefix=no
8103  need_version=no
8104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8105  soname_spec='${libname}${release}${shared_ext}$major'
8106  shlibpath_var=LD_LIBRARY_PATH
8107  hardcode_into_libs=yes
8108  ;;
8109
8110hpux9* | hpux10* | hpux11*)
8111  # Give a soname corresponding to the major version so that dld.sl refuses to
8112  # link against other versions.
8113  version_type=sunos
8114  need_lib_prefix=no
8115  need_version=no
8116  case $host_cpu in
8117  ia64*)
8118    shrext_cmds='.so'
8119    hardcode_into_libs=yes
8120    dynamic_linker="$host_os dld.so"
8121    shlibpath_var=LD_LIBRARY_PATH
8122    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8123    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8124    soname_spec='${libname}${release}${shared_ext}$major'
8125    if test "X$HPUX_IA64_MODE" = X32; then
8126      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8127    else
8128      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8129    fi
8130    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8131    ;;
8132   hppa*64*)
8133     shrext_cmds='.sl'
8134     hardcode_into_libs=yes
8135     dynamic_linker="$host_os dld.sl"
8136     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8137     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8139     soname_spec='${libname}${release}${shared_ext}$major'
8140     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8141     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8142     ;;
8143   *)
8144    shrext_cmds='.sl'
8145    dynamic_linker="$host_os dld.sl"
8146    shlibpath_var=SHLIB_PATH
8147    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8148    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8149    soname_spec='${libname}${release}${shared_ext}$major'
8150    ;;
8151  esac
8152  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8153  postinstall_cmds='chmod 555 $lib'
8154  ;;
8155
8156interix3*)
8157  version_type=linux
8158  need_lib_prefix=no
8159  need_version=no
8160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8161  soname_spec='${libname}${release}${shared_ext}$major'
8162  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8163  shlibpath_var=LD_LIBRARY_PATH
8164  shlibpath_overrides_runpath=no
8165  hardcode_into_libs=yes
8166  ;;
8167
8168irix5* | irix6* | nonstopux*)
8169  case $host_os in
8170    nonstopux*) version_type=nonstopux ;;
8171    *)
8172	if test "$lt_cv_prog_gnu_ld" = yes; then
8173		version_type=linux
8174	else
8175		version_type=irix
8176	fi ;;
8177  esac
8178  need_lib_prefix=no
8179  need_version=no
8180  soname_spec='${libname}${release}${shared_ext}$major'
8181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8182  case $host_os in
8183  irix5* | nonstopux*)
8184    libsuff= shlibsuff=
8185    ;;
8186  *)
8187    case $LD in # libtool.m4 will add one of these switches to LD
8188    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8189      libsuff= shlibsuff= libmagic=32-bit;;
8190    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8191      libsuff=32 shlibsuff=N32 libmagic=N32;;
8192    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8193      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8194    *) libsuff= shlibsuff= libmagic=never-match;;
8195    esac
8196    ;;
8197  esac
8198  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8199  shlibpath_overrides_runpath=no
8200  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8201  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8202  hardcode_into_libs=yes
8203  ;;
8204
8205# No shared lib support for Linux oldld, aout, or coff.
8206linux*oldld* | linux*aout* | linux*coff*)
8207  dynamic_linker=no
8208  ;;
8209
8210# This must be Linux ELF.
8211linux*)
8212  version_type=linux
8213  need_lib_prefix=no
8214  need_version=no
8215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8216  soname_spec='${libname}${release}${shared_ext}$major'
8217  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8218  shlibpath_var=LD_LIBRARY_PATH
8219  shlibpath_overrides_runpath=no
8220  # This implies no fast_install, which is unacceptable.
8221  # Some rework will be needed to allow for fast_install
8222  # before this can be enabled.
8223  hardcode_into_libs=yes
8224
8225  # find out which ABI we are using
8226  libsuff=
8227  case "$host_cpu" in
8228  x86_64*|s390x*|powerpc64*)
8229    echo '#line 8229 "configure"' > conftest.$ac_ext
8230    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8231  (eval $ac_compile) 2>&5
8232  ac_status=$?
8233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234  (exit $ac_status); }; then
8235      case `/usr/bin/file conftest.$ac_objext` in
8236      *64-bit*)
8237        libsuff=64
8238        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8239        ;;
8240      esac
8241    fi
8242    rm -rf conftest*
8243    ;;
8244  esac
8245
8246  # Append ld.so.conf contents to the search path
8247  if test -f /etc/ld.so.conf; then
8248    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8249    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8250  fi
8251
8252  # We used to test for /lib/ld.so.1 and disable shared libraries on
8253  # powerpc, because MkLinux only supported shared libraries with the
8254  # GNU dynamic linker.  Since this was broken with cross compilers,
8255  # most powerpc-linux boxes support dynamic linking these days and
8256  # people can always --disable-shared, the test was removed, and we
8257  # assume the GNU/Linux dynamic linker is in use.
8258  dynamic_linker='GNU/Linux ld.so'
8259  ;;
8260
8261knetbsd*-gnu)
8262  version_type=linux
8263  need_lib_prefix=no
8264  need_version=no
8265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8266  soname_spec='${libname}${release}${shared_ext}$major'
8267  shlibpath_var=LD_LIBRARY_PATH
8268  shlibpath_overrides_runpath=no
8269  hardcode_into_libs=yes
8270  dynamic_linker='GNU ld.so'
8271  ;;
8272
8273netbsd*)
8274  version_type=sunos
8275  need_lib_prefix=no
8276  need_version=no
8277  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8278    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8279    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8280    dynamic_linker='NetBSD (a.out) ld.so'
8281  else
8282    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8283    soname_spec='${libname}${release}${shared_ext}$major'
8284    dynamic_linker='NetBSD ld.elf_so'
8285  fi
8286  shlibpath_var=LD_LIBRARY_PATH
8287  shlibpath_overrides_runpath=yes
8288  hardcode_into_libs=yes
8289  ;;
8290
8291newsos6)
8292  version_type=linux
8293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8294  shlibpath_var=LD_LIBRARY_PATH
8295  shlibpath_overrides_runpath=yes
8296  ;;
8297
8298nto-qnx*)
8299  version_type=linux
8300  need_lib_prefix=no
8301  need_version=no
8302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8303  soname_spec='${libname}${release}${shared_ext}$major'
8304  shlibpath_var=LD_LIBRARY_PATH
8305  shlibpath_overrides_runpath=yes
8306  ;;
8307
8308openbsd*)
8309  version_type=sunos
8310  sys_lib_dlsearch_path_spec="/usr/lib"
8311  need_lib_prefix=no
8312  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8313  case $host_os in
8314    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8315    *)                         need_version=no  ;;
8316  esac
8317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8318  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8319  shlibpath_var=LD_LIBRARY_PATH
8320  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8321    case $host_os in
8322      openbsd2.[89] | openbsd2.[89].*)
8323	shlibpath_overrides_runpath=no
8324	;;
8325      *)
8326	shlibpath_overrides_runpath=yes
8327	;;
8328      esac
8329  else
8330    shlibpath_overrides_runpath=yes
8331  fi
8332  ;;
8333
8334os2*)
8335  libname_spec='$name'
8336  shrext_cmds=".dll"
8337  need_lib_prefix=no
8338  library_names_spec='$libname${shared_ext} $libname.a'
8339  dynamic_linker='OS/2 ld.exe'
8340  shlibpath_var=LIBPATH
8341  ;;
8342
8343osf3* | osf4* | osf5*)
8344  version_type=osf
8345  need_lib_prefix=no
8346  need_version=no
8347  soname_spec='${libname}${release}${shared_ext}$major'
8348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8349  shlibpath_var=LD_LIBRARY_PATH
8350  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8351  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8352  ;;
8353
8354solaris*)
8355  version_type=linux
8356  need_lib_prefix=no
8357  need_version=no
8358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8359  soname_spec='${libname}${release}${shared_ext}$major'
8360  shlibpath_var=LD_LIBRARY_PATH
8361  shlibpath_overrides_runpath=yes
8362  hardcode_into_libs=yes
8363  # ldd complains unless libraries are executable
8364  postinstall_cmds='chmod +x $lib'
8365  ;;
8366
8367sunos4*)
8368  version_type=sunos
8369  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8370  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8371  shlibpath_var=LD_LIBRARY_PATH
8372  shlibpath_overrides_runpath=yes
8373  if test "$with_gnu_ld" = yes; then
8374    need_lib_prefix=no
8375  fi
8376  need_version=yes
8377  ;;
8378
8379sysv4 | sysv4.3*)
8380  version_type=linux
8381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8382  soname_spec='${libname}${release}${shared_ext}$major'
8383  shlibpath_var=LD_LIBRARY_PATH
8384  case $host_vendor in
8385    sni)
8386      shlibpath_overrides_runpath=no
8387      need_lib_prefix=no
8388      export_dynamic_flag_spec='${wl}-Blargedynsym'
8389      runpath_var=LD_RUN_PATH
8390      ;;
8391    siemens)
8392      need_lib_prefix=no
8393      ;;
8394    motorola)
8395      need_lib_prefix=no
8396      need_version=no
8397      shlibpath_overrides_runpath=no
8398      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8399      ;;
8400  esac
8401  ;;
8402
8403sysv4*MP*)
8404  if test -d /usr/nec ;then
8405    version_type=linux
8406    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8407    soname_spec='$libname${shared_ext}.$major'
8408    shlibpath_var=LD_LIBRARY_PATH
8409  fi
8410  ;;
8411
8412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8413  version_type=freebsd-elf
8414  need_lib_prefix=no
8415  need_version=no
8416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8417  soname_spec='${libname}${release}${shared_ext}$major'
8418  shlibpath_var=LD_LIBRARY_PATH
8419  hardcode_into_libs=yes
8420  if test "$with_gnu_ld" = yes; then
8421    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8422    shlibpath_overrides_runpath=no
8423  else
8424    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8425    shlibpath_overrides_runpath=yes
8426    case $host_os in
8427      sco3.2v5*)
8428        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8429	;;
8430    esac
8431  fi
8432  sys_lib_dlsearch_path_spec='/usr/lib'
8433  ;;
8434
8435uts4*)
8436  version_type=linux
8437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8438  soname_spec='${libname}${release}${shared_ext}$major'
8439  shlibpath_var=LD_LIBRARY_PATH
8440  ;;
8441
8442*)
8443  dynamic_linker=no
8444  ;;
8445esac
8446echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8447echo "${ECHO_T}$dynamic_linker" >&6
8448test "$dynamic_linker" = no && can_build_shared=no
8449
8450variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8451if test "$GCC" = yes; then
8452  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8453fi
8454
8455echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8456echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8457hardcode_action=
8458if test -n "$hardcode_libdir_flag_spec" || \
8459   test -n "$runpath_var" || \
8460   test "X$hardcode_automatic" = "Xyes" ; then
8461
8462  # We can hardcode non-existant directories.
8463  if test "$hardcode_direct" != no &&
8464     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8465     # have to relink, otherwise we might link with an installed library
8466     # when we should be linking with a yet-to-be-installed one
8467     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8468     test "$hardcode_minus_L" != no; then
8469    # Linking always hardcodes the temporary library directory.
8470    hardcode_action=relink
8471  else
8472    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8473    hardcode_action=immediate
8474  fi
8475else
8476  # We cannot hardcode anything, or else we can only hardcode existing
8477  # directories.
8478  hardcode_action=unsupported
8479fi
8480echo "$as_me:$LINENO: result: $hardcode_action" >&5
8481echo "${ECHO_T}$hardcode_action" >&6
8482
8483if test "$hardcode_action" = relink; then
8484  # Fast installation is not supported
8485  enable_fast_install=no
8486elif test "$shlibpath_overrides_runpath" = yes ||
8487     test "$enable_shared" = no; then
8488  # Fast installation is not necessary
8489  enable_fast_install=needless
8490fi
8491
8492striplib=
8493old_striplib=
8494echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8495echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8496if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8497  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8498  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8499  echo "$as_me:$LINENO: result: yes" >&5
8500echo "${ECHO_T}yes" >&6
8501else
8502# FIXME - insert some real tests, host_os isn't really good enough
8503  case $host_os in
8504   darwin*)
8505       if test -n "$STRIP" ; then
8506         striplib="$STRIP -x"
8507         echo "$as_me:$LINENO: result: yes" >&5
8508echo "${ECHO_T}yes" >&6
8509       else
8510  echo "$as_me:$LINENO: result: no" >&5
8511echo "${ECHO_T}no" >&6
8512fi
8513       ;;
8514   *)
8515  echo "$as_me:$LINENO: result: no" >&5
8516echo "${ECHO_T}no" >&6
8517    ;;
8518  esac
8519fi
8520
8521if test "x$enable_dlopen" != xyes; then
8522  enable_dlopen=unknown
8523  enable_dlopen_self=unknown
8524  enable_dlopen_self_static=unknown
8525else
8526  lt_cv_dlopen=no
8527  lt_cv_dlopen_libs=
8528
8529  case $host_os in
8530  beos*)
8531    lt_cv_dlopen="load_add_on"
8532    lt_cv_dlopen_libs=
8533    lt_cv_dlopen_self=yes
8534    ;;
8535
8536  mingw* | pw32*)
8537    lt_cv_dlopen="LoadLibrary"
8538    lt_cv_dlopen_libs=
8539   ;;
8540
8541  cygwin*)
8542    lt_cv_dlopen="dlopen"
8543    lt_cv_dlopen_libs=
8544   ;;
8545
8546  darwin*)
8547  # if libdl is installed we need to link against it
8548    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8549echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8550if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8551  echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553  ac_check_lib_save_LIBS=$LIBS
8554LIBS="-ldl  $LIBS"
8555cat >conftest.$ac_ext <<_ACEOF
8556/* confdefs.h.  */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h.  */
8561
8562/* Override any gcc2 internal prototype to avoid an error.  */
8563#ifdef __cplusplus
8564extern "C"
8565#endif
8566/* We use char because int might match the return type of a gcc2
8567   builtin and then its argument prototype would still apply.  */
8568char dlopen ();
8569int
8570main ()
8571{
8572dlopen ();
8573  ;
8574  return 0;
8575}
8576_ACEOF
8577rm -f conftest.$ac_objext conftest$ac_exeext
8578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8579  (eval $ac_link) 2>conftest.er1
8580  ac_status=$?
8581  grep -v '^ *+' conftest.er1 >conftest.err
8582  rm -f conftest.er1
8583  cat conftest.err >&5
8584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585  (exit $ac_status); } &&
8586	 { ac_try='test -z "$ac_c_werror_flag"
8587			 || test ! -s conftest.err'
8588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589  (eval $ac_try) 2>&5
8590  ac_status=$?
8591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592  (exit $ac_status); }; } &&
8593	 { ac_try='test -s conftest$ac_exeext'
8594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595  (eval $ac_try) 2>&5
8596  ac_status=$?
8597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598  (exit $ac_status); }; }; then
8599  ac_cv_lib_dl_dlopen=yes
8600else
8601  echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
8603
8604ac_cv_lib_dl_dlopen=no
8605fi
8606rm -f conftest.err conftest.$ac_objext \
8607      conftest$ac_exeext conftest.$ac_ext
8608LIBS=$ac_check_lib_save_LIBS
8609fi
8610echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8611echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8612if test $ac_cv_lib_dl_dlopen = yes; then
8613  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8614else
8615
8616    lt_cv_dlopen="dyld"
8617    lt_cv_dlopen_libs=
8618    lt_cv_dlopen_self=yes
8619
8620fi
8621
8622   ;;
8623
8624  *)
8625    echo "$as_me:$LINENO: checking for shl_load" >&5
8626echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8627if test "${ac_cv_func_shl_load+set}" = set; then
8628  echo $ECHO_N "(cached) $ECHO_C" >&6
8629else
8630  cat >conftest.$ac_ext <<_ACEOF
8631/* confdefs.h.  */
8632_ACEOF
8633cat confdefs.h >>conftest.$ac_ext
8634cat >>conftest.$ac_ext <<_ACEOF
8635/* end confdefs.h.  */
8636/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8637   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8638#define shl_load innocuous_shl_load
8639
8640/* System header to define __stub macros and hopefully few prototypes,
8641    which can conflict with char shl_load (); below.
8642    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8643    <limits.h> exists even on freestanding compilers.  */
8644
8645#ifdef __STDC__
8646# include <limits.h>
8647#else
8648# include <assert.h>
8649#endif
8650
8651#undef shl_load
8652
8653/* Override any gcc2 internal prototype to avoid an error.  */
8654#ifdef __cplusplus
8655extern "C"
8656{
8657#endif
8658/* We use char because int might match the return type of a gcc2
8659   builtin and then its argument prototype would still apply.  */
8660char shl_load ();
8661/* The GNU C library defines this for functions which it implements
8662    to always fail with ENOSYS.  Some functions are actually named
8663    something starting with __ and the normal name is an alias.  */
8664#if defined (__stub_shl_load) || defined (__stub___shl_load)
8665choke me
8666#else
8667char (*f) () = shl_load;
8668#endif
8669#ifdef __cplusplus
8670}
8671#endif
8672
8673int
8674main ()
8675{
8676return f != shl_load;
8677  ;
8678  return 0;
8679}
8680_ACEOF
8681rm -f conftest.$ac_objext conftest$ac_exeext
8682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683  (eval $ac_link) 2>conftest.er1
8684  ac_status=$?
8685  grep -v '^ *+' conftest.er1 >conftest.err
8686  rm -f conftest.er1
8687  cat conftest.err >&5
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); } &&
8690	 { ac_try='test -z "$ac_c_werror_flag"
8691			 || test ! -s conftest.err'
8692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693  (eval $ac_try) 2>&5
8694  ac_status=$?
8695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696  (exit $ac_status); }; } &&
8697	 { ac_try='test -s conftest$ac_exeext'
8698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699  (eval $ac_try) 2>&5
8700  ac_status=$?
8701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702  (exit $ac_status); }; }; then
8703  ac_cv_func_shl_load=yes
8704else
8705  echo "$as_me: failed program was:" >&5
8706sed 's/^/| /' conftest.$ac_ext >&5
8707
8708ac_cv_func_shl_load=no
8709fi
8710rm -f conftest.err conftest.$ac_objext \
8711      conftest$ac_exeext conftest.$ac_ext
8712fi
8713echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8714echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8715if test $ac_cv_func_shl_load = yes; then
8716  lt_cv_dlopen="shl_load"
8717else
8718  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8719echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8720if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8721  echo $ECHO_N "(cached) $ECHO_C" >&6
8722else
8723  ac_check_lib_save_LIBS=$LIBS
8724LIBS="-ldld  $LIBS"
8725cat >conftest.$ac_ext <<_ACEOF
8726/* confdefs.h.  */
8727_ACEOF
8728cat confdefs.h >>conftest.$ac_ext
8729cat >>conftest.$ac_ext <<_ACEOF
8730/* end confdefs.h.  */
8731
8732/* Override any gcc2 internal prototype to avoid an error.  */
8733#ifdef __cplusplus
8734extern "C"
8735#endif
8736/* We use char because int might match the return type of a gcc2
8737   builtin and then its argument prototype would still apply.  */
8738char shl_load ();
8739int
8740main ()
8741{
8742shl_load ();
8743  ;
8744  return 0;
8745}
8746_ACEOF
8747rm -f conftest.$ac_objext conftest$ac_exeext
8748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749  (eval $ac_link) 2>conftest.er1
8750  ac_status=$?
8751  grep -v '^ *+' conftest.er1 >conftest.err
8752  rm -f conftest.er1
8753  cat conftest.err >&5
8754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755  (exit $ac_status); } &&
8756	 { ac_try='test -z "$ac_c_werror_flag"
8757			 || test ! -s conftest.err'
8758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759  (eval $ac_try) 2>&5
8760  ac_status=$?
8761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762  (exit $ac_status); }; } &&
8763	 { ac_try='test -s conftest$ac_exeext'
8764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765  (eval $ac_try) 2>&5
8766  ac_status=$?
8767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768  (exit $ac_status); }; }; then
8769  ac_cv_lib_dld_shl_load=yes
8770else
8771  echo "$as_me: failed program was:" >&5
8772sed 's/^/| /' conftest.$ac_ext >&5
8773
8774ac_cv_lib_dld_shl_load=no
8775fi
8776rm -f conftest.err conftest.$ac_objext \
8777      conftest$ac_exeext conftest.$ac_ext
8778LIBS=$ac_check_lib_save_LIBS
8779fi
8780echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8781echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8782if test $ac_cv_lib_dld_shl_load = yes; then
8783  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8784else
8785  echo "$as_me:$LINENO: checking for dlopen" >&5
8786echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8787if test "${ac_cv_func_dlopen+set}" = set; then
8788  echo $ECHO_N "(cached) $ECHO_C" >&6
8789else
8790  cat >conftest.$ac_ext <<_ACEOF
8791/* confdefs.h.  */
8792_ACEOF
8793cat confdefs.h >>conftest.$ac_ext
8794cat >>conftest.$ac_ext <<_ACEOF
8795/* end confdefs.h.  */
8796/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8797   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8798#define dlopen innocuous_dlopen
8799
8800/* System header to define __stub macros and hopefully few prototypes,
8801    which can conflict with char dlopen (); below.
8802    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803    <limits.h> exists even on freestanding compilers.  */
8804
8805#ifdef __STDC__
8806# include <limits.h>
8807#else
8808# include <assert.h>
8809#endif
8810
8811#undef dlopen
8812
8813/* Override any gcc2 internal prototype to avoid an error.  */
8814#ifdef __cplusplus
8815extern "C"
8816{
8817#endif
8818/* We use char because int might match the return type of a gcc2
8819   builtin and then its argument prototype would still apply.  */
8820char dlopen ();
8821/* The GNU C library defines this for functions which it implements
8822    to always fail with ENOSYS.  Some functions are actually named
8823    something starting with __ and the normal name is an alias.  */
8824#if defined (__stub_dlopen) || defined (__stub___dlopen)
8825choke me
8826#else
8827char (*f) () = dlopen;
8828#endif
8829#ifdef __cplusplus
8830}
8831#endif
8832
8833int
8834main ()
8835{
8836return f != dlopen;
8837  ;
8838  return 0;
8839}
8840_ACEOF
8841rm -f conftest.$ac_objext conftest$ac_exeext
8842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843  (eval $ac_link) 2>conftest.er1
8844  ac_status=$?
8845  grep -v '^ *+' conftest.er1 >conftest.err
8846  rm -f conftest.er1
8847  cat conftest.err >&5
8848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849  (exit $ac_status); } &&
8850	 { ac_try='test -z "$ac_c_werror_flag"
8851			 || test ! -s conftest.err'
8852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853  (eval $ac_try) 2>&5
8854  ac_status=$?
8855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856  (exit $ac_status); }; } &&
8857	 { ac_try='test -s conftest$ac_exeext'
8858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859  (eval $ac_try) 2>&5
8860  ac_status=$?
8861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862  (exit $ac_status); }; }; then
8863  ac_cv_func_dlopen=yes
8864else
8865  echo "$as_me: failed program was:" >&5
8866sed 's/^/| /' conftest.$ac_ext >&5
8867
8868ac_cv_func_dlopen=no
8869fi
8870rm -f conftest.err conftest.$ac_objext \
8871      conftest$ac_exeext conftest.$ac_ext
8872fi
8873echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8874echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8875if test $ac_cv_func_dlopen = yes; then
8876  lt_cv_dlopen="dlopen"
8877else
8878  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8879echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8880if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8881  echo $ECHO_N "(cached) $ECHO_C" >&6
8882else
8883  ac_check_lib_save_LIBS=$LIBS
8884LIBS="-ldl  $LIBS"
8885cat >conftest.$ac_ext <<_ACEOF
8886/* confdefs.h.  */
8887_ACEOF
8888cat confdefs.h >>conftest.$ac_ext
8889cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h.  */
8891
8892/* Override any gcc2 internal prototype to avoid an error.  */
8893#ifdef __cplusplus
8894extern "C"
8895#endif
8896/* We use char because int might match the return type of a gcc2
8897   builtin and then its argument prototype would still apply.  */
8898char dlopen ();
8899int
8900main ()
8901{
8902dlopen ();
8903  ;
8904  return 0;
8905}
8906_ACEOF
8907rm -f conftest.$ac_objext conftest$ac_exeext
8908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909  (eval $ac_link) 2>conftest.er1
8910  ac_status=$?
8911  grep -v '^ *+' conftest.er1 >conftest.err
8912  rm -f conftest.er1
8913  cat conftest.err >&5
8914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915  (exit $ac_status); } &&
8916	 { ac_try='test -z "$ac_c_werror_flag"
8917			 || test ! -s conftest.err'
8918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919  (eval $ac_try) 2>&5
8920  ac_status=$?
8921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922  (exit $ac_status); }; } &&
8923	 { ac_try='test -s conftest$ac_exeext'
8924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925  (eval $ac_try) 2>&5
8926  ac_status=$?
8927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928  (exit $ac_status); }; }; then
8929  ac_cv_lib_dl_dlopen=yes
8930else
8931  echo "$as_me: failed program was:" >&5
8932sed 's/^/| /' conftest.$ac_ext >&5
8933
8934ac_cv_lib_dl_dlopen=no
8935fi
8936rm -f conftest.err conftest.$ac_objext \
8937      conftest$ac_exeext conftest.$ac_ext
8938LIBS=$ac_check_lib_save_LIBS
8939fi
8940echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8941echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8942if test $ac_cv_lib_dl_dlopen = yes; then
8943  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8944else
8945  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8946echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8947if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8948  echo $ECHO_N "(cached) $ECHO_C" >&6
8949else
8950  ac_check_lib_save_LIBS=$LIBS
8951LIBS="-lsvld  $LIBS"
8952cat >conftest.$ac_ext <<_ACEOF
8953/* confdefs.h.  */
8954_ACEOF
8955cat confdefs.h >>conftest.$ac_ext
8956cat >>conftest.$ac_ext <<_ACEOF
8957/* end confdefs.h.  */
8958
8959/* Override any gcc2 internal prototype to avoid an error.  */
8960#ifdef __cplusplus
8961extern "C"
8962#endif
8963/* We use char because int might match the return type of a gcc2
8964   builtin and then its argument prototype would still apply.  */
8965char dlopen ();
8966int
8967main ()
8968{
8969dlopen ();
8970  ;
8971  return 0;
8972}
8973_ACEOF
8974rm -f conftest.$ac_objext conftest$ac_exeext
8975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976  (eval $ac_link) 2>conftest.er1
8977  ac_status=$?
8978  grep -v '^ *+' conftest.er1 >conftest.err
8979  rm -f conftest.er1
8980  cat conftest.err >&5
8981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982  (exit $ac_status); } &&
8983	 { ac_try='test -z "$ac_c_werror_flag"
8984			 || test ! -s conftest.err'
8985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986  (eval $ac_try) 2>&5
8987  ac_status=$?
8988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989  (exit $ac_status); }; } &&
8990	 { ac_try='test -s conftest$ac_exeext'
8991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992  (eval $ac_try) 2>&5
8993  ac_status=$?
8994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995  (exit $ac_status); }; }; then
8996  ac_cv_lib_svld_dlopen=yes
8997else
8998  echo "$as_me: failed program was:" >&5
8999sed 's/^/| /' conftest.$ac_ext >&5
9000
9001ac_cv_lib_svld_dlopen=no
9002fi
9003rm -f conftest.err conftest.$ac_objext \
9004      conftest$ac_exeext conftest.$ac_ext
9005LIBS=$ac_check_lib_save_LIBS
9006fi
9007echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9008echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9009if test $ac_cv_lib_svld_dlopen = yes; then
9010  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9011else
9012  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9013echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9014if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9015  echo $ECHO_N "(cached) $ECHO_C" >&6
9016else
9017  ac_check_lib_save_LIBS=$LIBS
9018LIBS="-ldld  $LIBS"
9019cat >conftest.$ac_ext <<_ACEOF
9020/* confdefs.h.  */
9021_ACEOF
9022cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF
9024/* end confdefs.h.  */
9025
9026/* Override any gcc2 internal prototype to avoid an error.  */
9027#ifdef __cplusplus
9028extern "C"
9029#endif
9030/* We use char because int might match the return type of a gcc2
9031   builtin and then its argument prototype would still apply.  */
9032char dld_link ();
9033int
9034main ()
9035{
9036dld_link ();
9037  ;
9038  return 0;
9039}
9040_ACEOF
9041rm -f conftest.$ac_objext conftest$ac_exeext
9042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043  (eval $ac_link) 2>conftest.er1
9044  ac_status=$?
9045  grep -v '^ *+' conftest.er1 >conftest.err
9046  rm -f conftest.er1
9047  cat conftest.err >&5
9048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049  (exit $ac_status); } &&
9050	 { ac_try='test -z "$ac_c_werror_flag"
9051			 || test ! -s conftest.err'
9052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053  (eval $ac_try) 2>&5
9054  ac_status=$?
9055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056  (exit $ac_status); }; } &&
9057	 { ac_try='test -s conftest$ac_exeext'
9058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059  (eval $ac_try) 2>&5
9060  ac_status=$?
9061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062  (exit $ac_status); }; }; then
9063  ac_cv_lib_dld_dld_link=yes
9064else
9065  echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
9068ac_cv_lib_dld_dld_link=no
9069fi
9070rm -f conftest.err conftest.$ac_objext \
9071      conftest$ac_exeext conftest.$ac_ext
9072LIBS=$ac_check_lib_save_LIBS
9073fi
9074echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9075echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9076if test $ac_cv_lib_dld_dld_link = yes; then
9077  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9078fi
9079
9080
9081fi
9082
9083
9084fi
9085
9086
9087fi
9088
9089
9090fi
9091
9092
9093fi
9094
9095    ;;
9096  esac
9097
9098  if test "x$lt_cv_dlopen" != xno; then
9099    enable_dlopen=yes
9100  else
9101    enable_dlopen=no
9102  fi
9103
9104  case $lt_cv_dlopen in
9105  dlopen)
9106    save_CPPFLAGS="$CPPFLAGS"
9107    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9108
9109    save_LDFLAGS="$LDFLAGS"
9110    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9111
9112    save_LIBS="$LIBS"
9113    LIBS="$lt_cv_dlopen_libs $LIBS"
9114
9115    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9116echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9117if test "${lt_cv_dlopen_self+set}" = set; then
9118  echo $ECHO_N "(cached) $ECHO_C" >&6
9119else
9120  	  if test "$cross_compiling" = yes; then :
9121  lt_cv_dlopen_self=cross
9122else
9123  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9124  lt_status=$lt_dlunknown
9125  cat > conftest.$ac_ext <<EOF
9126#line 9126 "configure"
9127#include "confdefs.h"
9128
9129#if HAVE_DLFCN_H
9130#include <dlfcn.h>
9131#endif
9132
9133#include <stdio.h>
9134
9135#ifdef RTLD_GLOBAL
9136#  define LT_DLGLOBAL		RTLD_GLOBAL
9137#else
9138#  ifdef DL_GLOBAL
9139#    define LT_DLGLOBAL		DL_GLOBAL
9140#  else
9141#    define LT_DLGLOBAL		0
9142#  endif
9143#endif
9144
9145/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9146   find out it does not work in some platform. */
9147#ifndef LT_DLLAZY_OR_NOW
9148#  ifdef RTLD_LAZY
9149#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9150#  else
9151#    ifdef DL_LAZY
9152#      define LT_DLLAZY_OR_NOW		DL_LAZY
9153#    else
9154#      ifdef RTLD_NOW
9155#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9156#      else
9157#        ifdef DL_NOW
9158#          define LT_DLLAZY_OR_NOW	DL_NOW
9159#        else
9160#          define LT_DLLAZY_OR_NOW	0
9161#        endif
9162#      endif
9163#    endif
9164#  endif
9165#endif
9166
9167#ifdef __cplusplus
9168extern "C" void exit (int);
9169#endif
9170
9171void fnord() { int i=42;}
9172int main ()
9173{
9174  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9175  int status = $lt_dlunknown;
9176
9177  if (self)
9178    {
9179      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9180      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9181      /* dlclose (self); */
9182    }
9183  else
9184    puts (dlerror ());
9185
9186    exit (status);
9187}
9188EOF
9189  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190  (eval $ac_link) 2>&5
9191  ac_status=$?
9192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9194    (./conftest; exit; ) >&5 2>/dev/null
9195    lt_status=$?
9196    case x$lt_status in
9197      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9198      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9199      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9200    esac
9201  else :
9202    # compilation failed
9203    lt_cv_dlopen_self=no
9204  fi
9205fi
9206rm -fr conftest*
9207
9208
9209fi
9210echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9211echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9212
9213    if test "x$lt_cv_dlopen_self" = xyes; then
9214      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9215      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9216echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9217if test "${lt_cv_dlopen_self_static+set}" = set; then
9218  echo $ECHO_N "(cached) $ECHO_C" >&6
9219else
9220  	  if test "$cross_compiling" = yes; then :
9221  lt_cv_dlopen_self_static=cross
9222else
9223  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9224  lt_status=$lt_dlunknown
9225  cat > conftest.$ac_ext <<EOF
9226#line 9226 "configure"
9227#include "confdefs.h"
9228
9229#if HAVE_DLFCN_H
9230#include <dlfcn.h>
9231#endif
9232
9233#include <stdio.h>
9234
9235#ifdef RTLD_GLOBAL
9236#  define LT_DLGLOBAL		RTLD_GLOBAL
9237#else
9238#  ifdef DL_GLOBAL
9239#    define LT_DLGLOBAL		DL_GLOBAL
9240#  else
9241#    define LT_DLGLOBAL		0
9242#  endif
9243#endif
9244
9245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9246   find out it does not work in some platform. */
9247#ifndef LT_DLLAZY_OR_NOW
9248#  ifdef RTLD_LAZY
9249#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9250#  else
9251#    ifdef DL_LAZY
9252#      define LT_DLLAZY_OR_NOW		DL_LAZY
9253#    else
9254#      ifdef RTLD_NOW
9255#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9256#      else
9257#        ifdef DL_NOW
9258#          define LT_DLLAZY_OR_NOW	DL_NOW
9259#        else
9260#          define LT_DLLAZY_OR_NOW	0
9261#        endif
9262#      endif
9263#    endif
9264#  endif
9265#endif
9266
9267#ifdef __cplusplus
9268extern "C" void exit (int);
9269#endif
9270
9271void fnord() { int i=42;}
9272int main ()
9273{
9274  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9275  int status = $lt_dlunknown;
9276
9277  if (self)
9278    {
9279      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9280      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9281      /* dlclose (self); */
9282    }
9283  else
9284    puts (dlerror ());
9285
9286    exit (status);
9287}
9288EOF
9289  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290  (eval $ac_link) 2>&5
9291  ac_status=$?
9292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9294    (./conftest; exit; ) >&5 2>/dev/null
9295    lt_status=$?
9296    case x$lt_status in
9297      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9298      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9299      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9300    esac
9301  else :
9302    # compilation failed
9303    lt_cv_dlopen_self_static=no
9304  fi
9305fi
9306rm -fr conftest*
9307
9308
9309fi
9310echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9311echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9312    fi
9313
9314    CPPFLAGS="$save_CPPFLAGS"
9315    LDFLAGS="$save_LDFLAGS"
9316    LIBS="$save_LIBS"
9317    ;;
9318  esac
9319
9320  case $lt_cv_dlopen_self in
9321  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9322  *) enable_dlopen_self=unknown ;;
9323  esac
9324
9325  case $lt_cv_dlopen_self_static in
9326  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9327  *) enable_dlopen_self_static=unknown ;;
9328  esac
9329fi
9330
9331
9332# Report which library types will actually be built
9333echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9334echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9335echo "$as_me:$LINENO: result: $can_build_shared" >&5
9336echo "${ECHO_T}$can_build_shared" >&6
9337
9338echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9339echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9340test "$can_build_shared" = "no" && enable_shared=no
9341
9342# On AIX, shared libraries and static libraries use the same namespace, and
9343# are all built from PIC.
9344case $host_os in
9345aix3*)
9346  test "$enable_shared" = yes && enable_static=no
9347  if test -n "$RANLIB"; then
9348    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9349    postinstall_cmds='$RANLIB $lib'
9350  fi
9351  ;;
9352
9353aix4* | aix5*)
9354  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9355    test "$enable_shared" = yes && enable_static=no
9356  fi
9357    ;;
9358esac
9359echo "$as_me:$LINENO: result: $enable_shared" >&5
9360echo "${ECHO_T}$enable_shared" >&6
9361
9362echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9363echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9364# Make sure either enable_shared or enable_static is yes.
9365test "$enable_shared" = yes || enable_static=yes
9366echo "$as_me:$LINENO: result: $enable_static" >&5
9367echo "${ECHO_T}$enable_static" >&6
9368
9369# The else clause should only fire when bootstrapping the
9370# libtool distribution, otherwise you forgot to ship ltmain.sh
9371# with your package, and you will get complaints that there are
9372# no rules to generate ltmain.sh.
9373if test -f "$ltmain"; then
9374  # See if we are running on zsh, and set the options which allow our commands through
9375  # without removal of \ escapes.
9376  if test -n "${ZSH_VERSION+set}" ; then
9377    setopt NO_GLOB_SUBST
9378  fi
9379  # Now quote all the things that may contain metacharacters while being
9380  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9381  # variables and quote the copies for generation of the libtool script.
9382  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9383    SED SHELL STRIP \
9384    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9385    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9386    deplibs_check_method reload_flag reload_cmds need_locks \
9387    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9388    lt_cv_sys_global_symbol_to_c_name_address \
9389    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9390    old_postinstall_cmds old_postuninstall_cmds \
9391    compiler \
9392    CC \
9393    LD \
9394    lt_prog_compiler_wl \
9395    lt_prog_compiler_pic \
9396    lt_prog_compiler_static \
9397    lt_prog_compiler_no_builtin_flag \
9398    export_dynamic_flag_spec \
9399    thread_safe_flag_spec \
9400    whole_archive_flag_spec \
9401    enable_shared_with_static_runtimes \
9402    old_archive_cmds \
9403    old_archive_from_new_cmds \
9404    predep_objects \
9405    postdep_objects \
9406    predeps \
9407    postdeps \
9408    compiler_lib_search_path \
9409    archive_cmds \
9410    archive_expsym_cmds \
9411    postinstall_cmds \
9412    postuninstall_cmds \
9413    old_archive_from_expsyms_cmds \
9414    allow_undefined_flag \
9415    no_undefined_flag \
9416    export_symbols_cmds \
9417    hardcode_libdir_flag_spec \
9418    hardcode_libdir_flag_spec_ld \
9419    hardcode_libdir_separator \
9420    hardcode_automatic \
9421    module_cmds \
9422    module_expsym_cmds \
9423    lt_cv_prog_compiler_c_o \
9424    exclude_expsyms \
9425    include_expsyms; do
9426
9427    case $var in
9428    old_archive_cmds | \
9429    old_archive_from_new_cmds | \
9430    archive_cmds | \
9431    archive_expsym_cmds | \
9432    module_cmds | \
9433    module_expsym_cmds | \
9434    old_archive_from_expsyms_cmds | \
9435    export_symbols_cmds | \
9436    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9437    postinstall_cmds | postuninstall_cmds | \
9438    old_postinstall_cmds | old_postuninstall_cmds | \
9439    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9440      # Double-quote double-evaled strings.
9441      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9442      ;;
9443    *)
9444      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9445      ;;
9446    esac
9447  done
9448
9449  case $lt_echo in
9450  *'\$0 --fallback-echo"')
9451    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9452    ;;
9453  esac
9454
9455cfgfile="${ofile}T"
9456  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9457  $rm -f "$cfgfile"
9458  { echo "$as_me:$LINENO: creating $ofile" >&5
9459echo "$as_me: creating $ofile" >&6;}
9460
9461  cat <<__EOF__ >> "$cfgfile"
9462#! $SHELL
9463
9464# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9465# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9466# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9467#
9468# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9469# Free Software Foundation, Inc.
9470#
9471# This file is part of GNU Libtool:
9472# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9473#
9474# This program is free software; you can redistribute it and/or modify
9475# it under the terms of the GNU General Public License as published by
9476# the Free Software Foundation; either version 2 of the License, or
9477# (at your option) any later version.
9478#
9479# This program is distributed in the hope that it will be useful, but
9480# WITHOUT ANY WARRANTY; without even the implied warranty of
9481# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9482# General Public License for more details.
9483#
9484# You should have received a copy of the GNU General Public License
9485# along with this program; if not, write to the Free Software
9486# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9487#
9488# As a special exception to the GNU General Public License, if you
9489# distribute this file as part of a program that contains a
9490# configuration script generated by Autoconf, you may include it under
9491# the same distribution terms that you use for the rest of that program.
9492
9493# A sed program that does not truncate output.
9494SED=$lt_SED
9495
9496# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9497Xsed="$SED -e 1s/^X//"
9498
9499# The HP-UX ksh and POSIX shell print the target directory to stdout
9500# if CDPATH is set.
9501(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9502
9503# The names of the tagged configurations supported by this script.
9504available_tags=
9505
9506# ### BEGIN LIBTOOL CONFIG
9507
9508# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9509
9510# Shell to use when invoking shell scripts.
9511SHELL=$lt_SHELL
9512
9513# Whether or not to build shared libraries.
9514build_libtool_libs=$enable_shared
9515
9516# Whether or not to build static libraries.
9517build_old_libs=$enable_static
9518
9519# Whether or not to add -lc for building shared libraries.
9520build_libtool_need_lc=$archive_cmds_need_lc
9521
9522# Whether or not to disallow shared libs when runtime libs are static
9523allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9524
9525# Whether or not to optimize for fast installation.
9526fast_install=$enable_fast_install
9527
9528# The host system.
9529host_alias=$host_alias
9530host=$host
9531host_os=$host_os
9532
9533# The build system.
9534build_alias=$build_alias
9535build=$build
9536build_os=$build_os
9537
9538# An echo program that does not interpret backslashes.
9539echo=$lt_echo
9540
9541# The archiver.
9542AR=$lt_AR
9543AR_FLAGS=$lt_AR_FLAGS
9544
9545# A C compiler.
9546LTCC=$lt_LTCC
9547
9548# LTCC compiler flags.
9549LTCFLAGS=$lt_LTCFLAGS
9550
9551# A language-specific compiler.
9552CC=$lt_compiler
9553
9554# Is the compiler the GNU C compiler?
9555with_gcc=$GCC
9556
9557# An ERE matcher.
9558EGREP=$lt_EGREP
9559
9560# The linker used to build libraries.
9561LD=$lt_LD
9562
9563# Whether we need hard or soft links.
9564LN_S=$lt_LN_S
9565
9566# A BSD-compatible nm program.
9567NM=$lt_NM
9568
9569# A symbol stripping program
9570STRIP=$lt_STRIP
9571
9572# Used to examine libraries when file_magic_cmd begins "file"
9573MAGIC_CMD=$MAGIC_CMD
9574
9575# Used on cygwin: DLL creation program.
9576DLLTOOL="$DLLTOOL"
9577
9578# Used on cygwin: object dumper.
9579OBJDUMP="$OBJDUMP"
9580
9581# Used on cygwin: assembler.
9582AS="$AS"
9583
9584# The name of the directory that contains temporary libtool files.
9585objdir=$objdir
9586
9587# How to create reloadable object files.
9588reload_flag=$lt_reload_flag
9589reload_cmds=$lt_reload_cmds
9590
9591# How to pass a linker flag through the compiler.
9592wl=$lt_lt_prog_compiler_wl
9593
9594# Object file suffix (normally "o").
9595objext="$ac_objext"
9596
9597# Old archive suffix (normally "a").
9598libext="$libext"
9599
9600# Shared library suffix (normally ".so").
9601shrext_cmds='$shrext_cmds'
9602
9603# Executable file suffix (normally "").
9604exeext="$exeext"
9605
9606# Additional compiler flags for building library objects.
9607pic_flag=$lt_lt_prog_compiler_pic
9608pic_mode=$pic_mode
9609
9610# What is the maximum length of a command?
9611max_cmd_len=$lt_cv_sys_max_cmd_len
9612
9613# Does compiler simultaneously support -c and -o options?
9614compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9615
9616# Must we lock files when doing compilation?
9617need_locks=$lt_need_locks
9618
9619# Do we need the lib prefix for modules?
9620need_lib_prefix=$need_lib_prefix
9621
9622# Do we need a version for libraries?
9623need_version=$need_version
9624
9625# Whether dlopen is supported.
9626dlopen_support=$enable_dlopen
9627
9628# Whether dlopen of programs is supported.
9629dlopen_self=$enable_dlopen_self
9630
9631# Whether dlopen of statically linked programs is supported.
9632dlopen_self_static=$enable_dlopen_self_static
9633
9634# Compiler flag to prevent dynamic linking.
9635link_static_flag=$lt_lt_prog_compiler_static
9636
9637# Compiler flag to turn off builtin functions.
9638no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9639
9640# Compiler flag to allow reflexive dlopens.
9641export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9642
9643# Compiler flag to generate shared objects directly from archives.
9644whole_archive_flag_spec=$lt_whole_archive_flag_spec
9645
9646# Compiler flag to generate thread-safe objects.
9647thread_safe_flag_spec=$lt_thread_safe_flag_spec
9648
9649# Library versioning type.
9650version_type=$version_type
9651
9652# Format of library name prefix.
9653libname_spec=$lt_libname_spec
9654
9655# List of archive names.  First name is the real one, the rest are links.
9656# The last name is the one that the linker finds with -lNAME.
9657library_names_spec=$lt_library_names_spec
9658
9659# The coded name of the library, if different from the real name.
9660soname_spec=$lt_soname_spec
9661
9662# Commands used to build and install an old-style archive.
9663RANLIB=$lt_RANLIB
9664old_archive_cmds=$lt_old_archive_cmds
9665old_postinstall_cmds=$lt_old_postinstall_cmds
9666old_postuninstall_cmds=$lt_old_postuninstall_cmds
9667
9668# Create an old-style archive from a shared archive.
9669old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9670
9671# Create a temporary old-style archive to link instead of a shared archive.
9672old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9673
9674# Commands used to build and install a shared archive.
9675archive_cmds=$lt_archive_cmds
9676archive_expsym_cmds=$lt_archive_expsym_cmds
9677postinstall_cmds=$lt_postinstall_cmds
9678postuninstall_cmds=$lt_postuninstall_cmds
9679
9680# Commands used to build a loadable module (assumed same as above if empty)
9681module_cmds=$lt_module_cmds
9682module_expsym_cmds=$lt_module_expsym_cmds
9683
9684# Commands to strip libraries.
9685old_striplib=$lt_old_striplib
9686striplib=$lt_striplib
9687
9688# Dependencies to place before the objects being linked to create a
9689# shared library.
9690predep_objects=$lt_predep_objects
9691
9692# Dependencies to place after the objects being linked to create a
9693# shared library.
9694postdep_objects=$lt_postdep_objects
9695
9696# Dependencies to place before the objects being linked to create a
9697# shared library.
9698predeps=$lt_predeps
9699
9700# Dependencies to place after the objects being linked to create a
9701# shared library.
9702postdeps=$lt_postdeps
9703
9704# The library search path used internally by the compiler when linking
9705# a shared library.
9706compiler_lib_search_path=$lt_compiler_lib_search_path
9707
9708# Method to check whether dependent libraries are shared objects.
9709deplibs_check_method=$lt_deplibs_check_method
9710
9711# Command to use when deplibs_check_method == file_magic.
9712file_magic_cmd=$lt_file_magic_cmd
9713
9714# Flag that allows shared libraries with undefined symbols to be built.
9715allow_undefined_flag=$lt_allow_undefined_flag
9716
9717# Flag that forces no undefined symbols.
9718no_undefined_flag=$lt_no_undefined_flag
9719
9720# Commands used to finish a libtool library installation in a directory.
9721finish_cmds=$lt_finish_cmds
9722
9723# Same as above, but a single script fragment to be evaled but not shown.
9724finish_eval=$lt_finish_eval
9725
9726# Take the output of nm and produce a listing of raw symbols and C names.
9727global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9728
9729# Transform the output of nm in a proper C declaration
9730global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9731
9732# Transform the output of nm in a C name address pair
9733global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9734
9735# This is the shared library runtime path variable.
9736runpath_var=$runpath_var
9737
9738# This is the shared library path variable.
9739shlibpath_var=$shlibpath_var
9740
9741# Is shlibpath searched before the hard-coded library search path?
9742shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9743
9744# How to hardcode a shared library path into an executable.
9745hardcode_action=$hardcode_action
9746
9747# Whether we should hardcode library paths into libraries.
9748hardcode_into_libs=$hardcode_into_libs
9749
9750# Flag to hardcode \$libdir into a binary during linking.
9751# This must work even if \$libdir does not exist.
9752hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9753
9754# If ld is used when linking, flag to hardcode \$libdir into
9755# a binary during linking. This must work even if \$libdir does
9756# not exist.
9757hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9758
9759# Whether we need a single -rpath flag with a separated argument.
9760hardcode_libdir_separator=$lt_hardcode_libdir_separator
9761
9762# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9763# resulting binary.
9764hardcode_direct=$hardcode_direct
9765
9766# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9767# resulting binary.
9768hardcode_minus_L=$hardcode_minus_L
9769
9770# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9771# the resulting binary.
9772hardcode_shlibpath_var=$hardcode_shlibpath_var
9773
9774# Set to yes if building a shared library automatically hardcodes DIR into the library
9775# and all subsequent libraries and executables linked against it.
9776hardcode_automatic=$hardcode_automatic
9777
9778# Variables whose values should be saved in libtool wrapper scripts and
9779# restored at relink time.
9780variables_saved_for_relink="$variables_saved_for_relink"
9781
9782# Whether libtool must link a program against all its dependency libraries.
9783link_all_deplibs=$link_all_deplibs
9784
9785# Compile-time system search path for libraries
9786sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9787
9788# Run-time system search path for libraries
9789sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9790
9791# Fix the shell variable \$srcfile for the compiler.
9792fix_srcfile_path="$fix_srcfile_path"
9793
9794# Set to yes if exported symbols are required.
9795always_export_symbols=$always_export_symbols
9796
9797# The commands to list exported symbols.
9798export_symbols_cmds=$lt_export_symbols_cmds
9799
9800# The commands to extract the exported symbol list from a shared archive.
9801extract_expsyms_cmds=$lt_extract_expsyms_cmds
9802
9803# Symbols that should not be listed in the preloaded symbols.
9804exclude_expsyms=$lt_exclude_expsyms
9805
9806# Symbols that must always be exported.
9807include_expsyms=$lt_include_expsyms
9808
9809# ### END LIBTOOL CONFIG
9810
9811__EOF__
9812
9813
9814  case $host_os in
9815  aix3*)
9816    cat <<\EOF >> "$cfgfile"
9817
9818# AIX sometimes has problems with the GCC collect2 program.  For some
9819# reason, if we set the COLLECT_NAMES environment variable, the problems
9820# vanish in a puff of smoke.
9821if test "X${COLLECT_NAMES+set}" != Xset; then
9822  COLLECT_NAMES=
9823  export COLLECT_NAMES
9824fi
9825EOF
9826    ;;
9827  esac
9828
9829  # We use sed instead of cat because bash on DJGPP gets confused if
9830  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9831  # text mode, it properly converts lines to CR/LF.  This bash problem
9832  # is reportedly fixed, but why not run on old versions too?
9833  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9834
9835  mv -f "$cfgfile" "$ofile" || \
9836    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9837  chmod +x "$ofile"
9838
9839else
9840  # If there is no Makefile yet, we rely on a make rule to execute
9841  # `config.status --recheck' to rerun these tests and create the
9842  # libtool script then.
9843  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9844  if test -f "$ltmain_in"; then
9845    test -f Makefile && make "$ltmain"
9846  fi
9847fi
9848
9849
9850ac_ext=c
9851ac_cpp='$CPP $CPPFLAGS'
9852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9854ac_compiler_gnu=$ac_cv_c_compiler_gnu
9855
9856CC="$lt_save_CC"
9857
9858
9859# Check whether --with-tags or --without-tags was given.
9860if test "${with_tags+set}" = set; then
9861  withval="$with_tags"
9862  tagnames="$withval"
9863fi;
9864
9865if test -f "$ltmain" && test -n "$tagnames"; then
9866  if test ! -f "${ofile}"; then
9867    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9868echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9869  fi
9870
9871  if test -z "$LTCC"; then
9872    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9873    if test -z "$LTCC"; then
9874      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9875echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9876    else
9877      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9878echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9879    fi
9880  fi
9881  if test -z "$LTCFLAGS"; then
9882    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9883  fi
9884
9885  # Extract list of available tagged configurations in $ofile.
9886  # Note that this assumes the entire list is on one line.
9887  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9888
9889  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9890  for tagname in $tagnames; do
9891    IFS="$lt_save_ifs"
9892    # Check whether tagname contains only valid characters
9893    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9894    "") ;;
9895    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9896echo "$as_me: error: invalid tag name: $tagname" >&2;}
9897   { (exit 1); exit 1; }; }
9898	;;
9899    esac
9900
9901    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9902    then
9903      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9904echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9905   { (exit 1); exit 1; }; }
9906    fi
9907
9908    # Update the list of available tags.
9909    if test -n "$tagname"; then
9910      echo appending configuration tag \"$tagname\" to $ofile
9911
9912      case $tagname in
9913      CXX)
9914	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9915	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9916	    (test "X$CXX" != "Xg++"))) ; then
9917	  ac_ext=cc
9918ac_cpp='$CXXCPP $CPPFLAGS'
9919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9922
9923
9924
9925
9926archive_cmds_need_lc_CXX=no
9927allow_undefined_flag_CXX=
9928always_export_symbols_CXX=no
9929archive_expsym_cmds_CXX=
9930export_dynamic_flag_spec_CXX=
9931hardcode_direct_CXX=no
9932hardcode_libdir_flag_spec_CXX=
9933hardcode_libdir_flag_spec_ld_CXX=
9934hardcode_libdir_separator_CXX=
9935hardcode_minus_L_CXX=no
9936hardcode_shlibpath_var_CXX=unsupported
9937hardcode_automatic_CXX=no
9938module_cmds_CXX=
9939module_expsym_cmds_CXX=
9940link_all_deplibs_CXX=unknown
9941old_archive_cmds_CXX=$old_archive_cmds
9942no_undefined_flag_CXX=
9943whole_archive_flag_spec_CXX=
9944enable_shared_with_static_runtimes_CXX=no
9945
9946# Dependencies to place before and after the object being linked:
9947predep_objects_CXX=
9948postdep_objects_CXX=
9949predeps_CXX=
9950postdeps_CXX=
9951compiler_lib_search_path_CXX=
9952
9953# Source file extension for C++ test sources.
9954ac_ext=cpp
9955
9956# Object file extension for compiled C++ test sources.
9957objext=o
9958objext_CXX=$objext
9959
9960# Code to be used in simple compile tests
9961lt_simple_compile_test_code="int some_variable = 0;\n"
9962
9963# Code to be used in simple link tests
9964lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9965
9966# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9967
9968# If no C compiler was specified, use CC.
9969LTCC=${LTCC-"$CC"}
9970
9971# If no C compiler flags were specified, use CFLAGS.
9972LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9973
9974# Allow CC to be a program name with arguments.
9975compiler=$CC
9976
9977
9978# save warnings/boilerplate of simple test code
9979ac_outfile=conftest.$ac_objext
9980printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9981eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9982_lt_compiler_boilerplate=`cat conftest.err`
9983$rm conftest*
9984
9985ac_outfile=conftest.$ac_objext
9986printf "$lt_simple_link_test_code" >conftest.$ac_ext
9987eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9988_lt_linker_boilerplate=`cat conftest.err`
9989$rm conftest*
9990
9991
9992# Allow CC to be a program name with arguments.
9993lt_save_CC=$CC
9994lt_save_LD=$LD
9995lt_save_GCC=$GCC
9996GCC=$GXX
9997lt_save_with_gnu_ld=$with_gnu_ld
9998lt_save_path_LD=$lt_cv_path_LD
9999if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10000  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10001else
10002  $as_unset lt_cv_prog_gnu_ld
10003fi
10004if test -n "${lt_cv_path_LDCXX+set}"; then
10005  lt_cv_path_LD=$lt_cv_path_LDCXX
10006else
10007  $as_unset lt_cv_path_LD
10008fi
10009test -z "${LDCXX+set}" || LD=$LDCXX
10010CC=${CXX-"c++"}
10011compiler=$CC
10012compiler_CXX=$CC
10013for cc_temp in $compiler""; do
10014  case $cc_temp in
10015    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10016    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10017    \-*) ;;
10018    *) break;;
10019  esac
10020done
10021cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10022
10023
10024# We don't want -fno-exception wen compiling C++ code, so set the
10025# no_builtin_flag separately
10026if test "$GXX" = yes; then
10027  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10028else
10029  lt_prog_compiler_no_builtin_flag_CXX=
10030fi
10031
10032if test "$GXX" = yes; then
10033  # Set up default GNU C++ configuration
10034
10035
10036# Check whether --with-gnu-ld or --without-gnu-ld was given.
10037if test "${with_gnu_ld+set}" = set; then
10038  withval="$with_gnu_ld"
10039  test "$withval" = no || with_gnu_ld=yes
10040else
10041  with_gnu_ld=no
10042fi;
10043ac_prog=ld
10044if test "$GCC" = yes; then
10045  # Check if gcc -print-prog-name=ld gives a path.
10046  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10047echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10048  case $host in
10049  *-*-mingw*)
10050    # gcc leaves a trailing carriage return which upsets mingw
10051    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10052  *)
10053    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10054  esac
10055  case $ac_prog in
10056    # Accept absolute paths.
10057    [\\/]* | ?:[\\/]*)
10058      re_direlt='/[^/][^/]*/\.\./'
10059      # Canonicalize the pathname of ld
10060      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10061      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10062	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10063      done
10064      test -z "$LD" && LD="$ac_prog"
10065      ;;
10066  "")
10067    # If it fails, then pretend we aren't using GCC.
10068    ac_prog=ld
10069    ;;
10070  *)
10071    # If it is relative, then search for the first ld in PATH.
10072    with_gnu_ld=unknown
10073    ;;
10074  esac
10075elif test "$with_gnu_ld" = yes; then
10076  echo "$as_me:$LINENO: checking for GNU ld" >&5
10077echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10078else
10079  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10080echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10081fi
10082if test "${lt_cv_path_LD+set}" = set; then
10083  echo $ECHO_N "(cached) $ECHO_C" >&6
10084else
10085  if test -z "$LD"; then
10086  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10087  for ac_dir in $PATH; do
10088    IFS="$lt_save_ifs"
10089    test -z "$ac_dir" && ac_dir=.
10090    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10091      lt_cv_path_LD="$ac_dir/$ac_prog"
10092      # Check to see if the program is GNU ld.  I'd rather use --version,
10093      # but apparently some variants of GNU ld only accept -v.
10094      # Break only if it was the GNU/non-GNU ld that we prefer.
10095      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10096      *GNU* | *'with BFD'*)
10097	test "$with_gnu_ld" != no && break
10098	;;
10099      *)
10100	test "$with_gnu_ld" != yes && break
10101	;;
10102      esac
10103    fi
10104  done
10105  IFS="$lt_save_ifs"
10106else
10107  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10108fi
10109fi
10110
10111LD="$lt_cv_path_LD"
10112if test -n "$LD"; then
10113  echo "$as_me:$LINENO: result: $LD" >&5
10114echo "${ECHO_T}$LD" >&6
10115else
10116  echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6
10118fi
10119test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10120echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10121   { (exit 1); exit 1; }; }
10122echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10123echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10124if test "${lt_cv_prog_gnu_ld+set}" = set; then
10125  echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10128case `$LD -v 2>&1 </dev/null` in
10129*GNU* | *'with BFD'*)
10130  lt_cv_prog_gnu_ld=yes
10131  ;;
10132*)
10133  lt_cv_prog_gnu_ld=no
10134  ;;
10135esac
10136fi
10137echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10138echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10139with_gnu_ld=$lt_cv_prog_gnu_ld
10140
10141
10142
10143  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10144  # archiving commands below assume that GNU ld is being used.
10145  if test "$with_gnu_ld" = yes; then
10146    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10147    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'
10148
10149    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10150    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10151
10152    # If archive_cmds runs LD, not CC, wlarc should be empty
10153    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10154    #     investigate it a little bit more. (MM)
10155    wlarc='${wl}'
10156
10157    # ancient GNU ld didn't support --whole-archive et. al.
10158    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10159	grep 'no-whole-archive' > /dev/null; then
10160      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10161    else
10162      whole_archive_flag_spec_CXX=
10163    fi
10164  else
10165    with_gnu_ld=no
10166    wlarc=
10167
10168    # A generic and very simple default shared library creation
10169    # command for GNU C++ for the case where it uses the native
10170    # linker, instead of GNU ld.  If possible, this setting should
10171    # overridden to take advantage of the native linker features on
10172    # the platform it is being used on.
10173    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10174  fi
10175
10176  # Commands to make compiler produce verbose output that lists
10177  # what "hidden" libraries, object files and flags are used when
10178  # linking a shared library.
10179  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10180
10181else
10182  GXX=no
10183  with_gnu_ld=no
10184  wlarc=
10185fi
10186
10187# PORTME: fill in a description of your system's C++ link characteristics
10188echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10189echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10190ld_shlibs_CXX=yes
10191case $host_os in
10192  aix3*)
10193    # FIXME: insert proper C++ library support
10194    ld_shlibs_CXX=no
10195    ;;
10196  aix4* | aix5*)
10197    if test "$host_cpu" = ia64; then
10198      # On IA64, the linker does run time linking by default, so we don't
10199      # have to do anything special.
10200      aix_use_runtimelinking=no
10201      exp_sym_flag='-Bexport'
10202      no_entry_flag=""
10203    else
10204      aix_use_runtimelinking=no
10205
10206      # Test if we are trying to use run time linking or normal
10207      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10208      # need to do runtime linking.
10209      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10210	for ld_flag in $LDFLAGS; do
10211	  case $ld_flag in
10212	  *-brtl*)
10213	    aix_use_runtimelinking=yes
10214	    break
10215	    ;;
10216	  esac
10217	done
10218	;;
10219      esac
10220
10221      exp_sym_flag='-bexport'
10222      no_entry_flag='-bnoentry'
10223    fi
10224
10225    # When large executables or shared objects are built, AIX ld can
10226    # have problems creating the table of contents.  If linking a library
10227    # or program results in "error TOC overflow" add -mminimal-toc to
10228    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10229    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10230
10231    archive_cmds_CXX=''
10232    hardcode_direct_CXX=yes
10233    hardcode_libdir_separator_CXX=':'
10234    link_all_deplibs_CXX=yes
10235
10236    if test "$GXX" = yes; then
10237      case $host_os in aix4.[012]|aix4.[012].*)
10238      # We only want to do this on AIX 4.2 and lower, the check
10239      # below for broken collect2 doesn't work under 4.3+
10240	collect2name=`${CC} -print-prog-name=collect2`
10241	if test -f "$collect2name" && \
10242	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10243	then
10244	  # We have reworked collect2
10245	  hardcode_direct_CXX=yes
10246	else
10247	  # We have old collect2
10248	  hardcode_direct_CXX=unsupported
10249	  # It fails to find uninstalled libraries when the uninstalled
10250	  # path is not listed in the libpath.  Setting hardcode_minus_L
10251	  # to unsupported forces relinking
10252	  hardcode_minus_L_CXX=yes
10253	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10254	  hardcode_libdir_separator_CXX=
10255	fi
10256	;;
10257      esac
10258      shared_flag='-shared'
10259      if test "$aix_use_runtimelinking" = yes; then
10260	shared_flag="$shared_flag "'${wl}-G'
10261      fi
10262    else
10263      # not using gcc
10264      if test "$host_cpu" = ia64; then
10265	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10266	# chokes on -Wl,-G. The following line is correct:
10267	shared_flag='-G'
10268      else
10269	if test "$aix_use_runtimelinking" = yes; then
10270	  shared_flag='${wl}-G'
10271	else
10272	  shared_flag='${wl}-bM:SRE'
10273	fi
10274      fi
10275    fi
10276
10277    # It seems that -bexpall does not export symbols beginning with
10278    # underscore (_), so it is better to generate a list of symbols to export.
10279    always_export_symbols_CXX=yes
10280    if test "$aix_use_runtimelinking" = yes; then
10281      # Warning - without using the other runtime loading flags (-brtl),
10282      # -berok will link without error, but may produce a broken library.
10283      allow_undefined_flag_CXX='-berok'
10284      # Determine the default libpath from the value encoded in an empty executable.
10285      cat >conftest.$ac_ext <<_ACEOF
10286/* confdefs.h.  */
10287_ACEOF
10288cat confdefs.h >>conftest.$ac_ext
10289cat >>conftest.$ac_ext <<_ACEOF
10290/* end confdefs.h.  */
10291
10292int
10293main ()
10294{
10295
10296  ;
10297  return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext conftest$ac_exeext
10301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10302  (eval $ac_link) 2>conftest.er1
10303  ac_status=$?
10304  grep -v '^ *+' conftest.er1 >conftest.err
10305  rm -f conftest.er1
10306  cat conftest.err >&5
10307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308  (exit $ac_status); } &&
10309	 { ac_try='test -z "$ac_cxx_werror_flag"
10310			 || test ! -s conftest.err'
10311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312  (eval $ac_try) 2>&5
10313  ac_status=$?
10314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315  (exit $ac_status); }; } &&
10316	 { ac_try='test -s conftest$ac_exeext'
10317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318  (eval $ac_try) 2>&5
10319  ac_status=$?
10320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321  (exit $ac_status); }; }; then
10322
10323aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10324}'`
10325# Check for a 64-bit object if we didn't find anything.
10326if 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; }
10327}'`; fi
10328else
10329  echo "$as_me: failed program was:" >&5
10330sed 's/^/| /' conftest.$ac_ext >&5
10331
10332fi
10333rm -f conftest.err conftest.$ac_objext \
10334      conftest$ac_exeext conftest.$ac_ext
10335if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10336
10337      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10338
10339      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"
10340     else
10341      if test "$host_cpu" = ia64; then
10342	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10343	allow_undefined_flag_CXX="-z nodefs"
10344	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"
10345      else
10346	# Determine the default libpath from the value encoded in an empty executable.
10347	cat >conftest.$ac_ext <<_ACEOF
10348/* confdefs.h.  */
10349_ACEOF
10350cat confdefs.h >>conftest.$ac_ext
10351cat >>conftest.$ac_ext <<_ACEOF
10352/* end confdefs.h.  */
10353
10354int
10355main ()
10356{
10357
10358  ;
10359  return 0;
10360}
10361_ACEOF
10362rm -f conftest.$ac_objext conftest$ac_exeext
10363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364  (eval $ac_link) 2>conftest.er1
10365  ac_status=$?
10366  grep -v '^ *+' conftest.er1 >conftest.err
10367  rm -f conftest.er1
10368  cat conftest.err >&5
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); } &&
10371	 { ac_try='test -z "$ac_cxx_werror_flag"
10372			 || test ! -s conftest.err'
10373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374  (eval $ac_try) 2>&5
10375  ac_status=$?
10376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377  (exit $ac_status); }; } &&
10378	 { ac_try='test -s conftest$ac_exeext'
10379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380  (eval $ac_try) 2>&5
10381  ac_status=$?
10382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383  (exit $ac_status); }; }; then
10384
10385aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10386}'`
10387# Check for a 64-bit object if we didn't find anything.
10388if 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; }
10389}'`; fi
10390else
10391  echo "$as_me: failed program was:" >&5
10392sed 's/^/| /' conftest.$ac_ext >&5
10393
10394fi
10395rm -f conftest.err conftest.$ac_objext \
10396      conftest$ac_exeext conftest.$ac_ext
10397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10398
10399	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10400	# Warning - without using the other run time loading flags,
10401	# -berok will link without error, but may produce a broken library.
10402	no_undefined_flag_CXX=' ${wl}-bernotok'
10403	allow_undefined_flag_CXX=' ${wl}-berok'
10404	# Exported symbols can be pulled into shared objects from archives
10405	whole_archive_flag_spec_CXX='$convenience'
10406	archive_cmds_need_lc_CXX=yes
10407	# This is similar to how AIX traditionally builds its shared libraries.
10408	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'
10409      fi
10410    fi
10411    ;;
10412
10413  beos*)
10414    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10415      allow_undefined_flag_CXX=unsupported
10416      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10417      # support --undefined.  This deserves some investigation.  FIXME
10418      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10419    else
10420      ld_shlibs_CXX=no
10421    fi
10422    ;;
10423
10424  chorus*)
10425    case $cc_basename in
10426      *)
10427	# FIXME: insert proper C++ library support
10428	ld_shlibs_CXX=no
10429	;;
10430    esac
10431    ;;
10432
10433  cygwin* | mingw* | pw32*)
10434    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10435    # as there is no search path for DLLs.
10436    hardcode_libdir_flag_spec_CXX='-L$libdir'
10437    allow_undefined_flag_CXX=unsupported
10438    always_export_symbols_CXX=no
10439    enable_shared_with_static_runtimes_CXX=yes
10440
10441    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10442      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'
10443      # If the export-symbols file already is a .def file (1st line
10444      # is EXPORTS), use it as is; otherwise, prepend...
10445      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10446	cp $export_symbols $output_objdir/$soname.def;
10447      else
10448	echo EXPORTS > $output_objdir/$soname.def;
10449	cat $export_symbols >> $output_objdir/$soname.def;
10450      fi~
10451      $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'
10452    else
10453      ld_shlibs_CXX=no
10454    fi
10455  ;;
10456      darwin* | rhapsody*)
10457        case $host_os in
10458        rhapsody* | darwin1.[012])
10459         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10460         ;;
10461       *) # Darwin 1.3 on
10462         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10463           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10464         else
10465           case ${MACOSX_DEPLOYMENT_TARGET} in
10466             10.[012])
10467               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10468               ;;
10469             10.*)
10470               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10471               ;;
10472           esac
10473         fi
10474         ;;
10475        esac
10476      archive_cmds_need_lc_CXX=no
10477      hardcode_direct_CXX=no
10478      hardcode_automatic_CXX=yes
10479      hardcode_shlibpath_var_CXX=unsupported
10480      whole_archive_flag_spec_CXX=''
10481      link_all_deplibs_CXX=yes
10482
10483    if test "$GXX" = yes ; then
10484      lt_int_apple_cc_single_mod=no
10485      output_verbose_link_cmd='echo'
10486      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10487       lt_int_apple_cc_single_mod=yes
10488      fi
10489      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10490       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10491      else
10492          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'
10493        fi
10494        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10495        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10496          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10497            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}'
10498          else
10499            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}'
10500          fi
10501            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}'
10502      else
10503      case $cc_basename in
10504        xlc*)
10505         output_verbose_link_cmd='echo'
10506          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'
10507          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10508          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10509          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}'
10510          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}'
10511          ;;
10512       *)
10513         ld_shlibs_CXX=no
10514          ;;
10515      esac
10516      fi
10517        ;;
10518
10519  dgux*)
10520    case $cc_basename in
10521      ec++*)
10522	# FIXME: insert proper C++ library support
10523	ld_shlibs_CXX=no
10524	;;
10525      ghcx*)
10526	# Green Hills C++ Compiler
10527	# FIXME: insert proper C++ library support
10528	ld_shlibs_CXX=no
10529	;;
10530      *)
10531	# FIXME: insert proper C++ library support
10532	ld_shlibs_CXX=no
10533	;;
10534    esac
10535    ;;
10536  freebsd[12]*)
10537    # C++ shared libraries reported to be fairly broken before switch to ELF
10538    ld_shlibs_CXX=no
10539    ;;
10540  freebsd-elf*)
10541    archive_cmds_need_lc_CXX=no
10542    ;;
10543  freebsd* | kfreebsd*-gnu | dragonfly*)
10544    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10545    # conventions
10546    ld_shlibs_CXX=yes
10547    ;;
10548  gnu*)
10549    ;;
10550  hpux9*)
10551    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10552    hardcode_libdir_separator_CXX=:
10553    export_dynamic_flag_spec_CXX='${wl}-E'
10554    hardcode_direct_CXX=yes
10555    hardcode_minus_L_CXX=yes # Not in the search PATH,
10556				# but as the default
10557				# location of the library.
10558
10559    case $cc_basename in
10560    CC*)
10561      # FIXME: insert proper C++ library support
10562      ld_shlibs_CXX=no
10563      ;;
10564    aCC*)
10565      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'
10566      # Commands to make compiler produce verbose output that lists
10567      # what "hidden" libraries, object files and flags are used when
10568      # linking a shared library.
10569      #
10570      # There doesn't appear to be a way to prevent this compiler from
10571      # explicitly linking system object files so we need to strip them
10572      # from the output so that they don't get included in the library
10573      # dependencies.
10574      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'
10575      ;;
10576    *)
10577      if test "$GXX" = yes; then
10578        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'
10579      else
10580        # FIXME: insert proper C++ library support
10581        ld_shlibs_CXX=no
10582      fi
10583      ;;
10584    esac
10585    ;;
10586  hpux10*|hpux11*)
10587    if test $with_gnu_ld = no; then
10588      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10589      hardcode_libdir_separator_CXX=:
10590
10591      case $host_cpu in
10592      hppa*64*|ia64*)
10593	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10594        ;;
10595      *)
10596	export_dynamic_flag_spec_CXX='${wl}-E'
10597        ;;
10598      esac
10599    fi
10600    case $host_cpu in
10601    hppa*64*|ia64*)
10602      hardcode_direct_CXX=no
10603      hardcode_shlibpath_var_CXX=no
10604      ;;
10605    *)
10606      hardcode_direct_CXX=yes
10607      hardcode_minus_L_CXX=yes # Not in the search PATH,
10608					      # but as the default
10609					      # location of the library.
10610      ;;
10611    esac
10612
10613    case $cc_basename in
10614      CC*)
10615	# FIXME: insert proper C++ library support
10616	ld_shlibs_CXX=no
10617	;;
10618      aCC*)
10619	case $host_cpu in
10620	hppa*64*)
10621	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10622	  ;;
10623	ia64*)
10624	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10625	  ;;
10626	*)
10627	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10628	  ;;
10629	esac
10630	# Commands to make compiler produce verbose output that lists
10631	# what "hidden" libraries, object files and flags are used when
10632	# linking a shared library.
10633	#
10634	# There doesn't appear to be a way to prevent this compiler from
10635	# explicitly linking system object files so we need to strip them
10636	# from the output so that they don't get included in the library
10637	# dependencies.
10638	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'
10639	;;
10640      *)
10641	if test "$GXX" = yes; then
10642	  if test $with_gnu_ld = no; then
10643	    case $host_cpu in
10644	    hppa*64*)
10645	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10646	      ;;
10647	    ia64*)
10648	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10649	      ;;
10650	    *)
10651	      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'
10652	      ;;
10653	    esac
10654	  fi
10655	else
10656	  # FIXME: insert proper C++ library support
10657	  ld_shlibs_CXX=no
10658	fi
10659	;;
10660    esac
10661    ;;
10662  interix3*)
10663    hardcode_direct_CXX=no
10664    hardcode_shlibpath_var_CXX=no
10665    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10666    export_dynamic_flag_spec_CXX='${wl}-E'
10667    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10668    # Instead, shared libraries are loaded at an image base (0x10000000 by
10669    # default) and relocated if they conflict, which is a slow very memory
10670    # consuming and fragmenting process.  To avoid this, we pick a random,
10671    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10672    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10673    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'
10674    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'
10675    ;;
10676  irix5* | irix6*)
10677    case $cc_basename in
10678      CC*)
10679	# SGI C++
10680	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'
10681
10682	# Archives containing C++ object files must be created using
10683	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10684	# necessary to make sure instantiated templates are included
10685	# in the archive.
10686	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10687	;;
10688      *)
10689	if test "$GXX" = yes; then
10690	  if test "$with_gnu_ld" = no; then
10691	    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'
10692	  else
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` -o $lib'
10694	  fi
10695	fi
10696	link_all_deplibs_CXX=yes
10697	;;
10698    esac
10699    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10700    hardcode_libdir_separator_CXX=:
10701    ;;
10702  linux*)
10703    case $cc_basename in
10704      KCC*)
10705	# Kuck and Associates, Inc. (KAI) C++ Compiler
10706
10707	# KCC will only create a shared library if the output file
10708	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10709	# to its proper name (with version) after linking.
10710	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'
10711	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'
10712	# Commands to make compiler produce verbose output that lists
10713	# what "hidden" libraries, object files and flags are used when
10714	# linking a shared library.
10715	#
10716	# There doesn't appear to be a way to prevent this compiler from
10717	# explicitly linking system object files so we need to strip them
10718	# from the output so that they don't get included in the library
10719	# dependencies.
10720	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'
10721
10722	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10723	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10724
10725	# Archives containing C++ object files must be created using
10726	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10727	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10728	;;
10729      icpc*)
10730	# Intel C++
10731	with_gnu_ld=yes
10732	# version 8.0 and above of icpc choke on multiply defined symbols
10733	# if we add $predep_objects and $postdep_objects, however 7.1 and
10734	# earlier do not add the objects themselves.
10735	case `$CC -V 2>&1` in
10736	*"Version 7."*)
10737  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10738  	  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'
10739	  ;;
10740	*)  # Version 8.0 or newer
10741	  tmp_idyn=
10742	  case $host_cpu in
10743	    ia64*) tmp_idyn=' -i_dynamic';;
10744	  esac
10745  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10746	  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'
10747	  ;;
10748	esac
10749	archive_cmds_need_lc_CXX=no
10750	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10751	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10752	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10753	;;
10754      pgCC*)
10755        # Portland Group C++ compiler
10756	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10757  	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'
10758
10759	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10760	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10761	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'
10762        ;;
10763      cxx*)
10764	# Compaq C++
10765	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10766	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'
10767
10768	runpath_var=LD_RUN_PATH
10769	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10770	hardcode_libdir_separator_CXX=:
10771
10772	# Commands to make compiler produce verbose output that lists
10773	# what "hidden" libraries, object files and flags are used when
10774	# linking a shared library.
10775	#
10776	# There doesn't appear to be a way to prevent this compiler from
10777	# explicitly linking system object files so we need to strip them
10778	# from the output so that they don't get included in the library
10779	# dependencies.
10780	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'
10781	;;
10782    esac
10783    ;;
10784  lynxos*)
10785    # FIXME: insert proper C++ library support
10786    ld_shlibs_CXX=no
10787    ;;
10788  m88k*)
10789    # FIXME: insert proper C++ library support
10790    ld_shlibs_CXX=no
10791    ;;
10792  mvs*)
10793    case $cc_basename in
10794      cxx*)
10795	# FIXME: insert proper C++ library support
10796	ld_shlibs_CXX=no
10797	;;
10798      *)
10799	# FIXME: insert proper C++ library support
10800	ld_shlibs_CXX=no
10801	;;
10802    esac
10803    ;;
10804  netbsd*)
10805    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10806      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10807      wlarc=
10808      hardcode_libdir_flag_spec_CXX='-R$libdir'
10809      hardcode_direct_CXX=yes
10810      hardcode_shlibpath_var_CXX=no
10811    fi
10812    # Workaround some broken pre-1.5 toolchains
10813    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10814    ;;
10815  openbsd2*)
10816    # C++ shared libraries are fairly broken
10817    ld_shlibs_CXX=no
10818    ;;
10819  openbsd*)
10820    hardcode_direct_CXX=yes
10821    hardcode_shlibpath_var_CXX=no
10822    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10823    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10824    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10825      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10826      export_dynamic_flag_spec_CXX='${wl}-E'
10827      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10828    fi
10829    output_verbose_link_cmd='echo'
10830    ;;
10831  osf3*)
10832    case $cc_basename in
10833      KCC*)
10834	# Kuck and Associates, Inc. (KAI) C++ Compiler
10835
10836	# KCC will only create a shared library if the output file
10837	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10838	# to its proper name (with version) after linking.
10839	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'
10840
10841	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10842	hardcode_libdir_separator_CXX=:
10843
10844	# Archives containing C++ object files must be created using
10845	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10846	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10847
10848	;;
10849      RCC*)
10850	# Rational C++ 2.4.1
10851	# FIXME: insert proper C++ library support
10852	ld_shlibs_CXX=no
10853	;;
10854      cxx*)
10855	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10856	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'
10857
10858	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10859	hardcode_libdir_separator_CXX=:
10860
10861	# Commands to make compiler produce verbose output that lists
10862	# what "hidden" libraries, object files and flags are used when
10863	# linking a shared library.
10864	#
10865	# There doesn't appear to be a way to prevent this compiler from
10866	# explicitly linking system object files so we need to strip them
10867	# from the output so that they don't get included in the library
10868	# dependencies.
10869	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'
10870	;;
10871      *)
10872	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10873	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10874	  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'
10875
10876	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10877	  hardcode_libdir_separator_CXX=:
10878
10879	  # Commands to make compiler produce verbose output that lists
10880	  # what "hidden" libraries, object files and flags are used when
10881	  # linking a shared library.
10882	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10883
10884	else
10885	  # FIXME: insert proper C++ library support
10886	  ld_shlibs_CXX=no
10887	fi
10888	;;
10889    esac
10890    ;;
10891  osf4* | osf5*)
10892    case $cc_basename in
10893      KCC*)
10894	# Kuck and Associates, Inc. (KAI) C++ Compiler
10895
10896	# KCC will only create a shared library if the output file
10897	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10898	# to its proper name (with version) after linking.
10899	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'
10900
10901	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10902	hardcode_libdir_separator_CXX=:
10903
10904	# Archives containing C++ object files must be created using
10905	# the KAI C++ compiler.
10906	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10907	;;
10908      RCC*)
10909	# Rational C++ 2.4.1
10910	# FIXME: insert proper C++ library support
10911	ld_shlibs_CXX=no
10912	;;
10913      cxx*)
10914	allow_undefined_flag_CXX=' -expect_unresolved \*'
10915	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'
10916	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10917	  echo "-hidden">> $lib.exp~
10918	  $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~
10919	  $rm $lib.exp'
10920
10921	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10922	hardcode_libdir_separator_CXX=:
10923
10924	# Commands to make compiler produce verbose output that lists
10925	# what "hidden" libraries, object files and flags are used when
10926	# linking a shared library.
10927	#
10928	# There doesn't appear to be a way to prevent this compiler from
10929	# explicitly linking system object files so we need to strip them
10930	# from the output so that they don't get included in the library
10931	# dependencies.
10932	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'
10933	;;
10934      *)
10935	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10936	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10937	 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'
10938
10939	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10940	  hardcode_libdir_separator_CXX=:
10941
10942	  # Commands to make compiler produce verbose output that lists
10943	  # what "hidden" libraries, object files and flags are used when
10944	  # linking a shared library.
10945	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10946
10947	else
10948	  # FIXME: insert proper C++ library support
10949	  ld_shlibs_CXX=no
10950	fi
10951	;;
10952    esac
10953    ;;
10954  psos*)
10955    # FIXME: insert proper C++ library support
10956    ld_shlibs_CXX=no
10957    ;;
10958  sunos4*)
10959    case $cc_basename in
10960      CC*)
10961	# Sun C++ 4.x
10962	# FIXME: insert proper C++ library support
10963	ld_shlibs_CXX=no
10964	;;
10965      lcc*)
10966	# Lucid
10967	# FIXME: insert proper C++ library support
10968	ld_shlibs_CXX=no
10969	;;
10970      *)
10971	# FIXME: insert proper C++ library support
10972	ld_shlibs_CXX=no
10973	;;
10974    esac
10975    ;;
10976  solaris*)
10977    case $cc_basename in
10978      CC*)
10979	# Sun C++ 4.2, 5.x and Centerline C++
10980        archive_cmds_need_lc_CXX=yes
10981	no_undefined_flag_CXX=' -zdefs'
10982	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10983	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10984	$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'
10985
10986	hardcode_libdir_flag_spec_CXX='-R$libdir'
10987	hardcode_shlibpath_var_CXX=no
10988	case $host_os in
10989	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10990	  *)
10991	    # The C++ compiler is used as linker so we must use $wl
10992	    # flag to pass the commands to the underlying system
10993	    # linker. We must also pass each convience library through
10994	    # to the system linker between allextract/defaultextract.
10995	    # The C++ compiler will combine linker options so we
10996	    # cannot just pass the convience library names through
10997	    # without $wl.
10998	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10999	    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'
11000	    ;;
11001	esac
11002	link_all_deplibs_CXX=yes
11003
11004	output_verbose_link_cmd='echo'
11005
11006	# Archives containing C++ object files must be created using
11007	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11008	# necessary to make sure instantiated templates are included
11009	# in the archive.
11010	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11011	;;
11012      gcx*)
11013	# Green Hills C++ Compiler
11014	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11015
11016	# The C++ compiler must be used to create the archive.
11017	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11018	;;
11019      *)
11020	# GNU C++ compiler with Solaris linker
11021	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11022	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11023	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11024	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11025	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11026		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11027
11028	    # Commands to make compiler produce verbose output that lists
11029	    # what "hidden" libraries, object files and flags are used when
11030	    # linking a shared library.
11031	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11032	  else
11033	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11034	    # platform.
11035	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11036	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11037		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11038
11039	    # Commands to make compiler produce verbose output that lists
11040	    # what "hidden" libraries, object files and flags are used when
11041	    # linking a shared library.
11042	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11043	  fi
11044
11045	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11046	fi
11047	;;
11048    esac
11049    ;;
11050  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11051    no_undefined_flag_CXX='${wl}-z,text'
11052    archive_cmds_need_lc_CXX=no
11053    hardcode_shlibpath_var_CXX=no
11054    runpath_var='LD_RUN_PATH'
11055
11056    case $cc_basename in
11057      CC*)
11058	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060	;;
11061      *)
11062	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11063	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11064	;;
11065    esac
11066    ;;
11067  sysv5* | sco3.2v5* | sco5v6*)
11068    # Note: We can NOT use -z defs as we might desire, because we do not
11069    # link with -lc, and that would cause any symbols used from libc to
11070    # always be unresolved, which means just about no library would
11071    # ever link correctly.  If we're not using GNU ld we use -z text
11072    # though, which does catch some bad symbols but isn't as heavy-handed
11073    # as -z defs.
11074    # For security reasons, it is highly recommended that you always
11075    # use absolute paths for naming shared libraries, and exclude the
11076    # DT_RUNPATH tag from executables and libraries.  But doing so
11077    # requires that you compile everything twice, which is a pain.
11078    # So that behaviour is only enabled if SCOABSPATH is set to a
11079    # non-empty value in the environment.  Most likely only useful for
11080    # creating official distributions of packages.
11081    # This is a hack until libtool officially supports absolute path
11082    # names for shared libraries.
11083    no_undefined_flag_CXX='${wl}-z,text'
11084    allow_undefined_flag_CXX='${wl}-z,nodefs'
11085    archive_cmds_need_lc_CXX=no
11086    hardcode_shlibpath_var_CXX=no
11087    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11088    hardcode_libdir_separator_CXX=':'
11089    link_all_deplibs_CXX=yes
11090    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11091    runpath_var='LD_RUN_PATH'
11092
11093    case $cc_basename in
11094      CC*)
11095	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11096	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11097	;;
11098      *)
11099	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11100	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11101	;;
11102    esac
11103    ;;
11104  tandem*)
11105    case $cc_basename in
11106      NCC*)
11107	# NonStop-UX NCC 3.20
11108	# FIXME: insert proper C++ library support
11109	ld_shlibs_CXX=no
11110	;;
11111      *)
11112	# FIXME: insert proper C++ library support
11113	ld_shlibs_CXX=no
11114	;;
11115    esac
11116    ;;
11117  vxworks*)
11118    # FIXME: insert proper C++ library support
11119    ld_shlibs_CXX=no
11120    ;;
11121  *)
11122    # FIXME: insert proper C++ library support
11123    ld_shlibs_CXX=no
11124    ;;
11125esac
11126echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11127echo "${ECHO_T}$ld_shlibs_CXX" >&6
11128test "$ld_shlibs_CXX" = no && can_build_shared=no
11129
11130GCC_CXX="$GXX"
11131LD_CXX="$LD"
11132
11133
11134cat > conftest.$ac_ext <<EOF
11135class Foo
11136{
11137public:
11138  Foo (void) { a = 0; }
11139private:
11140  int a;
11141};
11142EOF
11143
11144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11145  (eval $ac_compile) 2>&5
11146  ac_status=$?
11147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148  (exit $ac_status); }; then
11149  # Parse the compiler output and extract the necessary
11150  # objects, libraries and library flags.
11151
11152  # Sentinel used to keep track of whether or not we are before
11153  # the conftest object file.
11154  pre_test_object_deps_done=no
11155
11156  # The `*' in the case matches for architectures that use `case' in
11157  # $output_verbose_cmd can trigger glob expansion during the loop
11158  # eval without this substitution.
11159  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11160
11161  for p in `eval $output_verbose_link_cmd`; do
11162    case $p in
11163
11164    -L* | -R* | -l*)
11165       # Some compilers place space between "-{L,R}" and the path.
11166       # Remove the space.
11167       if test $p = "-L" \
11168	  || test $p = "-R"; then
11169	 prev=$p
11170	 continue
11171       else
11172	 prev=
11173       fi
11174
11175       if test "$pre_test_object_deps_done" = no; then
11176	 case $p in
11177	 -L* | -R*)
11178	   # Internal compiler library paths should come after those
11179	   # provided the user.  The postdeps already come after the
11180	   # user supplied libs so there is no need to process them.
11181	   if test -z "$compiler_lib_search_path_CXX"; then
11182	     compiler_lib_search_path_CXX="${prev}${p}"
11183	   else
11184	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11185	   fi
11186	   ;;
11187	 # The "-l" case would never come before the object being
11188	 # linked, so don't bother handling this case.
11189	 esac
11190       else
11191	 if test -z "$postdeps_CXX"; then
11192	   postdeps_CXX="${prev}${p}"
11193	 else
11194	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11195	 fi
11196       fi
11197       ;;
11198
11199    *.$objext)
11200       # This assumes that the test object file only shows up
11201       # once in the compiler output.
11202       if test "$p" = "conftest.$objext"; then
11203	 pre_test_object_deps_done=yes
11204	 continue
11205       fi
11206
11207       if test "$pre_test_object_deps_done" = no; then
11208	 if test -z "$predep_objects_CXX"; then
11209	   predep_objects_CXX="$p"
11210	 else
11211	   predep_objects_CXX="$predep_objects_CXX $p"
11212	 fi
11213       else
11214	 if test -z "$postdep_objects_CXX"; then
11215	   postdep_objects_CXX="$p"
11216	 else
11217	   postdep_objects_CXX="$postdep_objects_CXX $p"
11218	 fi
11219       fi
11220       ;;
11221
11222    *) ;; # Ignore the rest.
11223
11224    esac
11225  done
11226
11227  # Clean up.
11228  rm -f a.out a.exe
11229else
11230  echo "libtool.m4: error: problem compiling CXX test program"
11231fi
11232
11233$rm -f confest.$objext
11234
11235# PORTME: override above test on systems where it is broken
11236case $host_os in
11237interix3*)
11238  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11239  # hack all around it, let's just trust "g++" to DTRT.
11240  predep_objects_CXX=
11241  postdep_objects_CXX=
11242  postdeps_CXX=
11243  ;;
11244
11245solaris*)
11246  case $cc_basename in
11247  CC*)
11248    # Adding this requires a known-good setup of shared libraries for
11249    # Sun compiler versions before 5.6, else PIC objects from an old
11250    # archive will be linked into the output, leading to subtle bugs.
11251    postdeps_CXX='-lCstd -lCrun'
11252    ;;
11253  esac
11254  ;;
11255esac
11256
11257
11258case " $postdeps_CXX " in
11259*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11260esac
11261
11262lt_prog_compiler_wl_CXX=
11263lt_prog_compiler_pic_CXX=
11264lt_prog_compiler_static_CXX=
11265
11266echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11267echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11268
11269  # C++ specific cases for pic, static, wl, etc.
11270  if test "$GXX" = yes; then
11271    lt_prog_compiler_wl_CXX='-Wl,'
11272    lt_prog_compiler_static_CXX='-static'
11273
11274    case $host_os in
11275    aix*)
11276      # All AIX code is PIC.
11277      if test "$host_cpu" = ia64; then
11278	# AIX 5 now supports IA64 processor
11279	lt_prog_compiler_static_CXX='-Bstatic'
11280      fi
11281      ;;
11282    amigaos*)
11283      # FIXME: we need at least 68020 code to build shared libraries, but
11284      # adding the `-m68020' flag to GCC prevents building anything better,
11285      # like `-m68040'.
11286      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11287      ;;
11288    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11289      # PIC is the default for these OSes.
11290      ;;
11291    mingw* | os2* | pw32*)
11292      # This hack is so that the source file can tell whether it is being
11293      # built for inclusion in a dll (and should export symbols for example).
11294      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11295      ;;
11296    darwin* | rhapsody*)
11297      # PIC is the default on this platform
11298      # Common symbols not allowed in MH_DYLIB files
11299      lt_prog_compiler_pic_CXX='-fno-common'
11300      ;;
11301    *djgpp*)
11302      # DJGPP does not support shared libraries at all
11303      lt_prog_compiler_pic_CXX=
11304      ;;
11305    interix3*)
11306      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11307      # Instead, we relocate shared libraries at runtime.
11308      ;;
11309    sysv4*MP*)
11310      if test -d /usr/nec; then
11311	lt_prog_compiler_pic_CXX=-Kconform_pic
11312      fi
11313      ;;
11314    hpux*)
11315      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11316      # not for PA HP-UX.
11317      case $host_cpu in
11318      hppa*64*|ia64*)
11319	;;
11320      *)
11321	lt_prog_compiler_pic_CXX='-fPIC'
11322	;;
11323      esac
11324      ;;
11325    *)
11326      lt_prog_compiler_pic_CXX='-fPIC'
11327      ;;
11328    esac
11329  else
11330    case $host_os in
11331      aix4* | aix5*)
11332	# All AIX code is PIC.
11333	if test "$host_cpu" = ia64; then
11334	  # AIX 5 now supports IA64 processor
11335	  lt_prog_compiler_static_CXX='-Bstatic'
11336	else
11337	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11338	fi
11339	;;
11340      chorus*)
11341	case $cc_basename in
11342	cxch68*)
11343	  # Green Hills C++ Compiler
11344	  # _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"
11345	  ;;
11346	esac
11347	;;
11348       darwin*)
11349         # PIC is the default on this platform
11350         # Common symbols not allowed in MH_DYLIB files
11351         case $cc_basename in
11352           xlc*)
11353           lt_prog_compiler_pic_CXX='-qnocommon'
11354           lt_prog_compiler_wl_CXX='-Wl,'
11355           ;;
11356         esac
11357       ;;
11358      dgux*)
11359	case $cc_basename in
11360	  ec++*)
11361	    lt_prog_compiler_pic_CXX='-KPIC'
11362	    ;;
11363	  ghcx*)
11364	    # Green Hills C++ Compiler
11365	    lt_prog_compiler_pic_CXX='-pic'
11366	    ;;
11367	  *)
11368	    ;;
11369	esac
11370	;;
11371      freebsd* | kfreebsd*-gnu | dragonfly*)
11372	# FreeBSD uses GNU C++
11373	;;
11374      hpux9* | hpux10* | hpux11*)
11375	case $cc_basename in
11376	  CC*)
11377	    lt_prog_compiler_wl_CXX='-Wl,'
11378	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11379	    if test "$host_cpu" != ia64; then
11380	      lt_prog_compiler_pic_CXX='+Z'
11381	    fi
11382	    ;;
11383	  aCC*)
11384	    lt_prog_compiler_wl_CXX='-Wl,'
11385	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11386	    case $host_cpu in
11387	    hppa*64*|ia64*)
11388	      # +Z the default
11389	      ;;
11390	    *)
11391	      lt_prog_compiler_pic_CXX='+Z'
11392	      ;;
11393	    esac
11394	    ;;
11395	  *)
11396	    ;;
11397	esac
11398	;;
11399      interix*)
11400	# This is c89, which is MS Visual C++ (no shared libs)
11401	# Anyone wants to do a port?
11402	;;
11403      irix5* | irix6* | nonstopux*)
11404	case $cc_basename in
11405	  CC*)
11406	    lt_prog_compiler_wl_CXX='-Wl,'
11407	    lt_prog_compiler_static_CXX='-non_shared'
11408	    # CC pic flag -KPIC is the default.
11409	    ;;
11410	  *)
11411	    ;;
11412	esac
11413	;;
11414      linux*)
11415	case $cc_basename in
11416	  KCC*)
11417	    # KAI C++ Compiler
11418	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11419	    lt_prog_compiler_pic_CXX='-fPIC'
11420	    ;;
11421	  icpc* | ecpc*)
11422	    # Intel C++
11423	    lt_prog_compiler_wl_CXX='-Wl,'
11424	    lt_prog_compiler_pic_CXX='-KPIC'
11425	    lt_prog_compiler_static_CXX='-static'
11426	    ;;
11427	  pgCC*)
11428	    # Portland Group C++ compiler.
11429	    lt_prog_compiler_wl_CXX='-Wl,'
11430	    lt_prog_compiler_pic_CXX='-fpic'
11431	    lt_prog_compiler_static_CXX='-Bstatic'
11432	    ;;
11433	  cxx*)
11434	    # Compaq C++
11435	    # Make sure the PIC flag is empty.  It appears that all Alpha
11436	    # Linux and Compaq Tru64 Unix objects are PIC.
11437	    lt_prog_compiler_pic_CXX=
11438	    lt_prog_compiler_static_CXX='-non_shared'
11439	    ;;
11440	  *)
11441	    ;;
11442	esac
11443	;;
11444      lynxos*)
11445	;;
11446      m88k*)
11447	;;
11448      mvs*)
11449	case $cc_basename in
11450	  cxx*)
11451	    lt_prog_compiler_pic_CXX='-W c,exportall'
11452	    ;;
11453	  *)
11454	    ;;
11455	esac
11456	;;
11457      netbsd*)
11458	;;
11459      osf3* | osf4* | osf5*)
11460	case $cc_basename in
11461	  KCC*)
11462	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11463	    ;;
11464	  RCC*)
11465	    # Rational C++ 2.4.1
11466	    lt_prog_compiler_pic_CXX='-pic'
11467	    ;;
11468	  cxx*)
11469	    # Digital/Compaq C++
11470	    lt_prog_compiler_wl_CXX='-Wl,'
11471	    # Make sure the PIC flag is empty.  It appears that all Alpha
11472	    # Linux and Compaq Tru64 Unix objects are PIC.
11473	    lt_prog_compiler_pic_CXX=
11474	    lt_prog_compiler_static_CXX='-non_shared'
11475	    ;;
11476	  *)
11477	    ;;
11478	esac
11479	;;
11480      psos*)
11481	;;
11482      solaris*)
11483	case $cc_basename in
11484	  CC*)
11485	    # Sun C++ 4.2, 5.x and Centerline C++
11486	    lt_prog_compiler_pic_CXX='-KPIC'
11487	    lt_prog_compiler_static_CXX='-Bstatic'
11488	    lt_prog_compiler_wl_CXX='-Qoption ld '
11489	    ;;
11490	  gcx*)
11491	    # Green Hills C++ Compiler
11492	    lt_prog_compiler_pic_CXX='-PIC'
11493	    ;;
11494	  *)
11495	    ;;
11496	esac
11497	;;
11498      sunos4*)
11499	case $cc_basename in
11500	  CC*)
11501	    # Sun C++ 4.x
11502	    lt_prog_compiler_pic_CXX='-pic'
11503	    lt_prog_compiler_static_CXX='-Bstatic'
11504	    ;;
11505	  lcc*)
11506	    # Lucid
11507	    lt_prog_compiler_pic_CXX='-pic'
11508	    ;;
11509	  *)
11510	    ;;
11511	esac
11512	;;
11513      tandem*)
11514	case $cc_basename in
11515	  NCC*)
11516	    # NonStop-UX NCC 3.20
11517	    lt_prog_compiler_pic_CXX='-KPIC'
11518	    ;;
11519	  *)
11520	    ;;
11521	esac
11522	;;
11523      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11524	case $cc_basename in
11525	  CC*)
11526	    lt_prog_compiler_wl_CXX='-Wl,'
11527	    lt_prog_compiler_pic_CXX='-KPIC'
11528	    lt_prog_compiler_static_CXX='-Bstatic'
11529	    ;;
11530	esac
11531	;;
11532      vxworks*)
11533	;;
11534      *)
11535	lt_prog_compiler_can_build_shared_CXX=no
11536	;;
11537    esac
11538  fi
11539
11540echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11541echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11542
11543#
11544# Check to make sure the PIC flag actually works.
11545#
11546if test -n "$lt_prog_compiler_pic_CXX"; then
11547
11548echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11549echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11550if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11551  echo $ECHO_N "(cached) $ECHO_C" >&6
11552else
11553  lt_prog_compiler_pic_works_CXX=no
11554  ac_outfile=conftest.$ac_objext
11555   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11556   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11557   # Insert the option either (1) after the last *FLAGS variable, or
11558   # (2) before a word containing "conftest.", or (3) at the end.
11559   # Note that $ac_compile itself does not contain backslashes and begins
11560   # with a dollar sign (not a hyphen), so the echo should work correctly.
11561   # The option is referenced via a variable to avoid confusing sed.
11562   lt_compile=`echo "$ac_compile" | $SED \
11563   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11565   -e 's:$: $lt_compiler_flag:'`
11566   (eval echo "\"\$as_me:11566: $lt_compile\"" >&5)
11567   (eval "$lt_compile" 2>conftest.err)
11568   ac_status=$?
11569   cat conftest.err >&5
11570   echo "$as_me:11570: \$? = $ac_status" >&5
11571   if (exit $ac_status) && test -s "$ac_outfile"; then
11572     # The compiler can only warn and ignore the option if not recognized
11573     # So say no if there are warnings other than the usual output.
11574     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11575     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11576     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11577       lt_prog_compiler_pic_works_CXX=yes
11578     fi
11579   fi
11580   $rm conftest*
11581
11582fi
11583echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11584echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11585
11586if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11587    case $lt_prog_compiler_pic_CXX in
11588     "" | " "*) ;;
11589     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11590     esac
11591else
11592    lt_prog_compiler_pic_CXX=
11593     lt_prog_compiler_can_build_shared_CXX=no
11594fi
11595
11596fi
11597case $host_os in
11598  # For platforms which do not support PIC, -DPIC is meaningless:
11599  *djgpp*)
11600    lt_prog_compiler_pic_CXX=
11601    ;;
11602  *)
11603    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11604    ;;
11605esac
11606
11607#
11608# Check to make sure the static flag actually works.
11609#
11610wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11611echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11612echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11613if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11614  echo $ECHO_N "(cached) $ECHO_C" >&6
11615else
11616  lt_prog_compiler_static_works_CXX=no
11617   save_LDFLAGS="$LDFLAGS"
11618   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11619   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11620   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11621     # The linker can only warn and ignore the option if not recognized
11622     # So say no if there are warnings
11623     if test -s conftest.err; then
11624       # Append any errors to the config.log.
11625       cat conftest.err 1>&5
11626       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11627       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11628       if diff conftest.exp conftest.er2 >/dev/null; then
11629         lt_prog_compiler_static_works_CXX=yes
11630       fi
11631     else
11632       lt_prog_compiler_static_works_CXX=yes
11633     fi
11634   fi
11635   $rm conftest*
11636   LDFLAGS="$save_LDFLAGS"
11637
11638fi
11639echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11640echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11641
11642if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11643    :
11644else
11645    lt_prog_compiler_static_CXX=
11646fi
11647
11648
11649echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11650echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11651if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11652  echo $ECHO_N "(cached) $ECHO_C" >&6
11653else
11654  lt_cv_prog_compiler_c_o_CXX=no
11655   $rm -r conftest 2>/dev/null
11656   mkdir conftest
11657   cd conftest
11658   mkdir out
11659   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11660
11661   lt_compiler_flag="-o out/conftest2.$ac_objext"
11662   # Insert the option either (1) after the last *FLAGS variable, or
11663   # (2) before a word containing "conftest.", or (3) at the end.
11664   # Note that $ac_compile itself does not contain backslashes and begins
11665   # with a dollar sign (not a hyphen), so the echo should work correctly.
11666   lt_compile=`echo "$ac_compile" | $SED \
11667   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11669   -e 's:$: $lt_compiler_flag:'`
11670   (eval echo "\"\$as_me:11670: $lt_compile\"" >&5)
11671   (eval "$lt_compile" 2>out/conftest.err)
11672   ac_status=$?
11673   cat out/conftest.err >&5
11674   echo "$as_me:11674: \$? = $ac_status" >&5
11675   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11676   then
11677     # The compiler can only warn and ignore the option if not recognized
11678     # So say no if there are warnings
11679     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11680     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11681     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11682       lt_cv_prog_compiler_c_o_CXX=yes
11683     fi
11684   fi
11685   chmod u+w . 2>&5
11686   $rm conftest*
11687   # SGI C++ compiler will create directory out/ii_files/ for
11688   # template instantiation
11689   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11690   $rm out/* && rmdir out
11691   cd ..
11692   rmdir conftest
11693   $rm conftest*
11694
11695fi
11696echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11697echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11698
11699
11700hard_links="nottested"
11701if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11702  # do not overwrite the value of need_locks provided by the user
11703  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11704echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11705  hard_links=yes
11706  $rm conftest*
11707  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11708  touch conftest.a
11709  ln conftest.a conftest.b 2>&5 || hard_links=no
11710  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11711  echo "$as_me:$LINENO: result: $hard_links" >&5
11712echo "${ECHO_T}$hard_links" >&6
11713  if test "$hard_links" = no; then
11714    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11715echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11716    need_locks=warn
11717  fi
11718else
11719  need_locks=no
11720fi
11721
11722echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11723echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11724
11725  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11726  case $host_os in
11727  aix4* | aix5*)
11728    # If we're using GNU nm, then we don't want the "-C" option.
11729    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11730    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11731      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'
11732    else
11733      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'
11734    fi
11735    ;;
11736  pw32*)
11737    export_symbols_cmds_CXX="$ltdll_cmds"
11738  ;;
11739  cygwin* | mingw*)
11740    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'
11741  ;;
11742  *)
11743    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11744  ;;
11745  esac
11746
11747echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11748echo "${ECHO_T}$ld_shlibs_CXX" >&6
11749test "$ld_shlibs_CXX" = no && can_build_shared=no
11750
11751#
11752# Do we need to explicitly link libc?
11753#
11754case "x$archive_cmds_need_lc_CXX" in
11755x|xyes)
11756  # Assume -lc should be added
11757  archive_cmds_need_lc_CXX=yes
11758
11759  if test "$enable_shared" = yes && test "$GCC" = yes; then
11760    case $archive_cmds_CXX in
11761    *'~'*)
11762      # FIXME: we may have to deal with multi-command sequences.
11763      ;;
11764    '$CC '*)
11765      # Test whether the compiler implicitly links with -lc since on some
11766      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11767      # to ld, don't add -lc before -lgcc.
11768      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11769echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11770      $rm conftest*
11771      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11772
11773      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11774  (eval $ac_compile) 2>&5
11775  ac_status=$?
11776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777  (exit $ac_status); } 2>conftest.err; then
11778        soname=conftest
11779        lib=conftest
11780        libobjs=conftest.$ac_objext
11781        deplibs=
11782        wl=$lt_prog_compiler_wl_CXX
11783	pic_flag=$lt_prog_compiler_pic_CXX
11784        compiler_flags=-v
11785        linker_flags=-v
11786        verstring=
11787        output_objdir=.
11788        libname=conftest
11789        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11790        allow_undefined_flag_CXX=
11791        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11792  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11793  ac_status=$?
11794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795  (exit $ac_status); }
11796        then
11797	  archive_cmds_need_lc_CXX=no
11798        else
11799	  archive_cmds_need_lc_CXX=yes
11800        fi
11801        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11802      else
11803        cat conftest.err 1>&5
11804      fi
11805      $rm conftest*
11806      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11807echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11808      ;;
11809    esac
11810  fi
11811  ;;
11812esac
11813
11814echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11815echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11816library_names_spec=
11817libname_spec='lib$name'
11818soname_spec=
11819shrext_cmds=".so"
11820postinstall_cmds=
11821postuninstall_cmds=
11822finish_cmds=
11823finish_eval=
11824shlibpath_var=
11825shlibpath_overrides_runpath=unknown
11826version_type=none
11827dynamic_linker="$host_os ld.so"
11828sys_lib_dlsearch_path_spec="/lib /usr/lib"
11829if test "$GCC" = yes; then
11830  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11831  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11832    # if the path contains ";" then we assume it to be the separator
11833    # otherwise default to the standard path separator (i.e. ":") - it is
11834    # assumed that no part of a normal pathname contains ";" but that should
11835    # okay in the real world where ";" in dirpaths is itself problematic.
11836    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11837  else
11838    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11839  fi
11840else
11841  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11842fi
11843need_lib_prefix=unknown
11844hardcode_into_libs=no
11845
11846# when you set need_version to no, make sure it does not cause -set_version
11847# flags to be left without arguments
11848need_version=unknown
11849
11850case $host_os in
11851aix3*)
11852  version_type=linux
11853  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11854  shlibpath_var=LIBPATH
11855
11856  # AIX 3 has no versioning support, so we append a major version to the name.
11857  soname_spec='${libname}${release}${shared_ext}$major'
11858  ;;
11859
11860aix4* | aix5*)
11861  version_type=linux
11862  need_lib_prefix=no
11863  need_version=no
11864  hardcode_into_libs=yes
11865  if test "$host_cpu" = ia64; then
11866    # AIX 5 supports IA64
11867    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11868    shlibpath_var=LD_LIBRARY_PATH
11869  else
11870    # With GCC up to 2.95.x, collect2 would create an import file
11871    # for dependence libraries.  The import file would start with
11872    # the line `#! .'.  This would cause the generated library to
11873    # depend on `.', always an invalid library.  This was fixed in
11874    # development snapshots of GCC prior to 3.0.
11875    case $host_os in
11876      aix4 | aix4.[01] | aix4.[01].*)
11877      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11878	   echo ' yes '
11879	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11880	:
11881      else
11882	can_build_shared=no
11883      fi
11884      ;;
11885    esac
11886    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11887    # soname into executable. Probably we can add versioning support to
11888    # collect2, so additional links can be useful in future.
11889    if test "$aix_use_runtimelinking" = yes; then
11890      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11891      # instead of lib<name>.a to let people know that these are not
11892      # typical AIX shared libraries.
11893      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11894    else
11895      # We preserve .a as extension for shared libraries through AIX4.2
11896      # and later when we are not doing run time linking.
11897      library_names_spec='${libname}${release}.a $libname.a'
11898      soname_spec='${libname}${release}${shared_ext}$major'
11899    fi
11900    shlibpath_var=LIBPATH
11901  fi
11902  ;;
11903
11904amigaos*)
11905  library_names_spec='$libname.ixlibrary $libname.a'
11906  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11907  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'
11908  ;;
11909
11910beos*)
11911  library_names_spec='${libname}${shared_ext}'
11912  dynamic_linker="$host_os ld.so"
11913  shlibpath_var=LIBRARY_PATH
11914  ;;
11915
11916bsdi[45]*)
11917  version_type=linux
11918  need_version=no
11919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11920  soname_spec='${libname}${release}${shared_ext}$major'
11921  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11922  shlibpath_var=LD_LIBRARY_PATH
11923  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11924  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11925  # the default ld.so.conf also contains /usr/contrib/lib and
11926  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11927  # libtool to hard-code these into programs
11928  ;;
11929
11930cygwin* | mingw* | pw32*)
11931  version_type=windows
11932  shrext_cmds=".dll"
11933  need_version=no
11934  need_lib_prefix=no
11935
11936  case $GCC,$host_os in
11937  yes,cygwin* | yes,mingw* | yes,pw32*)
11938    library_names_spec='$libname.dll.a'
11939    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11940    postinstall_cmds='base_file=`basename \${file}`~
11941      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11942      dldir=$destdir/`dirname \$dlpath`~
11943      test -d \$dldir || mkdir -p \$dldir~
11944      $install_prog $dir/$dlname \$dldir/$dlname~
11945      chmod a+x \$dldir/$dlname'
11946    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11947      dlpath=$dir/\$dldll~
11948       $rm \$dlpath'
11949    shlibpath_overrides_runpath=yes
11950
11951    case $host_os in
11952    cygwin*)
11953      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11954      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11955      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11956      ;;
11957    mingw*)
11958      # MinGW DLLs use traditional 'lib' prefix
11959      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11960      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11961      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11962        # It is most probably a Windows format PATH printed by
11963        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11964        # path with ; separators, and with drive letters. We can handle the
11965        # drive letters (cygwin fileutils understands them), so leave them,
11966        # especially as we might pass files found there to a mingw objdump,
11967        # which wouldn't understand a cygwinified path. Ahh.
11968        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11969      else
11970        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11971      fi
11972      ;;
11973    pw32*)
11974      # pw32 DLLs use 'pw' prefix rather than 'lib'
11975      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11976      ;;
11977    esac
11978    ;;
11979
11980  *)
11981    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11982    ;;
11983  esac
11984  dynamic_linker='Win32 ld.exe'
11985  # FIXME: first we should search . and the directory the executable is in
11986  shlibpath_var=PATH
11987  ;;
11988
11989darwin* | rhapsody*)
11990  dynamic_linker="$host_os dyld"
11991  version_type=darwin
11992  need_lib_prefix=no
11993  need_version=no
11994  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11995  soname_spec='${libname}${release}${major}$shared_ext'
11996  shlibpath_overrides_runpath=yes
11997  shlibpath_var=DYLD_LIBRARY_PATH
11998  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11999  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12000  if test "$GCC" = yes; then
12001    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"`
12002  else
12003    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12004  fi
12005  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12006  ;;
12007
12008dgux*)
12009  version_type=linux
12010  need_lib_prefix=no
12011  need_version=no
12012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12013  soname_spec='${libname}${release}${shared_ext}$major'
12014  shlibpath_var=LD_LIBRARY_PATH
12015  ;;
12016
12017freebsd1*)
12018  dynamic_linker=no
12019  ;;
12020
12021kfreebsd*-gnu)
12022  version_type=linux
12023  need_lib_prefix=no
12024  need_version=no
12025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12026  soname_spec='${libname}${release}${shared_ext}$major'
12027  shlibpath_var=LD_LIBRARY_PATH
12028  shlibpath_overrides_runpath=no
12029  hardcode_into_libs=yes
12030  dynamic_linker='GNU ld.so'
12031  ;;
12032
12033freebsd* | dragonfly*)
12034  # DragonFly does not have aout.  When/if they implement a new
12035  # versioning mechanism, adjust this.
12036  if test -x /usr/bin/objformat; then
12037    objformat=`/usr/bin/objformat`
12038  else
12039    case $host_os in
12040    freebsd[123]*) objformat=aout ;;
12041    *) objformat=elf ;;
12042    esac
12043  fi
12044  version_type=freebsd-$objformat
12045  case $version_type in
12046    freebsd-elf*)
12047      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12048      need_version=no
12049      need_lib_prefix=no
12050      ;;
12051    freebsd-*)
12052      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12053      need_version=yes
12054      ;;
12055  esac
12056  shlibpath_var=LD_LIBRARY_PATH
12057  case $host_os in
12058  freebsd2*)
12059    shlibpath_overrides_runpath=yes
12060    ;;
12061  freebsd3.[01]* | freebsdelf3.[01]*)
12062    shlibpath_overrides_runpath=yes
12063    hardcode_into_libs=yes
12064    ;;
12065  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12066  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12067    shlibpath_overrides_runpath=no
12068    hardcode_into_libs=yes
12069    ;;
12070  freebsd*) # from 4.6 on
12071    shlibpath_overrides_runpath=yes
12072    hardcode_into_libs=yes
12073    ;;
12074  esac
12075  ;;
12076
12077gnu*)
12078  version_type=linux
12079  need_lib_prefix=no
12080  need_version=no
12081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12082  soname_spec='${libname}${release}${shared_ext}$major'
12083  shlibpath_var=LD_LIBRARY_PATH
12084  hardcode_into_libs=yes
12085  ;;
12086
12087hpux9* | hpux10* | hpux11*)
12088  # Give a soname corresponding to the major version so that dld.sl refuses to
12089  # link against other versions.
12090  version_type=sunos
12091  need_lib_prefix=no
12092  need_version=no
12093  case $host_cpu in
12094  ia64*)
12095    shrext_cmds='.so'
12096    hardcode_into_libs=yes
12097    dynamic_linker="$host_os dld.so"
12098    shlibpath_var=LD_LIBRARY_PATH
12099    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12100    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12101    soname_spec='${libname}${release}${shared_ext}$major'
12102    if test "X$HPUX_IA64_MODE" = X32; then
12103      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12104    else
12105      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12106    fi
12107    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12108    ;;
12109   hppa*64*)
12110     shrext_cmds='.sl'
12111     hardcode_into_libs=yes
12112     dynamic_linker="$host_os dld.sl"
12113     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12114     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12116     soname_spec='${libname}${release}${shared_ext}$major'
12117     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12118     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12119     ;;
12120   *)
12121    shrext_cmds='.sl'
12122    dynamic_linker="$host_os dld.sl"
12123    shlibpath_var=SHLIB_PATH
12124    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12125    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12126    soname_spec='${libname}${release}${shared_ext}$major'
12127    ;;
12128  esac
12129  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12130  postinstall_cmds='chmod 555 $lib'
12131  ;;
12132
12133interix3*)
12134  version_type=linux
12135  need_lib_prefix=no
12136  need_version=no
12137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12138  soname_spec='${libname}${release}${shared_ext}$major'
12139  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12140  shlibpath_var=LD_LIBRARY_PATH
12141  shlibpath_overrides_runpath=no
12142  hardcode_into_libs=yes
12143  ;;
12144
12145irix5* | irix6* | nonstopux*)
12146  case $host_os in
12147    nonstopux*) version_type=nonstopux ;;
12148    *)
12149	if test "$lt_cv_prog_gnu_ld" = yes; then
12150		version_type=linux
12151	else
12152		version_type=irix
12153	fi ;;
12154  esac
12155  need_lib_prefix=no
12156  need_version=no
12157  soname_spec='${libname}${release}${shared_ext}$major'
12158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12159  case $host_os in
12160  irix5* | nonstopux*)
12161    libsuff= shlibsuff=
12162    ;;
12163  *)
12164    case $LD in # libtool.m4 will add one of these switches to LD
12165    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12166      libsuff= shlibsuff= libmagic=32-bit;;
12167    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12168      libsuff=32 shlibsuff=N32 libmagic=N32;;
12169    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12170      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12171    *) libsuff= shlibsuff= libmagic=never-match;;
12172    esac
12173    ;;
12174  esac
12175  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12176  shlibpath_overrides_runpath=no
12177  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12178  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12179  hardcode_into_libs=yes
12180  ;;
12181
12182# No shared lib support for Linux oldld, aout, or coff.
12183linux*oldld* | linux*aout* | linux*coff*)
12184  dynamic_linker=no
12185  ;;
12186
12187# This must be Linux ELF.
12188linux*)
12189  version_type=linux
12190  need_lib_prefix=no
12191  need_version=no
12192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12193  soname_spec='${libname}${release}${shared_ext}$major'
12194  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12195  shlibpath_var=LD_LIBRARY_PATH
12196  shlibpath_overrides_runpath=no
12197  # This implies no fast_install, which is unacceptable.
12198  # Some rework will be needed to allow for fast_install
12199  # before this can be enabled.
12200  hardcode_into_libs=yes
12201
12202  # find out which ABI we are using
12203  libsuff=
12204  case "$host_cpu" in
12205  x86_64*|s390x*|powerpc64*)
12206    echo '#line 12206 "configure"' > conftest.$ac_ext
12207    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12208  (eval $ac_compile) 2>&5
12209  ac_status=$?
12210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211  (exit $ac_status); }; then
12212      case `/usr/bin/file conftest.$ac_objext` in
12213      *64-bit*)
12214        libsuff=64
12215        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12216        ;;
12217      esac
12218    fi
12219    rm -rf conftest*
12220    ;;
12221  esac
12222
12223  # Append ld.so.conf contents to the search path
12224  if test -f /etc/ld.so.conf; then
12225    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12226    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12227  fi
12228
12229  # We used to test for /lib/ld.so.1 and disable shared libraries on
12230  # powerpc, because MkLinux only supported shared libraries with the
12231  # GNU dynamic linker.  Since this was broken with cross compilers,
12232  # most powerpc-linux boxes support dynamic linking these days and
12233  # people can always --disable-shared, the test was removed, and we
12234  # assume the GNU/Linux dynamic linker is in use.
12235  dynamic_linker='GNU/Linux ld.so'
12236  ;;
12237
12238knetbsd*-gnu)
12239  version_type=linux
12240  need_lib_prefix=no
12241  need_version=no
12242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12243  soname_spec='${libname}${release}${shared_ext}$major'
12244  shlibpath_var=LD_LIBRARY_PATH
12245  shlibpath_overrides_runpath=no
12246  hardcode_into_libs=yes
12247  dynamic_linker='GNU ld.so'
12248  ;;
12249
12250netbsd*)
12251  version_type=sunos
12252  need_lib_prefix=no
12253  need_version=no
12254  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12255    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12256    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12257    dynamic_linker='NetBSD (a.out) ld.so'
12258  else
12259    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12260    soname_spec='${libname}${release}${shared_ext}$major'
12261    dynamic_linker='NetBSD ld.elf_so'
12262  fi
12263  shlibpath_var=LD_LIBRARY_PATH
12264  shlibpath_overrides_runpath=yes
12265  hardcode_into_libs=yes
12266  ;;
12267
12268newsos6)
12269  version_type=linux
12270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12271  shlibpath_var=LD_LIBRARY_PATH
12272  shlibpath_overrides_runpath=yes
12273  ;;
12274
12275nto-qnx*)
12276  version_type=linux
12277  need_lib_prefix=no
12278  need_version=no
12279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12280  soname_spec='${libname}${release}${shared_ext}$major'
12281  shlibpath_var=LD_LIBRARY_PATH
12282  shlibpath_overrides_runpath=yes
12283  ;;
12284
12285openbsd*)
12286  version_type=sunos
12287  sys_lib_dlsearch_path_spec="/usr/lib"
12288  need_lib_prefix=no
12289  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12290  case $host_os in
12291    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12292    *)                         need_version=no  ;;
12293  esac
12294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12295  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12296  shlibpath_var=LD_LIBRARY_PATH
12297  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12298    case $host_os in
12299      openbsd2.[89] | openbsd2.[89].*)
12300	shlibpath_overrides_runpath=no
12301	;;
12302      *)
12303	shlibpath_overrides_runpath=yes
12304	;;
12305      esac
12306  else
12307    shlibpath_overrides_runpath=yes
12308  fi
12309  ;;
12310
12311os2*)
12312  libname_spec='$name'
12313  shrext_cmds=".dll"
12314  need_lib_prefix=no
12315  library_names_spec='$libname${shared_ext} $libname.a'
12316  dynamic_linker='OS/2 ld.exe'
12317  shlibpath_var=LIBPATH
12318  ;;
12319
12320osf3* | osf4* | osf5*)
12321  version_type=osf
12322  need_lib_prefix=no
12323  need_version=no
12324  soname_spec='${libname}${release}${shared_ext}$major'
12325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12326  shlibpath_var=LD_LIBRARY_PATH
12327  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12328  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12329  ;;
12330
12331solaris*)
12332  version_type=linux
12333  need_lib_prefix=no
12334  need_version=no
12335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12336  soname_spec='${libname}${release}${shared_ext}$major'
12337  shlibpath_var=LD_LIBRARY_PATH
12338  shlibpath_overrides_runpath=yes
12339  hardcode_into_libs=yes
12340  # ldd complains unless libraries are executable
12341  postinstall_cmds='chmod +x $lib'
12342  ;;
12343
12344sunos4*)
12345  version_type=sunos
12346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12347  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12348  shlibpath_var=LD_LIBRARY_PATH
12349  shlibpath_overrides_runpath=yes
12350  if test "$with_gnu_ld" = yes; then
12351    need_lib_prefix=no
12352  fi
12353  need_version=yes
12354  ;;
12355
12356sysv4 | sysv4.3*)
12357  version_type=linux
12358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12359  soname_spec='${libname}${release}${shared_ext}$major'
12360  shlibpath_var=LD_LIBRARY_PATH
12361  case $host_vendor in
12362    sni)
12363      shlibpath_overrides_runpath=no
12364      need_lib_prefix=no
12365      export_dynamic_flag_spec='${wl}-Blargedynsym'
12366      runpath_var=LD_RUN_PATH
12367      ;;
12368    siemens)
12369      need_lib_prefix=no
12370      ;;
12371    motorola)
12372      need_lib_prefix=no
12373      need_version=no
12374      shlibpath_overrides_runpath=no
12375      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12376      ;;
12377  esac
12378  ;;
12379
12380sysv4*MP*)
12381  if test -d /usr/nec ;then
12382    version_type=linux
12383    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12384    soname_spec='$libname${shared_ext}.$major'
12385    shlibpath_var=LD_LIBRARY_PATH
12386  fi
12387  ;;
12388
12389sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12390  version_type=freebsd-elf
12391  need_lib_prefix=no
12392  need_version=no
12393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12394  soname_spec='${libname}${release}${shared_ext}$major'
12395  shlibpath_var=LD_LIBRARY_PATH
12396  hardcode_into_libs=yes
12397  if test "$with_gnu_ld" = yes; then
12398    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12399    shlibpath_overrides_runpath=no
12400  else
12401    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12402    shlibpath_overrides_runpath=yes
12403    case $host_os in
12404      sco3.2v5*)
12405        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12406	;;
12407    esac
12408  fi
12409  sys_lib_dlsearch_path_spec='/usr/lib'
12410  ;;
12411
12412uts4*)
12413  version_type=linux
12414  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12415  soname_spec='${libname}${release}${shared_ext}$major'
12416  shlibpath_var=LD_LIBRARY_PATH
12417  ;;
12418
12419*)
12420  dynamic_linker=no
12421  ;;
12422esac
12423echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12424echo "${ECHO_T}$dynamic_linker" >&6
12425test "$dynamic_linker" = no && can_build_shared=no
12426
12427variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12428if test "$GCC" = yes; then
12429  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12430fi
12431
12432echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12433echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12434hardcode_action_CXX=
12435if test -n "$hardcode_libdir_flag_spec_CXX" || \
12436   test -n "$runpath_var_CXX" || \
12437   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12438
12439  # We can hardcode non-existant directories.
12440  if test "$hardcode_direct_CXX" != no &&
12441     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12442     # have to relink, otherwise we might link with an installed library
12443     # when we should be linking with a yet-to-be-installed one
12444     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12445     test "$hardcode_minus_L_CXX" != no; then
12446    # Linking always hardcodes the temporary library directory.
12447    hardcode_action_CXX=relink
12448  else
12449    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12450    hardcode_action_CXX=immediate
12451  fi
12452else
12453  # We cannot hardcode anything, or else we can only hardcode existing
12454  # directories.
12455  hardcode_action_CXX=unsupported
12456fi
12457echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12458echo "${ECHO_T}$hardcode_action_CXX" >&6
12459
12460if test "$hardcode_action_CXX" = relink; then
12461  # Fast installation is not supported
12462  enable_fast_install=no
12463elif test "$shlibpath_overrides_runpath" = yes ||
12464     test "$enable_shared" = no; then
12465  # Fast installation is not necessary
12466  enable_fast_install=needless
12467fi
12468
12469
12470# The else clause should only fire when bootstrapping the
12471# libtool distribution, otherwise you forgot to ship ltmain.sh
12472# with your package, and you will get complaints that there are
12473# no rules to generate ltmain.sh.
12474if test -f "$ltmain"; then
12475  # See if we are running on zsh, and set the options which allow our commands through
12476  # without removal of \ escapes.
12477  if test -n "${ZSH_VERSION+set}" ; then
12478    setopt NO_GLOB_SUBST
12479  fi
12480  # Now quote all the things that may contain metacharacters while being
12481  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12482  # variables and quote the copies for generation of the libtool script.
12483  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12484    SED SHELL STRIP \
12485    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12486    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12487    deplibs_check_method reload_flag reload_cmds need_locks \
12488    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12489    lt_cv_sys_global_symbol_to_c_name_address \
12490    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12491    old_postinstall_cmds old_postuninstall_cmds \
12492    compiler_CXX \
12493    CC_CXX \
12494    LD_CXX \
12495    lt_prog_compiler_wl_CXX \
12496    lt_prog_compiler_pic_CXX \
12497    lt_prog_compiler_static_CXX \
12498    lt_prog_compiler_no_builtin_flag_CXX \
12499    export_dynamic_flag_spec_CXX \
12500    thread_safe_flag_spec_CXX \
12501    whole_archive_flag_spec_CXX \
12502    enable_shared_with_static_runtimes_CXX \
12503    old_archive_cmds_CXX \
12504    old_archive_from_new_cmds_CXX \
12505    predep_objects_CXX \
12506    postdep_objects_CXX \
12507    predeps_CXX \
12508    postdeps_CXX \
12509    compiler_lib_search_path_CXX \
12510    archive_cmds_CXX \
12511    archive_expsym_cmds_CXX \
12512    postinstall_cmds_CXX \
12513    postuninstall_cmds_CXX \
12514    old_archive_from_expsyms_cmds_CXX \
12515    allow_undefined_flag_CXX \
12516    no_undefined_flag_CXX \
12517    export_symbols_cmds_CXX \
12518    hardcode_libdir_flag_spec_CXX \
12519    hardcode_libdir_flag_spec_ld_CXX \
12520    hardcode_libdir_separator_CXX \
12521    hardcode_automatic_CXX \
12522    module_cmds_CXX \
12523    module_expsym_cmds_CXX \
12524    lt_cv_prog_compiler_c_o_CXX \
12525    exclude_expsyms_CXX \
12526    include_expsyms_CXX; do
12527
12528    case $var in
12529    old_archive_cmds_CXX | \
12530    old_archive_from_new_cmds_CXX | \
12531    archive_cmds_CXX | \
12532    archive_expsym_cmds_CXX | \
12533    module_cmds_CXX | \
12534    module_expsym_cmds_CXX | \
12535    old_archive_from_expsyms_cmds_CXX | \
12536    export_symbols_cmds_CXX | \
12537    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12538    postinstall_cmds | postuninstall_cmds | \
12539    old_postinstall_cmds | old_postuninstall_cmds | \
12540    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12541      # Double-quote double-evaled strings.
12542      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12543      ;;
12544    *)
12545      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12546      ;;
12547    esac
12548  done
12549
12550  case $lt_echo in
12551  *'\$0 --fallback-echo"')
12552    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12553    ;;
12554  esac
12555
12556cfgfile="$ofile"
12557
12558  cat <<__EOF__ >> "$cfgfile"
12559# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12560
12561# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12562
12563# Shell to use when invoking shell scripts.
12564SHELL=$lt_SHELL
12565
12566# Whether or not to build shared libraries.
12567build_libtool_libs=$enable_shared
12568
12569# Whether or not to build static libraries.
12570build_old_libs=$enable_static
12571
12572# Whether or not to add -lc for building shared libraries.
12573build_libtool_need_lc=$archive_cmds_need_lc_CXX
12574
12575# Whether or not to disallow shared libs when runtime libs are static
12576allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12577
12578# Whether or not to optimize for fast installation.
12579fast_install=$enable_fast_install
12580
12581# The host system.
12582host_alias=$host_alias
12583host=$host
12584host_os=$host_os
12585
12586# The build system.
12587build_alias=$build_alias
12588build=$build
12589build_os=$build_os
12590
12591# An echo program that does not interpret backslashes.
12592echo=$lt_echo
12593
12594# The archiver.
12595AR=$lt_AR
12596AR_FLAGS=$lt_AR_FLAGS
12597
12598# A C compiler.
12599LTCC=$lt_LTCC
12600
12601# LTCC compiler flags.
12602LTCFLAGS=$lt_LTCFLAGS
12603
12604# A language-specific compiler.
12605CC=$lt_compiler_CXX
12606
12607# Is the compiler the GNU C compiler?
12608with_gcc=$GCC_CXX
12609
12610# An ERE matcher.
12611EGREP=$lt_EGREP
12612
12613# The linker used to build libraries.
12614LD=$lt_LD_CXX
12615
12616# Whether we need hard or soft links.
12617LN_S=$lt_LN_S
12618
12619# A BSD-compatible nm program.
12620NM=$lt_NM
12621
12622# A symbol stripping program
12623STRIP=$lt_STRIP
12624
12625# Used to examine libraries when file_magic_cmd begins "file"
12626MAGIC_CMD=$MAGIC_CMD
12627
12628# Used on cygwin: DLL creation program.
12629DLLTOOL="$DLLTOOL"
12630
12631# Used on cygwin: object dumper.
12632OBJDUMP="$OBJDUMP"
12633
12634# Used on cygwin: assembler.
12635AS="$AS"
12636
12637# The name of the directory that contains temporary libtool files.
12638objdir=$objdir
12639
12640# How to create reloadable object files.
12641reload_flag=$lt_reload_flag
12642reload_cmds=$lt_reload_cmds
12643
12644# How to pass a linker flag through the compiler.
12645wl=$lt_lt_prog_compiler_wl_CXX
12646
12647# Object file suffix (normally "o").
12648objext="$ac_objext"
12649
12650# Old archive suffix (normally "a").
12651libext="$libext"
12652
12653# Shared library suffix (normally ".so").
12654shrext_cmds='$shrext_cmds'
12655
12656# Executable file suffix (normally "").
12657exeext="$exeext"
12658
12659# Additional compiler flags for building library objects.
12660pic_flag=$lt_lt_prog_compiler_pic_CXX
12661pic_mode=$pic_mode
12662
12663# What is the maximum length of a command?
12664max_cmd_len=$lt_cv_sys_max_cmd_len
12665
12666# Does compiler simultaneously support -c and -o options?
12667compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12668
12669# Must we lock files when doing compilation?
12670need_locks=$lt_need_locks
12671
12672# Do we need the lib prefix for modules?
12673need_lib_prefix=$need_lib_prefix
12674
12675# Do we need a version for libraries?
12676need_version=$need_version
12677
12678# Whether dlopen is supported.
12679dlopen_support=$enable_dlopen
12680
12681# Whether dlopen of programs is supported.
12682dlopen_self=$enable_dlopen_self
12683
12684# Whether dlopen of statically linked programs is supported.
12685dlopen_self_static=$enable_dlopen_self_static
12686
12687# Compiler flag to prevent dynamic linking.
12688link_static_flag=$lt_lt_prog_compiler_static_CXX
12689
12690# Compiler flag to turn off builtin functions.
12691no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12692
12693# Compiler flag to allow reflexive dlopens.
12694export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12695
12696# Compiler flag to generate shared objects directly from archives.
12697whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12698
12699# Compiler flag to generate thread-safe objects.
12700thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12701
12702# Library versioning type.
12703version_type=$version_type
12704
12705# Format of library name prefix.
12706libname_spec=$lt_libname_spec
12707
12708# List of archive names.  First name is the real one, the rest are links.
12709# The last name is the one that the linker finds with -lNAME.
12710library_names_spec=$lt_library_names_spec
12711
12712# The coded name of the library, if different from the real name.
12713soname_spec=$lt_soname_spec
12714
12715# Commands used to build and install an old-style archive.
12716RANLIB=$lt_RANLIB
12717old_archive_cmds=$lt_old_archive_cmds_CXX
12718old_postinstall_cmds=$lt_old_postinstall_cmds
12719old_postuninstall_cmds=$lt_old_postuninstall_cmds
12720
12721# Create an old-style archive from a shared archive.
12722old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12723
12724# Create a temporary old-style archive to link instead of a shared archive.
12725old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12726
12727# Commands used to build and install a shared archive.
12728archive_cmds=$lt_archive_cmds_CXX
12729archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12730postinstall_cmds=$lt_postinstall_cmds
12731postuninstall_cmds=$lt_postuninstall_cmds
12732
12733# Commands used to build a loadable module (assumed same as above if empty)
12734module_cmds=$lt_module_cmds_CXX
12735module_expsym_cmds=$lt_module_expsym_cmds_CXX
12736
12737# Commands to strip libraries.
12738old_striplib=$lt_old_striplib
12739striplib=$lt_striplib
12740
12741# Dependencies to place before the objects being linked to create a
12742# shared library.
12743predep_objects=$lt_predep_objects_CXX
12744
12745# Dependencies to place after the objects being linked to create a
12746# shared library.
12747postdep_objects=$lt_postdep_objects_CXX
12748
12749# Dependencies to place before the objects being linked to create a
12750# shared library.
12751predeps=$lt_predeps_CXX
12752
12753# Dependencies to place after the objects being linked to create a
12754# shared library.
12755postdeps=$lt_postdeps_CXX
12756
12757# The library search path used internally by the compiler when linking
12758# a shared library.
12759compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12760
12761# Method to check whether dependent libraries are shared objects.
12762deplibs_check_method=$lt_deplibs_check_method
12763
12764# Command to use when deplibs_check_method == file_magic.
12765file_magic_cmd=$lt_file_magic_cmd
12766
12767# Flag that allows shared libraries with undefined symbols to be built.
12768allow_undefined_flag=$lt_allow_undefined_flag_CXX
12769
12770# Flag that forces no undefined symbols.
12771no_undefined_flag=$lt_no_undefined_flag_CXX
12772
12773# Commands used to finish a libtool library installation in a directory.
12774finish_cmds=$lt_finish_cmds
12775
12776# Same as above, but a single script fragment to be evaled but not shown.
12777finish_eval=$lt_finish_eval
12778
12779# Take the output of nm and produce a listing of raw symbols and C names.
12780global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12781
12782# Transform the output of nm in a proper C declaration
12783global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12784
12785# Transform the output of nm in a C name address pair
12786global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12787
12788# This is the shared library runtime path variable.
12789runpath_var=$runpath_var
12790
12791# This is the shared library path variable.
12792shlibpath_var=$shlibpath_var
12793
12794# Is shlibpath searched before the hard-coded library search path?
12795shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12796
12797# How to hardcode a shared library path into an executable.
12798hardcode_action=$hardcode_action_CXX
12799
12800# Whether we should hardcode library paths into libraries.
12801hardcode_into_libs=$hardcode_into_libs
12802
12803# Flag to hardcode \$libdir into a binary during linking.
12804# This must work even if \$libdir does not exist.
12805hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12806
12807# If ld is used when linking, flag to hardcode \$libdir into
12808# a binary during linking. This must work even if \$libdir does
12809# not exist.
12810hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12811
12812# Whether we need a single -rpath flag with a separated argument.
12813hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12814
12815# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12816# resulting binary.
12817hardcode_direct=$hardcode_direct_CXX
12818
12819# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12820# resulting binary.
12821hardcode_minus_L=$hardcode_minus_L_CXX
12822
12823# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12824# the resulting binary.
12825hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12826
12827# Set to yes if building a shared library automatically hardcodes DIR into the library
12828# and all subsequent libraries and executables linked against it.
12829hardcode_automatic=$hardcode_automatic_CXX
12830
12831# Variables whose values should be saved in libtool wrapper scripts and
12832# restored at relink time.
12833variables_saved_for_relink="$variables_saved_for_relink"
12834
12835# Whether libtool must link a program against all its dependency libraries.
12836link_all_deplibs=$link_all_deplibs_CXX
12837
12838# Compile-time system search path for libraries
12839sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12840
12841# Run-time system search path for libraries
12842sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12843
12844# Fix the shell variable \$srcfile for the compiler.
12845fix_srcfile_path="$fix_srcfile_path_CXX"
12846
12847# Set to yes if exported symbols are required.
12848always_export_symbols=$always_export_symbols_CXX
12849
12850# The commands to list exported symbols.
12851export_symbols_cmds=$lt_export_symbols_cmds_CXX
12852
12853# The commands to extract the exported symbol list from a shared archive.
12854extract_expsyms_cmds=$lt_extract_expsyms_cmds
12855
12856# Symbols that should not be listed in the preloaded symbols.
12857exclude_expsyms=$lt_exclude_expsyms_CXX
12858
12859# Symbols that must always be exported.
12860include_expsyms=$lt_include_expsyms_CXX
12861
12862# ### END LIBTOOL TAG CONFIG: $tagname
12863
12864__EOF__
12865
12866
12867else
12868  # If there is no Makefile yet, we rely on a make rule to execute
12869  # `config.status --recheck' to rerun these tests and create the
12870  # libtool script then.
12871  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12872  if test -f "$ltmain_in"; then
12873    test -f Makefile && make "$ltmain"
12874  fi
12875fi
12876
12877
12878ac_ext=c
12879ac_cpp='$CPP $CPPFLAGS'
12880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12882ac_compiler_gnu=$ac_cv_c_compiler_gnu
12883
12884CC=$lt_save_CC
12885LDCXX=$LD
12886LD=$lt_save_LD
12887GCC=$lt_save_GCC
12888with_gnu_ldcxx=$with_gnu_ld
12889with_gnu_ld=$lt_save_with_gnu_ld
12890lt_cv_path_LDCXX=$lt_cv_path_LD
12891lt_cv_path_LD=$lt_save_path_LD
12892lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12893lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12894
12895	else
12896	  tagname=""
12897	fi
12898	;;
12899
12900      F77)
12901	if test -n "$F77" && test "X$F77" != "Xno"; then
12902
12903ac_ext=f
12904ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12905ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12906ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12907
12908
12909archive_cmds_need_lc_F77=no
12910allow_undefined_flag_F77=
12911always_export_symbols_F77=no
12912archive_expsym_cmds_F77=
12913export_dynamic_flag_spec_F77=
12914hardcode_direct_F77=no
12915hardcode_libdir_flag_spec_F77=
12916hardcode_libdir_flag_spec_ld_F77=
12917hardcode_libdir_separator_F77=
12918hardcode_minus_L_F77=no
12919hardcode_automatic_F77=no
12920module_cmds_F77=
12921module_expsym_cmds_F77=
12922link_all_deplibs_F77=unknown
12923old_archive_cmds_F77=$old_archive_cmds
12924no_undefined_flag_F77=
12925whole_archive_flag_spec_F77=
12926enable_shared_with_static_runtimes_F77=no
12927
12928# Source file extension for f77 test sources.
12929ac_ext=f
12930
12931# Object file extension for compiled f77 test sources.
12932objext=o
12933objext_F77=$objext
12934
12935# Code to be used in simple compile tests
12936lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12937
12938# Code to be used in simple link tests
12939lt_simple_link_test_code="      program t\n      end\n"
12940
12941# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12942
12943# If no C compiler was specified, use CC.
12944LTCC=${LTCC-"$CC"}
12945
12946# If no C compiler flags were specified, use CFLAGS.
12947LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12948
12949# Allow CC to be a program name with arguments.
12950compiler=$CC
12951
12952
12953# save warnings/boilerplate of simple test code
12954ac_outfile=conftest.$ac_objext
12955printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12956eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12957_lt_compiler_boilerplate=`cat conftest.err`
12958$rm conftest*
12959
12960ac_outfile=conftest.$ac_objext
12961printf "$lt_simple_link_test_code" >conftest.$ac_ext
12962eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12963_lt_linker_boilerplate=`cat conftest.err`
12964$rm conftest*
12965
12966
12967# Allow CC to be a program name with arguments.
12968lt_save_CC="$CC"
12969CC=${F77-"f77"}
12970compiler=$CC
12971compiler_F77=$CC
12972for cc_temp in $compiler""; do
12973  case $cc_temp in
12974    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12975    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12976    \-*) ;;
12977    *) break;;
12978  esac
12979done
12980cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12981
12982
12983echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12984echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12985echo "$as_me:$LINENO: result: $can_build_shared" >&5
12986echo "${ECHO_T}$can_build_shared" >&6
12987
12988echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12989echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12990test "$can_build_shared" = "no" && enable_shared=no
12991
12992# On AIX, shared libraries and static libraries use the same namespace, and
12993# are all built from PIC.
12994case $host_os in
12995aix3*)
12996  test "$enable_shared" = yes && enable_static=no
12997  if test -n "$RANLIB"; then
12998    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12999    postinstall_cmds='$RANLIB $lib'
13000  fi
13001  ;;
13002aix4* | aix5*)
13003  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13004    test "$enable_shared" = yes && enable_static=no
13005  fi
13006  ;;
13007esac
13008echo "$as_me:$LINENO: result: $enable_shared" >&5
13009echo "${ECHO_T}$enable_shared" >&6
13010
13011echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13012echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13013# Make sure either enable_shared or enable_static is yes.
13014test "$enable_shared" = yes || enable_static=yes
13015echo "$as_me:$LINENO: result: $enable_static" >&5
13016echo "${ECHO_T}$enable_static" >&6
13017
13018GCC_F77="$G77"
13019LD_F77="$LD"
13020
13021lt_prog_compiler_wl_F77=
13022lt_prog_compiler_pic_F77=
13023lt_prog_compiler_static_F77=
13024
13025echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13026echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13027
13028  if test "$GCC" = yes; then
13029    lt_prog_compiler_wl_F77='-Wl,'
13030    lt_prog_compiler_static_F77='-static'
13031
13032    case $host_os in
13033      aix*)
13034      # All AIX code is PIC.
13035      if test "$host_cpu" = ia64; then
13036	# AIX 5 now supports IA64 processor
13037	lt_prog_compiler_static_F77='-Bstatic'
13038      fi
13039      ;;
13040
13041    amigaos*)
13042      # FIXME: we need at least 68020 code to build shared libraries, but
13043      # adding the `-m68020' flag to GCC prevents building anything better,
13044      # like `-m68040'.
13045      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13046      ;;
13047
13048    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13049      # PIC is the default for these OSes.
13050      ;;
13051
13052    mingw* | pw32* | os2*)
13053      # This hack is so that the source file can tell whether it is being
13054      # built for inclusion in a dll (and should export symbols for example).
13055      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13056      ;;
13057
13058    darwin* | rhapsody*)
13059      # PIC is the default on this platform
13060      # Common symbols not allowed in MH_DYLIB files
13061      lt_prog_compiler_pic_F77='-fno-common'
13062      ;;
13063
13064    interix3*)
13065      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13066      # Instead, we relocate shared libraries at runtime.
13067      ;;
13068
13069    msdosdjgpp*)
13070      # Just because we use GCC doesn't mean we suddenly get shared libraries
13071      # on systems that don't support them.
13072      lt_prog_compiler_can_build_shared_F77=no
13073      enable_shared=no
13074      ;;
13075
13076    sysv4*MP*)
13077      if test -d /usr/nec; then
13078	lt_prog_compiler_pic_F77=-Kconform_pic
13079      fi
13080      ;;
13081
13082    hpux*)
13083      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13084      # not for PA HP-UX.
13085      case $host_cpu in
13086      hppa*64*|ia64*)
13087	# +Z the default
13088	;;
13089      *)
13090	lt_prog_compiler_pic_F77='-fPIC'
13091	;;
13092      esac
13093      ;;
13094
13095    *)
13096      lt_prog_compiler_pic_F77='-fPIC'
13097      ;;
13098    esac
13099  else
13100    # PORTME Check for flag to pass linker flags through the system compiler.
13101    case $host_os in
13102    aix*)
13103      lt_prog_compiler_wl_F77='-Wl,'
13104      if test "$host_cpu" = ia64; then
13105	# AIX 5 now supports IA64 processor
13106	lt_prog_compiler_static_F77='-Bstatic'
13107      else
13108	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13109      fi
13110      ;;
13111      darwin*)
13112        # PIC is the default on this platform
13113        # Common symbols not allowed in MH_DYLIB files
13114       case $cc_basename in
13115         xlc*)
13116         lt_prog_compiler_pic_F77='-qnocommon'
13117         lt_prog_compiler_wl_F77='-Wl,'
13118         ;;
13119       esac
13120       ;;
13121
13122    mingw* | pw32* | os2*)
13123      # This hack is so that the source file can tell whether it is being
13124      # built for inclusion in a dll (and should export symbols for example).
13125      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13126      ;;
13127
13128    hpux9* | hpux10* | hpux11*)
13129      lt_prog_compiler_wl_F77='-Wl,'
13130      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13131      # not for PA HP-UX.
13132      case $host_cpu in
13133      hppa*64*|ia64*)
13134	# +Z the default
13135	;;
13136      *)
13137	lt_prog_compiler_pic_F77='+Z'
13138	;;
13139      esac
13140      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13141      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13142      ;;
13143
13144    irix5* | irix6* | nonstopux*)
13145      lt_prog_compiler_wl_F77='-Wl,'
13146      # PIC (with -KPIC) is the default.
13147      lt_prog_compiler_static_F77='-non_shared'
13148      ;;
13149
13150    newsos6)
13151      lt_prog_compiler_pic_F77='-KPIC'
13152      lt_prog_compiler_static_F77='-Bstatic'
13153      ;;
13154
13155    linux*)
13156      case $cc_basename in
13157      icc* | ecc*)
13158	lt_prog_compiler_wl_F77='-Wl,'
13159	lt_prog_compiler_pic_F77='-KPIC'
13160	lt_prog_compiler_static_F77='-static'
13161        ;;
13162      pgcc* | pgf77* | pgf90* | pgf95*)
13163        # Portland Group compilers (*not* the Pentium gcc compiler,
13164	# which looks to be a dead project)
13165	lt_prog_compiler_wl_F77='-Wl,'
13166	lt_prog_compiler_pic_F77='-fpic'
13167	lt_prog_compiler_static_F77='-Bstatic'
13168        ;;
13169      ccc*)
13170        lt_prog_compiler_wl_F77='-Wl,'
13171        # All Alpha code is PIC.
13172        lt_prog_compiler_static_F77='-non_shared'
13173        ;;
13174      esac
13175      ;;
13176
13177    osf3* | osf4* | osf5*)
13178      lt_prog_compiler_wl_F77='-Wl,'
13179      # All OSF/1 code is PIC.
13180      lt_prog_compiler_static_F77='-non_shared'
13181      ;;
13182
13183    solaris*)
13184      lt_prog_compiler_pic_F77='-KPIC'
13185      lt_prog_compiler_static_F77='-Bstatic'
13186      case $cc_basename in
13187      f77* | f90* | f95*)
13188	lt_prog_compiler_wl_F77='-Qoption ld ';;
13189      *)
13190	lt_prog_compiler_wl_F77='-Wl,';;
13191      esac
13192      ;;
13193
13194    sunos4*)
13195      lt_prog_compiler_wl_F77='-Qoption ld '
13196      lt_prog_compiler_pic_F77='-PIC'
13197      lt_prog_compiler_static_F77='-Bstatic'
13198      ;;
13199
13200    sysv4 | sysv4.2uw2* | sysv4.3*)
13201      lt_prog_compiler_wl_F77='-Wl,'
13202      lt_prog_compiler_pic_F77='-KPIC'
13203      lt_prog_compiler_static_F77='-Bstatic'
13204      ;;
13205
13206    sysv4*MP*)
13207      if test -d /usr/nec ;then
13208	lt_prog_compiler_pic_F77='-Kconform_pic'
13209	lt_prog_compiler_static_F77='-Bstatic'
13210      fi
13211      ;;
13212
13213    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13214      lt_prog_compiler_wl_F77='-Wl,'
13215      lt_prog_compiler_pic_F77='-KPIC'
13216      lt_prog_compiler_static_F77='-Bstatic'
13217      ;;
13218
13219    unicos*)
13220      lt_prog_compiler_wl_F77='-Wl,'
13221      lt_prog_compiler_can_build_shared_F77=no
13222      ;;
13223
13224    uts4*)
13225      lt_prog_compiler_pic_F77='-pic'
13226      lt_prog_compiler_static_F77='-Bstatic'
13227      ;;
13228
13229    *)
13230      lt_prog_compiler_can_build_shared_F77=no
13231      ;;
13232    esac
13233  fi
13234
13235echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13236echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13237
13238#
13239# Check to make sure the PIC flag actually works.
13240#
13241if test -n "$lt_prog_compiler_pic_F77"; then
13242
13243echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13244echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13245if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13246  echo $ECHO_N "(cached) $ECHO_C" >&6
13247else
13248  lt_prog_compiler_pic_works_F77=no
13249  ac_outfile=conftest.$ac_objext
13250   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13251   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13252   # Insert the option either (1) after the last *FLAGS variable, or
13253   # (2) before a word containing "conftest.", or (3) at the end.
13254   # Note that $ac_compile itself does not contain backslashes and begins
13255   # with a dollar sign (not a hyphen), so the echo should work correctly.
13256   # The option is referenced via a variable to avoid confusing sed.
13257   lt_compile=`echo "$ac_compile" | $SED \
13258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13260   -e 's:$: $lt_compiler_flag:'`
13261   (eval echo "\"\$as_me:13261: $lt_compile\"" >&5)
13262   (eval "$lt_compile" 2>conftest.err)
13263   ac_status=$?
13264   cat conftest.err >&5
13265   echo "$as_me:13265: \$? = $ac_status" >&5
13266   if (exit $ac_status) && test -s "$ac_outfile"; then
13267     # The compiler can only warn and ignore the option if not recognized
13268     # So say no if there are warnings other than the usual output.
13269     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13270     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13271     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13272       lt_prog_compiler_pic_works_F77=yes
13273     fi
13274   fi
13275   $rm conftest*
13276
13277fi
13278echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13279echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13280
13281if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13282    case $lt_prog_compiler_pic_F77 in
13283     "" | " "*) ;;
13284     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13285     esac
13286else
13287    lt_prog_compiler_pic_F77=
13288     lt_prog_compiler_can_build_shared_F77=no
13289fi
13290
13291fi
13292case $host_os in
13293  # For platforms which do not support PIC, -DPIC is meaningless:
13294  *djgpp*)
13295    lt_prog_compiler_pic_F77=
13296    ;;
13297  *)
13298    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13299    ;;
13300esac
13301
13302#
13303# Check to make sure the static flag actually works.
13304#
13305wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13306echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13307echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13308if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13309  echo $ECHO_N "(cached) $ECHO_C" >&6
13310else
13311  lt_prog_compiler_static_works_F77=no
13312   save_LDFLAGS="$LDFLAGS"
13313   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13314   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13315   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13316     # The linker can only warn and ignore the option if not recognized
13317     # So say no if there are warnings
13318     if test -s conftest.err; then
13319       # Append any errors to the config.log.
13320       cat conftest.err 1>&5
13321       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13322       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13323       if diff conftest.exp conftest.er2 >/dev/null; then
13324         lt_prog_compiler_static_works_F77=yes
13325       fi
13326     else
13327       lt_prog_compiler_static_works_F77=yes
13328     fi
13329   fi
13330   $rm conftest*
13331   LDFLAGS="$save_LDFLAGS"
13332
13333fi
13334echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13335echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13336
13337if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13338    :
13339else
13340    lt_prog_compiler_static_F77=
13341fi
13342
13343
13344echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13345echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13346if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13347  echo $ECHO_N "(cached) $ECHO_C" >&6
13348else
13349  lt_cv_prog_compiler_c_o_F77=no
13350   $rm -r conftest 2>/dev/null
13351   mkdir conftest
13352   cd conftest
13353   mkdir out
13354   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13355
13356   lt_compiler_flag="-o out/conftest2.$ac_objext"
13357   # Insert the option either (1) after the last *FLAGS variable, or
13358   # (2) before a word containing "conftest.", or (3) at the end.
13359   # Note that $ac_compile itself does not contain backslashes and begins
13360   # with a dollar sign (not a hyphen), so the echo should work correctly.
13361   lt_compile=`echo "$ac_compile" | $SED \
13362   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13363   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13364   -e 's:$: $lt_compiler_flag:'`
13365   (eval echo "\"\$as_me:13365: $lt_compile\"" >&5)
13366   (eval "$lt_compile" 2>out/conftest.err)
13367   ac_status=$?
13368   cat out/conftest.err >&5
13369   echo "$as_me:13369: \$? = $ac_status" >&5
13370   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13371   then
13372     # The compiler can only warn and ignore the option if not recognized
13373     # So say no if there are warnings
13374     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13375     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13376     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13377       lt_cv_prog_compiler_c_o_F77=yes
13378     fi
13379   fi
13380   chmod u+w . 2>&5
13381   $rm conftest*
13382   # SGI C++ compiler will create directory out/ii_files/ for
13383   # template instantiation
13384   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13385   $rm out/* && rmdir out
13386   cd ..
13387   rmdir conftest
13388   $rm conftest*
13389
13390fi
13391echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13392echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13393
13394
13395hard_links="nottested"
13396if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13397  # do not overwrite the value of need_locks provided by the user
13398  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13399echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13400  hard_links=yes
13401  $rm conftest*
13402  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13403  touch conftest.a
13404  ln conftest.a conftest.b 2>&5 || hard_links=no
13405  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13406  echo "$as_me:$LINENO: result: $hard_links" >&5
13407echo "${ECHO_T}$hard_links" >&6
13408  if test "$hard_links" = no; then
13409    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13410echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13411    need_locks=warn
13412  fi
13413else
13414  need_locks=no
13415fi
13416
13417echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13418echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13419
13420  runpath_var=
13421  allow_undefined_flag_F77=
13422  enable_shared_with_static_runtimes_F77=no
13423  archive_cmds_F77=
13424  archive_expsym_cmds_F77=
13425  old_archive_From_new_cmds_F77=
13426  old_archive_from_expsyms_cmds_F77=
13427  export_dynamic_flag_spec_F77=
13428  whole_archive_flag_spec_F77=
13429  thread_safe_flag_spec_F77=
13430  hardcode_libdir_flag_spec_F77=
13431  hardcode_libdir_flag_spec_ld_F77=
13432  hardcode_libdir_separator_F77=
13433  hardcode_direct_F77=no
13434  hardcode_minus_L_F77=no
13435  hardcode_shlibpath_var_F77=unsupported
13436  link_all_deplibs_F77=unknown
13437  hardcode_automatic_F77=no
13438  module_cmds_F77=
13439  module_expsym_cmds_F77=
13440  always_export_symbols_F77=no
13441  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13442  # include_expsyms should be a list of space-separated symbols to be *always*
13443  # included in the symbol list
13444  include_expsyms_F77=
13445  # exclude_expsyms can be an extended regexp of symbols to exclude
13446  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13447  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13448  # as well as any symbol that contains `d'.
13449  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13450  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13451  # platforms (ab)use it in PIC code, but their linkers get confused if
13452  # the symbol is explicitly referenced.  Since portable code cannot
13453  # rely on this symbol name, it's probably fine to never include it in
13454  # preloaded symbol tables.
13455  extract_expsyms_cmds=
13456  # Just being paranoid about ensuring that cc_basename is set.
13457  for cc_temp in $compiler""; do
13458  case $cc_temp in
13459    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13460    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13461    \-*) ;;
13462    *) break;;
13463  esac
13464done
13465cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13466
13467  case $host_os in
13468  cygwin* | mingw* | pw32*)
13469    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13470    # When not using gcc, we currently assume that we are using
13471    # Microsoft Visual C++.
13472    if test "$GCC" != yes; then
13473      with_gnu_ld=no
13474    fi
13475    ;;
13476  interix*)
13477    # we just hope/assume this is gcc and not c89 (= MSVC++)
13478    with_gnu_ld=yes
13479    ;;
13480  openbsd*)
13481    with_gnu_ld=no
13482    ;;
13483  esac
13484
13485  ld_shlibs_F77=yes
13486  if test "$with_gnu_ld" = yes; then
13487    # If archive_cmds runs LD, not CC, wlarc should be empty
13488    wlarc='${wl}'
13489
13490    # Set some defaults for GNU ld with shared library support. These
13491    # are reset later if shared libraries are not supported. Putting them
13492    # here allows them to be overridden if necessary.
13493    runpath_var=LD_RUN_PATH
13494    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13495    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13496    # ancient GNU ld didn't support --whole-archive et. al.
13497    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13498	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13499      else
13500  	whole_archive_flag_spec_F77=
13501    fi
13502    supports_anon_versioning=no
13503    case `$LD -v 2>/dev/null` in
13504      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13505      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13506      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13507      *\ 2.11.*) ;; # other 2.11 versions
13508      *) supports_anon_versioning=yes ;;
13509    esac
13510
13511    # See if GNU ld supports shared libraries.
13512    case $host_os in
13513    aix3* | aix4* | aix5*)
13514      # On AIX/PPC, the GNU linker is very broken
13515      if test "$host_cpu" != ia64; then
13516	ld_shlibs_F77=no
13517	cat <<EOF 1>&2
13518
13519*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13520*** to be unable to reliably create shared libraries on AIX.
13521*** Therefore, libtool is disabling shared libraries support.  If you
13522*** really care for shared libraries, you may want to modify your PATH
13523*** so that a non-GNU linker is found, and then restart.
13524
13525EOF
13526      fi
13527      ;;
13528
13529    amigaos*)
13530      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)'
13531      hardcode_libdir_flag_spec_F77='-L$libdir'
13532      hardcode_minus_L_F77=yes
13533
13534      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13535      # that the semantics of dynamic libraries on AmigaOS, at least up
13536      # to version 4, is to share data among multiple programs linked
13537      # with the same dynamic library.  Since this doesn't match the
13538      # behavior of shared libraries on other platforms, we can't use
13539      # them.
13540      ld_shlibs_F77=no
13541      ;;
13542
13543    beos*)
13544      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13545	allow_undefined_flag_F77=unsupported
13546	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13547	# support --undefined.  This deserves some investigation.  FIXME
13548	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13549      else
13550	ld_shlibs_F77=no
13551      fi
13552      ;;
13553
13554    cygwin* | mingw* | pw32*)
13555      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13556      # as there is no search path for DLLs.
13557      hardcode_libdir_flag_spec_F77='-L$libdir'
13558      allow_undefined_flag_F77=unsupported
13559      always_export_symbols_F77=no
13560      enable_shared_with_static_runtimes_F77=yes
13561      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13562
13563      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13564        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13565	# If the export-symbols file already is a .def file (1st line
13566	# is EXPORTS), use it as is; otherwise, prepend...
13567	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13568	  cp $export_symbols $output_objdir/$soname.def;
13569	else
13570	  echo EXPORTS > $output_objdir/$soname.def;
13571	  cat $export_symbols >> $output_objdir/$soname.def;
13572	fi~
13573	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13574      else
13575	ld_shlibs_F77=no
13576      fi
13577      ;;
13578
13579    interix3*)
13580      hardcode_direct_F77=no
13581      hardcode_shlibpath_var_F77=no
13582      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13583      export_dynamic_flag_spec_F77='${wl}-E'
13584      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13585      # Instead, shared libraries are loaded at an image base (0x10000000 by
13586      # default) and relocated if they conflict, which is a slow very memory
13587      # consuming and fragmenting process.  To avoid this, we pick a random,
13588      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13589      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13590      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'
13591      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'
13592      ;;
13593
13594    linux*)
13595      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13596	tmp_addflag=
13597	case $cc_basename,$host_cpu in
13598	pgcc*)				# Portland Group C compiler
13599	  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'
13600	  tmp_addflag=' $pic_flag'
13601	  ;;
13602	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13603	  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'
13604	  tmp_addflag=' $pic_flag -Mnomain' ;;
13605	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13606	  tmp_addflag=' -i_dynamic' ;;
13607	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13608	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13609	ifc* | ifort*)			# Intel Fortran compiler
13610	  tmp_addflag=' -nofor_main' ;;
13611	esac
13612	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13613
13614	if test $supports_anon_versioning = yes; then
13615	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13616  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13617  $echo "local: *; };" >> $output_objdir/$libname.ver~
13618	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13619	fi
13620      else
13621	ld_shlibs_F77=no
13622      fi
13623      ;;
13624
13625    netbsd*)
13626      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13627	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13628	wlarc=
13629      else
13630	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13631	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13632      fi
13633      ;;
13634
13635    solaris*)
13636      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13637	ld_shlibs_F77=no
13638	cat <<EOF 1>&2
13639
13640*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13641*** create shared libraries on Solaris systems.  Therefore, libtool
13642*** is disabling shared libraries support.  We urge you to upgrade GNU
13643*** binutils to release 2.9.1 or newer.  Another option is to modify
13644*** your PATH or compiler configuration so that the native linker is
13645*** used, and then restart.
13646
13647EOF
13648      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13649	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13650	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13651      else
13652	ld_shlibs_F77=no
13653      fi
13654      ;;
13655
13656    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13657      case `$LD -v 2>&1` in
13658        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13659	ld_shlibs_F77=no
13660	cat <<_LT_EOF 1>&2
13661
13662*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13663*** reliably create shared libraries on SCO systems.  Therefore, libtool
13664*** is disabling shared libraries support.  We urge you to upgrade GNU
13665*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13666*** your PATH or compiler configuration so that the native linker is
13667*** used, and then restart.
13668
13669_LT_EOF
13670	;;
13671	*)
13672	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13673	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13674	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13675	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13676	  else
13677	    ld_shlibs_F77=no
13678	  fi
13679	;;
13680      esac
13681      ;;
13682
13683    sunos4*)
13684      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13685      wlarc=
13686      hardcode_direct_F77=yes
13687      hardcode_shlibpath_var_F77=no
13688      ;;
13689
13690    *)
13691      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13692	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13693	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13694      else
13695	ld_shlibs_F77=no
13696      fi
13697      ;;
13698    esac
13699
13700    if test "$ld_shlibs_F77" = no; then
13701      runpath_var=
13702      hardcode_libdir_flag_spec_F77=
13703      export_dynamic_flag_spec_F77=
13704      whole_archive_flag_spec_F77=
13705    fi
13706  else
13707    # PORTME fill in a description of your system's linker (not GNU ld)
13708    case $host_os in
13709    aix3*)
13710      allow_undefined_flag_F77=unsupported
13711      always_export_symbols_F77=yes
13712      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'
13713      # Note: this linker hardcodes the directories in LIBPATH if there
13714      # are no directories specified by -L.
13715      hardcode_minus_L_F77=yes
13716      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13717	# Neither direct hardcoding nor static linking is supported with a
13718	# broken collect2.
13719	hardcode_direct_F77=unsupported
13720      fi
13721      ;;
13722
13723    aix4* | aix5*)
13724      if test "$host_cpu" = ia64; then
13725	# On IA64, the linker does run time linking by default, so we don't
13726	# have to do anything special.
13727	aix_use_runtimelinking=no
13728	exp_sym_flag='-Bexport'
13729	no_entry_flag=""
13730      else
13731	# If we're using GNU nm, then we don't want the "-C" option.
13732	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13733	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13734	  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'
13735	else
13736	  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'
13737	fi
13738	aix_use_runtimelinking=no
13739
13740	# Test if we are trying to use run time linking or normal
13741	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13742	# need to do runtime linking.
13743	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13744	  for ld_flag in $LDFLAGS; do
13745  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13746  	    aix_use_runtimelinking=yes
13747  	    break
13748  	  fi
13749	  done
13750	  ;;
13751	esac
13752
13753	exp_sym_flag='-bexport'
13754	no_entry_flag='-bnoentry'
13755      fi
13756
13757      # When large executables or shared objects are built, AIX ld can
13758      # have problems creating the table of contents.  If linking a library
13759      # or program results in "error TOC overflow" add -mminimal-toc to
13760      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13761      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13762
13763      archive_cmds_F77=''
13764      hardcode_direct_F77=yes
13765      hardcode_libdir_separator_F77=':'
13766      link_all_deplibs_F77=yes
13767
13768      if test "$GCC" = yes; then
13769	case $host_os in aix4.[012]|aix4.[012].*)
13770	# We only want to do this on AIX 4.2 and lower, the check
13771	# below for broken collect2 doesn't work under 4.3+
13772	  collect2name=`${CC} -print-prog-name=collect2`
13773	  if test -f "$collect2name" && \
13774  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13775	  then
13776  	  # We have reworked collect2
13777  	  hardcode_direct_F77=yes
13778	  else
13779  	  # We have old collect2
13780  	  hardcode_direct_F77=unsupported
13781  	  # It fails to find uninstalled libraries when the uninstalled
13782  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13783  	  # to unsupported forces relinking
13784  	  hardcode_minus_L_F77=yes
13785  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13786  	  hardcode_libdir_separator_F77=
13787	  fi
13788	  ;;
13789	esac
13790	shared_flag='-shared'
13791	if test "$aix_use_runtimelinking" = yes; then
13792	  shared_flag="$shared_flag "'${wl}-G'
13793	fi
13794      else
13795	# not using gcc
13796	if test "$host_cpu" = ia64; then
13797  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13798  	# chokes on -Wl,-G. The following line is correct:
13799	  shared_flag='-G'
13800	else
13801	  if test "$aix_use_runtimelinking" = yes; then
13802	    shared_flag='${wl}-G'
13803	  else
13804	    shared_flag='${wl}-bM:SRE'
13805	  fi
13806	fi
13807      fi
13808
13809      # It seems that -bexpall does not export symbols beginning with
13810      # underscore (_), so it is better to generate a list of symbols to export.
13811      always_export_symbols_F77=yes
13812      if test "$aix_use_runtimelinking" = yes; then
13813	# Warning - without using the other runtime loading flags (-brtl),
13814	# -berok will link without error, but may produce a broken library.
13815	allow_undefined_flag_F77='-berok'
13816       # Determine the default libpath from the value encoded in an empty executable.
13817       cat >conftest.$ac_ext <<_ACEOF
13818      program main
13819
13820      end
13821_ACEOF
13822rm -f conftest.$ac_objext conftest$ac_exeext
13823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824  (eval $ac_link) 2>conftest.er1
13825  ac_status=$?
13826  grep -v '^ *+' conftest.er1 >conftest.err
13827  rm -f conftest.er1
13828  cat conftest.err >&5
13829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830  (exit $ac_status); } &&
13831	 { ac_try='test -z "$ac_f77_werror_flag"
13832			 || test ! -s conftest.err'
13833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834  (eval $ac_try) 2>&5
13835  ac_status=$?
13836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837  (exit $ac_status); }; } &&
13838	 { ac_try='test -s conftest$ac_exeext'
13839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840  (eval $ac_try) 2>&5
13841  ac_status=$?
13842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843  (exit $ac_status); }; }; then
13844
13845aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13846}'`
13847# Check for a 64-bit object if we didn't find anything.
13848if 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; }
13849}'`; fi
13850else
13851  echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
13854fi
13855rm -f conftest.err conftest.$ac_objext \
13856      conftest$ac_exeext conftest.$ac_ext
13857if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13858
13859       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13860	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"
13861       else
13862	if test "$host_cpu" = ia64; then
13863	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13864	  allow_undefined_flag_F77="-z nodefs"
13865	  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"
13866	else
13867	 # Determine the default libpath from the value encoded in an empty executable.
13868	 cat >conftest.$ac_ext <<_ACEOF
13869      program main
13870
13871      end
13872_ACEOF
13873rm -f conftest.$ac_objext conftest$ac_exeext
13874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13875  (eval $ac_link) 2>conftest.er1
13876  ac_status=$?
13877  grep -v '^ *+' conftest.er1 >conftest.err
13878  rm -f conftest.er1
13879  cat conftest.err >&5
13880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881  (exit $ac_status); } &&
13882	 { ac_try='test -z "$ac_f77_werror_flag"
13883			 || test ! -s conftest.err'
13884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885  (eval $ac_try) 2>&5
13886  ac_status=$?
13887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888  (exit $ac_status); }; } &&
13889	 { ac_try='test -s conftest$ac_exeext'
13890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891  (eval $ac_try) 2>&5
13892  ac_status=$?
13893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894  (exit $ac_status); }; }; then
13895
13896aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13897}'`
13898# Check for a 64-bit object if we didn't find anything.
13899if 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; }
13900}'`; fi
13901else
13902  echo "$as_me: failed program was:" >&5
13903sed 's/^/| /' conftest.$ac_ext >&5
13904
13905fi
13906rm -f conftest.err conftest.$ac_objext \
13907      conftest$ac_exeext conftest.$ac_ext
13908if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13909
13910	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13911	  # Warning - without using the other run time loading flags,
13912	  # -berok will link without error, but may produce a broken library.
13913	  no_undefined_flag_F77=' ${wl}-bernotok'
13914	  allow_undefined_flag_F77=' ${wl}-berok'
13915	  # Exported symbols can be pulled into shared objects from archives
13916	  whole_archive_flag_spec_F77='$convenience'
13917	  archive_cmds_need_lc_F77=yes
13918	  # This is similar to how AIX traditionally builds its shared libraries.
13919	  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'
13920	fi
13921      fi
13922      ;;
13923
13924    amigaos*)
13925      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)'
13926      hardcode_libdir_flag_spec_F77='-L$libdir'
13927      hardcode_minus_L_F77=yes
13928      # see comment about different semantics on the GNU ld section
13929      ld_shlibs_F77=no
13930      ;;
13931
13932    bsdi[45]*)
13933      export_dynamic_flag_spec_F77=-rdynamic
13934      ;;
13935
13936    cygwin* | mingw* | pw32*)
13937      # When not using gcc, we currently assume that we are using
13938      # Microsoft Visual C++.
13939      # hardcode_libdir_flag_spec is actually meaningless, as there is
13940      # no search path for DLLs.
13941      hardcode_libdir_flag_spec_F77=' '
13942      allow_undefined_flag_F77=unsupported
13943      # Tell ltmain to make .lib files, not .a files.
13944      libext=lib
13945      # Tell ltmain to make .dll files, not .so files.
13946      shrext_cmds=".dll"
13947      # FIXME: Setting linknames here is a bad hack.
13948      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13949      # The linker will automatically build a .lib file if we build a DLL.
13950      old_archive_From_new_cmds_F77='true'
13951      # FIXME: Should let the user specify the lib program.
13952      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13953      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13954      enable_shared_with_static_runtimes_F77=yes
13955      ;;
13956
13957    darwin* | rhapsody*)
13958      case $host_os in
13959        rhapsody* | darwin1.[012])
13960         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13961         ;;
13962       *) # Darwin 1.3 on
13963         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13964           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13965         else
13966           case ${MACOSX_DEPLOYMENT_TARGET} in
13967             10.[012])
13968               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13969               ;;
13970             10.*)
13971               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13972               ;;
13973           esac
13974         fi
13975         ;;
13976      esac
13977      archive_cmds_need_lc_F77=no
13978      hardcode_direct_F77=no
13979      hardcode_automatic_F77=yes
13980      hardcode_shlibpath_var_F77=unsupported
13981      whole_archive_flag_spec_F77=''
13982      link_all_deplibs_F77=yes
13983    if test "$GCC" = yes ; then
13984    	output_verbose_link_cmd='echo'
13985        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13986      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13987      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13988      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}'
13989      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}'
13990    else
13991      case $cc_basename in
13992        xlc*)
13993         output_verbose_link_cmd='echo'
13994         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13995         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13996          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13997         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}'
13998          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}'
13999          ;;
14000       *)
14001         ld_shlibs_F77=no
14002          ;;
14003      esac
14004    fi
14005      ;;
14006
14007    dgux*)
14008      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14009      hardcode_libdir_flag_spec_F77='-L$libdir'
14010      hardcode_shlibpath_var_F77=no
14011      ;;
14012
14013    freebsd1*)
14014      ld_shlibs_F77=no
14015      ;;
14016
14017    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14018    # support.  Future versions do this automatically, but an explicit c++rt0.o
14019    # does not break anything, and helps significantly (at the cost of a little
14020    # extra space).
14021    freebsd2.2*)
14022      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14023      hardcode_libdir_flag_spec_F77='-R$libdir'
14024      hardcode_direct_F77=yes
14025      hardcode_shlibpath_var_F77=no
14026      ;;
14027
14028    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14029    freebsd2*)
14030      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14031      hardcode_direct_F77=yes
14032      hardcode_minus_L_F77=yes
14033      hardcode_shlibpath_var_F77=no
14034      ;;
14035
14036    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14037    freebsd* | kfreebsd*-gnu | dragonfly*)
14038      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14039      hardcode_libdir_flag_spec_F77='-R$libdir'
14040      hardcode_direct_F77=yes
14041      hardcode_shlibpath_var_F77=no
14042      ;;
14043
14044    hpux9*)
14045      if test "$GCC" = yes; then
14046	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'
14047      else
14048	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'
14049      fi
14050      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14051      hardcode_libdir_separator_F77=:
14052      hardcode_direct_F77=yes
14053
14054      # hardcode_minus_L: Not really in the search PATH,
14055      # but as the default location of the library.
14056      hardcode_minus_L_F77=yes
14057      export_dynamic_flag_spec_F77='${wl}-E'
14058      ;;
14059
14060    hpux10*)
14061      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14062	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14063      else
14064	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14065      fi
14066      if test "$with_gnu_ld" = no; then
14067	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14068	hardcode_libdir_separator_F77=:
14069
14070	hardcode_direct_F77=yes
14071	export_dynamic_flag_spec_F77='${wl}-E'
14072
14073	# hardcode_minus_L: Not really in the search PATH,
14074	# but as the default location of the library.
14075	hardcode_minus_L_F77=yes
14076      fi
14077      ;;
14078
14079    hpux11*)
14080      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14081	case $host_cpu in
14082	hppa*64*)
14083	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14084	  ;;
14085	ia64*)
14086	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14087	  ;;
14088	*)
14089	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14090	  ;;
14091	esac
14092      else
14093	case $host_cpu in
14094	hppa*64*)
14095	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14096	  ;;
14097	ia64*)
14098	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14099	  ;;
14100	*)
14101	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14102	  ;;
14103	esac
14104      fi
14105      if test "$with_gnu_ld" = no; then
14106	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14107	hardcode_libdir_separator_F77=:
14108
14109	case $host_cpu in
14110	hppa*64*|ia64*)
14111	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14112	  hardcode_direct_F77=no
14113	  hardcode_shlibpath_var_F77=no
14114	  ;;
14115	*)
14116	  hardcode_direct_F77=yes
14117	  export_dynamic_flag_spec_F77='${wl}-E'
14118
14119	  # hardcode_minus_L: Not really in the search PATH,
14120	  # but as the default location of the library.
14121	  hardcode_minus_L_F77=yes
14122	  ;;
14123	esac
14124      fi
14125      ;;
14126
14127    irix5* | irix6* | nonstopux*)
14128      if test "$GCC" = yes; then
14129	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'
14130      else
14131	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'
14132	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14133      fi
14134      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14135      hardcode_libdir_separator_F77=:
14136      link_all_deplibs_F77=yes
14137      ;;
14138
14139    netbsd*)
14140      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14141	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14142      else
14143	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14144      fi
14145      hardcode_libdir_flag_spec_F77='-R$libdir'
14146      hardcode_direct_F77=yes
14147      hardcode_shlibpath_var_F77=no
14148      ;;
14149
14150    newsos6)
14151      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14152      hardcode_direct_F77=yes
14153      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14154      hardcode_libdir_separator_F77=:
14155      hardcode_shlibpath_var_F77=no
14156      ;;
14157
14158    openbsd*)
14159      hardcode_direct_F77=yes
14160      hardcode_shlibpath_var_F77=no
14161      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14162	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14163	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14164	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14165	export_dynamic_flag_spec_F77='${wl}-E'
14166      else
14167       case $host_os in
14168	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14169	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14170	   hardcode_libdir_flag_spec_F77='-R$libdir'
14171	   ;;
14172	 *)
14173	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14174	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14175	   ;;
14176       esac
14177      fi
14178      ;;
14179
14180    os2*)
14181      hardcode_libdir_flag_spec_F77='-L$libdir'
14182      hardcode_minus_L_F77=yes
14183      allow_undefined_flag_F77=unsupported
14184      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'
14185      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14186      ;;
14187
14188    osf3*)
14189      if test "$GCC" = yes; then
14190	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14191	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'
14192      else
14193	allow_undefined_flag_F77=' -expect_unresolved \*'
14194	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'
14195      fi
14196      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14197      hardcode_libdir_separator_F77=:
14198      ;;
14199
14200    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14201      if test "$GCC" = yes; then
14202	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14203	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'
14204	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14205      else
14206	allow_undefined_flag_F77=' -expect_unresolved \*'
14207	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'
14208	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~
14209	$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'
14210
14211	# Both c and cxx compiler support -rpath directly
14212	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14213      fi
14214      hardcode_libdir_separator_F77=:
14215      ;;
14216
14217    solaris*)
14218      no_undefined_flag_F77=' -z text'
14219      if test "$GCC" = yes; then
14220	wlarc='${wl}'
14221	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14222	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14223	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14224      else
14225	wlarc=''
14226	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14228  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14229      fi
14230      hardcode_libdir_flag_spec_F77='-R$libdir'
14231      hardcode_shlibpath_var_F77=no
14232      case $host_os in
14233      solaris2.[0-5] | solaris2.[0-5].*) ;;
14234      *)
14235 	# The compiler driver will combine linker options so we
14236 	# cannot just pass the convience library names through
14237 	# without $wl, iff we do not link with $LD.
14238 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14239 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14240 	case $wlarc in
14241 	'')
14242 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14243 	*)
14244 	  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' ;;
14245 	esac ;;
14246      esac
14247      link_all_deplibs_F77=yes
14248      ;;
14249
14250    sunos4*)
14251      if test "x$host_vendor" = xsequent; then
14252	# Use $CC to link under sequent, because it throws in some extra .o
14253	# files that make .init and .fini sections work.
14254	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14255      else
14256	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14257      fi
14258      hardcode_libdir_flag_spec_F77='-L$libdir'
14259      hardcode_direct_F77=yes
14260      hardcode_minus_L_F77=yes
14261      hardcode_shlibpath_var_F77=no
14262      ;;
14263
14264    sysv4)
14265      case $host_vendor in
14266	sni)
14267	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14268	  hardcode_direct_F77=yes # is this really true???
14269	;;
14270	siemens)
14271	  ## LD is ld it makes a PLAMLIB
14272	  ## CC just makes a GrossModule.
14273	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14274	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14275	  hardcode_direct_F77=no
14276        ;;
14277	motorola)
14278	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14280	;;
14281      esac
14282      runpath_var='LD_RUN_PATH'
14283      hardcode_shlibpath_var_F77=no
14284      ;;
14285
14286    sysv4.3*)
14287      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288      hardcode_shlibpath_var_F77=no
14289      export_dynamic_flag_spec_F77='-Bexport'
14290      ;;
14291
14292    sysv4*MP*)
14293      if test -d /usr/nec; then
14294	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295	hardcode_shlibpath_var_F77=no
14296	runpath_var=LD_RUN_PATH
14297	hardcode_runpath_var=yes
14298	ld_shlibs_F77=yes
14299      fi
14300      ;;
14301
14302    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14303      no_undefined_flag_F77='${wl}-z,text'
14304      archive_cmds_need_lc_F77=no
14305      hardcode_shlibpath_var_F77=no
14306      runpath_var='LD_RUN_PATH'
14307
14308      if test "$GCC" = yes; then
14309	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14310	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14311      else
14312	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14313	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14314      fi
14315      ;;
14316
14317    sysv5* | sco3.2v5* | sco5v6*)
14318      # Note: We can NOT use -z defs as we might desire, because we do not
14319      # link with -lc, and that would cause any symbols used from libc to
14320      # always be unresolved, which means just about no library would
14321      # ever link correctly.  If we're not using GNU ld we use -z text
14322      # though, which does catch some bad symbols but isn't as heavy-handed
14323      # as -z defs.
14324      no_undefined_flag_F77='${wl}-z,text'
14325      allow_undefined_flag_F77='${wl}-z,nodefs'
14326      archive_cmds_need_lc_F77=no
14327      hardcode_shlibpath_var_F77=no
14328      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14329      hardcode_libdir_separator_F77=':'
14330      link_all_deplibs_F77=yes
14331      export_dynamic_flag_spec_F77='${wl}-Bexport'
14332      runpath_var='LD_RUN_PATH'
14333
14334      if test "$GCC" = yes; then
14335	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14336	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14337      else
14338	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14339	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14340      fi
14341      ;;
14342
14343    uts4*)
14344      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14345      hardcode_libdir_flag_spec_F77='-L$libdir'
14346      hardcode_shlibpath_var_F77=no
14347      ;;
14348
14349    *)
14350      ld_shlibs_F77=no
14351      ;;
14352    esac
14353  fi
14354
14355echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14356echo "${ECHO_T}$ld_shlibs_F77" >&6
14357test "$ld_shlibs_F77" = no && can_build_shared=no
14358
14359#
14360# Do we need to explicitly link libc?
14361#
14362case "x$archive_cmds_need_lc_F77" in
14363x|xyes)
14364  # Assume -lc should be added
14365  archive_cmds_need_lc_F77=yes
14366
14367  if test "$enable_shared" = yes && test "$GCC" = yes; then
14368    case $archive_cmds_F77 in
14369    *'~'*)
14370      # FIXME: we may have to deal with multi-command sequences.
14371      ;;
14372    '$CC '*)
14373      # Test whether the compiler implicitly links with -lc since on some
14374      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14375      # to ld, don't add -lc before -lgcc.
14376      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14377echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14378      $rm conftest*
14379      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14380
14381      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382  (eval $ac_compile) 2>&5
14383  ac_status=$?
14384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385  (exit $ac_status); } 2>conftest.err; then
14386        soname=conftest
14387        lib=conftest
14388        libobjs=conftest.$ac_objext
14389        deplibs=
14390        wl=$lt_prog_compiler_wl_F77
14391	pic_flag=$lt_prog_compiler_pic_F77
14392        compiler_flags=-v
14393        linker_flags=-v
14394        verstring=
14395        output_objdir=.
14396        libname=conftest
14397        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14398        allow_undefined_flag_F77=
14399        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14400  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14401  ac_status=$?
14402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403  (exit $ac_status); }
14404        then
14405	  archive_cmds_need_lc_F77=no
14406        else
14407	  archive_cmds_need_lc_F77=yes
14408        fi
14409        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14410      else
14411        cat conftest.err 1>&5
14412      fi
14413      $rm conftest*
14414      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14415echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14416      ;;
14417    esac
14418  fi
14419  ;;
14420esac
14421
14422echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14423echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14424library_names_spec=
14425libname_spec='lib$name'
14426soname_spec=
14427shrext_cmds=".so"
14428postinstall_cmds=
14429postuninstall_cmds=
14430finish_cmds=
14431finish_eval=
14432shlibpath_var=
14433shlibpath_overrides_runpath=unknown
14434version_type=none
14435dynamic_linker="$host_os ld.so"
14436sys_lib_dlsearch_path_spec="/lib /usr/lib"
14437if test "$GCC" = yes; then
14438  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14439  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14440    # if the path contains ";" then we assume it to be the separator
14441    # otherwise default to the standard path separator (i.e. ":") - it is
14442    # assumed that no part of a normal pathname contains ";" but that should
14443    # okay in the real world where ";" in dirpaths is itself problematic.
14444    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14445  else
14446    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14447  fi
14448else
14449  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14450fi
14451need_lib_prefix=unknown
14452hardcode_into_libs=no
14453
14454# when you set need_version to no, make sure it does not cause -set_version
14455# flags to be left without arguments
14456need_version=unknown
14457
14458case $host_os in
14459aix3*)
14460  version_type=linux
14461  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14462  shlibpath_var=LIBPATH
14463
14464  # AIX 3 has no versioning support, so we append a major version to the name.
14465  soname_spec='${libname}${release}${shared_ext}$major'
14466  ;;
14467
14468aix4* | aix5*)
14469  version_type=linux
14470  need_lib_prefix=no
14471  need_version=no
14472  hardcode_into_libs=yes
14473  if test "$host_cpu" = ia64; then
14474    # AIX 5 supports IA64
14475    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14476    shlibpath_var=LD_LIBRARY_PATH
14477  else
14478    # With GCC up to 2.95.x, collect2 would create an import file
14479    # for dependence libraries.  The import file would start with
14480    # the line `#! .'.  This would cause the generated library to
14481    # depend on `.', always an invalid library.  This was fixed in
14482    # development snapshots of GCC prior to 3.0.
14483    case $host_os in
14484      aix4 | aix4.[01] | aix4.[01].*)
14485      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14486	   echo ' yes '
14487	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14488	:
14489      else
14490	can_build_shared=no
14491      fi
14492      ;;
14493    esac
14494    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14495    # soname into executable. Probably we can add versioning support to
14496    # collect2, so additional links can be useful in future.
14497    if test "$aix_use_runtimelinking" = yes; then
14498      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14499      # instead of lib<name>.a to let people know that these are not
14500      # typical AIX shared libraries.
14501      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14502    else
14503      # We preserve .a as extension for shared libraries through AIX4.2
14504      # and later when we are not doing run time linking.
14505      library_names_spec='${libname}${release}.a $libname.a'
14506      soname_spec='${libname}${release}${shared_ext}$major'
14507    fi
14508    shlibpath_var=LIBPATH
14509  fi
14510  ;;
14511
14512amigaos*)
14513  library_names_spec='$libname.ixlibrary $libname.a'
14514  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14515  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'
14516  ;;
14517
14518beos*)
14519  library_names_spec='${libname}${shared_ext}'
14520  dynamic_linker="$host_os ld.so"
14521  shlibpath_var=LIBRARY_PATH
14522  ;;
14523
14524bsdi[45]*)
14525  version_type=linux
14526  need_version=no
14527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528  soname_spec='${libname}${release}${shared_ext}$major'
14529  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14530  shlibpath_var=LD_LIBRARY_PATH
14531  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14532  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14533  # the default ld.so.conf also contains /usr/contrib/lib and
14534  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14535  # libtool to hard-code these into programs
14536  ;;
14537
14538cygwin* | mingw* | pw32*)
14539  version_type=windows
14540  shrext_cmds=".dll"
14541  need_version=no
14542  need_lib_prefix=no
14543
14544  case $GCC,$host_os in
14545  yes,cygwin* | yes,mingw* | yes,pw32*)
14546    library_names_spec='$libname.dll.a'
14547    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14548    postinstall_cmds='base_file=`basename \${file}`~
14549      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14550      dldir=$destdir/`dirname \$dlpath`~
14551      test -d \$dldir || mkdir -p \$dldir~
14552      $install_prog $dir/$dlname \$dldir/$dlname~
14553      chmod a+x \$dldir/$dlname'
14554    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14555      dlpath=$dir/\$dldll~
14556       $rm \$dlpath'
14557    shlibpath_overrides_runpath=yes
14558
14559    case $host_os in
14560    cygwin*)
14561      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14562      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14563      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14564      ;;
14565    mingw*)
14566      # MinGW DLLs use traditional 'lib' prefix
14567      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14568      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14569      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14570        # It is most probably a Windows format PATH printed by
14571        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14572        # path with ; separators, and with drive letters. We can handle the
14573        # drive letters (cygwin fileutils understands them), so leave them,
14574        # especially as we might pass files found there to a mingw objdump,
14575        # which wouldn't understand a cygwinified path. Ahh.
14576        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14577      else
14578        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14579      fi
14580      ;;
14581    pw32*)
14582      # pw32 DLLs use 'pw' prefix rather than 'lib'
14583      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14584      ;;
14585    esac
14586    ;;
14587
14588  *)
14589    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14590    ;;
14591  esac
14592  dynamic_linker='Win32 ld.exe'
14593  # FIXME: first we should search . and the directory the executable is in
14594  shlibpath_var=PATH
14595  ;;
14596
14597darwin* | rhapsody*)
14598  dynamic_linker="$host_os dyld"
14599  version_type=darwin
14600  need_lib_prefix=no
14601  need_version=no
14602  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14603  soname_spec='${libname}${release}${major}$shared_ext'
14604  shlibpath_overrides_runpath=yes
14605  shlibpath_var=DYLD_LIBRARY_PATH
14606  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14607  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14608  if test "$GCC" = yes; then
14609    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"`
14610  else
14611    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14612  fi
14613  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14614  ;;
14615
14616dgux*)
14617  version_type=linux
14618  need_lib_prefix=no
14619  need_version=no
14620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14621  soname_spec='${libname}${release}${shared_ext}$major'
14622  shlibpath_var=LD_LIBRARY_PATH
14623  ;;
14624
14625freebsd1*)
14626  dynamic_linker=no
14627  ;;
14628
14629kfreebsd*-gnu)
14630  version_type=linux
14631  need_lib_prefix=no
14632  need_version=no
14633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14634  soname_spec='${libname}${release}${shared_ext}$major'
14635  shlibpath_var=LD_LIBRARY_PATH
14636  shlibpath_overrides_runpath=no
14637  hardcode_into_libs=yes
14638  dynamic_linker='GNU ld.so'
14639  ;;
14640
14641freebsd* | dragonfly*)
14642  # DragonFly does not have aout.  When/if they implement a new
14643  # versioning mechanism, adjust this.
14644  if test -x /usr/bin/objformat; then
14645    objformat=`/usr/bin/objformat`
14646  else
14647    case $host_os in
14648    freebsd[123]*) objformat=aout ;;
14649    *) objformat=elf ;;
14650    esac
14651  fi
14652  version_type=freebsd-$objformat
14653  case $version_type in
14654    freebsd-elf*)
14655      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14656      need_version=no
14657      need_lib_prefix=no
14658      ;;
14659    freebsd-*)
14660      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14661      need_version=yes
14662      ;;
14663  esac
14664  shlibpath_var=LD_LIBRARY_PATH
14665  case $host_os in
14666  freebsd2*)
14667    shlibpath_overrides_runpath=yes
14668    ;;
14669  freebsd3.[01]* | freebsdelf3.[01]*)
14670    shlibpath_overrides_runpath=yes
14671    hardcode_into_libs=yes
14672    ;;
14673  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14674  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14675    shlibpath_overrides_runpath=no
14676    hardcode_into_libs=yes
14677    ;;
14678  freebsd*) # from 4.6 on
14679    shlibpath_overrides_runpath=yes
14680    hardcode_into_libs=yes
14681    ;;
14682  esac
14683  ;;
14684
14685gnu*)
14686  version_type=linux
14687  need_lib_prefix=no
14688  need_version=no
14689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14690  soname_spec='${libname}${release}${shared_ext}$major'
14691  shlibpath_var=LD_LIBRARY_PATH
14692  hardcode_into_libs=yes
14693  ;;
14694
14695hpux9* | hpux10* | hpux11*)
14696  # Give a soname corresponding to the major version so that dld.sl refuses to
14697  # link against other versions.
14698  version_type=sunos
14699  need_lib_prefix=no
14700  need_version=no
14701  case $host_cpu in
14702  ia64*)
14703    shrext_cmds='.so'
14704    hardcode_into_libs=yes
14705    dynamic_linker="$host_os dld.so"
14706    shlibpath_var=LD_LIBRARY_PATH
14707    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14708    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14709    soname_spec='${libname}${release}${shared_ext}$major'
14710    if test "X$HPUX_IA64_MODE" = X32; then
14711      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14712    else
14713      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14714    fi
14715    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14716    ;;
14717   hppa*64*)
14718     shrext_cmds='.sl'
14719     hardcode_into_libs=yes
14720     dynamic_linker="$host_os dld.sl"
14721     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14722     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14724     soname_spec='${libname}${release}${shared_ext}$major'
14725     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14726     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14727     ;;
14728   *)
14729    shrext_cmds='.sl'
14730    dynamic_linker="$host_os dld.sl"
14731    shlibpath_var=SHLIB_PATH
14732    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14733    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734    soname_spec='${libname}${release}${shared_ext}$major'
14735    ;;
14736  esac
14737  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14738  postinstall_cmds='chmod 555 $lib'
14739  ;;
14740
14741interix3*)
14742  version_type=linux
14743  need_lib_prefix=no
14744  need_version=no
14745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14746  soname_spec='${libname}${release}${shared_ext}$major'
14747  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14748  shlibpath_var=LD_LIBRARY_PATH
14749  shlibpath_overrides_runpath=no
14750  hardcode_into_libs=yes
14751  ;;
14752
14753irix5* | irix6* | nonstopux*)
14754  case $host_os in
14755    nonstopux*) version_type=nonstopux ;;
14756    *)
14757	if test "$lt_cv_prog_gnu_ld" = yes; then
14758		version_type=linux
14759	else
14760		version_type=irix
14761	fi ;;
14762  esac
14763  need_lib_prefix=no
14764  need_version=no
14765  soname_spec='${libname}${release}${shared_ext}$major'
14766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14767  case $host_os in
14768  irix5* | nonstopux*)
14769    libsuff= shlibsuff=
14770    ;;
14771  *)
14772    case $LD in # libtool.m4 will add one of these switches to LD
14773    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14774      libsuff= shlibsuff= libmagic=32-bit;;
14775    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14776      libsuff=32 shlibsuff=N32 libmagic=N32;;
14777    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14778      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14779    *) libsuff= shlibsuff= libmagic=never-match;;
14780    esac
14781    ;;
14782  esac
14783  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14784  shlibpath_overrides_runpath=no
14785  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14786  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14787  hardcode_into_libs=yes
14788  ;;
14789
14790# No shared lib support for Linux oldld, aout, or coff.
14791linux*oldld* | linux*aout* | linux*coff*)
14792  dynamic_linker=no
14793  ;;
14794
14795# This must be Linux ELF.
14796linux*)
14797  version_type=linux
14798  need_lib_prefix=no
14799  need_version=no
14800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14801  soname_spec='${libname}${release}${shared_ext}$major'
14802  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14803  shlibpath_var=LD_LIBRARY_PATH
14804  shlibpath_overrides_runpath=no
14805  # This implies no fast_install, which is unacceptable.
14806  # Some rework will be needed to allow for fast_install
14807  # before this can be enabled.
14808  hardcode_into_libs=yes
14809
14810  # find out which ABI we are using
14811  libsuff=
14812  case "$host_cpu" in
14813  x86_64*|s390x*|powerpc64*)
14814    echo '#line 14814 "configure"' > conftest.$ac_ext
14815    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816  (eval $ac_compile) 2>&5
14817  ac_status=$?
14818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819  (exit $ac_status); }; then
14820      case `/usr/bin/file conftest.$ac_objext` in
14821      *64-bit*)
14822        libsuff=64
14823        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14824        ;;
14825      esac
14826    fi
14827    rm -rf conftest*
14828    ;;
14829  esac
14830
14831  # Append ld.so.conf contents to the search path
14832  if test -f /etc/ld.so.conf; then
14833    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14834    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14835  fi
14836
14837  # We used to test for /lib/ld.so.1 and disable shared libraries on
14838  # powerpc, because MkLinux only supported shared libraries with the
14839  # GNU dynamic linker.  Since this was broken with cross compilers,
14840  # most powerpc-linux boxes support dynamic linking these days and
14841  # people can always --disable-shared, the test was removed, and we
14842  # assume the GNU/Linux dynamic linker is in use.
14843  dynamic_linker='GNU/Linux ld.so'
14844  ;;
14845
14846knetbsd*-gnu)
14847  version_type=linux
14848  need_lib_prefix=no
14849  need_version=no
14850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14851  soname_spec='${libname}${release}${shared_ext}$major'
14852  shlibpath_var=LD_LIBRARY_PATH
14853  shlibpath_overrides_runpath=no
14854  hardcode_into_libs=yes
14855  dynamic_linker='GNU ld.so'
14856  ;;
14857
14858netbsd*)
14859  version_type=sunos
14860  need_lib_prefix=no
14861  need_version=no
14862  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14863    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14864    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14865    dynamic_linker='NetBSD (a.out) ld.so'
14866  else
14867    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14868    soname_spec='${libname}${release}${shared_ext}$major'
14869    dynamic_linker='NetBSD ld.elf_so'
14870  fi
14871  shlibpath_var=LD_LIBRARY_PATH
14872  shlibpath_overrides_runpath=yes
14873  hardcode_into_libs=yes
14874  ;;
14875
14876newsos6)
14877  version_type=linux
14878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14879  shlibpath_var=LD_LIBRARY_PATH
14880  shlibpath_overrides_runpath=yes
14881  ;;
14882
14883nto-qnx*)
14884  version_type=linux
14885  need_lib_prefix=no
14886  need_version=no
14887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888  soname_spec='${libname}${release}${shared_ext}$major'
14889  shlibpath_var=LD_LIBRARY_PATH
14890  shlibpath_overrides_runpath=yes
14891  ;;
14892
14893openbsd*)
14894  version_type=sunos
14895  sys_lib_dlsearch_path_spec="/usr/lib"
14896  need_lib_prefix=no
14897  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14898  case $host_os in
14899    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14900    *)                         need_version=no  ;;
14901  esac
14902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14903  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14904  shlibpath_var=LD_LIBRARY_PATH
14905  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14906    case $host_os in
14907      openbsd2.[89] | openbsd2.[89].*)
14908	shlibpath_overrides_runpath=no
14909	;;
14910      *)
14911	shlibpath_overrides_runpath=yes
14912	;;
14913      esac
14914  else
14915    shlibpath_overrides_runpath=yes
14916  fi
14917  ;;
14918
14919os2*)
14920  libname_spec='$name'
14921  shrext_cmds=".dll"
14922  need_lib_prefix=no
14923  library_names_spec='$libname${shared_ext} $libname.a'
14924  dynamic_linker='OS/2 ld.exe'
14925  shlibpath_var=LIBPATH
14926  ;;
14927
14928osf3* | osf4* | osf5*)
14929  version_type=osf
14930  need_lib_prefix=no
14931  need_version=no
14932  soname_spec='${libname}${release}${shared_ext}$major'
14933  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14934  shlibpath_var=LD_LIBRARY_PATH
14935  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14936  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14937  ;;
14938
14939solaris*)
14940  version_type=linux
14941  need_lib_prefix=no
14942  need_version=no
14943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944  soname_spec='${libname}${release}${shared_ext}$major'
14945  shlibpath_var=LD_LIBRARY_PATH
14946  shlibpath_overrides_runpath=yes
14947  hardcode_into_libs=yes
14948  # ldd complains unless libraries are executable
14949  postinstall_cmds='chmod +x $lib'
14950  ;;
14951
14952sunos4*)
14953  version_type=sunos
14954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14955  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14956  shlibpath_var=LD_LIBRARY_PATH
14957  shlibpath_overrides_runpath=yes
14958  if test "$with_gnu_ld" = yes; then
14959    need_lib_prefix=no
14960  fi
14961  need_version=yes
14962  ;;
14963
14964sysv4 | sysv4.3*)
14965  version_type=linux
14966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967  soname_spec='${libname}${release}${shared_ext}$major'
14968  shlibpath_var=LD_LIBRARY_PATH
14969  case $host_vendor in
14970    sni)
14971      shlibpath_overrides_runpath=no
14972      need_lib_prefix=no
14973      export_dynamic_flag_spec='${wl}-Blargedynsym'
14974      runpath_var=LD_RUN_PATH
14975      ;;
14976    siemens)
14977      need_lib_prefix=no
14978      ;;
14979    motorola)
14980      need_lib_prefix=no
14981      need_version=no
14982      shlibpath_overrides_runpath=no
14983      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14984      ;;
14985  esac
14986  ;;
14987
14988sysv4*MP*)
14989  if test -d /usr/nec ;then
14990    version_type=linux
14991    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14992    soname_spec='$libname${shared_ext}.$major'
14993    shlibpath_var=LD_LIBRARY_PATH
14994  fi
14995  ;;
14996
14997sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14998  version_type=freebsd-elf
14999  need_lib_prefix=no
15000  need_version=no
15001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15002  soname_spec='${libname}${release}${shared_ext}$major'
15003  shlibpath_var=LD_LIBRARY_PATH
15004  hardcode_into_libs=yes
15005  if test "$with_gnu_ld" = yes; then
15006    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15007    shlibpath_overrides_runpath=no
15008  else
15009    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15010    shlibpath_overrides_runpath=yes
15011    case $host_os in
15012      sco3.2v5*)
15013        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15014	;;
15015    esac
15016  fi
15017  sys_lib_dlsearch_path_spec='/usr/lib'
15018  ;;
15019
15020uts4*)
15021  version_type=linux
15022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023  soname_spec='${libname}${release}${shared_ext}$major'
15024  shlibpath_var=LD_LIBRARY_PATH
15025  ;;
15026
15027*)
15028  dynamic_linker=no
15029  ;;
15030esac
15031echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15032echo "${ECHO_T}$dynamic_linker" >&6
15033test "$dynamic_linker" = no && can_build_shared=no
15034
15035variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15036if test "$GCC" = yes; then
15037  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15038fi
15039
15040echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15041echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15042hardcode_action_F77=
15043if test -n "$hardcode_libdir_flag_spec_F77" || \
15044   test -n "$runpath_var_F77" || \
15045   test "X$hardcode_automatic_F77" = "Xyes" ; then
15046
15047  # We can hardcode non-existant directories.
15048  if test "$hardcode_direct_F77" != no &&
15049     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15050     # have to relink, otherwise we might link with an installed library
15051     # when we should be linking with a yet-to-be-installed one
15052     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15053     test "$hardcode_minus_L_F77" != no; then
15054    # Linking always hardcodes the temporary library directory.
15055    hardcode_action_F77=relink
15056  else
15057    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15058    hardcode_action_F77=immediate
15059  fi
15060else
15061  # We cannot hardcode anything, or else we can only hardcode existing
15062  # directories.
15063  hardcode_action_F77=unsupported
15064fi
15065echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15066echo "${ECHO_T}$hardcode_action_F77" >&6
15067
15068if test "$hardcode_action_F77" = relink; then
15069  # Fast installation is not supported
15070  enable_fast_install=no
15071elif test "$shlibpath_overrides_runpath" = yes ||
15072     test "$enable_shared" = no; then
15073  # Fast installation is not necessary
15074  enable_fast_install=needless
15075fi
15076
15077
15078# The else clause should only fire when bootstrapping the
15079# libtool distribution, otherwise you forgot to ship ltmain.sh
15080# with your package, and you will get complaints that there are
15081# no rules to generate ltmain.sh.
15082if test -f "$ltmain"; then
15083  # See if we are running on zsh, and set the options which allow our commands through
15084  # without removal of \ escapes.
15085  if test -n "${ZSH_VERSION+set}" ; then
15086    setopt NO_GLOB_SUBST
15087  fi
15088  # Now quote all the things that may contain metacharacters while being
15089  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15090  # variables and quote the copies for generation of the libtool script.
15091  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15092    SED SHELL STRIP \
15093    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15094    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15095    deplibs_check_method reload_flag reload_cmds need_locks \
15096    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15097    lt_cv_sys_global_symbol_to_c_name_address \
15098    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15099    old_postinstall_cmds old_postuninstall_cmds \
15100    compiler_F77 \
15101    CC_F77 \
15102    LD_F77 \
15103    lt_prog_compiler_wl_F77 \
15104    lt_prog_compiler_pic_F77 \
15105    lt_prog_compiler_static_F77 \
15106    lt_prog_compiler_no_builtin_flag_F77 \
15107    export_dynamic_flag_spec_F77 \
15108    thread_safe_flag_spec_F77 \
15109    whole_archive_flag_spec_F77 \
15110    enable_shared_with_static_runtimes_F77 \
15111    old_archive_cmds_F77 \
15112    old_archive_from_new_cmds_F77 \
15113    predep_objects_F77 \
15114    postdep_objects_F77 \
15115    predeps_F77 \
15116    postdeps_F77 \
15117    compiler_lib_search_path_F77 \
15118    archive_cmds_F77 \
15119    archive_expsym_cmds_F77 \
15120    postinstall_cmds_F77 \
15121    postuninstall_cmds_F77 \
15122    old_archive_from_expsyms_cmds_F77 \
15123    allow_undefined_flag_F77 \
15124    no_undefined_flag_F77 \
15125    export_symbols_cmds_F77 \
15126    hardcode_libdir_flag_spec_F77 \
15127    hardcode_libdir_flag_spec_ld_F77 \
15128    hardcode_libdir_separator_F77 \
15129    hardcode_automatic_F77 \
15130    module_cmds_F77 \
15131    module_expsym_cmds_F77 \
15132    lt_cv_prog_compiler_c_o_F77 \
15133    exclude_expsyms_F77 \
15134    include_expsyms_F77; do
15135
15136    case $var in
15137    old_archive_cmds_F77 | \
15138    old_archive_from_new_cmds_F77 | \
15139    archive_cmds_F77 | \
15140    archive_expsym_cmds_F77 | \
15141    module_cmds_F77 | \
15142    module_expsym_cmds_F77 | \
15143    old_archive_from_expsyms_cmds_F77 | \
15144    export_symbols_cmds_F77 | \
15145    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15146    postinstall_cmds | postuninstall_cmds | \
15147    old_postinstall_cmds | old_postuninstall_cmds | \
15148    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15149      # Double-quote double-evaled strings.
15150      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15151      ;;
15152    *)
15153      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15154      ;;
15155    esac
15156  done
15157
15158  case $lt_echo in
15159  *'\$0 --fallback-echo"')
15160    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15161    ;;
15162  esac
15163
15164cfgfile="$ofile"
15165
15166  cat <<__EOF__ >> "$cfgfile"
15167# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15168
15169# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15170
15171# Shell to use when invoking shell scripts.
15172SHELL=$lt_SHELL
15173
15174# Whether or not to build shared libraries.
15175build_libtool_libs=$enable_shared
15176
15177# Whether or not to build static libraries.
15178build_old_libs=$enable_static
15179
15180# Whether or not to add -lc for building shared libraries.
15181build_libtool_need_lc=$archive_cmds_need_lc_F77
15182
15183# Whether or not to disallow shared libs when runtime libs are static
15184allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15185
15186# Whether or not to optimize for fast installation.
15187fast_install=$enable_fast_install
15188
15189# The host system.
15190host_alias=$host_alias
15191host=$host
15192host_os=$host_os
15193
15194# The build system.
15195build_alias=$build_alias
15196build=$build
15197build_os=$build_os
15198
15199# An echo program that does not interpret backslashes.
15200echo=$lt_echo
15201
15202# The archiver.
15203AR=$lt_AR
15204AR_FLAGS=$lt_AR_FLAGS
15205
15206# A C compiler.
15207LTCC=$lt_LTCC
15208
15209# LTCC compiler flags.
15210LTCFLAGS=$lt_LTCFLAGS
15211
15212# A language-specific compiler.
15213CC=$lt_compiler_F77
15214
15215# Is the compiler the GNU C compiler?
15216with_gcc=$GCC_F77
15217
15218# An ERE matcher.
15219EGREP=$lt_EGREP
15220
15221# The linker used to build libraries.
15222LD=$lt_LD_F77
15223
15224# Whether we need hard or soft links.
15225LN_S=$lt_LN_S
15226
15227# A BSD-compatible nm program.
15228NM=$lt_NM
15229
15230# A symbol stripping program
15231STRIP=$lt_STRIP
15232
15233# Used to examine libraries when file_magic_cmd begins "file"
15234MAGIC_CMD=$MAGIC_CMD
15235
15236# Used on cygwin: DLL creation program.
15237DLLTOOL="$DLLTOOL"
15238
15239# Used on cygwin: object dumper.
15240OBJDUMP="$OBJDUMP"
15241
15242# Used on cygwin: assembler.
15243AS="$AS"
15244
15245# The name of the directory that contains temporary libtool files.
15246objdir=$objdir
15247
15248# How to create reloadable object files.
15249reload_flag=$lt_reload_flag
15250reload_cmds=$lt_reload_cmds
15251
15252# How to pass a linker flag through the compiler.
15253wl=$lt_lt_prog_compiler_wl_F77
15254
15255# Object file suffix (normally "o").
15256objext="$ac_objext"
15257
15258# Old archive suffix (normally "a").
15259libext="$libext"
15260
15261# Shared library suffix (normally ".so").
15262shrext_cmds='$shrext_cmds'
15263
15264# Executable file suffix (normally "").
15265exeext="$exeext"
15266
15267# Additional compiler flags for building library objects.
15268pic_flag=$lt_lt_prog_compiler_pic_F77
15269pic_mode=$pic_mode
15270
15271# What is the maximum length of a command?
15272max_cmd_len=$lt_cv_sys_max_cmd_len
15273
15274# Does compiler simultaneously support -c and -o options?
15275compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15276
15277# Must we lock files when doing compilation?
15278need_locks=$lt_need_locks
15279
15280# Do we need the lib prefix for modules?
15281need_lib_prefix=$need_lib_prefix
15282
15283# Do we need a version for libraries?
15284need_version=$need_version
15285
15286# Whether dlopen is supported.
15287dlopen_support=$enable_dlopen
15288
15289# Whether dlopen of programs is supported.
15290dlopen_self=$enable_dlopen_self
15291
15292# Whether dlopen of statically linked programs is supported.
15293dlopen_self_static=$enable_dlopen_self_static
15294
15295# Compiler flag to prevent dynamic linking.
15296link_static_flag=$lt_lt_prog_compiler_static_F77
15297
15298# Compiler flag to turn off builtin functions.
15299no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15300
15301# Compiler flag to allow reflexive dlopens.
15302export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15303
15304# Compiler flag to generate shared objects directly from archives.
15305whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15306
15307# Compiler flag to generate thread-safe objects.
15308thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15309
15310# Library versioning type.
15311version_type=$version_type
15312
15313# Format of library name prefix.
15314libname_spec=$lt_libname_spec
15315
15316# List of archive names.  First name is the real one, the rest are links.
15317# The last name is the one that the linker finds with -lNAME.
15318library_names_spec=$lt_library_names_spec
15319
15320# The coded name of the library, if different from the real name.
15321soname_spec=$lt_soname_spec
15322
15323# Commands used to build and install an old-style archive.
15324RANLIB=$lt_RANLIB
15325old_archive_cmds=$lt_old_archive_cmds_F77
15326old_postinstall_cmds=$lt_old_postinstall_cmds
15327old_postuninstall_cmds=$lt_old_postuninstall_cmds
15328
15329# Create an old-style archive from a shared archive.
15330old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15331
15332# Create a temporary old-style archive to link instead of a shared archive.
15333old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15334
15335# Commands used to build and install a shared archive.
15336archive_cmds=$lt_archive_cmds_F77
15337archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15338postinstall_cmds=$lt_postinstall_cmds
15339postuninstall_cmds=$lt_postuninstall_cmds
15340
15341# Commands used to build a loadable module (assumed same as above if empty)
15342module_cmds=$lt_module_cmds_F77
15343module_expsym_cmds=$lt_module_expsym_cmds_F77
15344
15345# Commands to strip libraries.
15346old_striplib=$lt_old_striplib
15347striplib=$lt_striplib
15348
15349# Dependencies to place before the objects being linked to create a
15350# shared library.
15351predep_objects=$lt_predep_objects_F77
15352
15353# Dependencies to place after the objects being linked to create a
15354# shared library.
15355postdep_objects=$lt_postdep_objects_F77
15356
15357# Dependencies to place before the objects being linked to create a
15358# shared library.
15359predeps=$lt_predeps_F77
15360
15361# Dependencies to place after the objects being linked to create a
15362# shared library.
15363postdeps=$lt_postdeps_F77
15364
15365# The library search path used internally by the compiler when linking
15366# a shared library.
15367compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15368
15369# Method to check whether dependent libraries are shared objects.
15370deplibs_check_method=$lt_deplibs_check_method
15371
15372# Command to use when deplibs_check_method == file_magic.
15373file_magic_cmd=$lt_file_magic_cmd
15374
15375# Flag that allows shared libraries with undefined symbols to be built.
15376allow_undefined_flag=$lt_allow_undefined_flag_F77
15377
15378# Flag that forces no undefined symbols.
15379no_undefined_flag=$lt_no_undefined_flag_F77
15380
15381# Commands used to finish a libtool library installation in a directory.
15382finish_cmds=$lt_finish_cmds
15383
15384# Same as above, but a single script fragment to be evaled but not shown.
15385finish_eval=$lt_finish_eval
15386
15387# Take the output of nm and produce a listing of raw symbols and C names.
15388global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15389
15390# Transform the output of nm in a proper C declaration
15391global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15392
15393# Transform the output of nm in a C name address pair
15394global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15395
15396# This is the shared library runtime path variable.
15397runpath_var=$runpath_var
15398
15399# This is the shared library path variable.
15400shlibpath_var=$shlibpath_var
15401
15402# Is shlibpath searched before the hard-coded library search path?
15403shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15404
15405# How to hardcode a shared library path into an executable.
15406hardcode_action=$hardcode_action_F77
15407
15408# Whether we should hardcode library paths into libraries.
15409hardcode_into_libs=$hardcode_into_libs
15410
15411# Flag to hardcode \$libdir into a binary during linking.
15412# This must work even if \$libdir does not exist.
15413hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15414
15415# If ld is used when linking, flag to hardcode \$libdir into
15416# a binary during linking. This must work even if \$libdir does
15417# not exist.
15418hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15419
15420# Whether we need a single -rpath flag with a separated argument.
15421hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15422
15423# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15424# resulting binary.
15425hardcode_direct=$hardcode_direct_F77
15426
15427# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15428# resulting binary.
15429hardcode_minus_L=$hardcode_minus_L_F77
15430
15431# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15432# the resulting binary.
15433hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15434
15435# Set to yes if building a shared library automatically hardcodes DIR into the library
15436# and all subsequent libraries and executables linked against it.
15437hardcode_automatic=$hardcode_automatic_F77
15438
15439# Variables whose values should be saved in libtool wrapper scripts and
15440# restored at relink time.
15441variables_saved_for_relink="$variables_saved_for_relink"
15442
15443# Whether libtool must link a program against all its dependency libraries.
15444link_all_deplibs=$link_all_deplibs_F77
15445
15446# Compile-time system search path for libraries
15447sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15448
15449# Run-time system search path for libraries
15450sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15451
15452# Fix the shell variable \$srcfile for the compiler.
15453fix_srcfile_path="$fix_srcfile_path_F77"
15454
15455# Set to yes if exported symbols are required.
15456always_export_symbols=$always_export_symbols_F77
15457
15458# The commands to list exported symbols.
15459export_symbols_cmds=$lt_export_symbols_cmds_F77
15460
15461# The commands to extract the exported symbol list from a shared archive.
15462extract_expsyms_cmds=$lt_extract_expsyms_cmds
15463
15464# Symbols that should not be listed in the preloaded symbols.
15465exclude_expsyms=$lt_exclude_expsyms_F77
15466
15467# Symbols that must always be exported.
15468include_expsyms=$lt_include_expsyms_F77
15469
15470# ### END LIBTOOL TAG CONFIG: $tagname
15471
15472__EOF__
15473
15474
15475else
15476  # If there is no Makefile yet, we rely on a make rule to execute
15477  # `config.status --recheck' to rerun these tests and create the
15478  # libtool script then.
15479  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15480  if test -f "$ltmain_in"; then
15481    test -f Makefile && make "$ltmain"
15482  fi
15483fi
15484
15485
15486ac_ext=c
15487ac_cpp='$CPP $CPPFLAGS'
15488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15490ac_compiler_gnu=$ac_cv_c_compiler_gnu
15491
15492CC="$lt_save_CC"
15493
15494	else
15495	  tagname=""
15496	fi
15497	;;
15498
15499      GCJ)
15500	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15501
15502
15503
15504# Source file extension for Java test sources.
15505ac_ext=java
15506
15507# Object file extension for compiled Java test sources.
15508objext=o
15509objext_GCJ=$objext
15510
15511# Code to be used in simple compile tests
15512lt_simple_compile_test_code="class foo {}\n"
15513
15514# Code to be used in simple link tests
15515lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15516
15517# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15518
15519# If no C compiler was specified, use CC.
15520LTCC=${LTCC-"$CC"}
15521
15522# If no C compiler flags were specified, use CFLAGS.
15523LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15524
15525# Allow CC to be a program name with arguments.
15526compiler=$CC
15527
15528
15529# save warnings/boilerplate of simple test code
15530ac_outfile=conftest.$ac_objext
15531printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15532eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15533_lt_compiler_boilerplate=`cat conftest.err`
15534$rm conftest*
15535
15536ac_outfile=conftest.$ac_objext
15537printf "$lt_simple_link_test_code" >conftest.$ac_ext
15538eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15539_lt_linker_boilerplate=`cat conftest.err`
15540$rm conftest*
15541
15542
15543# Allow CC to be a program name with arguments.
15544lt_save_CC="$CC"
15545CC=${GCJ-"gcj"}
15546compiler=$CC
15547compiler_GCJ=$CC
15548for cc_temp in $compiler""; do
15549  case $cc_temp in
15550    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15551    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15552    \-*) ;;
15553    *) break;;
15554  esac
15555done
15556cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15557
15558
15559# GCJ did not exist at the time GCC didn't implicitly link libc in.
15560archive_cmds_need_lc_GCJ=no
15561
15562old_archive_cmds_GCJ=$old_archive_cmds
15563
15564
15565lt_prog_compiler_no_builtin_flag_GCJ=
15566
15567if test "$GCC" = yes; then
15568  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15569
15570
15571echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15572echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15573if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15574  echo $ECHO_N "(cached) $ECHO_C" >&6
15575else
15576  lt_cv_prog_compiler_rtti_exceptions=no
15577  ac_outfile=conftest.$ac_objext
15578   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15579   lt_compiler_flag="-fno-rtti -fno-exceptions"
15580   # Insert the option either (1) after the last *FLAGS variable, or
15581   # (2) before a word containing "conftest.", or (3) at the end.
15582   # Note that $ac_compile itself does not contain backslashes and begins
15583   # with a dollar sign (not a hyphen), so the echo should work correctly.
15584   # The option is referenced via a variable to avoid confusing sed.
15585   lt_compile=`echo "$ac_compile" | $SED \
15586   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15587   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15588   -e 's:$: $lt_compiler_flag:'`
15589   (eval echo "\"\$as_me:15589: $lt_compile\"" >&5)
15590   (eval "$lt_compile" 2>conftest.err)
15591   ac_status=$?
15592   cat conftest.err >&5
15593   echo "$as_me:15593: \$? = $ac_status" >&5
15594   if (exit $ac_status) && test -s "$ac_outfile"; then
15595     # The compiler can only warn and ignore the option if not recognized
15596     # So say no if there are warnings other than the usual output.
15597     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15598     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15599     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15600       lt_cv_prog_compiler_rtti_exceptions=yes
15601     fi
15602   fi
15603   $rm conftest*
15604
15605fi
15606echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15607echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15608
15609if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15610    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15611else
15612    :
15613fi
15614
15615fi
15616
15617lt_prog_compiler_wl_GCJ=
15618lt_prog_compiler_pic_GCJ=
15619lt_prog_compiler_static_GCJ=
15620
15621echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15622echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15623
15624  if test "$GCC" = yes; then
15625    lt_prog_compiler_wl_GCJ='-Wl,'
15626    lt_prog_compiler_static_GCJ='-static'
15627
15628    case $host_os in
15629      aix*)
15630      # All AIX code is PIC.
15631      if test "$host_cpu" = ia64; then
15632	# AIX 5 now supports IA64 processor
15633	lt_prog_compiler_static_GCJ='-Bstatic'
15634      fi
15635      ;;
15636
15637    amigaos*)
15638      # FIXME: we need at least 68020 code to build shared libraries, but
15639      # adding the `-m68020' flag to GCC prevents building anything better,
15640      # like `-m68040'.
15641      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15642      ;;
15643
15644    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15645      # PIC is the default for these OSes.
15646      ;;
15647
15648    mingw* | pw32* | os2*)
15649      # This hack is so that the source file can tell whether it is being
15650      # built for inclusion in a dll (and should export symbols for example).
15651      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15652      ;;
15653
15654    darwin* | rhapsody*)
15655      # PIC is the default on this platform
15656      # Common symbols not allowed in MH_DYLIB files
15657      lt_prog_compiler_pic_GCJ='-fno-common'
15658      ;;
15659
15660    interix3*)
15661      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15662      # Instead, we relocate shared libraries at runtime.
15663      ;;
15664
15665    msdosdjgpp*)
15666      # Just because we use GCC doesn't mean we suddenly get shared libraries
15667      # on systems that don't support them.
15668      lt_prog_compiler_can_build_shared_GCJ=no
15669      enable_shared=no
15670      ;;
15671
15672    sysv4*MP*)
15673      if test -d /usr/nec; then
15674	lt_prog_compiler_pic_GCJ=-Kconform_pic
15675      fi
15676      ;;
15677
15678    hpux*)
15679      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15680      # not for PA HP-UX.
15681      case $host_cpu in
15682      hppa*64*|ia64*)
15683	# +Z the default
15684	;;
15685      *)
15686	lt_prog_compiler_pic_GCJ='-fPIC'
15687	;;
15688      esac
15689      ;;
15690
15691    *)
15692      lt_prog_compiler_pic_GCJ='-fPIC'
15693      ;;
15694    esac
15695  else
15696    # PORTME Check for flag to pass linker flags through the system compiler.
15697    case $host_os in
15698    aix*)
15699      lt_prog_compiler_wl_GCJ='-Wl,'
15700      if test "$host_cpu" = ia64; then
15701	# AIX 5 now supports IA64 processor
15702	lt_prog_compiler_static_GCJ='-Bstatic'
15703      else
15704	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15705      fi
15706      ;;
15707      darwin*)
15708        # PIC is the default on this platform
15709        # Common symbols not allowed in MH_DYLIB files
15710       case $cc_basename in
15711         xlc*)
15712         lt_prog_compiler_pic_GCJ='-qnocommon'
15713         lt_prog_compiler_wl_GCJ='-Wl,'
15714         ;;
15715       esac
15716       ;;
15717
15718    mingw* | pw32* | os2*)
15719      # This hack is so that the source file can tell whether it is being
15720      # built for inclusion in a dll (and should export symbols for example).
15721      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15722      ;;
15723
15724    hpux9* | hpux10* | hpux11*)
15725      lt_prog_compiler_wl_GCJ='-Wl,'
15726      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15727      # not for PA HP-UX.
15728      case $host_cpu in
15729      hppa*64*|ia64*)
15730	# +Z the default
15731	;;
15732      *)
15733	lt_prog_compiler_pic_GCJ='+Z'
15734	;;
15735      esac
15736      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15737      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15738      ;;
15739
15740    irix5* | irix6* | nonstopux*)
15741      lt_prog_compiler_wl_GCJ='-Wl,'
15742      # PIC (with -KPIC) is the default.
15743      lt_prog_compiler_static_GCJ='-non_shared'
15744      ;;
15745
15746    newsos6)
15747      lt_prog_compiler_pic_GCJ='-KPIC'
15748      lt_prog_compiler_static_GCJ='-Bstatic'
15749      ;;
15750
15751    linux*)
15752      case $cc_basename in
15753      icc* | ecc*)
15754	lt_prog_compiler_wl_GCJ='-Wl,'
15755	lt_prog_compiler_pic_GCJ='-KPIC'
15756	lt_prog_compiler_static_GCJ='-static'
15757        ;;
15758      pgcc* | pgf77* | pgf90* | pgf95*)
15759        # Portland Group compilers (*not* the Pentium gcc compiler,
15760	# which looks to be a dead project)
15761	lt_prog_compiler_wl_GCJ='-Wl,'
15762	lt_prog_compiler_pic_GCJ='-fpic'
15763	lt_prog_compiler_static_GCJ='-Bstatic'
15764        ;;
15765      ccc*)
15766        lt_prog_compiler_wl_GCJ='-Wl,'
15767        # All Alpha code is PIC.
15768        lt_prog_compiler_static_GCJ='-non_shared'
15769        ;;
15770      esac
15771      ;;
15772
15773    osf3* | osf4* | osf5*)
15774      lt_prog_compiler_wl_GCJ='-Wl,'
15775      # All OSF/1 code is PIC.
15776      lt_prog_compiler_static_GCJ='-non_shared'
15777      ;;
15778
15779    solaris*)
15780      lt_prog_compiler_pic_GCJ='-KPIC'
15781      lt_prog_compiler_static_GCJ='-Bstatic'
15782      case $cc_basename in
15783      f77* | f90* | f95*)
15784	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15785      *)
15786	lt_prog_compiler_wl_GCJ='-Wl,';;
15787      esac
15788      ;;
15789
15790    sunos4*)
15791      lt_prog_compiler_wl_GCJ='-Qoption ld '
15792      lt_prog_compiler_pic_GCJ='-PIC'
15793      lt_prog_compiler_static_GCJ='-Bstatic'
15794      ;;
15795
15796    sysv4 | sysv4.2uw2* | sysv4.3*)
15797      lt_prog_compiler_wl_GCJ='-Wl,'
15798      lt_prog_compiler_pic_GCJ='-KPIC'
15799      lt_prog_compiler_static_GCJ='-Bstatic'
15800      ;;
15801
15802    sysv4*MP*)
15803      if test -d /usr/nec ;then
15804	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15805	lt_prog_compiler_static_GCJ='-Bstatic'
15806      fi
15807      ;;
15808
15809    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15810      lt_prog_compiler_wl_GCJ='-Wl,'
15811      lt_prog_compiler_pic_GCJ='-KPIC'
15812      lt_prog_compiler_static_GCJ='-Bstatic'
15813      ;;
15814
15815    unicos*)
15816      lt_prog_compiler_wl_GCJ='-Wl,'
15817      lt_prog_compiler_can_build_shared_GCJ=no
15818      ;;
15819
15820    uts4*)
15821      lt_prog_compiler_pic_GCJ='-pic'
15822      lt_prog_compiler_static_GCJ='-Bstatic'
15823      ;;
15824
15825    *)
15826      lt_prog_compiler_can_build_shared_GCJ=no
15827      ;;
15828    esac
15829  fi
15830
15831echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15832echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15833
15834#
15835# Check to make sure the PIC flag actually works.
15836#
15837if test -n "$lt_prog_compiler_pic_GCJ"; then
15838
15839echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15840echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15841if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15842  echo $ECHO_N "(cached) $ECHO_C" >&6
15843else
15844  lt_prog_compiler_pic_works_GCJ=no
15845  ac_outfile=conftest.$ac_objext
15846   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15847   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15848   # Insert the option either (1) after the last *FLAGS variable, or
15849   # (2) before a word containing "conftest.", or (3) at the end.
15850   # Note that $ac_compile itself does not contain backslashes and begins
15851   # with a dollar sign (not a hyphen), so the echo should work correctly.
15852   # The option is referenced via a variable to avoid confusing sed.
15853   lt_compile=`echo "$ac_compile" | $SED \
15854   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15855   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15856   -e 's:$: $lt_compiler_flag:'`
15857   (eval echo "\"\$as_me:15857: $lt_compile\"" >&5)
15858   (eval "$lt_compile" 2>conftest.err)
15859   ac_status=$?
15860   cat conftest.err >&5
15861   echo "$as_me:15861: \$? = $ac_status" >&5
15862   if (exit $ac_status) && test -s "$ac_outfile"; then
15863     # The compiler can only warn and ignore the option if not recognized
15864     # So say no if there are warnings other than the usual output.
15865     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15866     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15867     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15868       lt_prog_compiler_pic_works_GCJ=yes
15869     fi
15870   fi
15871   $rm conftest*
15872
15873fi
15874echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15875echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15876
15877if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15878    case $lt_prog_compiler_pic_GCJ in
15879     "" | " "*) ;;
15880     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15881     esac
15882else
15883    lt_prog_compiler_pic_GCJ=
15884     lt_prog_compiler_can_build_shared_GCJ=no
15885fi
15886
15887fi
15888case $host_os in
15889  # For platforms which do not support PIC, -DPIC is meaningless:
15890  *djgpp*)
15891    lt_prog_compiler_pic_GCJ=
15892    ;;
15893  *)
15894    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15895    ;;
15896esac
15897
15898#
15899# Check to make sure the static flag actually works.
15900#
15901wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15902echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15903echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15904if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15905  echo $ECHO_N "(cached) $ECHO_C" >&6
15906else
15907  lt_prog_compiler_static_works_GCJ=no
15908   save_LDFLAGS="$LDFLAGS"
15909   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15910   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15911   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15912     # The linker can only warn and ignore the option if not recognized
15913     # So say no if there are warnings
15914     if test -s conftest.err; then
15915       # Append any errors to the config.log.
15916       cat conftest.err 1>&5
15917       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15918       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15919       if diff conftest.exp conftest.er2 >/dev/null; then
15920         lt_prog_compiler_static_works_GCJ=yes
15921       fi
15922     else
15923       lt_prog_compiler_static_works_GCJ=yes
15924     fi
15925   fi
15926   $rm conftest*
15927   LDFLAGS="$save_LDFLAGS"
15928
15929fi
15930echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15931echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15932
15933if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15934    :
15935else
15936    lt_prog_compiler_static_GCJ=
15937fi
15938
15939
15940echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15941echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15942if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15943  echo $ECHO_N "(cached) $ECHO_C" >&6
15944else
15945  lt_cv_prog_compiler_c_o_GCJ=no
15946   $rm -r conftest 2>/dev/null
15947   mkdir conftest
15948   cd conftest
15949   mkdir out
15950   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15951
15952   lt_compiler_flag="-o out/conftest2.$ac_objext"
15953   # Insert the option either (1) after the last *FLAGS variable, or
15954   # (2) before a word containing "conftest.", or (3) at the end.
15955   # Note that $ac_compile itself does not contain backslashes and begins
15956   # with a dollar sign (not a hyphen), so the echo should work correctly.
15957   lt_compile=`echo "$ac_compile" | $SED \
15958   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15959   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15960   -e 's:$: $lt_compiler_flag:'`
15961   (eval echo "\"\$as_me:15961: $lt_compile\"" >&5)
15962   (eval "$lt_compile" 2>out/conftest.err)
15963   ac_status=$?
15964   cat out/conftest.err >&5
15965   echo "$as_me:15965: \$? = $ac_status" >&5
15966   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15967   then
15968     # The compiler can only warn and ignore the option if not recognized
15969     # So say no if there are warnings
15970     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15971     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15972     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15973       lt_cv_prog_compiler_c_o_GCJ=yes
15974     fi
15975   fi
15976   chmod u+w . 2>&5
15977   $rm conftest*
15978   # SGI C++ compiler will create directory out/ii_files/ for
15979   # template instantiation
15980   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15981   $rm out/* && rmdir out
15982   cd ..
15983   rmdir conftest
15984   $rm conftest*
15985
15986fi
15987echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15988echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15989
15990
15991hard_links="nottested"
15992if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15993  # do not overwrite the value of need_locks provided by the user
15994  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15995echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15996  hard_links=yes
15997  $rm conftest*
15998  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15999  touch conftest.a
16000  ln conftest.a conftest.b 2>&5 || hard_links=no
16001  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16002  echo "$as_me:$LINENO: result: $hard_links" >&5
16003echo "${ECHO_T}$hard_links" >&6
16004  if test "$hard_links" = no; then
16005    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16006echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16007    need_locks=warn
16008  fi
16009else
16010  need_locks=no
16011fi
16012
16013echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16014echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16015
16016  runpath_var=
16017  allow_undefined_flag_GCJ=
16018  enable_shared_with_static_runtimes_GCJ=no
16019  archive_cmds_GCJ=
16020  archive_expsym_cmds_GCJ=
16021  old_archive_From_new_cmds_GCJ=
16022  old_archive_from_expsyms_cmds_GCJ=
16023  export_dynamic_flag_spec_GCJ=
16024  whole_archive_flag_spec_GCJ=
16025  thread_safe_flag_spec_GCJ=
16026  hardcode_libdir_flag_spec_GCJ=
16027  hardcode_libdir_flag_spec_ld_GCJ=
16028  hardcode_libdir_separator_GCJ=
16029  hardcode_direct_GCJ=no
16030  hardcode_minus_L_GCJ=no
16031  hardcode_shlibpath_var_GCJ=unsupported
16032  link_all_deplibs_GCJ=unknown
16033  hardcode_automatic_GCJ=no
16034  module_cmds_GCJ=
16035  module_expsym_cmds_GCJ=
16036  always_export_symbols_GCJ=no
16037  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16038  # include_expsyms should be a list of space-separated symbols to be *always*
16039  # included in the symbol list
16040  include_expsyms_GCJ=
16041  # exclude_expsyms can be an extended regexp of symbols to exclude
16042  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16043  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16044  # as well as any symbol that contains `d'.
16045  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16046  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16047  # platforms (ab)use it in PIC code, but their linkers get confused if
16048  # the symbol is explicitly referenced.  Since portable code cannot
16049  # rely on this symbol name, it's probably fine to never include it in
16050  # preloaded symbol tables.
16051  extract_expsyms_cmds=
16052  # Just being paranoid about ensuring that cc_basename is set.
16053  for cc_temp in $compiler""; do
16054  case $cc_temp in
16055    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16056    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16057    \-*) ;;
16058    *) break;;
16059  esac
16060done
16061cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16062
16063  case $host_os in
16064  cygwin* | mingw* | pw32*)
16065    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16066    # When not using gcc, we currently assume that we are using
16067    # Microsoft Visual C++.
16068    if test "$GCC" != yes; then
16069      with_gnu_ld=no
16070    fi
16071    ;;
16072  interix*)
16073    # we just hope/assume this is gcc and not c89 (= MSVC++)
16074    with_gnu_ld=yes
16075    ;;
16076  openbsd*)
16077    with_gnu_ld=no
16078    ;;
16079  esac
16080
16081  ld_shlibs_GCJ=yes
16082  if test "$with_gnu_ld" = yes; then
16083    # If archive_cmds runs LD, not CC, wlarc should be empty
16084    wlarc='${wl}'
16085
16086    # Set some defaults for GNU ld with shared library support. These
16087    # are reset later if shared libraries are not supported. Putting them
16088    # here allows them to be overridden if necessary.
16089    runpath_var=LD_RUN_PATH
16090    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16091    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16092    # ancient GNU ld didn't support --whole-archive et. al.
16093    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16094	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16095      else
16096  	whole_archive_flag_spec_GCJ=
16097    fi
16098    supports_anon_versioning=no
16099    case `$LD -v 2>/dev/null` in
16100      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16101      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16102      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16103      *\ 2.11.*) ;; # other 2.11 versions
16104      *) supports_anon_versioning=yes ;;
16105    esac
16106
16107    # See if GNU ld supports shared libraries.
16108    case $host_os in
16109    aix3* | aix4* | aix5*)
16110      # On AIX/PPC, the GNU linker is very broken
16111      if test "$host_cpu" != ia64; then
16112	ld_shlibs_GCJ=no
16113	cat <<EOF 1>&2
16114
16115*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16116*** to be unable to reliably create shared libraries on AIX.
16117*** Therefore, libtool is disabling shared libraries support.  If you
16118*** really care for shared libraries, you may want to modify your PATH
16119*** so that a non-GNU linker is found, and then restart.
16120
16121EOF
16122      fi
16123      ;;
16124
16125    amigaos*)
16126      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)'
16127      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16128      hardcode_minus_L_GCJ=yes
16129
16130      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16131      # that the semantics of dynamic libraries on AmigaOS, at least up
16132      # to version 4, is to share data among multiple programs linked
16133      # with the same dynamic library.  Since this doesn't match the
16134      # behavior of shared libraries on other platforms, we can't use
16135      # them.
16136      ld_shlibs_GCJ=no
16137      ;;
16138
16139    beos*)
16140      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16141	allow_undefined_flag_GCJ=unsupported
16142	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16143	# support --undefined.  This deserves some investigation.  FIXME
16144	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16145      else
16146	ld_shlibs_GCJ=no
16147      fi
16148      ;;
16149
16150    cygwin* | mingw* | pw32*)
16151      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16152      # as there is no search path for DLLs.
16153      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16154      allow_undefined_flag_GCJ=unsupported
16155      always_export_symbols_GCJ=no
16156      enable_shared_with_static_runtimes_GCJ=yes
16157      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16158
16159      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16160        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16161	# If the export-symbols file already is a .def file (1st line
16162	# is EXPORTS), use it as is; otherwise, prepend...
16163	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16164	  cp $export_symbols $output_objdir/$soname.def;
16165	else
16166	  echo EXPORTS > $output_objdir/$soname.def;
16167	  cat $export_symbols >> $output_objdir/$soname.def;
16168	fi~
16169	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16170      else
16171	ld_shlibs_GCJ=no
16172      fi
16173      ;;
16174
16175    interix3*)
16176      hardcode_direct_GCJ=no
16177      hardcode_shlibpath_var_GCJ=no
16178      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16179      export_dynamic_flag_spec_GCJ='${wl}-E'
16180      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16181      # Instead, shared libraries are loaded at an image base (0x10000000 by
16182      # default) and relocated if they conflict, which is a slow very memory
16183      # consuming and fragmenting process.  To avoid this, we pick a random,
16184      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16185      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16186      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'
16187      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'
16188      ;;
16189
16190    linux*)
16191      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16192	tmp_addflag=
16193	case $cc_basename,$host_cpu in
16194	pgcc*)				# Portland Group C compiler
16195	  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'
16196	  tmp_addflag=' $pic_flag'
16197	  ;;
16198	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16199	  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'
16200	  tmp_addflag=' $pic_flag -Mnomain' ;;
16201	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16202	  tmp_addflag=' -i_dynamic' ;;
16203	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16204	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16205	ifc* | ifort*)			# Intel Fortran compiler
16206	  tmp_addflag=' -nofor_main' ;;
16207	esac
16208	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16209
16210	if test $supports_anon_versioning = yes; then
16211	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16212  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16213  $echo "local: *; };" >> $output_objdir/$libname.ver~
16214	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16215	fi
16216      else
16217	ld_shlibs_GCJ=no
16218      fi
16219      ;;
16220
16221    netbsd*)
16222      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16223	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16224	wlarc=
16225      else
16226	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16227	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16228      fi
16229      ;;
16230
16231    solaris*)
16232      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16233	ld_shlibs_GCJ=no
16234	cat <<EOF 1>&2
16235
16236*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16237*** create shared libraries on Solaris systems.  Therefore, libtool
16238*** is disabling shared libraries support.  We urge you to upgrade GNU
16239*** binutils to release 2.9.1 or newer.  Another option is to modify
16240*** your PATH or compiler configuration so that the native linker is
16241*** used, and then restart.
16242
16243EOF
16244      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16245	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16246	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16247      else
16248	ld_shlibs_GCJ=no
16249      fi
16250      ;;
16251
16252    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16253      case `$LD -v 2>&1` in
16254        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16255	ld_shlibs_GCJ=no
16256	cat <<_LT_EOF 1>&2
16257
16258*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16259*** reliably create shared libraries on SCO systems.  Therefore, libtool
16260*** is disabling shared libraries support.  We urge you to upgrade GNU
16261*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16262*** your PATH or compiler configuration so that the native linker is
16263*** used, and then restart.
16264
16265_LT_EOF
16266	;;
16267	*)
16268	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16269	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16270	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16271	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16272	  else
16273	    ld_shlibs_GCJ=no
16274	  fi
16275	;;
16276      esac
16277      ;;
16278
16279    sunos4*)
16280      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16281      wlarc=
16282      hardcode_direct_GCJ=yes
16283      hardcode_shlibpath_var_GCJ=no
16284      ;;
16285
16286    *)
16287      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16288	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16289	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16290      else
16291	ld_shlibs_GCJ=no
16292      fi
16293      ;;
16294    esac
16295
16296    if test "$ld_shlibs_GCJ" = no; then
16297      runpath_var=
16298      hardcode_libdir_flag_spec_GCJ=
16299      export_dynamic_flag_spec_GCJ=
16300      whole_archive_flag_spec_GCJ=
16301    fi
16302  else
16303    # PORTME fill in a description of your system's linker (not GNU ld)
16304    case $host_os in
16305    aix3*)
16306      allow_undefined_flag_GCJ=unsupported
16307      always_export_symbols_GCJ=yes
16308      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'
16309      # Note: this linker hardcodes the directories in LIBPATH if there
16310      # are no directories specified by -L.
16311      hardcode_minus_L_GCJ=yes
16312      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16313	# Neither direct hardcoding nor static linking is supported with a
16314	# broken collect2.
16315	hardcode_direct_GCJ=unsupported
16316      fi
16317      ;;
16318
16319    aix4* | aix5*)
16320      if test "$host_cpu" = ia64; then
16321	# On IA64, the linker does run time linking by default, so we don't
16322	# have to do anything special.
16323	aix_use_runtimelinking=no
16324	exp_sym_flag='-Bexport'
16325	no_entry_flag=""
16326      else
16327	# If we're using GNU nm, then we don't want the "-C" option.
16328	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16329	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16330	  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'
16331	else
16332	  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'
16333	fi
16334	aix_use_runtimelinking=no
16335
16336	# Test if we are trying to use run time linking or normal
16337	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16338	# need to do runtime linking.
16339	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16340	  for ld_flag in $LDFLAGS; do
16341  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16342  	    aix_use_runtimelinking=yes
16343  	    break
16344  	  fi
16345	  done
16346	  ;;
16347	esac
16348
16349	exp_sym_flag='-bexport'
16350	no_entry_flag='-bnoentry'
16351      fi
16352
16353      # When large executables or shared objects are built, AIX ld can
16354      # have problems creating the table of contents.  If linking a library
16355      # or program results in "error TOC overflow" add -mminimal-toc to
16356      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16357      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16358
16359      archive_cmds_GCJ=''
16360      hardcode_direct_GCJ=yes
16361      hardcode_libdir_separator_GCJ=':'
16362      link_all_deplibs_GCJ=yes
16363
16364      if test "$GCC" = yes; then
16365	case $host_os in aix4.[012]|aix4.[012].*)
16366	# We only want to do this on AIX 4.2 and lower, the check
16367	# below for broken collect2 doesn't work under 4.3+
16368	  collect2name=`${CC} -print-prog-name=collect2`
16369	  if test -f "$collect2name" && \
16370  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16371	  then
16372  	  # We have reworked collect2
16373  	  hardcode_direct_GCJ=yes
16374	  else
16375  	  # We have old collect2
16376  	  hardcode_direct_GCJ=unsupported
16377  	  # It fails to find uninstalled libraries when the uninstalled
16378  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16379  	  # to unsupported forces relinking
16380  	  hardcode_minus_L_GCJ=yes
16381  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16382  	  hardcode_libdir_separator_GCJ=
16383	  fi
16384	  ;;
16385	esac
16386	shared_flag='-shared'
16387	if test "$aix_use_runtimelinking" = yes; then
16388	  shared_flag="$shared_flag "'${wl}-G'
16389	fi
16390      else
16391	# not using gcc
16392	if test "$host_cpu" = ia64; then
16393  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16394  	# chokes on -Wl,-G. The following line is correct:
16395	  shared_flag='-G'
16396	else
16397	  if test "$aix_use_runtimelinking" = yes; then
16398	    shared_flag='${wl}-G'
16399	  else
16400	    shared_flag='${wl}-bM:SRE'
16401	  fi
16402	fi
16403      fi
16404
16405      # It seems that -bexpall does not export symbols beginning with
16406      # underscore (_), so it is better to generate a list of symbols to export.
16407      always_export_symbols_GCJ=yes
16408      if test "$aix_use_runtimelinking" = yes; then
16409	# Warning - without using the other runtime loading flags (-brtl),
16410	# -berok will link without error, but may produce a broken library.
16411	allow_undefined_flag_GCJ='-berok'
16412       # Determine the default libpath from the value encoded in an empty executable.
16413       cat >conftest.$ac_ext <<_ACEOF
16414/* confdefs.h.  */
16415_ACEOF
16416cat confdefs.h >>conftest.$ac_ext
16417cat >>conftest.$ac_ext <<_ACEOF
16418/* end confdefs.h.  */
16419
16420int
16421main ()
16422{
16423
16424  ;
16425  return 0;
16426}
16427_ACEOF
16428rm -f conftest.$ac_objext conftest$ac_exeext
16429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16430  (eval $ac_link) 2>conftest.er1
16431  ac_status=$?
16432  grep -v '^ *+' conftest.er1 >conftest.err
16433  rm -f conftest.er1
16434  cat conftest.err >&5
16435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436  (exit $ac_status); } &&
16437	 { ac_try='test -z "$ac_c_werror_flag"
16438			 || test ! -s conftest.err'
16439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440  (eval $ac_try) 2>&5
16441  ac_status=$?
16442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443  (exit $ac_status); }; } &&
16444	 { ac_try='test -s conftest$ac_exeext'
16445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446  (eval $ac_try) 2>&5
16447  ac_status=$?
16448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449  (exit $ac_status); }; }; then
16450
16451aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16452}'`
16453# Check for a 64-bit object if we didn't find anything.
16454if 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; }
16455}'`; fi
16456else
16457  echo "$as_me: failed program was:" >&5
16458sed 's/^/| /' conftest.$ac_ext >&5
16459
16460fi
16461rm -f conftest.err conftest.$ac_objext \
16462      conftest$ac_exeext conftest.$ac_ext
16463if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16464
16465       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16466	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"
16467       else
16468	if test "$host_cpu" = ia64; then
16469	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16470	  allow_undefined_flag_GCJ="-z nodefs"
16471	  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"
16472	else
16473	 # Determine the default libpath from the value encoded in an empty executable.
16474	 cat >conftest.$ac_ext <<_ACEOF
16475/* confdefs.h.  */
16476_ACEOF
16477cat confdefs.h >>conftest.$ac_ext
16478cat >>conftest.$ac_ext <<_ACEOF
16479/* end confdefs.h.  */
16480
16481int
16482main ()
16483{
16484
16485  ;
16486  return 0;
16487}
16488_ACEOF
16489rm -f conftest.$ac_objext conftest$ac_exeext
16490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16491  (eval $ac_link) 2>conftest.er1
16492  ac_status=$?
16493  grep -v '^ *+' conftest.er1 >conftest.err
16494  rm -f conftest.er1
16495  cat conftest.err >&5
16496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497  (exit $ac_status); } &&
16498	 { ac_try='test -z "$ac_c_werror_flag"
16499			 || test ! -s conftest.err'
16500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501  (eval $ac_try) 2>&5
16502  ac_status=$?
16503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504  (exit $ac_status); }; } &&
16505	 { ac_try='test -s conftest$ac_exeext'
16506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507  (eval $ac_try) 2>&5
16508  ac_status=$?
16509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510  (exit $ac_status); }; }; then
16511
16512aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16513}'`
16514# Check for a 64-bit object if we didn't find anything.
16515if 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; }
16516}'`; fi
16517else
16518  echo "$as_me: failed program was:" >&5
16519sed 's/^/| /' conftest.$ac_ext >&5
16520
16521fi
16522rm -f conftest.err conftest.$ac_objext \
16523      conftest$ac_exeext conftest.$ac_ext
16524if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16525
16526	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16527	  # Warning - without using the other run time loading flags,
16528	  # -berok will link without error, but may produce a broken library.
16529	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16530	  allow_undefined_flag_GCJ=' ${wl}-berok'
16531	  # Exported symbols can be pulled into shared objects from archives
16532	  whole_archive_flag_spec_GCJ='$convenience'
16533	  archive_cmds_need_lc_GCJ=yes
16534	  # This is similar to how AIX traditionally builds its shared libraries.
16535	  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'
16536	fi
16537      fi
16538      ;;
16539
16540    amigaos*)
16541      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)'
16542      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16543      hardcode_minus_L_GCJ=yes
16544      # see comment about different semantics on the GNU ld section
16545      ld_shlibs_GCJ=no
16546      ;;
16547
16548    bsdi[45]*)
16549      export_dynamic_flag_spec_GCJ=-rdynamic
16550      ;;
16551
16552    cygwin* | mingw* | pw32*)
16553      # When not using gcc, we currently assume that we are using
16554      # Microsoft Visual C++.
16555      # hardcode_libdir_flag_spec is actually meaningless, as there is
16556      # no search path for DLLs.
16557      hardcode_libdir_flag_spec_GCJ=' '
16558      allow_undefined_flag_GCJ=unsupported
16559      # Tell ltmain to make .lib files, not .a files.
16560      libext=lib
16561      # Tell ltmain to make .dll files, not .so files.
16562      shrext_cmds=".dll"
16563      # FIXME: Setting linknames here is a bad hack.
16564      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16565      # The linker will automatically build a .lib file if we build a DLL.
16566      old_archive_From_new_cmds_GCJ='true'
16567      # FIXME: Should let the user specify the lib program.
16568      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16569      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16570      enable_shared_with_static_runtimes_GCJ=yes
16571      ;;
16572
16573    darwin* | rhapsody*)
16574      case $host_os in
16575        rhapsody* | darwin1.[012])
16576         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16577         ;;
16578       *) # Darwin 1.3 on
16579         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16580           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16581         else
16582           case ${MACOSX_DEPLOYMENT_TARGET} in
16583             10.[012])
16584               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16585               ;;
16586             10.*)
16587               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16588               ;;
16589           esac
16590         fi
16591         ;;
16592      esac
16593      archive_cmds_need_lc_GCJ=no
16594      hardcode_direct_GCJ=no
16595      hardcode_automatic_GCJ=yes
16596      hardcode_shlibpath_var_GCJ=unsupported
16597      whole_archive_flag_spec_GCJ=''
16598      link_all_deplibs_GCJ=yes
16599    if test "$GCC" = yes ; then
16600    	output_verbose_link_cmd='echo'
16601        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16602      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16603      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16604      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}'
16605      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}'
16606    else
16607      case $cc_basename in
16608        xlc*)
16609         output_verbose_link_cmd='echo'
16610         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16611         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16612          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16613         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}'
16614          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}'
16615          ;;
16616       *)
16617         ld_shlibs_GCJ=no
16618          ;;
16619      esac
16620    fi
16621      ;;
16622
16623    dgux*)
16624      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16626      hardcode_shlibpath_var_GCJ=no
16627      ;;
16628
16629    freebsd1*)
16630      ld_shlibs_GCJ=no
16631      ;;
16632
16633    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16634    # support.  Future versions do this automatically, but an explicit c++rt0.o
16635    # does not break anything, and helps significantly (at the cost of a little
16636    # extra space).
16637    freebsd2.2*)
16638      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16639      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16640      hardcode_direct_GCJ=yes
16641      hardcode_shlibpath_var_GCJ=no
16642      ;;
16643
16644    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16645    freebsd2*)
16646      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16647      hardcode_direct_GCJ=yes
16648      hardcode_minus_L_GCJ=yes
16649      hardcode_shlibpath_var_GCJ=no
16650      ;;
16651
16652    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16653    freebsd* | kfreebsd*-gnu | dragonfly*)
16654      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16655      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16656      hardcode_direct_GCJ=yes
16657      hardcode_shlibpath_var_GCJ=no
16658      ;;
16659
16660    hpux9*)
16661      if test "$GCC" = yes; then
16662	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'
16663      else
16664	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'
16665      fi
16666      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16667      hardcode_libdir_separator_GCJ=:
16668      hardcode_direct_GCJ=yes
16669
16670      # hardcode_minus_L: Not really in the search PATH,
16671      # but as the default location of the library.
16672      hardcode_minus_L_GCJ=yes
16673      export_dynamic_flag_spec_GCJ='${wl}-E'
16674      ;;
16675
16676    hpux10*)
16677      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16678	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16679      else
16680	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16681      fi
16682      if test "$with_gnu_ld" = no; then
16683	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16684	hardcode_libdir_separator_GCJ=:
16685
16686	hardcode_direct_GCJ=yes
16687	export_dynamic_flag_spec_GCJ='${wl}-E'
16688
16689	# hardcode_minus_L: Not really in the search PATH,
16690	# but as the default location of the library.
16691	hardcode_minus_L_GCJ=yes
16692      fi
16693      ;;
16694
16695    hpux11*)
16696      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16697	case $host_cpu in
16698	hppa*64*)
16699	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16700	  ;;
16701	ia64*)
16702	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16703	  ;;
16704	*)
16705	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16706	  ;;
16707	esac
16708      else
16709	case $host_cpu in
16710	hppa*64*)
16711	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16712	  ;;
16713	ia64*)
16714	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16715	  ;;
16716	*)
16717	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16718	  ;;
16719	esac
16720      fi
16721      if test "$with_gnu_ld" = no; then
16722	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16723	hardcode_libdir_separator_GCJ=:
16724
16725	case $host_cpu in
16726	hppa*64*|ia64*)
16727	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16728	  hardcode_direct_GCJ=no
16729	  hardcode_shlibpath_var_GCJ=no
16730	  ;;
16731	*)
16732	  hardcode_direct_GCJ=yes
16733	  export_dynamic_flag_spec_GCJ='${wl}-E'
16734
16735	  # hardcode_minus_L: Not really in the search PATH,
16736	  # but as the default location of the library.
16737	  hardcode_minus_L_GCJ=yes
16738	  ;;
16739	esac
16740      fi
16741      ;;
16742
16743    irix5* | irix6* | nonstopux*)
16744      if test "$GCC" = yes; then
16745	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'
16746      else
16747	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'
16748	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16749      fi
16750      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16751      hardcode_libdir_separator_GCJ=:
16752      link_all_deplibs_GCJ=yes
16753      ;;
16754
16755    netbsd*)
16756      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16757	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16758      else
16759	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16760      fi
16761      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16762      hardcode_direct_GCJ=yes
16763      hardcode_shlibpath_var_GCJ=no
16764      ;;
16765
16766    newsos6)
16767      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16768      hardcode_direct_GCJ=yes
16769      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16770      hardcode_libdir_separator_GCJ=:
16771      hardcode_shlibpath_var_GCJ=no
16772      ;;
16773
16774    openbsd*)
16775      hardcode_direct_GCJ=yes
16776      hardcode_shlibpath_var_GCJ=no
16777      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16778	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16779	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16780	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16781	export_dynamic_flag_spec_GCJ='${wl}-E'
16782      else
16783       case $host_os in
16784	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16785	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16786	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16787	   ;;
16788	 *)
16789	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16790	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16791	   ;;
16792       esac
16793      fi
16794      ;;
16795
16796    os2*)
16797      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16798      hardcode_minus_L_GCJ=yes
16799      allow_undefined_flag_GCJ=unsupported
16800      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'
16801      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16802      ;;
16803
16804    osf3*)
16805      if test "$GCC" = yes; then
16806	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16807	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'
16808      else
16809	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16810	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'
16811      fi
16812      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16813      hardcode_libdir_separator_GCJ=:
16814      ;;
16815
16816    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16817      if test "$GCC" = yes; then
16818	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16819	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'
16820	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16821      else
16822	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16823	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'
16824	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~
16825	$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'
16826
16827	# Both c and cxx compiler support -rpath directly
16828	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16829      fi
16830      hardcode_libdir_separator_GCJ=:
16831      ;;
16832
16833    solaris*)
16834      no_undefined_flag_GCJ=' -z text'
16835      if test "$GCC" = yes; then
16836	wlarc='${wl}'
16837	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16838	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16839	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16840      else
16841	wlarc=''
16842	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16843	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16844  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16845      fi
16846      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16847      hardcode_shlibpath_var_GCJ=no
16848      case $host_os in
16849      solaris2.[0-5] | solaris2.[0-5].*) ;;
16850      *)
16851 	# The compiler driver will combine linker options so we
16852 	# cannot just pass the convience library names through
16853 	# without $wl, iff we do not link with $LD.
16854 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16855 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16856 	case $wlarc in
16857 	'')
16858 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16859 	*)
16860 	  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' ;;
16861 	esac ;;
16862      esac
16863      link_all_deplibs_GCJ=yes
16864      ;;
16865
16866    sunos4*)
16867      if test "x$host_vendor" = xsequent; then
16868	# Use $CC to link under sequent, because it throws in some extra .o
16869	# files that make .init and .fini sections work.
16870	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16871      else
16872	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16873      fi
16874      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16875      hardcode_direct_GCJ=yes
16876      hardcode_minus_L_GCJ=yes
16877      hardcode_shlibpath_var_GCJ=no
16878      ;;
16879
16880    sysv4)
16881      case $host_vendor in
16882	sni)
16883	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16884	  hardcode_direct_GCJ=yes # is this really true???
16885	;;
16886	siemens)
16887	  ## LD is ld it makes a PLAMLIB
16888	  ## CC just makes a GrossModule.
16889	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16890	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16891	  hardcode_direct_GCJ=no
16892        ;;
16893	motorola)
16894	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16895	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16896	;;
16897      esac
16898      runpath_var='LD_RUN_PATH'
16899      hardcode_shlibpath_var_GCJ=no
16900      ;;
16901
16902    sysv4.3*)
16903      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16904      hardcode_shlibpath_var_GCJ=no
16905      export_dynamic_flag_spec_GCJ='-Bexport'
16906      ;;
16907
16908    sysv4*MP*)
16909      if test -d /usr/nec; then
16910	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911	hardcode_shlibpath_var_GCJ=no
16912	runpath_var=LD_RUN_PATH
16913	hardcode_runpath_var=yes
16914	ld_shlibs_GCJ=yes
16915      fi
16916      ;;
16917
16918    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16919      no_undefined_flag_GCJ='${wl}-z,text'
16920      archive_cmds_need_lc_GCJ=no
16921      hardcode_shlibpath_var_GCJ=no
16922      runpath_var='LD_RUN_PATH'
16923
16924      if test "$GCC" = yes; then
16925	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16926	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16927      else
16928	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16929	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16930      fi
16931      ;;
16932
16933    sysv5* | sco3.2v5* | sco5v6*)
16934      # Note: We can NOT use -z defs as we might desire, because we do not
16935      # link with -lc, and that would cause any symbols used from libc to
16936      # always be unresolved, which means just about no library would
16937      # ever link correctly.  If we're not using GNU ld we use -z text
16938      # though, which does catch some bad symbols but isn't as heavy-handed
16939      # as -z defs.
16940      no_undefined_flag_GCJ='${wl}-z,text'
16941      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16942      archive_cmds_need_lc_GCJ=no
16943      hardcode_shlibpath_var_GCJ=no
16944      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16945      hardcode_libdir_separator_GCJ=':'
16946      link_all_deplibs_GCJ=yes
16947      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16948      runpath_var='LD_RUN_PATH'
16949
16950      if test "$GCC" = yes; then
16951	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16952	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16953      else
16954	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16955	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16956      fi
16957      ;;
16958
16959    uts4*)
16960      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16961      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16962      hardcode_shlibpath_var_GCJ=no
16963      ;;
16964
16965    *)
16966      ld_shlibs_GCJ=no
16967      ;;
16968    esac
16969  fi
16970
16971echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16972echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16973test "$ld_shlibs_GCJ" = no && can_build_shared=no
16974
16975#
16976# Do we need to explicitly link libc?
16977#
16978case "x$archive_cmds_need_lc_GCJ" in
16979x|xyes)
16980  # Assume -lc should be added
16981  archive_cmds_need_lc_GCJ=yes
16982
16983  if test "$enable_shared" = yes && test "$GCC" = yes; then
16984    case $archive_cmds_GCJ in
16985    *'~'*)
16986      # FIXME: we may have to deal with multi-command sequences.
16987      ;;
16988    '$CC '*)
16989      # Test whether the compiler implicitly links with -lc since on some
16990      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16991      # to ld, don't add -lc before -lgcc.
16992      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16993echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16994      $rm conftest*
16995      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16996
16997      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16998  (eval $ac_compile) 2>&5
16999  ac_status=$?
17000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001  (exit $ac_status); } 2>conftest.err; then
17002        soname=conftest
17003        lib=conftest
17004        libobjs=conftest.$ac_objext
17005        deplibs=
17006        wl=$lt_prog_compiler_wl_GCJ
17007	pic_flag=$lt_prog_compiler_pic_GCJ
17008        compiler_flags=-v
17009        linker_flags=-v
17010        verstring=
17011        output_objdir=.
17012        libname=conftest
17013        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17014        allow_undefined_flag_GCJ=
17015        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17016  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17017  ac_status=$?
17018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019  (exit $ac_status); }
17020        then
17021	  archive_cmds_need_lc_GCJ=no
17022        else
17023	  archive_cmds_need_lc_GCJ=yes
17024        fi
17025        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17026      else
17027        cat conftest.err 1>&5
17028      fi
17029      $rm conftest*
17030      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17031echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17032      ;;
17033    esac
17034  fi
17035  ;;
17036esac
17037
17038echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17039echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17040library_names_spec=
17041libname_spec='lib$name'
17042soname_spec=
17043shrext_cmds=".so"
17044postinstall_cmds=
17045postuninstall_cmds=
17046finish_cmds=
17047finish_eval=
17048shlibpath_var=
17049shlibpath_overrides_runpath=unknown
17050version_type=none
17051dynamic_linker="$host_os ld.so"
17052sys_lib_dlsearch_path_spec="/lib /usr/lib"
17053if test "$GCC" = yes; then
17054  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17055  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17056    # if the path contains ";" then we assume it to be the separator
17057    # otherwise default to the standard path separator (i.e. ":") - it is
17058    # assumed that no part of a normal pathname contains ";" but that should
17059    # okay in the real world where ";" in dirpaths is itself problematic.
17060    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17061  else
17062    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17063  fi
17064else
17065  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17066fi
17067need_lib_prefix=unknown
17068hardcode_into_libs=no
17069
17070# when you set need_version to no, make sure it does not cause -set_version
17071# flags to be left without arguments
17072need_version=unknown
17073
17074case $host_os in
17075aix3*)
17076  version_type=linux
17077  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17078  shlibpath_var=LIBPATH
17079
17080  # AIX 3 has no versioning support, so we append a major version to the name.
17081  soname_spec='${libname}${release}${shared_ext}$major'
17082  ;;
17083
17084aix4* | aix5*)
17085  version_type=linux
17086  need_lib_prefix=no
17087  need_version=no
17088  hardcode_into_libs=yes
17089  if test "$host_cpu" = ia64; then
17090    # AIX 5 supports IA64
17091    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17092    shlibpath_var=LD_LIBRARY_PATH
17093  else
17094    # With GCC up to 2.95.x, collect2 would create an import file
17095    # for dependence libraries.  The import file would start with
17096    # the line `#! .'.  This would cause the generated library to
17097    # depend on `.', always an invalid library.  This was fixed in
17098    # development snapshots of GCC prior to 3.0.
17099    case $host_os in
17100      aix4 | aix4.[01] | aix4.[01].*)
17101      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17102	   echo ' yes '
17103	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17104	:
17105      else
17106	can_build_shared=no
17107      fi
17108      ;;
17109    esac
17110    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17111    # soname into executable. Probably we can add versioning support to
17112    # collect2, so additional links can be useful in future.
17113    if test "$aix_use_runtimelinking" = yes; then
17114      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17115      # instead of lib<name>.a to let people know that these are not
17116      # typical AIX shared libraries.
17117      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118    else
17119      # We preserve .a as extension for shared libraries through AIX4.2
17120      # and later when we are not doing run time linking.
17121      library_names_spec='${libname}${release}.a $libname.a'
17122      soname_spec='${libname}${release}${shared_ext}$major'
17123    fi
17124    shlibpath_var=LIBPATH
17125  fi
17126  ;;
17127
17128amigaos*)
17129  library_names_spec='$libname.ixlibrary $libname.a'
17130  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17131  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'
17132  ;;
17133
17134beos*)
17135  library_names_spec='${libname}${shared_ext}'
17136  dynamic_linker="$host_os ld.so"
17137  shlibpath_var=LIBRARY_PATH
17138  ;;
17139
17140bsdi[45]*)
17141  version_type=linux
17142  need_version=no
17143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144  soname_spec='${libname}${release}${shared_ext}$major'
17145  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17146  shlibpath_var=LD_LIBRARY_PATH
17147  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17148  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17149  # the default ld.so.conf also contains /usr/contrib/lib and
17150  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17151  # libtool to hard-code these into programs
17152  ;;
17153
17154cygwin* | mingw* | pw32*)
17155  version_type=windows
17156  shrext_cmds=".dll"
17157  need_version=no
17158  need_lib_prefix=no
17159
17160  case $GCC,$host_os in
17161  yes,cygwin* | yes,mingw* | yes,pw32*)
17162    library_names_spec='$libname.dll.a'
17163    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17164    postinstall_cmds='base_file=`basename \${file}`~
17165      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17166      dldir=$destdir/`dirname \$dlpath`~
17167      test -d \$dldir || mkdir -p \$dldir~
17168      $install_prog $dir/$dlname \$dldir/$dlname~
17169      chmod a+x \$dldir/$dlname'
17170    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17171      dlpath=$dir/\$dldll~
17172       $rm \$dlpath'
17173    shlibpath_overrides_runpath=yes
17174
17175    case $host_os in
17176    cygwin*)
17177      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17178      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17179      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17180      ;;
17181    mingw*)
17182      # MinGW DLLs use traditional 'lib' prefix
17183      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17184      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17185      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17186        # It is most probably a Windows format PATH printed by
17187        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17188        # path with ; separators, and with drive letters. We can handle the
17189        # drive letters (cygwin fileutils understands them), so leave them,
17190        # especially as we might pass files found there to a mingw objdump,
17191        # which wouldn't understand a cygwinified path. Ahh.
17192        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17193      else
17194        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17195      fi
17196      ;;
17197    pw32*)
17198      # pw32 DLLs use 'pw' prefix rather than 'lib'
17199      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17200      ;;
17201    esac
17202    ;;
17203
17204  *)
17205    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17206    ;;
17207  esac
17208  dynamic_linker='Win32 ld.exe'
17209  # FIXME: first we should search . and the directory the executable is in
17210  shlibpath_var=PATH
17211  ;;
17212
17213darwin* | rhapsody*)
17214  dynamic_linker="$host_os dyld"
17215  version_type=darwin
17216  need_lib_prefix=no
17217  need_version=no
17218  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17219  soname_spec='${libname}${release}${major}$shared_ext'
17220  shlibpath_overrides_runpath=yes
17221  shlibpath_var=DYLD_LIBRARY_PATH
17222  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17223  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17224  if test "$GCC" = yes; then
17225    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"`
17226  else
17227    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17228  fi
17229  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17230  ;;
17231
17232dgux*)
17233  version_type=linux
17234  need_lib_prefix=no
17235  need_version=no
17236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17237  soname_spec='${libname}${release}${shared_ext}$major'
17238  shlibpath_var=LD_LIBRARY_PATH
17239  ;;
17240
17241freebsd1*)
17242  dynamic_linker=no
17243  ;;
17244
17245kfreebsd*-gnu)
17246  version_type=linux
17247  need_lib_prefix=no
17248  need_version=no
17249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17250  soname_spec='${libname}${release}${shared_ext}$major'
17251  shlibpath_var=LD_LIBRARY_PATH
17252  shlibpath_overrides_runpath=no
17253  hardcode_into_libs=yes
17254  dynamic_linker='GNU ld.so'
17255  ;;
17256
17257freebsd* | dragonfly*)
17258  # DragonFly does not have aout.  When/if they implement a new
17259  # versioning mechanism, adjust this.
17260  if test -x /usr/bin/objformat; then
17261    objformat=`/usr/bin/objformat`
17262  else
17263    case $host_os in
17264    freebsd[123]*) objformat=aout ;;
17265    *) objformat=elf ;;
17266    esac
17267  fi
17268  version_type=freebsd-$objformat
17269  case $version_type in
17270    freebsd-elf*)
17271      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17272      need_version=no
17273      need_lib_prefix=no
17274      ;;
17275    freebsd-*)
17276      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17277      need_version=yes
17278      ;;
17279  esac
17280  shlibpath_var=LD_LIBRARY_PATH
17281  case $host_os in
17282  freebsd2*)
17283    shlibpath_overrides_runpath=yes
17284    ;;
17285  freebsd3.[01]* | freebsdelf3.[01]*)
17286    shlibpath_overrides_runpath=yes
17287    hardcode_into_libs=yes
17288    ;;
17289  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17290  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17291    shlibpath_overrides_runpath=no
17292    hardcode_into_libs=yes
17293    ;;
17294  freebsd*) # from 4.6 on
17295    shlibpath_overrides_runpath=yes
17296    hardcode_into_libs=yes
17297    ;;
17298  esac
17299  ;;
17300
17301gnu*)
17302  version_type=linux
17303  need_lib_prefix=no
17304  need_version=no
17305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17306  soname_spec='${libname}${release}${shared_ext}$major'
17307  shlibpath_var=LD_LIBRARY_PATH
17308  hardcode_into_libs=yes
17309  ;;
17310
17311hpux9* | hpux10* | hpux11*)
17312  # Give a soname corresponding to the major version so that dld.sl refuses to
17313  # link against other versions.
17314  version_type=sunos
17315  need_lib_prefix=no
17316  need_version=no
17317  case $host_cpu in
17318  ia64*)
17319    shrext_cmds='.so'
17320    hardcode_into_libs=yes
17321    dynamic_linker="$host_os dld.so"
17322    shlibpath_var=LD_LIBRARY_PATH
17323    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17324    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17325    soname_spec='${libname}${release}${shared_ext}$major'
17326    if test "X$HPUX_IA64_MODE" = X32; then
17327      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17328    else
17329      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17330    fi
17331    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17332    ;;
17333   hppa*64*)
17334     shrext_cmds='.sl'
17335     hardcode_into_libs=yes
17336     dynamic_linker="$host_os dld.sl"
17337     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17338     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340     soname_spec='${libname}${release}${shared_ext}$major'
17341     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17343     ;;
17344   *)
17345    shrext_cmds='.sl'
17346    dynamic_linker="$host_os dld.sl"
17347    shlibpath_var=SHLIB_PATH
17348    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17349    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350    soname_spec='${libname}${release}${shared_ext}$major'
17351    ;;
17352  esac
17353  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17354  postinstall_cmds='chmod 555 $lib'
17355  ;;
17356
17357interix3*)
17358  version_type=linux
17359  need_lib_prefix=no
17360  need_version=no
17361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17362  soname_spec='${libname}${release}${shared_ext}$major'
17363  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17364  shlibpath_var=LD_LIBRARY_PATH
17365  shlibpath_overrides_runpath=no
17366  hardcode_into_libs=yes
17367  ;;
17368
17369irix5* | irix6* | nonstopux*)
17370  case $host_os in
17371    nonstopux*) version_type=nonstopux ;;
17372    *)
17373	if test "$lt_cv_prog_gnu_ld" = yes; then
17374		version_type=linux
17375	else
17376		version_type=irix
17377	fi ;;
17378  esac
17379  need_lib_prefix=no
17380  need_version=no
17381  soname_spec='${libname}${release}${shared_ext}$major'
17382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17383  case $host_os in
17384  irix5* | nonstopux*)
17385    libsuff= shlibsuff=
17386    ;;
17387  *)
17388    case $LD in # libtool.m4 will add one of these switches to LD
17389    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17390      libsuff= shlibsuff= libmagic=32-bit;;
17391    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17392      libsuff=32 shlibsuff=N32 libmagic=N32;;
17393    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17394      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17395    *) libsuff= shlibsuff= libmagic=never-match;;
17396    esac
17397    ;;
17398  esac
17399  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17400  shlibpath_overrides_runpath=no
17401  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17402  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17403  hardcode_into_libs=yes
17404  ;;
17405
17406# No shared lib support for Linux oldld, aout, or coff.
17407linux*oldld* | linux*aout* | linux*coff*)
17408  dynamic_linker=no
17409  ;;
17410
17411# This must be Linux ELF.
17412linux*)
17413  version_type=linux
17414  need_lib_prefix=no
17415  need_version=no
17416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17417  soname_spec='${libname}${release}${shared_ext}$major'
17418  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17419  shlibpath_var=LD_LIBRARY_PATH
17420  shlibpath_overrides_runpath=no
17421  # This implies no fast_install, which is unacceptable.
17422  # Some rework will be needed to allow for fast_install
17423  # before this can be enabled.
17424  hardcode_into_libs=yes
17425
17426  # find out which ABI we are using
17427  libsuff=
17428  case "$host_cpu" in
17429  x86_64*|s390x*|powerpc64*)
17430    echo '#line 17430 "configure"' > conftest.$ac_ext
17431    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17432  (eval $ac_compile) 2>&5
17433  ac_status=$?
17434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435  (exit $ac_status); }; then
17436      case `/usr/bin/file conftest.$ac_objext` in
17437      *64-bit*)
17438        libsuff=64
17439        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17440        ;;
17441      esac
17442    fi
17443    rm -rf conftest*
17444    ;;
17445  esac
17446
17447  # Append ld.so.conf contents to the search path
17448  if test -f /etc/ld.so.conf; then
17449    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17450    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17451  fi
17452
17453  # We used to test for /lib/ld.so.1 and disable shared libraries on
17454  # powerpc, because MkLinux only supported shared libraries with the
17455  # GNU dynamic linker.  Since this was broken with cross compilers,
17456  # most powerpc-linux boxes support dynamic linking these days and
17457  # people can always --disable-shared, the test was removed, and we
17458  # assume the GNU/Linux dynamic linker is in use.
17459  dynamic_linker='GNU/Linux ld.so'
17460  ;;
17461
17462knetbsd*-gnu)
17463  version_type=linux
17464  need_lib_prefix=no
17465  need_version=no
17466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17467  soname_spec='${libname}${release}${shared_ext}$major'
17468  shlibpath_var=LD_LIBRARY_PATH
17469  shlibpath_overrides_runpath=no
17470  hardcode_into_libs=yes
17471  dynamic_linker='GNU ld.so'
17472  ;;
17473
17474netbsd*)
17475  version_type=sunos
17476  need_lib_prefix=no
17477  need_version=no
17478  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17479    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17480    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17481    dynamic_linker='NetBSD (a.out) ld.so'
17482  else
17483    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17484    soname_spec='${libname}${release}${shared_ext}$major'
17485    dynamic_linker='NetBSD ld.elf_so'
17486  fi
17487  shlibpath_var=LD_LIBRARY_PATH
17488  shlibpath_overrides_runpath=yes
17489  hardcode_into_libs=yes
17490  ;;
17491
17492newsos6)
17493  version_type=linux
17494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17495  shlibpath_var=LD_LIBRARY_PATH
17496  shlibpath_overrides_runpath=yes
17497  ;;
17498
17499nto-qnx*)
17500  version_type=linux
17501  need_lib_prefix=no
17502  need_version=no
17503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17504  soname_spec='${libname}${release}${shared_ext}$major'
17505  shlibpath_var=LD_LIBRARY_PATH
17506  shlibpath_overrides_runpath=yes
17507  ;;
17508
17509openbsd*)
17510  version_type=sunos
17511  sys_lib_dlsearch_path_spec="/usr/lib"
17512  need_lib_prefix=no
17513  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17514  case $host_os in
17515    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17516    *)                         need_version=no  ;;
17517  esac
17518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17519  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17520  shlibpath_var=LD_LIBRARY_PATH
17521  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17522    case $host_os in
17523      openbsd2.[89] | openbsd2.[89].*)
17524	shlibpath_overrides_runpath=no
17525	;;
17526      *)
17527	shlibpath_overrides_runpath=yes
17528	;;
17529      esac
17530  else
17531    shlibpath_overrides_runpath=yes
17532  fi
17533  ;;
17534
17535os2*)
17536  libname_spec='$name'
17537  shrext_cmds=".dll"
17538  need_lib_prefix=no
17539  library_names_spec='$libname${shared_ext} $libname.a'
17540  dynamic_linker='OS/2 ld.exe'
17541  shlibpath_var=LIBPATH
17542  ;;
17543
17544osf3* | osf4* | osf5*)
17545  version_type=osf
17546  need_lib_prefix=no
17547  need_version=no
17548  soname_spec='${libname}${release}${shared_ext}$major'
17549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17550  shlibpath_var=LD_LIBRARY_PATH
17551  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17552  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17553  ;;
17554
17555solaris*)
17556  version_type=linux
17557  need_lib_prefix=no
17558  need_version=no
17559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17560  soname_spec='${libname}${release}${shared_ext}$major'
17561  shlibpath_var=LD_LIBRARY_PATH
17562  shlibpath_overrides_runpath=yes
17563  hardcode_into_libs=yes
17564  # ldd complains unless libraries are executable
17565  postinstall_cmds='chmod +x $lib'
17566  ;;
17567
17568sunos4*)
17569  version_type=sunos
17570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17571  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17572  shlibpath_var=LD_LIBRARY_PATH
17573  shlibpath_overrides_runpath=yes
17574  if test "$with_gnu_ld" = yes; then
17575    need_lib_prefix=no
17576  fi
17577  need_version=yes
17578  ;;
17579
17580sysv4 | sysv4.3*)
17581  version_type=linux
17582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583  soname_spec='${libname}${release}${shared_ext}$major'
17584  shlibpath_var=LD_LIBRARY_PATH
17585  case $host_vendor in
17586    sni)
17587      shlibpath_overrides_runpath=no
17588      need_lib_prefix=no
17589      export_dynamic_flag_spec='${wl}-Blargedynsym'
17590      runpath_var=LD_RUN_PATH
17591      ;;
17592    siemens)
17593      need_lib_prefix=no
17594      ;;
17595    motorola)
17596      need_lib_prefix=no
17597      need_version=no
17598      shlibpath_overrides_runpath=no
17599      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17600      ;;
17601  esac
17602  ;;
17603
17604sysv4*MP*)
17605  if test -d /usr/nec ;then
17606    version_type=linux
17607    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17608    soname_spec='$libname${shared_ext}.$major'
17609    shlibpath_var=LD_LIBRARY_PATH
17610  fi
17611  ;;
17612
17613sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17614  version_type=freebsd-elf
17615  need_lib_prefix=no
17616  need_version=no
17617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17618  soname_spec='${libname}${release}${shared_ext}$major'
17619  shlibpath_var=LD_LIBRARY_PATH
17620  hardcode_into_libs=yes
17621  if test "$with_gnu_ld" = yes; then
17622    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17623    shlibpath_overrides_runpath=no
17624  else
17625    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17626    shlibpath_overrides_runpath=yes
17627    case $host_os in
17628      sco3.2v5*)
17629        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17630	;;
17631    esac
17632  fi
17633  sys_lib_dlsearch_path_spec='/usr/lib'
17634  ;;
17635
17636uts4*)
17637  version_type=linux
17638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17639  soname_spec='${libname}${release}${shared_ext}$major'
17640  shlibpath_var=LD_LIBRARY_PATH
17641  ;;
17642
17643*)
17644  dynamic_linker=no
17645  ;;
17646esac
17647echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17648echo "${ECHO_T}$dynamic_linker" >&6
17649test "$dynamic_linker" = no && can_build_shared=no
17650
17651variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17652if test "$GCC" = yes; then
17653  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17654fi
17655
17656echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17657echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17658hardcode_action_GCJ=
17659if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17660   test -n "$runpath_var_GCJ" || \
17661   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17662
17663  # We can hardcode non-existant directories.
17664  if test "$hardcode_direct_GCJ" != no &&
17665     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17666     # have to relink, otherwise we might link with an installed library
17667     # when we should be linking with a yet-to-be-installed one
17668     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17669     test "$hardcode_minus_L_GCJ" != no; then
17670    # Linking always hardcodes the temporary library directory.
17671    hardcode_action_GCJ=relink
17672  else
17673    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17674    hardcode_action_GCJ=immediate
17675  fi
17676else
17677  # We cannot hardcode anything, or else we can only hardcode existing
17678  # directories.
17679  hardcode_action_GCJ=unsupported
17680fi
17681echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17682echo "${ECHO_T}$hardcode_action_GCJ" >&6
17683
17684if test "$hardcode_action_GCJ" = relink; then
17685  # Fast installation is not supported
17686  enable_fast_install=no
17687elif test "$shlibpath_overrides_runpath" = yes ||
17688     test "$enable_shared" = no; then
17689  # Fast installation is not necessary
17690  enable_fast_install=needless
17691fi
17692
17693
17694# The else clause should only fire when bootstrapping the
17695# libtool distribution, otherwise you forgot to ship ltmain.sh
17696# with your package, and you will get complaints that there are
17697# no rules to generate ltmain.sh.
17698if test -f "$ltmain"; then
17699  # See if we are running on zsh, and set the options which allow our commands through
17700  # without removal of \ escapes.
17701  if test -n "${ZSH_VERSION+set}" ; then
17702    setopt NO_GLOB_SUBST
17703  fi
17704  # Now quote all the things that may contain metacharacters while being
17705  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17706  # variables and quote the copies for generation of the libtool script.
17707  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17708    SED SHELL STRIP \
17709    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17710    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17711    deplibs_check_method reload_flag reload_cmds need_locks \
17712    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17713    lt_cv_sys_global_symbol_to_c_name_address \
17714    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17715    old_postinstall_cmds old_postuninstall_cmds \
17716    compiler_GCJ \
17717    CC_GCJ \
17718    LD_GCJ \
17719    lt_prog_compiler_wl_GCJ \
17720    lt_prog_compiler_pic_GCJ \
17721    lt_prog_compiler_static_GCJ \
17722    lt_prog_compiler_no_builtin_flag_GCJ \
17723    export_dynamic_flag_spec_GCJ \
17724    thread_safe_flag_spec_GCJ \
17725    whole_archive_flag_spec_GCJ \
17726    enable_shared_with_static_runtimes_GCJ \
17727    old_archive_cmds_GCJ \
17728    old_archive_from_new_cmds_GCJ \
17729    predep_objects_GCJ \
17730    postdep_objects_GCJ \
17731    predeps_GCJ \
17732    postdeps_GCJ \
17733    compiler_lib_search_path_GCJ \
17734    archive_cmds_GCJ \
17735    archive_expsym_cmds_GCJ \
17736    postinstall_cmds_GCJ \
17737    postuninstall_cmds_GCJ \
17738    old_archive_from_expsyms_cmds_GCJ \
17739    allow_undefined_flag_GCJ \
17740    no_undefined_flag_GCJ \
17741    export_symbols_cmds_GCJ \
17742    hardcode_libdir_flag_spec_GCJ \
17743    hardcode_libdir_flag_spec_ld_GCJ \
17744    hardcode_libdir_separator_GCJ \
17745    hardcode_automatic_GCJ \
17746    module_cmds_GCJ \
17747    module_expsym_cmds_GCJ \
17748    lt_cv_prog_compiler_c_o_GCJ \
17749    exclude_expsyms_GCJ \
17750    include_expsyms_GCJ; do
17751
17752    case $var in
17753    old_archive_cmds_GCJ | \
17754    old_archive_from_new_cmds_GCJ | \
17755    archive_cmds_GCJ | \
17756    archive_expsym_cmds_GCJ | \
17757    module_cmds_GCJ | \
17758    module_expsym_cmds_GCJ | \
17759    old_archive_from_expsyms_cmds_GCJ | \
17760    export_symbols_cmds_GCJ | \
17761    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17762    postinstall_cmds | postuninstall_cmds | \
17763    old_postinstall_cmds | old_postuninstall_cmds | \
17764    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17765      # Double-quote double-evaled strings.
17766      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17767      ;;
17768    *)
17769      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17770      ;;
17771    esac
17772  done
17773
17774  case $lt_echo in
17775  *'\$0 --fallback-echo"')
17776    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17777    ;;
17778  esac
17779
17780cfgfile="$ofile"
17781
17782  cat <<__EOF__ >> "$cfgfile"
17783# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17784
17785# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17786
17787# Shell to use when invoking shell scripts.
17788SHELL=$lt_SHELL
17789
17790# Whether or not to build shared libraries.
17791build_libtool_libs=$enable_shared
17792
17793# Whether or not to build static libraries.
17794build_old_libs=$enable_static
17795
17796# Whether or not to add -lc for building shared libraries.
17797build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17798
17799# Whether or not to disallow shared libs when runtime libs are static
17800allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17801
17802# Whether or not to optimize for fast installation.
17803fast_install=$enable_fast_install
17804
17805# The host system.
17806host_alias=$host_alias
17807host=$host
17808host_os=$host_os
17809
17810# The build system.
17811build_alias=$build_alias
17812build=$build
17813build_os=$build_os
17814
17815# An echo program that does not interpret backslashes.
17816echo=$lt_echo
17817
17818# The archiver.
17819AR=$lt_AR
17820AR_FLAGS=$lt_AR_FLAGS
17821
17822# A C compiler.
17823LTCC=$lt_LTCC
17824
17825# LTCC compiler flags.
17826LTCFLAGS=$lt_LTCFLAGS
17827
17828# A language-specific compiler.
17829CC=$lt_compiler_GCJ
17830
17831# Is the compiler the GNU C compiler?
17832with_gcc=$GCC_GCJ
17833
17834# An ERE matcher.
17835EGREP=$lt_EGREP
17836
17837# The linker used to build libraries.
17838LD=$lt_LD_GCJ
17839
17840# Whether we need hard or soft links.
17841LN_S=$lt_LN_S
17842
17843# A BSD-compatible nm program.
17844NM=$lt_NM
17845
17846# A symbol stripping program
17847STRIP=$lt_STRIP
17848
17849# Used to examine libraries when file_magic_cmd begins "file"
17850MAGIC_CMD=$MAGIC_CMD
17851
17852# Used on cygwin: DLL creation program.
17853DLLTOOL="$DLLTOOL"
17854
17855# Used on cygwin: object dumper.
17856OBJDUMP="$OBJDUMP"
17857
17858# Used on cygwin: assembler.
17859AS="$AS"
17860
17861# The name of the directory that contains temporary libtool files.
17862objdir=$objdir
17863
17864# How to create reloadable object files.
17865reload_flag=$lt_reload_flag
17866reload_cmds=$lt_reload_cmds
17867
17868# How to pass a linker flag through the compiler.
17869wl=$lt_lt_prog_compiler_wl_GCJ
17870
17871# Object file suffix (normally "o").
17872objext="$ac_objext"
17873
17874# Old archive suffix (normally "a").
17875libext="$libext"
17876
17877# Shared library suffix (normally ".so").
17878shrext_cmds='$shrext_cmds'
17879
17880# Executable file suffix (normally "").
17881exeext="$exeext"
17882
17883# Additional compiler flags for building library objects.
17884pic_flag=$lt_lt_prog_compiler_pic_GCJ
17885pic_mode=$pic_mode
17886
17887# What is the maximum length of a command?
17888max_cmd_len=$lt_cv_sys_max_cmd_len
17889
17890# Does compiler simultaneously support -c and -o options?
17891compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17892
17893# Must we lock files when doing compilation?
17894need_locks=$lt_need_locks
17895
17896# Do we need the lib prefix for modules?
17897need_lib_prefix=$need_lib_prefix
17898
17899# Do we need a version for libraries?
17900need_version=$need_version
17901
17902# Whether dlopen is supported.
17903dlopen_support=$enable_dlopen
17904
17905# Whether dlopen of programs is supported.
17906dlopen_self=$enable_dlopen_self
17907
17908# Whether dlopen of statically linked programs is supported.
17909dlopen_self_static=$enable_dlopen_self_static
17910
17911# Compiler flag to prevent dynamic linking.
17912link_static_flag=$lt_lt_prog_compiler_static_GCJ
17913
17914# Compiler flag to turn off builtin functions.
17915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17916
17917# Compiler flag to allow reflexive dlopens.
17918export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17919
17920# Compiler flag to generate shared objects directly from archives.
17921whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17922
17923# Compiler flag to generate thread-safe objects.
17924thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17925
17926# Library versioning type.
17927version_type=$version_type
17928
17929# Format of library name prefix.
17930libname_spec=$lt_libname_spec
17931
17932# List of archive names.  First name is the real one, the rest are links.
17933# The last name is the one that the linker finds with -lNAME.
17934library_names_spec=$lt_library_names_spec
17935
17936# The coded name of the library, if different from the real name.
17937soname_spec=$lt_soname_spec
17938
17939# Commands used to build and install an old-style archive.
17940RANLIB=$lt_RANLIB
17941old_archive_cmds=$lt_old_archive_cmds_GCJ
17942old_postinstall_cmds=$lt_old_postinstall_cmds
17943old_postuninstall_cmds=$lt_old_postuninstall_cmds
17944
17945# Create an old-style archive from a shared archive.
17946old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17947
17948# Create a temporary old-style archive to link instead of a shared archive.
17949old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17950
17951# Commands used to build and install a shared archive.
17952archive_cmds=$lt_archive_cmds_GCJ
17953archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17954postinstall_cmds=$lt_postinstall_cmds
17955postuninstall_cmds=$lt_postuninstall_cmds
17956
17957# Commands used to build a loadable module (assumed same as above if empty)
17958module_cmds=$lt_module_cmds_GCJ
17959module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17960
17961# Commands to strip libraries.
17962old_striplib=$lt_old_striplib
17963striplib=$lt_striplib
17964
17965# Dependencies to place before the objects being linked to create a
17966# shared library.
17967predep_objects=$lt_predep_objects_GCJ
17968
17969# Dependencies to place after the objects being linked to create a
17970# shared library.
17971postdep_objects=$lt_postdep_objects_GCJ
17972
17973# Dependencies to place before the objects being linked to create a
17974# shared library.
17975predeps=$lt_predeps_GCJ
17976
17977# Dependencies to place after the objects being linked to create a
17978# shared library.
17979postdeps=$lt_postdeps_GCJ
17980
17981# The library search path used internally by the compiler when linking
17982# a shared library.
17983compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17984
17985# Method to check whether dependent libraries are shared objects.
17986deplibs_check_method=$lt_deplibs_check_method
17987
17988# Command to use when deplibs_check_method == file_magic.
17989file_magic_cmd=$lt_file_magic_cmd
17990
17991# Flag that allows shared libraries with undefined symbols to be built.
17992allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17993
17994# Flag that forces no undefined symbols.
17995no_undefined_flag=$lt_no_undefined_flag_GCJ
17996
17997# Commands used to finish a libtool library installation in a directory.
17998finish_cmds=$lt_finish_cmds
17999
18000# Same as above, but a single script fragment to be evaled but not shown.
18001finish_eval=$lt_finish_eval
18002
18003# Take the output of nm and produce a listing of raw symbols and C names.
18004global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18005
18006# Transform the output of nm in a proper C declaration
18007global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18008
18009# Transform the output of nm in a C name address pair
18010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18011
18012# This is the shared library runtime path variable.
18013runpath_var=$runpath_var
18014
18015# This is the shared library path variable.
18016shlibpath_var=$shlibpath_var
18017
18018# Is shlibpath searched before the hard-coded library search path?
18019shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18020
18021# How to hardcode a shared library path into an executable.
18022hardcode_action=$hardcode_action_GCJ
18023
18024# Whether we should hardcode library paths into libraries.
18025hardcode_into_libs=$hardcode_into_libs
18026
18027# Flag to hardcode \$libdir into a binary during linking.
18028# This must work even if \$libdir does not exist.
18029hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18030
18031# If ld is used when linking, flag to hardcode \$libdir into
18032# a binary during linking. This must work even if \$libdir does
18033# not exist.
18034hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18035
18036# Whether we need a single -rpath flag with a separated argument.
18037hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18038
18039# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18040# resulting binary.
18041hardcode_direct=$hardcode_direct_GCJ
18042
18043# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18044# resulting binary.
18045hardcode_minus_L=$hardcode_minus_L_GCJ
18046
18047# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18048# the resulting binary.
18049hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18050
18051# Set to yes if building a shared library automatically hardcodes DIR into the library
18052# and all subsequent libraries and executables linked against it.
18053hardcode_automatic=$hardcode_automatic_GCJ
18054
18055# Variables whose values should be saved in libtool wrapper scripts and
18056# restored at relink time.
18057variables_saved_for_relink="$variables_saved_for_relink"
18058
18059# Whether libtool must link a program against all its dependency libraries.
18060link_all_deplibs=$link_all_deplibs_GCJ
18061
18062# Compile-time system search path for libraries
18063sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18064
18065# Run-time system search path for libraries
18066sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18067
18068# Fix the shell variable \$srcfile for the compiler.
18069fix_srcfile_path="$fix_srcfile_path_GCJ"
18070
18071# Set to yes if exported symbols are required.
18072always_export_symbols=$always_export_symbols_GCJ
18073
18074# The commands to list exported symbols.
18075export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18076
18077# The commands to extract the exported symbol list from a shared archive.
18078extract_expsyms_cmds=$lt_extract_expsyms_cmds
18079
18080# Symbols that should not be listed in the preloaded symbols.
18081exclude_expsyms=$lt_exclude_expsyms_GCJ
18082
18083# Symbols that must always be exported.
18084include_expsyms=$lt_include_expsyms_GCJ
18085
18086# ### END LIBTOOL TAG CONFIG: $tagname
18087
18088__EOF__
18089
18090
18091else
18092  # If there is no Makefile yet, we rely on a make rule to execute
18093  # `config.status --recheck' to rerun these tests and create the
18094  # libtool script then.
18095  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18096  if test -f "$ltmain_in"; then
18097    test -f Makefile && make "$ltmain"
18098  fi
18099fi
18100
18101
18102ac_ext=c
18103ac_cpp='$CPP $CPPFLAGS'
18104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18106ac_compiler_gnu=$ac_cv_c_compiler_gnu
18107
18108CC="$lt_save_CC"
18109
18110	else
18111	  tagname=""
18112	fi
18113	;;
18114
18115      RC)
18116
18117
18118
18119# Source file extension for RC test sources.
18120ac_ext=rc
18121
18122# Object file extension for compiled RC test sources.
18123objext=o
18124objext_RC=$objext
18125
18126# Code to be used in simple compile tests
18127lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18128
18129# Code to be used in simple link tests
18130lt_simple_link_test_code="$lt_simple_compile_test_code"
18131
18132# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18133
18134# If no C compiler was specified, use CC.
18135LTCC=${LTCC-"$CC"}
18136
18137# If no C compiler flags were specified, use CFLAGS.
18138LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18139
18140# Allow CC to be a program name with arguments.
18141compiler=$CC
18142
18143
18144# save warnings/boilerplate of simple test code
18145ac_outfile=conftest.$ac_objext
18146printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18147eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18148_lt_compiler_boilerplate=`cat conftest.err`
18149$rm conftest*
18150
18151ac_outfile=conftest.$ac_objext
18152printf "$lt_simple_link_test_code" >conftest.$ac_ext
18153eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18154_lt_linker_boilerplate=`cat conftest.err`
18155$rm conftest*
18156
18157
18158# Allow CC to be a program name with arguments.
18159lt_save_CC="$CC"
18160CC=${RC-"windres"}
18161compiler=$CC
18162compiler_RC=$CC
18163for cc_temp in $compiler""; do
18164  case $cc_temp in
18165    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18166    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18167    \-*) ;;
18168    *) break;;
18169  esac
18170done
18171cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18172
18173lt_cv_prog_compiler_c_o_RC=yes
18174
18175# The else clause should only fire when bootstrapping the
18176# libtool distribution, otherwise you forgot to ship ltmain.sh
18177# with your package, and you will get complaints that there are
18178# no rules to generate ltmain.sh.
18179if test -f "$ltmain"; then
18180  # See if we are running on zsh, and set the options which allow our commands through
18181  # without removal of \ escapes.
18182  if test -n "${ZSH_VERSION+set}" ; then
18183    setopt NO_GLOB_SUBST
18184  fi
18185  # Now quote all the things that may contain metacharacters while being
18186  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18187  # variables and quote the copies for generation of the libtool script.
18188  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18189    SED SHELL STRIP \
18190    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18191    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18192    deplibs_check_method reload_flag reload_cmds need_locks \
18193    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18194    lt_cv_sys_global_symbol_to_c_name_address \
18195    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18196    old_postinstall_cmds old_postuninstall_cmds \
18197    compiler_RC \
18198    CC_RC \
18199    LD_RC \
18200    lt_prog_compiler_wl_RC \
18201    lt_prog_compiler_pic_RC \
18202    lt_prog_compiler_static_RC \
18203    lt_prog_compiler_no_builtin_flag_RC \
18204    export_dynamic_flag_spec_RC \
18205    thread_safe_flag_spec_RC \
18206    whole_archive_flag_spec_RC \
18207    enable_shared_with_static_runtimes_RC \
18208    old_archive_cmds_RC \
18209    old_archive_from_new_cmds_RC \
18210    predep_objects_RC \
18211    postdep_objects_RC \
18212    predeps_RC \
18213    postdeps_RC \
18214    compiler_lib_search_path_RC \
18215    archive_cmds_RC \
18216    archive_expsym_cmds_RC \
18217    postinstall_cmds_RC \
18218    postuninstall_cmds_RC \
18219    old_archive_from_expsyms_cmds_RC \
18220    allow_undefined_flag_RC \
18221    no_undefined_flag_RC \
18222    export_symbols_cmds_RC \
18223    hardcode_libdir_flag_spec_RC \
18224    hardcode_libdir_flag_spec_ld_RC \
18225    hardcode_libdir_separator_RC \
18226    hardcode_automatic_RC \
18227    module_cmds_RC \
18228    module_expsym_cmds_RC \
18229    lt_cv_prog_compiler_c_o_RC \
18230    exclude_expsyms_RC \
18231    include_expsyms_RC; do
18232
18233    case $var in
18234    old_archive_cmds_RC | \
18235    old_archive_from_new_cmds_RC | \
18236    archive_cmds_RC | \
18237    archive_expsym_cmds_RC | \
18238    module_cmds_RC | \
18239    module_expsym_cmds_RC | \
18240    old_archive_from_expsyms_cmds_RC | \
18241    export_symbols_cmds_RC | \
18242    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18243    postinstall_cmds | postuninstall_cmds | \
18244    old_postinstall_cmds | old_postuninstall_cmds | \
18245    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18246      # Double-quote double-evaled strings.
18247      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18248      ;;
18249    *)
18250      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18251      ;;
18252    esac
18253  done
18254
18255  case $lt_echo in
18256  *'\$0 --fallback-echo"')
18257    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18258    ;;
18259  esac
18260
18261cfgfile="$ofile"
18262
18263  cat <<__EOF__ >> "$cfgfile"
18264# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18265
18266# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18267
18268# Shell to use when invoking shell scripts.
18269SHELL=$lt_SHELL
18270
18271# Whether or not to build shared libraries.
18272build_libtool_libs=$enable_shared
18273
18274# Whether or not to build static libraries.
18275build_old_libs=$enable_static
18276
18277# Whether or not to add -lc for building shared libraries.
18278build_libtool_need_lc=$archive_cmds_need_lc_RC
18279
18280# Whether or not to disallow shared libs when runtime libs are static
18281allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18282
18283# Whether or not to optimize for fast installation.
18284fast_install=$enable_fast_install
18285
18286# The host system.
18287host_alias=$host_alias
18288host=$host
18289host_os=$host_os
18290
18291# The build system.
18292build_alias=$build_alias
18293build=$build
18294build_os=$build_os
18295
18296# An echo program that does not interpret backslashes.
18297echo=$lt_echo
18298
18299# The archiver.
18300AR=$lt_AR
18301AR_FLAGS=$lt_AR_FLAGS
18302
18303# A C compiler.
18304LTCC=$lt_LTCC
18305
18306# LTCC compiler flags.
18307LTCFLAGS=$lt_LTCFLAGS
18308
18309# A language-specific compiler.
18310CC=$lt_compiler_RC
18311
18312# Is the compiler the GNU C compiler?
18313with_gcc=$GCC_RC
18314
18315# An ERE matcher.
18316EGREP=$lt_EGREP
18317
18318# The linker used to build libraries.
18319LD=$lt_LD_RC
18320
18321# Whether we need hard or soft links.
18322LN_S=$lt_LN_S
18323
18324# A BSD-compatible nm program.
18325NM=$lt_NM
18326
18327# A symbol stripping program
18328STRIP=$lt_STRIP
18329
18330# Used to examine libraries when file_magic_cmd begins "file"
18331MAGIC_CMD=$MAGIC_CMD
18332
18333# Used on cygwin: DLL creation program.
18334DLLTOOL="$DLLTOOL"
18335
18336# Used on cygwin: object dumper.
18337OBJDUMP="$OBJDUMP"
18338
18339# Used on cygwin: assembler.
18340AS="$AS"
18341
18342# The name of the directory that contains temporary libtool files.
18343objdir=$objdir
18344
18345# How to create reloadable object files.
18346reload_flag=$lt_reload_flag
18347reload_cmds=$lt_reload_cmds
18348
18349# How to pass a linker flag through the compiler.
18350wl=$lt_lt_prog_compiler_wl_RC
18351
18352# Object file suffix (normally "o").
18353objext="$ac_objext"
18354
18355# Old archive suffix (normally "a").
18356libext="$libext"
18357
18358# Shared library suffix (normally ".so").
18359shrext_cmds='$shrext_cmds'
18360
18361# Executable file suffix (normally "").
18362exeext="$exeext"
18363
18364# Additional compiler flags for building library objects.
18365pic_flag=$lt_lt_prog_compiler_pic_RC
18366pic_mode=$pic_mode
18367
18368# What is the maximum length of a command?
18369max_cmd_len=$lt_cv_sys_max_cmd_len
18370
18371# Does compiler simultaneously support -c and -o options?
18372compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18373
18374# Must we lock files when doing compilation?
18375need_locks=$lt_need_locks
18376
18377# Do we need the lib prefix for modules?
18378need_lib_prefix=$need_lib_prefix
18379
18380# Do we need a version for libraries?
18381need_version=$need_version
18382
18383# Whether dlopen is supported.
18384dlopen_support=$enable_dlopen
18385
18386# Whether dlopen of programs is supported.
18387dlopen_self=$enable_dlopen_self
18388
18389# Whether dlopen of statically linked programs is supported.
18390dlopen_self_static=$enable_dlopen_self_static
18391
18392# Compiler flag to prevent dynamic linking.
18393link_static_flag=$lt_lt_prog_compiler_static_RC
18394
18395# Compiler flag to turn off builtin functions.
18396no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18397
18398# Compiler flag to allow reflexive dlopens.
18399export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18400
18401# Compiler flag to generate shared objects directly from archives.
18402whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18403
18404# Compiler flag to generate thread-safe objects.
18405thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18406
18407# Library versioning type.
18408version_type=$version_type
18409
18410# Format of library name prefix.
18411libname_spec=$lt_libname_spec
18412
18413# List of archive names.  First name is the real one, the rest are links.
18414# The last name is the one that the linker finds with -lNAME.
18415library_names_spec=$lt_library_names_spec
18416
18417# The coded name of the library, if different from the real name.
18418soname_spec=$lt_soname_spec
18419
18420# Commands used to build and install an old-style archive.
18421RANLIB=$lt_RANLIB
18422old_archive_cmds=$lt_old_archive_cmds_RC
18423old_postinstall_cmds=$lt_old_postinstall_cmds
18424old_postuninstall_cmds=$lt_old_postuninstall_cmds
18425
18426# Create an old-style archive from a shared archive.
18427old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18428
18429# Create a temporary old-style archive to link instead of a shared archive.
18430old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18431
18432# Commands used to build and install a shared archive.
18433archive_cmds=$lt_archive_cmds_RC
18434archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18435postinstall_cmds=$lt_postinstall_cmds
18436postuninstall_cmds=$lt_postuninstall_cmds
18437
18438# Commands used to build a loadable module (assumed same as above if empty)
18439module_cmds=$lt_module_cmds_RC
18440module_expsym_cmds=$lt_module_expsym_cmds_RC
18441
18442# Commands to strip libraries.
18443old_striplib=$lt_old_striplib
18444striplib=$lt_striplib
18445
18446# Dependencies to place before the objects being linked to create a
18447# shared library.
18448predep_objects=$lt_predep_objects_RC
18449
18450# Dependencies to place after the objects being linked to create a
18451# shared library.
18452postdep_objects=$lt_postdep_objects_RC
18453
18454# Dependencies to place before the objects being linked to create a
18455# shared library.
18456predeps=$lt_predeps_RC
18457
18458# Dependencies to place after the objects being linked to create a
18459# shared library.
18460postdeps=$lt_postdeps_RC
18461
18462# The library search path used internally by the compiler when linking
18463# a shared library.
18464compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18465
18466# Method to check whether dependent libraries are shared objects.
18467deplibs_check_method=$lt_deplibs_check_method
18468
18469# Command to use when deplibs_check_method == file_magic.
18470file_magic_cmd=$lt_file_magic_cmd
18471
18472# Flag that allows shared libraries with undefined symbols to be built.
18473allow_undefined_flag=$lt_allow_undefined_flag_RC
18474
18475# Flag that forces no undefined symbols.
18476no_undefined_flag=$lt_no_undefined_flag_RC
18477
18478# Commands used to finish a libtool library installation in a directory.
18479finish_cmds=$lt_finish_cmds
18480
18481# Same as above, but a single script fragment to be evaled but not shown.
18482finish_eval=$lt_finish_eval
18483
18484# Take the output of nm and produce a listing of raw symbols and C names.
18485global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18486
18487# Transform the output of nm in a proper C declaration
18488global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18489
18490# Transform the output of nm in a C name address pair
18491global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18492
18493# This is the shared library runtime path variable.
18494runpath_var=$runpath_var
18495
18496# This is the shared library path variable.
18497shlibpath_var=$shlibpath_var
18498
18499# Is shlibpath searched before the hard-coded library search path?
18500shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18501
18502# How to hardcode a shared library path into an executable.
18503hardcode_action=$hardcode_action_RC
18504
18505# Whether we should hardcode library paths into libraries.
18506hardcode_into_libs=$hardcode_into_libs
18507
18508# Flag to hardcode \$libdir into a binary during linking.
18509# This must work even if \$libdir does not exist.
18510hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18511
18512# If ld is used when linking, flag to hardcode \$libdir into
18513# a binary during linking. This must work even if \$libdir does
18514# not exist.
18515hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18516
18517# Whether we need a single -rpath flag with a separated argument.
18518hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18519
18520# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18521# resulting binary.
18522hardcode_direct=$hardcode_direct_RC
18523
18524# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18525# resulting binary.
18526hardcode_minus_L=$hardcode_minus_L_RC
18527
18528# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18529# the resulting binary.
18530hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18531
18532# Set to yes if building a shared library automatically hardcodes DIR into the library
18533# and all subsequent libraries and executables linked against it.
18534hardcode_automatic=$hardcode_automatic_RC
18535
18536# Variables whose values should be saved in libtool wrapper scripts and
18537# restored at relink time.
18538variables_saved_for_relink="$variables_saved_for_relink"
18539
18540# Whether libtool must link a program against all its dependency libraries.
18541link_all_deplibs=$link_all_deplibs_RC
18542
18543# Compile-time system search path for libraries
18544sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18545
18546# Run-time system search path for libraries
18547sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18548
18549# Fix the shell variable \$srcfile for the compiler.
18550fix_srcfile_path="$fix_srcfile_path_RC"
18551
18552# Set to yes if exported symbols are required.
18553always_export_symbols=$always_export_symbols_RC
18554
18555# The commands to list exported symbols.
18556export_symbols_cmds=$lt_export_symbols_cmds_RC
18557
18558# The commands to extract the exported symbol list from a shared archive.
18559extract_expsyms_cmds=$lt_extract_expsyms_cmds
18560
18561# Symbols that should not be listed in the preloaded symbols.
18562exclude_expsyms=$lt_exclude_expsyms_RC
18563
18564# Symbols that must always be exported.
18565include_expsyms=$lt_include_expsyms_RC
18566
18567# ### END LIBTOOL TAG CONFIG: $tagname
18568
18569__EOF__
18570
18571
18572else
18573  # If there is no Makefile yet, we rely on a make rule to execute
18574  # `config.status --recheck' to rerun these tests and create the
18575  # libtool script then.
18576  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18577  if test -f "$ltmain_in"; then
18578    test -f Makefile && make "$ltmain"
18579  fi
18580fi
18581
18582
18583ac_ext=c
18584ac_cpp='$CPP $CPPFLAGS'
18585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18587ac_compiler_gnu=$ac_cv_c_compiler_gnu
18588
18589CC="$lt_save_CC"
18590
18591	;;
18592
18593      *)
18594	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18595echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18596   { (exit 1); exit 1; }; }
18597	;;
18598      esac
18599
18600      # Append the new tag name to the list of available tags.
18601      if test -n "$tagname" ; then
18602      available_tags="$available_tags $tagname"
18603    fi
18604    fi
18605  done
18606  IFS="$lt_save_ifs"
18607
18608  # Now substitute the updated list of available tags.
18609  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18610    mv "${ofile}T" "$ofile"
18611    chmod +x "$ofile"
18612  else
18613    rm -f "${ofile}T"
18614    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18615echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18616   { (exit 1); exit 1; }; }
18617  fi
18618fi
18619
18620
18621
18622# This can be used to rebuild libtool when needed
18623LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18624
18625# Always use our own libtool.
18626LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18627
18628# Prevent multiple expansion
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649ac_ext=c
18650ac_cpp='$CPP $CPPFLAGS'
18651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18653ac_compiler_gnu=$ac_cv_c_compiler_gnu
18654if test -n "$ac_tool_prefix"; then
18655  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18656set dummy ${ac_tool_prefix}gcc; ac_word=$2
18657echo "$as_me:$LINENO: checking for $ac_word" >&5
18658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18659if test "${ac_cv_prog_CC+set}" = set; then
18660  echo $ECHO_N "(cached) $ECHO_C" >&6
18661else
18662  if test -n "$CC"; then
18663  ac_cv_prog_CC="$CC" # Let the user override the test.
18664else
18665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666for as_dir in $PATH
18667do
18668  IFS=$as_save_IFS
18669  test -z "$as_dir" && as_dir=.
18670  for ac_exec_ext in '' $ac_executable_extensions; do
18671  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18672    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18674    break 2
18675  fi
18676done
18677done
18678
18679fi
18680fi
18681CC=$ac_cv_prog_CC
18682if test -n "$CC"; then
18683  echo "$as_me:$LINENO: result: $CC" >&5
18684echo "${ECHO_T}$CC" >&6
18685else
18686  echo "$as_me:$LINENO: result: no" >&5
18687echo "${ECHO_T}no" >&6
18688fi
18689
18690fi
18691if test -z "$ac_cv_prog_CC"; then
18692  ac_ct_CC=$CC
18693  # Extract the first word of "gcc", so it can be a program name with args.
18694set dummy gcc; ac_word=$2
18695echo "$as_me:$LINENO: checking for $ac_word" >&5
18696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18698  echo $ECHO_N "(cached) $ECHO_C" >&6
18699else
18700  if test -n "$ac_ct_CC"; then
18701  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18702else
18703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18704for as_dir in $PATH
18705do
18706  IFS=$as_save_IFS
18707  test -z "$as_dir" && as_dir=.
18708  for ac_exec_ext in '' $ac_executable_extensions; do
18709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18710    ac_cv_prog_ac_ct_CC="gcc"
18711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18712    break 2
18713  fi
18714done
18715done
18716
18717fi
18718fi
18719ac_ct_CC=$ac_cv_prog_ac_ct_CC
18720if test -n "$ac_ct_CC"; then
18721  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18722echo "${ECHO_T}$ac_ct_CC" >&6
18723else
18724  echo "$as_me:$LINENO: result: no" >&5
18725echo "${ECHO_T}no" >&6
18726fi
18727
18728  CC=$ac_ct_CC
18729else
18730  CC="$ac_cv_prog_CC"
18731fi
18732
18733if test -z "$CC"; then
18734  if test -n "$ac_tool_prefix"; then
18735  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18736set dummy ${ac_tool_prefix}cc; ac_word=$2
18737echo "$as_me:$LINENO: checking for $ac_word" >&5
18738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18739if test "${ac_cv_prog_CC+set}" = set; then
18740  echo $ECHO_N "(cached) $ECHO_C" >&6
18741else
18742  if test -n "$CC"; then
18743  ac_cv_prog_CC="$CC" # Let the user override the test.
18744else
18745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18746for as_dir in $PATH
18747do
18748  IFS=$as_save_IFS
18749  test -z "$as_dir" && as_dir=.
18750  for ac_exec_ext in '' $ac_executable_extensions; do
18751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18752    ac_cv_prog_CC="${ac_tool_prefix}cc"
18753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18754    break 2
18755  fi
18756done
18757done
18758
18759fi
18760fi
18761CC=$ac_cv_prog_CC
18762if test -n "$CC"; then
18763  echo "$as_me:$LINENO: result: $CC" >&5
18764echo "${ECHO_T}$CC" >&6
18765else
18766  echo "$as_me:$LINENO: result: no" >&5
18767echo "${ECHO_T}no" >&6
18768fi
18769
18770fi
18771if test -z "$ac_cv_prog_CC"; then
18772  ac_ct_CC=$CC
18773  # Extract the first word of "cc", so it can be a program name with args.
18774set dummy cc; ac_word=$2
18775echo "$as_me:$LINENO: checking for $ac_word" >&5
18776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18777if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18778  echo $ECHO_N "(cached) $ECHO_C" >&6
18779else
18780  if test -n "$ac_ct_CC"; then
18781  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18782else
18783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18784for as_dir in $PATH
18785do
18786  IFS=$as_save_IFS
18787  test -z "$as_dir" && as_dir=.
18788  for ac_exec_ext in '' $ac_executable_extensions; do
18789  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18790    ac_cv_prog_ac_ct_CC="cc"
18791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18792    break 2
18793  fi
18794done
18795done
18796
18797fi
18798fi
18799ac_ct_CC=$ac_cv_prog_ac_ct_CC
18800if test -n "$ac_ct_CC"; then
18801  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18802echo "${ECHO_T}$ac_ct_CC" >&6
18803else
18804  echo "$as_me:$LINENO: result: no" >&5
18805echo "${ECHO_T}no" >&6
18806fi
18807
18808  CC=$ac_ct_CC
18809else
18810  CC="$ac_cv_prog_CC"
18811fi
18812
18813fi
18814if test -z "$CC"; then
18815  # Extract the first word of "cc", so it can be a program name with args.
18816set dummy cc; ac_word=$2
18817echo "$as_me:$LINENO: checking for $ac_word" >&5
18818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18819if test "${ac_cv_prog_CC+set}" = set; then
18820  echo $ECHO_N "(cached) $ECHO_C" >&6
18821else
18822  if test -n "$CC"; then
18823  ac_cv_prog_CC="$CC" # Let the user override the test.
18824else
18825  ac_prog_rejected=no
18826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18827for as_dir in $PATH
18828do
18829  IFS=$as_save_IFS
18830  test -z "$as_dir" && as_dir=.
18831  for ac_exec_ext in '' $ac_executable_extensions; do
18832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18833    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18834       ac_prog_rejected=yes
18835       continue
18836     fi
18837    ac_cv_prog_CC="cc"
18838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18839    break 2
18840  fi
18841done
18842done
18843
18844if test $ac_prog_rejected = yes; then
18845  # We found a bogon in the path, so make sure we never use it.
18846  set dummy $ac_cv_prog_CC
18847  shift
18848  if test $# != 0; then
18849    # We chose a different compiler from the bogus one.
18850    # However, it has the same basename, so the bogon will be chosen
18851    # first if we set CC to just the basename; use the full file name.
18852    shift
18853    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18854  fi
18855fi
18856fi
18857fi
18858CC=$ac_cv_prog_CC
18859if test -n "$CC"; then
18860  echo "$as_me:$LINENO: result: $CC" >&5
18861echo "${ECHO_T}$CC" >&6
18862else
18863  echo "$as_me:$LINENO: result: no" >&5
18864echo "${ECHO_T}no" >&6
18865fi
18866
18867fi
18868if test -z "$CC"; then
18869  if test -n "$ac_tool_prefix"; then
18870  for ac_prog in cl
18871  do
18872    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18873set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18874echo "$as_me:$LINENO: checking for $ac_word" >&5
18875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18876if test "${ac_cv_prog_CC+set}" = set; then
18877  echo $ECHO_N "(cached) $ECHO_C" >&6
18878else
18879  if test -n "$CC"; then
18880  ac_cv_prog_CC="$CC" # Let the user override the test.
18881else
18882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18883for as_dir in $PATH
18884do
18885  IFS=$as_save_IFS
18886  test -z "$as_dir" && as_dir=.
18887  for ac_exec_ext in '' $ac_executable_extensions; do
18888  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18889    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18891    break 2
18892  fi
18893done
18894done
18895
18896fi
18897fi
18898CC=$ac_cv_prog_CC
18899if test -n "$CC"; then
18900  echo "$as_me:$LINENO: result: $CC" >&5
18901echo "${ECHO_T}$CC" >&6
18902else
18903  echo "$as_me:$LINENO: result: no" >&5
18904echo "${ECHO_T}no" >&6
18905fi
18906
18907    test -n "$CC" && break
18908  done
18909fi
18910if test -z "$CC"; then
18911  ac_ct_CC=$CC
18912  for ac_prog in cl
18913do
18914  # Extract the first word of "$ac_prog", so it can be a program name with args.
18915set dummy $ac_prog; ac_word=$2
18916echo "$as_me:$LINENO: checking for $ac_word" >&5
18917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18918if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18919  echo $ECHO_N "(cached) $ECHO_C" >&6
18920else
18921  if test -n "$ac_ct_CC"; then
18922  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18923else
18924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18925for as_dir in $PATH
18926do
18927  IFS=$as_save_IFS
18928  test -z "$as_dir" && as_dir=.
18929  for ac_exec_ext in '' $ac_executable_extensions; do
18930  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18931    ac_cv_prog_ac_ct_CC="$ac_prog"
18932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18933    break 2
18934  fi
18935done
18936done
18937
18938fi
18939fi
18940ac_ct_CC=$ac_cv_prog_ac_ct_CC
18941if test -n "$ac_ct_CC"; then
18942  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18943echo "${ECHO_T}$ac_ct_CC" >&6
18944else
18945  echo "$as_me:$LINENO: result: no" >&5
18946echo "${ECHO_T}no" >&6
18947fi
18948
18949  test -n "$ac_ct_CC" && break
18950done
18951
18952  CC=$ac_ct_CC
18953fi
18954
18955fi
18956
18957
18958test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18959See \`config.log' for more details." >&5
18960echo "$as_me: error: no acceptable C compiler found in \$PATH
18961See \`config.log' for more details." >&2;}
18962   { (exit 1); exit 1; }; }
18963
18964# Provide some information about the compiler.
18965echo "$as_me:$LINENO:" \
18966     "checking for C compiler version" >&5
18967ac_compiler=`set X $ac_compile; echo $2`
18968{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18969  (eval $ac_compiler --version </dev/null >&5) 2>&5
18970  ac_status=$?
18971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972  (exit $ac_status); }
18973{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18974  (eval $ac_compiler -v </dev/null >&5) 2>&5
18975  ac_status=$?
18976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977  (exit $ac_status); }
18978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18979  (eval $ac_compiler -V </dev/null >&5) 2>&5
18980  ac_status=$?
18981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982  (exit $ac_status); }
18983
18984echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
18985echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
18986if test "${ac_cv_c_compiler_gnu+set}" = set; then
18987  echo $ECHO_N "(cached) $ECHO_C" >&6
18988else
18989  cat >conftest.$ac_ext <<_ACEOF
18990/* confdefs.h.  */
18991_ACEOF
18992cat confdefs.h >>conftest.$ac_ext
18993cat >>conftest.$ac_ext <<_ACEOF
18994/* end confdefs.h.  */
18995
18996int
18997main ()
18998{
18999#ifndef __GNUC__
19000       choke me
19001#endif
19002
19003  ;
19004  return 0;
19005}
19006_ACEOF
19007rm -f conftest.$ac_objext
19008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19009  (eval $ac_compile) 2>conftest.er1
19010  ac_status=$?
19011  grep -v '^ *+' conftest.er1 >conftest.err
19012  rm -f conftest.er1
19013  cat conftest.err >&5
19014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015  (exit $ac_status); } &&
19016	 { ac_try='test -z "$ac_c_werror_flag"
19017			 || test ! -s conftest.err'
19018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019  (eval $ac_try) 2>&5
19020  ac_status=$?
19021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022  (exit $ac_status); }; } &&
19023	 { ac_try='test -s conftest.$ac_objext'
19024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025  (eval $ac_try) 2>&5
19026  ac_status=$?
19027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028  (exit $ac_status); }; }; then
19029  ac_compiler_gnu=yes
19030else
19031  echo "$as_me: failed program was:" >&5
19032sed 's/^/| /' conftest.$ac_ext >&5
19033
19034ac_compiler_gnu=no
19035fi
19036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19037ac_cv_c_compiler_gnu=$ac_compiler_gnu
19038
19039fi
19040echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19041echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19042GCC=`test $ac_compiler_gnu = yes && echo yes`
19043ac_test_CFLAGS=${CFLAGS+set}
19044ac_save_CFLAGS=$CFLAGS
19045CFLAGS="-g"
19046echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19047echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19048if test "${ac_cv_prog_cc_g+set}" = set; then
19049  echo $ECHO_N "(cached) $ECHO_C" >&6
19050else
19051  cat >conftest.$ac_ext <<_ACEOF
19052/* confdefs.h.  */
19053_ACEOF
19054cat confdefs.h >>conftest.$ac_ext
19055cat >>conftest.$ac_ext <<_ACEOF
19056/* end confdefs.h.  */
19057
19058int
19059main ()
19060{
19061
19062  ;
19063  return 0;
19064}
19065_ACEOF
19066rm -f conftest.$ac_objext
19067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19068  (eval $ac_compile) 2>conftest.er1
19069  ac_status=$?
19070  grep -v '^ *+' conftest.er1 >conftest.err
19071  rm -f conftest.er1
19072  cat conftest.err >&5
19073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074  (exit $ac_status); } &&
19075	 { ac_try='test -z "$ac_c_werror_flag"
19076			 || test ! -s conftest.err'
19077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078  (eval $ac_try) 2>&5
19079  ac_status=$?
19080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081  (exit $ac_status); }; } &&
19082	 { ac_try='test -s conftest.$ac_objext'
19083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084  (eval $ac_try) 2>&5
19085  ac_status=$?
19086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087  (exit $ac_status); }; }; then
19088  ac_cv_prog_cc_g=yes
19089else
19090  echo "$as_me: failed program was:" >&5
19091sed 's/^/| /' conftest.$ac_ext >&5
19092
19093ac_cv_prog_cc_g=no
19094fi
19095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19096fi
19097echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19098echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19099if test "$ac_test_CFLAGS" = set; then
19100  CFLAGS=$ac_save_CFLAGS
19101elif test $ac_cv_prog_cc_g = yes; then
19102  if test "$GCC" = yes; then
19103    CFLAGS="-g -O2"
19104  else
19105    CFLAGS="-g"
19106  fi
19107else
19108  if test "$GCC" = yes; then
19109    CFLAGS="-O2"
19110  else
19111    CFLAGS=
19112  fi
19113fi
19114echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19115echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19116if test "${ac_cv_prog_cc_stdc+set}" = set; then
19117  echo $ECHO_N "(cached) $ECHO_C" >&6
19118else
19119  ac_cv_prog_cc_stdc=no
19120ac_save_CC=$CC
19121cat >conftest.$ac_ext <<_ACEOF
19122/* confdefs.h.  */
19123_ACEOF
19124cat confdefs.h >>conftest.$ac_ext
19125cat >>conftest.$ac_ext <<_ACEOF
19126/* end confdefs.h.  */
19127#include <stdarg.h>
19128#include <stdio.h>
19129#include <sys/types.h>
19130#include <sys/stat.h>
19131/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19132struct buf { int x; };
19133FILE * (*rcsopen) (struct buf *, struct stat *, int);
19134static char *e (p, i)
19135     char **p;
19136     int i;
19137{
19138  return p[i];
19139}
19140static char *f (char * (*g) (char **, int), char **p, ...)
19141{
19142  char *s;
19143  va_list v;
19144  va_start (v,p);
19145  s = g (p, va_arg (v,int));
19146  va_end (v);
19147  return s;
19148}
19149
19150/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19151   function prototypes and stuff, but not '\xHH' hex character constants.
19152   These don't provoke an error unfortunately, instead are silently treated
19153   as 'x'.  The following induces an error, until -std1 is added to get
19154   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19155   array size at least.  It's necessary to write '\x00'==0 to get something
19156   that's true only with -std1.  */
19157int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19158
19159int test (int i, double x);
19160struct s1 {int (*f) (int a);};
19161struct s2 {int (*f) (double a);};
19162int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19163int argc;
19164char **argv;
19165int
19166main ()
19167{
19168return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19169  ;
19170  return 0;
19171}
19172_ACEOF
19173# Don't try gcc -ansi; that turns off useful extensions and
19174# breaks some systems' header files.
19175# AIX			-qlanglvl=ansi
19176# Ultrix and OSF/1	-std1
19177# HP-UX 10.20 and later	-Ae
19178# HP-UX older versions	-Aa -D_HPUX_SOURCE
19179# SVR4			-Xc -D__EXTENSIONS__
19180for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19181do
19182  CC="$ac_save_CC $ac_arg"
19183  rm -f conftest.$ac_objext
19184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19185  (eval $ac_compile) 2>conftest.er1
19186  ac_status=$?
19187  grep -v '^ *+' conftest.er1 >conftest.err
19188  rm -f conftest.er1
19189  cat conftest.err >&5
19190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191  (exit $ac_status); } &&
19192	 { ac_try='test -z "$ac_c_werror_flag"
19193			 || test ! -s conftest.err'
19194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195  (eval $ac_try) 2>&5
19196  ac_status=$?
19197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198  (exit $ac_status); }; } &&
19199	 { ac_try='test -s conftest.$ac_objext'
19200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201  (eval $ac_try) 2>&5
19202  ac_status=$?
19203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204  (exit $ac_status); }; }; then
19205  ac_cv_prog_cc_stdc=$ac_arg
19206break
19207else
19208  echo "$as_me: failed program was:" >&5
19209sed 's/^/| /' conftest.$ac_ext >&5
19210
19211fi
19212rm -f conftest.err conftest.$ac_objext
19213done
19214rm -f conftest.$ac_ext conftest.$ac_objext
19215CC=$ac_save_CC
19216
19217fi
19218
19219case "x$ac_cv_prog_cc_stdc" in
19220  x|xno)
19221    echo "$as_me:$LINENO: result: none needed" >&5
19222echo "${ECHO_T}none needed" >&6 ;;
19223  *)
19224    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19225echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19226    CC="$CC $ac_cv_prog_cc_stdc" ;;
19227esac
19228
19229# Some people use a C++ compiler to compile C.  Since we use `exit',
19230# in C++ we need to declare it.  In case someone uses the same compiler
19231# for both compiling C and C++ we need to have the C++ compiler decide
19232# the declaration of exit, since it's the most demanding environment.
19233cat >conftest.$ac_ext <<_ACEOF
19234#ifndef __cplusplus
19235  choke me
19236#endif
19237_ACEOF
19238rm -f conftest.$ac_objext
19239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240  (eval $ac_compile) 2>conftest.er1
19241  ac_status=$?
19242  grep -v '^ *+' conftest.er1 >conftest.err
19243  rm -f conftest.er1
19244  cat conftest.err >&5
19245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246  (exit $ac_status); } &&
19247	 { ac_try='test -z "$ac_c_werror_flag"
19248			 || test ! -s conftest.err'
19249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250  (eval $ac_try) 2>&5
19251  ac_status=$?
19252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253  (exit $ac_status); }; } &&
19254	 { ac_try='test -s conftest.$ac_objext'
19255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256  (eval $ac_try) 2>&5
19257  ac_status=$?
19258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259  (exit $ac_status); }; }; then
19260  for ac_declaration in \
19261   '' \
19262   'extern "C" void std::exit (int) throw (); using std::exit;' \
19263   'extern "C" void std::exit (int); using std::exit;' \
19264   'extern "C" void exit (int) throw ();' \
19265   'extern "C" void exit (int);' \
19266   'void exit (int);'
19267do
19268  cat >conftest.$ac_ext <<_ACEOF
19269/* confdefs.h.  */
19270_ACEOF
19271cat confdefs.h >>conftest.$ac_ext
19272cat >>conftest.$ac_ext <<_ACEOF
19273/* end confdefs.h.  */
19274$ac_declaration
19275#include <stdlib.h>
19276int
19277main ()
19278{
19279exit (42);
19280  ;
19281  return 0;
19282}
19283_ACEOF
19284rm -f conftest.$ac_objext
19285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19286  (eval $ac_compile) 2>conftest.er1
19287  ac_status=$?
19288  grep -v '^ *+' conftest.er1 >conftest.err
19289  rm -f conftest.er1
19290  cat conftest.err >&5
19291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292  (exit $ac_status); } &&
19293	 { ac_try='test -z "$ac_c_werror_flag"
19294			 || test ! -s conftest.err'
19295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296  (eval $ac_try) 2>&5
19297  ac_status=$?
19298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299  (exit $ac_status); }; } &&
19300	 { ac_try='test -s conftest.$ac_objext'
19301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302  (eval $ac_try) 2>&5
19303  ac_status=$?
19304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305  (exit $ac_status); }; }; then
19306  :
19307else
19308  echo "$as_me: failed program was:" >&5
19309sed 's/^/| /' conftest.$ac_ext >&5
19310
19311continue
19312fi
19313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19314  cat >conftest.$ac_ext <<_ACEOF
19315/* confdefs.h.  */
19316_ACEOF
19317cat confdefs.h >>conftest.$ac_ext
19318cat >>conftest.$ac_ext <<_ACEOF
19319/* end confdefs.h.  */
19320$ac_declaration
19321int
19322main ()
19323{
19324exit (42);
19325  ;
19326  return 0;
19327}
19328_ACEOF
19329rm -f conftest.$ac_objext
19330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19331  (eval $ac_compile) 2>conftest.er1
19332  ac_status=$?
19333  grep -v '^ *+' conftest.er1 >conftest.err
19334  rm -f conftest.er1
19335  cat conftest.err >&5
19336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337  (exit $ac_status); } &&
19338	 { ac_try='test -z "$ac_c_werror_flag"
19339			 || test ! -s conftest.err'
19340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341  (eval $ac_try) 2>&5
19342  ac_status=$?
19343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344  (exit $ac_status); }; } &&
19345	 { ac_try='test -s conftest.$ac_objext'
19346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347  (eval $ac_try) 2>&5
19348  ac_status=$?
19349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350  (exit $ac_status); }; }; then
19351  break
19352else
19353  echo "$as_me: failed program was:" >&5
19354sed 's/^/| /' conftest.$ac_ext >&5
19355
19356fi
19357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19358done
19359rm -f conftest*
19360if test -n "$ac_declaration"; then
19361  echo '#ifdef __cplusplus' >>confdefs.h
19362  echo $ac_declaration      >>confdefs.h
19363  echo '#endif'             >>confdefs.h
19364fi
19365
19366else
19367  echo "$as_me: failed program was:" >&5
19368sed 's/^/| /' conftest.$ac_ext >&5
19369
19370fi
19371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19372ac_ext=c
19373ac_cpp='$CPP $CPPFLAGS'
19374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19376ac_compiler_gnu=$ac_cv_c_compiler_gnu
19377
19378depcc="$CC"   am_compiler_list=
19379
19380echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19381echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19382if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19383  echo $ECHO_N "(cached) $ECHO_C" >&6
19384else
19385  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19386  # We make a subdir and do the tests there.  Otherwise we can end up
19387  # making bogus files that we don't know about and never remove.  For
19388  # instance it was reported that on HP-UX the gcc test will end up
19389  # making a dummy file named `D' -- because `-MD' means `put the output
19390  # in D'.
19391  mkdir conftest.dir
19392  # Copy depcomp to subdir because otherwise we won't find it if we're
19393  # using a relative directory.
19394  cp "$am_depcomp" conftest.dir
19395  cd conftest.dir
19396  # We will build objects and dependencies in a subdirectory because
19397  # it helps to detect inapplicable dependency modes.  For instance
19398  # both Tru64's cc and ICC support -MD to output dependencies as a
19399  # side effect of compilation, but ICC will put the dependencies in
19400  # the current directory while Tru64 will put them in the object
19401  # directory.
19402  mkdir sub
19403
19404  am_cv_CC_dependencies_compiler_type=none
19405  if test "$am_compiler_list" = ""; then
19406     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19407  fi
19408  for depmode in $am_compiler_list; do
19409    # Setup a source with many dependencies, because some compilers
19410    # like to wrap large dependency lists on column 80 (with \), and
19411    # we should not choose a depcomp mode which is confused by this.
19412    #
19413    # We need to recreate these files for each test, as the compiler may
19414    # overwrite some of them when testing with obscure command lines.
19415    # This happens at least with the AIX C compiler.
19416    : > sub/conftest.c
19417    for i in 1 2 3 4 5 6; do
19418      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19419      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19420      # Solaris 8's {/usr,}/bin/sh.
19421      touch sub/conftst$i.h
19422    done
19423    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19424
19425    case $depmode in
19426    nosideeffect)
19427      # after this tag, mechanisms are not by side-effect, so they'll
19428      # only be used when explicitly requested
19429      if test "x$enable_dependency_tracking" = xyes; then
19430	continue
19431      else
19432	break
19433      fi
19434      ;;
19435    none) break ;;
19436    esac
19437    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19438    # mode.  It turns out that the SunPro C++ compiler does not properly
19439    # handle `-M -o', and we need to detect this.
19440    if depmode=$depmode \
19441       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19442       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19443       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19444         >/dev/null 2>conftest.err &&
19445       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19446       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19447       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19448      # icc doesn't choke on unknown options, it will just issue warnings
19449      # or remarks (even with -Werror).  So we grep stderr for any message
19450      # that says an option was ignored or not supported.
19451      # When given -MP, icc 7.0 and 7.1 complain thusly:
19452      #   icc: Command line warning: ignoring option '-M'; no argument required
19453      # The diagnosis changed in icc 8.0:
19454      #   icc: Command line remark: option '-MP' not supported
19455      if (grep 'ignoring option' conftest.err ||
19456          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19457        am_cv_CC_dependencies_compiler_type=$depmode
19458        break
19459      fi
19460    fi
19461  done
19462
19463  cd ..
19464  rm -rf conftest.dir
19465else
19466  am_cv_CC_dependencies_compiler_type=none
19467fi
19468
19469fi
19470echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19471echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19472CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19473
19474
19475
19476if
19477  test "x$enable_dependency_tracking" != xno \
19478  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19479  am__fastdepCC_TRUE=
19480  am__fastdepCC_FALSE='#'
19481else
19482  am__fastdepCC_TRUE='#'
19483  am__fastdepCC_FALSE=
19484fi
19485
19486
19487
19488
19489
19490
19491
19492# Check whether --with-xorg-module-dir or --without-xorg-module-dir was given.
19493if test "${with_xorg_module_dir+set}" = set; then
19494  withval="$with_xorg_module_dir"
19495   moduledir="$withval"
19496else
19497   moduledir="$libdir/xorg/modules"
19498fi;
19499
19500
19501
19502# Checks for extensions
19503
19504	SAVE_CFLAGS="$CFLAGS"
19505	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19506	cat >conftest.$ac_ext <<_ACEOF
19507/* confdefs.h.  */
19508_ACEOF
19509cat confdefs.h >>conftest.$ac_ext
19510cat >>conftest.$ac_ext <<_ACEOF
19511/* end confdefs.h.  */
19512
19513#include "xorg-server.h"
19514#if !defined RANDR
19515#error RANDR not defined
19516#endif
19517
19518int
19519main ()
19520{
19521
19522  ;
19523  return 0;
19524}
19525_ACEOF
19526rm -f conftest.$ac_objext
19527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19528  (eval $ac_compile) 2>conftest.er1
19529  ac_status=$?
19530  grep -v '^ *+' conftest.er1 >conftest.err
19531  rm -f conftest.er1
19532  cat conftest.err >&5
19533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534  (exit $ac_status); } &&
19535	 { ac_try='test -z "$ac_c_werror_flag"
19536			 || test ! -s conftest.err'
19537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538  (eval $ac_try) 2>&5
19539  ac_status=$?
19540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541  (exit $ac_status); }; } &&
19542	 { ac_try='test -s conftest.$ac_objext'
19543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544  (eval $ac_try) 2>&5
19545  ac_status=$?
19546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547  (exit $ac_status); }; }; then
19548  _EXT_CHECK=yes
19549else
19550  echo "$as_me: failed program was:" >&5
19551sed 's/^/| /' conftest.$ac_ext >&5
19552
19553_EXT_CHECK=no
19554fi
19555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556	CFLAGS="$SAVE_CFLAGS"
19557	echo "$as_me:$LINENO: checking if RANDR is defined" >&5
19558echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6
19559	echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19560echo "${ECHO_T}$_EXT_CHECK" >&6
19561	if test "$_EXT_CHECK" != no; then
19562		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19563	fi
19564
19565
19566	SAVE_CFLAGS="$CFLAGS"
19567	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19568	cat >conftest.$ac_ext <<_ACEOF
19569/* confdefs.h.  */
19570_ACEOF
19571cat confdefs.h >>conftest.$ac_ext
19572cat >>conftest.$ac_ext <<_ACEOF
19573/* end confdefs.h.  */
19574
19575#include "xorg-server.h"
19576#if !defined RENDER
19577#error RENDER not defined
19578#endif
19579
19580int
19581main ()
19582{
19583
19584  ;
19585  return 0;
19586}
19587_ACEOF
19588rm -f conftest.$ac_objext
19589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19590  (eval $ac_compile) 2>conftest.er1
19591  ac_status=$?
19592  grep -v '^ *+' conftest.er1 >conftest.err
19593  rm -f conftest.er1
19594  cat conftest.err >&5
19595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596  (exit $ac_status); } &&
19597	 { ac_try='test -z "$ac_c_werror_flag"
19598			 || test ! -s conftest.err'
19599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600  (eval $ac_try) 2>&5
19601  ac_status=$?
19602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603  (exit $ac_status); }; } &&
19604	 { ac_try='test -s conftest.$ac_objext'
19605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606  (eval $ac_try) 2>&5
19607  ac_status=$?
19608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609  (exit $ac_status); }; }; then
19610  _EXT_CHECK=yes
19611else
19612  echo "$as_me: failed program was:" >&5
19613sed 's/^/| /' conftest.$ac_ext >&5
19614
19615_EXT_CHECK=no
19616fi
19617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19618	CFLAGS="$SAVE_CFLAGS"
19619	echo "$as_me:$LINENO: checking if RENDER is defined" >&5
19620echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6
19621	echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19622echo "${ECHO_T}$_EXT_CHECK" >&6
19623	if test "$_EXT_CHECK" != no; then
19624		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19625	fi
19626
19627
19628	SAVE_CFLAGS="$CFLAGS"
19629	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19630	cat >conftest.$ac_ext <<_ACEOF
19631/* confdefs.h.  */
19632_ACEOF
19633cat confdefs.h >>conftest.$ac_ext
19634cat >>conftest.$ac_ext <<_ACEOF
19635/* end confdefs.h.  */
19636
19637#include "xorg-server.h"
19638#if !defined DPMSExtension
19639#error DPMSExtension not defined
19640#endif
19641
19642int
19643main ()
19644{
19645
19646  ;
19647  return 0;
19648}
19649_ACEOF
19650rm -f conftest.$ac_objext
19651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19652  (eval $ac_compile) 2>conftest.er1
19653  ac_status=$?
19654  grep -v '^ *+' conftest.er1 >conftest.err
19655  rm -f conftest.er1
19656  cat conftest.err >&5
19657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658  (exit $ac_status); } &&
19659	 { ac_try='test -z "$ac_c_werror_flag"
19660			 || test ! -s conftest.err'
19661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662  (eval $ac_try) 2>&5
19663  ac_status=$?
19664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665  (exit $ac_status); }; } &&
19666	 { ac_try='test -s conftest.$ac_objext'
19667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668  (eval $ac_try) 2>&5
19669  ac_status=$?
19670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671  (exit $ac_status); }; }; then
19672  _EXT_CHECK=yes
19673else
19674  echo "$as_me: failed program was:" >&5
19675sed 's/^/| /' conftest.$ac_ext >&5
19676
19677_EXT_CHECK=no
19678fi
19679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19680	CFLAGS="$SAVE_CFLAGS"
19681	echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
19682echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6
19683	echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19684echo "${ECHO_T}$_EXT_CHECK" >&6
19685	if test "$_EXT_CHECK" != no; then
19686		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19687	fi
19688
19689
19690# Checks for pkg-config packages
19691
19692
19693if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19694	if test -n "$ac_tool_prefix"; then
19695  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19696set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19697echo "$as_me:$LINENO: checking for $ac_word" >&5
19698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19699if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19700  echo $ECHO_N "(cached) $ECHO_C" >&6
19701else
19702  case $PKG_CONFIG in
19703  [\\/]* | ?:[\\/]*)
19704  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19705  ;;
19706  *)
19707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19708for as_dir in $PATH
19709do
19710  IFS=$as_save_IFS
19711  test -z "$as_dir" && as_dir=.
19712  for ac_exec_ext in '' $ac_executable_extensions; do
19713  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19714    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19716    break 2
19717  fi
19718done
19719done
19720
19721  ;;
19722esac
19723fi
19724PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19725
19726if test -n "$PKG_CONFIG"; then
19727  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19728echo "${ECHO_T}$PKG_CONFIG" >&6
19729else
19730  echo "$as_me:$LINENO: result: no" >&5
19731echo "${ECHO_T}no" >&6
19732fi
19733
19734fi
19735if test -z "$ac_cv_path_PKG_CONFIG"; then
19736  ac_pt_PKG_CONFIG=$PKG_CONFIG
19737  # Extract the first word of "pkg-config", so it can be a program name with args.
19738set dummy pkg-config; ac_word=$2
19739echo "$as_me:$LINENO: checking for $ac_word" >&5
19740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19741if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19742  echo $ECHO_N "(cached) $ECHO_C" >&6
19743else
19744  case $ac_pt_PKG_CONFIG in
19745  [\\/]* | ?:[\\/]*)
19746  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19747  ;;
19748  *)
19749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750for as_dir in $PATH
19751do
19752  IFS=$as_save_IFS
19753  test -z "$as_dir" && as_dir=.
19754  for ac_exec_ext in '' $ac_executable_extensions; do
19755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19756    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19758    break 2
19759  fi
19760done
19761done
19762
19763  ;;
19764esac
19765fi
19766ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19767
19768if test -n "$ac_pt_PKG_CONFIG"; then
19769  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19770echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19771else
19772  echo "$as_me:$LINENO: result: no" >&5
19773echo "${ECHO_T}no" >&6
19774fi
19775
19776  PKG_CONFIG=$ac_pt_PKG_CONFIG
19777else
19778  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19779fi
19780
19781fi
19782if test -n "$PKG_CONFIG"; then
19783	_pkg_min_version=0.9.0
19784	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19785echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19786	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19787		echo "$as_me:$LINENO: result: yes" >&5
19788echo "${ECHO_T}yes" >&6
19789	else
19790		echo "$as_me:$LINENO: result: no" >&5
19791echo "${ECHO_T}no" >&6
19792		PKG_CONFIG=""
19793	fi
19794
19795fi
19796
19797pkg_failed=no
19798echo "$as_me:$LINENO: checking for XORG" >&5
19799echo $ECHO_N "checking for XORG... $ECHO_C" >&6
19800
19801if test -n "$PKG_CONFIG"; then
19802    if test -n "$XORG_CFLAGS"; then
19803        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19804    else
19805        if test -n "$PKG_CONFIG" && \
19806    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
19807  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19808  ac_status=$?
19809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810  (exit $ac_status); }; then
19811  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19812else
19813  pkg_failed=yes
19814fi
19815    fi
19816else
19817	pkg_failed=untried
19818fi
19819if test -n "$PKG_CONFIG"; then
19820    if test -n "$XORG_LIBS"; then
19821        pkg_cv_XORG_LIBS="$XORG_LIBS"
19822    else
19823        if test -n "$PKG_CONFIG" && \
19824    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
19825  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19826  ac_status=$?
19827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828  (exit $ac_status); }; then
19829  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19830else
19831  pkg_failed=yes
19832fi
19833    fi
19834else
19835	pkg_failed=untried
19836fi
19837
19838
19839
19840if test $pkg_failed = yes; then
19841
19842if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19843        _pkg_short_errors_supported=yes
19844else
19845        _pkg_short_errors_supported=no
19846fi
19847        if test $_pkg_short_errors_supported = yes; then
19848	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
19849        else
19850	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
19851        fi
19852	# Put the nasty error message in config.log where it belongs
19853	echo "$XORG_PKG_ERRORS" >&5
19854
19855	{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19856
19857$XORG_PKG_ERRORS
19858
19859Consider adjusting the PKG_CONFIG_PATH environment variable if you
19860installed software in a non-standard prefix.
19861
19862Alternatively, you may set the environment variables XORG_CFLAGS
19863and XORG_LIBS to avoid the need to call pkg-config.
19864See the pkg-config man page for more details.
19865" >&5
19866echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19867
19868$XORG_PKG_ERRORS
19869
19870Consider adjusting the PKG_CONFIG_PATH environment variable if you
19871installed software in a non-standard prefix.
19872
19873Alternatively, you may set the environment variables XORG_CFLAGS
19874and XORG_LIBS to avoid the need to call pkg-config.
19875See the pkg-config man page for more details.
19876" >&2;}
19877   { (exit 1); exit 1; }; }
19878elif test $pkg_failed = untried; then
19879	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19880is in your PATH or set the PKG_CONFIG environment variable to the full
19881path to pkg-config.
19882
19883Alternatively, you may set the environment variables XORG_CFLAGS
19884and XORG_LIBS to avoid the need to call pkg-config.
19885See the pkg-config man page for more details.
19886
19887To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19888See \`config.log' for more details." >&5
19889echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19890is in your PATH or set the PKG_CONFIG environment variable to the full
19891path to pkg-config.
19892
19893Alternatively, you may set the environment variables XORG_CFLAGS
19894and XORG_LIBS to avoid the need to call pkg-config.
19895See the pkg-config man page for more details.
19896
19897To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19898See \`config.log' for more details." >&2;}
19899   { (exit 1); exit 1; }; }
19900else
19901	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19902	XORG_LIBS=$pkg_cv_XORG_LIBS
19903        echo "$as_me:$LINENO: result: yes" >&5
19904echo "${ECHO_T}yes" >&6
19905	:
19906fi
19907sdkdir=$(pkg-config --variable=sdkdir xorg-server)
19908
19909CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
19910INCLUDES="$XORG_INCS -I${sdkdir} "'-I$(top_srcdir)/src -I$(prefix)/include'
19911
19912
19913
19914# Checks for libraries.
19915
19916# Checks for header files.
19917echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19918echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19919if test "${ac_cv_header_stdc+set}" = set; then
19920  echo $ECHO_N "(cached) $ECHO_C" >&6
19921else
19922  cat >conftest.$ac_ext <<_ACEOF
19923/* confdefs.h.  */
19924_ACEOF
19925cat confdefs.h >>conftest.$ac_ext
19926cat >>conftest.$ac_ext <<_ACEOF
19927/* end confdefs.h.  */
19928#include <stdlib.h>
19929#include <stdarg.h>
19930#include <string.h>
19931#include <float.h>
19932
19933int
19934main ()
19935{
19936
19937  ;
19938  return 0;
19939}
19940_ACEOF
19941rm -f conftest.$ac_objext
19942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19943  (eval $ac_compile) 2>conftest.er1
19944  ac_status=$?
19945  grep -v '^ *+' conftest.er1 >conftest.err
19946  rm -f conftest.er1
19947  cat conftest.err >&5
19948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949  (exit $ac_status); } &&
19950	 { ac_try='test -z "$ac_c_werror_flag"
19951			 || test ! -s conftest.err'
19952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953  (eval $ac_try) 2>&5
19954  ac_status=$?
19955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956  (exit $ac_status); }; } &&
19957	 { ac_try='test -s conftest.$ac_objext'
19958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959  (eval $ac_try) 2>&5
19960  ac_status=$?
19961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962  (exit $ac_status); }; }; then
19963  ac_cv_header_stdc=yes
19964else
19965  echo "$as_me: failed program was:" >&5
19966sed 's/^/| /' conftest.$ac_ext >&5
19967
19968ac_cv_header_stdc=no
19969fi
19970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19971
19972if test $ac_cv_header_stdc = yes; then
19973  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19974  cat >conftest.$ac_ext <<_ACEOF
19975/* confdefs.h.  */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h.  */
19980#include <string.h>
19981
19982_ACEOF
19983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19984  $EGREP "memchr" >/dev/null 2>&1; then
19985  :
19986else
19987  ac_cv_header_stdc=no
19988fi
19989rm -f conftest*
19990
19991fi
19992
19993if test $ac_cv_header_stdc = yes; then
19994  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19995  cat >conftest.$ac_ext <<_ACEOF
19996/* confdefs.h.  */
19997_ACEOF
19998cat confdefs.h >>conftest.$ac_ext
19999cat >>conftest.$ac_ext <<_ACEOF
20000/* end confdefs.h.  */
20001#include <stdlib.h>
20002
20003_ACEOF
20004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20005  $EGREP "free" >/dev/null 2>&1; then
20006  :
20007else
20008  ac_cv_header_stdc=no
20009fi
20010rm -f conftest*
20011
20012fi
20013
20014if test $ac_cv_header_stdc = yes; then
20015  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20016  if test "$cross_compiling" = yes; then
20017  :
20018else
20019  cat >conftest.$ac_ext <<_ACEOF
20020/* confdefs.h.  */
20021_ACEOF
20022cat confdefs.h >>conftest.$ac_ext
20023cat >>conftest.$ac_ext <<_ACEOF
20024/* end confdefs.h.  */
20025#include <ctype.h>
20026#if ((' ' & 0x0FF) == 0x020)
20027# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20028# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20029#else
20030# define ISLOWER(c) \
20031		   (('a' <= (c) && (c) <= 'i') \
20032		     || ('j' <= (c) && (c) <= 'r') \
20033		     || ('s' <= (c) && (c) <= 'z'))
20034# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20035#endif
20036
20037#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20038int
20039main ()
20040{
20041  int i;
20042  for (i = 0; i < 256; i++)
20043    if (XOR (islower (i), ISLOWER (i))
20044	|| toupper (i) != TOUPPER (i))
20045      exit(2);
20046  exit (0);
20047}
20048_ACEOF
20049rm -f conftest$ac_exeext
20050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20051  (eval $ac_link) 2>&5
20052  ac_status=$?
20053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056  (eval $ac_try) 2>&5
20057  ac_status=$?
20058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059  (exit $ac_status); }; }; then
20060  :
20061else
20062  echo "$as_me: program exited with status $ac_status" >&5
20063echo "$as_me: failed program was:" >&5
20064sed 's/^/| /' conftest.$ac_ext >&5
20065
20066( exit $ac_status )
20067ac_cv_header_stdc=no
20068fi
20069rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20070fi
20071fi
20072fi
20073echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20074echo "${ECHO_T}$ac_cv_header_stdc" >&6
20075if test $ac_cv_header_stdc = yes; then
20076
20077cat >>confdefs.h <<\_ACEOF
20078#define STDC_HEADERS 1
20079_ACEOF
20080
20081fi
20082
20083
20084DRIVER_NAME=ark
20085
20086
20087
20088
20089
20090if test x$APP_MAN_SUFFIX = x    ; then
20091    case $host_os in
20092	linux*)	APP_MAN_SUFFIX=1x ;;
20093	*)	APP_MAN_SUFFIX=1  ;;
20094    esac
20095fi
20096if test x$APP_MAN_DIR = x    ; then
20097    case $host_os in
20098	linux*)	APP_MAN_DIR='$(mandir)/man1' ;;
20099	*)	APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;;
20100    esac
20101fi
20102
20103if test x$LIB_MAN_SUFFIX = x    ; then
20104    case $host_os in
20105	linux*)	LIB_MAN_SUFFIX=3x ;;
20106	*)	LIB_MAN_SUFFIX=3  ;;
20107    esac
20108fi
20109if test x$LIB_MAN_DIR = x    ; then
20110    case $host_os in
20111	linux*)	LIB_MAN_DIR='$(mandir)/man3' ;;
20112	*)	LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;;
20113    esac
20114fi
20115
20116if test x$FILE_MAN_SUFFIX = x    ; then
20117    case $host_os in
20118	linux*)		FILE_MAN_SUFFIX=5x ;;
20119	solaris*)	FILE_MAN_SUFFIX=4  ;;
20120	*)		FILE_MAN_SUFFIX=5  ;;
20121    esac
20122fi
20123if test x$FILE_MAN_DIR = x    ; then
20124    case $host_os in
20125	linux*)	FILE_MAN_DIR='$(mandir)/man5' ;;
20126	*)	FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;;
20127    esac
20128fi
20129
20130# In Imake's linux.cf, the misc man suffix & dir was only changed for
20131# LinuxDebian, not other Linuxes, so we leave it unchanged here
20132if test x$MISC_MAN_SUFFIX = x    ; then
20133    case $host_os in
20134#	linux*)		MISC_MAN_SUFFIX=7x ;;
20135	solaris*)	MISC_MAN_SUFFIX=5  ;;
20136	*)		MISC_MAN_SUFFIX=7  ;;
20137    esac
20138fi
20139if test x$MISC_MAN_DIR = x    ; then
20140    case $host_os in
20141#	linux*)	MISC_MAN_DIR='$(mandir)/man7' ;;
20142	*)	MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;;
20143    esac
20144fi
20145
20146# In Imake's linux.cf, the driver man suffix & dir was only changed for
20147# LinuxDebian, not other Linuxes, so we leave it unchanged here
20148if test x$DRIVER_MAN_SUFFIX = x    ; then
20149    case $host_os in
20150#	linux*)		DRIVER_MAN_SUFFIX=4x ;;
20151	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20152	*)		DRIVER_MAN_SUFFIX=4  ;;
20153    esac
20154fi
20155if test x$DRIVER_MAN_DIR = x    ; then
20156    case $host_os in
20157#	linux*)	DRIVER_MAN_DIR='$(mandir)/man4' ;;
20158	*)	DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;;
20159    esac
20160fi
20161
20162if test x$ADMIN_MAN_SUFFIX = x    ; then
20163    case $host_os in
20164	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20165	*)		ADMIN_MAN_SUFFIX=8  ;;
20166    esac
20167fi
20168if test x$ADMIN_MAN_DIR = x    ; then
20169    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20170fi
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188# Check whether --with-release-version or --without-release-version was given.
20189if test "${with_release_version+set}" = set; then
20190  withval="$with_release_version"
20191  RELEASE_VERSION="$withval"
20192else
20193  RELEASE_VERSION=""
20194fi;
20195	if test "x$RELEASE_VERSION" != "x"; then
20196		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20197		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20198		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20199echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20200	fi
20201
20202
20203                    ac_config_files="$ac_config_files Makefile src/Makefile"
20204cat >confcache <<\_ACEOF
20205# This file is a shell script that caches the results of configure
20206# tests run on this system so they can be shared between configure
20207# scripts and configure runs, see configure's option --config-cache.
20208# It is not useful on other systems.  If it contains results you don't
20209# want to keep, you may remove or edit it.
20210#
20211# config.status only pays attention to the cache file if you give it
20212# the --recheck option to rerun configure.
20213#
20214# `ac_cv_env_foo' variables (set or unset) will be overridden when
20215# loading this file, other *unset* `ac_cv_foo' will be assigned the
20216# following values.
20217
20218_ACEOF
20219
20220# The following way of writing the cache mishandles newlines in values,
20221# but we know of no workaround that is simple, portable, and efficient.
20222# So, don't put newlines in cache variables' values.
20223# Ultrix sh set writes to stderr and can't be redirected directly,
20224# and sets the high bit in the cache file unless we assign to the vars.
20225{
20226  (set) 2>&1 |
20227    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20228    *ac_space=\ *)
20229      # `set' does not quote correctly, so add quotes (double-quote
20230      # substitution turns \\\\ into \\, and sed turns \\ into \).
20231      sed -n \
20232	"s/'/'\\\\''/g;
20233	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20234      ;;
20235    *)
20236      # `set' quotes correctly as required by POSIX, so do not add quotes.
20237      sed -n \
20238	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20239      ;;
20240    esac;
20241} |
20242  sed '
20243     t clear
20244     : clear
20245     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20246     t end
20247     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20248     : end' >>confcache
20249if diff $cache_file confcache >/dev/null 2>&1; then :; else
20250  if test -w $cache_file; then
20251    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20252    cat confcache >$cache_file
20253  else
20254    echo "not updating unwritable cache $cache_file"
20255  fi
20256fi
20257rm -f confcache
20258
20259test "x$prefix" = xNONE && prefix=$ac_default_prefix
20260# Let make expand exec_prefix.
20261test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20262
20263# VPATH may cause trouble with some makes, so we remove $(srcdir),
20264# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20265# trailing colons and then remove the whole line if VPATH becomes empty
20266# (actually we leave an empty line to preserve line numbers).
20267if test "x$srcdir" = x.; then
20268  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20269s/:*\$(srcdir):*/:/;
20270s/:*\${srcdir}:*/:/;
20271s/:*@srcdir@:*/:/;
20272s/^\([^=]*=[	 ]*\):*/\1/;
20273s/:*$//;
20274s/^[^=]*=[	 ]*$//;
20275}'
20276fi
20277
20278DEFS=-DHAVE_CONFIG_H
20279
20280ac_libobjs=
20281ac_ltlibobjs=
20282for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20283  # 1. Remove the extension, and $U if already installed.
20284  ac_i=`echo "$ac_i" |
20285	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20286  # 2. Add them.
20287  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20288  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20289done
20290LIBOBJS=$ac_libobjs
20291
20292LTLIBOBJS=$ac_ltlibobjs
20293
20294
20295if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20296  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20297Usually this means the macro was only invoked conditionally." >&5
20298echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20299Usually this means the macro was only invoked conditionally." >&2;}
20300   { (exit 1); exit 1; }; }
20301fi
20302if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20303  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20304Usually this means the macro was only invoked conditionally." >&5
20305echo "$as_me: error: conditional \"AMDEP\" was never defined.
20306Usually this means the macro was only invoked conditionally." >&2;}
20307   { (exit 1); exit 1; }; }
20308fi
20309if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20310  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20311Usually this means the macro was only invoked conditionally." >&5
20312echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20313Usually this means the macro was only invoked conditionally." >&2;}
20314   { (exit 1); exit 1; }; }
20315fi
20316if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20317  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20318Usually this means the macro was only invoked conditionally." >&5
20319echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20320Usually this means the macro was only invoked conditionally." >&2;}
20321   { (exit 1); exit 1; }; }
20322fi
20323if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20324  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20325Usually this means the macro was only invoked conditionally." >&5
20326echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20327Usually this means the macro was only invoked conditionally." >&2;}
20328   { (exit 1); exit 1; }; }
20329fi
20330
20331: ${CONFIG_STATUS=./config.status}
20332ac_clean_files_save=$ac_clean_files
20333ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20334{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20335echo "$as_me: creating $CONFIG_STATUS" >&6;}
20336cat >$CONFIG_STATUS <<_ACEOF
20337#! $SHELL
20338# Generated by $as_me.
20339# Run this file to recreate the current configuration.
20340# Compiler output produced by configure, useful for debugging
20341# configure, is in config.log if it exists.
20342
20343debug=false
20344ac_cs_recheck=false
20345ac_cs_silent=false
20346SHELL=\${CONFIG_SHELL-$SHELL}
20347_ACEOF
20348
20349cat >>$CONFIG_STATUS <<\_ACEOF
20350## --------------------- ##
20351## M4sh Initialization.  ##
20352## --------------------- ##
20353
20354# Be Bourne compatible
20355if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20356  emulate sh
20357  NULLCMD=:
20358  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20359  # is contrary to our usage.  Disable this feature.
20360  alias -g '${1+"$@"}'='"$@"'
20361elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20362  set -o posix
20363fi
20364DUALCASE=1; export DUALCASE # for MKS sh
20365
20366# Support unset when possible.
20367if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20368  as_unset=unset
20369else
20370  as_unset=false
20371fi
20372
20373
20374# Work around bugs in pre-3.0 UWIN ksh.
20375$as_unset ENV MAIL MAILPATH
20376PS1='$ '
20377PS2='> '
20378PS4='+ '
20379
20380# NLS nuisances.
20381for as_var in \
20382  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20383  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20384  LC_TELEPHONE LC_TIME
20385do
20386  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20387    eval $as_var=C; export $as_var
20388  else
20389    $as_unset $as_var
20390  fi
20391done
20392
20393# Required to use basename.
20394if expr a : '\(a\)' >/dev/null 2>&1; then
20395  as_expr=expr
20396else
20397  as_expr=false
20398fi
20399
20400if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20401  as_basename=basename
20402else
20403  as_basename=false
20404fi
20405
20406
20407# Name of the executable.
20408as_me=`$as_basename "$0" ||
20409$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20410	 X"$0" : 'X\(//\)$' \| \
20411	 X"$0" : 'X\(/\)$' \| \
20412	 .     : '\(.\)' 2>/dev/null ||
20413echo X/"$0" |
20414    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20415  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20416  	  /^X\/\(\/\).*/{ s//\1/; q; }
20417  	  s/.*/./; q'`
20418
20419
20420# PATH needs CR, and LINENO needs CR and PATH.
20421# Avoid depending upon Character Ranges.
20422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20425as_cr_digits='0123456789'
20426as_cr_alnum=$as_cr_Letters$as_cr_digits
20427
20428# The user is always right.
20429if test "${PATH_SEPARATOR+set}" != set; then
20430  echo "#! /bin/sh" >conf$$.sh
20431  echo  "exit 0"   >>conf$$.sh
20432  chmod +x conf$$.sh
20433  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20434    PATH_SEPARATOR=';'
20435  else
20436    PATH_SEPARATOR=:
20437  fi
20438  rm -f conf$$.sh
20439fi
20440
20441
20442  as_lineno_1=$LINENO
20443  as_lineno_2=$LINENO
20444  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20445  test "x$as_lineno_1" != "x$as_lineno_2" &&
20446  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20447  # Find who we are.  Look in the path if we contain no path at all
20448  # relative or not.
20449  case $0 in
20450    *[\\/]* ) as_myself=$0 ;;
20451    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20452for as_dir in $PATH
20453do
20454  IFS=$as_save_IFS
20455  test -z "$as_dir" && as_dir=.
20456  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20457done
20458
20459       ;;
20460  esac
20461  # We did not find ourselves, most probably we were run as `sh COMMAND'
20462  # in which case we are not to be found in the path.
20463  if test "x$as_myself" = x; then
20464    as_myself=$0
20465  fi
20466  if test ! -f "$as_myself"; then
20467    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20468echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20469   { (exit 1); exit 1; }; }
20470  fi
20471  case $CONFIG_SHELL in
20472  '')
20473    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20474for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20475do
20476  IFS=$as_save_IFS
20477  test -z "$as_dir" && as_dir=.
20478  for as_base in sh bash ksh sh5; do
20479	 case $as_dir in
20480	 /*)
20481	   if ("$as_dir/$as_base" -c '
20482  as_lineno_1=$LINENO
20483  as_lineno_2=$LINENO
20484  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20485  test "x$as_lineno_1" != "x$as_lineno_2" &&
20486  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20487	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20488	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20489	     CONFIG_SHELL=$as_dir/$as_base
20490	     export CONFIG_SHELL
20491	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20492	   fi;;
20493	 esac
20494       done
20495done
20496;;
20497  esac
20498
20499  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20500  # uniformly replaced by the line number.  The first 'sed' inserts a
20501  # line-number line before each line; the second 'sed' does the real
20502  # work.  The second script uses 'N' to pair each line-number line
20503  # with the numbered line, and appends trailing '-' during
20504  # substitution so that $LINENO is not a special case at line end.
20505  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20506  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20507  sed '=' <$as_myself |
20508    sed '
20509      N
20510      s,$,-,
20511      : loop
20512      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20513      t loop
20514      s,-$,,
20515      s,^['$as_cr_digits']*\n,,
20516    ' >$as_me.lineno &&
20517  chmod +x $as_me.lineno ||
20518    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20519echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20520   { (exit 1); exit 1; }; }
20521
20522  # Don't try to exec as it changes $[0], causing all sort of problems
20523  # (the dirname of $[0] is not the place where we might find the
20524  # original and so on.  Autoconf is especially sensible to this).
20525  . ./$as_me.lineno
20526  # Exit status is that of the last command.
20527  exit
20528}
20529
20530
20531case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20532  *c*,-n*) ECHO_N= ECHO_C='
20533' ECHO_T='	' ;;
20534  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20535  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20536esac
20537
20538if expr a : '\(a\)' >/dev/null 2>&1; then
20539  as_expr=expr
20540else
20541  as_expr=false
20542fi
20543
20544rm -f conf$$ conf$$.exe conf$$.file
20545echo >conf$$.file
20546if ln -s conf$$.file conf$$ 2>/dev/null; then
20547  # We could just check for DJGPP; but this test a) works b) is more generic
20548  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20549  if test -f conf$$.exe; then
20550    # Don't use ln at all; we don't have any links
20551    as_ln_s='cp -p'
20552  else
20553    as_ln_s='ln -s'
20554  fi
20555elif ln conf$$.file conf$$ 2>/dev/null; then
20556  as_ln_s=ln
20557else
20558  as_ln_s='cp -p'
20559fi
20560rm -f conf$$ conf$$.exe conf$$.file
20561
20562if mkdir -p . 2>/dev/null; then
20563  as_mkdir_p=:
20564else
20565  test -d ./-p && rmdir ./-p
20566  as_mkdir_p=false
20567fi
20568
20569as_executable_p="test -f"
20570
20571# Sed expression to map a string onto a valid CPP name.
20572as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20573
20574# Sed expression to map a string onto a valid variable name.
20575as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20576
20577
20578# IFS
20579# We need space, tab and new line, in precisely that order.
20580as_nl='
20581'
20582IFS=" 	$as_nl"
20583
20584# CDPATH.
20585$as_unset CDPATH
20586
20587exec 6>&1
20588
20589# Open the log real soon, to keep \$[0] and so on meaningful, and to
20590# report actual input values of CONFIG_FILES etc. instead of their
20591# values after options handling.  Logging --version etc. is OK.
20592exec 5>>config.log
20593{
20594  echo
20595  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20596## Running $as_me. ##
20597_ASBOX
20598} >&5
20599cat >&5 <<_CSEOF
20600
20601This file was extended by xf86-video-ark $as_me 0.6.0, which was
20602generated by GNU Autoconf 2.59.  Invocation command line was
20603
20604  CONFIG_FILES    = $CONFIG_FILES
20605  CONFIG_HEADERS  = $CONFIG_HEADERS
20606  CONFIG_LINKS    = $CONFIG_LINKS
20607  CONFIG_COMMANDS = $CONFIG_COMMANDS
20608  $ $0 $@
20609
20610_CSEOF
20611echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20612echo >&5
20613_ACEOF
20614
20615# Files that config.status was made for.
20616if test -n "$ac_config_files"; then
20617  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20618fi
20619
20620if test -n "$ac_config_headers"; then
20621  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20622fi
20623
20624if test -n "$ac_config_links"; then
20625  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20626fi
20627
20628if test -n "$ac_config_commands"; then
20629  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20630fi
20631
20632cat >>$CONFIG_STATUS <<\_ACEOF
20633
20634ac_cs_usage="\
20635\`$as_me' instantiates files from templates according to the
20636current configuration.
20637
20638Usage: $0 [OPTIONS] [FILE]...
20639
20640  -h, --help       print this help, then exit
20641  -V, --version    print version number, then exit
20642  -q, --quiet      do not print progress messages
20643  -d, --debug      don't remove temporary files
20644      --recheck    update $as_me by reconfiguring in the same conditions
20645  --file=FILE[:TEMPLATE]
20646		   instantiate the configuration file FILE
20647  --header=FILE[:TEMPLATE]
20648		   instantiate the configuration header FILE
20649
20650Configuration files:
20651$config_files
20652
20653Configuration headers:
20654$config_headers
20655
20656Configuration commands:
20657$config_commands
20658
20659Report bugs to <bug-autoconf@gnu.org>."
20660_ACEOF
20661
20662cat >>$CONFIG_STATUS <<_ACEOF
20663ac_cs_version="\\
20664xf86-video-ark config.status 0.6.0
20665configured by $0, generated by GNU Autoconf 2.59,
20666  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20667
20668Copyright (C) 2003 Free Software Foundation, Inc.
20669This config.status script is free software; the Free Software Foundation
20670gives unlimited permission to copy, distribute and modify it."
20671srcdir=$srcdir
20672INSTALL="$INSTALL"
20673_ACEOF
20674
20675cat >>$CONFIG_STATUS <<\_ACEOF
20676# If no file are specified by the user, then we need to provide default
20677# value.  By we need to know if files were specified by the user.
20678ac_need_defaults=:
20679while test $# != 0
20680do
20681  case $1 in
20682  --*=*)
20683    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20684    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20685    ac_shift=:
20686    ;;
20687  -*)
20688    ac_option=$1
20689    ac_optarg=$2
20690    ac_shift=shift
20691    ;;
20692  *) # This is not an option, so the user has probably given explicit
20693     # arguments.
20694     ac_option=$1
20695     ac_need_defaults=false;;
20696  esac
20697
20698  case $ac_option in
20699  # Handling of the options.
20700_ACEOF
20701cat >>$CONFIG_STATUS <<\_ACEOF
20702  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20703    ac_cs_recheck=: ;;
20704  --version | --vers* | -V )
20705    echo "$ac_cs_version"; exit 0 ;;
20706  --he | --h)
20707    # Conflict between --help and --header
20708    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20709Try \`$0 --help' for more information." >&5
20710echo "$as_me: error: ambiguous option: $1
20711Try \`$0 --help' for more information." >&2;}
20712   { (exit 1); exit 1; }; };;
20713  --help | --hel | -h )
20714    echo "$ac_cs_usage"; exit 0 ;;
20715  --debug | --d* | -d )
20716    debug=: ;;
20717  --file | --fil | --fi | --f )
20718    $ac_shift
20719    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20720    ac_need_defaults=false;;
20721  --header | --heade | --head | --hea )
20722    $ac_shift
20723    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20724    ac_need_defaults=false;;
20725  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20726  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20727    ac_cs_silent=: ;;
20728
20729  # This is an error.
20730  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20731Try \`$0 --help' for more information." >&5
20732echo "$as_me: error: unrecognized option: $1
20733Try \`$0 --help' for more information." >&2;}
20734   { (exit 1); exit 1; }; } ;;
20735
20736  *) ac_config_targets="$ac_config_targets $1" ;;
20737
20738  esac
20739  shift
20740done
20741
20742ac_configure_extra_args=
20743
20744if $ac_cs_silent; then
20745  exec 6>/dev/null
20746  ac_configure_extra_args="$ac_configure_extra_args --silent"
20747fi
20748
20749_ACEOF
20750cat >>$CONFIG_STATUS <<_ACEOF
20751if \$ac_cs_recheck; then
20752  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20753  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20754fi
20755
20756_ACEOF
20757
20758cat >>$CONFIG_STATUS <<_ACEOF
20759#
20760# INIT-COMMANDS section.
20761#
20762
20763AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20764
20765_ACEOF
20766
20767
20768
20769cat >>$CONFIG_STATUS <<\_ACEOF
20770for ac_config_target in $ac_config_targets
20771do
20772  case "$ac_config_target" in
20773  # Handling of arguments.
20774  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20775  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20776  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20777  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20778  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20779echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20780   { (exit 1); exit 1; }; };;
20781  esac
20782done
20783
20784# If the user did not use the arguments to specify the items to instantiate,
20785# then the envvar interface is used.  Set only those that are not.
20786# We use the long form for the default assignment because of an extremely
20787# bizarre bug on SunOS 4.1.3.
20788if $ac_need_defaults; then
20789  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20790  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20791  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20792fi
20793
20794# Have a temporary directory for convenience.  Make it in the build tree
20795# simply because there is no reason to put it here, and in addition,
20796# creating and moving files from /tmp can sometimes cause problems.
20797# Create a temporary directory, and hook for its removal unless debugging.
20798$debug ||
20799{
20800  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20801  trap '{ (exit 1); exit 1; }' 1 2 13 15
20802}
20803
20804# Create a (secure) tmp directory for tmp files.
20805
20806{
20807  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20808  test -n "$tmp" && test -d "$tmp"
20809}  ||
20810{
20811  tmp=./confstat$$-$RANDOM
20812  (umask 077 && mkdir $tmp)
20813} ||
20814{
20815   echo "$me: cannot create a temporary directory in ." >&2
20816   { (exit 1); exit 1; }
20817}
20818
20819_ACEOF
20820
20821cat >>$CONFIG_STATUS <<_ACEOF
20822
20823#
20824# CONFIG_FILES section.
20825#
20826
20827# No need to generate the scripts if there are no CONFIG_FILES.
20828# This happens for instance when ./config.status config.h
20829if test -n "\$CONFIG_FILES"; then
20830  # Protect against being on the right side of a sed subst in config.status.
20831  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20832   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20833s,@SHELL@,$SHELL,;t t
20834s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20835s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20836s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20837s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20838s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20839s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20840s,@exec_prefix@,$exec_prefix,;t t
20841s,@prefix@,$prefix,;t t
20842s,@program_transform_name@,$program_transform_name,;t t
20843s,@bindir@,$bindir,;t t
20844s,@sbindir@,$sbindir,;t t
20845s,@libexecdir@,$libexecdir,;t t
20846s,@datadir@,$datadir,;t t
20847s,@sysconfdir@,$sysconfdir,;t t
20848s,@sharedstatedir@,$sharedstatedir,;t t
20849s,@localstatedir@,$localstatedir,;t t
20850s,@libdir@,$libdir,;t t
20851s,@includedir@,$includedir,;t t
20852s,@oldincludedir@,$oldincludedir,;t t
20853s,@infodir@,$infodir,;t t
20854s,@mandir@,$mandir,;t t
20855s,@build_alias@,$build_alias,;t t
20856s,@host_alias@,$host_alias,;t t
20857s,@target_alias@,$target_alias,;t t
20858s,@DEFS@,$DEFS,;t t
20859s,@ECHO_C@,$ECHO_C,;t t
20860s,@ECHO_N@,$ECHO_N,;t t
20861s,@ECHO_T@,$ECHO_T,;t t
20862s,@LIBS@,$LIBS,;t t
20863s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20864s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20865s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20866s,@CYGPATH_W@,$CYGPATH_W,;t t
20867s,@PACKAGE@,$PACKAGE,;t t
20868s,@VERSION@,$VERSION,;t t
20869s,@ACLOCAL@,$ACLOCAL,;t t
20870s,@AUTOCONF@,$AUTOCONF,;t t
20871s,@AUTOMAKE@,$AUTOMAKE,;t t
20872s,@AUTOHEADER@,$AUTOHEADER,;t t
20873s,@MAKEINFO@,$MAKEINFO,;t t
20874s,@install_sh@,$install_sh,;t t
20875s,@STRIP@,$STRIP,;t t
20876s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20877s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20878s,@mkdir_p@,$mkdir_p,;t t
20879s,@AWK@,$AWK,;t t
20880s,@SET_MAKE@,$SET_MAKE,;t t
20881s,@am__leading_dot@,$am__leading_dot,;t t
20882s,@AMTAR@,$AMTAR,;t t
20883s,@am__tar@,$am__tar,;t t
20884s,@am__untar@,$am__untar,;t t
20885s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20886s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20887s,@MAINT@,$MAINT,;t t
20888s,@build@,$build,;t t
20889s,@build_cpu@,$build_cpu,;t t
20890s,@build_vendor@,$build_vendor,;t t
20891s,@build_os@,$build_os,;t t
20892s,@host@,$host,;t t
20893s,@host_cpu@,$host_cpu,;t t
20894s,@host_vendor@,$host_vendor,;t t
20895s,@host_os@,$host_os,;t t
20896s,@CC@,$CC,;t t
20897s,@CFLAGS@,$CFLAGS,;t t
20898s,@LDFLAGS@,$LDFLAGS,;t t
20899s,@CPPFLAGS@,$CPPFLAGS,;t t
20900s,@ac_ct_CC@,$ac_ct_CC,;t t
20901s,@EXEEXT@,$EXEEXT,;t t
20902s,@OBJEXT@,$OBJEXT,;t t
20903s,@DEPDIR@,$DEPDIR,;t t
20904s,@am__include@,$am__include,;t t
20905s,@am__quote@,$am__quote,;t t
20906s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20907s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20908s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20909s,@CCDEPMODE@,$CCDEPMODE,;t t
20910s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20911s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20912s,@EGREP@,$EGREP,;t t
20913s,@LN_S@,$LN_S,;t t
20914s,@ECHO@,$ECHO,;t t
20915s,@AR@,$AR,;t t
20916s,@ac_ct_AR@,$ac_ct_AR,;t t
20917s,@RANLIB@,$RANLIB,;t t
20918s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20919s,@CPP@,$CPP,;t t
20920s,@CXX@,$CXX,;t t
20921s,@CXXFLAGS@,$CXXFLAGS,;t t
20922s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20923s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20924s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20925s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20926s,@CXXCPP@,$CXXCPP,;t t
20927s,@F77@,$F77,;t t
20928s,@FFLAGS@,$FFLAGS,;t t
20929s,@ac_ct_F77@,$ac_ct_F77,;t t
20930s,@LIBTOOL@,$LIBTOOL,;t t
20931s,@moduledir@,$moduledir,;t t
20932s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20933s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20934s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t
20935s,@XORG_LIBS@,$XORG_LIBS,;t t
20936s,@INCLUDES@,$INCLUDES,;t t
20937s,@DRIVER_NAME@,$DRIVER_NAME,;t t
20938s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
20939s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
20940s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
20941s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
20942s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
20943s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
20944s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
20945s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
20946s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
20947s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
20948s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
20949s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
20950s,@LIBOBJS@,$LIBOBJS,;t t
20951s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20952CEOF
20953
20954_ACEOF
20955
20956  cat >>$CONFIG_STATUS <<\_ACEOF
20957  # Split the substitutions into bite-sized pieces for seds with
20958  # small command number limits, like on Digital OSF/1 and HP-UX.
20959  ac_max_sed_lines=48
20960  ac_sed_frag=1 # Number of current file.
20961  ac_beg=1 # First line for current file.
20962  ac_end=$ac_max_sed_lines # Line after last line for current file.
20963  ac_more_lines=:
20964  ac_sed_cmds=
20965  while $ac_more_lines; do
20966    if test $ac_beg -gt 1; then
20967      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20968    else
20969      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20970    fi
20971    if test ! -s $tmp/subs.frag; then
20972      ac_more_lines=false
20973    else
20974      # The purpose of the label and of the branching condition is to
20975      # speed up the sed processing (if there are no `@' at all, there
20976      # is no need to browse any of the substitutions).
20977      # These are the two extra sed commands mentioned above.
20978      (echo ':t
20979  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20980      if test -z "$ac_sed_cmds"; then
20981	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20982      else
20983	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20984      fi
20985      ac_sed_frag=`expr $ac_sed_frag + 1`
20986      ac_beg=$ac_end
20987      ac_end=`expr $ac_end + $ac_max_sed_lines`
20988    fi
20989  done
20990  if test -z "$ac_sed_cmds"; then
20991    ac_sed_cmds=cat
20992  fi
20993fi # test -n "$CONFIG_FILES"
20994
20995_ACEOF
20996cat >>$CONFIG_STATUS <<\_ACEOF
20997for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20998  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20999  case $ac_file in
21000  - | *:- | *:-:* ) # input from stdin
21001	cat >$tmp/stdin
21002	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21003	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21004  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21005	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21006  * )   ac_file_in=$ac_file.in ;;
21007  esac
21008
21009  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21010  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21012	 X"$ac_file" : 'X\(//\)[^/]' \| \
21013	 X"$ac_file" : 'X\(//\)$' \| \
21014	 X"$ac_file" : 'X\(/\)' \| \
21015	 .     : '\(.\)' 2>/dev/null ||
21016echo X"$ac_file" |
21017    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21018  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21019  	  /^X\(\/\/\)$/{ s//\1/; q; }
21020  	  /^X\(\/\).*/{ s//\1/; q; }
21021  	  s/.*/./; q'`
21022  { if $as_mkdir_p; then
21023    mkdir -p "$ac_dir"
21024  else
21025    as_dir="$ac_dir"
21026    as_dirs=
21027    while test ! -d "$as_dir"; do
21028      as_dirs="$as_dir $as_dirs"
21029      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21030$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21031	 X"$as_dir" : 'X\(//\)[^/]' \| \
21032	 X"$as_dir" : 'X\(//\)$' \| \
21033	 X"$as_dir" : 'X\(/\)' \| \
21034	 .     : '\(.\)' 2>/dev/null ||
21035echo X"$as_dir" |
21036    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21037  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21038  	  /^X\(\/\/\)$/{ s//\1/; q; }
21039  	  /^X\(\/\).*/{ s//\1/; q; }
21040  	  s/.*/./; q'`
21041    done
21042    test ! -n "$as_dirs" || mkdir $as_dirs
21043  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21044echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21045   { (exit 1); exit 1; }; }; }
21046
21047  ac_builddir=.
21048
21049if test "$ac_dir" != .; then
21050  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21051  # A "../" for each directory in $ac_dir_suffix.
21052  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21053else
21054  ac_dir_suffix= ac_top_builddir=
21055fi
21056
21057case $srcdir in
21058  .)  # No --srcdir option.  We are building in place.
21059    ac_srcdir=.
21060    if test -z "$ac_top_builddir"; then
21061       ac_top_srcdir=.
21062    else
21063       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21064    fi ;;
21065  [\\/]* | ?:[\\/]* )  # Absolute path.
21066    ac_srcdir=$srcdir$ac_dir_suffix;
21067    ac_top_srcdir=$srcdir ;;
21068  *) # Relative path.
21069    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21070    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21071esac
21072
21073# Do not use `cd foo && pwd` to compute absolute paths, because
21074# the directories may not exist.
21075case `pwd` in
21076.) ac_abs_builddir="$ac_dir";;
21077*)
21078  case "$ac_dir" in
21079  .) ac_abs_builddir=`pwd`;;
21080  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21081  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21082  esac;;
21083esac
21084case $ac_abs_builddir in
21085.) ac_abs_top_builddir=${ac_top_builddir}.;;
21086*)
21087  case ${ac_top_builddir}. in
21088  .) ac_abs_top_builddir=$ac_abs_builddir;;
21089  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21090  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21091  esac;;
21092esac
21093case $ac_abs_builddir in
21094.) ac_abs_srcdir=$ac_srcdir;;
21095*)
21096  case $ac_srcdir in
21097  .) ac_abs_srcdir=$ac_abs_builddir;;
21098  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21099  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21100  esac;;
21101esac
21102case $ac_abs_builddir in
21103.) ac_abs_top_srcdir=$ac_top_srcdir;;
21104*)
21105  case $ac_top_srcdir in
21106  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21107  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21108  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21109  esac;;
21110esac
21111
21112
21113  case $INSTALL in
21114  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21115  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21116  esac
21117
21118  if test x"$ac_file" != x-; then
21119    { echo "$as_me:$LINENO: creating $ac_file" >&5
21120echo "$as_me: creating $ac_file" >&6;}
21121    rm -f "$ac_file"
21122  fi
21123  # Let's still pretend it is `configure' which instantiates (i.e., don't
21124  # use $as_me), people would be surprised to read:
21125  #    /* config.h.  Generated by config.status.  */
21126  if test x"$ac_file" = x-; then
21127    configure_input=
21128  else
21129    configure_input="$ac_file.  "
21130  fi
21131  configure_input=$configure_input"Generated from `echo $ac_file_in |
21132				     sed 's,.*/,,'` by configure."
21133
21134  # First look for the input files in the build tree, otherwise in the
21135  # src tree.
21136  ac_file_inputs=`IFS=:
21137    for f in $ac_file_in; do
21138      case $f in
21139      -) echo $tmp/stdin ;;
21140      [\\/$]*)
21141	 # Absolute (can't be DOS-style, as IFS=:)
21142	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21143echo "$as_me: error: cannot find input file: $f" >&2;}
21144   { (exit 1); exit 1; }; }
21145	 echo "$f";;
21146      *) # Relative
21147	 if test -f "$f"; then
21148	   # Build tree
21149	   echo "$f"
21150	 elif test -f "$srcdir/$f"; then
21151	   # Source tree
21152	   echo "$srcdir/$f"
21153	 else
21154	   # /dev/null tree
21155	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21156echo "$as_me: error: cannot find input file: $f" >&2;}
21157   { (exit 1); exit 1; }; }
21158	 fi;;
21159      esac
21160    done` || { (exit 1); exit 1; }
21161_ACEOF
21162cat >>$CONFIG_STATUS <<_ACEOF
21163  sed "$ac_vpsub
21164$extrasub
21165_ACEOF
21166cat >>$CONFIG_STATUS <<\_ACEOF
21167:t
21168/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21169s,@configure_input@,$configure_input,;t t
21170s,@srcdir@,$ac_srcdir,;t t
21171s,@abs_srcdir@,$ac_abs_srcdir,;t t
21172s,@top_srcdir@,$ac_top_srcdir,;t t
21173s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21174s,@builddir@,$ac_builddir,;t t
21175s,@abs_builddir@,$ac_abs_builddir,;t t
21176s,@top_builddir@,$ac_top_builddir,;t t
21177s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21178s,@INSTALL@,$ac_INSTALL,;t t
21179" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21180  rm -f $tmp/stdin
21181  if test x"$ac_file" != x-; then
21182    mv $tmp/out $ac_file
21183  else
21184    cat $tmp/out
21185    rm -f $tmp/out
21186  fi
21187
21188done
21189_ACEOF
21190cat >>$CONFIG_STATUS <<\_ACEOF
21191
21192#
21193# CONFIG_HEADER section.
21194#
21195
21196# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21197# NAME is the cpp macro being defined and VALUE is the value it is being given.
21198#
21199# ac_d sets the value in "#define NAME VALUE" lines.
21200ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21201ac_dB='[	 ].*$,\1#\2'
21202ac_dC=' '
21203ac_dD=',;t'
21204# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21205ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21206ac_uB='$,\1#\2define\3'
21207ac_uC=' '
21208ac_uD=',;t'
21209
21210for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21211  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21212  case $ac_file in
21213  - | *:- | *:-:* ) # input from stdin
21214	cat >$tmp/stdin
21215	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21216	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21217  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21218	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21219  * )   ac_file_in=$ac_file.in ;;
21220  esac
21221
21222  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21223echo "$as_me: creating $ac_file" >&6;}
21224
21225  # First look for the input files in the build tree, otherwise in the
21226  # src tree.
21227  ac_file_inputs=`IFS=:
21228    for f in $ac_file_in; do
21229      case $f in
21230      -) echo $tmp/stdin ;;
21231      [\\/$]*)
21232	 # Absolute (can't be DOS-style, as IFS=:)
21233	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21234echo "$as_me: error: cannot find input file: $f" >&2;}
21235   { (exit 1); exit 1; }; }
21236	 # Do quote $f, to prevent DOS paths from being IFS'd.
21237	 echo "$f";;
21238      *) # Relative
21239	 if test -f "$f"; then
21240	   # Build tree
21241	   echo "$f"
21242	 elif test -f "$srcdir/$f"; then
21243	   # Source tree
21244	   echo "$srcdir/$f"
21245	 else
21246	   # /dev/null tree
21247	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21248echo "$as_me: error: cannot find input file: $f" >&2;}
21249   { (exit 1); exit 1; }; }
21250	 fi;;
21251      esac
21252    done` || { (exit 1); exit 1; }
21253  # Remove the trailing spaces.
21254  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21255
21256_ACEOF
21257
21258# Transform confdefs.h into two sed scripts, `conftest.defines' and
21259# `conftest.undefs', that substitutes the proper values into
21260# config.h.in to produce config.h.  The first handles `#define'
21261# templates, and the second `#undef' templates.
21262# And first: Protect against being on the right side of a sed subst in
21263# config.status.  Protect against being in an unquoted here document
21264# in config.status.
21265rm -f conftest.defines conftest.undefs
21266# Using a here document instead of a string reduces the quoting nightmare.
21267# Putting comments in sed scripts is not portable.
21268#
21269# `end' is used to avoid that the second main sed command (meant for
21270# 0-ary CPP macros) applies to n-ary macro definitions.
21271# See the Autoconf documentation for `clear'.
21272cat >confdef2sed.sed <<\_ACEOF
21273s/[\\&,]/\\&/g
21274s,[\\$`],\\&,g
21275t clear
21276: clear
21277s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21278t end
21279s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21280: end
21281_ACEOF
21282# If some macros were called several times there might be several times
21283# the same #defines, which is useless.  Nevertheless, we may not want to
21284# sort them, since we want the *last* AC-DEFINE to be honored.
21285uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21286sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21287rm -f confdef2sed.sed
21288
21289# This sed command replaces #undef with comments.  This is necessary, for
21290# example, in the case of _POSIX_SOURCE, which is predefined and required
21291# on some systems where configure will not decide to define it.
21292cat >>conftest.undefs <<\_ACEOF
21293s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21294_ACEOF
21295
21296# Break up conftest.defines because some shells have a limit on the size
21297# of here documents, and old seds have small limits too (100 cmds).
21298echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21299echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21300echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21301echo '  :' >>$CONFIG_STATUS
21302rm -f conftest.tail
21303while grep . conftest.defines >/dev/null
21304do
21305  # Write a limited-size here document to $tmp/defines.sed.
21306  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21307  # Speed up: don't consider the non `#define' lines.
21308  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21309  # Work around the forget-to-reset-the-flag bug.
21310  echo 't clr' >>$CONFIG_STATUS
21311  echo ': clr' >>$CONFIG_STATUS
21312  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21313  echo 'CEOF
21314  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21315  rm -f $tmp/in
21316  mv $tmp/out $tmp/in
21317' >>$CONFIG_STATUS
21318  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21319  rm -f conftest.defines
21320  mv conftest.tail conftest.defines
21321done
21322rm -f conftest.defines
21323echo '  fi # grep' >>$CONFIG_STATUS
21324echo >>$CONFIG_STATUS
21325
21326# Break up conftest.undefs because some shells have a limit on the size
21327# of here documents, and old seds have small limits too (100 cmds).
21328echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21329rm -f conftest.tail
21330while grep . conftest.undefs >/dev/null
21331do
21332  # Write a limited-size here document to $tmp/undefs.sed.
21333  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21334  # Speed up: don't consider the non `#undef'
21335  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21336  # Work around the forget-to-reset-the-flag bug.
21337  echo 't clr' >>$CONFIG_STATUS
21338  echo ': clr' >>$CONFIG_STATUS
21339  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21340  echo 'CEOF
21341  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21342  rm -f $tmp/in
21343  mv $tmp/out $tmp/in
21344' >>$CONFIG_STATUS
21345  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21346  rm -f conftest.undefs
21347  mv conftest.tail conftest.undefs
21348done
21349rm -f conftest.undefs
21350
21351cat >>$CONFIG_STATUS <<\_ACEOF
21352  # Let's still pretend it is `configure' which instantiates (i.e., don't
21353  # use $as_me), people would be surprised to read:
21354  #    /* config.h.  Generated by config.status.  */
21355  if test x"$ac_file" = x-; then
21356    echo "/* Generated by configure.  */" >$tmp/config.h
21357  else
21358    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21359  fi
21360  cat $tmp/in >>$tmp/config.h
21361  rm -f $tmp/in
21362  if test x"$ac_file" != x-; then
21363    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21364      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21365echo "$as_me: $ac_file is unchanged" >&6;}
21366    else
21367      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21368$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21369	 X"$ac_file" : 'X\(//\)[^/]' \| \
21370	 X"$ac_file" : 'X\(//\)$' \| \
21371	 X"$ac_file" : 'X\(/\)' \| \
21372	 .     : '\(.\)' 2>/dev/null ||
21373echo X"$ac_file" |
21374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21375  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21376  	  /^X\(\/\/\)$/{ s//\1/; q; }
21377  	  /^X\(\/\).*/{ s//\1/; q; }
21378  	  s/.*/./; q'`
21379      { if $as_mkdir_p; then
21380    mkdir -p "$ac_dir"
21381  else
21382    as_dir="$ac_dir"
21383    as_dirs=
21384    while test ! -d "$as_dir"; do
21385      as_dirs="$as_dir $as_dirs"
21386      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21387$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21388	 X"$as_dir" : 'X\(//\)[^/]' \| \
21389	 X"$as_dir" : 'X\(//\)$' \| \
21390	 X"$as_dir" : 'X\(/\)' \| \
21391	 .     : '\(.\)' 2>/dev/null ||
21392echo X"$as_dir" |
21393    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21394  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21395  	  /^X\(\/\/\)$/{ s//\1/; q; }
21396  	  /^X\(\/\).*/{ s//\1/; q; }
21397  	  s/.*/./; q'`
21398    done
21399    test ! -n "$as_dirs" || mkdir $as_dirs
21400  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21401echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21402   { (exit 1); exit 1; }; }; }
21403
21404      rm -f $ac_file
21405      mv $tmp/config.h $ac_file
21406    fi
21407  else
21408    cat $tmp/config.h
21409    rm -f $tmp/config.h
21410  fi
21411# Compute $ac_file's index in $config_headers.
21412_am_stamp_count=1
21413for _am_header in $config_headers :; do
21414  case $_am_header in
21415    $ac_file | $ac_file:* )
21416      break ;;
21417    * )
21418      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21419  esac
21420done
21421echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21422$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21423	 X$ac_file : 'X\(//\)[^/]' \| \
21424	 X$ac_file : 'X\(//\)$' \| \
21425	 X$ac_file : 'X\(/\)' \| \
21426	 .     : '\(.\)' 2>/dev/null ||
21427echo X$ac_file |
21428    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21429  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21430  	  /^X\(\/\/\)$/{ s//\1/; q; }
21431  	  /^X\(\/\).*/{ s//\1/; q; }
21432  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21433done
21434_ACEOF
21435cat >>$CONFIG_STATUS <<\_ACEOF
21436
21437#
21438# CONFIG_COMMANDS section.
21439#
21440for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21441  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21442  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21443  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21444$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21445	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21446	 X"$ac_dest" : 'X\(//\)$' \| \
21447	 X"$ac_dest" : 'X\(/\)' \| \
21448	 .     : '\(.\)' 2>/dev/null ||
21449echo X"$ac_dest" |
21450    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21451  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21452  	  /^X\(\/\/\)$/{ s//\1/; q; }
21453  	  /^X\(\/\).*/{ s//\1/; q; }
21454  	  s/.*/./; q'`
21455  { if $as_mkdir_p; then
21456    mkdir -p "$ac_dir"
21457  else
21458    as_dir="$ac_dir"
21459    as_dirs=
21460    while test ! -d "$as_dir"; do
21461      as_dirs="$as_dir $as_dirs"
21462      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21463$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21464	 X"$as_dir" : 'X\(//\)[^/]' \| \
21465	 X"$as_dir" : 'X\(//\)$' \| \
21466	 X"$as_dir" : 'X\(/\)' \| \
21467	 .     : '\(.\)' 2>/dev/null ||
21468echo X"$as_dir" |
21469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21470  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21471  	  /^X\(\/\/\)$/{ s//\1/; q; }
21472  	  /^X\(\/\).*/{ s//\1/; q; }
21473  	  s/.*/./; q'`
21474    done
21475    test ! -n "$as_dirs" || mkdir $as_dirs
21476  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21477echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21478   { (exit 1); exit 1; }; }; }
21479
21480  ac_builddir=.
21481
21482if test "$ac_dir" != .; then
21483  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21484  # A "../" for each directory in $ac_dir_suffix.
21485  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21486else
21487  ac_dir_suffix= ac_top_builddir=
21488fi
21489
21490case $srcdir in
21491  .)  # No --srcdir option.  We are building in place.
21492    ac_srcdir=.
21493    if test -z "$ac_top_builddir"; then
21494       ac_top_srcdir=.
21495    else
21496       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21497    fi ;;
21498  [\\/]* | ?:[\\/]* )  # Absolute path.
21499    ac_srcdir=$srcdir$ac_dir_suffix;
21500    ac_top_srcdir=$srcdir ;;
21501  *) # Relative path.
21502    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21503    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21504esac
21505
21506# Do not use `cd foo && pwd` to compute absolute paths, because
21507# the directories may not exist.
21508case `pwd` in
21509.) ac_abs_builddir="$ac_dir";;
21510*)
21511  case "$ac_dir" in
21512  .) ac_abs_builddir=`pwd`;;
21513  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21514  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21515  esac;;
21516esac
21517case $ac_abs_builddir in
21518.) ac_abs_top_builddir=${ac_top_builddir}.;;
21519*)
21520  case ${ac_top_builddir}. in
21521  .) ac_abs_top_builddir=$ac_abs_builddir;;
21522  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21523  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21524  esac;;
21525esac
21526case $ac_abs_builddir in
21527.) ac_abs_srcdir=$ac_srcdir;;
21528*)
21529  case $ac_srcdir in
21530  .) ac_abs_srcdir=$ac_abs_builddir;;
21531  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21532  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21533  esac;;
21534esac
21535case $ac_abs_builddir in
21536.) ac_abs_top_srcdir=$ac_top_srcdir;;
21537*)
21538  case $ac_top_srcdir in
21539  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21540  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21541  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21542  esac;;
21543esac
21544
21545
21546  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21547echo "$as_me: executing $ac_dest commands" >&6;}
21548  case $ac_dest in
21549    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21550  # Strip MF so we end up with the name of the file.
21551  mf=`echo "$mf" | sed -e 's/:.*$//'`
21552  # Check whether this is an Automake generated Makefile or not.
21553  # We used to match only the files named `Makefile.in', but
21554  # some people rename them; so instead we look at the file content.
21555  # Grep'ing the first line is not enough: some people post-process
21556  # each Makefile.in and add a new line on top of each file to say so.
21557  # So let's grep whole file.
21558  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21559    dirpart=`(dirname "$mf") 2>/dev/null ||
21560$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21561	 X"$mf" : 'X\(//\)[^/]' \| \
21562	 X"$mf" : 'X\(//\)$' \| \
21563	 X"$mf" : 'X\(/\)' \| \
21564	 .     : '\(.\)' 2>/dev/null ||
21565echo X"$mf" |
21566    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21567  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21568  	  /^X\(\/\/\)$/{ s//\1/; q; }
21569  	  /^X\(\/\).*/{ s//\1/; q; }
21570  	  s/.*/./; q'`
21571  else
21572    continue
21573  fi
21574  # Extract the definition of DEPDIR, am__include, and am__quote
21575  # from the Makefile without running `make'.
21576  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21577  test -z "$DEPDIR" && continue
21578  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21579  test -z "am__include" && continue
21580  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21581  # When using ansi2knr, U may be empty or an underscore; expand it
21582  U=`sed -n 's/^U = //p' < "$mf"`
21583  # Find all dependency output files, they are included files with
21584  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21585  # simplest approach to changing $(DEPDIR) to its actual value in the
21586  # expansion.
21587  for file in `sed -n "
21588    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21589       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21590    # Make sure the directory exists.
21591    test -f "$dirpart/$file" && continue
21592    fdir=`(dirname "$file") 2>/dev/null ||
21593$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21594	 X"$file" : 'X\(//\)[^/]' \| \
21595	 X"$file" : 'X\(//\)$' \| \
21596	 X"$file" : 'X\(/\)' \| \
21597	 .     : '\(.\)' 2>/dev/null ||
21598echo X"$file" |
21599    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21600  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21601  	  /^X\(\/\/\)$/{ s//\1/; q; }
21602  	  /^X\(\/\).*/{ s//\1/; q; }
21603  	  s/.*/./; q'`
21604    { if $as_mkdir_p; then
21605    mkdir -p $dirpart/$fdir
21606  else
21607    as_dir=$dirpart/$fdir
21608    as_dirs=
21609    while test ! -d "$as_dir"; do
21610      as_dirs="$as_dir $as_dirs"
21611      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21612$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21613	 X"$as_dir" : 'X\(//\)[^/]' \| \
21614	 X"$as_dir" : 'X\(//\)$' \| \
21615	 X"$as_dir" : 'X\(/\)' \| \
21616	 .     : '\(.\)' 2>/dev/null ||
21617echo X"$as_dir" |
21618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21619  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21620  	  /^X\(\/\/\)$/{ s//\1/; q; }
21621  	  /^X\(\/\).*/{ s//\1/; q; }
21622  	  s/.*/./; q'`
21623    done
21624    test ! -n "$as_dirs" || mkdir $as_dirs
21625  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21626echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21627   { (exit 1); exit 1; }; }; }
21628
21629    # echo "creating $dirpart/$file"
21630    echo '# dummy' > "$dirpart/$file"
21631  done
21632done
21633 ;;
21634  esac
21635done
21636_ACEOF
21637
21638cat >>$CONFIG_STATUS <<\_ACEOF
21639
21640{ (exit 0); exit 0; }
21641_ACEOF
21642chmod +x $CONFIG_STATUS
21643ac_clean_files=$ac_clean_files_save
21644
21645
21646# configure is writing to config.log, and then calls config.status.
21647# config.status does its own redirection, appending to config.log.
21648# Unfortunately, on DOS this fails, as config.log is still kept open
21649# by configure, so config.status won't be able to write to it; its
21650# output is simply discarded.  So we exec the FD to /dev/null,
21651# effectively closing config.log, so it can be properly (re)opened and
21652# appended to by config.status.  When coming back to configure, we
21653# need to make the FD available again.
21654if test "$no_create" != yes; then
21655  ac_cs_success=:
21656  ac_config_status_args=
21657  test "$silent" = yes &&
21658    ac_config_status_args="$ac_config_status_args --quiet"
21659  exec 5>/dev/null
21660  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21661  exec 5>>config.log
21662  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21663  # would make configure fail if this is the last instruction.
21664  $ac_cs_success || { (exit 1); exit 1; }
21665fi
21666
21667