1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289       echo_test_string="`eval $cmd`" &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="acinclude.m4"
429ac_default_prefix=/usr
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN all_includes all_libraries AUTODIRS INCLUDEDIR LIBLINEAK PLUGINDIR xosd_config_script XOSD_CFLAGS XOSD_LIBS TOPSUBDIRS LIBOBJS LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826	      localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866	 X"$0" : 'X\(//\)[^/]' \| \
867	 X"$0" : 'X\(//\)$' \| \
868	 X"$0" : 'X\(/\)' \| \
869	 .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948
949#
950# Report the --help message.
951#
952if test "$ac_init_help" = "long"; then
953  # Omit some internal or obsolete options to make the list less imposing.
954  # This message is too long to be a string in the A/UX 3.1 sh.
955  cat <<_ACEOF
956\`configure' configures this package to adapt to many kinds of systems.
957
958Usage: $0 [OPTION]... [VAR=VALUE]...
959
960To assign environment variables (e.g., CC, CFLAGS...), specify them as
961VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963Defaults for the options are specified in brackets.
964
965Configuration:
966  -h, --help              display this help and exit
967      --help=short        display options specific to this package
968      --help=recursive    display the short help of all the included packages
969  -V, --version           display version information and exit
970  -q, --quiet, --silent   do not print \`checking...' messages
971      --cache-file=FILE   cache test results in FILE [disabled]
972  -C, --config-cache      alias for \`--cache-file=config.cache'
973  -n, --no-create         do not create output files
974      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976_ACEOF
977
978  cat <<_ACEOF
979Installation directories:
980  --prefix=PREFIX         install architecture-independent files in PREFIX
981			  [$ac_default_prefix]
982  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983			  [PREFIX]
984
985By default, \`make install' will install all the files in
986\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988for instance \`--prefix=\$HOME'.
989
990For better control, use the options below.
991
992Fine tuning of the installation directories:
993  --bindir=DIR           user executables [EPREFIX/bin]
994  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995  --libexecdir=DIR       program executables [EPREFIX/libexec]
996  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000  --libdir=DIR           object code libraries [EPREFIX/lib]
1001  --includedir=DIR       C header files [PREFIX/include]
1002  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003  --infodir=DIR          info documentation [PREFIX/info]
1004  --mandir=DIR           man documentation [PREFIX/man]
1005_ACEOF
1006
1007  cat <<\_ACEOF
1008
1009Program names:
1010  --program-prefix=PREFIX            prepend PREFIX to installed program names
1011  --program-suffix=SUFFIX            append SUFFIX to installed program names
1012  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014X features:
1015  --x-includes=DIR    X include files are in DIR
1016  --x-libraries=DIR   X library files are in DIR
1017
1018System types:
1019  --build=BUILD     configure for building on BUILD [guessed]
1020  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1021  --target=TARGET   configure for building compilers for TARGET [HOST]
1022_ACEOF
1023fi
1024
1025if test -n "$ac_init_help"; then
1026
1027  cat <<\_ACEOF
1028
1029Optional Features:
1030  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1031  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1032  --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
1033  --disable-debug         disables debug output and debug symbols default=no
1034  --enable-strict         compiles with strict compiler options (may not
1035                          work!)
1036  --disable-warnings      disables compilation with -Wall and similiar
1037  --enable-profile        creates profiling infos default=no
1038  --disable-dependency-tracking  speeds up one-time build
1039  --enable-dependency-tracking   do not reject slow dependency extractors
1040  --enable-pch            enables precompiled header support (currently only
1041                          KCC) default=no
1042  --enable-final          build size optimized apps (experimental - needs lots
1043                          of memory)
1044  --enable-closure        delay template instantiation
1045  --enable-nmcheck        enable automatic namespace cleanness check
1046  --enable-shared[=PKGS]
1047                          build shared libraries [default=yes]
1048  --enable-static[=PKGS]
1049                          build static libraries [default=no]
1050  --enable-libsuffix      /lib directory suffix (64,32,none=default)
1051  --enable-fast-install[=PKGS]
1052                          optimize for fast installation [default=yes]
1053  --disable-libtool-lock  avoid locking (might break parallel builds)
1054
1055Optional Packages:
1056  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1059  --with-pic              try to use only PIC/non-PIC objects [default=use
1060                          both]
1061  --with-tags[=TAGS]
1062                          include additional configurations [automatic]
1063  --with-lineak-includedir=DIR           location of the lineak include directory
1064  --with-x                use the X Window System
1065  --with-lineak-plugindir=DIR           Location of the lineak plugins directory
1066
1067Some influential environment variables:
1068  CC          C compiler command
1069  CFLAGS      C compiler flags
1070  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1071              nonstandard directory <lib dir>
1072  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1073              headers in a nonstandard directory <include dir>
1074  CPP         C preprocessor
1075  CXX         C++ compiler command
1076  CXXFLAGS    C++ compiler flags
1077  CXXCPP      C++ preprocessor
1078  F77         Fortran 77 compiler command
1079  FFLAGS      Fortran 77 compiler flags
1080
1081Use these variables to override the choices made by `configure' or to help
1082it to find libraries and programs with nonstandard names/locations.
1083
1084_ACEOF
1085fi
1086
1087if test "$ac_init_help" = "recursive"; then
1088  # If there are subdirs, report their specific --help.
1089  ac_popdir=`pwd`
1090  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091    test -d $ac_dir || continue
1092    ac_builddir=.
1093
1094if test "$ac_dir" != .; then
1095  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096  # A "../" for each directory in $ac_dir_suffix.
1097  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098else
1099  ac_dir_suffix= ac_top_builddir=
1100fi
1101
1102case $srcdir in
1103  .)  # No --srcdir option.  We are building in place.
1104    ac_srcdir=.
1105    if test -z "$ac_top_builddir"; then
1106       ac_top_srcdir=.
1107    else
1108       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109    fi ;;
1110  [\\/]* | ?:[\\/]* )  # Absolute path.
1111    ac_srcdir=$srcdir$ac_dir_suffix;
1112    ac_top_srcdir=$srcdir ;;
1113  *) # Relative path.
1114    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116esac
1117
1118# Do not use `cd foo && pwd` to compute absolute paths, because
1119# the directories may not exist.
1120case `pwd` in
1121.) ac_abs_builddir="$ac_dir";;
1122*)
1123  case "$ac_dir" in
1124  .) ac_abs_builddir=`pwd`;;
1125  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127  esac;;
1128esac
1129case $ac_abs_builddir in
1130.) ac_abs_top_builddir=${ac_top_builddir}.;;
1131*)
1132  case ${ac_top_builddir}. in
1133  .) ac_abs_top_builddir=$ac_abs_builddir;;
1134  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136  esac;;
1137esac
1138case $ac_abs_builddir in
1139.) ac_abs_srcdir=$ac_srcdir;;
1140*)
1141  case $ac_srcdir in
1142  .) ac_abs_srcdir=$ac_abs_builddir;;
1143  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145  esac;;
1146esac
1147case $ac_abs_builddir in
1148.) ac_abs_top_srcdir=$ac_top_srcdir;;
1149*)
1150  case $ac_top_srcdir in
1151  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154  esac;;
1155esac
1156
1157    cd $ac_dir
1158    # Check for guested configure; otherwise get Cygnus style configure.
1159    if test -f $ac_srcdir/configure.gnu; then
1160      echo
1161      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162    elif test -f $ac_srcdir/configure; then
1163      echo
1164      $SHELL $ac_srcdir/configure  --help=recursive
1165    elif test -f $ac_srcdir/configure.ac ||
1166	   test -f $ac_srcdir/configure.in; then
1167      echo
1168      $ac_configure --help
1169    else
1170      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171    fi
1172    cd "$ac_popdir"
1173  done
1174fi
1175
1176test -n "$ac_init_help" && exit 0
1177if $ac_init_version; then
1178  cat <<\_ACEOF
1179
1180Copyright (C) 2003 Free Software Foundation, Inc.
1181This configure script is free software; the Free Software Foundation
1182gives unlimited permission to copy, distribute and modify it.
1183_ACEOF
1184  exit 0
1185fi
1186exec 5>config.log
1187cat >&5 <<_ACEOF
1188This file contains any messages produced by compilers while
1189running configure, to aid debugging if configure makes a mistake.
1190
1191It was created by $as_me, which was
1192generated by GNU Autoconf 2.59.  Invocation command line was
1193
1194  $ $0 $@
1195
1196_ACEOF
1197{
1198cat <<_ASUNAME
1199## --------- ##
1200## Platform. ##
1201## --------- ##
1202
1203hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1204uname -m = `(uname -m) 2>/dev/null || echo unknown`
1205uname -r = `(uname -r) 2>/dev/null || echo unknown`
1206uname -s = `(uname -s) 2>/dev/null || echo unknown`
1207uname -v = `(uname -v) 2>/dev/null || echo unknown`
1208
1209/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1210/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1211
1212/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1213/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1214/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1215hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1216/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1217/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1218/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1219
1220_ASUNAME
1221
1222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1223for as_dir in $PATH
1224do
1225  IFS=$as_save_IFS
1226  test -z "$as_dir" && as_dir=.
1227  echo "PATH: $as_dir"
1228done
1229
1230} >&5
1231
1232cat >&5 <<_ACEOF
1233
1234
1235## ----------- ##
1236## Core tests. ##
1237## ----------- ##
1238
1239_ACEOF
1240
1241
1242# Keep a trace of the command line.
1243# Strip out --no-create and --no-recursion so they do not pile up.
1244# Strip out --silent because we don't want to record it for future runs.
1245# Also quote any args containing shell meta-characters.
1246# Make two passes to allow for proper duplicate-argument suppression.
1247ac_configure_args=
1248ac_configure_args0=
1249ac_configure_args1=
1250ac_sep=
1251ac_must_keep_next=false
1252for ac_pass in 1 2
1253do
1254  for ac_arg
1255  do
1256    case $ac_arg in
1257    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1258    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259    | -silent | --silent | --silen | --sile | --sil)
1260      continue ;;
1261    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1263    esac
1264    case $ac_pass in
1265    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1266    2)
1267      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1268      if test $ac_must_keep_next = true; then
1269	ac_must_keep_next=false # Got value, back to normal.
1270      else
1271	case $ac_arg in
1272	  *=* | --config-cache | -C | -disable-* | --disable-* \
1273	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1274	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1275	  | -with-* | --with-* | -without-* | --without-* | --x)
1276	    case "$ac_configure_args0 " in
1277	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1278	    esac
1279	    ;;
1280	  -* ) ac_must_keep_next=true ;;
1281	esac
1282      fi
1283      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1284      # Get rid of the leading space.
1285      ac_sep=" "
1286      ;;
1287    esac
1288  done
1289done
1290$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1291$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1292
1293# When interrupted or exit'd, cleanup temporary files, and complete
1294# config.log.  We remove comments because anyway the quotes in there
1295# would cause problems or look ugly.
1296# WARNING: Be sure not to use single quotes in there, as some shells,
1297# such as our DU 5.0 friend, will then `close' the trap.
1298trap 'exit_status=$?
1299  # Save into config.log some information that might help in debugging.
1300  {
1301    echo
1302
1303    cat <<\_ASBOX
1304## ---------------- ##
1305## Cache variables. ##
1306## ---------------- ##
1307_ASBOX
1308    echo
1309    # The following way of writing the cache mishandles newlines in values,
1310{
1311  (set) 2>&1 |
1312    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1313    *ac_space=\ *)
1314      sed -n \
1315	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1316	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1317      ;;
1318    *)
1319      sed -n \
1320	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1321      ;;
1322    esac;
1323}
1324    echo
1325
1326    cat <<\_ASBOX
1327## ----------------- ##
1328## Output variables. ##
1329## ----------------- ##
1330_ASBOX
1331    echo
1332    for ac_var in $ac_subst_vars
1333    do
1334      eval ac_val=$`echo $ac_var`
1335      echo "$ac_var='"'"'$ac_val'"'"'"
1336    done | sort
1337    echo
1338
1339    if test -n "$ac_subst_files"; then
1340      cat <<\_ASBOX
1341## ------------- ##
1342## Output files. ##
1343## ------------- ##
1344_ASBOX
1345      echo
1346      for ac_var in $ac_subst_files
1347      do
1348	eval ac_val=$`echo $ac_var`
1349	echo "$ac_var='"'"'$ac_val'"'"'"
1350      done | sort
1351      echo
1352    fi
1353
1354    if test -s confdefs.h; then
1355      cat <<\_ASBOX
1356## ----------- ##
1357## confdefs.h. ##
1358## ----------- ##
1359_ASBOX
1360      echo
1361      sed "/^$/d" confdefs.h | sort
1362      echo
1363    fi
1364    test "$ac_signal" != 0 &&
1365      echo "$as_me: caught signal $ac_signal"
1366    echo "$as_me: exit $exit_status"
1367  } >&5
1368  rm -f core *.core &&
1369  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1370    exit $exit_status
1371     ' 0
1372for ac_signal in 1 2 13 15; do
1373  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1374done
1375ac_signal=0
1376
1377# confdefs.h avoids OS command line length limits that DEFS can exceed.
1378rm -rf conftest* confdefs.h
1379# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1380echo >confdefs.h
1381
1382# Predefined preprocessor variables.
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_NAME "$PACKAGE_NAME"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_VERSION "$PACKAGE_VERSION"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_STRING "$PACKAGE_STRING"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1406_ACEOF
1407
1408
1409# Let the site file select an alternate cache file if it wants to.
1410# Prefer explicitly selected file to automatically selected ones.
1411if test -z "$CONFIG_SITE"; then
1412  if test "x$prefix" != xNONE; then
1413    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1414  else
1415    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1416  fi
1417fi
1418for ac_site_file in $CONFIG_SITE; do
1419  if test -r "$ac_site_file"; then
1420    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1421echo "$as_me: loading site script $ac_site_file" >&6;}
1422    sed 's/^/| /' "$ac_site_file" >&5
1423    . "$ac_site_file"
1424  fi
1425done
1426
1427if test -r "$cache_file"; then
1428  # Some versions of bash will fail to source /dev/null (special
1429  # files actually), so we avoid doing that.
1430  if test -f "$cache_file"; then
1431    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1432echo "$as_me: loading cache $cache_file" >&6;}
1433    case $cache_file in
1434      [\\/]* | ?:[\\/]* ) . $cache_file;;
1435      *)                      . ./$cache_file;;
1436    esac
1437  fi
1438else
1439  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1440echo "$as_me: creating cache $cache_file" >&6;}
1441  >$cache_file
1442fi
1443
1444# Check that the precious variables saved in the cache have kept the same
1445# value.
1446ac_cache_corrupted=false
1447for ac_var in `(set) 2>&1 |
1448	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1449  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1450  eval ac_new_set=\$ac_env_${ac_var}_set
1451  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1452  eval ac_new_val="\$ac_env_${ac_var}_value"
1453  case $ac_old_set,$ac_new_set in
1454    set,)
1455      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1457      ac_cache_corrupted=: ;;
1458    ,set)
1459      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1461      ac_cache_corrupted=: ;;
1462    ,);;
1463    *)
1464      if test "x$ac_old_val" != "x$ac_new_val"; then
1465	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1466echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1467	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1468echo "$as_me:   former value:  $ac_old_val" >&2;}
1469	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1470echo "$as_me:   current value: $ac_new_val" >&2;}
1471	ac_cache_corrupted=:
1472      fi;;
1473  esac
1474  # Pass precious variables to config.status.
1475  if test "$ac_new_set" = set; then
1476    case $ac_new_val in
1477    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1478      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1479    *) ac_arg=$ac_var=$ac_new_val ;;
1480    esac
1481    case " $ac_configure_args " in
1482      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1483      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1484    esac
1485  fi
1486done
1487if $ac_cache_corrupted; then
1488  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1489echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1490  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1491echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1492   { (exit 1); exit 1; }; }
1493fi
1494
1495ac_ext=c
1496ac_cpp='$CPP $CPPFLAGS'
1497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1499ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519ac_aux_dir=
1520for ac_dir in admin $srcdir/admin; do
1521  if test -f $ac_dir/install-sh; then
1522    ac_aux_dir=$ac_dir
1523    ac_install_sh="$ac_aux_dir/install-sh -c"
1524    break
1525  elif test -f $ac_dir/install.sh; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/install.sh -c"
1528    break
1529  elif test -f $ac_dir/shtool; then
1530    ac_aux_dir=$ac_dir
1531    ac_install_sh="$ac_aux_dir/shtool install -c"
1532    break
1533  fi
1534done
1535if test -z "$ac_aux_dir"; then
1536  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544
1545unset CDPATH
1546
1547# Make sure we can run config.sub.
1548$ac_config_sub sun4 >/dev/null 2>&1 ||
1549  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1550echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1551   { (exit 1); exit 1; }; }
1552
1553echo "$as_me:$LINENO: checking build system type" >&5
1554echo $ECHO_N "checking build system type... $ECHO_C" >&6
1555if test "${ac_cv_build+set}" = set; then
1556  echo $ECHO_N "(cached) $ECHO_C" >&6
1557else
1558  ac_cv_build_alias=$build_alias
1559test -z "$ac_cv_build_alias" &&
1560  ac_cv_build_alias=`$ac_config_guess`
1561test -z "$ac_cv_build_alias" &&
1562  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1563echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1564   { (exit 1); exit 1; }; }
1565ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1566  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1567echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1568   { (exit 1); exit 1; }; }
1569
1570fi
1571echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572echo "${ECHO_T}$ac_cv_build" >&6
1573build=$ac_cv_build
1574build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1577
1578
1579echo "$as_me:$LINENO: checking host system type" >&5
1580echo $ECHO_N "checking host system type... $ECHO_C" >&6
1581if test "${ac_cv_host+set}" = set; then
1582  echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584  ac_cv_host_alias=$host_alias
1585test -z "$ac_cv_host_alias" &&
1586  ac_cv_host_alias=$ac_cv_build_alias
1587ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1588  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1590   { (exit 1); exit 1; }; }
1591
1592fi
1593echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1594echo "${ECHO_T}$ac_cv_host" >&6
1595host=$ac_cv_host
1596host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601echo "$as_me:$LINENO: checking target system type" >&5
1602echo $ECHO_N "checking target system type... $ECHO_C" >&6
1603if test "${ac_cv_target+set}" = set; then
1604  echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606  ac_cv_target_alias=$target_alias
1607test "x$ac_cv_target_alias" = "x" &&
1608  ac_cv_target_alias=$ac_cv_host_alias
1609ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1610  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1612   { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1616echo "${ECHO_T}$ac_cv_target" >&6
1617target=$ac_cv_target
1618target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623# The aliases save the names the user supplied, while $host etc.
1624# will get canonicalized.
1625test -n "$target_alias" &&
1626  test "$program_prefix$program_suffix$program_transform_name" = \
1627    NONENONEs,x,x, &&
1628  program_prefix=${target_alias}-
1629test "$program_prefix" != NONE &&
1630  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1631# Use a double $ so make ignores it.
1632test "$program_suffix" != NONE &&
1633  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1634# Double any \ or $.  echo might interpret backslashes.
1635# By default was `s,x,x', remove it if useless.
1636cat <<\_ACEOF >conftest.sed
1637s/[\\$]/&&/g;s/;s,x,x,$//
1638_ACEOF
1639program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1640rm conftest.sed
1641
1642
1643am__api_version="1.8"
1644
1645
1646          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
1647  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
1648  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
1649  # Find a good install program.  We prefer a C program (faster),
1650# so one script is as good as another.  But avoid the broken or
1651# incompatible versions:
1652# SysV /etc/install, /usr/sbin/install
1653# SunOS /usr/etc/install
1654# IRIX /sbin/install
1655# AIX /bin/install
1656# AmigaOS /C/install, which installs bootblocks on floppy discs
1657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660# OS/2's system install, which has a completely different semantic
1661# ./install, which can be erroneously created by make from ./install.sh.
1662echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1663echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1664if test -z "$INSTALL"; then
1665if test "${ac_cv_path_install+set}" = set; then
1666  echo $ECHO_N "(cached) $ECHO_C" >&6
1667else
1668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669for as_dir in $PATH
1670do
1671  IFS=$as_save_IFS
1672  test -z "$as_dir" && as_dir=.
1673  # Account for people who put trailing slashes in PATH elements.
1674case $as_dir/ in
1675  ./ | .// | /cC/* | \
1676  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1677  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1678  /usr/ucb/* ) ;;
1679  *)
1680    # OSF1 and SCO ODT 3.0 have their own names for install.
1681    # Don't use installbsd from OSF since it installs stuff as root
1682    # by default.
1683    for ac_prog in ginstall scoinst install; do
1684      for ac_exec_ext in '' $ac_executable_extensions; do
1685	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1686	  if test $ac_prog = install &&
1687	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688	    # AIX install.  It has an incompatible calling convention.
1689	    :
1690	  elif test $ac_prog = install &&
1691	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692	    # program-specific install script used by HP pwplus--don't use.
1693	    :
1694	  else
1695	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1696	    break 3
1697	  fi
1698	fi
1699      done
1700    done
1701    ;;
1702esac
1703done
1704
1705
1706fi
1707  if test "${ac_cv_path_install+set}" = set; then
1708    INSTALL=$ac_cv_path_install
1709  else
1710    # As a last resort, use the slow shell script.  We don't cache a
1711    # path for INSTALL within a source directory, because that will
1712    # break other packages using the cache if that directory is
1713    # removed, or if the path is relative.
1714    INSTALL=$ac_install_sh
1715  fi
1716fi
1717echo "$as_me:$LINENO: result: $INSTALL" >&5
1718echo "${ECHO_T}$INSTALL" >&6
1719
1720# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1721# It thinks the first close brace ends the variable substitution.
1722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1723
1724test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1725
1726test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1727
1728
1729  if test -z "$kde_save_INSTALL_given" ; then
1730    # OK, user hasn't given any INSTALL, autoconf found one for us
1731    # now we test, if it supports the -p flag
1732    echo "$as_me:$LINENO: checking for -p flag to install" >&5
1733echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
1734    rm -f confinst.$$.* > /dev/null 2>&1
1735    echo "Testtest" > confinst.$$.orig
1736    ac_res=no
1737    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
1738      if test -f confinst.$$.new ; then
1739        # OK, -p seems to do no harm to install
1740	INSTALL="${INSTALL} -p"
1741	ac_res=yes
1742      fi
1743    fi
1744    rm -f confinst.$$.*
1745    echo "$as_me:$LINENO: result: $ac_res" >&5
1746echo "${ECHO_T}$ac_res" >&6
1747  fi
1748
1749  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
1750    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
1751  fi
1752  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
1753    INSTALL_SCRIPT='${INSTALL}'
1754  fi
1755
1756echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1757echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1758# Just in case
1759sleep 1
1760echo timestamp > conftest.file
1761# Do `set' in a subshell so we don't clobber the current shell's
1762# arguments.  Must try -L first in case configure is actually a
1763# symlink; some systems play weird games with the mod time of symlinks
1764# (eg FreeBSD returns the mod time of the symlink's containing
1765# directory).
1766if (
1767   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1768   if test "$*" = "X"; then
1769      # -L didn't work.
1770      set X `ls -t $srcdir/configure conftest.file`
1771   fi
1772   rm -f conftest.file
1773   if test "$*" != "X $srcdir/configure conftest.file" \
1774      && test "$*" != "X conftest.file $srcdir/configure"; then
1775
1776      # If neither matched, then we have a broken ls.  This can happen
1777      # if, for instance, CONFIG_SHELL is bash and it inherits a
1778      # broken ls alias from the environment.  This has actually
1779      # happened.  Such a system could not be considered "sane".
1780      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1781alias in your environment" >&5
1782echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1783alias in your environment" >&2;}
1784   { (exit 1); exit 1; }; }
1785   fi
1786
1787   test "$2" = conftest.file
1788   )
1789then
1790   # Ok.
1791   :
1792else
1793   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1794Check your system clock" >&5
1795echo "$as_me: error: newly created file is older than distributed files!
1796Check your system clock" >&2;}
1797   { (exit 1); exit 1; }; }
1798fi
1799echo "$as_me:$LINENO: result: yes" >&5
1800echo "${ECHO_T}yes" >&6
1801# expand $ac_aux_dir to an absolute path
1802am_aux_dir=`cd $ac_aux_dir && pwd`
1803
1804test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1805# Use eval to expand $SHELL
1806if eval "$MISSING --run true"; then
1807  am_missing_run="$MISSING --run "
1808else
1809  am_missing_run=
1810  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1811echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1812fi
1813
1814if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1815  # Keeping the `.' argument allows $(mkdir_p) to be used without
1816  # argument.  Indeed, we sometimes output rules like
1817  #   $(mkdir_p) $(somedir)
1818  # where $(somedir) is conditionally defined.
1819  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1820  # expensive solution, as it forces Make to start a sub-shell.)
1821  mkdir_p='mkdir -p -- .'
1822else
1823  # On NextStep and OpenStep, the `mkdir' command does not
1824  # recognize any option.  It will interpret all options as
1825  # directories to create, and then abort because `.' already
1826  # exists.
1827  for d in ./-p ./--version;
1828  do
1829    test -d $d && rmdir $d
1830  done
1831  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1832  if test -f "$ac_aux_dir/mkinstalldirs"; then
1833    mkdir_p='$(mkinstalldirs)'
1834  else
1835    mkdir_p='$(install_sh) -d'
1836  fi
1837fi
1838
1839for ac_prog in gawk mawk nawk awk
1840do
1841  # Extract the first word of "$ac_prog", so it can be a program name with args.
1842set dummy $ac_prog; ac_word=$2
1843echo "$as_me:$LINENO: checking for $ac_word" >&5
1844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845if test "${ac_cv_prog_AWK+set}" = set; then
1846  echo $ECHO_N "(cached) $ECHO_C" >&6
1847else
1848  if test -n "$AWK"; then
1849  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1850else
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854  IFS=$as_save_IFS
1855  test -z "$as_dir" && as_dir=.
1856  for ac_exec_ext in '' $ac_executable_extensions; do
1857  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858    ac_cv_prog_AWK="$ac_prog"
1859    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860    break 2
1861  fi
1862done
1863done
1864
1865fi
1866fi
1867AWK=$ac_cv_prog_AWK
1868if test -n "$AWK"; then
1869  echo "$as_me:$LINENO: result: $AWK" >&5
1870echo "${ECHO_T}$AWK" >&6
1871else
1872  echo "$as_me:$LINENO: result: no" >&5
1873echo "${ECHO_T}no" >&6
1874fi
1875
1876  test -n "$AWK" && break
1877done
1878
1879echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1880echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1881set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1882if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1883  echo $ECHO_N "(cached) $ECHO_C" >&6
1884else
1885  cat >conftest.make <<\_ACEOF
1886all:
1887	@echo 'ac_maketemp="$(MAKE)"'
1888_ACEOF
1889# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1890eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1891if test -n "$ac_maketemp"; then
1892  eval ac_cv_prog_make_${ac_make}_set=yes
1893else
1894  eval ac_cv_prog_make_${ac_make}_set=no
1895fi
1896rm -f conftest.make
1897fi
1898if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1899  echo "$as_me:$LINENO: result: yes" >&5
1900echo "${ECHO_T}yes" >&6
1901  SET_MAKE=
1902else
1903  echo "$as_me:$LINENO: result: no" >&5
1904echo "${ECHO_T}no" >&6
1905  SET_MAKE="MAKE=${MAKE-make}"
1906fi
1907
1908rm -rf .tst 2>/dev/null
1909mkdir .tst 2>/dev/null
1910if test -d .tst; then
1911  am__leading_dot=.
1912else
1913  am__leading_dot=_
1914fi
1915rmdir .tst 2>/dev/null
1916
1917# test to see if srcdir already configured
1918if test "`cd $srcdir && pwd`" != "`pwd`" &&
1919   test -f $srcdir/config.status; then
1920  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1921echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1922   { (exit 1); exit 1; }; }
1923fi
1924
1925# test whether we have cygpath
1926if test -z "$CYGPATH_W"; then
1927  if (cygpath --version) >/dev/null 2>/dev/null; then
1928    CYGPATH_W='cygpath -w'
1929  else
1930    CYGPATH_W=echo
1931  fi
1932fi
1933
1934
1935# Define the identity of the package.
1936 PACKAGE=lineak_xosdplugin
1937 VERSION=0.9
1938
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE "$PACKAGE"
1942_ACEOF
1943
1944
1945cat >>confdefs.h <<_ACEOF
1946#define VERSION "$VERSION"
1947_ACEOF
1948
1949# Some tools Automake needs.
1950
1951ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1952
1953
1954AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1955
1956
1957AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1958
1959
1960AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1961
1962
1963MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1964
1965
1966AMTAR=${AMTAR-"${am_missing_run}tar"}
1967
1968install_sh=${install_sh-"$am_aux_dir/install-sh"}
1969
1970# Installed binaries are usually stripped using `strip' when the user
1971# run `make install-strip'.  However `strip' might not be the right
1972# tool to use in cross-compilation environments, therefore Automake
1973# will honor the `STRIP' environment variable to overrule this program.
1974if test "$cross_compiling" != no; then
1975  if test -n "$ac_tool_prefix"; then
1976  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1977set dummy ${ac_tool_prefix}strip; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_STRIP+set}" = set; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  if test -n "$STRIP"; then
1984  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1985else
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989  IFS=$as_save_IFS
1990  test -z "$as_dir" && as_dir=.
1991  for ac_exec_ext in '' $ac_executable_extensions; do
1992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995    break 2
1996  fi
1997done
1998done
1999
2000fi
2001fi
2002STRIP=$ac_cv_prog_STRIP
2003if test -n "$STRIP"; then
2004  echo "$as_me:$LINENO: result: $STRIP" >&5
2005echo "${ECHO_T}$STRIP" >&6
2006else
2007  echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6
2009fi
2010
2011fi
2012if test -z "$ac_cv_prog_STRIP"; then
2013  ac_ct_STRIP=$STRIP
2014  # Extract the first word of "strip", so it can be a program name with args.
2015set dummy strip; ac_word=$2
2016echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2019  echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021  if test -n "$ac_ct_STRIP"; then
2022  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2023else
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027  IFS=$as_save_IFS
2028  test -z "$as_dir" && as_dir=.
2029  for ac_exec_ext in '' $ac_executable_extensions; do
2030  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031    ac_cv_prog_ac_ct_STRIP="strip"
2032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033    break 2
2034  fi
2035done
2036done
2037
2038  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2039fi
2040fi
2041ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2042if test -n "$ac_ct_STRIP"; then
2043  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2044echo "${ECHO_T}$ac_ct_STRIP" >&6
2045else
2046  echo "$as_me:$LINENO: result: no" >&5
2047echo "${ECHO_T}no" >&6
2048fi
2049
2050  STRIP=$ac_ct_STRIP
2051else
2052  STRIP="$ac_cv_prog_STRIP"
2053fi
2054
2055fi
2056INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2057
2058# We need awk for the "check" target.  The system "awk" is bad on
2059# some platforms.
2060
2061
2062
2063
2064
2065
2066if test "x$prefix" = "xNONE"; then
2067  prefix=$ac_default_prefix
2068  ac_configure_args="$ac_configure_args --prefix $prefix"
2069fi
2070
2071          ac_config_headers="$ac_config_headers config.h"
2072
2073DEPDIR="${am__leading_dot}deps"
2074
2075          ac_config_commands="$ac_config_commands depfiles"
2076
2077
2078am_make=${MAKE-make}
2079cat > confinc << 'END'
2080am__doit:
2081	@echo done
2082.PHONY: am__doit
2083END
2084# If we don't find an include directive, just comment out the code.
2085echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2086echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2087am__include="#"
2088am__quote=
2089_am_result=none
2090# First try GNU make style include.
2091echo "include confinc" > confmf
2092# We grep out `Entering directory' and `Leaving directory'
2093# messages which can occur if `w' ends up in MAKEFLAGS.
2094# In particular we don't look at `^make:' because GNU make might
2095# be invoked under some other name (usually "gmake"), in which
2096# case it prints its new name instead of `make'.
2097if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2098   am__include=include
2099   am__quote=
2100   _am_result=GNU
2101fi
2102# Now try BSD make style include.
2103if test "$am__include" = "#"; then
2104   echo '.include "confinc"' > confmf
2105   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2106      am__include=.include
2107      am__quote="\""
2108      _am_result=BSD
2109   fi
2110fi
2111
2112
2113echo "$as_me:$LINENO: result: $_am_result" >&5
2114echo "${ECHO_T}$_am_result" >&6
2115rm -f confinc confmf
2116
2117# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2118if test "${enable_dependency_tracking+set}" = set; then
2119  enableval="$enable_dependency_tracking"
2120
2121fi;
2122if test "x$enable_dependency_tracking" != xno; then
2123  am_depcomp="$ac_aux_dir/depcomp"
2124  AMDEPBACKSLASH='\'
2125fi
2126
2127
2128if test "x$enable_dependency_tracking" != xno; then
2129  AMDEP_TRUE=
2130  AMDEP_FALSE='#'
2131else
2132  AMDEP_TRUE='#'
2133  AMDEP_FALSE=
2134fi
2135
2136
2137
2138
2139
2140
2141  # Check whether --enable-debug or --disable-debug was given.
2142if test "${enable_debug+set}" = set; then
2143  enableval="$enable_debug"
2144
2145    case $enableval in
2146      yes)
2147        kde_use_debug_code="yes"
2148        kde_use_debug_define=no
2149        ;;
2150      full)
2151        kde_use_debug_code="full"
2152        kde_use_debug_define=no
2153        ;;
2154      *)
2155        kde_use_debug_code="no"
2156        kde_use_debug_define=yes
2157        ;;
2158    esac
2159
2160else
2161  kde_use_debug_code="no"
2162      kde_use_debug_define=no
2163
2164fi;
2165
2166    # Check whether --enable-dummyoption or --disable-dummyoption was given.
2167if test "${enable_dummyoption+set}" = set; then
2168  enableval="$enable_dummyoption"
2169
2170fi;
2171
2172  # Check whether --enable-strict or --disable-strict was given.
2173if test "${enable_strict+set}" = set; then
2174  enableval="$enable_strict"
2175
2176    if test $enableval = "no"; then
2177         kde_use_strict_options="no"
2178       else
2179         kde_use_strict_options="yes"
2180    fi
2181
2182else
2183  kde_use_strict_options="no"
2184fi;
2185
2186  # Check whether --enable-warnings or --disable-warnings was given.
2187if test "${enable_warnings+set}" = set; then
2188  enableval="$enable_warnings"
2189
2190    if test $enableval = "no"; then
2191         kde_use_warnings="no"
2192       else
2193         kde_use_warnings="yes"
2194    fi
2195
2196else
2197  kde_use_warnings="yes"
2198fi;
2199
2200    if test "$kde_use_debug_code" != "no"; then
2201    kde_use_warnings=yes
2202  fi
2203
2204  # Check whether --enable-profile or --disable-profile was given.
2205if test "${enable_profile+set}" = set; then
2206  enableval="$enable_profile"
2207  kde_use_profiling=$enableval
2208else
2209  kde_use_profiling="no"
2210
2211fi;
2212
2213    CFLAGS=" $CFLAGS"
2214
2215  ac_ext=c
2216ac_cpp='$CPP $CPPFLAGS'
2217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220if test -n "$ac_tool_prefix"; then
2221  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2222set dummy ${ac_tool_prefix}gcc; ac_word=$2
2223echo "$as_me:$LINENO: checking for $ac_word" >&5
2224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2225if test "${ac_cv_prog_CC+set}" = set; then
2226  echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228  if test -n "$CC"; then
2229  ac_cv_prog_CC="$CC" # Let the user override the test.
2230else
2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232for as_dir in $PATH
2233do
2234  IFS=$as_save_IFS
2235  test -z "$as_dir" && as_dir=.
2236  for ac_exec_ext in '' $ac_executable_extensions; do
2237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2238    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240    break 2
2241  fi
2242done
2243done
2244
2245fi
2246fi
2247CC=$ac_cv_prog_CC
2248if test -n "$CC"; then
2249  echo "$as_me:$LINENO: result: $CC" >&5
2250echo "${ECHO_T}$CC" >&6
2251else
2252  echo "$as_me:$LINENO: result: no" >&5
2253echo "${ECHO_T}no" >&6
2254fi
2255
2256fi
2257if test -z "$ac_cv_prog_CC"; then
2258  ac_ct_CC=$CC
2259  # Extract the first word of "gcc", so it can be a program name with args.
2260set dummy gcc; ac_word=$2
2261echo "$as_me:$LINENO: checking for $ac_word" >&5
2262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2263if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2264  echo $ECHO_N "(cached) $ECHO_C" >&6
2265else
2266  if test -n "$ac_ct_CC"; then
2267  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268else
2269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2270for as_dir in $PATH
2271do
2272  IFS=$as_save_IFS
2273  test -z "$as_dir" && as_dir=.
2274  for ac_exec_ext in '' $ac_executable_extensions; do
2275  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2276    ac_cv_prog_ac_ct_CC="gcc"
2277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278    break 2
2279  fi
2280done
2281done
2282
2283fi
2284fi
2285ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286if test -n "$ac_ct_CC"; then
2287  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288echo "${ECHO_T}$ac_ct_CC" >&6
2289else
2290  echo "$as_me:$LINENO: result: no" >&5
2291echo "${ECHO_T}no" >&6
2292fi
2293
2294  CC=$ac_ct_CC
2295else
2296  CC="$ac_cv_prog_CC"
2297fi
2298
2299if test -z "$CC"; then
2300  if test -n "$ac_tool_prefix"; then
2301  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2302set dummy ${ac_tool_prefix}cc; ac_word=$2
2303echo "$as_me:$LINENO: checking for $ac_word" >&5
2304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2305if test "${ac_cv_prog_CC+set}" = set; then
2306  echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308  if test -n "$CC"; then
2309  ac_cv_prog_CC="$CC" # Let the user override the test.
2310else
2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312for as_dir in $PATH
2313do
2314  IFS=$as_save_IFS
2315  test -z "$as_dir" && as_dir=.
2316  for ac_exec_ext in '' $ac_executable_extensions; do
2317  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318    ac_cv_prog_CC="${ac_tool_prefix}cc"
2319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320    break 2
2321  fi
2322done
2323done
2324
2325fi
2326fi
2327CC=$ac_cv_prog_CC
2328if test -n "$CC"; then
2329  echo "$as_me:$LINENO: result: $CC" >&5
2330echo "${ECHO_T}$CC" >&6
2331else
2332  echo "$as_me:$LINENO: result: no" >&5
2333echo "${ECHO_T}no" >&6
2334fi
2335
2336fi
2337if test -z "$ac_cv_prog_CC"; then
2338  ac_ct_CC=$CC
2339  # Extract the first word of "cc", so it can be a program name with args.
2340set dummy cc; ac_word=$2
2341echo "$as_me:$LINENO: checking for $ac_word" >&5
2342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2343if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  if test -n "$ac_ct_CC"; then
2347  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2348else
2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352  IFS=$as_save_IFS
2353  test -z "$as_dir" && as_dir=.
2354  for ac_exec_ext in '' $ac_executable_extensions; do
2355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2356    ac_cv_prog_ac_ct_CC="cc"
2357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358    break 2
2359  fi
2360done
2361done
2362
2363fi
2364fi
2365ac_ct_CC=$ac_cv_prog_ac_ct_CC
2366if test -n "$ac_ct_CC"; then
2367  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2368echo "${ECHO_T}$ac_ct_CC" >&6
2369else
2370  echo "$as_me:$LINENO: result: no" >&5
2371echo "${ECHO_T}no" >&6
2372fi
2373
2374  CC=$ac_ct_CC
2375else
2376  CC="$ac_cv_prog_CC"
2377fi
2378
2379fi
2380if test -z "$CC"; then
2381  # Extract the first word of "cc", so it can be a program name with args.
2382set dummy cc; ac_word=$2
2383echo "$as_me:$LINENO: checking for $ac_word" >&5
2384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2385if test "${ac_cv_prog_CC+set}" = set; then
2386  echo $ECHO_N "(cached) $ECHO_C" >&6
2387else
2388  if test -n "$CC"; then
2389  ac_cv_prog_CC="$CC" # Let the user override the test.
2390else
2391  ac_prog_rejected=no
2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393for as_dir in $PATH
2394do
2395  IFS=$as_save_IFS
2396  test -z "$as_dir" && as_dir=.
2397  for ac_exec_ext in '' $ac_executable_extensions; do
2398  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2399    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2400       ac_prog_rejected=yes
2401       continue
2402     fi
2403    ac_cv_prog_CC="cc"
2404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405    break 2
2406  fi
2407done
2408done
2409
2410if test $ac_prog_rejected = yes; then
2411  # We found a bogon in the path, so make sure we never use it.
2412  set dummy $ac_cv_prog_CC
2413  shift
2414  if test $# != 0; then
2415    # We chose a different compiler from the bogus one.
2416    # However, it has the same basename, so the bogon will be chosen
2417    # first if we set CC to just the basename; use the full file name.
2418    shift
2419    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2420  fi
2421fi
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
2426  echo "$as_me:$LINENO: result: $CC" >&5
2427echo "${ECHO_T}$CC" >&6
2428else
2429  echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6
2431fi
2432
2433fi
2434if test -z "$CC"; then
2435  if test -n "$ac_tool_prefix"; then
2436  for ac_prog in cl
2437  do
2438    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442if test "${ac_cv_prog_CC+set}" = set; then
2443  echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445  if test -n "$CC"; then
2446  ac_cv_prog_CC="$CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451  IFS=$as_save_IFS
2452  test -z "$as_dir" && as_dir=.
2453  for ac_exec_ext in '' $ac_executable_extensions; do
2454  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457    break 2
2458  fi
2459done
2460done
2461
2462fi
2463fi
2464CC=$ac_cv_prog_CC
2465if test -n "$CC"; then
2466  echo "$as_me:$LINENO: result: $CC" >&5
2467echo "${ECHO_T}$CC" >&6
2468else
2469  echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
2471fi
2472
2473    test -n "$CC" && break
2474  done
2475fi
2476if test -z "$CC"; then
2477  ac_ct_CC=$CC
2478  for ac_prog in cl
2479do
2480  # Extract the first word of "$ac_prog", so it can be a program name with args.
2481set dummy $ac_prog; ac_word=$2
2482echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2485  echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487  if test -n "$ac_ct_CC"; then
2488  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493  IFS=$as_save_IFS
2494  test -z "$as_dir" && as_dir=.
2495  for ac_exec_ext in '' $ac_executable_extensions; do
2496  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497    ac_cv_prog_ac_ct_CC="$ac_prog"
2498    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499    break 2
2500  fi
2501done
2502done
2503
2504fi
2505fi
2506ac_ct_CC=$ac_cv_prog_ac_ct_CC
2507if test -n "$ac_ct_CC"; then
2508  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2509echo "${ECHO_T}$ac_ct_CC" >&6
2510else
2511  echo "$as_me:$LINENO: result: no" >&5
2512echo "${ECHO_T}no" >&6
2513fi
2514
2515  test -n "$ac_ct_CC" && break
2516done
2517
2518  CC=$ac_ct_CC
2519fi
2520
2521fi
2522
2523
2524test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2525See \`config.log' for more details." >&5
2526echo "$as_me: error: no acceptable C compiler found in \$PATH
2527See \`config.log' for more details." >&2;}
2528   { (exit 1); exit 1; }; }
2529
2530# Provide some information about the compiler.
2531echo "$as_me:$LINENO:" \
2532     "checking for C compiler version" >&5
2533ac_compiler=`set X $ac_compile; echo $2`
2534{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2535  (eval $ac_compiler --version </dev/null >&5) 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }
2539{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2540  (eval $ac_compiler -v </dev/null >&5) 2>&5
2541  ac_status=$?
2542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); }
2544{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2545  (eval $ac_compiler -V </dev/null >&5) 2>&5
2546  ac_status=$?
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); }
2549
2550cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h.  */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h.  */
2556
2557int
2558main ()
2559{
2560
2561  ;
2562  return 0;
2563}
2564_ACEOF
2565ac_clean_files_save=$ac_clean_files
2566ac_clean_files="$ac_clean_files a.out a.exe b.out"
2567# Try to create an executable without -o first, disregard a.out.
2568# It will help us diagnose broken compilers, and finding out an intuition
2569# of exeext.
2570echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2571echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2572ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2573if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2574  (eval $ac_link_default) 2>&5
2575  ac_status=$?
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); }; then
2578  # Find the output, starting from the most likely.  This scheme is
2579# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2580# resort.
2581
2582# Be careful to initialize this variable, since it used to be cached.
2583# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2584ac_cv_exeext=
2585# b.out is created by i960 compilers.
2586for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2587do
2588  test -f "$ac_file" || continue
2589  case $ac_file in
2590    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2591	;;
2592    conftest.$ac_ext )
2593	# This is the source file.
2594	;;
2595    [ab].out )
2596	# We found the default executable, but exeext='' is most
2597	# certainly right.
2598	break;;
2599    *.* )
2600	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2601	# FIXME: I believe we export ac_cv_exeext for Libtool,
2602	# but it would be cool to find out if it's true.  Does anybody
2603	# maintain Libtool? --akim.
2604	export ac_cv_exeext
2605	break;;
2606    * )
2607	break;;
2608  esac
2609done
2610else
2611  echo "$as_me: failed program was:" >&5
2612sed 's/^/| /' conftest.$ac_ext >&5
2613
2614{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2615See \`config.log' for more details." >&5
2616echo "$as_me: error: C compiler cannot create executables
2617See \`config.log' for more details." >&2;}
2618   { (exit 77); exit 77; }; }
2619fi
2620
2621ac_exeext=$ac_cv_exeext
2622echo "$as_me:$LINENO: result: $ac_file" >&5
2623echo "${ECHO_T}$ac_file" >&6
2624
2625# Check the compiler produces executables we can run.  If not, either
2626# the compiler is broken, or we cross compile.
2627echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2628echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2629# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2630# If not cross compiling, check that we can run a simple program.
2631if test "$cross_compiling" != yes; then
2632  if { ac_try='./$ac_file'
2633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634  (eval $ac_try) 2>&5
2635  ac_status=$?
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); }; }; then
2638    cross_compiling=no
2639  else
2640    if test "$cross_compiling" = maybe; then
2641	cross_compiling=yes
2642    else
2643	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2644If you meant to cross compile, use \`--host'.
2645See \`config.log' for more details." >&5
2646echo "$as_me: error: cannot run C compiled programs.
2647If you meant to cross compile, use \`--host'.
2648See \`config.log' for more details." >&2;}
2649   { (exit 1); exit 1; }; }
2650    fi
2651  fi
2652fi
2653echo "$as_me:$LINENO: result: yes" >&5
2654echo "${ECHO_T}yes" >&6
2655
2656rm -f a.out a.exe conftest$ac_cv_exeext b.out
2657ac_clean_files=$ac_clean_files_save
2658# Check the compiler produces executables we can run.  If not, either
2659# the compiler is broken, or we cross compile.
2660echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2661echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2662echo "$as_me:$LINENO: result: $cross_compiling" >&5
2663echo "${ECHO_T}$cross_compiling" >&6
2664
2665echo "$as_me:$LINENO: checking for suffix of executables" >&5
2666echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2668  (eval $ac_link) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; then
2672  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2673# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2674# work properly (i.e., refer to `conftest.exe'), while it won't with
2675# `rm'.
2676for ac_file in conftest.exe conftest conftest.*; do
2677  test -f "$ac_file" || continue
2678  case $ac_file in
2679    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2680    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2681	  export ac_cv_exeext
2682	  break;;
2683    * ) break;;
2684  esac
2685done
2686else
2687  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2688See \`config.log' for more details." >&5
2689echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2690See \`config.log' for more details." >&2;}
2691   { (exit 1); exit 1; }; }
2692fi
2693
2694rm -f conftest$ac_cv_exeext
2695echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2696echo "${ECHO_T}$ac_cv_exeext" >&6
2697
2698rm -f conftest.$ac_ext
2699EXEEXT=$ac_cv_exeext
2700ac_exeext=$EXEEXT
2701echo "$as_me:$LINENO: checking for suffix of object files" >&5
2702echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2703if test "${ac_cv_objext+set}" = set; then
2704  echo $ECHO_N "(cached) $ECHO_C" >&6
2705else
2706  cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h.  */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h.  */
2712
2713int
2714main ()
2715{
2716
2717  ;
2718  return 0;
2719}
2720_ACEOF
2721rm -f conftest.o conftest.obj
2722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2723  (eval $ac_compile) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; then
2727  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2728  case $ac_file in
2729    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2730    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2731       break;;
2732  esac
2733done
2734else
2735  echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2739See \`config.log' for more details." >&5
2740echo "$as_me: error: cannot compute suffix of object files: cannot compile
2741See \`config.log' for more details." >&2;}
2742   { (exit 1); exit 1; }; }
2743fi
2744
2745rm -f conftest.$ac_cv_objext conftest.$ac_ext
2746fi
2747echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2748echo "${ECHO_T}$ac_cv_objext" >&6
2749OBJEXT=$ac_cv_objext
2750ac_objext=$OBJEXT
2751echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2752echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2753if test "${ac_cv_c_compiler_gnu+set}" = set; then
2754  echo $ECHO_N "(cached) $ECHO_C" >&6
2755else
2756  cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h.  */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h.  */
2762
2763int
2764main ()
2765{
2766#ifndef __GNUC__
2767       choke me
2768#endif
2769
2770  ;
2771  return 0;
2772}
2773_ACEOF
2774rm -f conftest.$ac_objext
2775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776  (eval $ac_compile) 2>conftest.er1
2777  ac_status=$?
2778  grep -v '^ *+' conftest.er1 >conftest.err
2779  rm -f conftest.er1
2780  cat conftest.err >&5
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); } &&
2783	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785  (eval $ac_try) 2>&5
2786  ac_status=$?
2787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788  (exit $ac_status); }; } &&
2789	 { ac_try='test -s conftest.$ac_objext'
2790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791  (eval $ac_try) 2>&5
2792  ac_status=$?
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); }; }; then
2795  ac_compiler_gnu=yes
2796else
2797  echo "$as_me: failed program was:" >&5
2798sed 's/^/| /' conftest.$ac_ext >&5
2799
2800ac_compiler_gnu=no
2801fi
2802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803ac_cv_c_compiler_gnu=$ac_compiler_gnu
2804
2805fi
2806echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2807echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2808GCC=`test $ac_compiler_gnu = yes && echo yes`
2809ac_test_CFLAGS=${CFLAGS+set}
2810ac_save_CFLAGS=$CFLAGS
2811CFLAGS="-g"
2812echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2813echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2814if test "${ac_cv_prog_cc_g+set}" = set; then
2815  echo $ECHO_N "(cached) $ECHO_C" >&6
2816else
2817  cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h.  */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h.  */
2823
2824int
2825main ()
2826{
2827
2828  ;
2829  return 0;
2830}
2831_ACEOF
2832rm -f conftest.$ac_objext
2833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2834  (eval $ac_compile) 2>conftest.er1
2835  ac_status=$?
2836  grep -v '^ *+' conftest.er1 >conftest.err
2837  rm -f conftest.er1
2838  cat conftest.err >&5
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); } &&
2841	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843  (eval $ac_try) 2>&5
2844  ac_status=$?
2845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846  (exit $ac_status); }; } &&
2847	 { ac_try='test -s conftest.$ac_objext'
2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849  (eval $ac_try) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); }; }; then
2853  ac_cv_prog_cc_g=yes
2854else
2855  echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858ac_cv_prog_cc_g=no
2859fi
2860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2861fi
2862echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2863echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2864if test "$ac_test_CFLAGS" = set; then
2865  CFLAGS=$ac_save_CFLAGS
2866elif test $ac_cv_prog_cc_g = yes; then
2867  if test "$GCC" = yes; then
2868    CFLAGS="-g -O2"
2869  else
2870    CFLAGS="-g"
2871  fi
2872else
2873  if test "$GCC" = yes; then
2874    CFLAGS="-O2"
2875  else
2876    CFLAGS=
2877  fi
2878fi
2879echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2880echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2881if test "${ac_cv_prog_cc_stdc+set}" = set; then
2882  echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884  ac_cv_prog_cc_stdc=no
2885ac_save_CC=$CC
2886cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h.  */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h.  */
2892#include <stdarg.h>
2893#include <stdio.h>
2894#include <sys/types.h>
2895#include <sys/stat.h>
2896/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2897struct buf { int x; };
2898FILE * (*rcsopen) (struct buf *, struct stat *, int);
2899static char *e (p, i)
2900     char **p;
2901     int i;
2902{
2903  return p[i];
2904}
2905static char *f (char * (*g) (char **, int), char **p, ...)
2906{
2907  char *s;
2908  va_list v;
2909  va_start (v,p);
2910  s = g (p, va_arg (v,int));
2911  va_end (v);
2912  return s;
2913}
2914
2915/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2916   function prototypes and stuff, but not '\xHH' hex character constants.
2917   These don't provoke an error unfortunately, instead are silently treated
2918   as 'x'.  The following induces an error, until -std1 is added to get
2919   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2920   array size at least.  It's necessary to write '\x00'==0 to get something
2921   that's true only with -std1.  */
2922int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2923
2924int test (int i, double x);
2925struct s1 {int (*f) (int a);};
2926struct s2 {int (*f) (double a);};
2927int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2928int argc;
2929char **argv;
2930int
2931main ()
2932{
2933return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2934  ;
2935  return 0;
2936}
2937_ACEOF
2938# Don't try gcc -ansi; that turns off useful extensions and
2939# breaks some systems' header files.
2940# AIX			-qlanglvl=ansi
2941# Ultrix and OSF/1	-std1
2942# HP-UX 10.20 and later	-Ae
2943# HP-UX older versions	-Aa -D_HPUX_SOURCE
2944# SVR4			-Xc -D__EXTENSIONS__
2945for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2946do
2947  CC="$ac_save_CC $ac_arg"
2948  rm -f conftest.$ac_objext
2949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950  (eval $ac_compile) 2>conftest.er1
2951  ac_status=$?
2952  grep -v '^ *+' conftest.er1 >conftest.err
2953  rm -f conftest.er1
2954  cat conftest.err >&5
2955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956  (exit $ac_status); } &&
2957	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; } &&
2963	 { ac_try='test -s conftest.$ac_objext'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; }; then
2969  ac_cv_prog_cc_stdc=$ac_arg
2970break
2971else
2972  echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975fi
2976rm -f conftest.err conftest.$ac_objext
2977done
2978rm -f conftest.$ac_ext conftest.$ac_objext
2979CC=$ac_save_CC
2980
2981fi
2982
2983case "x$ac_cv_prog_cc_stdc" in
2984  x|xno)
2985    echo "$as_me:$LINENO: result: none needed" >&5
2986echo "${ECHO_T}none needed" >&6 ;;
2987  *)
2988    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2989echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2990    CC="$CC $ac_cv_prog_cc_stdc" ;;
2991esac
2992
2993# Some people use a C++ compiler to compile C.  Since we use `exit',
2994# in C++ we need to declare it.  In case someone uses the same compiler
2995# for both compiling C and C++ we need to have the C++ compiler decide
2996# the declaration of exit, since it's the most demanding environment.
2997cat >conftest.$ac_ext <<_ACEOF
2998#ifndef __cplusplus
2999  choke me
3000#endif
3001_ACEOF
3002rm -f conftest.$ac_objext
3003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3004  (eval $ac_compile) 2>conftest.er1
3005  ac_status=$?
3006  grep -v '^ *+' conftest.er1 >conftest.err
3007  rm -f conftest.er1
3008  cat conftest.err >&5
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); } &&
3011	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013  (eval $ac_try) 2>&5
3014  ac_status=$?
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); }; } &&
3017	 { ac_try='test -s conftest.$ac_objext'
3018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019  (eval $ac_try) 2>&5
3020  ac_status=$?
3021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022  (exit $ac_status); }; }; then
3023  for ac_declaration in \
3024   '' \
3025   'extern "C" void std::exit (int) throw (); using std::exit;' \
3026   'extern "C" void std::exit (int); using std::exit;' \
3027   'extern "C" void exit (int) throw ();' \
3028   'extern "C" void exit (int);' \
3029   'void exit (int);'
3030do
3031  cat >conftest.$ac_ext <<_ACEOF
3032/* confdefs.h.  */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h.  */
3037$ac_declaration
3038#include <stdlib.h>
3039int
3040main ()
3041{
3042exit (42);
3043  ;
3044  return 0;
3045}
3046_ACEOF
3047rm -f conftest.$ac_objext
3048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3049  (eval $ac_compile) 2>conftest.er1
3050  ac_status=$?
3051  grep -v '^ *+' conftest.er1 >conftest.err
3052  rm -f conftest.er1
3053  cat conftest.err >&5
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); } &&
3056	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058  (eval $ac_try) 2>&5
3059  ac_status=$?
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); }; } &&
3062	 { ac_try='test -s conftest.$ac_objext'
3063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064  (eval $ac_try) 2>&5
3065  ac_status=$?
3066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067  (exit $ac_status); }; }; then
3068  :
3069else
3070  echo "$as_me: failed program was:" >&5
3071sed 's/^/| /' conftest.$ac_ext >&5
3072
3073continue
3074fi
3075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3076  cat >conftest.$ac_ext <<_ACEOF
3077/* confdefs.h.  */
3078_ACEOF
3079cat confdefs.h >>conftest.$ac_ext
3080cat >>conftest.$ac_ext <<_ACEOF
3081/* end confdefs.h.  */
3082$ac_declaration
3083int
3084main ()
3085{
3086exit (42);
3087  ;
3088  return 0;
3089}
3090_ACEOF
3091rm -f conftest.$ac_objext
3092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093  (eval $ac_compile) 2>conftest.er1
3094  ac_status=$?
3095  grep -v '^ *+' conftest.er1 >conftest.err
3096  rm -f conftest.er1
3097  cat conftest.err >&5
3098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099  (exit $ac_status); } &&
3100	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102  (eval $ac_try) 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; } &&
3106	 { ac_try='test -s conftest.$ac_objext'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; }; then
3112  break
3113else
3114  echo "$as_me: failed program was:" >&5
3115sed 's/^/| /' conftest.$ac_ext >&5
3116
3117fi
3118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119done
3120rm -f conftest*
3121if test -n "$ac_declaration"; then
3122  echo '#ifdef __cplusplus' >>confdefs.h
3123  echo $ac_declaration      >>confdefs.h
3124  echo '#endif'             >>confdefs.h
3125fi
3126
3127else
3128  echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131fi
3132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133ac_ext=c
3134ac_cpp='$CPP $CPPFLAGS'
3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138
3139depcc="$CC"   am_compiler_list=
3140
3141echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144  echo $ECHO_N "(cached) $ECHO_C" >&6
3145else
3146  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147  # We make a subdir and do the tests there.  Otherwise we can end up
3148  # making bogus files that we don't know about and never remove.  For
3149  # instance it was reported that on HP-UX the gcc test will end up
3150  # making a dummy file named `D' -- because `-MD' means `put the output
3151  # in D'.
3152  mkdir conftest.dir
3153  # Copy depcomp to subdir because otherwise we won't find it if we're
3154  # using a relative directory.
3155  cp "$am_depcomp" conftest.dir
3156  cd conftest.dir
3157  # We will build objects and dependencies in a subdirectory because
3158  # it helps to detect inapplicable dependency modes.  For instance
3159  # both Tru64's cc and ICC support -MD to output dependencies as a
3160  # side effect of compilation, but ICC will put the dependencies in
3161  # the current directory while Tru64 will put them in the object
3162  # directory.
3163  mkdir sub
3164
3165  am_cv_CC_dependencies_compiler_type=none
3166  if test "$am_compiler_list" = ""; then
3167     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3168  fi
3169  for depmode in $am_compiler_list; do
3170    # Setup a source with many dependencies, because some compilers
3171    # like to wrap large dependency lists on column 80 (with \), and
3172    # we should not choose a depcomp mode which is confused by this.
3173    #
3174    # We need to recreate these files for each test, as the compiler may
3175    # overwrite some of them when testing with obscure command lines.
3176    # This happens at least with the AIX C compiler.
3177    : > sub/conftest.c
3178    for i in 1 2 3 4 5 6; do
3179      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3180      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3181      # Solaris 8's {/usr,}/bin/sh.
3182      touch sub/conftst$i.h
3183    done
3184    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3185
3186    case $depmode in
3187    nosideeffect)
3188      # after this tag, mechanisms are not by side-effect, so they'll
3189      # only be used when explicitly requested
3190      if test "x$enable_dependency_tracking" = xyes; then
3191	continue
3192      else
3193	break
3194      fi
3195      ;;
3196    none) break ;;
3197    esac
3198    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3199    # mode.  It turns out that the SunPro C++ compiler does not properly
3200    # handle `-M -o', and we need to detect this.
3201    if depmode=$depmode \
3202       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3203       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3204       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3205         >/dev/null 2>conftest.err &&
3206       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3207       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3208       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3209      # icc doesn't choke on unknown options, it will just issue warnings
3210      # or remarks (even with -Werror).  So we grep stderr for any message
3211      # that says an option was ignored or not supported.
3212      # When given -MP, icc 7.0 and 7.1 complain thusly:
3213      #   icc: Command line warning: ignoring option '-M'; no argument required
3214      # The diagnosis changed in icc 8.0:
3215      #   icc: Command line remark: option '-MP' not supported
3216      if (grep 'ignoring option' conftest.err ||
3217          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3218        am_cv_CC_dependencies_compiler_type=$depmode
3219        break
3220      fi
3221    fi
3222  done
3223
3224  cd ..
3225  rm -rf conftest.dir
3226else
3227  am_cv_CC_dependencies_compiler_type=none
3228fi
3229
3230fi
3231echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3234
3235
3236
3237if
3238  test "x$enable_dependency_tracking" != xno \
3239  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3240  am__fastdepCC_TRUE=
3241  am__fastdepCC_FALSE='#'
3242else
3243  am__fastdepCC_TRUE='#'
3244  am__fastdepCC_FALSE=
3245fi
3246
3247
3248
3249  ac_ext=c
3250ac_cpp='$CPP $CPPFLAGS'
3251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3255echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3256# On Suns, sometimes $CPP names a directory.
3257if test -n "$CPP" && test -d "$CPP"; then
3258  CPP=
3259fi
3260if test -z "$CPP"; then
3261  if test "${ac_cv_prog_CPP+set}" = set; then
3262  echo $ECHO_N "(cached) $ECHO_C" >&6
3263else
3264      # Double quotes because CPP needs to be expanded
3265    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3266    do
3267      ac_preproc_ok=false
3268for ac_c_preproc_warn_flag in '' yes
3269do
3270  # Use a header file that comes with gcc, so configuring glibc
3271  # with a fresh cross-compiler works.
3272  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3273  # <limits.h> exists even on freestanding compilers.
3274  # On the NeXT, cc -E runs the code through the compiler's parser,
3275  # not just through cpp. "Syntax error" is here to catch this case.
3276  cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h.  */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h.  */
3282#ifdef __STDC__
3283# include <limits.h>
3284#else
3285# include <assert.h>
3286#endif
3287		     Syntax error
3288_ACEOF
3289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291  ac_status=$?
3292  grep -v '^ *+' conftest.er1 >conftest.err
3293  rm -f conftest.er1
3294  cat conftest.err >&5
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); } >/dev/null; then
3297  if test -s conftest.err; then
3298    ac_cpp_err=$ac_c_preproc_warn_flag
3299    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3300  else
3301    ac_cpp_err=
3302  fi
3303else
3304  ac_cpp_err=yes
3305fi
3306if test -z "$ac_cpp_err"; then
3307  :
3308else
3309  echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312  # Broken: fails on valid input.
3313continue
3314fi
3315rm -f conftest.err conftest.$ac_ext
3316
3317  # OK, works on sane cases.  Now check whether non-existent headers
3318  # can be detected and how.
3319  cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h.  */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h.  */
3325#include <ac_nonexistent.h>
3326_ACEOF
3327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329  ac_status=$?
3330  grep -v '^ *+' conftest.er1 >conftest.err
3331  rm -f conftest.er1
3332  cat conftest.err >&5
3333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334  (exit $ac_status); } >/dev/null; then
3335  if test -s conftest.err; then
3336    ac_cpp_err=$ac_c_preproc_warn_flag
3337    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3338  else
3339    ac_cpp_err=
3340  fi
3341else
3342  ac_cpp_err=yes
3343fi
3344if test -z "$ac_cpp_err"; then
3345  # Broken: success on invalid input.
3346continue
3347else
3348  echo "$as_me: failed program was:" >&5
3349sed 's/^/| /' conftest.$ac_ext >&5
3350
3351  # Passes both tests.
3352ac_preproc_ok=:
3353break
3354fi
3355rm -f conftest.err conftest.$ac_ext
3356
3357done
3358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3359rm -f conftest.err conftest.$ac_ext
3360if $ac_preproc_ok; then
3361  break
3362fi
3363
3364    done
3365    ac_cv_prog_CPP=$CPP
3366
3367fi
3368  CPP=$ac_cv_prog_CPP
3369else
3370  ac_cv_prog_CPP=$CPP
3371fi
3372echo "$as_me:$LINENO: result: $CPP" >&5
3373echo "${ECHO_T}$CPP" >&6
3374ac_preproc_ok=false
3375for ac_c_preproc_warn_flag in '' yes
3376do
3377  # Use a header file that comes with gcc, so configuring glibc
3378  # with a fresh cross-compiler works.
3379  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3380  # <limits.h> exists even on freestanding compilers.
3381  # On the NeXT, cc -E runs the code through the compiler's parser,
3382  # not just through cpp. "Syntax error" is here to catch this case.
3383  cat >conftest.$ac_ext <<_ACEOF
3384/* confdefs.h.  */
3385_ACEOF
3386cat confdefs.h >>conftest.$ac_ext
3387cat >>conftest.$ac_ext <<_ACEOF
3388/* end confdefs.h.  */
3389#ifdef __STDC__
3390# include <limits.h>
3391#else
3392# include <assert.h>
3393#endif
3394		     Syntax error
3395_ACEOF
3396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398  ac_status=$?
3399  grep -v '^ *+' conftest.er1 >conftest.err
3400  rm -f conftest.er1
3401  cat conftest.err >&5
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); } >/dev/null; then
3404  if test -s conftest.err; then
3405    ac_cpp_err=$ac_c_preproc_warn_flag
3406    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3407  else
3408    ac_cpp_err=
3409  fi
3410else
3411  ac_cpp_err=yes
3412fi
3413if test -z "$ac_cpp_err"; then
3414  :
3415else
3416  echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
3419  # Broken: fails on valid input.
3420continue
3421fi
3422rm -f conftest.err conftest.$ac_ext
3423
3424  # OK, works on sane cases.  Now check whether non-existent headers
3425  # can be detected and how.
3426  cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h.  */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h.  */
3432#include <ac_nonexistent.h>
3433_ACEOF
3434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3436  ac_status=$?
3437  grep -v '^ *+' conftest.er1 >conftest.err
3438  rm -f conftest.er1
3439  cat conftest.err >&5
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); } >/dev/null; then
3442  if test -s conftest.err; then
3443    ac_cpp_err=$ac_c_preproc_warn_flag
3444    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445  else
3446    ac_cpp_err=
3447  fi
3448else
3449  ac_cpp_err=yes
3450fi
3451if test -z "$ac_cpp_err"; then
3452  # Broken: success on invalid input.
3453continue
3454else
3455  echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
3458  # Passes both tests.
3459ac_preproc_ok=:
3460break
3461fi
3462rm -f conftest.err conftest.$ac_ext
3463
3464done
3465# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466rm -f conftest.err conftest.$ac_ext
3467if $ac_preproc_ok; then
3468  :
3469else
3470  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3471See \`config.log' for more details." >&5
3472echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3473See \`config.log' for more details." >&2;}
3474   { (exit 1); exit 1; }; }
3475fi
3476
3477ac_ext=c
3478ac_cpp='$CPP $CPPFLAGS'
3479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
3483
3484  if test "$GCC" = "yes"; then
3485    if test "$kde_use_debug_code" != "no"; then
3486      if test $kde_use_debug_code = "full"; then
3487        CFLAGS="-g3 -fno-inline $CFLAGS"
3488      else
3489        CFLAGS="-g -O2 $CFLAGS"
3490      fi
3491    else
3492      CFLAGS="-O2 $CFLAGS"
3493    fi
3494  fi
3495
3496  if test "$kde_use_debug_define" = "yes"; then
3497    CFLAGS="-DNDEBUG $CFLAGS"
3498  fi
3499
3500
3501  case "$host" in
3502  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
3503  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
3504  esac
3505
3506  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
3507     LDFLAGS=""
3508  fi
3509
3510  CXXFLAGS=" $CXXFLAGS"
3511
3512  ac_ext=cc
3513ac_cpp='$CXXCPP $CPPFLAGS'
3514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3517if test -n "$ac_tool_prefix"; then
3518  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3519  do
3520    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3521set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3522echo "$as_me:$LINENO: checking for $ac_word" >&5
3523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3524if test "${ac_cv_prog_CXX+set}" = set; then
3525  echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527  if test -n "$CXX"; then
3528  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3529else
3530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531for as_dir in $PATH
3532do
3533  IFS=$as_save_IFS
3534  test -z "$as_dir" && as_dir=.
3535  for ac_exec_ext in '' $ac_executable_extensions; do
3536  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3538    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539    break 2
3540  fi
3541done
3542done
3543
3544fi
3545fi
3546CXX=$ac_cv_prog_CXX
3547if test -n "$CXX"; then
3548  echo "$as_me:$LINENO: result: $CXX" >&5
3549echo "${ECHO_T}$CXX" >&6
3550else
3551  echo "$as_me:$LINENO: result: no" >&5
3552echo "${ECHO_T}no" >&6
3553fi
3554
3555    test -n "$CXX" && break
3556  done
3557fi
3558if test -z "$CXX"; then
3559  ac_ct_CXX=$CXX
3560  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3561do
3562  # Extract the first word of "$ac_prog", so it can be a program name with args.
3563set dummy $ac_prog; ac_word=$2
3564echo "$as_me:$LINENO: checking for $ac_word" >&5
3565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3567  echo $ECHO_N "(cached) $ECHO_C" >&6
3568else
3569  if test -n "$ac_ct_CXX"; then
3570  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3571else
3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573for as_dir in $PATH
3574do
3575  IFS=$as_save_IFS
3576  test -z "$as_dir" && as_dir=.
3577  for ac_exec_ext in '' $ac_executable_extensions; do
3578  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579    ac_cv_prog_ac_ct_CXX="$ac_prog"
3580    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581    break 2
3582  fi
3583done
3584done
3585
3586fi
3587fi
3588ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3589if test -n "$ac_ct_CXX"; then
3590  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3591echo "${ECHO_T}$ac_ct_CXX" >&6
3592else
3593  echo "$as_me:$LINENO: result: no" >&5
3594echo "${ECHO_T}no" >&6
3595fi
3596
3597  test -n "$ac_ct_CXX" && break
3598done
3599test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3600
3601  CXX=$ac_ct_CXX
3602fi
3603
3604
3605# Provide some information about the compiler.
3606echo "$as_me:$LINENO:" \
3607     "checking for C++ compiler version" >&5
3608ac_compiler=`set X $ac_compile; echo $2`
3609{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3610  (eval $ac_compiler --version </dev/null >&5) 2>&5
3611  ac_status=$?
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); }
3614{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3615  (eval $ac_compiler -v </dev/null >&5) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }
3619{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3620  (eval $ac_compiler -V </dev/null >&5) 2>&5
3621  ac_status=$?
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); }
3624
3625echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3626echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3627if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3628  echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630  cat >conftest.$ac_ext <<_ACEOF
3631/* confdefs.h.  */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h.  */
3636
3637int
3638main ()
3639{
3640#ifndef __GNUC__
3641       choke me
3642#endif
3643
3644  ;
3645  return 0;
3646}
3647_ACEOF
3648rm -f conftest.$ac_objext
3649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650  (eval $ac_compile) 2>conftest.er1
3651  ac_status=$?
3652  grep -v '^ *+' conftest.er1 >conftest.err
3653  rm -f conftest.er1
3654  cat conftest.err >&5
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); } &&
3657	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659  (eval $ac_try) 2>&5
3660  ac_status=$?
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); }; } &&
3663	 { ac_try='test -s conftest.$ac_objext'
3664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665  (eval $ac_try) 2>&5
3666  ac_status=$?
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); }; }; then
3669  ac_compiler_gnu=yes
3670else
3671  echo "$as_me: failed program was:" >&5
3672sed 's/^/| /' conftest.$ac_ext >&5
3673
3674ac_compiler_gnu=no
3675fi
3676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3677ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3678
3679fi
3680echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3681echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3682GXX=`test $ac_compiler_gnu = yes && echo yes`
3683ac_test_CXXFLAGS=${CXXFLAGS+set}
3684ac_save_CXXFLAGS=$CXXFLAGS
3685CXXFLAGS="-g"
3686echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3687echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3688if test "${ac_cv_prog_cxx_g+set}" = set; then
3689  echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
3691  cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h.  */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h.  */
3697
3698int
3699main ()
3700{
3701
3702  ;
3703  return 0;
3704}
3705_ACEOF
3706rm -f conftest.$ac_objext
3707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708  (eval $ac_compile) 2>conftest.er1
3709  ac_status=$?
3710  grep -v '^ *+' conftest.er1 >conftest.err
3711  rm -f conftest.er1
3712  cat conftest.err >&5
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); } &&
3715	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717  (eval $ac_try) 2>&5
3718  ac_status=$?
3719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720  (exit $ac_status); }; } &&
3721	 { ac_try='test -s conftest.$ac_objext'
3722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723  (eval $ac_try) 2>&5
3724  ac_status=$?
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); }; }; then
3727  ac_cv_prog_cxx_g=yes
3728else
3729  echo "$as_me: failed program was:" >&5
3730sed 's/^/| /' conftest.$ac_ext >&5
3731
3732ac_cv_prog_cxx_g=no
3733fi
3734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735fi
3736echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3737echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3738if test "$ac_test_CXXFLAGS" = set; then
3739  CXXFLAGS=$ac_save_CXXFLAGS
3740elif test $ac_cv_prog_cxx_g = yes; then
3741  if test "$GXX" = yes; then
3742    CXXFLAGS="-g -O2"
3743  else
3744    CXXFLAGS="-g"
3745  fi
3746else
3747  if test "$GXX" = yes; then
3748    CXXFLAGS="-O2"
3749  else
3750    CXXFLAGS=
3751  fi
3752fi
3753for ac_declaration in \
3754   '' \
3755   'extern "C" void std::exit (int) throw (); using std::exit;' \
3756   'extern "C" void std::exit (int); using std::exit;' \
3757   'extern "C" void exit (int) throw ();' \
3758   'extern "C" void exit (int);' \
3759   'void exit (int);'
3760do
3761  cat >conftest.$ac_ext <<_ACEOF
3762/* confdefs.h.  */
3763_ACEOF
3764cat confdefs.h >>conftest.$ac_ext
3765cat >>conftest.$ac_ext <<_ACEOF
3766/* end confdefs.h.  */
3767$ac_declaration
3768#include <stdlib.h>
3769int
3770main ()
3771{
3772exit (42);
3773  ;
3774  return 0;
3775}
3776_ACEOF
3777rm -f conftest.$ac_objext
3778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779  (eval $ac_compile) 2>conftest.er1
3780  ac_status=$?
3781  grep -v '^ *+' conftest.er1 >conftest.err
3782  rm -f conftest.er1
3783  cat conftest.err >&5
3784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785  (exit $ac_status); } &&
3786	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788  (eval $ac_try) 2>&5
3789  ac_status=$?
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); }; } &&
3792	 { ac_try='test -s conftest.$ac_objext'
3793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794  (eval $ac_try) 2>&5
3795  ac_status=$?
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); }; }; then
3798  :
3799else
3800  echo "$as_me: failed program was:" >&5
3801sed 's/^/| /' conftest.$ac_ext >&5
3802
3803continue
3804fi
3805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3806  cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h.  */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
3811/* end confdefs.h.  */
3812$ac_declaration
3813int
3814main ()
3815{
3816exit (42);
3817  ;
3818  return 0;
3819}
3820_ACEOF
3821rm -f conftest.$ac_objext
3822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823  (eval $ac_compile) 2>conftest.er1
3824  ac_status=$?
3825  grep -v '^ *+' conftest.er1 >conftest.err
3826  rm -f conftest.er1
3827  cat conftest.err >&5
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); } &&
3830	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
3831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832  (eval $ac_try) 2>&5
3833  ac_status=$?
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); }; } &&
3836	 { ac_try='test -s conftest.$ac_objext'
3837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838  (eval $ac_try) 2>&5
3839  ac_status=$?
3840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841  (exit $ac_status); }; }; then
3842  break
3843else
3844  echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847fi
3848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3849done
3850rm -f conftest*
3851if test -n "$ac_declaration"; then
3852  echo '#ifdef __cplusplus' >>confdefs.h
3853  echo $ac_declaration      >>confdefs.h
3854  echo '#endif'             >>confdefs.h
3855fi
3856
3857ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863depcc="$CXX"  am_compiler_list=
3864
3865echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3866echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3867if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3868  echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3871  # We make a subdir and do the tests there.  Otherwise we can end up
3872  # making bogus files that we don't know about and never remove.  For
3873  # instance it was reported that on HP-UX the gcc test will end up
3874  # making a dummy file named `D' -- because `-MD' means `put the output
3875  # in D'.
3876  mkdir conftest.dir
3877  # Copy depcomp to subdir because otherwise we won't find it if we're
3878  # using a relative directory.
3879  cp "$am_depcomp" conftest.dir
3880  cd conftest.dir
3881  # We will build objects and dependencies in a subdirectory because
3882  # it helps to detect inapplicable dependency modes.  For instance
3883  # both Tru64's cc and ICC support -MD to output dependencies as a
3884  # side effect of compilation, but ICC will put the dependencies in
3885  # the current directory while Tru64 will put them in the object
3886  # directory.
3887  mkdir sub
3888
3889  am_cv_CXX_dependencies_compiler_type=none
3890  if test "$am_compiler_list" = ""; then
3891     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3892  fi
3893  for depmode in $am_compiler_list; do
3894    # Setup a source with many dependencies, because some compilers
3895    # like to wrap large dependency lists on column 80 (with \), and
3896    # we should not choose a depcomp mode which is confused by this.
3897    #
3898    # We need to recreate these files for each test, as the compiler may
3899    # overwrite some of them when testing with obscure command lines.
3900    # This happens at least with the AIX C compiler.
3901    : > sub/conftest.c
3902    for i in 1 2 3 4 5 6; do
3903      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3904      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3905      # Solaris 8's {/usr,}/bin/sh.
3906      touch sub/conftst$i.h
3907    done
3908    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3909
3910    case $depmode in
3911    nosideeffect)
3912      # after this tag, mechanisms are not by side-effect, so they'll
3913      # only be used when explicitly requested
3914      if test "x$enable_dependency_tracking" = xyes; then
3915	continue
3916      else
3917	break
3918      fi
3919      ;;
3920    none) break ;;
3921    esac
3922    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3923    # mode.  It turns out that the SunPro C++ compiler does not properly
3924    # handle `-M -o', and we need to detect this.
3925    if depmode=$depmode \
3926       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3927       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3928       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3929         >/dev/null 2>conftest.err &&
3930       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3931       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3932       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3933      # icc doesn't choke on unknown options, it will just issue warnings
3934      # or remarks (even with -Werror).  So we grep stderr for any message
3935      # that says an option was ignored or not supported.
3936      # When given -MP, icc 7.0 and 7.1 complain thusly:
3937      #   icc: Command line warning: ignoring option '-M'; no argument required
3938      # The diagnosis changed in icc 8.0:
3939      #   icc: Command line remark: option '-MP' not supported
3940      if (grep 'ignoring option' conftest.err ||
3941          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3942        am_cv_CXX_dependencies_compiler_type=$depmode
3943        break
3944      fi
3945    fi
3946  done
3947
3948  cd ..
3949  rm -rf conftest.dir
3950else
3951  am_cv_CXX_dependencies_compiler_type=none
3952fi
3953
3954fi
3955echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3956echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3957CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3958
3959
3960
3961if
3962  test "x$enable_dependency_tracking" != xno \
3963  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3964  am__fastdepCXX_TRUE=
3965  am__fastdepCXX_FALSE='#'
3966else
3967  am__fastdepCXX_TRUE='#'
3968  am__fastdepCXX_FALSE=
3969fi
3970
3971
3972
3973  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
3974    if test "$kde_use_debug_code" != "no"; then
3975      if test "$CXX" = "KCC"; then
3976        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
3977      else
3978        if test "$kde_use_debug_code" = "full"; then
3979          CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
3980        else
3981          CXXFLAGS="-g -O2 $CXXFLAGS"
3982        fi
3983      fi
3984
3985echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
3986echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
3987kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
3988if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3989  echo $ECHO_N "(cached) $ECHO_C" >&6
3990else
3991
3992
3993
3994
3995ac_ext=cc
3996ac_cpp='$CXXCPP $CPPFLAGS'
3997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4000
4001ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4002
4003
4004
4005  save_CXXFLAGS="$CXXFLAGS"
4006  CXXFLAGS="$CXXFLAGS -fno-builtin"
4007  cat >conftest.$ac_ext <<_ACEOF
4008/* confdefs.h.  */
4009_ACEOF
4010cat confdefs.h >>conftest.$ac_ext
4011cat >>conftest.$ac_ext <<_ACEOF
4012/* end confdefs.h.  */
4013
4014int
4015main ()
4016{
4017 return 0;
4018  ;
4019  return 0;
4020}
4021_ACEOF
4022rm -f conftest.$ac_objext conftest$ac_exeext
4023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4024  (eval $ac_link) 2>conftest.er1
4025  ac_status=$?
4026  grep -v '^ *+' conftest.er1 >conftest.err
4027  rm -f conftest.er1
4028  cat conftest.err >&5
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); } &&
4031	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033  (eval $ac_try) 2>&5
4034  ac_status=$?
4035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036  (exit $ac_status); }; } &&
4037	 { ac_try='test -s conftest$ac_exeext'
4038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039  (eval $ac_try) 2>&5
4040  ac_status=$?
4041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042  (exit $ac_status); }; }; then
4043  eval "kde_cv_prog_cxx_$kde_cache=yes"
4044else
4045  echo "$as_me: failed program was:" >&5
4046sed 's/^/| /' conftest.$ac_ext >&5
4047
4048fi
4049rm -f conftest.err conftest.$ac_objext \
4050      conftest$ac_exeext conftest.$ac_ext
4051  CXXFLAGS="$save_CXXFLAGS"
4052  ac_ext=c
4053ac_cpp='$CPP $CPPFLAGS'
4054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057
4058
4059fi
4060
4061if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4062 echo "$as_me:$LINENO: result: yes" >&5
4063echo "${ECHO_T}yes" >&6
4064 :
4065 CXXFLAGS="-fno-builtin $CXXFLAGS"
4066else
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
4069 :
4070
4071fi
4072
4073
4074
4075echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
4076echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
4077kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
4078if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4079  echo $ECHO_N "(cached) $ECHO_C" >&6
4080else
4081
4082
4083
4084   ac_ext=cc
4085ac_cpp='$CXXCPP $CPPFLAGS'
4086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4089
4090ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4091
4092
4093  save_CXXFLAGS="$CXXFLAGS"
4094  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
4095  cat >conftest.$ac_ext <<_ACEOF
4096/* confdefs.h.  */
4097_ACEOF
4098cat confdefs.h >>conftest.$ac_ext
4099cat >>conftest.$ac_ext <<_ACEOF
4100/* end confdefs.h.  */
4101
4102int
4103main ()
4104{
4105 return 0;
4106  ;
4107  return 0;
4108}
4109_ACEOF
4110rm -f conftest.$ac_objext conftest$ac_exeext
4111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4112  (eval $ac_link) 2>conftest.er1
4113  ac_status=$?
4114  grep -v '^ *+' conftest.er1 >conftest.err
4115  rm -f conftest.er1
4116  cat conftest.err >&5
4117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118  (exit $ac_status); } &&
4119	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121  (eval $ac_try) 2>&5
4122  ac_status=$?
4123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124  (exit $ac_status); }; } &&
4125	 { ac_try='test -s conftest$ac_exeext'
4126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127  (eval $ac_try) 2>&5
4128  ac_status=$?
4129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130  (exit $ac_status); }; }; then
4131  eval "kde_cv_prog_cxx_$kde_cache=yes"
4132else
4133  echo "$as_me: failed program was:" >&5
4134sed 's/^/| /' conftest.$ac_ext >&5
4135
4136fi
4137rm -f conftest.err conftest.$ac_objext \
4138      conftest$ac_exeext conftest.$ac_ext
4139  CXXFLAGS="$save_CXXFLAGS"
4140  ac_ext=c
4141ac_cpp='$CPP $CPPFLAGS'
4142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145
4146
4147fi
4148
4149if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4150 echo "$as_me:$LINENO: result: yes" >&5
4151echo "${ECHO_T}yes" >&6
4152 :
4153 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
4154else
4155 echo "$as_me:$LINENO: result: no" >&5
4156echo "${ECHO_T}no" >&6
4157 :
4158 WOVERLOADED_VRITUAL=""
4159fi
4160
4161
4162    else
4163      if test "$CXX" = "KCC"; then
4164        CXXFLAGS="+K3 $CXXFLAGS"
4165      else
4166        CXXFLAGS="$CXXFLAGS"
4167      fi
4168    fi
4169  fi
4170
4171  if test "$kde_use_debug_define" = "yes"; then
4172    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
4173  fi
4174
4175  if test "$kde_use_profiling" = "yes"; then
4176
4177echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
4178echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
4179kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
4180if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4181  echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183
4184
4185
4186   ac_ext=cc
4187ac_cpp='$CXXCPP $CPPFLAGS'
4188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4191
4192ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4193
4194
4195  save_CXXFLAGS="$CXXFLAGS"
4196  CXXFLAGS="$CXXFLAGS -pg"
4197  cat >conftest.$ac_ext <<_ACEOF
4198/* confdefs.h.  */
4199_ACEOF
4200cat confdefs.h >>conftest.$ac_ext
4201cat >>conftest.$ac_ext <<_ACEOF
4202/* end confdefs.h.  */
4203
4204int
4205main ()
4206{
4207 return 0;
4208  ;
4209  return 0;
4210}
4211_ACEOF
4212rm -f conftest.$ac_objext conftest$ac_exeext
4213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4214  (eval $ac_link) 2>conftest.er1
4215  ac_status=$?
4216  grep -v '^ *+' conftest.er1 >conftest.err
4217  rm -f conftest.er1
4218  cat conftest.err >&5
4219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220  (exit $ac_status); } &&
4221	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223  (eval $ac_try) 2>&5
4224  ac_status=$?
4225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226  (exit $ac_status); }; } &&
4227	 { ac_try='test -s conftest$ac_exeext'
4228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229  (eval $ac_try) 2>&5
4230  ac_status=$?
4231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232  (exit $ac_status); }; }; then
4233  eval "kde_cv_prog_cxx_$kde_cache=yes"
4234else
4235  echo "$as_me: failed program was:" >&5
4236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238fi
4239rm -f conftest.err conftest.$ac_objext \
4240      conftest$ac_exeext conftest.$ac_ext
4241  CXXFLAGS="$save_CXXFLAGS"
4242  ac_ext=c
4243ac_cpp='$CPP $CPPFLAGS'
4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248
4249fi
4250
4251if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4252 echo "$as_me:$LINENO: result: yes" >&5
4253echo "${ECHO_T}yes" >&6
4254 :
4255
4256      CFLAGS="-pg $CFLAGS"
4257      CXXFLAGS="-pg $CXXFLAGS"
4258
4259else
4260 echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262 :
4263
4264fi
4265
4266  fi
4267
4268  if test "$kde_use_warnings" = "yes"; then
4269      if test "$GCC" = "yes"; then
4270        CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
4271        case $host in
4272          *-*-linux-gnu)
4273            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
4274            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
4275
4276echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
4277echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6
4278kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
4279if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4280  echo $ECHO_N "(cached) $ECHO_C" >&6
4281else
4282
4283
4284
4285   ac_ext=cc
4286ac_cpp='$CXXCPP $CPPFLAGS'
4287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4290
4291ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4292
4293
4294  save_CXXFLAGS="$CXXFLAGS"
4295  CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
4296  cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h.  */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
4301/* end confdefs.h.  */
4302
4303int
4304main ()
4305{
4306 return 0;
4307  ;
4308  return 0;
4309}
4310_ACEOF
4311rm -f conftest.$ac_objext conftest$ac_exeext
4312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4313  (eval $ac_link) 2>conftest.er1
4314  ac_status=$?
4315  grep -v '^ *+' conftest.er1 >conftest.err
4316  rm -f conftest.er1
4317  cat conftest.err >&5
4318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319  (exit $ac_status); } &&
4320	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322  (eval $ac_try) 2>&5
4323  ac_status=$?
4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325  (exit $ac_status); }; } &&
4326	 { ac_try='test -s conftest$ac_exeext'
4327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328  (eval $ac_try) 2>&5
4329  ac_status=$?
4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331  (exit $ac_status); }; }; then
4332  eval "kde_cv_prog_cxx_$kde_cache=yes"
4333else
4334  echo "$as_me: failed program was:" >&5
4335sed 's/^/| /' conftest.$ac_ext >&5
4336
4337fi
4338rm -f conftest.err conftest.$ac_objext \
4339      conftest$ac_exeext conftest.$ac_ext
4340  CXXFLAGS="$save_CXXFLAGS"
4341  ac_ext=c
4342ac_cpp='$CPP $CPPFLAGS'
4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346
4347
4348fi
4349
4350if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4351 echo "$as_me:$LINENO: result: yes" >&5
4352echo "${ECHO_T}yes" >&6
4353 :
4354 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
4355else
4356 echo "$as_me:$LINENO: result: no" >&5
4357echo "${ECHO_T}no" >&6
4358 :
4359
4360fi
4361
4362
4363echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4364echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6
4365kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
4366if eval "test \"\${kde_cv_prog_cc_$kde_cache+set}\" = set"; then
4367  echo $ECHO_N "(cached) $ECHO_C" >&6
4368else
4369
4370
4371
4372  ac_ext=c
4373ac_cpp='$CPP $CPPFLAGS'
4374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378  save_CFLAGS="$CFLAGS"
4379  CFLAGS="$CFLAGS -Wmissing-format-attribute"
4380  cat >conftest.$ac_ext <<_ACEOF
4381/* confdefs.h.  */
4382_ACEOF
4383cat confdefs.h >>conftest.$ac_ext
4384cat >>conftest.$ac_ext <<_ACEOF
4385/* end confdefs.h.  */
4386
4387int
4388main ()
4389{
4390 return 0;
4391  ;
4392  return 0;
4393}
4394_ACEOF
4395rm -f conftest.$ac_objext conftest$ac_exeext
4396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4397  (eval $ac_link) 2>conftest.er1
4398  ac_status=$?
4399  grep -v '^ *+' conftest.er1 >conftest.err
4400  rm -f conftest.er1
4401  cat conftest.err >&5
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); } &&
4404	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406  (eval $ac_try) 2>&5
4407  ac_status=$?
4408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409  (exit $ac_status); }; } &&
4410	 { ac_try='test -s conftest$ac_exeext'
4411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412  (eval $ac_try) 2>&5
4413  ac_status=$?
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); }; }; then
4416  eval "kde_cv_prog_cc_$kde_cache=yes"
4417else
4418  echo "$as_me: failed program was:" >&5
4419sed 's/^/| /' conftest.$ac_ext >&5
4420
4421fi
4422rm -f conftest.err conftest.$ac_objext \
4423      conftest$ac_exeext conftest.$ac_ext
4424  CFLAGS="$save_CFLAGS"
4425  ac_ext=c
4426ac_cpp='$CPP $CPPFLAGS'
4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
4431
4432fi
4433
4434if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
4435 echo "$as_me:$LINENO: result: yes" >&5
4436echo "${ECHO_T}yes" >&6
4437 :
4438 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
4439else
4440 echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6
4442 :
4443
4444fi
4445
4446          ;;
4447        esac
4448
4449echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
4450echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
4451kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
4452if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4453  echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455
4456
4457
4458   ac_ext=cc
4459ac_cpp='$CXXCPP $CPPFLAGS'
4460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4463
4464ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4465
4466
4467  save_CXXFLAGS="$CXXFLAGS"
4468  CXXFLAGS="$CXXFLAGS -Wundef"
4469  cat >conftest.$ac_ext <<_ACEOF
4470/* confdefs.h.  */
4471_ACEOF
4472cat confdefs.h >>conftest.$ac_ext
4473cat >>conftest.$ac_ext <<_ACEOF
4474/* end confdefs.h.  */
4475
4476int
4477main ()
4478{
4479 return 0;
4480  ;
4481  return 0;
4482}
4483_ACEOF
4484rm -f conftest.$ac_objext conftest$ac_exeext
4485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4486  (eval $ac_link) 2>conftest.er1
4487  ac_status=$?
4488  grep -v '^ *+' conftest.er1 >conftest.err
4489  rm -f conftest.er1
4490  cat conftest.err >&5
4491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492  (exit $ac_status); } &&
4493	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495  (eval $ac_try) 2>&5
4496  ac_status=$?
4497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498  (exit $ac_status); }; } &&
4499	 { ac_try='test -s conftest$ac_exeext'
4500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501  (eval $ac_try) 2>&5
4502  ac_status=$?
4503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504  (exit $ac_status); }; }; then
4505  eval "kde_cv_prog_cxx_$kde_cache=yes"
4506else
4507  echo "$as_me: failed program was:" >&5
4508sed 's/^/| /' conftest.$ac_ext >&5
4509
4510fi
4511rm -f conftest.err conftest.$ac_objext \
4512      conftest$ac_exeext conftest.$ac_ext
4513  CXXFLAGS="$save_CXXFLAGS"
4514  ac_ext=c
4515ac_cpp='$CPP $CPPFLAGS'
4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519
4520
4521fi
4522
4523if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4524 echo "$as_me:$LINENO: result: yes" >&5
4525echo "${ECHO_T}yes" >&6
4526 :
4527 CXXFLAGS="-Wundef $CXXFLAGS"
4528else
4529 echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
4531 :
4532
4533fi
4534
4535
4536echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
4537echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
4538kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
4539if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4540  echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542
4543
4544
4545   ac_ext=cc
4546ac_cpp='$CXXCPP $CPPFLAGS'
4547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4550
4551ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4552
4553
4554  save_CXXFLAGS="$CXXFLAGS"
4555  CXXFLAGS="$CXXFLAGS -Wno-long-long"
4556  cat >conftest.$ac_ext <<_ACEOF
4557/* confdefs.h.  */
4558_ACEOF
4559cat confdefs.h >>conftest.$ac_ext
4560cat >>conftest.$ac_ext <<_ACEOF
4561/* end confdefs.h.  */
4562
4563int
4564main ()
4565{
4566 return 0;
4567  ;
4568  return 0;
4569}
4570_ACEOF
4571rm -f conftest.$ac_objext conftest$ac_exeext
4572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4573  (eval $ac_link) 2>conftest.er1
4574  ac_status=$?
4575  grep -v '^ *+' conftest.er1 >conftest.err
4576  rm -f conftest.er1
4577  cat conftest.err >&5
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); } &&
4580	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582  (eval $ac_try) 2>&5
4583  ac_status=$?
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); }; } &&
4586	 { ac_try='test -s conftest$ac_exeext'
4587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588  (eval $ac_try) 2>&5
4589  ac_status=$?
4590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591  (exit $ac_status); }; }; then
4592  eval "kde_cv_prog_cxx_$kde_cache=yes"
4593else
4594  echo "$as_me: failed program was:" >&5
4595sed 's/^/| /' conftest.$ac_ext >&5
4596
4597fi
4598rm -f conftest.err conftest.$ac_objext \
4599      conftest$ac_exeext conftest.$ac_ext
4600  CXXFLAGS="$save_CXXFLAGS"
4601  ac_ext=c
4602ac_cpp='$CPP $CPPFLAGS'
4603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606
4607
4608fi
4609
4610if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4611 echo "$as_me:$LINENO: result: yes" >&5
4612echo "${ECHO_T}yes" >&6
4613 :
4614 CXXFLAGS="-Wno-long-long $CXXFLAGS"
4615else
4616 echo "$as_me:$LINENO: result: no" >&5
4617echo "${ECHO_T}no" >&6
4618 :
4619
4620fi
4621
4622
4623echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
4624echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6
4625kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-,%____p__%'`
4626if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4627  echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629
4630
4631
4632   ac_ext=cc
4633ac_cpp='$CXXCPP $CPPFLAGS'
4634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4637
4638ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4639
4640
4641  save_CXXFLAGS="$CXXFLAGS"
4642  CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
4643  cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h.  */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h.  */
4649
4650int
4651main ()
4652{
4653 return 0;
4654  ;
4655  return 0;
4656}
4657_ACEOF
4658rm -f conftest.$ac_objext conftest$ac_exeext
4659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4660  (eval $ac_link) 2>conftest.er1
4661  ac_status=$?
4662  grep -v '^ *+' conftest.er1 >conftest.err
4663  rm -f conftest.er1
4664  cat conftest.err >&5
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); } &&
4667	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669  (eval $ac_try) 2>&5
4670  ac_status=$?
4671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672  (exit $ac_status); }; } &&
4673	 { ac_try='test -s conftest$ac_exeext'
4674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675  (eval $ac_try) 2>&5
4676  ac_status=$?
4677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678  (exit $ac_status); }; }; then
4679  eval "kde_cv_prog_cxx_$kde_cache=yes"
4680else
4681  echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684fi
4685rm -f conftest.err conftest.$ac_objext \
4686      conftest$ac_exeext conftest.$ac_ext
4687  CXXFLAGS="$save_CXXFLAGS"
4688  ac_ext=c
4689ac_cpp='$CPP $CPPFLAGS'
4690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693
4694
4695fi
4696
4697if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4698 echo "$as_me:$LINENO: result: yes" >&5
4699echo "${ECHO_T}yes" >&6
4700 :
4701 CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
4702else
4703 echo "$as_me:$LINENO: result: no" >&5
4704echo "${ECHO_T}no" >&6
4705 :
4706
4707fi
4708
4709     fi
4710  fi
4711
4712  if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
4713    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
4714  fi
4715
4716  if test "$GXX" = "yes"; then
4717
4718echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
4719echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
4720kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
4721if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4722  echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724
4725
4726
4727   ac_ext=cc
4728ac_cpp='$CXXCPP $CPPFLAGS'
4729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4732
4733ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4734
4735
4736  save_CXXFLAGS="$CXXFLAGS"
4737  CXXFLAGS="$CXXFLAGS -fno-exceptions"
4738  cat >conftest.$ac_ext <<_ACEOF
4739/* confdefs.h.  */
4740_ACEOF
4741cat confdefs.h >>conftest.$ac_ext
4742cat >>conftest.$ac_ext <<_ACEOF
4743/* end confdefs.h.  */
4744
4745int
4746main ()
4747{
4748 return 0;
4749  ;
4750  return 0;
4751}
4752_ACEOF
4753rm -f conftest.$ac_objext conftest$ac_exeext
4754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755  (eval $ac_link) 2>conftest.er1
4756  ac_status=$?
4757  grep -v '^ *+' conftest.er1 >conftest.err
4758  rm -f conftest.er1
4759  cat conftest.err >&5
4760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761  (exit $ac_status); } &&
4762	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764  (eval $ac_try) 2>&5
4765  ac_status=$?
4766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767  (exit $ac_status); }; } &&
4768	 { ac_try='test -s conftest$ac_exeext'
4769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4770  (eval $ac_try) 2>&5
4771  ac_status=$?
4772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773  (exit $ac_status); }; }; then
4774  eval "kde_cv_prog_cxx_$kde_cache=yes"
4775else
4776  echo "$as_me: failed program was:" >&5
4777sed 's/^/| /' conftest.$ac_ext >&5
4778
4779fi
4780rm -f conftest.err conftest.$ac_objext \
4781      conftest$ac_exeext conftest.$ac_ext
4782  CXXFLAGS="$save_CXXFLAGS"
4783  ac_ext=c
4784ac_cpp='$CPP $CPPFLAGS'
4785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788
4789
4790fi
4791
4792if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4793 echo "$as_me:$LINENO: result: yes" >&5
4794echo "${ECHO_T}yes" >&6
4795 :
4796 CXXFLAGS="$CXXFLAGS -fno-exceptions"
4797else
4798 echo "$as_me:$LINENO: result: no" >&5
4799echo "${ECHO_T}no" >&6
4800 :
4801
4802fi
4803
4804
4805echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
4806echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
4807kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
4808if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4809  echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811
4812
4813
4814   ac_ext=cc
4815ac_cpp='$CXXCPP $CPPFLAGS'
4816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4819
4820ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4821
4822
4823  save_CXXFLAGS="$CXXFLAGS"
4824  CXXFLAGS="$CXXFLAGS -fno-check-new"
4825  cat >conftest.$ac_ext <<_ACEOF
4826/* confdefs.h.  */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h.  */
4831
4832int
4833main ()
4834{
4835 return 0;
4836  ;
4837  return 0;
4838}
4839_ACEOF
4840rm -f conftest.$ac_objext conftest$ac_exeext
4841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4842  (eval $ac_link) 2>conftest.er1
4843  ac_status=$?
4844  grep -v '^ *+' conftest.er1 >conftest.err
4845  rm -f conftest.er1
4846  cat conftest.err >&5
4847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848  (exit $ac_status); } &&
4849	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851  (eval $ac_try) 2>&5
4852  ac_status=$?
4853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854  (exit $ac_status); }; } &&
4855	 { ac_try='test -s conftest$ac_exeext'
4856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857  (eval $ac_try) 2>&5
4858  ac_status=$?
4859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860  (exit $ac_status); }; }; then
4861  eval "kde_cv_prog_cxx_$kde_cache=yes"
4862else
4863  echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866fi
4867rm -f conftest.err conftest.$ac_objext \
4868      conftest$ac_exeext conftest.$ac_ext
4869  CXXFLAGS="$save_CXXFLAGS"
4870  ac_ext=c
4871ac_cpp='$CPP $CPPFLAGS'
4872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
4876
4877fi
4878
4879if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4880 echo "$as_me:$LINENO: result: yes" >&5
4881echo "${ECHO_T}yes" >&6
4882 :
4883 CXXFLAGS="$CXXFLAGS -fno-check-new"
4884else
4885 echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6
4887 :
4888
4889fi
4890
4891
4892echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
4893echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6
4894kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
4895if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4896  echo $ECHO_N "(cached) $ECHO_C" >&6
4897else
4898
4899
4900
4901   ac_ext=cc
4902ac_cpp='$CXXCPP $CPPFLAGS'
4903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4906
4907ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4908
4909
4910  save_CXXFLAGS="$CXXFLAGS"
4911  CXXFLAGS="$CXXFLAGS -fno-common"
4912  cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h.  */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4917/* end confdefs.h.  */
4918
4919int
4920main ()
4921{
4922 return 0;
4923  ;
4924  return 0;
4925}
4926_ACEOF
4927rm -f conftest.$ac_objext conftest$ac_exeext
4928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4929  (eval $ac_link) 2>conftest.er1
4930  ac_status=$?
4931  grep -v '^ *+' conftest.er1 >conftest.err
4932  rm -f conftest.er1
4933  cat conftest.err >&5
4934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935  (exit $ac_status); } &&
4936	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938  (eval $ac_try) 2>&5
4939  ac_status=$?
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); }; } &&
4942	 { ac_try='test -s conftest$ac_exeext'
4943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944  (eval $ac_try) 2>&5
4945  ac_status=$?
4946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947  (exit $ac_status); }; }; then
4948  eval "kde_cv_prog_cxx_$kde_cache=yes"
4949else
4950  echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953fi
4954rm -f conftest.err conftest.$ac_objext \
4955      conftest$ac_exeext conftest.$ac_ext
4956  CXXFLAGS="$save_CXXFLAGS"
4957  ac_ext=c
4958ac_cpp='$CPP $CPPFLAGS'
4959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962
4963
4964fi
4965
4966if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4967 echo "$as_me:$LINENO: result: yes" >&5
4968echo "${ECHO_T}yes" >&6
4969 :
4970 CXXFLAGS="$CXXFLAGS -fno-common"
4971else
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974 :
4975
4976fi
4977
4978
4979echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
4980echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
4981kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
4982if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4983  echo $ECHO_N "(cached) $ECHO_C" >&6
4984else
4985
4986
4987
4988   ac_ext=cc
4989ac_cpp='$CXXCPP $CPPFLAGS'
4990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4993
4994ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4995
4996
4997  save_CXXFLAGS="$CXXFLAGS"
4998  CXXFLAGS="$CXXFLAGS -fexceptions"
4999  cat >conftest.$ac_ext <<_ACEOF
5000/* confdefs.h.  */
5001_ACEOF
5002cat confdefs.h >>conftest.$ac_ext
5003cat >>conftest.$ac_ext <<_ACEOF
5004/* end confdefs.h.  */
5005
5006int
5007main ()
5008{
5009 return 0;
5010  ;
5011  return 0;
5012}
5013_ACEOF
5014rm -f conftest.$ac_objext conftest$ac_exeext
5015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5016  (eval $ac_link) 2>conftest.er1
5017  ac_status=$?
5018  grep -v '^ *+' conftest.er1 >conftest.err
5019  rm -f conftest.er1
5020  cat conftest.err >&5
5021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022  (exit $ac_status); } &&
5023	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5025  (eval $ac_try) 2>&5
5026  ac_status=$?
5027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028  (exit $ac_status); }; } &&
5029	 { ac_try='test -s conftest$ac_exeext'
5030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031  (eval $ac_try) 2>&5
5032  ac_status=$?
5033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034  (exit $ac_status); }; }; then
5035  eval "kde_cv_prog_cxx_$kde_cache=yes"
5036else
5037  echo "$as_me: failed program was:" >&5
5038sed 's/^/| /' conftest.$ac_ext >&5
5039
5040fi
5041rm -f conftest.err conftest.$ac_objext \
5042      conftest$ac_exeext conftest.$ac_ext
5043  CXXFLAGS="$save_CXXFLAGS"
5044  ac_ext=c
5045ac_cpp='$CPP $CPPFLAGS'
5046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
5050
5051fi
5052
5053if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5054 echo "$as_me:$LINENO: result: yes" >&5
5055echo "${ECHO_T}yes" >&6
5056 :
5057 USE_EXCEPTIONS="-fexceptions"
5058else
5059 echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061 :
5062 USE_EXCEPTIONS=
5063fi
5064
5065    ENABLE_PERMISSIVE_FLAG="-fpermissive"
5066  fi
5067  if test "$CXX" = "KCC"; then
5068
5069    # Check whether --enable-pch or --disable-pch was given.
5070if test "${enable_pch+set}" = set; then
5071  enableval="$enable_pch"
5072
5073      kde_use_pch=$enableval
5074
5075else
5076  kde_use_pch=no
5077fi;
5078
5079    if test "$kde_use_pch" = "yes"; then
5080
5081echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
5082echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
5083kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
5084if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087
5088
5089
5090   ac_ext=cc
5091ac_cpp='$CXXCPP $CPPFLAGS'
5092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5095
5096ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5097
5098
5099  save_CXXFLAGS="$CXXFLAGS"
5100  CXXFLAGS="$CXXFLAGS --pch"
5101  cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h.  */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h.  */
5107
5108int
5109main ()
5110{
5111 return 0;
5112  ;
5113  return 0;
5114}
5115_ACEOF
5116rm -f conftest.$ac_objext conftest$ac_exeext
5117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5118  (eval $ac_link) 2>conftest.er1
5119  ac_status=$?
5120  grep -v '^ *+' conftest.er1 >conftest.err
5121  rm -f conftest.er1
5122  cat conftest.err >&5
5123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124  (exit $ac_status); } &&
5125	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127  (eval $ac_try) 2>&5
5128  ac_status=$?
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); }; } &&
5131	 { ac_try='test -s conftest$ac_exeext'
5132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133  (eval $ac_try) 2>&5
5134  ac_status=$?
5135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); }; }; then
5137  eval "kde_cv_prog_cxx_$kde_cache=yes"
5138else
5139  echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142fi
5143rm -f conftest.err conftest.$ac_objext \
5144      conftest$ac_exeext conftest.$ac_ext
5145  CXXFLAGS="$save_CXXFLAGS"
5146  ac_ext=c
5147ac_cpp='$CPP $CPPFLAGS'
5148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_c_compiler_gnu
5151
5152
5153fi
5154
5155if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5156 echo "$as_me:$LINENO: result: yes" >&5
5157echo "${ECHO_T}yes" >&6
5158 :
5159 CXXFLAGS="$CXXFLAGS --pch"
5160else
5161 echo "$as_me:$LINENO: result: no" >&5
5162echo "${ECHO_T}no" >&6
5163 :
5164
5165fi
5166
5167                                              fi
5168
5169echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
5170echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
5171kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
5172if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5173  echo $ECHO_N "(cached) $ECHO_C" >&6
5174else
5175
5176
5177
5178   ac_ext=cc
5179ac_cpp='$CXXCPP $CPPFLAGS'
5180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5183
5184ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5185
5186
5187  save_CXXFLAGS="$CXXFLAGS"
5188  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
5189  cat >conftest.$ac_ext <<_ACEOF
5190/* confdefs.h.  */
5191_ACEOF
5192cat confdefs.h >>conftest.$ac_ext
5193cat >>conftest.$ac_ext <<_ACEOF
5194/* end confdefs.h.  */
5195
5196int
5197main ()
5198{
5199 return 0;
5200  ;
5201  return 0;
5202}
5203_ACEOF
5204rm -f conftest.$ac_objext conftest$ac_exeext
5205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206  (eval $ac_link) 2>conftest.er1
5207  ac_status=$?
5208  grep -v '^ *+' conftest.er1 >conftest.err
5209  rm -f conftest.er1
5210  cat conftest.err >&5
5211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212  (exit $ac_status); } &&
5213	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215  (eval $ac_try) 2>&5
5216  ac_status=$?
5217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); }; } &&
5219	 { ac_try='test -s conftest$ac_exeext'
5220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221  (eval $ac_try) 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); }; }; then
5225  eval "kde_cv_prog_cxx_$kde_cache=yes"
5226else
5227  echo "$as_me: failed program was:" >&5
5228sed 's/^/| /' conftest.$ac_ext >&5
5229
5230fi
5231rm -f conftest.err conftest.$ac_objext \
5232      conftest$ac_exeext conftest.$ac_ext
5233  CXXFLAGS="$save_CXXFLAGS"
5234  ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239
5240
5241fi
5242
5243if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5244 echo "$as_me:$LINENO: result: yes" >&5
5245echo "${ECHO_T}yes" >&6
5246 :
5247 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
5248else
5249 echo "$as_me:$LINENO: result: no" >&5
5250echo "${ECHO_T}no" >&6
5251 :
5252
5253fi
5254
5255
5256echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
5257echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
5258kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
5259if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5260  echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262
5263
5264
5265   ac_ext=cc
5266ac_cpp='$CXXCPP $CPPFLAGS'
5267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270
5271ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5272
5273
5274  save_CXXFLAGS="$CXXFLAGS"
5275  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
5276  cat >conftest.$ac_ext <<_ACEOF
5277/* confdefs.h.  */
5278_ACEOF
5279cat confdefs.h >>conftest.$ac_ext
5280cat >>conftest.$ac_ext <<_ACEOF
5281/* end confdefs.h.  */
5282
5283int
5284main ()
5285{
5286 return 0;
5287  ;
5288  return 0;
5289}
5290_ACEOF
5291rm -f conftest.$ac_objext conftest$ac_exeext
5292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5293  (eval $ac_link) 2>conftest.er1
5294  ac_status=$?
5295  grep -v '^ *+' conftest.er1 >conftest.err
5296  rm -f conftest.er1
5297  cat conftest.err >&5
5298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299  (exit $ac_status); } &&
5300	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302  (eval $ac_try) 2>&5
5303  ac_status=$?
5304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305  (exit $ac_status); }; } &&
5306	 { ac_try='test -s conftest$ac_exeext'
5307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308  (eval $ac_try) 2>&5
5309  ac_status=$?
5310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311  (exit $ac_status); }; }; then
5312  eval "kde_cv_prog_cxx_$kde_cache=yes"
5313else
5314  echo "$as_me: failed program was:" >&5
5315sed 's/^/| /' conftest.$ac_ext >&5
5316
5317fi
5318rm -f conftest.err conftest.$ac_objext \
5319      conftest$ac_exeext conftest.$ac_ext
5320  CXXFLAGS="$save_CXXFLAGS"
5321  ac_ext=c
5322ac_cpp='$CPP $CPPFLAGS'
5323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326
5327
5328fi
5329
5330if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5331 echo "$as_me:$LINENO: result: yes" >&5
5332echo "${ECHO_T}yes" >&6
5333 :
5334 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
5335else
5336 echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6
5338 :
5339
5340fi
5341
5342
5343echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
5344echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
5345kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
5346if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5347  echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349
5350
5351
5352   ac_ext=cc
5353ac_cpp='$CXXCPP $CPPFLAGS'
5354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5357
5358ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5359
5360
5361  save_CXXFLAGS="$CXXFLAGS"
5362  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
5363  cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h.  */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h.  */
5369
5370int
5371main ()
5372{
5373 return 0;
5374  ;
5375  return 0;
5376}
5377_ACEOF
5378rm -f conftest.$ac_objext conftest$ac_exeext
5379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380  (eval $ac_link) 2>conftest.er1
5381  ac_status=$?
5382  grep -v '^ *+' conftest.er1 >conftest.err
5383  rm -f conftest.er1
5384  cat conftest.err >&5
5385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386  (exit $ac_status); } &&
5387	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389  (eval $ac_try) 2>&5
5390  ac_status=$?
5391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392  (exit $ac_status); }; } &&
5393	 { ac_try='test -s conftest$ac_exeext'
5394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395  (eval $ac_try) 2>&5
5396  ac_status=$?
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); }; }; then
5399  eval "kde_cv_prog_cxx_$kde_cache=yes"
5400else
5401  echo "$as_me: failed program was:" >&5
5402sed 's/^/| /' conftest.$ac_ext >&5
5403
5404fi
5405rm -f conftest.err conftest.$ac_objext \
5406      conftest$ac_exeext conftest.$ac_ext
5407  CXXFLAGS="$save_CXXFLAGS"
5408  ac_ext=c
5409ac_cpp='$CPP $CPPFLAGS'
5410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413
5414
5415fi
5416
5417if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5418 echo "$as_me:$LINENO: result: yes" >&5
5419echo "${ECHO_T}yes" >&6
5420 :
5421 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
5422else
5423 echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6
5425 :
5426
5427fi
5428
5429
5430echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
5431echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
5432kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
5433if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436
5437
5438
5439   ac_ext=cc
5440ac_cpp='$CXXCPP $CPPFLAGS'
5441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5444
5445ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5446
5447
5448  save_CXXFLAGS="$CXXFLAGS"
5449  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
5450  cat >conftest.$ac_ext <<_ACEOF
5451/* confdefs.h.  */
5452_ACEOF
5453cat confdefs.h >>conftest.$ac_ext
5454cat >>conftest.$ac_ext <<_ACEOF
5455/* end confdefs.h.  */
5456
5457int
5458main ()
5459{
5460 return 0;
5461  ;
5462  return 0;
5463}
5464_ACEOF
5465rm -f conftest.$ac_objext conftest$ac_exeext
5466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5467  (eval $ac_link) 2>conftest.er1
5468  ac_status=$?
5469  grep -v '^ *+' conftest.er1 >conftest.err
5470  rm -f conftest.er1
5471  cat conftest.err >&5
5472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473  (exit $ac_status); } &&
5474	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476  (eval $ac_try) 2>&5
5477  ac_status=$?
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); }; } &&
5480	 { ac_try='test -s conftest$ac_exeext'
5481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482  (eval $ac_try) 2>&5
5483  ac_status=$?
5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); }; }; then
5486  eval "kde_cv_prog_cxx_$kde_cache=yes"
5487else
5488  echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491fi
5492rm -f conftest.err conftest.$ac_objext \
5493      conftest$ac_exeext conftest.$ac_ext
5494  CXXFLAGS="$save_CXXFLAGS"
5495  ac_ext=c
5496ac_cpp='$CPP $CPPFLAGS'
5497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499ac_compiler_gnu=$ac_cv_c_compiler_gnu
5500
5501
5502fi
5503
5504if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5505 echo "$as_me:$LINENO: result: yes" >&5
5506echo "${ECHO_T}yes" >&6
5507 :
5508 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
5509else
5510 echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6
5512 :
5513
5514fi
5515
5516
5517echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
5518echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
5519kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
5520if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5521  echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523
5524
5525
5526   ac_ext=cc
5527ac_cpp='$CXXCPP $CPPFLAGS'
5528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5531
5532ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5533
5534
5535  save_CXXFLAGS="$CXXFLAGS"
5536  CXXFLAGS="$CXXFLAGS --one_per"
5537  cat >conftest.$ac_ext <<_ACEOF
5538/* confdefs.h.  */
5539_ACEOF
5540cat confdefs.h >>conftest.$ac_ext
5541cat >>conftest.$ac_ext <<_ACEOF
5542/* end confdefs.h.  */
5543
5544int
5545main ()
5546{
5547 return 0;
5548  ;
5549  return 0;
5550}
5551_ACEOF
5552rm -f conftest.$ac_objext conftest$ac_exeext
5553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5554  (eval $ac_link) 2>conftest.er1
5555  ac_status=$?
5556  grep -v '^ *+' conftest.er1 >conftest.err
5557  rm -f conftest.er1
5558  cat conftest.err >&5
5559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560  (exit $ac_status); } &&
5561	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563  (eval $ac_try) 2>&5
5564  ac_status=$?
5565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566  (exit $ac_status); }; } &&
5567	 { ac_try='test -s conftest$ac_exeext'
5568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569  (eval $ac_try) 2>&5
5570  ac_status=$?
5571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572  (exit $ac_status); }; }; then
5573  eval "kde_cv_prog_cxx_$kde_cache=yes"
5574else
5575  echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578fi
5579rm -f conftest.err conftest.$ac_objext \
5580      conftest$ac_exeext conftest.$ac_ext
5581  CXXFLAGS="$save_CXXFLAGS"
5582  ac_ext=c
5583ac_cpp='$CPP $CPPFLAGS'
5584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586ac_compiler_gnu=$ac_cv_c_compiler_gnu
5587
5588
5589fi
5590
5591if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5592 echo "$as_me:$LINENO: result: yes" >&5
5593echo "${ECHO_T}yes" >&6
5594 :
5595 CXXFLAGS="$CXXFLAGS --one_per"
5596else
5597 echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6
5599 :
5600
5601fi
5602
5603  fi
5604
5605    USE_RTTI=
5606
5607
5608  case "$host" in
5609      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
5610      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
5611      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
5612      *-*-solaris*)
5613        if test "$GXX" = yes; then
5614          libstdcpp=`$CXX -print-file-name=libstdc++.so`
5615          if test ! -f $libstdcpp; then
5616             { { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
5617echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
5618   { (exit 1); exit 1; }; }
5619          fi
5620        fi
5621        ;;
5622  esac
5623
5624  if test "x$kde_use_qt_emb" != "xyes"; then
5625  __val=$CXX
5626  __forbid=" -fno-rtti -rpath "
5627  if test -n "$__val"; then
5628    __new=""
5629    ac_save_IFS=$IFS
5630    IFS=" 	"
5631    for i in $__val; do
5632      case "$__forbid" in
5633        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
5634echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
5635	*) # Careful to not add spaces, where there were none, because otherwise
5636	   # libtool gets confused, if we change e.g. CXX
5637	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5638      esac
5639    done
5640    IFS=$ac_save_IFS
5641    CXX=$__new
5642  fi
5643
5644  __val=$CXXFLAGS
5645  __forbid=" -fno-rtti -rpath "
5646  if test -n "$__val"; then
5647    __new=""
5648    ac_save_IFS=$IFS
5649    IFS=" 	"
5650    for i in $__val; do
5651      case "$__forbid" in
5652        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
5653echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
5654	*) # Careful to not add spaces, where there were none, because otherwise
5655	   # libtool gets confused, if we change e.g. CXX
5656	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5657      esac
5658    done
5659    IFS=$ac_save_IFS
5660    CXXFLAGS=$__new
5661  fi
5662
5663else
5664  __val=$CXX
5665  __forbid=" -rpath "
5666  if test -n "$__val"; then
5667    __new=""
5668    ac_save_IFS=$IFS
5669    IFS=" 	"
5670    for i in $__val; do
5671      case "$__forbid" in
5672        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
5673echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
5674	*) # Careful to not add spaces, where there were none, because otherwise
5675	   # libtool gets confused, if we change e.g. CXX
5676	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5677      esac
5678    done
5679    IFS=$ac_save_IFS
5680    CXX=$__new
5681  fi
5682
5683  __val=$CXXFLAGS
5684  __forbid=" -rpath "
5685  if test -n "$__val"; then
5686    __new=""
5687    ac_save_IFS=$IFS
5688    IFS=" 	"
5689    for i in $__val; do
5690      case "$__forbid" in
5691        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
5692echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
5693	*) # Careful to not add spaces, where there were none, because otherwise
5694	   # libtool gets confused, if we change e.g. CXX
5695	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5696      esac
5697    done
5698    IFS=$ac_save_IFS
5699    CXXFLAGS=$__new
5700  fi
5701
5702fi
5703
5704
5705  ac_ext=cc
5706ac_cpp='$CXXCPP $CPPFLAGS'
5707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5710echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5711echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5712if test -z "$CXXCPP"; then
5713  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5714  echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716      # Double quotes because CXXCPP needs to be expanded
5717    for CXXCPP in "$CXX -E" "/lib/cpp"
5718    do
5719      ac_preproc_ok=false
5720for ac_cxx_preproc_warn_flag in '' yes
5721do
5722  # Use a header file that comes with gcc, so configuring glibc
5723  # with a fresh cross-compiler works.
5724  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5725  # <limits.h> exists even on freestanding compilers.
5726  # On the NeXT, cc -E runs the code through the compiler's parser,
5727  # not just through cpp. "Syntax error" is here to catch this case.
5728  cat >conftest.$ac_ext <<_ACEOF
5729/* confdefs.h.  */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h.  */
5734#ifdef __STDC__
5735# include <limits.h>
5736#else
5737# include <assert.h>
5738#endif
5739		     Syntax error
5740_ACEOF
5741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5742  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5743  ac_status=$?
5744  grep -v '^ *+' conftest.er1 >conftest.err
5745  rm -f conftest.er1
5746  cat conftest.err >&5
5747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748  (exit $ac_status); } >/dev/null; then
5749  if test -s conftest.err; then
5750    ac_cpp_err=$ac_cxx_preproc_warn_flag
5751    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5752  else
5753    ac_cpp_err=
5754  fi
5755else
5756  ac_cpp_err=yes
5757fi
5758if test -z "$ac_cpp_err"; then
5759  :
5760else
5761  echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764  # Broken: fails on valid input.
5765continue
5766fi
5767rm -f conftest.err conftest.$ac_ext
5768
5769  # OK, works on sane cases.  Now check whether non-existent headers
5770  # can be detected and how.
5771  cat >conftest.$ac_ext <<_ACEOF
5772/* confdefs.h.  */
5773_ACEOF
5774cat confdefs.h >>conftest.$ac_ext
5775cat >>conftest.$ac_ext <<_ACEOF
5776/* end confdefs.h.  */
5777#include <ac_nonexistent.h>
5778_ACEOF
5779if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5780  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5781  ac_status=$?
5782  grep -v '^ *+' conftest.er1 >conftest.err
5783  rm -f conftest.er1
5784  cat conftest.err >&5
5785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786  (exit $ac_status); } >/dev/null; then
5787  if test -s conftest.err; then
5788    ac_cpp_err=$ac_cxx_preproc_warn_flag
5789    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5790  else
5791    ac_cpp_err=
5792  fi
5793else
5794  ac_cpp_err=yes
5795fi
5796if test -z "$ac_cpp_err"; then
5797  # Broken: success on invalid input.
5798continue
5799else
5800  echo "$as_me: failed program was:" >&5
5801sed 's/^/| /' conftest.$ac_ext >&5
5802
5803  # Passes both tests.
5804ac_preproc_ok=:
5805break
5806fi
5807rm -f conftest.err conftest.$ac_ext
5808
5809done
5810# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5811rm -f conftest.err conftest.$ac_ext
5812if $ac_preproc_ok; then
5813  break
5814fi
5815
5816    done
5817    ac_cv_prog_CXXCPP=$CXXCPP
5818
5819fi
5820  CXXCPP=$ac_cv_prog_CXXCPP
5821else
5822  ac_cv_prog_CXXCPP=$CXXCPP
5823fi
5824echo "$as_me:$LINENO: result: $CXXCPP" >&5
5825echo "${ECHO_T}$CXXCPP" >&6
5826ac_preproc_ok=false
5827for ac_cxx_preproc_warn_flag in '' yes
5828do
5829  # Use a header file that comes with gcc, so configuring glibc
5830  # with a fresh cross-compiler works.
5831  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832  # <limits.h> exists even on freestanding compilers.
5833  # On the NeXT, cc -E runs the code through the compiler's parser,
5834  # not just through cpp. "Syntax error" is here to catch this case.
5835  cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h.  */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h.  */
5841#ifdef __STDC__
5842# include <limits.h>
5843#else
5844# include <assert.h>
5845#endif
5846		     Syntax error
5847_ACEOF
5848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5849  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5850  ac_status=$?
5851  grep -v '^ *+' conftest.er1 >conftest.err
5852  rm -f conftest.er1
5853  cat conftest.err >&5
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); } >/dev/null; then
5856  if test -s conftest.err; then
5857    ac_cpp_err=$ac_cxx_preproc_warn_flag
5858    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5859  else
5860    ac_cpp_err=
5861  fi
5862else
5863  ac_cpp_err=yes
5864fi
5865if test -z "$ac_cpp_err"; then
5866  :
5867else
5868  echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871  # Broken: fails on valid input.
5872continue
5873fi
5874rm -f conftest.err conftest.$ac_ext
5875
5876  # OK, works on sane cases.  Now check whether non-existent headers
5877  # can be detected and how.
5878  cat >conftest.$ac_ext <<_ACEOF
5879/* confdefs.h.  */
5880_ACEOF
5881cat confdefs.h >>conftest.$ac_ext
5882cat >>conftest.$ac_ext <<_ACEOF
5883/* end confdefs.h.  */
5884#include <ac_nonexistent.h>
5885_ACEOF
5886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5887  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5888  ac_status=$?
5889  grep -v '^ *+' conftest.er1 >conftest.err
5890  rm -f conftest.er1
5891  cat conftest.err >&5
5892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893  (exit $ac_status); } >/dev/null; then
5894  if test -s conftest.err; then
5895    ac_cpp_err=$ac_cxx_preproc_warn_flag
5896    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5897  else
5898    ac_cpp_err=
5899  fi
5900else
5901  ac_cpp_err=yes
5902fi
5903if test -z "$ac_cpp_err"; then
5904  # Broken: success on invalid input.
5905continue
5906else
5907  echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910  # Passes both tests.
5911ac_preproc_ok=:
5912break
5913fi
5914rm -f conftest.err conftest.$ac_ext
5915
5916done
5917# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5918rm -f conftest.err conftest.$ac_ext
5919if $ac_preproc_ok; then
5920  :
5921else
5922  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5923See \`config.log' for more details." >&5
5924echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5925See \`config.log' for more details." >&2;}
5926   { (exit 1); exit 1; }; }
5927fi
5928
5929ac_ext=c
5930ac_cpp='$CPP $CPPFLAGS'
5931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933ac_compiler_gnu=$ac_cv_c_compiler_gnu
5934
5935
5936  if test "$GCC" = yes; then
5937     NOOPT_CFLAGS=-O0
5938  fi
5939
5940echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
5941echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6
5942kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
5943if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5944  echo $ECHO_N "(cached) $ECHO_C" >&6
5945else
5946
5947
5948
5949   ac_ext=cc
5950ac_cpp='$CXXCPP $CPPFLAGS'
5951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5954
5955ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5956
5957
5958  save_CXXFLAGS="$CXXFLAGS"
5959  CXXFLAGS="$CXXFLAGS -O0"
5960  cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h.  */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h.  */
5966
5967int
5968main ()
5969{
5970 return 0;
5971  ;
5972  return 0;
5973}
5974_ACEOF
5975rm -f conftest.$ac_objext conftest$ac_exeext
5976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977  (eval $ac_link) 2>conftest.er1
5978  ac_status=$?
5979  grep -v '^ *+' conftest.er1 >conftest.err
5980  rm -f conftest.er1
5981  cat conftest.err >&5
5982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983  (exit $ac_status); } &&
5984	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
5985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986  (eval $ac_try) 2>&5
5987  ac_status=$?
5988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); }; } &&
5990	 { ac_try='test -s conftest$ac_exeext'
5991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992  (eval $ac_try) 2>&5
5993  ac_status=$?
5994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); }; }; then
5996  eval "kde_cv_prog_cxx_$kde_cache=yes"
5997else
5998  echo "$as_me: failed program was:" >&5
5999sed 's/^/| /' conftest.$ac_ext >&5
6000
6001fi
6002rm -f conftest.err conftest.$ac_objext \
6003      conftest$ac_exeext conftest.$ac_ext
6004  CXXFLAGS="$save_CXXFLAGS"
6005  ac_ext=c
6006ac_cpp='$CPP $CPPFLAGS'
6007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009ac_compiler_gnu=$ac_cv_c_compiler_gnu
6010
6011
6012fi
6013
6014if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6015 echo "$as_me:$LINENO: result: yes" >&5
6016echo "${ECHO_T}yes" >&6
6017 :
6018 NOOPT_CXXFLAGS=-O0
6019else
6020 echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6
6022 :
6023
6024fi
6025
6026
6027
6028
6029
6030
6031
6032  # Check whether --enable-final or --disable-final was given.
6033if test "${enable_final+set}" = set; then
6034  enableval="$enable_final"
6035  kde_use_final=$enableval
6036else
6037  kde_use_final=no
6038fi;
6039
6040  if test "x$kde_use_final" = "xyes"; then
6041      KDE_USE_FINAL_TRUE=""
6042      KDE_USE_FINAL_FALSE="#"
6043   else
6044      KDE_USE_FINAL_TRUE="#"
6045      KDE_USE_FINAL_FALSE=""
6046  fi
6047
6048
6049
6050
6051  # Check whether --enable-closure or --disable-closure was given.
6052if test "${enable_closure+set}" = set; then
6053  enableval="$enable_closure"
6054  kde_use_closure=$enableval
6055else
6056  kde_use_closure=no
6057fi;
6058
6059  KDE_NO_UNDEFINED=""
6060  if test "x$kde_use_closure" = "xyes"; then
6061       KDE_USE_CLOSURE_TRUE=""
6062       KDE_USE_CLOSURE_FALSE="#"
6063#       CXXFLAGS="$CXXFLAGS $REPO"
6064  else
6065       KDE_USE_CLOSURE_TRUE="#"
6066       KDE_USE_CLOSURE_FALSE=""
6067       KDE_NO_UNDEFINED=""
6068       case $host in
6069         *-*-linux-gnu)
6070
6071echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
6072echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6
6073kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
6074if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6075  echo $ECHO_N "(cached) $ECHO_C" >&6
6076else
6077
6078
6079
6080   ac_ext=cc
6081ac_cpp='$CXXCPP $CPPFLAGS'
6082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6085
6086ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6087
6088
6089  save_CXXFLAGS="$CXXFLAGS"
6090  CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
6091  cat >conftest.$ac_ext <<_ACEOF
6092/* confdefs.h.  */
6093_ACEOF
6094cat confdefs.h >>conftest.$ac_ext
6095cat >>conftest.$ac_ext <<_ACEOF
6096/* end confdefs.h.  */
6097
6098int
6099main ()
6100{
6101 return 0;
6102  ;
6103  return 0;
6104}
6105_ACEOF
6106rm -f conftest.$ac_objext conftest$ac_exeext
6107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6108  (eval $ac_link) 2>conftest.er1
6109  ac_status=$?
6110  grep -v '^ *+' conftest.er1 >conftest.err
6111  rm -f conftest.er1
6112  cat conftest.err >&5
6113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114  (exit $ac_status); } &&
6115	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117  (eval $ac_try) 2>&5
6118  ac_status=$?
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); }; } &&
6121	 { ac_try='test -s conftest$ac_exeext'
6122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123  (eval $ac_try) 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; }; then
6127  eval "kde_cv_prog_cxx_$kde_cache=yes"
6128else
6129  echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132fi
6133rm -f conftest.err conftest.$ac_objext \
6134      conftest$ac_exeext conftest.$ac_ext
6135  CXXFLAGS="$save_CXXFLAGS"
6136  ac_ext=c
6137ac_cpp='$CPP $CPPFLAGS'
6138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141
6142
6143fi
6144
6145if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6146 echo "$as_me:$LINENO: result: yes" >&5
6147echo "${ECHO_T}yes" >&6
6148 :
6149
6150echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
6151echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6
6152kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
6153if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6154  echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156
6157
6158
6159   ac_ext=cc
6160ac_cpp='$CXXCPP $CPPFLAGS'
6161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6164
6165ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6166
6167
6168  save_CXXFLAGS="$CXXFLAGS"
6169  CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
6170  cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h.  */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h.  */
6176
6177int
6178main ()
6179{
6180 return 0;
6181  ;
6182  return 0;
6183}
6184_ACEOF
6185rm -f conftest.$ac_objext conftest$ac_exeext
6186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187  (eval $ac_link) 2>conftest.er1
6188  ac_status=$?
6189  grep -v '^ *+' conftest.er1 >conftest.err
6190  rm -f conftest.er1
6191  cat conftest.err >&5
6192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193  (exit $ac_status); } &&
6194	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
6195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196  (eval $ac_try) 2>&5
6197  ac_status=$?
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); }; } &&
6200	 { ac_try='test -s conftest$ac_exeext'
6201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202  (eval $ac_try) 2>&5
6203  ac_status=$?
6204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205  (exit $ac_status); }; }; then
6206  eval "kde_cv_prog_cxx_$kde_cache=yes"
6207else
6208  echo "$as_me: failed program was:" >&5
6209sed 's/^/| /' conftest.$ac_ext >&5
6210
6211fi
6212rm -f conftest.err conftest.$ac_objext \
6213      conftest$ac_exeext conftest.$ac_ext
6214  CXXFLAGS="$save_CXXFLAGS"
6215  ac_ext=c
6216ac_cpp='$CPP $CPPFLAGS'
6217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220
6221
6222fi
6223
6224if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6225 echo "$as_me:$LINENO: result: yes" >&5
6226echo "${ECHO_T}yes" >&6
6227 :
6228 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
6229else
6230 echo "$as_me:$LINENO: result: no" >&5
6231echo "${ECHO_T}no" >&6
6232 :
6233 KDE_NO_UNDEFINED=""
6234fi
6235
6236else
6237 echo "$as_me:$LINENO: result: no" >&5
6238echo "${ECHO_T}no" >&6
6239 :
6240 KDE_NO_UNDEFINED=""
6241fi
6242
6243           ;;
6244       esac
6245  fi
6246
6247
6248
6249
6250
6251  # Check whether --enable-nmcheck or --disable-nmcheck was given.
6252if test "${enable_nmcheck+set}" = set; then
6253  enableval="$enable_nmcheck"
6254  kde_use_nmcheck=$enableval
6255else
6256  kde_use_nmcheck=no
6257fi;
6258
6259  if test "$kde_use_nmcheck" = "yes"; then
6260      KDE_USE_NMCHECK_TRUE=""
6261      KDE_USE_NMCHECK_FALSE="#"
6262   else
6263      KDE_USE_NMCHECK_TRUE="#"
6264      KDE_USE_NMCHECK_FALSE=""
6265  fi
6266
6267
6268
6269
6270
6271
6272# Check whether --enable-shared or --disable-shared was given.
6273if test "${enable_shared+set}" = set; then
6274  enableval="$enable_shared"
6275  p=${PACKAGE-default}
6276    case $enableval in
6277    yes) enable_shared=yes ;;
6278    no) enable_shared=no ;;
6279    *)
6280      enable_shared=no
6281      # Look at the argument we got.  We use all the common list separators.
6282      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6283      for pkg in $enableval; do
6284	IFS="$lt_save_ifs"
6285	if test "X$pkg" = "X$p"; then
6286	  enable_shared=yes
6287	fi
6288      done
6289      IFS="$lt_save_ifs"
6290      ;;
6291    esac
6292else
6293  enable_shared=yes
6294fi;
6295
6296# Check whether --enable-static or --disable-static was given.
6297if test "${enable_static+set}" = set; then
6298  enableval="$enable_static"
6299  p=${PACKAGE-default}
6300    case $enableval in
6301    yes) enable_static=yes ;;
6302    no) enable_static=no ;;
6303    *)
6304     enable_static=no
6305      # Look at the argument we got.  We use all the common list separators.
6306      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6307      for pkg in $enableval; do
6308	IFS="$lt_save_ifs"
6309	if test "X$pkg" = "X$p"; then
6310	  enable_static=yes
6311	fi
6312      done
6313      IFS="$lt_save_ifs"
6314      ;;
6315    esac
6316else
6317  enable_static=no
6318fi;
6319
6320
6321
6322
6323
6324    kdelibsuff=no
6325    # Check whether --enable-libsuffix or --disable-libsuffix was given.
6326if test "${enable_libsuffix+set}" = set; then
6327  enableval="$enable_libsuffix"
6328  kdelibsuff=$enableval
6329fi;
6330    # TODO: add an auto case that compiles a little C app to check
6331    # where the glibc is
6332    if test "$kdelibsuff" = "no"; then
6333       kdelibsuff=
6334    fi
6335    if test -z "$kdelibsuff"; then
6336        echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
6337echo "${ECHO_T}not using lib directory suffix" >&6
6338
6339cat >>confdefs.h <<\_ACEOF
6340#define KDELIBSUFF ""
6341_ACEOF
6342
6343    else
6344        if test "$libdir" = '${exec_prefix}/lib'; then
6345            libdir="$libdir${kdelibsuff}"
6346            libdir="$libdir"
6347          fi
6348
6349cat >>confdefs.h <<_ACEOF
6350#define KDELIBSUFF "${kdelibsuff}"
6351_ACEOF
6352
6353        echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
6354echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6
6355    fi
6356
6357# Check whether --enable-fast-install or --disable-fast-install was given.
6358if test "${enable_fast_install+set}" = set; then
6359  enableval="$enable_fast_install"
6360  p=${PACKAGE-default}
6361    case $enableval in
6362    yes) enable_fast_install=yes ;;
6363    no) enable_fast_install=no ;;
6364    *)
6365      enable_fast_install=no
6366      # Look at the argument we got.  We use all the common list separators.
6367      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6368      for pkg in $enableval; do
6369	IFS="$lt_save_ifs"
6370	if test "X$pkg" = "X$p"; then
6371	  enable_fast_install=yes
6372	fi
6373      done
6374      IFS="$lt_save_ifs"
6375      ;;
6376    esac
6377else
6378  enable_fast_install=yes
6379fi;
6380
6381echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6382echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6383if test "${lt_cv_path_SED+set}" = set; then
6384  echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386  # Loop through the user's path and test for sed and gsed.
6387# Then use that list of sed's as ones to test for truncation.
6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391  IFS=$as_save_IFS
6392  test -z "$as_dir" && as_dir=.
6393  for lt_ac_prog in sed gsed; do
6394    for ac_exec_ext in '' $ac_executable_extensions; do
6395      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6396        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6397      fi
6398    done
6399  done
6400done
6401lt_ac_max=0
6402lt_ac_count=0
6403# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6404# along with /bin/sed that truncates output.
6405for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6406  test ! -f $lt_ac_sed && break
6407  cat /dev/null > conftest.in
6408  lt_ac_count=0
6409  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6410  # Check for GNU sed and select it if it is found.
6411  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6412    lt_cv_path_SED=$lt_ac_sed
6413    break
6414  fi
6415  while true; do
6416    cat conftest.in conftest.in >conftest.tmp
6417    mv conftest.tmp conftest.in
6418    cp conftest.in conftest.nl
6419    echo >>conftest.nl
6420    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6421    cmp -s conftest.out conftest.nl || break
6422    # 10000 chars as input seems more than enough
6423    test $lt_ac_count -gt 10 && break
6424    lt_ac_count=`expr $lt_ac_count + 1`
6425    if test $lt_ac_count -gt $lt_ac_max; then
6426      lt_ac_max=$lt_ac_count
6427      lt_cv_path_SED=$lt_ac_sed
6428    fi
6429  done
6430done
6431
6432fi
6433
6434SED=$lt_cv_path_SED
6435echo "$as_me:$LINENO: result: $SED" >&5
6436echo "${ECHO_T}$SED" >&6
6437
6438echo "$as_me:$LINENO: checking for egrep" >&5
6439echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6440if test "${ac_cv_prog_egrep+set}" = set; then
6441  echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6444    then ac_cv_prog_egrep='grep -E'
6445    else ac_cv_prog_egrep='egrep'
6446    fi
6447fi
6448echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6449echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6450 EGREP=$ac_cv_prog_egrep
6451
6452
6453
6454# Check whether --with-gnu-ld or --without-gnu-ld was given.
6455if test "${with_gnu_ld+set}" = set; then
6456  withval="$with_gnu_ld"
6457  test "$withval" = no || with_gnu_ld=yes
6458else
6459  with_gnu_ld=no
6460fi;
6461ac_prog=ld
6462if test "$GCC" = yes; then
6463  # Check if gcc -print-prog-name=ld gives a path.
6464  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6465echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6466  case $host in
6467  *-*-mingw*)
6468    # gcc leaves a trailing carriage return which upsets mingw
6469    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6470  *)
6471    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6472  esac
6473  case $ac_prog in
6474    # Accept absolute paths.
6475    [\\/]* | ?:[\\/]*)
6476      re_direlt='/[^/][^/]*/\.\./'
6477      # Canonicalize the pathname of ld
6478      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6479      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6480	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6481      done
6482      test -z "$LD" && LD="$ac_prog"
6483      ;;
6484  "")
6485    # If it fails, then pretend we aren't using GCC.
6486    ac_prog=ld
6487    ;;
6488  *)
6489    # If it is relative, then search for the first ld in PATH.
6490    with_gnu_ld=unknown
6491    ;;
6492  esac
6493elif test "$with_gnu_ld" = yes; then
6494  echo "$as_me:$LINENO: checking for GNU ld" >&5
6495echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6496else
6497  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6498echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6499fi
6500if test "${lt_cv_path_LD+set}" = set; then
6501  echo $ECHO_N "(cached) $ECHO_C" >&6
6502else
6503  if test -z "$LD"; then
6504  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6505  for ac_dir in $PATH; do
6506    IFS="$lt_save_ifs"
6507    test -z "$ac_dir" && ac_dir=.
6508    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6509      lt_cv_path_LD="$ac_dir/$ac_prog"
6510      # Check to see if the program is GNU ld.  I'd rather use --version,
6511      # but apparently some GNU ld's only accept -v.
6512      # Break only if it was the GNU/non-GNU ld that we prefer.
6513      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6514      *GNU* | *'with BFD'*)
6515	test "$with_gnu_ld" != no && break
6516	;;
6517      *)
6518	test "$with_gnu_ld" != yes && break
6519	;;
6520      esac
6521    fi
6522  done
6523  IFS="$lt_save_ifs"
6524else
6525  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6526fi
6527fi
6528
6529LD="$lt_cv_path_LD"
6530if test -n "$LD"; then
6531  echo "$as_me:$LINENO: result: $LD" >&5
6532echo "${ECHO_T}$LD" >&6
6533else
6534  echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6
6536fi
6537test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6538echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6539   { (exit 1); exit 1; }; }
6540echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6541echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6542if test "${lt_cv_prog_gnu_ld+set}" = set; then
6543  echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6546case `$LD -v 2>&1 </dev/null` in
6547*GNU* | *'with BFD'*)
6548  lt_cv_prog_gnu_ld=yes
6549  ;;
6550*)
6551  lt_cv_prog_gnu_ld=no
6552  ;;
6553esac
6554fi
6555echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6556echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6557with_gnu_ld=$lt_cv_prog_gnu_ld
6558
6559
6560echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6561echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6562if test "${lt_cv_ld_reload_flag+set}" = set; then
6563  echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565  lt_cv_ld_reload_flag='-r'
6566fi
6567echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6568echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6569reload_flag=$lt_cv_ld_reload_flag
6570case $reload_flag in
6571"" | " "*) ;;
6572*) reload_flag=" $reload_flag" ;;
6573esac
6574reload_cmds='$LD$reload_flag -o $output$reload_objs'
6575
6576echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6577echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6578if test "${lt_cv_path_NM+set}" = set; then
6579  echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
6581  if test -n "$NM"; then
6582  # Let the user override the test.
6583  lt_cv_path_NM="$NM"
6584else
6585  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6586  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6587    IFS="$lt_save_ifs"
6588    test -z "$ac_dir" && ac_dir=.
6589    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6590    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6591      # Check to see if the nm accepts a BSD-compat flag.
6592      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6593      #   nm: unknown option "B" ignored
6594      # Tru64's nm complains that /dev/null is an invalid object file
6595      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6596      */dev/null* | *'Invalid file or object type'*)
6597	lt_cv_path_NM="$tmp_nm -B"
6598	break
6599        ;;
6600      *)
6601	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6602	*/dev/null*)
6603	  lt_cv_path_NM="$tmp_nm -p"
6604	  break
6605	  ;;
6606	*)
6607	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6608	  continue # so that we can try to find one that supports BSD flags
6609	  ;;
6610	esac
6611      esac
6612    fi
6613  done
6614  IFS="$lt_save_ifs"
6615  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6616fi
6617fi
6618echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6619echo "${ECHO_T}$lt_cv_path_NM" >&6
6620NM="$lt_cv_path_NM"
6621
6622echo "$as_me:$LINENO: checking whether ln -s works" >&5
6623echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6624LN_S=$as_ln_s
6625if test "$LN_S" = "ln -s"; then
6626  echo "$as_me:$LINENO: result: yes" >&5
6627echo "${ECHO_T}yes" >&6
6628else
6629  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6630echo "${ECHO_T}no, using $LN_S" >&6
6631fi
6632
6633echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6634echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6635if test "${lt_cv_deplibs_check_method+set}" = set; then
6636  echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638  lt_cv_file_magic_cmd='$MAGIC_CMD'
6639lt_cv_file_magic_test_file=
6640lt_cv_deplibs_check_method='unknown'
6641# Need to set the preceding variable on all platforms that support
6642# interlibrary dependencies.
6643# 'none' -- dependencies not supported.
6644# `unknown' -- same as none, but documents that we really don't know.
6645# 'pass_all' -- all dependencies passed with no checks.
6646# 'test_compile' -- check by making test program.
6647# 'file_magic [[regex]]' -- check by looking for files in library path
6648# which responds to the $file_magic_cmd with a given extended regex.
6649# If you have `file' or equivalent on your system and you're not sure
6650# whether `pass_all' will *always* work, you probably want this one.
6651
6652case $host_os in
6653aix4* | aix5*)
6654  lt_cv_deplibs_check_method=pass_all
6655  ;;
6656
6657beos*)
6658  lt_cv_deplibs_check_method=pass_all
6659  ;;
6660
6661bsdi4*)
6662  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6663  lt_cv_file_magic_cmd='/usr/bin/file -L'
6664  lt_cv_file_magic_test_file=/shlib/libc.so
6665  ;;
6666
6667cygwin*)
6668  lt_cv_deplibs_check_method=pass_all
6669  ;;
6670
6671mingw* | pw32*)
6672  # win32_libid is a shell function defined in ltmain.sh
6673  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6674  lt_cv_file_magic_cmd='win32_libid'
6675  ;;
6676
6677darwin* | rhapsody*)
6678  # this will be overwritten by pass_all, but leave it in just in case
6679  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
6680  lt_cv_file_magic_cmd='/usr/bin/file -L'
6681  case "$host_os" in
6682  rhapsody* | darwin1.[012])
6683    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
6684    ;;
6685  *) # Darwin 1.3 on
6686    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
6687    ;;
6688  esac
6689  lt_cv_deplibs_check_method=pass_all
6690  ;;
6691
6692freebsd*)
6693  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6694    case $host_cpu in
6695    i*86 )
6696      # Not sure whether the presence of OpenBSD here was a mistake.
6697      # Let's accept both of them until this is cleared up.
6698      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
6699      lt_cv_file_magic_cmd=/usr/bin/file
6700      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6701      ;;
6702    esac
6703  else
6704    lt_cv_deplibs_check_method=pass_all
6705  fi
6706  ;;
6707
6708gnu*)
6709  lt_cv_deplibs_check_method=pass_all
6710  ;;
6711
6712hpux10.20* | hpux11*)
6713  lt_cv_file_magic_cmd=/usr/bin/file
6714  case "$host_cpu" in
6715  ia64*)
6716    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6717    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6718    ;;
6719  hppa*64*)
6720    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]'
6721    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6722    ;;
6723  *)
6724    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6725    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6726    ;;
6727  esac
6728  ;;
6729
6730irix5* | irix6* | nonstopux*)
6731  case $host_os in
6732  irix5* | nonstopux*)
6733    # this will be overridden with pass_all, but let us keep it just in case
6734    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
6735    ;;
6736  *)
6737    case $LD in
6738    *-32|*"-32 ") libmagic=32-bit;;
6739    *-n32|*"-n32 ") libmagic=N32;;
6740    *-64|*"-64 ") libmagic=64-bit;;
6741    *) libmagic=never-match;;
6742    esac
6743    # this will be overridden with pass_all, but let us keep it just in case
6744    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
6745    ;;
6746  esac
6747  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
6748  lt_cv_deplibs_check_method=pass_all
6749  ;;
6750
6751# This must be Linux ELF.
6752linux*)
6753  case $host_cpu in
6754  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
6755    lt_cv_deplibs_check_method=pass_all ;;
6756  # the debian people say, arm and glibc 2.3.1 works for them with pass_all
6757  arm* )
6758    lt_cv_deplibs_check_method=pass_all ;;
6759  *)
6760    # glibc up to 2.1.1 does not perform some relocations on ARM
6761    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
6762  esac
6763  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
6764  ;;
6765
6766netbsd*)
6767  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6768    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6769  else
6770    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6771  fi
6772  ;;
6773
6774newos6*)
6775  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6776  lt_cv_file_magic_cmd=/usr/bin/file
6777  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6778  ;;
6779
6780nto-qnx*)
6781  lt_cv_deplibs_check_method=unknown
6782  ;;
6783
6784openbsd*)
6785  lt_cv_file_magic_cmd=/usr/bin/file
6786  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6787  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6788    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6789  else
6790    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6791  fi
6792  ;;
6793
6794osf3* | osf4* | osf5*)
6795  # this will be overridden with pass_all, but let us keep it just in case
6796  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
6797  lt_cv_file_magic_test_file=/shlib/libc.so
6798  lt_cv_deplibs_check_method=pass_all
6799  ;;
6800
6801sco3.2v5*)
6802  lt_cv_deplibs_check_method=pass_all
6803  ;;
6804
6805solaris*)
6806  lt_cv_deplibs_check_method=pass_all
6807  lt_cv_file_magic_test_file=/lib/libc.so
6808  ;;
6809
6810sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6811  case $host_vendor in
6812  motorola)
6813    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]'
6814    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6815    ;;
6816  ncr)
6817    lt_cv_deplibs_check_method=pass_all
6818    ;;
6819  sequent)
6820    lt_cv_file_magic_cmd='/bin/file'
6821    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6822    ;;
6823  sni)
6824    lt_cv_file_magic_cmd='/bin/file'
6825    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6826    lt_cv_file_magic_test_file=/lib/libc.so
6827    ;;
6828  siemens)
6829    lt_cv_deplibs_check_method=pass_all
6830    ;;
6831  esac
6832  ;;
6833
6834sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6835  lt_cv_deplibs_check_method=pass_all
6836  ;;
6837esac
6838
6839fi
6840echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6841echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6842file_magic_cmd=$lt_cv_file_magic_cmd
6843deplibs_check_method=$lt_cv_deplibs_check_method
6844test -z "$deplibs_check_method" && deplibs_check_method=unknown
6845
6846
6847# If no C compiler was specified, use CC.
6848LTCC=${LTCC-"$CC"}
6849
6850# Allow CC to be a program name with arguments.
6851compiler=$CC
6852
6853# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6854if test "${enable_libtool_lock+set}" = set; then
6855  enableval="$enable_libtool_lock"
6856
6857fi;
6858test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6859
6860# Some flags need to be propagated to the compiler or linker for good
6861# libtool support.
6862case $host in
6863ia64-*-hpux*)
6864  # Find out which ABI we are using.
6865  echo 'int i;' > conftest.$ac_ext
6866  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867  (eval $ac_compile) 2>&5
6868  ac_status=$?
6869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870  (exit $ac_status); }; then
6871    case `/usr/bin/file conftest.$ac_objext` in
6872    *ELF-32*)
6873      HPUX_IA64_MODE="32"
6874      ;;
6875    *ELF-64*)
6876      HPUX_IA64_MODE="64"
6877      ;;
6878    esac
6879  fi
6880  rm -rf conftest*
6881  ;;
6882*-*-irix6*)
6883  # Find out which ABI we are using.
6884  echo '#line 6884 "configure"' > conftest.$ac_ext
6885  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886  (eval $ac_compile) 2>&5
6887  ac_status=$?
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); }; then
6890   if test "$lt_cv_prog_gnu_ld" = yes; then
6891    case `/usr/bin/file conftest.$ac_objext` in
6892    *32-bit*)
6893      LD="${LD-ld} -melf32bsmip"
6894      ;;
6895    *N32*)
6896      LD="${LD-ld} -melf32bmipn32"
6897      ;;
6898    *64-bit*)
6899      LD="${LD-ld} -melf64bmip"
6900      ;;
6901    esac
6902   else
6903    case `/usr/bin/file conftest.$ac_objext` in
6904    *32-bit*)
6905      LD="${LD-ld} -32"
6906      ;;
6907    *N32*)
6908      LD="${LD-ld} -n32"
6909      ;;
6910    *64-bit*)
6911      LD="${LD-ld} -64"
6912      ;;
6913    esac
6914   fi
6915  fi
6916  rm -rf conftest*
6917  ;;
6918
6919x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6920  # Find out which ABI we are using.
6921  echo 'int i;' > conftest.$ac_ext
6922  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923  (eval $ac_compile) 2>&5
6924  ac_status=$?
6925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926  (exit $ac_status); }; then
6927    case "`/usr/bin/file conftest.o`" in
6928    *32-bit*)
6929      LINUX_64_MODE="32"
6930      case $host in
6931        x86_64-*linux*)
6932          LD="${LD-ld} -m elf_i386"
6933          ;;
6934        ppc64-*linux*)
6935          LD="${LD-ld} -m elf32ppclinux"
6936          ;;
6937        s390x-*linux*)
6938          LD="${LD-ld} -m elf_s390"
6939          ;;
6940        sparc64-*linux*)
6941          LD="${LD-ld} -m elf32_sparc"
6942          ;;
6943      esac
6944      ;;
6945    *64-bit*)
6946      LINUX_64_MODE="64"
6947      case $host in
6948        x86_64-*linux*)
6949          LD="${LD-ld} -m elf_x86_64"
6950          ;;
6951        ppc*-*linux*|powerpc*-*linux*)
6952          LD="${LD-ld} -m elf64ppc"
6953          ;;
6954        s390*-*linux*)
6955          LD="${LD-ld} -m elf64_s390"
6956          ;;
6957        sparc*-*linux*)
6958          LD="${LD-ld} -m elf64_sparc"
6959          ;;
6960      esac
6961      ;;
6962    esac
6963  fi
6964  rm -rf conftest*
6965  ;;
6966
6967*-*-sco3.2v5*)
6968  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6969  SAVE_CFLAGS="$CFLAGS"
6970  CFLAGS="$CFLAGS -belf"
6971  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6972echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6973if test "${lt_cv_cc_needs_belf+set}" = set; then
6974  echo $ECHO_N "(cached) $ECHO_C" >&6
6975else
6976  ac_ext=c
6977ac_cpp='$CPP $CPPFLAGS'
6978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980ac_compiler_gnu=$ac_cv_c_compiler_gnu
6981
6982     cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h.  */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
6987/* end confdefs.h.  */
6988
6989int
6990main ()
6991{
6992
6993  ;
6994  return 0;
6995}
6996_ACEOF
6997rm -f conftest.$ac_objext conftest$ac_exeext
6998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999  (eval $ac_link) 2>conftest.er1
7000  ac_status=$?
7001  grep -v '^ *+' conftest.er1 >conftest.err
7002  rm -f conftest.er1
7003  cat conftest.err >&5
7004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005  (exit $ac_status); } &&
7006	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008  (eval $ac_try) 2>&5
7009  ac_status=$?
7010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011  (exit $ac_status); }; } &&
7012	 { ac_try='test -s conftest$ac_exeext'
7013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014  (eval $ac_try) 2>&5
7015  ac_status=$?
7016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017  (exit $ac_status); }; }; then
7018  lt_cv_cc_needs_belf=yes
7019else
7020  echo "$as_me: failed program was:" >&5
7021sed 's/^/| /' conftest.$ac_ext >&5
7022
7023lt_cv_cc_needs_belf=no
7024fi
7025rm -f conftest.err conftest.$ac_objext \
7026      conftest$ac_exeext conftest.$ac_ext
7027     ac_ext=c
7028ac_cpp='$CPP $CPPFLAGS'
7029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031ac_compiler_gnu=$ac_cv_c_compiler_gnu
7032
7033fi
7034echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7035echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7036  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7037    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7038    CFLAGS="$SAVE_CFLAGS"
7039  fi
7040  ;;
7041
7042esac
7043
7044need_locks="$enable_libtool_lock"
7045
7046
7047
7048echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7049echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7050if test "${ac_cv_header_stdc+set}" = set; then
7051  echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053  cat >conftest.$ac_ext <<_ACEOF
7054/* confdefs.h.  */
7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h.  */
7059#include <stdlib.h>
7060#include <stdarg.h>
7061#include <string.h>
7062#include <float.h>
7063
7064int
7065main ()
7066{
7067
7068  ;
7069  return 0;
7070}
7071_ACEOF
7072rm -f conftest.$ac_objext
7073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074  (eval $ac_compile) 2>conftest.er1
7075  ac_status=$?
7076  grep -v '^ *+' conftest.er1 >conftest.err
7077  rm -f conftest.er1
7078  cat conftest.err >&5
7079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080  (exit $ac_status); } &&
7081	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083  (eval $ac_try) 2>&5
7084  ac_status=$?
7085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086  (exit $ac_status); }; } &&
7087	 { ac_try='test -s conftest.$ac_objext'
7088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089  (eval $ac_try) 2>&5
7090  ac_status=$?
7091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092  (exit $ac_status); }; }; then
7093  ac_cv_header_stdc=yes
7094else
7095  echo "$as_me: failed program was:" >&5
7096sed 's/^/| /' conftest.$ac_ext >&5
7097
7098ac_cv_header_stdc=no
7099fi
7100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101
7102if test $ac_cv_header_stdc = yes; then
7103  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7104  cat >conftest.$ac_ext <<_ACEOF
7105/* confdefs.h.  */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h.  */
7110#include <string.h>
7111
7112_ACEOF
7113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7114  $EGREP "memchr" >/dev/null 2>&1; then
7115  :
7116else
7117  ac_cv_header_stdc=no
7118fi
7119rm -f conftest*
7120
7121fi
7122
7123if test $ac_cv_header_stdc = yes; then
7124  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7125  cat >conftest.$ac_ext <<_ACEOF
7126/* confdefs.h.  */
7127_ACEOF
7128cat confdefs.h >>conftest.$ac_ext
7129cat >>conftest.$ac_ext <<_ACEOF
7130/* end confdefs.h.  */
7131#include <stdlib.h>
7132
7133_ACEOF
7134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7135  $EGREP "free" >/dev/null 2>&1; then
7136  :
7137else
7138  ac_cv_header_stdc=no
7139fi
7140rm -f conftest*
7141
7142fi
7143
7144if test $ac_cv_header_stdc = yes; then
7145  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7146  if test "$cross_compiling" = yes; then
7147  :
7148else
7149  cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h.  */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h.  */
7155#include <ctype.h>
7156#if ((' ' & 0x0FF) == 0x020)
7157# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7158# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7159#else
7160# define ISLOWER(c) \
7161		   (('a' <= (c) && (c) <= 'i') \
7162		     || ('j' <= (c) && (c) <= 'r') \
7163		     || ('s' <= (c) && (c) <= 'z'))
7164# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7165#endif
7166
7167#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7168int
7169main ()
7170{
7171  int i;
7172  for (i = 0; i < 256; i++)
7173    if (XOR (islower (i), ISLOWER (i))
7174	|| toupper (i) != TOUPPER (i))
7175      exit(2);
7176  exit (0);
7177}
7178_ACEOF
7179rm -f conftest$ac_exeext
7180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181  (eval $ac_link) 2>&5
7182  ac_status=$?
7183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186  (eval $ac_try) 2>&5
7187  ac_status=$?
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); }; }; then
7190  :
7191else
7192  echo "$as_me: program exited with status $ac_status" >&5
7193echo "$as_me: failed program was:" >&5
7194sed 's/^/| /' conftest.$ac_ext >&5
7195
7196( exit $ac_status )
7197ac_cv_header_stdc=no
7198fi
7199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7200fi
7201fi
7202fi
7203echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7204echo "${ECHO_T}$ac_cv_header_stdc" >&6
7205if test $ac_cv_header_stdc = yes; then
7206
7207cat >>confdefs.h <<\_ACEOF
7208#define STDC_HEADERS 1
7209_ACEOF
7210
7211fi
7212
7213# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7224		  inttypes.h stdint.h unistd.h
7225do
7226as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7227echo "$as_me:$LINENO: checking for $ac_header" >&5
7228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7229if eval "test \"\${$as_ac_Header+set}\" = set"; then
7230  echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232  cat >conftest.$ac_ext <<_ACEOF
7233/* confdefs.h.  */
7234_ACEOF
7235cat confdefs.h >>conftest.$ac_ext
7236cat >>conftest.$ac_ext <<_ACEOF
7237/* end confdefs.h.  */
7238$ac_includes_default
7239
7240#include <$ac_header>
7241_ACEOF
7242rm -f conftest.$ac_objext
7243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244  (eval $ac_compile) 2>conftest.er1
7245  ac_status=$?
7246  grep -v '^ *+' conftest.er1 >conftest.err
7247  rm -f conftest.er1
7248  cat conftest.err >&5
7249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250  (exit $ac_status); } &&
7251	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253  (eval $ac_try) 2>&5
7254  ac_status=$?
7255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256  (exit $ac_status); }; } &&
7257	 { ac_try='test -s conftest.$ac_objext'
7258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259  (eval $ac_try) 2>&5
7260  ac_status=$?
7261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262  (exit $ac_status); }; }; then
7263  eval "$as_ac_Header=yes"
7264else
7265  echo "$as_me: failed program was:" >&5
7266sed 's/^/| /' conftest.$ac_ext >&5
7267
7268eval "$as_ac_Header=no"
7269fi
7270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271fi
7272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7274if test `eval echo '${'$as_ac_Header'}'` = yes; then
7275  cat >>confdefs.h <<_ACEOF
7276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7277_ACEOF
7278
7279fi
7280
7281done
7282
7283
7284
7285for ac_header in dlfcn.h
7286do
7287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288if eval "test \"\${$as_ac_Header+set}\" = set"; then
7289  echo "$as_me:$LINENO: checking for $ac_header" >&5
7290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7291if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292  echo $ECHO_N "(cached) $ECHO_C" >&6
7293fi
7294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296else
7297  # Is the header compilable?
7298echo "$as_me:$LINENO: checking $ac_header usability" >&5
7299echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7300cat >conftest.$ac_ext <<_ACEOF
7301/* confdefs.h.  */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h.  */
7306$ac_includes_default
7307#include <$ac_header>
7308_ACEOF
7309rm -f conftest.$ac_objext
7310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311  (eval $ac_compile) 2>conftest.er1
7312  ac_status=$?
7313  grep -v '^ *+' conftest.er1 >conftest.err
7314  rm -f conftest.er1
7315  cat conftest.err >&5
7316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317  (exit $ac_status); } &&
7318	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320  (eval $ac_try) 2>&5
7321  ac_status=$?
7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323  (exit $ac_status); }; } &&
7324	 { ac_try='test -s conftest.$ac_objext'
7325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326  (eval $ac_try) 2>&5
7327  ac_status=$?
7328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329  (exit $ac_status); }; }; then
7330  ac_header_compiler=yes
7331else
7332  echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335ac_header_compiler=no
7336fi
7337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7338echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7339echo "${ECHO_T}$ac_header_compiler" >&6
7340
7341# Is the header present?
7342echo "$as_me:$LINENO: checking $ac_header presence" >&5
7343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7344cat >conftest.$ac_ext <<_ACEOF
7345/* confdefs.h.  */
7346_ACEOF
7347cat confdefs.h >>conftest.$ac_ext
7348cat >>conftest.$ac_ext <<_ACEOF
7349/* end confdefs.h.  */
7350#include <$ac_header>
7351_ACEOF
7352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7353  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7354  ac_status=$?
7355  grep -v '^ *+' conftest.er1 >conftest.err
7356  rm -f conftest.er1
7357  cat conftest.err >&5
7358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359  (exit $ac_status); } >/dev/null; then
7360  if test -s conftest.err; then
7361    ac_cpp_err=$ac_c_preproc_warn_flag
7362    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7363  else
7364    ac_cpp_err=
7365  fi
7366else
7367  ac_cpp_err=yes
7368fi
7369if test -z "$ac_cpp_err"; then
7370  ac_header_preproc=yes
7371else
7372  echo "$as_me: failed program was:" >&5
7373sed 's/^/| /' conftest.$ac_ext >&5
7374
7375  ac_header_preproc=no
7376fi
7377rm -f conftest.err conftest.$ac_ext
7378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7379echo "${ECHO_T}$ac_header_preproc" >&6
7380
7381# So?  What about this header?
7382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7383  yes:no: )
7384    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7386    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7387echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7388    ac_header_preproc=yes
7389    ;;
7390  no:yes:* )
7391    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7392echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7393    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7394echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7395    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7396echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7397    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7398echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7399    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7401    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7402echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7403    (
7404      cat <<\_ASBOX
7405## ------------------------------------------ ##
7406## Report this to the AC_PACKAGE_NAME lists.  ##
7407## ------------------------------------------ ##
7408_ASBOX
7409    ) |
7410      sed "s/^/$as_me: WARNING:     /" >&2
7411    ;;
7412esac
7413echo "$as_me:$LINENO: checking for $ac_header" >&5
7414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7415if eval "test \"\${$as_ac_Header+set}\" = set"; then
7416  echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418  eval "$as_ac_Header=\$ac_header_preproc"
7419fi
7420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7422
7423fi
7424if test `eval echo '${'$as_ac_Header'}'` = yes; then
7425  cat >>confdefs.h <<_ACEOF
7426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7427_ACEOF
7428
7429fi
7430
7431done
7432
7433ac_ext=f
7434ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7435ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7437if test -n "$ac_tool_prefix"; then
7438  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7439  do
7440    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7441set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7442echo "$as_me:$LINENO: checking for $ac_word" >&5
7443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7444if test "${ac_cv_prog_F77+set}" = set; then
7445  echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447  if test -n "$F77"; then
7448  ac_cv_prog_F77="$F77" # Let the user override the test.
7449else
7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453  IFS=$as_save_IFS
7454  test -z "$as_dir" && as_dir=.
7455  for ac_exec_ext in '' $ac_executable_extensions; do
7456  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7458    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459    break 2
7460  fi
7461done
7462done
7463
7464fi
7465fi
7466F77=$ac_cv_prog_F77
7467if test -n "$F77"; then
7468  echo "$as_me:$LINENO: result: $F77" >&5
7469echo "${ECHO_T}$F77" >&6
7470else
7471  echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6
7473fi
7474
7475    test -n "$F77" && break
7476  done
7477fi
7478if test -z "$F77"; then
7479  ac_ct_F77=$F77
7480  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7481do
7482  # Extract the first word of "$ac_prog", so it can be a program name with args.
7483set dummy $ac_prog; ac_word=$2
7484echo "$as_me:$LINENO: checking for $ac_word" >&5
7485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7486if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7487  echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
7489  if test -n "$ac_ct_F77"; then
7490  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7491else
7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495  IFS=$as_save_IFS
7496  test -z "$as_dir" && as_dir=.
7497  for ac_exec_ext in '' $ac_executable_extensions; do
7498  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499    ac_cv_prog_ac_ct_F77="$ac_prog"
7500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7501    break 2
7502  fi
7503done
7504done
7505
7506fi
7507fi
7508ac_ct_F77=$ac_cv_prog_ac_ct_F77
7509if test -n "$ac_ct_F77"; then
7510  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7511echo "${ECHO_T}$ac_ct_F77" >&6
7512else
7513  echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6
7515fi
7516
7517  test -n "$ac_ct_F77" && break
7518done
7519
7520  F77=$ac_ct_F77
7521fi
7522
7523
7524# Provide some information about the compiler.
7525echo "$as_me:7525:" \
7526     "checking for Fortran 77 compiler version" >&5
7527ac_compiler=`set X $ac_compile; echo $2`
7528{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7529  (eval $ac_compiler --version </dev/null >&5) 2>&5
7530  ac_status=$?
7531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532  (exit $ac_status); }
7533{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7534  (eval $ac_compiler -v </dev/null >&5) 2>&5
7535  ac_status=$?
7536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537  (exit $ac_status); }
7538{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7539  (eval $ac_compiler -V </dev/null >&5) 2>&5
7540  ac_status=$?
7541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542  (exit $ac_status); }
7543rm -f a.out
7544
7545# If we don't use `.F' as extension, the preprocessor is not run on the
7546# input file.  (Note that this only needs to work for GNU compilers.)
7547ac_save_ext=$ac_ext
7548ac_ext=F
7549echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7550echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7551if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7552  echo $ECHO_N "(cached) $ECHO_C" >&6
7553else
7554  cat >conftest.$ac_ext <<_ACEOF
7555      program main
7556#ifndef __GNUC__
7557       choke me
7558#endif
7559
7560      end
7561_ACEOF
7562rm -f conftest.$ac_objext
7563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564  (eval $ac_compile) 2>conftest.er1
7565  ac_status=$?
7566  grep -v '^ *+' conftest.er1 >conftest.err
7567  rm -f conftest.er1
7568  cat conftest.err >&5
7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570  (exit $ac_status); } &&
7571	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
7572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573  (eval $ac_try) 2>&5
7574  ac_status=$?
7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576  (exit $ac_status); }; } &&
7577	 { ac_try='test -s conftest.$ac_objext'
7578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579  (eval $ac_try) 2>&5
7580  ac_status=$?
7581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582  (exit $ac_status); }; }; then
7583  ac_compiler_gnu=yes
7584else
7585  echo "$as_me: failed program was:" >&5
7586sed 's/^/| /' conftest.$ac_ext >&5
7587
7588ac_compiler_gnu=no
7589fi
7590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7591ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7592
7593fi
7594echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7595echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7596ac_ext=$ac_save_ext
7597ac_test_FFLAGS=${FFLAGS+set}
7598ac_save_FFLAGS=$FFLAGS
7599FFLAGS=
7600echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7601echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7602if test "${ac_cv_prog_f77_g+set}" = set; then
7603  echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605  FFLAGS=-g
7606cat >conftest.$ac_ext <<_ACEOF
7607      program main
7608
7609      end
7610_ACEOF
7611rm -f conftest.$ac_objext
7612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7613  (eval $ac_compile) 2>conftest.er1
7614  ac_status=$?
7615  grep -v '^ *+' conftest.er1 >conftest.err
7616  rm -f conftest.er1
7617  cat conftest.err >&5
7618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619  (exit $ac_status); } &&
7620	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
7621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622  (eval $ac_try) 2>&5
7623  ac_status=$?
7624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625  (exit $ac_status); }; } &&
7626	 { ac_try='test -s conftest.$ac_objext'
7627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628  (eval $ac_try) 2>&5
7629  ac_status=$?
7630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631  (exit $ac_status); }; }; then
7632  ac_cv_prog_f77_g=yes
7633else
7634  echo "$as_me: failed program was:" >&5
7635sed 's/^/| /' conftest.$ac_ext >&5
7636
7637ac_cv_prog_f77_g=no
7638fi
7639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7640
7641fi
7642echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7643echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7644if test "$ac_test_FFLAGS" = set; then
7645  FFLAGS=$ac_save_FFLAGS
7646elif test $ac_cv_prog_f77_g = yes; then
7647  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7648    FFLAGS="-g -O2"
7649  else
7650    FFLAGS="-g"
7651  fi
7652else
7653  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7654    FFLAGS="-O2"
7655  else
7656    FFLAGS=
7657  fi
7658fi
7659
7660G77=`test $ac_compiler_gnu = yes && echo yes`
7661ac_ext=c
7662ac_cpp='$CPP $CPPFLAGS'
7663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666
7667
7668
7669# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7670
7671# find the maximum length of command line arguments
7672echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7673echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7674if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7675  echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677    i=0
7678  testring="ABCD"
7679
7680  case $build_os in
7681  msdosdjgpp*)
7682    # On DJGPP, this test can blow up pretty badly due to problems in libc
7683    # (any single argument exceeding 2000 bytes causes a buffer overrun
7684    # during glob expansion).  Even if it were fixed, the result of this
7685    # check would be larger than it should be.
7686    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7687    ;;
7688
7689  gnu*)
7690    # Under GNU Hurd, this test is not required because there is
7691    # no limit to the length of command line arguments.
7692    # Libtool will interpret -1 as no limit whatsoever
7693    lt_cv_sys_max_cmd_len=-1;
7694    ;;
7695
7696  cygwin* | mingw*)
7697    # On Win9x/ME, this test blows up -- it succeeds, but takes
7698    # about 5 minutes as the teststring grows exponentially.
7699    # Worse, since 9x/ME are not pre-emptively multitasking,
7700    # you end up with a "frozen" computer, even though with patience
7701    # the test eventually succeeds (with a max line length of 256k).
7702    # Instead, let's just punt: use the minimum linelength reported by
7703    # all of the supported platforms: 8192 (on NT/2K/XP).
7704    lt_cv_sys_max_cmd_len=8192;
7705    ;;
7706
7707 *)
7708    # If test is not a shell built-in, we'll probably end up computing a
7709    # maximum length that is only half of the actual maximum length, but
7710    # we can't tell.
7711    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
7712	       = "XX$testring") >/dev/null 2>&1 &&
7713	    new_result=`expr "X$testring" : ".*" 2>&1` &&
7714	    lt_cv_sys_max_cmd_len=$new_result &&
7715	    test $i != 17 # 1/2 MB should be enough
7716    do
7717      i=`expr $i + 1`
7718      testring=$testring$testring
7719    done
7720    testring=
7721    # Add a significant safety factor because C++ compilers can tack on massive
7722    # amounts of additional arguments before passing them to the linker.
7723    # It appears as though 1/2 is a usable value.
7724    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7725    ;;
7726  esac
7727
7728fi
7729
7730if test -n $lt_cv_sys_max_cmd_len ; then
7731  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7732echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7733else
7734  echo "$as_me:$LINENO: result: none" >&5
7735echo "${ECHO_T}none" >&6
7736fi
7737
7738
7739
7740
7741# Check for command to grab the raw symbol name followed by C symbol from nm.
7742echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7743echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7744if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7745  echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747
7748# These are sane defaults that work on at least a few old systems.
7749# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7750
7751# Character class describing NM global symbol codes.
7752symcode='[BCDEGRST]'
7753
7754# Regexp to match symbols that can be accessed directly from C.
7755sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7756
7757# Transform the above into a raw symbol and a C symbol.
7758symxfrm='\1 \2\3 \3'
7759
7760# Transform an extracted symbol line into a proper C declaration
7761lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7762
7763# Transform an extracted symbol line into symbol name and symbol address
7764lt_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'"
7765
7766# Define system-specific variables.
7767case $host_os in
7768aix*)
7769  symcode='[BCDT]'
7770  ;;
7771cygwin* | mingw* | pw32*)
7772  symcode='[ABCDGISTW]'
7773  ;;
7774hpux*) # Its linker distinguishes data from code symbols
7775  if test "$host_cpu" = ia64; then
7776    symcode='[ABCDEGRST]'
7777  fi
7778  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7779  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'"
7780  ;;
7781irix* | nonstopux*)
7782  symcode='[BCDEGRST]'
7783  ;;
7784osf*)
7785  symcode='[BCDEGQRST]'
7786  ;;
7787solaris* | sysv5*)
7788  symcode='[BDT]'
7789  ;;
7790sysv4)
7791  symcode='[DFNSTU]'
7792  ;;
7793esac
7794
7795# Handle CRLF in mingw tool chain
7796opt_cr=
7797case $build_os in
7798mingw*)
7799  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7800  ;;
7801esac
7802
7803# If we're using GNU nm, then use its standard symbol codes.
7804case `$NM -V 2>&1` in
7805*GNU* | *'with BFD'*)
7806  symcode='[ABCDGISTW]' ;;
7807esac
7808
7809# Try without a prefix undercore, then with it.
7810for ac_symprfx in "" "_"; do
7811
7812  # Write the raw and C identifiers.
7813  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7814
7815  # Check to see that the pipe works correctly.
7816  pipe_works=no
7817
7818  rm -f conftest*
7819  cat > conftest.$ac_ext <<EOF
7820#ifdef __cplusplus
7821extern "C" {
7822#endif
7823char nm_test_var;
7824void nm_test_func(){}
7825#ifdef __cplusplus
7826}
7827#endif
7828int main(){nm_test_var='a';nm_test_func();return(0);}
7829EOF
7830
7831  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7832  (eval $ac_compile) 2>&5
7833  ac_status=$?
7834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835  (exit $ac_status); }; then
7836    # Now try to grab the symbols.
7837    nlist=conftest.nm
7838    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7839  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7840  ac_status=$?
7841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); } && test -s "$nlist"; then
7843      # Try sorting and uniquifying the output.
7844      if sort "$nlist" | uniq > "$nlist"T; then
7845	mv -f "$nlist"T "$nlist"
7846      else
7847	rm -f "$nlist"T
7848      fi
7849
7850      # Make sure that we snagged all the symbols we need.
7851      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7852	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7853	  cat <<EOF > conftest.$ac_ext
7854#ifdef __cplusplus
7855extern "C" {
7856#endif
7857
7858EOF
7859	  # Now generate the symbol file.
7860	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7861
7862	  cat <<EOF >> conftest.$ac_ext
7863#if defined (__STDC__) && __STDC__
7864# define lt_ptr_t void *
7865#else
7866# define lt_ptr_t char *
7867# define const
7868#endif
7869
7870/* The mapping between symbol names and symbols. */
7871const struct {
7872  const char *name;
7873  lt_ptr_t address;
7874}
7875lt_preloaded_symbols[] =
7876{
7877EOF
7878	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7879	  cat <<\EOF >> conftest.$ac_ext
7880  {0, (lt_ptr_t) 0}
7881};
7882
7883#ifdef __cplusplus
7884}
7885#endif
7886EOF
7887	  # Now try linking the two files.
7888	  mv conftest.$ac_objext conftstm.$ac_objext
7889	  lt_save_LIBS="$LIBS"
7890	  lt_save_CFLAGS="$CFLAGS"
7891	  LIBS="conftstm.$ac_objext"
7892	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7893	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7894  (eval $ac_link) 2>&5
7895  ac_status=$?
7896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7898	    pipe_works=yes
7899	  fi
7900	  LIBS="$lt_save_LIBS"
7901	  CFLAGS="$lt_save_CFLAGS"
7902	else
7903	  echo "cannot find nm_test_func in $nlist" >&5
7904	fi
7905      else
7906	echo "cannot find nm_test_var in $nlist" >&5
7907      fi
7908    else
7909      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7910    fi
7911  else
7912    echo "$progname: failed program was:" >&5
7913    cat conftest.$ac_ext >&5
7914  fi
7915  rm -f conftest* conftst*
7916
7917  # Do not use the global_symbol_pipe unless it works.
7918  if test "$pipe_works" = yes; then
7919    break
7920  else
7921    lt_cv_sys_global_symbol_pipe=
7922  fi
7923done
7924
7925fi
7926
7927if test -z "$lt_cv_sys_global_symbol_pipe"; then
7928  lt_cv_sys_global_symbol_to_cdecl=
7929fi
7930if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7931  echo "$as_me:$LINENO: result: failed" >&5
7932echo "${ECHO_T}failed" >&6
7933else
7934  echo "$as_me:$LINENO: result: ok" >&5
7935echo "${ECHO_T}ok" >&6
7936fi
7937
7938echo "$as_me:$LINENO: checking for objdir" >&5
7939echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7940if test "${lt_cv_objdir+set}" = set; then
7941  echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943  rm -f .libs 2>/dev/null
7944mkdir .libs 2>/dev/null
7945if test -d .libs; then
7946  lt_cv_objdir=.libs
7947else
7948  # MS-DOS does not allow filenames that begin with a dot.
7949  lt_cv_objdir=_libs
7950fi
7951rmdir .libs 2>/dev/null
7952fi
7953echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7954echo "${ECHO_T}$lt_cv_objdir" >&6
7955objdir=$lt_cv_objdir
7956
7957
7958
7959
7960
7961case $host_os in
7962aix3*)
7963  # AIX sometimes has problems with the GCC collect2 program.  For some
7964  # reason, if we set the COLLECT_NAMES environment variable, the problems
7965  # vanish in a puff of smoke.
7966  if test "X${COLLECT_NAMES+set}" != Xset; then
7967    COLLECT_NAMES=
7968    export COLLECT_NAMES
7969  fi
7970  ;;
7971esac
7972
7973# Sed substitution that helps us do robust quoting.  It backslashifies
7974# metacharacters that are still active within double-quoted strings.
7975Xsed='sed -e s/^X//'
7976sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7977
7978# Same as above, but do not quote variable references.
7979double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7980
7981# Sed substitution to delay expansion of an escaped shell variable in a
7982# double_quote_subst'ed string.
7983delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7984
7985# Sed substitution to avoid accidental globbing in evaled expressions
7986no_glob_subst='s/\*/\\\*/g'
7987
7988# Constants:
7989rm="rm -f"
7990
7991# Global variables:
7992default_ofile=libtool
7993can_build_shared=yes
7994
7995# All known linkers require a `.a' archive for static linking (except M$VC,
7996# which needs '.lib').
7997libext=a
7998ltmain="$ac_aux_dir/ltmain.sh"
7999ofile="$default_ofile"
8000with_gnu_ld="$lt_cv_prog_gnu_ld"
8001
8002if test -n "$ac_tool_prefix"; then
8003  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8004set dummy ${ac_tool_prefix}ar; ac_word=$2
8005echo "$as_me:$LINENO: checking for $ac_word" >&5
8006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8007if test "${ac_cv_prog_AR+set}" = set; then
8008  echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010  if test -n "$AR"; then
8011  ac_cv_prog_AR="$AR" # Let the user override the test.
8012else
8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014for as_dir in $PATH
8015do
8016  IFS=$as_save_IFS
8017  test -z "$as_dir" && as_dir=.
8018  for ac_exec_ext in '' $ac_executable_extensions; do
8019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8020    ac_cv_prog_AR="${ac_tool_prefix}ar"
8021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022    break 2
8023  fi
8024done
8025done
8026
8027fi
8028fi
8029AR=$ac_cv_prog_AR
8030if test -n "$AR"; then
8031  echo "$as_me:$LINENO: result: $AR" >&5
8032echo "${ECHO_T}$AR" >&6
8033else
8034  echo "$as_me:$LINENO: result: no" >&5
8035echo "${ECHO_T}no" >&6
8036fi
8037
8038fi
8039if test -z "$ac_cv_prog_AR"; then
8040  ac_ct_AR=$AR
8041  # Extract the first word of "ar", so it can be a program name with args.
8042set dummy ar; ac_word=$2
8043echo "$as_me:$LINENO: checking for $ac_word" >&5
8044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8045if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8046  echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048  if test -n "$ac_ct_AR"; then
8049  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8050else
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054  IFS=$as_save_IFS
8055  test -z "$as_dir" && as_dir=.
8056  for ac_exec_ext in '' $ac_executable_extensions; do
8057  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058    ac_cv_prog_ac_ct_AR="ar"
8059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060    break 2
8061  fi
8062done
8063done
8064
8065  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8066fi
8067fi
8068ac_ct_AR=$ac_cv_prog_ac_ct_AR
8069if test -n "$ac_ct_AR"; then
8070  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8071echo "${ECHO_T}$ac_ct_AR" >&6
8072else
8073  echo "$as_me:$LINENO: result: no" >&5
8074echo "${ECHO_T}no" >&6
8075fi
8076
8077  AR=$ac_ct_AR
8078else
8079  AR="$ac_cv_prog_AR"
8080fi
8081
8082if test -n "$ac_tool_prefix"; then
8083  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8084set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8085echo "$as_me:$LINENO: checking for $ac_word" >&5
8086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8087if test "${ac_cv_prog_RANLIB+set}" = set; then
8088  echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090  if test -n "$RANLIB"; then
8091  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8092else
8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096  IFS=$as_save_IFS
8097  test -z "$as_dir" && as_dir=.
8098  for ac_exec_ext in '' $ac_executable_extensions; do
8099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8102    break 2
8103  fi
8104done
8105done
8106
8107fi
8108fi
8109RANLIB=$ac_cv_prog_RANLIB
8110if test -n "$RANLIB"; then
8111  echo "$as_me:$LINENO: result: $RANLIB" >&5
8112echo "${ECHO_T}$RANLIB" >&6
8113else
8114  echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
8116fi
8117
8118fi
8119if test -z "$ac_cv_prog_RANLIB"; then
8120  ac_ct_RANLIB=$RANLIB
8121  # Extract the first word of "ranlib", so it can be a program name with args.
8122set dummy ranlib; ac_word=$2
8123echo "$as_me:$LINENO: checking for $ac_word" >&5
8124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8125if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8126  echo $ECHO_N "(cached) $ECHO_C" >&6
8127else
8128  if test -n "$ac_ct_RANLIB"; then
8129  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8130else
8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132for as_dir in $PATH
8133do
8134  IFS=$as_save_IFS
8135  test -z "$as_dir" && as_dir=.
8136  for ac_exec_ext in '' $ac_executable_extensions; do
8137  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138    ac_cv_prog_ac_ct_RANLIB="ranlib"
8139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8140    break 2
8141  fi
8142done
8143done
8144
8145  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8146fi
8147fi
8148ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8149if test -n "$ac_ct_RANLIB"; then
8150  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8151echo "${ECHO_T}$ac_ct_RANLIB" >&6
8152else
8153  echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
8155fi
8156
8157  RANLIB=$ac_ct_RANLIB
8158else
8159  RANLIB="$ac_cv_prog_RANLIB"
8160fi
8161
8162if test -n "$ac_tool_prefix"; then
8163  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8164set dummy ${ac_tool_prefix}strip; ac_word=$2
8165echo "$as_me:$LINENO: checking for $ac_word" >&5
8166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8167if test "${ac_cv_prog_STRIP+set}" = set; then
8168  echo $ECHO_N "(cached) $ECHO_C" >&6
8169else
8170  if test -n "$STRIP"; then
8171  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8172else
8173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174for as_dir in $PATH
8175do
8176  IFS=$as_save_IFS
8177  test -z "$as_dir" && as_dir=.
8178  for ac_exec_ext in '' $ac_executable_extensions; do
8179  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8182    break 2
8183  fi
8184done
8185done
8186
8187fi
8188fi
8189STRIP=$ac_cv_prog_STRIP
8190if test -n "$STRIP"; then
8191  echo "$as_me:$LINENO: result: $STRIP" >&5
8192echo "${ECHO_T}$STRIP" >&6
8193else
8194  echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6
8196fi
8197
8198fi
8199if test -z "$ac_cv_prog_STRIP"; then
8200  ac_ct_STRIP=$STRIP
8201  # Extract the first word of "strip", so it can be a program name with args.
8202set dummy strip; ac_word=$2
8203echo "$as_me:$LINENO: checking for $ac_word" >&5
8204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8205if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8206  echo $ECHO_N "(cached) $ECHO_C" >&6
8207else
8208  if test -n "$ac_ct_STRIP"; then
8209  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8210else
8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212for as_dir in $PATH
8213do
8214  IFS=$as_save_IFS
8215  test -z "$as_dir" && as_dir=.
8216  for ac_exec_ext in '' $ac_executable_extensions; do
8217  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218    ac_cv_prog_ac_ct_STRIP="strip"
8219    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8220    break 2
8221  fi
8222done
8223done
8224
8225  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8226fi
8227fi
8228ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8229if test -n "$ac_ct_STRIP"; then
8230  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8231echo "${ECHO_T}$ac_ct_STRIP" >&6
8232else
8233  echo "$as_me:$LINENO: result: no" >&5
8234echo "${ECHO_T}no" >&6
8235fi
8236
8237  STRIP=$ac_ct_STRIP
8238else
8239  STRIP="$ac_cv_prog_STRIP"
8240fi
8241
8242
8243old_CC="$CC"
8244old_CFLAGS="$CFLAGS"
8245
8246# Set sane defaults for various variables
8247test -z "$AR" && AR=ar
8248test -z "$AR_FLAGS" && AR_FLAGS=cru
8249test -z "$AS" && AS=as
8250test -z "$CC" && CC=cc
8251test -z "$LTCC" && LTCC=$CC
8252test -z "$DLLTOOL" && DLLTOOL=dlltool
8253test -z "$LD" && LD=ld
8254test -z "$LN_S" && LN_S="ln -s"
8255test -z "$MAGIC_CMD" && MAGIC_CMD=file
8256test -z "$NM" && NM=nm
8257test -z "$SED" && SED=sed
8258test -z "$OBJDUMP" && OBJDUMP=objdump
8259test -z "$RANLIB" && RANLIB=:
8260test -z "$STRIP" && STRIP=:
8261test -z "$ac_objext" && ac_objext=o
8262
8263# Determine commands to create old-style static archives.
8264old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8265old_postinstall_cmds='chmod 644 $oldlib'
8266old_postuninstall_cmds=
8267
8268if test -n "$RANLIB"; then
8269  case $host_os in
8270  openbsd*)
8271    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8272    ;;
8273  *)
8274    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8275    ;;
8276  esac
8277  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8278fi
8279
8280# Only perform the check for file, if the check method requires it
8281case $deplibs_check_method in
8282file_magic*)
8283  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8284    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8285echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8286if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8287  echo $ECHO_N "(cached) $ECHO_C" >&6
8288else
8289  case $MAGIC_CMD in
8290[\\/*] |  ?:[\\/]*)
8291  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8292  ;;
8293*)
8294  lt_save_MAGIC_CMD="$MAGIC_CMD"
8295  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8296  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8297  for ac_dir in $ac_dummy; do
8298    IFS="$lt_save_ifs"
8299    test -z "$ac_dir" && ac_dir=.
8300    if test -f $ac_dir/${ac_tool_prefix}file; then
8301      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8302      if test -n "$file_magic_test_file"; then
8303	case $deplibs_check_method in
8304	"file_magic "*)
8305	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8306	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8307	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8308	    $EGREP "$file_magic_regex" > /dev/null; then
8309	    :
8310	  else
8311	    cat <<EOF 1>&2
8312
8313*** Warning: the command libtool uses to detect shared libraries,
8314*** $file_magic_cmd, produces output that libtool cannot recognize.
8315*** The result is that libtool may fail to recognize shared libraries
8316*** as such.  This will affect the creation of libtool libraries that
8317*** depend on shared libraries, but programs linked with such libtool
8318*** libraries will work regardless of this problem.  Nevertheless, you
8319*** may want to report the problem to your system manager and/or to
8320*** bug-libtool@gnu.org
8321
8322EOF
8323	  fi ;;
8324	esac
8325      fi
8326      break
8327    fi
8328  done
8329  IFS="$lt_save_ifs"
8330  MAGIC_CMD="$lt_save_MAGIC_CMD"
8331  ;;
8332esac
8333fi
8334
8335MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8336if test -n "$MAGIC_CMD"; then
8337  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8338echo "${ECHO_T}$MAGIC_CMD" >&6
8339else
8340  echo "$as_me:$LINENO: result: no" >&5
8341echo "${ECHO_T}no" >&6
8342fi
8343
8344if test -z "$lt_cv_path_MAGIC_CMD"; then
8345  if test -n "$ac_tool_prefix"; then
8346    echo "$as_me:$LINENO: checking for file" >&5
8347echo $ECHO_N "checking for file... $ECHO_C" >&6
8348if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8349  echo $ECHO_N "(cached) $ECHO_C" >&6
8350else
8351  case $MAGIC_CMD in
8352[\\/*] |  ?:[\\/]*)
8353  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8354  ;;
8355*)
8356  lt_save_MAGIC_CMD="$MAGIC_CMD"
8357  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8358  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8359  for ac_dir in $ac_dummy; do
8360    IFS="$lt_save_ifs"
8361    test -z "$ac_dir" && ac_dir=.
8362    if test -f $ac_dir/file; then
8363      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8364      if test -n "$file_magic_test_file"; then
8365	case $deplibs_check_method in
8366	"file_magic "*)
8367	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8368	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8369	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8370	    $EGREP "$file_magic_regex" > /dev/null; then
8371	    :
8372	  else
8373	    cat <<EOF 1>&2
8374
8375*** Warning: the command libtool uses to detect shared libraries,
8376*** $file_magic_cmd, produces output that libtool cannot recognize.
8377*** The result is that libtool may fail to recognize shared libraries
8378*** as such.  This will affect the creation of libtool libraries that
8379*** depend on shared libraries, but programs linked with such libtool
8380*** libraries will work regardless of this problem.  Nevertheless, you
8381*** may want to report the problem to your system manager and/or to
8382*** bug-libtool@gnu.org
8383
8384EOF
8385	  fi ;;
8386	esac
8387      fi
8388      break
8389    fi
8390  done
8391  IFS="$lt_save_ifs"
8392  MAGIC_CMD="$lt_save_MAGIC_CMD"
8393  ;;
8394esac
8395fi
8396
8397MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8398if test -n "$MAGIC_CMD"; then
8399  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8400echo "${ECHO_T}$MAGIC_CMD" >&6
8401else
8402  echo "$as_me:$LINENO: result: no" >&5
8403echo "${ECHO_T}no" >&6
8404fi
8405
8406  else
8407    MAGIC_CMD=:
8408  fi
8409fi
8410
8411  fi
8412  ;;
8413esac
8414
8415enable_dlopen=yes
8416enable_win32_dll=no
8417
8418# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8419if test "${enable_libtool_lock+set}" = set; then
8420  enableval="$enable_libtool_lock"
8421
8422fi;
8423test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8424
8425
8426# Check whether --with-pic or --without-pic was given.
8427if test "${with_pic+set}" = set; then
8428  withval="$with_pic"
8429  pic_mode="$withval"
8430else
8431  pic_mode=default
8432fi;
8433test -z "$pic_mode" && pic_mode=default
8434
8435# Use C for the default configuration in the libtool script
8436tagname=
8437lt_save_CC="$CC"
8438ac_ext=c
8439ac_cpp='$CPP $CPPFLAGS'
8440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8442ac_compiler_gnu=$ac_cv_c_compiler_gnu
8443
8444
8445# Source file extension for C test sources.
8446ac_ext=c
8447
8448# Object file extension for compiled C test sources.
8449objext=o
8450objext=$objext
8451
8452# Code to be used in simple compile tests
8453lt_simple_compile_test_code="int some_variable = 0;\n"
8454
8455# Code to be used in simple link tests
8456lt_simple_link_test_code='int main(){return(0);}\n'
8457
8458
8459# If no C compiler was specified, use CC.
8460LTCC=${LTCC-"$CC"}
8461
8462# Allow CC to be a program name with arguments.
8463compiler=$CC
8464
8465
8466#
8467# Check for any special shared library compilation flags.
8468#
8469lt_prog_cc_shlib=
8470if test "$GCC" = no; then
8471  case $host_os in
8472  sco3.2v5*)
8473    lt_prog_cc_shlib='-belf'
8474    ;;
8475  esac
8476fi
8477if test -n "$lt_prog_cc_shlib"; then
8478  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8479echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8480  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
8481  else
8482    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8483echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8484    lt_cv_prog_cc_can_build_shared=no
8485  fi
8486fi
8487
8488
8489#
8490# Check to make sure the static flag actually works.
8491#
8492echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8493echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8494if test "${lt_prog_compiler_static_works+set}" = set; then
8495  echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497  lt_prog_compiler_static_works=no
8498   save_LDFLAGS="$LDFLAGS"
8499   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8500   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8501   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8502     # The compiler can only warn and ignore the option if not recognized
8503     # So say no if there are warnings
8504     if test -s conftest.err; then
8505       # Append any errors to the config.log.
8506       cat conftest.err 1>&5
8507     else
8508       lt_prog_compiler_static_works=yes
8509     fi
8510   fi
8511   $rm conftest*
8512   LDFLAGS="$save_LDFLAGS"
8513
8514fi
8515echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8516echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8517
8518if test x"$lt_prog_compiler_static_works" = xyes; then
8519    :
8520else
8521    lt_prog_compiler_static=
8522fi
8523
8524
8525
8526## CAVEAT EMPTOR:
8527## There is no encapsulation within the following macros, do not change
8528## the running order or otherwise move them around unless you know exactly
8529## what you are doing...
8530
8531lt_prog_compiler_no_builtin_flag=
8532
8533if test "$GCC" = yes; then
8534  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8535
8536
8537echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8538echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8539if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8540  echo $ECHO_N "(cached) $ECHO_C" >&6
8541else
8542  lt_cv_prog_compiler_rtti_exceptions=no
8543  ac_outfile=conftest.$ac_objext
8544   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8545   lt_compiler_flag="-fno-rtti -fno-exceptions"
8546   # Insert the option either (1) after the last *FLAGS variable, or
8547   # (2) before a word containing "conftest.", or (3) at the end.
8548   # Note that $ac_compile itself does not contain backslashes and begins
8549   # with a dollar sign (not a hyphen), so the echo should work correctly.
8550   # The option is referenced via a variable to avoid confusing sed.
8551   lt_compile=`echo "$ac_compile" | $SED \
8552   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8553   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8554   -e 's:$: $lt_compiler_flag:'`
8555   (eval echo "\"\$as_me:8555: $lt_compile\"" >&5)
8556   (eval "$lt_compile" 2>conftest.err)
8557   ac_status=$?
8558   cat conftest.err >&5
8559   echo "$as_me:8559: \$? = $ac_status" >&5
8560   if (exit $ac_status) && test -s "$ac_outfile"; then
8561     # The compiler can only warn and ignore the option if not recognized
8562     # So say no if there are warnings
8563     if test ! -s conftest.err; then
8564       lt_cv_prog_compiler_rtti_exceptions=yes
8565     fi
8566   fi
8567   $rm conftest*
8568
8569fi
8570echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8571echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8572
8573if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8574    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8575else
8576    :
8577fi
8578
8579fi
8580
8581lt_prog_compiler_wl=
8582lt_prog_compiler_pic=
8583lt_prog_compiler_static=
8584
8585echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8586echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8587
8588  if test "$GCC" = yes; then
8589    lt_prog_compiler_wl='-Wl,'
8590    lt_prog_compiler_static='-static'
8591
8592    case $host_os in
8593      aix*)
8594      # All AIX code is PIC.
8595      if test "$host_cpu" = ia64; then
8596	# AIX 5 now supports IA64 processor
8597	lt_prog_compiler_static='-Bstatic'
8598      fi
8599      ;;
8600
8601    amigaos*)
8602      # FIXME: we need at least 68020 code to build shared libraries, but
8603      # adding the `-m68020' flag to GCC prevents building anything better,
8604      # like `-m68040'.
8605      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8606      ;;
8607
8608    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8609      # PIC is the default for these OSes.
8610      ;;
8611
8612    mingw* | pw32* | os2*)
8613      # This hack is so that the source file can tell whether it is being
8614      # built for inclusion in a dll (and should export symbols for example).
8615      lt_prog_compiler_pic='-DDLL_EXPORT'
8616      ;;
8617
8618    darwin* | rhapsody*)
8619      # PIC is the default on this platform
8620      # Common symbols not allowed in MH_DYLIB files
8621      lt_prog_compiler_pic='-fno-common'
8622      ;;
8623
8624    msdosdjgpp*)
8625      # Just because we use GCC doesn't mean we suddenly get shared libraries
8626      # on systems that don't support them.
8627      lt_prog_compiler_can_build_shared=no
8628      enable_shared=no
8629      ;;
8630
8631    sysv4*MP*)
8632      if test -d /usr/nec; then
8633	lt_prog_compiler_pic=-Kconform_pic
8634      fi
8635      ;;
8636
8637    hpux*)
8638      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8639      # not for PA HP-UX.
8640      case "$host_cpu" in
8641      hppa*64*|ia64*)
8642	# +Z the default
8643	;;
8644      *)
8645	lt_prog_compiler_pic='-fPIC'
8646	;;
8647      esac
8648      ;;
8649
8650    *)
8651      lt_prog_compiler_pic='-fPIC'
8652      ;;
8653    esac
8654  else
8655    # PORTME Check for flag to pass linker flags through the system compiler.
8656    case $host_os in
8657    aix*)
8658      lt_prog_compiler_wl='-Wl,'
8659      if test "$host_cpu" = ia64; then
8660	# AIX 5 now supports IA64 processor
8661	lt_prog_compiler_static='-Bstatic'
8662      else
8663	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8664      fi
8665      ;;
8666
8667    mingw* | pw32* | os2*)
8668      # This hack is so that the source file can tell whether it is being
8669      # built for inclusion in a dll (and should export symbols for example).
8670      lt_prog_compiler_pic='-DDLL_EXPORT'
8671      ;;
8672
8673    hpux9* | hpux10* | hpux11*)
8674      lt_prog_compiler_wl='-Wl,'
8675      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8676      # not for PA HP-UX.
8677      case "$host_cpu" in
8678      hppa*64*|ia64*)
8679	# +Z the default
8680	;;
8681      *)
8682	lt_prog_compiler_pic='+Z'
8683	;;
8684      esac
8685      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8686      lt_prog_compiler_static='${wl}-a ${wl}archive'
8687      ;;
8688
8689    irix5* | irix6* | nonstopux*)
8690      lt_prog_compiler_wl='-Wl,'
8691      # PIC (with -KPIC) is the default.
8692      lt_prog_compiler_static='-non_shared'
8693      ;;
8694
8695    newsos6)
8696      lt_prog_compiler_pic='-KPIC'
8697      lt_prog_compiler_static='-Bstatic'
8698      ;;
8699
8700    linux*)
8701      case $CC in
8702      icc* | ecc*)
8703	lt_prog_compiler_wl='-Wl,'
8704	lt_prog_compiler_pic='-KPIC'
8705	lt_prog_compiler_static='-static'
8706        ;;
8707      ccc*)
8708        lt_prog_compiler_wl='-Wl,'
8709        # All Alpha code is PIC.
8710        lt_prog_compiler_static='-non_shared'
8711        ;;
8712      esac
8713      ;;
8714
8715    osf3* | osf4* | osf5*)
8716      lt_prog_compiler_wl='-Wl,'
8717      # All OSF/1 code is PIC.
8718      lt_prog_compiler_static='-non_shared'
8719      ;;
8720
8721    sco3.2v5*)
8722      lt_prog_compiler_pic='-Kpic'
8723      lt_prog_compiler_static='-dn'
8724      ;;
8725
8726    solaris*)
8727      lt_prog_compiler_wl='-Wl,'
8728      lt_prog_compiler_pic='-KPIC'
8729      lt_prog_compiler_static='-Bstatic'
8730      ;;
8731
8732    sunos4*)
8733      lt_prog_compiler_wl='-Qoption ld '
8734      lt_prog_compiler_pic='-PIC'
8735      lt_prog_compiler_static='-Bstatic'
8736      ;;
8737
8738    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8739      lt_prog_compiler_wl='-Wl,'
8740      lt_prog_compiler_pic='-KPIC'
8741      lt_prog_compiler_static='-Bstatic'
8742      ;;
8743
8744    sysv4*MP*)
8745      if test -d /usr/nec ;then
8746	lt_prog_compiler_pic='-Kconform_pic'
8747	lt_prog_compiler_static='-Bstatic'
8748      fi
8749      ;;
8750
8751    uts4*)
8752      lt_prog_compiler_pic='-pic'
8753      lt_prog_compiler_static='-Bstatic'
8754      ;;
8755
8756    *)
8757      lt_prog_compiler_can_build_shared=no
8758      ;;
8759    esac
8760  fi
8761
8762echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8763echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8764
8765#
8766# Check to make sure the PIC flag actually works.
8767#
8768if test -n "$lt_prog_compiler_pic"; then
8769
8770echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8771echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8772if test "${lt_prog_compiler_pic_works+set}" = set; then
8773  echo $ECHO_N "(cached) $ECHO_C" >&6
8774else
8775  lt_prog_compiler_pic_works=no
8776  ac_outfile=conftest.$ac_objext
8777   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8778   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8779   # Insert the option either (1) after the last *FLAGS variable, or
8780   # (2) before a word containing "conftest.", or (3) at the end.
8781   # Note that $ac_compile itself does not contain backslashes and begins
8782   # with a dollar sign (not a hyphen), so the echo should work correctly.
8783   # The option is referenced via a variable to avoid confusing sed.
8784   lt_compile=`echo "$ac_compile" | $SED \
8785   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8786   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8787   -e 's:$: $lt_compiler_flag:'`
8788   (eval echo "\"\$as_me:8788: $lt_compile\"" >&5)
8789   (eval "$lt_compile" 2>conftest.err)
8790   ac_status=$?
8791   cat conftest.err >&5
8792   echo "$as_me:8792: \$? = $ac_status" >&5
8793   if (exit $ac_status) && test -s "$ac_outfile"; then
8794     # The compiler can only warn and ignore the option if not recognized
8795     # So say no if there are warnings
8796     if test ! -s conftest.err; then
8797       lt_prog_compiler_pic_works=yes
8798     fi
8799   fi
8800   $rm conftest*
8801
8802fi
8803echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8804echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8805
8806if test x"$lt_prog_compiler_pic_works" = xyes; then
8807    case $lt_prog_compiler_pic in
8808     "" | " "*) ;;
8809     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8810     esac
8811else
8812    lt_prog_compiler_pic=
8813     lt_prog_compiler_can_build_shared=no
8814fi
8815
8816fi
8817case "$host_os" in
8818  # For platforms which do not support PIC, -DPIC is meaningless:
8819  *djgpp*)
8820    lt_prog_compiler_pic=
8821    ;;
8822  *)
8823    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8824    ;;
8825esac
8826
8827echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8828echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8829if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8830  echo $ECHO_N "(cached) $ECHO_C" >&6
8831else
8832  lt_cv_prog_compiler_c_o=no
8833   $rm -r conftest 2>/dev/null
8834   mkdir conftest
8835   cd conftest
8836   mkdir out
8837   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8838
8839   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
8840   # that will create temporary files in the current directory regardless of
8841   # the output directory.  Thus, making CWD read-only will cause this test
8842   # to fail, enabling locking or at least warning the user not to do parallel
8843   # builds.
8844   chmod -w .
8845
8846   lt_compiler_flag="-o out/conftest2.$ac_objext"
8847   # Insert the option either (1) after the last *FLAGS variable, or
8848   # (2) before a word containing "conftest.", or (3) at the end.
8849   # Note that $ac_compile itself does not contain backslashes and begins
8850   # with a dollar sign (not a hyphen), so the echo should work correctly.
8851   lt_compile=`echo "$ac_compile" | $SED \
8852   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8853   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8854   -e 's:$: $lt_compiler_flag:'`
8855   (eval echo "\"\$as_me:8855: $lt_compile\"" >&5)
8856   (eval "$lt_compile" 2>out/conftest.err)
8857   ac_status=$?
8858   cat out/conftest.err >&5
8859   echo "$as_me:8859: \$? = $ac_status" >&5
8860   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8861   then
8862     # The compiler can only warn and ignore the option if not recognized
8863     # So say no if there are warnings
8864     if test ! -s out/conftest.err; then
8865       lt_cv_prog_compiler_c_o=yes
8866     fi
8867   fi
8868   chmod u+w .
8869   $rm conftest* out/*
8870   rmdir out
8871   cd ..
8872   rmdir conftest
8873   $rm conftest*
8874
8875fi
8876echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8877echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8878
8879
8880hard_links="nottested"
8881if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8882  # do not overwrite the value of need_locks provided by the user
8883  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8884echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8885  hard_links=yes
8886  $rm conftest*
8887  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8888  touch conftest.a
8889  ln conftest.a conftest.b 2>&5 || hard_links=no
8890  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8891  echo "$as_me:$LINENO: result: $hard_links" >&5
8892echo "${ECHO_T}$hard_links" >&6
8893  if test "$hard_links" = no; then
8894    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8895echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8896    need_locks=warn
8897  fi
8898else
8899  need_locks=no
8900fi
8901
8902echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8903echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8904
8905  runpath_var=
8906  allow_undefined_flag=
8907  enable_shared_with_static_runtimes=no
8908  archive_cmds=
8909  archive_expsym_cmds=
8910  old_archive_From_new_cmds=
8911  old_archive_from_expsyms_cmds=
8912  export_dynamic_flag_spec=
8913  whole_archive_flag_spec=
8914  thread_safe_flag_spec=
8915  hardcode_libdir_flag_spec=
8916  hardcode_libdir_flag_spec_ld=
8917  hardcode_libdir_separator=
8918  hardcode_direct=no
8919  hardcode_minus_L=no
8920  hardcode_shlibpath_var=unsupported
8921  link_all_deplibs=unknown
8922  hardcode_automatic=no
8923  module_cmds=
8924  module_expsym_cmds=
8925  always_export_symbols=no
8926  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8927  # include_expsyms should be a list of space-separated symbols to be *always*
8928  # included in the symbol list
8929  include_expsyms=
8930  # exclude_expsyms can be an extended regexp of symbols to exclude
8931  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8932  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8933  # as well as any symbol that contains `d'.
8934  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8935  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8936  # platforms (ab)use it in PIC code, but their linkers get confused if
8937  # the symbol is explicitly referenced.  Since portable code cannot
8938  # rely on this symbol name, it's probably fine to never include it in
8939  # preloaded symbol tables.
8940  extract_expsyms_cmds=
8941
8942  case $host_os in
8943  cygwin* | mingw* | pw32*)
8944    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8945    # When not using gcc, we currently assume that we are using
8946    # Microsoft Visual C++.
8947    if test "$GCC" != yes; then
8948      with_gnu_ld=no
8949    fi
8950    ;;
8951  openbsd*)
8952    with_gnu_ld=no
8953    ;;
8954  esac
8955
8956  ld_shlibs=yes
8957  if test "$with_gnu_ld" = yes; then
8958    # If archive_cmds runs LD, not CC, wlarc should be empty
8959    wlarc='${wl}'
8960
8961    # See if GNU ld supports shared libraries.
8962    case $host_os in
8963    aix3* | aix4* | aix5*)
8964      # On AIX/PPC, the GNU linker is very broken
8965      if test "$host_cpu" != ia64; then
8966	ld_shlibs=no
8967	cat <<EOF 1>&2
8968
8969*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8970*** to be unable to reliably create shared libraries on AIX.
8971*** Therefore, libtool is disabling shared libraries support.  If you
8972*** really care for shared libraries, you may want to modify your PATH
8973*** so that a non-GNU linker is found, and then restart.
8974
8975EOF
8976      fi
8977      ;;
8978
8979    amigaos*)
8980      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)'
8981      hardcode_libdir_flag_spec='-L$libdir'
8982      hardcode_minus_L=yes
8983
8984      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8985      # that the semantics of dynamic libraries on AmigaOS, at least up
8986      # to version 4, is to share data among multiple programs linked
8987      # with the same dynamic library.  Since this doesn't match the
8988      # behavior of shared libraries on other platforms, we can't use
8989      # them.
8990      ld_shlibs=no
8991      ;;
8992
8993    beos*)
8994      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8995	allow_undefined_flag=unsupported
8996	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8997	# support --undefined.  This deserves some investigation.  FIXME
8998	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8999      else
9000	ld_shlibs=no
9001      fi
9002      ;;
9003
9004    cygwin* | mingw* | pw32*)
9005      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9006      # as there is no search path for DLLs.
9007      hardcode_libdir_flag_spec='-L$libdir'
9008      allow_undefined_flag=no
9009      always_export_symbols=no
9010      enable_shared_with_static_runtimes=yes
9011      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9012
9013      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9014        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9015	# If the export-symbols file already is a .def file (1st line
9016	# is EXPORTS), use it as is; otherwise, prepend...
9017	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9018	  cp $export_symbols $output_objdir/$soname.def;
9019	else
9020	  echo EXPORTS > $output_objdir/$soname.def;
9021	  cat $export_symbols >> $output_objdir/$soname.def;
9022	fi~
9023	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9024      else
9025	ld_shlibs=no
9026      fi
9027      ;;
9028
9029    netbsd*)
9030      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9031	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9032	wlarc=
9033      else
9034	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036      fi
9037      ;;
9038
9039    solaris* | sysv5*)
9040      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9041	ld_shlibs=no
9042	cat <<EOF 1>&2
9043
9044*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9045*** create shared libraries on Solaris systems.  Therefore, libtool
9046*** is disabling shared libraries support.  We urge you to upgrade GNU
9047*** binutils to release 2.9.1 or newer.  Another option is to modify
9048*** your PATH or compiler configuration so that the native linker is
9049*** used, and then restart.
9050
9051EOF
9052      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9053	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9055      else
9056	ld_shlibs=no
9057      fi
9058      ;;
9059
9060    sunos4*)
9061      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9062      wlarc=
9063      hardcode_direct=yes
9064      hardcode_shlibpath_var=no
9065      ;;
9066
9067    *)
9068      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9069	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9071      else
9072	ld_shlibs=no
9073      fi
9074      ;;
9075    esac
9076
9077    if test "$ld_shlibs" = yes; then
9078      runpath_var=LD_RUN_PATH
9079      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9080      export_dynamic_flag_spec='${wl}--export-dynamic'
9081      # ancient GNU ld didn't support --whole-archive et. al.
9082      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9083 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9084      else
9085  	whole_archive_flag_spec=
9086      fi
9087    fi
9088  else
9089    # PORTME fill in a description of your system's linker (not GNU ld)
9090    case $host_os in
9091    aix3*)
9092      allow_undefined_flag=unsupported
9093      always_export_symbols=yes
9094      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'
9095      # Note: this linker hardcodes the directories in LIBPATH if there
9096      # are no directories specified by -L.
9097      hardcode_minus_L=yes
9098      if test "$GCC" = yes && test -z "$link_static_flag"; then
9099	# Neither direct hardcoding nor static linking is supported with a
9100	# broken collect2.
9101	hardcode_direct=unsupported
9102      fi
9103      ;;
9104
9105    aix4* | aix5*)
9106      if test "$host_cpu" = ia64; then
9107	# On IA64, the linker does run time linking by default, so we don't
9108	# have to do anything special.
9109	aix_use_runtimelinking=no
9110	exp_sym_flag='-Bexport'
9111	no_entry_flag=""
9112      else
9113	# If we're using GNU nm, then we don't want the "-C" option.
9114	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9115	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9116	  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'
9117	else
9118	  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'
9119	fi
9120
9121	# KDE requires run time linking.  Make it the default.
9122	aix_use_runtimelinking=yes
9123	exp_sym_flag='-bexport'
9124	no_entry_flag='-bnoentry'
9125      fi
9126
9127      # When large executables or shared objects are built, AIX ld can
9128      # have problems creating the table of contents.  If linking a library
9129      # or program results in "error TOC overflow" add -mminimal-toc to
9130      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9131      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9132
9133      archive_cmds=''
9134      hardcode_direct=yes
9135      hardcode_libdir_separator=':'
9136      link_all_deplibs=yes
9137
9138      if test "$GCC" = yes; then
9139	case $host_os in aix4.012|aix4.012.*)
9140	# We only want to do this on AIX 4.2 and lower, the check
9141	# below for broken collect2 doesn't work under 4.3+
9142	  collect2name=`${CC} -print-prog-name=collect2`
9143	  if test -f "$collect2name" && \
9144  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9145	  then
9146  	  # We have reworked collect2
9147  	  hardcode_direct=yes
9148	  else
9149  	  # We have old collect2
9150  	  hardcode_direct=unsupported
9151  	  # It fails to find uninstalled libraries when the uninstalled
9152  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9153  	  # to unsupported forces relinking
9154  	  hardcode_minus_L=yes
9155  	  hardcode_libdir_flag_spec='-L$libdir'
9156  	  hardcode_libdir_separator=
9157	  fi
9158	esac
9159	shared_flag='-shared'
9160      else
9161	# not using gcc
9162	if test "$host_cpu" = ia64; then
9163  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9164  	# chokes on -Wl,-G. The following line is correct:
9165	  shared_flag='-G'
9166	else
9167  	if test "$aix_use_runtimelinking" = yes; then
9168	    shared_flag='-qmkshrobj ${wl}-G'
9169	  else
9170	    shared_flag='-qmkshrobj'
9171  	fi
9172	fi
9173      fi
9174
9175      # Let the compiler handle the export list.
9176      always_export_symbols=no
9177      if test "$aix_use_runtimelinking" = yes; then
9178	# Warning - without using the other runtime loading flags (-brtl),
9179	# -berok will link without error, but may produce a broken library.
9180	allow_undefined_flag='-berok'
9181       # Determine the default libpath from the value encoded in an empty executable.
9182	cat >conftest.$ac_ext <<_ACEOF
9183/* confdefs.h.  */
9184_ACEOF
9185cat confdefs.h >>conftest.$ac_ext
9186cat >>conftest.$ac_ext <<_ACEOF
9187/* end confdefs.h.  */
9188
9189int
9190main ()
9191{
9192
9193  ;
9194  return 0;
9195}
9196_ACEOF
9197rm -f conftest.$ac_objext conftest$ac_exeext
9198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199  (eval $ac_link) 2>conftest.er1
9200  ac_status=$?
9201  grep -v '^ *+' conftest.er1 >conftest.err
9202  rm -f conftest.er1
9203  cat conftest.err >&5
9204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205  (exit $ac_status); } &&
9206	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208  (eval $ac_try) 2>&5
9209  ac_status=$?
9210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211  (exit $ac_status); }; } &&
9212	 { ac_try='test -s conftest$ac_exeext'
9213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214  (eval $ac_try) 2>&5
9215  ac_status=$?
9216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217  (exit $ac_status); }; }; then
9218
9219aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9220}'`
9221# Check for a 64-bit object if we didn't find anything.
9222if 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; }
9223}'`; fi
9224else
9225  echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
9228fi
9229rm -f conftest.err conftest.$ac_objext \
9230      conftest$ac_exeext conftest.$ac_ext
9231if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9232
9233	hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9234	archive_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
9235	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9236       else
9237	if test "$host_cpu" = ia64; then
9238	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9239	  allow_undefined_flag="-z nodefs"
9240	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9241	else
9242	 # Determine the default libpath from the value encoded in an empty executable.
9243	 cat >conftest.$ac_ext <<_ACEOF
9244/* confdefs.h.  */
9245_ACEOF
9246cat confdefs.h >>conftest.$ac_ext
9247cat >>conftest.$ac_ext <<_ACEOF
9248/* end confdefs.h.  */
9249
9250int
9251main ()
9252{
9253
9254  ;
9255  return 0;
9256}
9257_ACEOF
9258rm -f conftest.$ac_objext conftest$ac_exeext
9259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9260  (eval $ac_link) 2>conftest.er1
9261  ac_status=$?
9262  grep -v '^ *+' conftest.er1 >conftest.err
9263  rm -f conftest.er1
9264  cat conftest.err >&5
9265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266  (exit $ac_status); } &&
9267	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269  (eval $ac_try) 2>&5
9270  ac_status=$?
9271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272  (exit $ac_status); }; } &&
9273	 { ac_try='test -s conftest$ac_exeext'
9274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275  (eval $ac_try) 2>&5
9276  ac_status=$?
9277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278  (exit $ac_status); }; }; then
9279
9280aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9281}'`
9282# Check for a 64-bit object if we didn't find anything.
9283if 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; }
9284}'`; fi
9285else
9286  echo "$as_me: failed program was:" >&5
9287sed 's/^/| /' conftest.$ac_ext >&5
9288
9289fi
9290rm -f conftest.err conftest.$ac_objext \
9291      conftest$ac_exeext conftest.$ac_ext
9292if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9293
9294	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9295	  # Warning - without using the other run time loading flags,
9296	  # -berok will link without error, but may produce a broken library.
9297	  no_undefined_flag=' ${wl}-bernotok'
9298	  allow_undefined_flag=' ${wl}-berok'
9299	  # -bexpall does not export symbols beginning with underscore (_)
9300	  always_export_symbols=yes
9301	  # Exported symbols can be pulled into shared objects from archives
9302	  whole_archive_flag_spec=' '
9303	  archive_cmds_need_lc=yes
9304	  # This is similar to how AIX traditionally builds it's shared libraries.
9305	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9306	fi
9307      fi
9308      ;;
9309
9310    amigaos*)
9311      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)'
9312      hardcode_libdir_flag_spec='-L$libdir'
9313      hardcode_minus_L=yes
9314      # see comment about different semantics on the GNU ld section
9315      ld_shlibs=no
9316      ;;
9317
9318    bsdi4*)
9319      export_dynamic_flag_spec=-rdynamic
9320      ;;
9321
9322    cygwin* | mingw* | pw32*)
9323      # When not using gcc, we currently assume that we are using
9324      # Microsoft Visual C++.
9325      # hardcode_libdir_flag_spec is actually meaningless, as there is
9326      # no search path for DLLs.
9327      hardcode_libdir_flag_spec=' '
9328      allow_undefined_flag=no
9329      # Tell ltmain to make .lib files, not .a files.
9330      libext=lib
9331      # Tell ltmain to make .dll files, not .so files.
9332      shrext=".dll"
9333      # FIXME: Setting linknames here is a bad hack.
9334      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9335      # The linker will automatically build a .lib file if we build a DLL.
9336      old_archive_From_new_cmds='true'
9337      # FIXME: Should let the user specify the lib program.
9338      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9339      fix_srcfile_path='`cygpath -w "$srcfile"`'
9340      enable_shared_with_static_runtimes=yes
9341      ;;
9342
9343    darwin* | rhapsody*)
9344    if test "$GXX" = yes ; then
9345      archive_cmds_need_lc=no
9346      case "$host_os" in
9347      rhapsody* | darwin1.[012])
9348	allow_undefined_flag='-undefined suppress'
9349	;;
9350      *) # Darwin 1.3 on
9351	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
9352	;;
9353      esac
9354    	lt_int_apple_cc_single_mod=no
9355    	output_verbose_link_cmd='echo'
9356    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9357    	  lt_int_apple_cc_single_mod=yes
9358    	fi
9359    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9360    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9361    	else
9362        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9363      fi
9364      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9365      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9366        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9367          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9368        else
9369          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9370        fi
9371          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}'
9372      hardcode_direct=no
9373      hardcode_automatic=yes
9374      hardcode_shlibpath_var=unsupported
9375      whole_archive_flag_spec='-all_load $convenience'
9376      link_all_deplibs=yes
9377    else
9378      ld_shlibs=no
9379    fi
9380      ;;
9381
9382    dgux*)
9383      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384      hardcode_libdir_flag_spec='-L$libdir'
9385      hardcode_shlibpath_var=no
9386      ;;
9387
9388    freebsd1*)
9389      ld_shlibs=no
9390      ;;
9391
9392    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9393    # support.  Future versions do this automatically, but an explicit c++rt0.o
9394    # does not break anything, and helps significantly (at the cost of a little
9395    # extra space).
9396    freebsd2.2*)
9397      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9398      hardcode_libdir_flag_spec='-R$libdir'
9399      hardcode_direct=yes
9400      hardcode_shlibpath_var=no
9401      ;;
9402
9403    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9404    freebsd2*)
9405      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9406      hardcode_direct=yes
9407      hardcode_minus_L=yes
9408      hardcode_shlibpath_var=no
9409      ;;
9410
9411    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9412    freebsd*)
9413      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9414      hardcode_libdir_flag_spec='-R$libdir'
9415      hardcode_direct=yes
9416      hardcode_shlibpath_var=no
9417      ;;
9418
9419    hpux9*)
9420      if test "$GCC" = yes; then
9421	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'
9422      else
9423	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'
9424      fi
9425      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9426      hardcode_libdir_separator=:
9427      hardcode_direct=yes
9428
9429      # hardcode_minus_L: Not really in the search PATH,
9430      # but as the default location of the library.
9431      hardcode_minus_L=yes
9432      export_dynamic_flag_spec='${wl}-E'
9433      ;;
9434
9435    hpux10* | hpux11*)
9436      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9437	case "$host_cpu" in
9438	hppa*64*|ia64*)
9439	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440	  ;;
9441	*)
9442	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9443	  ;;
9444	esac
9445      else
9446	case "$host_cpu" in
9447	hppa*64*|ia64*)
9448	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9449	  ;;
9450	*)
9451	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9452	  ;;
9453	esac
9454      fi
9455      if test "$with_gnu_ld" = no; then
9456	case "$host_cpu" in
9457	hppa*64*)
9458	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459	  hardcode_libdir_flag_spec_ld='+b $libdir'
9460	  hardcode_libdir_separator=:
9461	  hardcode_direct=no
9462	  hardcode_shlibpath_var=no
9463	  ;;
9464	ia64*)
9465	  hardcode_libdir_flag_spec='-L$libdir'
9466	  hardcode_direct=no
9467	  hardcode_shlibpath_var=no
9468
9469	  # hardcode_minus_L: Not really in the search PATH,
9470	  # but as the default location of the library.
9471	  hardcode_minus_L=yes
9472	  ;;
9473	*)
9474	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9475	  hardcode_libdir_separator=:
9476	  hardcode_direct=yes
9477	  export_dynamic_flag_spec='${wl}-E'
9478
9479	  # hardcode_minus_L: Not really in the search PATH,
9480	  # but as the default location of the library.
9481	  hardcode_minus_L=yes
9482	  ;;
9483	esac
9484      fi
9485      ;;
9486
9487    irix5* | irix6* | nonstopux*)
9488      if test "$GCC" = yes; then
9489	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'
9490      else
9491	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'
9492	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9493      fi
9494      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9495      hardcode_libdir_separator=:
9496      link_all_deplibs=yes
9497      ;;
9498
9499    netbsd*)
9500      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9501	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9502      else
9503	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9504      fi
9505      hardcode_libdir_flag_spec='-R$libdir'
9506      hardcode_direct=yes
9507      hardcode_shlibpath_var=no
9508      ;;
9509
9510    newsos6)
9511      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512      hardcode_direct=yes
9513      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9514      hardcode_libdir_separator=:
9515      hardcode_shlibpath_var=no
9516      ;;
9517
9518    openbsd*)
9519      hardcode_direct=yes
9520      hardcode_shlibpath_var=no
9521      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9522	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9523	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9524	export_dynamic_flag_spec='${wl}-E'
9525      else
9526       case $host_os in
9527	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9528	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9529	   hardcode_libdir_flag_spec='-R$libdir'
9530	   ;;
9531	 *)
9532	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9533	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9534	   ;;
9535       esac
9536      fi
9537      ;;
9538
9539    os2*)
9540      hardcode_libdir_flag_spec='-L$libdir'
9541      hardcode_minus_L=yes
9542      allow_undefined_flag=unsupported
9543      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'
9544      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9545      ;;
9546
9547    osf3*)
9548      if test "$GCC" = yes; then
9549	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9550	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'
9551      else
9552	allow_undefined_flag=' -expect_unresolved \*'
9553	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'
9554      fi
9555      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556      hardcode_libdir_separator=:
9557      ;;
9558
9559    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9560      if test "$GCC" = yes; then
9561	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9562	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'
9563	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9564      else
9565	allow_undefined_flag=' -expect_unresolved \*'
9566	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'
9567	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9568	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
9569
9570	# Both c and cxx compiler support -rpath directly
9571	hardcode_libdir_flag_spec='-rpath $libdir'
9572      fi
9573      hardcode_libdir_separator=:
9574      ;;
9575
9576    sco3.2v5*)
9577      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578      hardcode_shlibpath_var=no
9579      export_dynamic_flag_spec='${wl}-Bexport'
9580      runpath_var=LD_RUN_PATH
9581      hardcode_runpath_var=yes
9582      ;;
9583
9584    solaris*)
9585      no_undefined_flag=' -z text'
9586      if test "$GCC" = yes; then
9587	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9588	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9589	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9590      else
9591	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9592	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9593  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9594      fi
9595      hardcode_libdir_flag_spec='-R$libdir'
9596      hardcode_shlibpath_var=no
9597      case $host_os in
9598      solaris2.[0-5] | solaris2.[0-5].*) ;;
9599      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9600	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9601      esac
9602      link_all_deplibs=yes
9603      ;;
9604
9605    sunos4*)
9606      if test "x$host_vendor" = xsequent; then
9607	# Use $CC to link under sequent, because it throws in some extra .o
9608	# files that make .init and .fini sections work.
9609	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9610      else
9611	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9612      fi
9613      hardcode_libdir_flag_spec='-L$libdir'
9614      hardcode_direct=yes
9615      hardcode_minus_L=yes
9616      hardcode_shlibpath_var=no
9617      ;;
9618
9619    sysv4)
9620      case $host_vendor in
9621	sni)
9622	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623	  hardcode_direct=yes # is this really true???
9624	;;
9625	siemens)
9626	  ## LD is ld it makes a PLAMLIB
9627	  ## CC just makes a GrossModule.
9628	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9629	  reload_cmds='$CC -r -o $output$reload_objs'
9630	  hardcode_direct=no
9631        ;;
9632	motorola)
9633	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9635	;;
9636      esac
9637      runpath_var='LD_RUN_PATH'
9638      hardcode_shlibpath_var=no
9639      ;;
9640
9641    sysv4.3*)
9642      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643      hardcode_shlibpath_var=no
9644      export_dynamic_flag_spec='-Bexport'
9645      ;;
9646
9647    sysv4*MP*)
9648      if test -d /usr/nec; then
9649	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650	hardcode_shlibpath_var=no
9651	runpath_var=LD_RUN_PATH
9652	hardcode_runpath_var=yes
9653	ld_shlibs=yes
9654      fi
9655      ;;
9656
9657    sysv4.2uw2*)
9658      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9659      hardcode_direct=yes
9660      hardcode_minus_L=no
9661      hardcode_shlibpath_var=no
9662      hardcode_runpath_var=yes
9663      runpath_var=LD_RUN_PATH
9664      ;;
9665
9666   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9667      no_undefined_flag='${wl}-z ${wl}text'
9668      if test "$GCC" = yes; then
9669	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9670      else
9671	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9672      fi
9673      runpath_var='LD_RUN_PATH'
9674      hardcode_shlibpath_var=no
9675      ;;
9676
9677    sysv5*)
9678      no_undefined_flag=' -z text'
9679      # $CC -shared without GNU ld will not create a library from C++
9680      # object files and a static libstdc++, better avoid it by now
9681      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9683  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9684      hardcode_libdir_flag_spec=
9685      hardcode_shlibpath_var=no
9686      runpath_var='LD_RUN_PATH'
9687      ;;
9688
9689    uts4*)
9690      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691      hardcode_libdir_flag_spec='-L$libdir'
9692      hardcode_shlibpath_var=no
9693      ;;
9694
9695    *)
9696      ld_shlibs=no
9697      ;;
9698    esac
9699  fi
9700
9701echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9702echo "${ECHO_T}$ld_shlibs" >&6
9703test "$ld_shlibs" = no && can_build_shared=no
9704
9705variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9706if test "$GCC" = yes; then
9707  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9708fi
9709
9710#
9711# Do we need to explicitly link libc?
9712#
9713case "x$archive_cmds_need_lc" in
9714x|xyes)
9715  # Assume -lc should be added
9716  archive_cmds_need_lc=yes
9717
9718  if test "$enable_shared" = yes && test "$GCC" = yes; then
9719    case $archive_cmds in
9720    *'~'*)
9721      # FIXME: we may have to deal with multi-command sequences.
9722      ;;
9723    '$CC '*)
9724      # Test whether the compiler implicitly links with -lc since on some
9725      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9726      # to ld, don't add -lc before -lgcc.
9727      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9728echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9729      $rm conftest*
9730      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9731
9732      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9733  (eval $ac_compile) 2>&5
9734  ac_status=$?
9735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736  (exit $ac_status); } 2>conftest.err; then
9737        soname=conftest
9738        lib=conftest
9739        libobjs=conftest.$ac_objext
9740        deplibs=
9741        wl=$lt_prog_compiler_wl
9742        compiler_flags=-v
9743        linker_flags=-v
9744        verstring=
9745        output_objdir=.
9746        libname=conftest
9747        lt_save_allow_undefined_flag=$allow_undefined_flag
9748        allow_undefined_flag=
9749        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9750  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9751  ac_status=$?
9752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753  (exit $ac_status); }
9754        then
9755	  archive_cmds_need_lc=no
9756        else
9757	  archive_cmds_need_lc=yes
9758        fi
9759        allow_undefined_flag=$lt_save_allow_undefined_flag
9760      else
9761        cat conftest.err 1>&5
9762      fi
9763      $rm conftest*
9764      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9765echo "${ECHO_T}$archive_cmds_need_lc" >&6
9766      ;;
9767    esac
9768  fi
9769  ;;
9770esac
9771
9772echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9773echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9774library_names_spec=
9775libname_spec='lib$name'
9776soname_spec=
9777shrext=".so"
9778postinstall_cmds=
9779postuninstall_cmds=
9780finish_cmds=
9781finish_eval=
9782shlibpath_var=
9783shlibpath_overrides_runpath=unknown
9784version_type=none
9785dynamic_linker="$host_os ld.so"
9786sys_lib_dlsearch_path_spec="/lib /usr/lib"
9787sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9788need_lib_prefix=unknown
9789hardcode_into_libs=no
9790
9791# when you set need_version to no, make sure it does not cause -set_version
9792# flags to be left without arguments
9793need_version=unknown
9794
9795case $host_os in
9796aix3*)
9797  version_type=linux
9798  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9799  shlibpath_var=LIBPATH
9800
9801  # AIX 3 has no versioning support, so we append a major version to the name.
9802  soname_spec='${libname}${release}${shared_ext}$major'
9803  ;;
9804
9805aix4* | aix5*)
9806  version_type=linux
9807  need_lib_prefix=no
9808  need_version=no
9809  hardcode_into_libs=yes
9810  if test "$host_cpu" = ia64; then
9811    # AIX 5 supports IA64
9812    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9813    shlibpath_var=LD_LIBRARY_PATH
9814  else
9815    # With GCC up to 2.95.x, collect2 would create an import file
9816    # for dependence libraries.  The import file would start with
9817    # the line `#! .'.  This would cause the generated library to
9818    # depend on `.', always an invalid library.  This was fixed in
9819    # development snapshots of GCC prior to 3.0.
9820    case $host_os in
9821      aix4 | aix4.[01] | aix4.[01].*)
9822      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9823	   echo ' yes '
9824	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9825	:
9826      else
9827	can_build_shared=no
9828      fi
9829      ;;
9830    esac
9831    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9832    # soname into executable. Probably we can add versioning support to
9833    # collect2, so additional links can be useful in future.
9834    if test "$aix_use_runtimelinking" = yes; then
9835      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9836      # instead of lib<name>.a to let people know that these are not
9837      # typical AIX shared libraries.
9838      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9839    else
9840      # We preserve .a as extension for shared libraries through AIX4.2
9841      # and later when we are not doing run time linking.
9842      library_names_spec='${libname}${release}.a $libname.a'
9843      soname_spec='${libname}${release}${shared_ext}$major'
9844    fi
9845    shlibpath_var=LIBPATH
9846  fi
9847  ;;
9848
9849amigaos*)
9850  library_names_spec='$libname.ixlibrary $libname.a'
9851  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9852  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'
9853  ;;
9854
9855beos*)
9856  library_names_spec='${libname}${shared_ext}'
9857  dynamic_linker="$host_os ld.so"
9858  shlibpath_var=LIBRARY_PATH
9859  ;;
9860
9861bsdi4*)
9862  version_type=linux
9863  need_version=no
9864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865  soname_spec='${libname}${release}${shared_ext}$major'
9866  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9867  shlibpath_var=LD_LIBRARY_PATH
9868  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9869  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9870  # the default ld.so.conf also contains /usr/contrib/lib and
9871  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9872  # libtool to hard-code these into programs
9873  ;;
9874
9875cygwin* | mingw* | pw32*)
9876  version_type=windows
9877  shrext=".dll"
9878  need_version=no
9879  need_lib_prefix=no
9880
9881  case $GCC,$host_os in
9882  yes,cygwin* | yes,mingw* | yes,pw32*)
9883    library_names_spec='$libname.dll.a'
9884    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9885    postinstall_cmds='base_file=`basename \${file}`~
9886      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9887      dldir=$destdir/`dirname \$dlpath`~
9888      test -d \$dldir || mkdir -p \$dldir~
9889      $install_prog $dir/$dlname \$dldir/$dlname'
9890    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9891      dlpath=$dir/\$dldll~
9892       $rm \$dlpath'
9893    shlibpath_overrides_runpath=yes
9894
9895    case $host_os in
9896    cygwin*)
9897      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9898      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9899      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9900      ;;
9901    mingw*)
9902      # MinGW DLLs use traditional 'lib' prefix
9903      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9904      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9905      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9906        # It is most probably a Windows format PATH printed by
9907        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9908        # path with ; separators, and with drive letters. We can handle the
9909        # drive letters (cygwin fileutils understands them), so leave them,
9910        # especially as we might pass files found there to a mingw objdump,
9911        # which wouldn't understand a cygwinified path. Ahh.
9912        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9913      else
9914        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9915      fi
9916      ;;
9917    pw32*)
9918      # pw32 DLLs use 'pw' prefix rather than 'lib'
9919      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9920      ;;
9921    esac
9922    ;;
9923
9924  *)
9925    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9926    ;;
9927  esac
9928  dynamic_linker='Win32 ld.exe'
9929  # FIXME: first we should search . and the directory the executable is in
9930  shlibpath_var=PATH
9931  ;;
9932
9933darwin* | rhapsody*)
9934  dynamic_linker="$host_os dyld"
9935  version_type=darwin
9936  need_lib_prefix=no
9937  need_version=no
9938  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9939  soname_spec='${libname}${release}${major}$shared_ext'
9940  shlibpath_overrides_runpath=yes
9941  shlibpath_var=DYLD_LIBRARY_PATH
9942  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
9943  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9944  if test "$GCC" = yes; then
9945    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"`
9946  else
9947    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9948  fi
9949  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9950  ;;
9951
9952dgux*)
9953  version_type=linux
9954  need_lib_prefix=no
9955  need_version=no
9956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9957  soname_spec='${libname}${release}${shared_ext}$major'
9958  shlibpath_var=LD_LIBRARY_PATH
9959  ;;
9960
9961freebsd1*)
9962  dynamic_linker=no
9963  ;;
9964
9965freebsd*-gnu*)
9966  version_type=linux
9967  need_lib_prefix=no
9968  need_version=no
9969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9970  soname_spec='${libname}${release}${shared_ext}$major'
9971  shlibpath_var=LD_LIBRARY_PATH
9972  shlibpath_overrides_runpath=no
9973  hardcode_into_libs=yes
9974  dynamic_linker='GNU ld.so'
9975  ;;
9976
9977freebsd*)
9978  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9979  version_type=freebsd-$objformat
9980  case $version_type in
9981    freebsd-elf*)
9982      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9983      need_version=no
9984      need_lib_prefix=no
9985      ;;
9986    freebsd-*)
9987      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9988      need_version=yes
9989      ;;
9990  esac
9991  shlibpath_var=LD_LIBRARY_PATH
9992  case $host_os in
9993  freebsd2*)
9994    shlibpath_overrides_runpath=yes
9995    ;;
9996  freebsd3.01* | freebsdelf3.01*)
9997    shlibpath_overrides_runpath=yes
9998    hardcode_into_libs=yes
9999    ;;
10000  *) # from 3.2 on
10001    shlibpath_overrides_runpath=no
10002    hardcode_into_libs=yes
10003    ;;
10004  esac
10005  ;;
10006
10007gnu*)
10008  version_type=linux
10009  need_lib_prefix=no
10010  need_version=no
10011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10012  soname_spec='${libname}${release}${shared_ext}$major'
10013  shlibpath_var=LD_LIBRARY_PATH
10014  hardcode_into_libs=yes
10015  ;;
10016
10017hpux9* | hpux10* | hpux11*)
10018  # Give a soname corresponding to the major version so that dld.sl refuses to
10019  # link against other versions.
10020  version_type=sunos
10021  need_lib_prefix=no
10022  need_version=no
10023  case "$host_cpu" in
10024  ia64*)
10025    shrext='.so'
10026    hardcode_into_libs=yes
10027    dynamic_linker="$host_os dld.so"
10028    shlibpath_var=LD_LIBRARY_PATH
10029    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10030    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031    soname_spec='${libname}${release}${shared_ext}$major'
10032    if test "X$HPUX_IA64_MODE" = X32; then
10033      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10034    else
10035      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10036    fi
10037    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10038    ;;
10039   hppa*64*)
10040     shrext='.sl'
10041     hardcode_into_libs=yes
10042     dynamic_linker="$host_os dld.sl"
10043     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10044     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046     soname_spec='${libname}${release}${shared_ext}$major'
10047     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10048     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10049     ;;
10050   *)
10051    shrext='.sl'
10052    dynamic_linker="$host_os dld.sl"
10053    shlibpath_var=SHLIB_PATH
10054    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10055    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056    soname_spec='${libname}${release}${shared_ext}$major'
10057    ;;
10058  esac
10059  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10060  postinstall_cmds='chmod 555 $lib'
10061  ;;
10062
10063irix5* | irix6* | nonstopux*)
10064  case $host_os in
10065    nonstopux*) version_type=nonstopux ;;
10066    *)
10067	if test "$lt_cv_prog_gnu_ld" = yes; then
10068		version_type=linux
10069	else
10070		version_type=irix
10071	fi ;;
10072  esac
10073  need_lib_prefix=no
10074  need_version=no
10075  soname_spec='${libname}${release}${shared_ext}$major'
10076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10077  case $host_os in
10078  irix5* | nonstopux*)
10079    libsuff= shlibsuff=
10080    ;;
10081  *)
10082    case $LD in # libtool.m4 will add one of these switches to LD
10083    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10084      libsuff= shlibsuff= libmagic=32-bit;;
10085    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10086      libsuff=32 shlibsuff=N32 libmagic=N32;;
10087    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10088      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10089    *) libsuff= shlibsuff= libmagic=never-match;;
10090    esac
10091    ;;
10092  esac
10093  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10094  shlibpath_overrides_runpath=no
10095  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10096  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10097  hardcode_into_libs=yes
10098  ;;
10099
10100# No shared lib support for Linux oldld, aout, or coff.
10101linux*oldld* | linux*aout* | linux*coff*)
10102  dynamic_linker=no
10103  ;;
10104
10105# This must be Linux ELF.
10106linux*)
10107  version_type=linux
10108  need_lib_prefix=no
10109  need_version=no
10110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111  soname_spec='${libname}${release}${shared_ext}$major'
10112  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10113  libsuff=
10114  if test "x$LINUX_64_MODE" = x64; then
10115    # Some platforms are per default 64-bit, so there's no /lib64
10116    if test -d /lib64; then
10117      libsuff=64
10118    fi
10119  fi
10120  shlibpath_var=LD_LIBRARY_PATH
10121  shlibpath_overrides_runpath=no
10122  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10123  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
10124  # This implies no fast_install, which is unacceptable.
10125  # Some rework will be needed to allow for fast_install
10126  # before this can be enabled.
10127  hardcode_into_libs=yes
10128
10129  # We used to test for /lib/ld.so.1 and disable shared libraries on
10130  # powerpc, because MkLinux only supported shared libraries with the
10131  # GNU dynamic linker.  Since this was broken with cross compilers,
10132  # most powerpc-linux boxes support dynamic linking these days and
10133  # people can always --disable-shared, the test was removed, and we
10134  # assume the GNU/Linux dynamic linker is in use.
10135  dynamic_linker='GNU/Linux ld.so'
10136  ;;
10137
10138netbsd*)
10139  version_type=sunos
10140  need_lib_prefix=no
10141  need_version=no
10142  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10143    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10144    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10145    dynamic_linker='NetBSD (a.out) ld.so'
10146  else
10147    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10148    soname_spec='${libname}${release}${shared_ext}$major'
10149    dynamic_linker='NetBSD ld.elf_so'
10150  fi
10151  shlibpath_var=LD_LIBRARY_PATH
10152  shlibpath_overrides_runpath=yes
10153  hardcode_into_libs=yes
10154  ;;
10155
10156newsos6)
10157  version_type=linux
10158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159  shlibpath_var=LD_LIBRARY_PATH
10160  shlibpath_overrides_runpath=yes
10161  ;;
10162
10163nto-qnx*)
10164  version_type=linux
10165  need_lib_prefix=no
10166  need_version=no
10167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168  soname_spec='${libname}${release}${shared_ext}$major'
10169  shlibpath_var=LD_LIBRARY_PATH
10170  shlibpath_overrides_runpath=yes
10171  ;;
10172
10173openbsd*)
10174  version_type=sunos
10175  need_lib_prefix=no
10176  need_version=no
10177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10178  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10179  shlibpath_var=LD_LIBRARY_PATH
10180  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10181    case $host_os in
10182      openbsd2.[89] | openbsd2.[89].*)
10183	shlibpath_overrides_runpath=no
10184	;;
10185      *)
10186	shlibpath_overrides_runpath=yes
10187	;;
10188      esac
10189  else
10190    shlibpath_overrides_runpath=yes
10191  fi
10192  ;;
10193
10194os2*)
10195  libname_spec='$name'
10196  shrext=".dll"
10197  need_lib_prefix=no
10198  library_names_spec='$libname${shared_ext} $libname.a'
10199  dynamic_linker='OS/2 ld.exe'
10200  shlibpath_var=LIBPATH
10201  ;;
10202
10203osf3* | osf4* | osf5*)
10204  version_type=osf
10205  need_lib_prefix=no
10206  need_version=no
10207  soname_spec='${libname}${release}${shared_ext}$major'
10208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209  shlibpath_var=LD_LIBRARY_PATH
10210  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10211  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10212  ;;
10213
10214sco3.2v5*)
10215  version_type=osf
10216  soname_spec='${libname}${release}${shared_ext}$major'
10217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218  shlibpath_var=LD_LIBRARY_PATH
10219  ;;
10220
10221solaris*)
10222  version_type=linux
10223  need_lib_prefix=no
10224  need_version=no
10225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226  soname_spec='${libname}${release}${shared_ext}$major'
10227  shlibpath_var=LD_LIBRARY_PATH
10228  shlibpath_overrides_runpath=yes
10229  hardcode_into_libs=yes
10230  # ldd complains unless libraries are executable
10231  postinstall_cmds='chmod +x $lib'
10232  ;;
10233
10234sunos4*)
10235  version_type=sunos
10236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10237  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10238  shlibpath_var=LD_LIBRARY_PATH
10239  shlibpath_overrides_runpath=yes
10240  if test "$with_gnu_ld" = yes; then
10241    need_lib_prefix=no
10242  fi
10243  need_version=yes
10244  ;;
10245
10246sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10247  version_type=linux
10248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249  soname_spec='${libname}${release}${shared_ext}$major'
10250  shlibpath_var=LD_LIBRARY_PATH
10251  case $host_vendor in
10252    sni)
10253      shlibpath_overrides_runpath=no
10254      need_lib_prefix=no
10255      export_dynamic_flag_spec='${wl}-Blargedynsym'
10256      runpath_var=LD_RUN_PATH
10257      ;;
10258    siemens)
10259      need_lib_prefix=no
10260      ;;
10261    motorola)
10262      need_lib_prefix=no
10263      need_version=no
10264      shlibpath_overrides_runpath=no
10265      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10266      ;;
10267  esac
10268  ;;
10269
10270sysv4*MP*)
10271  if test -d /usr/nec ;then
10272    version_type=linux
10273    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10274    soname_spec='$libname${shared_ext}.$major'
10275    shlibpath_var=LD_LIBRARY_PATH
10276  fi
10277  ;;
10278
10279uts4*)
10280  version_type=linux
10281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282  soname_spec='${libname}${release}${shared_ext}$major'
10283  shlibpath_var=LD_LIBRARY_PATH
10284  ;;
10285
10286*)
10287  dynamic_linker=no
10288  ;;
10289esac
10290echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10291echo "${ECHO_T}$dynamic_linker" >&6
10292test "$dynamic_linker" = no && can_build_shared=no
10293
10294echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10295echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10296hardcode_action=
10297if test -n "$hardcode_libdir_flag_spec" || \
10298   test -n "$runpath_var " || \
10299   test "X$hardcode_automatic"="Xyes" ; then
10300
10301  # We can hardcode non-existant directories.
10302  if test "$hardcode_direct" != no &&
10303     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10304     # have to relink, otherwise we might link with an installed library
10305     # when we should be linking with a yet-to-be-installed one
10306     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10307     test "$hardcode_minus_L" != no; then
10308    # Linking always hardcodes the temporary library directory.
10309    hardcode_action=relink
10310  else
10311    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10312    hardcode_action=immediate
10313  fi
10314else
10315  # We cannot hardcode anything, or else we can only hardcode existing
10316  # directories.
10317  hardcode_action=unsupported
10318fi
10319echo "$as_me:$LINENO: result: $hardcode_action" >&5
10320echo "${ECHO_T}$hardcode_action" >&6
10321
10322if test "$hardcode_action" = relink; then
10323  # Fast installation is not supported
10324  enable_fast_install=no
10325elif test "$shlibpath_overrides_runpath" = yes ||
10326     test "$enable_shared" = no; then
10327  # Fast installation is not necessary
10328  enable_fast_install=needless
10329fi
10330
10331striplib=
10332old_striplib=
10333echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10334echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10335if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10336  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10337  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10338  echo "$as_me:$LINENO: result: yes" >&5
10339echo "${ECHO_T}yes" >&6
10340else
10341# FIXME - insert some real tests, host_os isn't really good enough
10342  case $host_os in
10343   darwin*)
10344       if test -n "$STRIP" ; then
10345         striplib="$STRIP -x"
10346         echo "$as_me:$LINENO: result: yes" >&5
10347echo "${ECHO_T}yes" >&6
10348       else
10349  echo "$as_me:$LINENO: result: no" >&5
10350echo "${ECHO_T}no" >&6
10351fi
10352       ;;
10353   *)
10354  echo "$as_me:$LINENO: result: no" >&5
10355echo "${ECHO_T}no" >&6
10356    ;;
10357  esac
10358fi
10359
10360if test "x$enable_dlopen" != xyes; then
10361  enable_dlopen=unknown
10362  enable_dlopen_self=unknown
10363  enable_dlopen_self_static=unknown
10364else
10365  lt_cv_dlopen=no
10366  lt_cv_dlopen_libs=
10367
10368  case $host_os in
10369  beos*)
10370    lt_cv_dlopen="load_add_on"
10371    lt_cv_dlopen_libs=
10372    lt_cv_dlopen_self=yes
10373    ;;
10374
10375  mingw* | pw32*)
10376    lt_cv_dlopen="LoadLibrary"
10377    lt_cv_dlopen_libs=
10378   ;;
10379
10380  cygwin*)
10381    lt_cv_dlopen="dlopen"
10382    lt_cv_dlopen_libs=
10383   ;;
10384
10385  darwin*)
10386  # if libdl is installed we need to link against it
10387    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10388echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10389if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10390  echo $ECHO_N "(cached) $ECHO_C" >&6
10391else
10392  ac_check_lib_save_LIBS=$LIBS
10393LIBS="-ldl  $LIBS"
10394cat >conftest.$ac_ext <<_ACEOF
10395/* confdefs.h.  */
10396_ACEOF
10397cat confdefs.h >>conftest.$ac_ext
10398cat >>conftest.$ac_ext <<_ACEOF
10399/* end confdefs.h.  */
10400
10401/* Override any gcc2 internal prototype to avoid an error.  */
10402#ifdef __cplusplus
10403extern "C"
10404#endif
10405/* We use char because int might match the return type of a gcc2
10406   builtin and then its argument prototype would still apply.  */
10407char dlopen ();
10408int
10409main ()
10410{
10411dlopen ();
10412  ;
10413  return 0;
10414}
10415_ACEOF
10416rm -f conftest.$ac_objext conftest$ac_exeext
10417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10418  (eval $ac_link) 2>conftest.er1
10419  ac_status=$?
10420  grep -v '^ *+' conftest.er1 >conftest.err
10421  rm -f conftest.er1
10422  cat conftest.err >&5
10423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424  (exit $ac_status); } &&
10425	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427  (eval $ac_try) 2>&5
10428  ac_status=$?
10429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430  (exit $ac_status); }; } &&
10431	 { ac_try='test -s conftest$ac_exeext'
10432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433  (eval $ac_try) 2>&5
10434  ac_status=$?
10435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436  (exit $ac_status); }; }; then
10437  ac_cv_lib_dl_dlopen=yes
10438else
10439  echo "$as_me: failed program was:" >&5
10440sed 's/^/| /' conftest.$ac_ext >&5
10441
10442ac_cv_lib_dl_dlopen=no
10443fi
10444rm -f conftest.err conftest.$ac_objext \
10445      conftest$ac_exeext conftest.$ac_ext
10446LIBS=$ac_check_lib_save_LIBS
10447fi
10448echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10449echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10450if test $ac_cv_lib_dl_dlopen = yes; then
10451  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10452else
10453
10454    lt_cv_dlopen="dyld"
10455    lt_cv_dlopen_libs=
10456    lt_cv_dlopen_self=yes
10457
10458fi
10459
10460   ;;
10461
10462  *)
10463    echo "$as_me:$LINENO: checking for shl_load" >&5
10464echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10465if test "${ac_cv_func_shl_load+set}" = set; then
10466  echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468  cat >conftest.$ac_ext <<_ACEOF
10469/* confdefs.h.  */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
10473/* end confdefs.h.  */
10474/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10475   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10476#define shl_load innocuous_shl_load
10477
10478/* System header to define __stub macros and hopefully few prototypes,
10479    which can conflict with char shl_load (); below.
10480    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10481    <limits.h> exists even on freestanding compilers.  */
10482
10483#ifdef __STDC__
10484# include <limits.h>
10485#else
10486# include <assert.h>
10487#endif
10488
10489#undef shl_load
10490
10491/* Override any gcc2 internal prototype to avoid an error.  */
10492#ifdef __cplusplus
10493extern "C"
10494{
10495#endif
10496/* We use char because int might match the return type of a gcc2
10497   builtin and then its argument prototype would still apply.  */
10498char shl_load ();
10499/* The GNU C library defines this for functions which it implements
10500    to always fail with ENOSYS.  Some functions are actually named
10501    something starting with __ and the normal name is an alias.  */
10502#if defined (__stub_shl_load) || defined (__stub___shl_load)
10503choke me
10504#else
10505char (*f) () = shl_load;
10506#endif
10507#ifdef __cplusplus
10508}
10509#endif
10510
10511int
10512main ()
10513{
10514return f != shl_load;
10515  ;
10516  return 0;
10517}
10518_ACEOF
10519rm -f conftest.$ac_objext conftest$ac_exeext
10520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10521  (eval $ac_link) 2>conftest.er1
10522  ac_status=$?
10523  grep -v '^ *+' conftest.er1 >conftest.err
10524  rm -f conftest.er1
10525  cat conftest.err >&5
10526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527  (exit $ac_status); } &&
10528	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10530  (eval $ac_try) 2>&5
10531  ac_status=$?
10532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533  (exit $ac_status); }; } &&
10534	 { ac_try='test -s conftest$ac_exeext'
10535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536  (eval $ac_try) 2>&5
10537  ac_status=$?
10538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539  (exit $ac_status); }; }; then
10540  ac_cv_func_shl_load=yes
10541else
10542  echo "$as_me: failed program was:" >&5
10543sed 's/^/| /' conftest.$ac_ext >&5
10544
10545ac_cv_func_shl_load=no
10546fi
10547rm -f conftest.err conftest.$ac_objext \
10548      conftest$ac_exeext conftest.$ac_ext
10549fi
10550echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10551echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10552if test $ac_cv_func_shl_load = yes; then
10553  lt_cv_dlopen="shl_load"
10554else
10555  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10556echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10557if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10558  echo $ECHO_N "(cached) $ECHO_C" >&6
10559else
10560  ac_check_lib_save_LIBS=$LIBS
10561LIBS="-ldld  $LIBS"
10562cat >conftest.$ac_ext <<_ACEOF
10563/* confdefs.h.  */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
10567/* end confdefs.h.  */
10568
10569/* Override any gcc2 internal prototype to avoid an error.  */
10570#ifdef __cplusplus
10571extern "C"
10572#endif
10573/* We use char because int might match the return type of a gcc2
10574   builtin and then its argument prototype would still apply.  */
10575char shl_load ();
10576int
10577main ()
10578{
10579shl_load ();
10580  ;
10581  return 0;
10582}
10583_ACEOF
10584rm -f conftest.$ac_objext conftest$ac_exeext
10585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10586  (eval $ac_link) 2>conftest.er1
10587  ac_status=$?
10588  grep -v '^ *+' conftest.er1 >conftest.err
10589  rm -f conftest.er1
10590  cat conftest.err >&5
10591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592  (exit $ac_status); } &&
10593	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595  (eval $ac_try) 2>&5
10596  ac_status=$?
10597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598  (exit $ac_status); }; } &&
10599	 { ac_try='test -s conftest$ac_exeext'
10600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601  (eval $ac_try) 2>&5
10602  ac_status=$?
10603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604  (exit $ac_status); }; }; then
10605  ac_cv_lib_dld_shl_load=yes
10606else
10607  echo "$as_me: failed program was:" >&5
10608sed 's/^/| /' conftest.$ac_ext >&5
10609
10610ac_cv_lib_dld_shl_load=no
10611fi
10612rm -f conftest.err conftest.$ac_objext \
10613      conftest$ac_exeext conftest.$ac_ext
10614LIBS=$ac_check_lib_save_LIBS
10615fi
10616echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10617echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10618if test $ac_cv_lib_dld_shl_load = yes; then
10619  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10620else
10621  echo "$as_me:$LINENO: checking for dlopen" >&5
10622echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10623if test "${ac_cv_func_dlopen+set}" = set; then
10624  echo $ECHO_N "(cached) $ECHO_C" >&6
10625else
10626  cat >conftest.$ac_ext <<_ACEOF
10627/* confdefs.h.  */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h.  */
10632/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10633   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10634#define dlopen innocuous_dlopen
10635
10636/* System header to define __stub macros and hopefully few prototypes,
10637    which can conflict with char dlopen (); below.
10638    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10639    <limits.h> exists even on freestanding compilers.  */
10640
10641#ifdef __STDC__
10642# include <limits.h>
10643#else
10644# include <assert.h>
10645#endif
10646
10647#undef dlopen
10648
10649/* Override any gcc2 internal prototype to avoid an error.  */
10650#ifdef __cplusplus
10651extern "C"
10652{
10653#endif
10654/* We use char because int might match the return type of a gcc2
10655   builtin and then its argument prototype would still apply.  */
10656char dlopen ();
10657/* The GNU C library defines this for functions which it implements
10658    to always fail with ENOSYS.  Some functions are actually named
10659    something starting with __ and the normal name is an alias.  */
10660#if defined (__stub_dlopen) || defined (__stub___dlopen)
10661choke me
10662#else
10663char (*f) () = dlopen;
10664#endif
10665#ifdef __cplusplus
10666}
10667#endif
10668
10669int
10670main ()
10671{
10672return f != dlopen;
10673  ;
10674  return 0;
10675}
10676_ACEOF
10677rm -f conftest.$ac_objext conftest$ac_exeext
10678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10679  (eval $ac_link) 2>conftest.er1
10680  ac_status=$?
10681  grep -v '^ *+' conftest.er1 >conftest.err
10682  rm -f conftest.er1
10683  cat conftest.err >&5
10684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685  (exit $ac_status); } &&
10686	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688  (eval $ac_try) 2>&5
10689  ac_status=$?
10690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691  (exit $ac_status); }; } &&
10692	 { ac_try='test -s conftest$ac_exeext'
10693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694  (eval $ac_try) 2>&5
10695  ac_status=$?
10696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); }; }; then
10698  ac_cv_func_dlopen=yes
10699else
10700  echo "$as_me: failed program was:" >&5
10701sed 's/^/| /' conftest.$ac_ext >&5
10702
10703ac_cv_func_dlopen=no
10704fi
10705rm -f conftest.err conftest.$ac_objext \
10706      conftest$ac_exeext conftest.$ac_ext
10707fi
10708echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10709echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10710if test $ac_cv_func_dlopen = yes; then
10711  lt_cv_dlopen="dlopen"
10712else
10713  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10714echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10715if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10716  echo $ECHO_N "(cached) $ECHO_C" >&6
10717else
10718  ac_check_lib_save_LIBS=$LIBS
10719LIBS="-ldl  $LIBS"
10720cat >conftest.$ac_ext <<_ACEOF
10721/* confdefs.h.  */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
10725/* end confdefs.h.  */
10726
10727/* Override any gcc2 internal prototype to avoid an error.  */
10728#ifdef __cplusplus
10729extern "C"
10730#endif
10731/* We use char because int might match the return type of a gcc2
10732   builtin and then its argument prototype would still apply.  */
10733char dlopen ();
10734int
10735main ()
10736{
10737dlopen ();
10738  ;
10739  return 0;
10740}
10741_ACEOF
10742rm -f conftest.$ac_objext conftest$ac_exeext
10743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10744  (eval $ac_link) 2>conftest.er1
10745  ac_status=$?
10746  grep -v '^ *+' conftest.er1 >conftest.err
10747  rm -f conftest.er1
10748  cat conftest.err >&5
10749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750  (exit $ac_status); } &&
10751	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753  (eval $ac_try) 2>&5
10754  ac_status=$?
10755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756  (exit $ac_status); }; } &&
10757	 { ac_try='test -s conftest$ac_exeext'
10758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759  (eval $ac_try) 2>&5
10760  ac_status=$?
10761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762  (exit $ac_status); }; }; then
10763  ac_cv_lib_dl_dlopen=yes
10764else
10765  echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768ac_cv_lib_dl_dlopen=no
10769fi
10770rm -f conftest.err conftest.$ac_objext \
10771      conftest$ac_exeext conftest.$ac_ext
10772LIBS=$ac_check_lib_save_LIBS
10773fi
10774echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10775echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10776if test $ac_cv_lib_dl_dlopen = yes; then
10777  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10778else
10779  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10780echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10781if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10782  echo $ECHO_N "(cached) $ECHO_C" >&6
10783else
10784  ac_check_lib_save_LIBS=$LIBS
10785LIBS="-lsvld  $LIBS"
10786cat >conftest.$ac_ext <<_ACEOF
10787/* confdefs.h.  */
10788_ACEOF
10789cat confdefs.h >>conftest.$ac_ext
10790cat >>conftest.$ac_ext <<_ACEOF
10791/* end confdefs.h.  */
10792
10793/* Override any gcc2 internal prototype to avoid an error.  */
10794#ifdef __cplusplus
10795extern "C"
10796#endif
10797/* We use char because int might match the return type of a gcc2
10798   builtin and then its argument prototype would still apply.  */
10799char dlopen ();
10800int
10801main ()
10802{
10803dlopen ();
10804  ;
10805  return 0;
10806}
10807_ACEOF
10808rm -f conftest.$ac_objext conftest$ac_exeext
10809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810  (eval $ac_link) 2>conftest.er1
10811  ac_status=$?
10812  grep -v '^ *+' conftest.er1 >conftest.err
10813  rm -f conftest.er1
10814  cat conftest.err >&5
10815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816  (exit $ac_status); } &&
10817	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819  (eval $ac_try) 2>&5
10820  ac_status=$?
10821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822  (exit $ac_status); }; } &&
10823	 { ac_try='test -s conftest$ac_exeext'
10824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825  (eval $ac_try) 2>&5
10826  ac_status=$?
10827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828  (exit $ac_status); }; }; then
10829  ac_cv_lib_svld_dlopen=yes
10830else
10831  echo "$as_me: failed program was:" >&5
10832sed 's/^/| /' conftest.$ac_ext >&5
10833
10834ac_cv_lib_svld_dlopen=no
10835fi
10836rm -f conftest.err conftest.$ac_objext \
10837      conftest$ac_exeext conftest.$ac_ext
10838LIBS=$ac_check_lib_save_LIBS
10839fi
10840echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10841echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10842if test $ac_cv_lib_svld_dlopen = yes; then
10843  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10844else
10845  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10846echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10847if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10848  echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850  ac_check_lib_save_LIBS=$LIBS
10851LIBS="-ldld  $LIBS"
10852cat >conftest.$ac_ext <<_ACEOF
10853/* confdefs.h.  */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h.  */
10858
10859/* Override any gcc2 internal prototype to avoid an error.  */
10860#ifdef __cplusplus
10861extern "C"
10862#endif
10863/* We use char because int might match the return type of a gcc2
10864   builtin and then its argument prototype would still apply.  */
10865char dld_link ();
10866int
10867main ()
10868{
10869dld_link ();
10870  ;
10871  return 0;
10872}
10873_ACEOF
10874rm -f conftest.$ac_objext conftest$ac_exeext
10875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876  (eval $ac_link) 2>conftest.er1
10877  ac_status=$?
10878  grep -v '^ *+' conftest.er1 >conftest.err
10879  rm -f conftest.er1
10880  cat conftest.err >&5
10881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882  (exit $ac_status); } &&
10883	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885  (eval $ac_try) 2>&5
10886  ac_status=$?
10887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888  (exit $ac_status); }; } &&
10889	 { ac_try='test -s conftest$ac_exeext'
10890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891  (eval $ac_try) 2>&5
10892  ac_status=$?
10893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894  (exit $ac_status); }; }; then
10895  ac_cv_lib_dld_dld_link=yes
10896else
10897  echo "$as_me: failed program was:" >&5
10898sed 's/^/| /' conftest.$ac_ext >&5
10899
10900ac_cv_lib_dld_dld_link=no
10901fi
10902rm -f conftest.err conftest.$ac_objext \
10903      conftest$ac_exeext conftest.$ac_ext
10904LIBS=$ac_check_lib_save_LIBS
10905fi
10906echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10907echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10908if test $ac_cv_lib_dld_dld_link = yes; then
10909  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10910fi
10911
10912
10913fi
10914
10915
10916fi
10917
10918
10919fi
10920
10921
10922fi
10923
10924
10925fi
10926
10927    ;;
10928  esac
10929
10930  if test "x$lt_cv_dlopen" != xno; then
10931    enable_dlopen=yes
10932  else
10933    enable_dlopen=no
10934  fi
10935
10936  case $lt_cv_dlopen in
10937  dlopen)
10938    save_CPPFLAGS="$CPPFLAGS"
10939    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10940
10941    save_LDFLAGS="$LDFLAGS"
10942    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10943
10944    save_LIBS="$LIBS"
10945    LIBS="$lt_cv_dlopen_libs $LIBS"
10946
10947    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10948echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10949if test "${lt_cv_dlopen_self+set}" = set; then
10950  echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952  	  if test "$cross_compiling" = yes; then :
10953  lt_cv_dlopen_self=cross
10954else
10955  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10956  lt_status=$lt_dlunknown
10957  cat > conftest.$ac_ext <<EOF
10958#line 10958 "configure"
10959#include "confdefs.h"
10960
10961#if HAVE_DLFCN_H
10962#include <dlfcn.h>
10963#endif
10964
10965#include <stdio.h>
10966
10967#ifdef RTLD_GLOBAL
10968#  define LT_DLGLOBAL		RTLD_GLOBAL
10969#else
10970#  ifdef DL_GLOBAL
10971#    define LT_DLGLOBAL		DL_GLOBAL
10972#  else
10973#    define LT_DLGLOBAL		0
10974#  endif
10975#endif
10976
10977/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10978   find out it does not work in some platform. */
10979#ifndef LT_DLLAZY_OR_NOW
10980#  ifdef RTLD_LAZY
10981#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10982#  else
10983#    ifdef DL_LAZY
10984#      define LT_DLLAZY_OR_NOW		DL_LAZY
10985#    else
10986#      ifdef RTLD_NOW
10987#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10988#      else
10989#        ifdef DL_NOW
10990#          define LT_DLLAZY_OR_NOW	DL_NOW
10991#        else
10992#          define LT_DLLAZY_OR_NOW	0
10993#        endif
10994#      endif
10995#    endif
10996#  endif
10997#endif
10998
10999#ifdef __cplusplus
11000extern "C" void exit (int);
11001#endif
11002
11003void fnord() { int i=42;}
11004int main ()
11005{
11006  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11007  int status = $lt_dlunknown;
11008
11009  if (self)
11010    {
11011      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11012      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11013      /* dlclose (self); */
11014    }
11015
11016    exit (status);
11017}
11018EOF
11019  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11020  (eval $ac_link) 2>&5
11021  ac_status=$?
11022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11024    (./conftest; exit; ) 2>/dev/null
11025    lt_status=$?
11026    case x$lt_status in
11027      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11028      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11029      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11030    esac
11031  else :
11032    # compilation failed
11033    lt_cv_dlopen_self=no
11034  fi
11035fi
11036rm -fr conftest*
11037
11038
11039fi
11040echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11041echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11042
11043    if test "x$lt_cv_dlopen_self" = xyes; then
11044      LDFLAGS="$LDFLAGS $link_static_flag"
11045      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11046echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11047if test "${lt_cv_dlopen_self_static+set}" = set; then
11048  echo $ECHO_N "(cached) $ECHO_C" >&6
11049else
11050  	  if test "$cross_compiling" = yes; then :
11051  lt_cv_dlopen_self_static=cross
11052else
11053  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11054  lt_status=$lt_dlunknown
11055  cat > conftest.$ac_ext <<EOF
11056#line 11056 "configure"
11057#include "confdefs.h"
11058
11059#if HAVE_DLFCN_H
11060#include <dlfcn.h>
11061#endif
11062
11063#include <stdio.h>
11064
11065#ifdef RTLD_GLOBAL
11066#  define LT_DLGLOBAL		RTLD_GLOBAL
11067#else
11068#  ifdef DL_GLOBAL
11069#    define LT_DLGLOBAL		DL_GLOBAL
11070#  else
11071#    define LT_DLGLOBAL		0
11072#  endif
11073#endif
11074
11075/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11076   find out it does not work in some platform. */
11077#ifndef LT_DLLAZY_OR_NOW
11078#  ifdef RTLD_LAZY
11079#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11080#  else
11081#    ifdef DL_LAZY
11082#      define LT_DLLAZY_OR_NOW		DL_LAZY
11083#    else
11084#      ifdef RTLD_NOW
11085#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11086#      else
11087#        ifdef DL_NOW
11088#          define LT_DLLAZY_OR_NOW	DL_NOW
11089#        else
11090#          define LT_DLLAZY_OR_NOW	0
11091#        endif
11092#      endif
11093#    endif
11094#  endif
11095#endif
11096
11097#ifdef __cplusplus
11098extern "C" void exit (int);
11099#endif
11100
11101void fnord() { int i=42;}
11102int main ()
11103{
11104  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11105  int status = $lt_dlunknown;
11106
11107  if (self)
11108    {
11109      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11110      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11111      /* dlclose (self); */
11112    }
11113
11114    exit (status);
11115}
11116EOF
11117  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11118  (eval $ac_link) 2>&5
11119  ac_status=$?
11120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11122    (./conftest; exit; ) 2>/dev/null
11123    lt_status=$?
11124    case x$lt_status in
11125      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11126      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11127      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11128    esac
11129  else :
11130    # compilation failed
11131    lt_cv_dlopen_self_static=no
11132  fi
11133fi
11134rm -fr conftest*
11135
11136
11137fi
11138echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11139echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11140    fi
11141
11142    CPPFLAGS="$save_CPPFLAGS"
11143    LDFLAGS="$save_LDFLAGS"
11144    LIBS="$save_LIBS"
11145    ;;
11146  esac
11147
11148  case $lt_cv_dlopen_self in
11149  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11150  *) enable_dlopen_self=unknown ;;
11151  esac
11152
11153  case $lt_cv_dlopen_self_static in
11154  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11155  *) enable_dlopen_self_static=unknown ;;
11156  esac
11157fi
11158
11159
11160# Report which librarie types wil actually be built
11161echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11162echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11163echo "$as_me:$LINENO: result: $can_build_shared" >&5
11164echo "${ECHO_T}$can_build_shared" >&6
11165
11166echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11167echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11168test "$can_build_shared" = "no" && enable_shared=no
11169
11170# On AIX, shared libraries and static libraries use the same namespace, and
11171# are all built from PIC.
11172case "$host_os" in
11173aix3*)
11174  test "$enable_shared" = yes && enable_static=no
11175  if test -n "$RANLIB"; then
11176    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11177    postinstall_cmds='$RANLIB $lib'
11178  fi
11179  ;;
11180
11181aix4*)
11182  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11183    test "$enable_shared" = yes && enable_static=no
11184  fi
11185  ;;
11186  darwin* | rhapsody*)
11187  if test "$GCC" = yes; then
11188    archive_cmds_need_lc=no
11189    case "$host_os" in
11190    rhapsody* | darwin1.[012])
11191      allow_undefined_flag='-undefined suppress'
11192      ;;
11193    *) # Darwin 1.3 on
11194      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
11195      ;;
11196    esac
11197    output_verbose_link_cmd='echo'
11198    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
11199    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11200    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11201    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}'
11202    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}'
11203    hardcode_direct=no
11204    hardcode_automatic=yes
11205    hardcode_shlibpath_var=unsupported
11206    whole_archive_flag_spec='-all_load $convenience'
11207    link_all_deplibs=yes
11208  else
11209    ld_shlibs=no
11210  fi
11211    ;;
11212esac
11213echo "$as_me:$LINENO: result: $enable_shared" >&5
11214echo "${ECHO_T}$enable_shared" >&6
11215
11216echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11217echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11218# Make sure either enable_shared or enable_static is yes.
11219test "$enable_shared" = yes || enable_static=yes
11220echo "$as_me:$LINENO: result: $enable_static" >&5
11221echo "${ECHO_T}$enable_static" >&6
11222
11223# The else clause should only fire when bootstrapping the
11224# libtool distribution, otherwise you forgot to ship ltmain.sh
11225# with your package, and you will get complaints that there are
11226# no rules to generate ltmain.sh.
11227if test -f "$ltmain"; then
11228  # See if we are running on zsh, and set the options which allow our commands through
11229  # without removal of \ escapes.
11230  if test -n "${ZSH_VERSION+set}" ; then
11231    setopt NO_GLOB_SUBST
11232  fi
11233  # Now quote all the things that may contain metacharacters while being
11234  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11235  # variables and quote the copies for generation of the libtool script.
11236  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11237    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11238    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11239    deplibs_check_method reload_flag reload_cmds need_locks \
11240    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11241    lt_cv_sys_global_symbol_to_c_name_address \
11242    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11243    old_postinstall_cmds old_postuninstall_cmds \
11244    compiler \
11245    CC \
11246    LD \
11247    lt_prog_compiler_wl \
11248    lt_prog_compiler_pic \
11249    lt_prog_compiler_static \
11250    lt_prog_compiler_no_builtin_flag \
11251    export_dynamic_flag_spec \
11252    thread_safe_flag_spec \
11253    whole_archive_flag_spec \
11254    enable_shared_with_static_runtimes \
11255    old_archive_cmds \
11256    old_archive_from_new_cmds \
11257    predep_objects \
11258    postdep_objects \
11259    predeps \
11260    postdeps \
11261    compiler_lib_search_path \
11262    archive_cmds \
11263    archive_expsym_cmds \
11264    postinstall_cmds \
11265    postuninstall_cmds \
11266    old_archive_from_expsyms_cmds \
11267    allow_undefined_flag \
11268    no_undefined_flag \
11269    export_symbols_cmds \
11270    hardcode_libdir_flag_spec \
11271    hardcode_libdir_flag_spec_ld \
11272    hardcode_libdir_separator \
11273    hardcode_automatic \
11274    module_cmds \
11275    module_expsym_cmds \
11276    lt_cv_prog_compiler_c_o \
11277    exclude_expsyms \
11278    include_expsyms; do
11279
11280    case $var in
11281    old_archive_cmds | \
11282    old_archive_from_new_cmds | \
11283    archive_cmds | \
11284    archive_expsym_cmds | \
11285    module_cmds | \
11286    module_expsym_cmds | \
11287    old_archive_from_expsyms_cmds | \
11288    export_symbols_cmds | \
11289    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11290    postinstall_cmds | postuninstall_cmds | \
11291    old_postinstall_cmds | old_postuninstall_cmds | \
11292    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11293      # Double-quote double-evaled strings.
11294      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11295      ;;
11296    *)
11297      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11298      ;;
11299    esac
11300  done
11301
11302  case $lt_echo in
11303  *'\$0 --fallback-echo"')
11304    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11305    ;;
11306  esac
11307
11308cfgfile="${ofile}T"
11309  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11310  $rm -f "$cfgfile"
11311  { echo "$as_me:$LINENO: creating $ofile" >&5
11312echo "$as_me: creating $ofile" >&6;}
11313
11314  cat <<__EOF__ >> "$cfgfile"
11315#! $SHELL
11316
11317# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11318# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11319# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11320#
11321# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11322# Free Software Foundation, Inc.
11323#
11324# This file is part of GNU Libtool:
11325# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11326#
11327# This program is free software; you can redistribute it and/or modify
11328# it under the terms of the GNU General Public License as published by
11329# the Free Software Foundation; either version 2 of the License, or
11330# (at your option) any later version.
11331#
11332# This program is distributed in the hope that it will be useful, but
11333# WITHOUT ANY WARRANTY; without even the implied warranty of
11334# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11335# General Public License for more details.
11336#
11337# You should have received a copy of the GNU General Public License
11338# along with this program; if not, write to the Free Software
11339# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11340#
11341# As a special exception to the GNU General Public License, if you
11342# distribute this file as part of a program that contains a
11343# configuration script generated by Autoconf, you may include it under
11344# the same distribution terms that you use for the rest of that program.
11345
11346# A sed program that does not truncate output.
11347SED=$lt_SED
11348
11349# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11350Xsed="$SED -e s/^X//"
11351
11352# The HP-UX ksh and POSIX shell print the target directory to stdout
11353# if CDPATH is set.
11354if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11355
11356# The names of the tagged configurations supported by this script.
11357available_tags=
11358
11359# ### BEGIN LIBTOOL CONFIG
11360
11361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11362
11363# Shell to use when invoking shell scripts.
11364SHELL=$lt_SHELL
11365
11366# Whether or not to build shared libraries.
11367build_libtool_libs=$enable_shared
11368
11369# Whether or not to build static libraries.
11370build_old_libs=$enable_static
11371
11372# Whether or not to add -lc for building shared libraries.
11373build_libtool_need_lc=$archive_cmds_need_lc
11374
11375# Whether or not to disallow shared libs when runtime libs are static
11376allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11377
11378# Whether or not to optimize for fast installation.
11379fast_install=$enable_fast_install
11380
11381# The host system.
11382host_alias=$host_alias
11383host=$host
11384
11385# An echo program that does not interpret backslashes.
11386echo=$lt_echo
11387
11388# The archiver.
11389AR=$lt_AR
11390AR_FLAGS=$lt_AR_FLAGS
11391
11392# A C compiler.
11393LTCC=$lt_LTCC
11394
11395# A language-specific compiler.
11396CC=$lt_compiler
11397
11398# Is the compiler the GNU C compiler?
11399with_gcc=$GCC
11400
11401# An ERE matcher.
11402EGREP=$lt_EGREP
11403
11404# The linker used to build libraries.
11405LD=$lt_LD
11406
11407# Whether we need hard or soft links.
11408LN_S=$lt_LN_S
11409
11410# A BSD-compatible nm program.
11411NM=$lt_NM
11412
11413# A symbol stripping program
11414STRIP=$STRIP
11415
11416# Used to examine libraries when file_magic_cmd begins "file"
11417MAGIC_CMD=$MAGIC_CMD
11418
11419# Used on cygwin: DLL creation program.
11420DLLTOOL="$DLLTOOL"
11421
11422# Used on cygwin: object dumper.
11423OBJDUMP="$OBJDUMP"
11424
11425# Used on cygwin: assembler.
11426AS="$AS"
11427
11428# The name of the directory that contains temporary libtool files.
11429objdir=$objdir
11430
11431# How to create reloadable object files.
11432reload_flag=$lt_reload_flag
11433reload_cmds=$lt_reload_cmds
11434
11435# How to pass a linker flag through the compiler.
11436wl=$lt_lt_prog_compiler_wl
11437
11438# Object file suffix (normally "o").
11439objext="$ac_objext"
11440
11441# Old archive suffix (normally "a").
11442libext="$libext"
11443
11444# Shared library suffix (normally ".so").
11445shrext='$shrext'
11446
11447# Executable file suffix (normally "").
11448exeext="$exeext"
11449
11450# Additional compiler flags for building library objects.
11451pic_flag=$lt_lt_prog_compiler_pic
11452pic_mode=$pic_mode
11453
11454# What is the maximum length of a command?
11455max_cmd_len=$lt_cv_sys_max_cmd_len
11456
11457# Does compiler simultaneously support -c and -o options?
11458compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11459
11460# Must we lock files when doing compilation ?
11461need_locks=$lt_need_locks
11462
11463# Do we need the lib prefix for modules?
11464need_lib_prefix=$need_lib_prefix
11465
11466# Do we need a version for libraries?
11467need_version=$need_version
11468
11469# Whether dlopen is supported.
11470dlopen_support=$enable_dlopen
11471
11472# Whether dlopen of programs is supported.
11473dlopen_self=$enable_dlopen_self
11474
11475# Whether dlopen of statically linked programs is supported.
11476dlopen_self_static=$enable_dlopen_self_static
11477
11478# Compiler flag to prevent dynamic linking.
11479link_static_flag=$lt_lt_prog_compiler_static
11480
11481# Compiler flag to turn off builtin functions.
11482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11483
11484# Compiler flag to allow reflexive dlopens.
11485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11486
11487# Compiler flag to generate shared objects directly from archives.
11488whole_archive_flag_spec=$lt_whole_archive_flag_spec
11489
11490# Compiler flag to generate thread-safe objects.
11491thread_safe_flag_spec=$lt_thread_safe_flag_spec
11492
11493# Library versioning type.
11494version_type=$version_type
11495
11496# Format of library name prefix.
11497libname_spec=$lt_libname_spec
11498
11499# List of archive names.  First name is the real one, the rest are links.
11500# The last name is the one that the linker finds with -lNAME.
11501library_names_spec=$lt_library_names_spec
11502
11503# The coded name of the library, if different from the real name.
11504soname_spec=$lt_soname_spec
11505
11506# Commands used to build and install an old-style archive.
11507RANLIB=$lt_RANLIB
11508old_archive_cmds=$lt_old_archive_cmds
11509old_postinstall_cmds=$lt_old_postinstall_cmds
11510old_postuninstall_cmds=$lt_old_postuninstall_cmds
11511
11512# Create an old-style archive from a shared archive.
11513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11514
11515# Create a temporary old-style archive to link instead of a shared archive.
11516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11517
11518# Commands used to build and install a shared archive.
11519archive_cmds=$lt_archive_cmds
11520archive_expsym_cmds=$lt_archive_expsym_cmds
11521postinstall_cmds=$lt_postinstall_cmds
11522postuninstall_cmds=$lt_postuninstall_cmds
11523
11524# Commands used to build a loadable module (assumed same as above if empty)
11525module_cmds=$lt_module_cmds
11526module_expsym_cmds=$lt_module_expsym_cmds
11527
11528# Commands to strip libraries.
11529old_striplib=$lt_old_striplib
11530striplib=$lt_striplib
11531
11532# Dependencies to place before the objects being linked to create a
11533# shared library.
11534predep_objects=$lt_predep_objects
11535
11536# Dependencies to place after the objects being linked to create a
11537# shared library.
11538postdep_objects=$lt_postdep_objects
11539
11540# Dependencies to place before the objects being linked to create a
11541# shared library.
11542predeps=$lt_predeps
11543
11544# Dependencies to place after the objects being linked to create a
11545# shared library.
11546postdeps=$lt_postdeps
11547
11548# The library search path used internally by the compiler when linking
11549# a shared library.
11550compiler_lib_search_path=$lt_compiler_lib_search_path
11551
11552# Method to check whether dependent libraries are shared objects.
11553deplibs_check_method=$lt_deplibs_check_method
11554
11555# Command to use when deplibs_check_method == file_magic.
11556file_magic_cmd=$lt_file_magic_cmd
11557
11558# Flag that allows shared libraries with undefined symbols to be built.
11559allow_undefined_flag=$lt_allow_undefined_flag
11560
11561# Flag that forces no undefined symbols.
11562no_undefined_flag=$lt_no_undefined_flag
11563
11564# Commands used to finish a libtool library installation in a directory.
11565finish_cmds=$lt_finish_cmds
11566
11567# Same as above, but a single script fragment to be evaled but not shown.
11568finish_eval=$lt_finish_eval
11569
11570# Take the output of nm and produce a listing of raw symbols and C names.
11571global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11572
11573# Transform the output of nm in a proper C declaration
11574global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11575
11576# Transform the output of nm in a C name address pair
11577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11578
11579# This is the shared library runtime path variable.
11580runpath_var=$runpath_var
11581
11582# This is the shared library path variable.
11583shlibpath_var=$shlibpath_var
11584
11585# Is shlibpath searched before the hard-coded library search path?
11586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11587
11588# How to hardcode a shared library path into an executable.
11589hardcode_action=$hardcode_action
11590
11591# Whether we should hardcode library paths into libraries.
11592hardcode_into_libs=$hardcode_into_libs
11593
11594# Flag to hardcode \$libdir into a binary during linking.
11595# This must work even if \$libdir does not exist.
11596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11597
11598# If ld is used when linking, flag to hardcode \$libdir into
11599# a binary during linking. This must work even if \$libdir does
11600# not exist.
11601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11602
11603# Whether we need a single -rpath flag with a separated argument.
11604hardcode_libdir_separator=$lt_hardcode_libdir_separator
11605
11606# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11607# resulting binary.
11608hardcode_direct=$hardcode_direct
11609
11610# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11611# resulting binary.
11612hardcode_minus_L=$hardcode_minus_L
11613
11614# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11615# the resulting binary.
11616hardcode_shlibpath_var=$hardcode_shlibpath_var
11617
11618# Set to yes if building a shared library automatically hardcodes DIR into the library
11619# and all subsequent libraries and executables linked against it.
11620hardcode_automatic=$hardcode_automatic
11621
11622# Variables whose values should be saved in libtool wrapper scripts and
11623# restored at relink time.
11624variables_saved_for_relink="$variables_saved_for_relink"
11625
11626# Whether libtool must link a program against all its dependency libraries.
11627link_all_deplibs=$link_all_deplibs
11628
11629# Compile-time system search path for libraries
11630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11631
11632# Run-time system search path for libraries
11633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11634
11635# Fix the shell variable \$srcfile for the compiler.
11636fix_srcfile_path="$fix_srcfile_path"
11637
11638# Set to yes if exported symbols are required.
11639always_export_symbols=$always_export_symbols
11640
11641# The commands to list exported symbols.
11642export_symbols_cmds=$lt_export_symbols_cmds
11643
11644# The commands to extract the exported symbol list from a shared archive.
11645extract_expsyms_cmds=$lt_extract_expsyms_cmds
11646
11647# Symbols that should not be listed in the preloaded symbols.
11648exclude_expsyms=$lt_exclude_expsyms
11649
11650# Symbols that must always be exported.
11651include_expsyms=$lt_include_expsyms
11652
11653# ### END LIBTOOL CONFIG
11654
11655__EOF__
11656
11657
11658  case $host_os in
11659  aix3*)
11660    cat <<\EOF >> "$cfgfile"
11661
11662# AIX sometimes has problems with the GCC collect2 program.  For some
11663# reason, if we set the COLLECT_NAMES environment variable, the problems
11664# vanish in a puff of smoke.
11665if test "X${COLLECT_NAMES+set}" != Xset; then
11666  COLLECT_NAMES=
11667  export COLLECT_NAMES
11668fi
11669EOF
11670    ;;
11671  esac
11672
11673  # We use sed instead of cat because bash on DJGPP gets confused if
11674  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11675  # text mode, it properly converts lines to CR/LF.  This bash problem
11676  # is reportedly fixed, but why not run on old versions too?
11677  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11678
11679  mv -f "$cfgfile" "$ofile" || \
11680    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11681  chmod +x "$ofile"
11682
11683else
11684  # If there is no Makefile yet, we rely on a make rule to execute
11685  # `config.status --recheck' to rerun these tests and create the
11686  # libtool script then.
11687  test -f Makefile && make "$ltmain"
11688fi
11689
11690
11691ac_ext=c
11692ac_cpp='$CPP $CPPFLAGS'
11693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11695ac_compiler_gnu=$ac_cv_c_compiler_gnu
11696
11697CC="$lt_save_CC"
11698
11699
11700# Check whether --with-tags or --without-tags was given.
11701if test "${with_tags+set}" = set; then
11702  withval="$with_tags"
11703  tagnames="$withval"
11704fi;
11705
11706if test -f "$ltmain" && test -n "$tagnames"; then
11707  if test ! -f "${ofile}"; then
11708    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11709echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11710  fi
11711
11712  if test -z "$LTCC"; then
11713    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11714    if test -z "$LTCC"; then
11715      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11716echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11717    else
11718      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11719echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11720    fi
11721  fi
11722
11723  # Extract list of available tagged configurations in $ofile.
11724  # Note that this assumes the entire list is on one line.
11725  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11726
11727  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11728  for tagname in $tagnames; do
11729    IFS="$lt_save_ifs"
11730    # Check whether tagname contains only valid characters
11731    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11732    "") ;;
11733    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11734echo "$as_me: error: invalid tag name: $tagname" >&2;}
11735   { (exit 1); exit 1; }; }
11736	;;
11737    esac
11738
11739    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11740    then
11741      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11742echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11743   { (exit 1); exit 1; }; }
11744    fi
11745
11746    # Update the list of available tags.
11747    if test -n "$tagname"; then
11748      echo appending configuration tag \"$tagname\" to $ofile
11749
11750      case $tagname in
11751      CXX)
11752	if test -n "$CXX" && test "X$CXX" != "Xno"; then
11753	  ac_ext=cc
11754ac_cpp='$CXXCPP $CPPFLAGS'
11755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11758
11759
11760
11761
11762archive_cmds_need_lc_CXX=no
11763allow_undefined_flag_CXX=
11764always_export_symbols_CXX=no
11765archive_expsym_cmds_CXX=
11766export_dynamic_flag_spec_CXX=
11767hardcode_direct_CXX=no
11768hardcode_libdir_flag_spec_CXX=
11769hardcode_libdir_flag_spec_ld_CXX=
11770hardcode_libdir_separator_CXX=
11771hardcode_minus_L_CXX=no
11772hardcode_automatic_CXX=no
11773module_cmds_CXX=
11774module_expsym_cmds_CXX=
11775link_all_deplibs_CXX=unknown
11776old_archive_cmds_CXX=$old_archive_cmds
11777no_undefined_flag_CXX=
11778whole_archive_flag_spec_CXX=
11779enable_shared_with_static_runtimes_CXX=no
11780
11781# Dependencies to place before and after the object being linked:
11782predep_objects_CXX=
11783postdep_objects_CXX=
11784predeps_CXX=
11785postdeps_CXX=
11786compiler_lib_search_path_CXX=
11787
11788# Source file extension for C++ test sources.
11789ac_ext=cc
11790
11791# Object file extension for compiled C++ test sources.
11792objext=o
11793objext_CXX=$objext
11794
11795# Code to be used in simple compile tests
11796lt_simple_compile_test_code="int some_variable = 0;\n"
11797
11798# Code to be used in simple link tests
11799lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11800
11801# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11802
11803# If no C compiler was specified, use CC.
11804LTCC=${LTCC-"$CC"}
11805
11806# Allow CC to be a program name with arguments.
11807compiler=$CC
11808
11809
11810# Allow CC to be a program name with arguments.
11811lt_save_CC=$CC
11812lt_save_LD=$LD
11813lt_save_GCC=$GCC
11814GCC=$GXX
11815lt_save_with_gnu_ld=$with_gnu_ld
11816lt_save_path_LD=$lt_cv_path_LD
11817if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11818  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11819else
11820  unset lt_cv_prog_gnu_ld
11821fi
11822if test -n "${lt_cv_path_LDCXX+set}"; then
11823  lt_cv_path_LD=$lt_cv_path_LDCXX
11824else
11825  unset lt_cv_path_LD
11826fi
11827test -z "${LDCXX+set}" || LD=$LDCXX
11828CC=${CXX-"c++"}
11829compiler=$CC
11830compiler_CXX=$CC
11831cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11832
11833# We don't want -fno-exception wen compiling C++ code, so set the
11834# no_builtin_flag separately
11835if test "$GXX" = yes; then
11836  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11837else
11838  lt_prog_compiler_no_builtin_flag_CXX=
11839fi
11840
11841if test "$GXX" = yes; then
11842  # Set up default GNU C++ configuration
11843
11844
11845# Check whether --with-gnu-ld or --without-gnu-ld was given.
11846if test "${with_gnu_ld+set}" = set; then
11847  withval="$with_gnu_ld"
11848  test "$withval" = no || with_gnu_ld=yes
11849else
11850  with_gnu_ld=no
11851fi;
11852ac_prog=ld
11853if test "$GCC" = yes; then
11854  # Check if gcc -print-prog-name=ld gives a path.
11855  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11856echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11857  case $host in
11858  *-*-mingw*)
11859    # gcc leaves a trailing carriage return which upsets mingw
11860    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11861  *)
11862    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11863  esac
11864  case $ac_prog in
11865    # Accept absolute paths.
11866    [\\/]* | ?:[\\/]*)
11867      re_direlt='/[^/][^/]*/\.\./'
11868      # Canonicalize the pathname of ld
11869      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11870      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11871	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11872      done
11873      test -z "$LD" && LD="$ac_prog"
11874      ;;
11875  "")
11876    # If it fails, then pretend we aren't using GCC.
11877    ac_prog=ld
11878    ;;
11879  *)
11880    # If it is relative, then search for the first ld in PATH.
11881    with_gnu_ld=unknown
11882    ;;
11883  esac
11884elif test "$with_gnu_ld" = yes; then
11885  echo "$as_me:$LINENO: checking for GNU ld" >&5
11886echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11887else
11888  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11889echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11890fi
11891if test "${lt_cv_path_LD+set}" = set; then
11892  echo $ECHO_N "(cached) $ECHO_C" >&6
11893else
11894  if test -z "$LD"; then
11895  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11896  for ac_dir in $PATH; do
11897    IFS="$lt_save_ifs"
11898    test -z "$ac_dir" && ac_dir=.
11899    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11900      lt_cv_path_LD="$ac_dir/$ac_prog"
11901      # Check to see if the program is GNU ld.  I'd rather use --version,
11902      # but apparently some GNU ld's only accept -v.
11903      # Break only if it was the GNU/non-GNU ld that we prefer.
11904      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11905      *GNU* | *'with BFD'*)
11906	test "$with_gnu_ld" != no && break
11907	;;
11908      *)
11909	test "$with_gnu_ld" != yes && break
11910	;;
11911      esac
11912    fi
11913  done
11914  IFS="$lt_save_ifs"
11915else
11916  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11917fi
11918fi
11919
11920LD="$lt_cv_path_LD"
11921if test -n "$LD"; then
11922  echo "$as_me:$LINENO: result: $LD" >&5
11923echo "${ECHO_T}$LD" >&6
11924else
11925  echo "$as_me:$LINENO: result: no" >&5
11926echo "${ECHO_T}no" >&6
11927fi
11928test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11929echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11930   { (exit 1); exit 1; }; }
11931echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11932echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11933if test "${lt_cv_prog_gnu_ld+set}" = set; then
11934  echo $ECHO_N "(cached) $ECHO_C" >&6
11935else
11936  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11937case `$LD -v 2>&1 </dev/null` in
11938*GNU* | *'with BFD'*)
11939  lt_cv_prog_gnu_ld=yes
11940  ;;
11941*)
11942  lt_cv_prog_gnu_ld=no
11943  ;;
11944esac
11945fi
11946echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11947echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11948with_gnu_ld=$lt_cv_prog_gnu_ld
11949
11950
11951
11952  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11953  # archiving commands below assume that GNU ld is being used.
11954  if test "$with_gnu_ld" = yes; then
11955    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11956    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'
11957
11958    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11959    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11960
11961    # If archive_cmds runs LD, not CC, wlarc should be empty
11962    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11963    #     investigate it a little bit more. (MM)
11964    wlarc='${wl}'
11965
11966    # ancient GNU ld didn't support --whole-archive et. al.
11967    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11968	grep 'no-whole-archive' > /dev/null; then
11969      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11970    else
11971      whole_archive_flag_spec_CXX=
11972    fi
11973  else
11974    with_gnu_ld=no
11975    wlarc=
11976
11977    # A generic and very simple default shared library creation
11978    # command for GNU C++ for the case where it uses the native
11979    # linker, instead of GNU ld.  If possible, this setting should
11980    # overridden to take advantage of the native linker features on
11981    # the platform it is being used on.
11982    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11983  fi
11984
11985  # Commands to make compiler produce verbose output that lists
11986  # what "hidden" libraries, object files and flags are used when
11987  # linking a shared library.
11988  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11989
11990else
11991  GXX=no
11992  with_gnu_ld=no
11993  wlarc=
11994fi
11995
11996# PORTME: fill in a description of your system's C++ link characteristics
11997echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11998echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11999ld_shlibs_CXX=yes
12000case $host_os in
12001  aix3*)
12002    # FIXME: insert proper C++ library support
12003    ld_shlibs_CXX=no
12004    ;;
12005  aix4* | aix5*)
12006    if test "$host_cpu" = ia64; then
12007      # On IA64, the linker does run time linking by default, so we don't
12008      # have to do anything special.
12009      aix_use_runtimelinking=no
12010      exp_sym_flag='-Bexport'
12011      no_entry_flag=""
12012    else
12013      # KDE requires run time linking.  Make it the default.
12014      aix_use_runtimelinking=yes
12015      exp_sym_flag='-bexport'
12016      no_entry_flag='-bnoentry'
12017    fi
12018
12019    # When large executables or shared objects are built, AIX ld can
12020    # have problems creating the table of contents.  If linking a library
12021    # or program results in "error TOC overflow" add -mminimal-toc to
12022    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12023    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12024
12025    archive_cmds_CXX=''
12026    hardcode_direct_CXX=yes
12027    hardcode_libdir_separator_CXX=':'
12028    link_all_deplibs_CXX=yes
12029
12030    if test "$GXX" = yes; then
12031      case $host_os in aix4.012|aix4.012.*)
12032      # We only want to do this on AIX 4.2 and lower, the check
12033      # below for broken collect2 doesn't work under 4.3+
12034	collect2name=`${CC} -print-prog-name=collect2`
12035	if test -f "$collect2name" && \
12036	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12037	then
12038	  # We have reworked collect2
12039	  hardcode_direct_CXX=yes
12040	else
12041	  # We have old collect2
12042	  hardcode_direct_CXX=unsupported
12043	  # It fails to find uninstalled libraries when the uninstalled
12044	  # path is not listed in the libpath.  Setting hardcode_minus_L
12045	  # to unsupported forces relinking
12046	  hardcode_minus_L_CXX=yes
12047	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12048	  hardcode_libdir_separator_CXX=
12049	fi
12050      esac
12051      shared_flag='-shared'
12052    else
12053      # not using gcc
12054      if test "$host_cpu" = ia64; then
12055	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12056	# chokes on -Wl,-G. The following line is correct:
12057	shared_flag='-G'
12058      else
12059	if test "$aix_use_runtimelinking" = yes; then
12060	  shared_flag='-qmkshrobj ${wl}-G'
12061	else
12062	  shared_flag='-qmkshrobj'
12063	fi
12064      fi
12065    fi
12066
12067    # Let the compiler handle the export list.
12068    always_export_symbols_CXX=no
12069    if test "$aix_use_runtimelinking" = yes; then
12070      # Warning - without using the other runtime loading flags (-brtl),
12071      # -berok will link without error, but may produce a broken library.
12072      allow_undefined_flag_CXX='-berok'
12073      # Determine the default libpath from the value encoded in an empty executable.
12074      cat >conftest.$ac_ext <<_ACEOF
12075/* confdefs.h.  */
12076_ACEOF
12077cat confdefs.h >>conftest.$ac_ext
12078cat >>conftest.$ac_ext <<_ACEOF
12079/* end confdefs.h.  */
12080
12081int
12082main ()
12083{
12084
12085  ;
12086  return 0;
12087}
12088_ACEOF
12089rm -f conftest.$ac_objext conftest$ac_exeext
12090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091  (eval $ac_link) 2>conftest.er1
12092  ac_status=$?
12093  grep -v '^ *+' conftest.er1 >conftest.err
12094  rm -f conftest.er1
12095  cat conftest.err >&5
12096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097  (exit $ac_status); } &&
12098	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100  (eval $ac_try) 2>&5
12101  ac_status=$?
12102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103  (exit $ac_status); }; } &&
12104	 { ac_try='test -s conftest$ac_exeext'
12105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106  (eval $ac_try) 2>&5
12107  ac_status=$?
12108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109  (exit $ac_status); }; }; then
12110
12111aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12112}'`
12113# Check for a 64-bit object if we didn't find anything.
12114if 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; }
12115}'`; fi
12116else
12117  echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120fi
12121rm -f conftest.err conftest.$ac_objext \
12122      conftest$ac_exeext conftest.$ac_ext
12123if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12124
12125      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12126
12127      archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
12128      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12129     else
12130      if test "$host_cpu" = ia64; then
12131	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12132	allow_undefined_flag_CXX="-z nodefs"
12133	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12134      else
12135	# Determine the default libpath from the value encoded in an empty executable.
12136	cat >conftest.$ac_ext <<_ACEOF
12137/* confdefs.h.  */
12138_ACEOF
12139cat confdefs.h >>conftest.$ac_ext
12140cat >>conftest.$ac_ext <<_ACEOF
12141/* end confdefs.h.  */
12142
12143int
12144main ()
12145{
12146
12147  ;
12148  return 0;
12149}
12150_ACEOF
12151rm -f conftest.$ac_objext conftest$ac_exeext
12152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12153  (eval $ac_link) 2>conftest.er1
12154  ac_status=$?
12155  grep -v '^ *+' conftest.er1 >conftest.err
12156  rm -f conftest.er1
12157  cat conftest.err >&5
12158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159  (exit $ac_status); } &&
12160	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162  (eval $ac_try) 2>&5
12163  ac_status=$?
12164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165  (exit $ac_status); }; } &&
12166	 { ac_try='test -s conftest$ac_exeext'
12167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168  (eval $ac_try) 2>&5
12169  ac_status=$?
12170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171  (exit $ac_status); }; }; then
12172
12173aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12174}'`
12175# Check for a 64-bit object if we didn't find anything.
12176if 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; }
12177}'`; fi
12178else
12179  echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
12182fi
12183rm -f conftest.err conftest.$ac_objext \
12184      conftest$ac_exeext conftest.$ac_ext
12185if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12186
12187	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12188	# Warning - without using the other run time loading flags,
12189	# -berok will link without error, but may produce a broken library.
12190	no_undefined_flag_CXX=' ${wl}-bernotok'
12191	allow_undefined_flag_CXX=' ${wl}-berok'
12192	# -bexpall does not export symbols beginning with underscore (_)
12193	always_export_symbols_CXX=yes
12194	# Exported symbols can be pulled into shared objects from archives
12195	whole_archive_flag_spec_CXX=' '
12196	archive_cmds_need_lc_CXX=yes
12197	# This is similar to how AIX traditionally builds it's shared libraries.
12198	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12199      fi
12200    fi
12201    ;;
12202  chorus*)
12203    case $cc_basename in
12204      *)
12205	# FIXME: insert proper C++ library support
12206	ld_shlibs_CXX=no
12207	;;
12208    esac
12209    ;;
12210
12211  cygwin* | mingw* | pw32*)
12212    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12213    # as there is no search path for DLLs.
12214    hardcode_libdir_flag_spec_CXX='-L$libdir'
12215    allow_undefined_flag_CXX=no
12216    always_export_symbols_CXX=no
12217    enable_shared_with_static_runtimes_CXX=yes
12218
12219    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12220      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12221      # If the export-symbols file already is a .def file (1st line
12222      # is EXPORTS), use it as is; otherwise, prepend...
12223      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12224	cp $export_symbols $output_objdir/$soname.def;
12225      else
12226	echo EXPORTS > $output_objdir/$soname.def;
12227	cat $export_symbols >> $output_objdir/$soname.def;
12228      fi~
12229      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12230    else
12231      ld_shlibs_CXX=no
12232    fi
12233  ;;
12234
12235  darwin* | rhapsody*)
12236  if test "$GXX" = yes; then
12237    archive_cmds_need_lc_CXX=no
12238    case "$host_os" in
12239    rhapsody* | darwin1.[012])
12240      allow_undefined_flag_CXX='-undefined suppress'
12241      ;;
12242    *) # Darwin 1.3 on
12243      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12244      ;;
12245    esac
12246    lt_int_apple_cc_single_mod=no
12247    output_verbose_link_cmd='echo'
12248    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12249      lt_int_apple_cc_single_mod=yes
12250    fi
12251    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12252      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12253    else
12254      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12255    fi
12256    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12257
12258    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12259    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12260      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}'
12261    else
12262      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12263    fi
12264    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}'
12265    hardcode_direct_CXX=no
12266    hardcode_automatic_CXX=yes
12267    hardcode_shlibpath_var_CXX=unsupported
12268    whole_archive_flag_spec_CXX='-all_load $convenience'
12269    link_all_deplibs_CXX=yes
12270  else
12271    ld_shlibs_CXX=no
12272  fi
12273    ;;
12274
12275  dgux*)
12276    case $cc_basename in
12277      ec++)
12278	# FIXME: insert proper C++ library support
12279	ld_shlibs_CXX=no
12280	;;
12281      ghcx)
12282	# Green Hills C++ Compiler
12283	# FIXME: insert proper C++ library support
12284	ld_shlibs_CXX=no
12285	;;
12286      *)
12287	# FIXME: insert proper C++ library support
12288	ld_shlibs_CXX=no
12289	;;
12290    esac
12291    ;;
12292  freebsd12*)
12293    # C++ shared libraries reported to be fairly broken before switch to ELF
12294    ld_shlibs_CXX=no
12295    ;;
12296  freebsd-elf*)
12297    archive_cmds_need_lc_CXX=no
12298    ;;
12299  freebsd*)
12300    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12301    # conventions
12302    ld_shlibs_CXX=yes
12303    ;;
12304  gnu*)
12305    ;;
12306  hpux9*)
12307    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12308    hardcode_libdir_separator_CXX=:
12309    export_dynamic_flag_spec_CXX='${wl}-E'
12310    hardcode_direct_CXX=yes
12311    hardcode_minus_L_CXX=yes # Not in the search PATH,
12312				# but as the default
12313				# location of the library.
12314
12315    case $cc_basename in
12316    CC)
12317      # FIXME: insert proper C++ library support
12318      ld_shlibs_CXX=no
12319      ;;
12320    aCC)
12321      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'
12322      # Commands to make compiler produce verbose output that lists
12323      # what "hidden" libraries, object files and flags are used when
12324      # linking a shared library.
12325      #
12326      # There doesn't appear to be a way to prevent this compiler from
12327      # explicitly linking system object files so we need to strip them
12328      # from the output so that they don't get included in the library
12329      # dependencies.
12330      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12331      ;;
12332    *)
12333      if test "$GXX" = yes; then
12334        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'
12335      else
12336        # FIXME: insert proper C++ library support
12337        ld_shlibs_CXX=no
12338      fi
12339      ;;
12340    esac
12341    ;;
12342  hpux10*|hpux11*)
12343    if test $with_gnu_ld = no; then
12344      case "$host_cpu" in
12345      hppa*64*)
12346	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12347	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12348	hardcode_libdir_separator_CXX=:
12349        ;;
12350      ia64*)
12351	hardcode_libdir_flag_spec_CXX='-L$libdir'
12352        ;;
12353      *)
12354	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12355	hardcode_libdir_separator_CXX=:
12356	export_dynamic_flag_spec_CXX='${wl}-E'
12357        ;;
12358      esac
12359    fi
12360    case "$host_cpu" in
12361    hppa*64*)
12362      hardcode_direct_CXX=no
12363      hardcode_shlibpath_var_CXX=no
12364      ;;
12365    ia64*)
12366      hardcode_direct_CXX=no
12367      hardcode_shlibpath_var_CXX=no
12368      hardcode_minus_L_CXX=yes # Not in the search PATH,
12369					      # but as the default
12370					      # location of the library.
12371      ;;
12372    *)
12373      hardcode_direct_CXX=yes
12374      hardcode_minus_L_CXX=yes # Not in the search PATH,
12375					      # but as the default
12376					      # location of the library.
12377      ;;
12378    esac
12379
12380    case $cc_basename in
12381      CC)
12382	# FIXME: insert proper C++ library support
12383	ld_shlibs_CXX=no
12384	;;
12385      aCC)
12386	case "$host_cpu" in
12387	hppa*64*|ia64*)
12388	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12389	  ;;
12390	*)
12391	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12392	  ;;
12393	esac
12394	# Commands to make compiler produce verbose output that lists
12395	# what "hidden" libraries, object files and flags are used when
12396	# linking a shared library.
12397	#
12398	# There doesn't appear to be a way to prevent this compiler from
12399	# explicitly linking system object files so we need to strip them
12400	# from the output so that they don't get included in the library
12401	# dependencies.
12402	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'
12403	;;
12404      *)
12405	if test "$GXX" = yes; then
12406	  if test $with_gnu_ld = no; then
12407	    case "$host_cpu" in
12408	    ia64*|hppa*64*)
12409	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12410	      ;;
12411	    *)
12412	      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'
12413	      ;;
12414	    esac
12415	  fi
12416	else
12417	  # FIXME: insert proper C++ library support
12418	  ld_shlibs_CXX=no
12419	fi
12420	;;
12421    esac
12422    ;;
12423  irix5* | irix6*)
12424    case $cc_basename in
12425      CC)
12426	# SGI C++
12427	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12428
12429	# Archives containing C++ object files must be created using
12430	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12431	# necessary to make sure instantiated templates are included
12432	# in the archive.
12433	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12434	;;
12435      *)
12436	if test "$GXX" = yes; then
12437	  if test "$with_gnu_ld" = no; then
12438	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12439	  else
12440	    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'
12441	  fi
12442	fi
12443	link_all_deplibs_CXX=yes
12444	;;
12445    esac
12446    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12447    hardcode_libdir_separator_CXX=:
12448    ;;
12449  linux*)
12450    case $cc_basename in
12451      KCC)
12452	# Kuck and Associates, Inc. (KAI) C++ Compiler
12453
12454	# KCC will only create a shared library if the output file
12455	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12456	# to its proper name (with version) after linking.
12457	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'
12458	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'
12459	# Commands to make compiler produce verbose output that lists
12460	# what "hidden" libraries, object files and flags are used when
12461	# linking a shared library.
12462	#
12463	# There doesn't appear to be a way to prevent this compiler from
12464	# explicitly linking system object files so we need to strip them
12465	# from the output so that they don't get included in the library
12466	# dependencies.
12467	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'
12468
12469	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12470	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12471
12472	# Archives containing C++ object files must be created using
12473	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12474	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12475	;;
12476      icpc)
12477	# Intel C++
12478	with_gnu_ld=yes
12479	archive_cmds_need_lc_CXX=no
12480	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12481	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'
12482	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12483	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12484	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12485	;;
12486      cxx)
12487	# Compaq C++
12488	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12489	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'
12490
12491	runpath_var=LD_RUN_PATH
12492	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12493	hardcode_libdir_separator_CXX=:
12494
12495	# Commands to make compiler produce verbose output that lists
12496	# what "hidden" libraries, object files and flags are used when
12497	# linking a shared library.
12498	#
12499	# There doesn't appear to be a way to prevent this compiler from
12500	# explicitly linking system object files so we need to strip them
12501	# from the output so that they don't get included in the library
12502	# dependencies.
12503	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'
12504	;;
12505    esac
12506    ;;
12507  lynxos*)
12508    # FIXME: insert proper C++ library support
12509    ld_shlibs_CXX=no
12510    ;;
12511  m88k*)
12512    # FIXME: insert proper C++ library support
12513    ld_shlibs_CXX=no
12514    ;;
12515  mvs*)
12516    case $cc_basename in
12517      cxx)
12518	# FIXME: insert proper C++ library support
12519	ld_shlibs_CXX=no
12520	;;
12521      *)
12522	# FIXME: insert proper C++ library support
12523	ld_shlibs_CXX=no
12524	;;
12525    esac
12526    ;;
12527  netbsd*)
12528    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12529      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12530      wlarc=
12531      hardcode_libdir_flag_spec_CXX='-R$libdir'
12532      hardcode_direct_CXX=yes
12533      hardcode_shlibpath_var_CXX=no
12534    fi
12535    # Workaround some broken pre-1.5 toolchains
12536    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12537    ;;
12538  osf3*)
12539    case $cc_basename in
12540      KCC)
12541	# Kuck and Associates, Inc. (KAI) C++ Compiler
12542
12543	# KCC will only create a shared library if the output file
12544	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12545	# to its proper name (with version) after linking.
12546	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'
12547
12548	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12549	hardcode_libdir_separator_CXX=:
12550
12551	# Archives containing C++ object files must be created using
12552	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12553	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12554
12555	;;
12556      RCC)
12557	# Rational C++ 2.4.1
12558	# FIXME: insert proper C++ library support
12559	ld_shlibs_CXX=no
12560	;;
12561      cxx)
12562	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12563	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12564
12565	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12566	hardcode_libdir_separator_CXX=:
12567
12568	# Commands to make compiler produce verbose output that lists
12569	# what "hidden" libraries, object files and flags are used when
12570	# linking a shared library.
12571	#
12572	# There doesn't appear to be a way to prevent this compiler from
12573	# explicitly linking system object files so we need to strip them
12574	# from the output so that they don't get included in the library
12575	# dependencies.
12576	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'
12577	;;
12578      *)
12579	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12580	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12581	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12582
12583	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12584	  hardcode_libdir_separator_CXX=:
12585
12586	  # Commands to make compiler produce verbose output that lists
12587	  # what "hidden" libraries, object files and flags are used when
12588	  # linking a shared library.
12589	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12590
12591	else
12592	  # FIXME: insert proper C++ library support
12593	  ld_shlibs_CXX=no
12594	fi
12595	;;
12596    esac
12597    ;;
12598  osf4* | osf5*)
12599    case $cc_basename in
12600      KCC)
12601	# Kuck and Associates, Inc. (KAI) C++ Compiler
12602
12603	# KCC will only create a shared library if the output file
12604	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12605	# to its proper name (with version) after linking.
12606	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'
12607
12608	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12609	hardcode_libdir_separator_CXX=:
12610
12611	# Archives containing C++ object files must be created using
12612	# the KAI C++ compiler.
12613	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12614	;;
12615      RCC)
12616	# Rational C++ 2.4.1
12617	# FIXME: insert proper C++ library support
12618	ld_shlibs_CXX=no
12619	;;
12620      cxx)
12621	allow_undefined_flag_CXX=' -expect_unresolved \*'
12622	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
12623	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12624	  echo "-hidden">> $lib.exp~
12625	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
12626	  $rm $lib.exp'
12627
12628	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12629	hardcode_libdir_separator_CXX=:
12630
12631	# Commands to make compiler produce verbose output that lists
12632	# what "hidden" libraries, object files and flags are used when
12633	# linking a shared library.
12634	#
12635	# There doesn't appear to be a way to prevent this compiler from
12636	# explicitly linking system object files so we need to strip them
12637	# from the output so that they don't get included in the library
12638	# dependencies.
12639	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'
12640	;;
12641      *)
12642	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12643	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12644	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
12645
12646	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12647	  hardcode_libdir_separator_CXX=:
12648
12649	  # Commands to make compiler produce verbose output that lists
12650	  # what "hidden" libraries, object files and flags are used when
12651	  # linking a shared library.
12652	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12653
12654	else
12655	  # FIXME: insert proper C++ library support
12656	  ld_shlibs_CXX=no
12657	fi
12658	;;
12659    esac
12660    ;;
12661  psos*)
12662    # FIXME: insert proper C++ library support
12663    ld_shlibs_CXX=no
12664    ;;
12665  sco*)
12666    archive_cmds_need_lc_CXX=no
12667    case $cc_basename in
12668      CC)
12669	# FIXME: insert proper C++ library support
12670	ld_shlibs_CXX=no
12671	;;
12672      *)
12673	# FIXME: insert proper C++ library support
12674	ld_shlibs_CXX=no
12675	;;
12676    esac
12677    ;;
12678  sunos4*)
12679    case $cc_basename in
12680      CC)
12681	# Sun C++ 4.x
12682	# FIXME: insert proper C++ library support
12683	ld_shlibs_CXX=no
12684	;;
12685      lcc)
12686	# Lucid
12687	# FIXME: insert proper C++ library support
12688	ld_shlibs_CXX=no
12689	;;
12690      *)
12691	# FIXME: insert proper C++ library support
12692	ld_shlibs_CXX=no
12693	;;
12694    esac
12695    ;;
12696  solaris*)
12697    case $cc_basename in
12698      CC)
12699	# Sun C++ 4.2, 5.x and Centerline C++
12700	no_undefined_flag_CXX=' -zdefs'
12701	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12702	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12703	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12704
12705	hardcode_libdir_flag_spec_CXX='-R$libdir'
12706	hardcode_shlibpath_var_CXX=no
12707	case $host_os in
12708	  solaris2.0-5 | solaris2.0-5.*) ;;
12709	  *)
12710	    # The C++ compiler is used as linker so we must use $wl
12711	    # flag to pass the commands to the underlying system
12712	    # linker.
12713	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12714	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12715	    ;;
12716	esac
12717	link_all_deplibs_CXX=yes
12718
12719	# Commands to make compiler produce verbose output that lists
12720	# what "hidden" libraries, object files and flags are used when
12721	# linking a shared library.
12722	#
12723	# There doesn't appear to be a way to prevent this compiler from
12724	# explicitly linking system object files so we need to strip them
12725	# from the output so that they don't get included in the library
12726	# dependencies.
12727	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12728
12729	# Archives containing C++ object files must be created using
12730	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12731	# necessary to make sure instantiated templates are included
12732	# in the archive.
12733	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12734	;;
12735      gcx)
12736	# Green Hills C++ Compiler
12737	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12738
12739	# The C++ compiler must be used to create the archive.
12740	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12741	;;
12742      *)
12743	# GNU C++ compiler with Solaris linker
12744	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12745	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12746	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12747	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12748	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12749		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12750
12751	    # Commands to make compiler produce verbose output that lists
12752	    # what "hidden" libraries, object files and flags are used when
12753	    # linking a shared library.
12754	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12755	  else
12756	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12757	    # platform.
12758	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12759	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12760		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12761
12762	    # Commands to make compiler produce verbose output that lists
12763	    # what "hidden" libraries, object files and flags are used when
12764	    # linking a shared library.
12765	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12766	  fi
12767
12768	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12769	fi
12770	;;
12771    esac
12772    ;;
12773  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12774    archive_cmds_need_lc_CXX=no
12775    ;;
12776  tandem*)
12777    case $cc_basename in
12778      NCC)
12779	# NonStop-UX NCC 3.20
12780	# FIXME: insert proper C++ library support
12781	ld_shlibs_CXX=no
12782	;;
12783      *)
12784	# FIXME: insert proper C++ library support
12785	ld_shlibs_CXX=no
12786	;;
12787    esac
12788    ;;
12789  vxworks*)
12790    # FIXME: insert proper C++ library support
12791    ld_shlibs_CXX=no
12792    ;;
12793  *)
12794    # FIXME: insert proper C++ library support
12795    ld_shlibs_CXX=no
12796    ;;
12797esac
12798echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12799echo "${ECHO_T}$ld_shlibs_CXX" >&6
12800test "$ld_shlibs_CXX" = no && can_build_shared=no
12801
12802GCC_CXX="$GXX"
12803LD_CXX="$LD"
12804
12805## CAVEAT EMPTOR:
12806## There is no encapsulation within the following macros, do not change
12807## the running order or otherwise move them around unless you know exactly
12808## what you are doing...
12809
12810cat > conftest.$ac_ext <<EOF
12811class Foo
12812{
12813public:
12814  Foo (void) { a = 0; }
12815private:
12816  int a;
12817};
12818EOF
12819
12820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821  (eval $ac_compile) 2>&5
12822  ac_status=$?
12823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824  (exit $ac_status); }; then
12825  # Parse the compiler output and extract the necessary
12826  # objects, libraries and library flags.
12827
12828  # Sentinel used to keep track of whether or not we are before
12829  # the conftest object file.
12830  pre_test_object_deps_done=no
12831
12832  # The `*' in the case matches for architectures that use `case' in
12833  # $output_verbose_cmd can trigger glob expansion during the loop
12834  # eval without this substitution.
12835  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12836
12837  for p in `eval $output_verbose_link_cmd`; do
12838    case $p in
12839
12840    -L* | -R* | -l*)
12841       # Some compilers place space between "-{L,R}" and the path.
12842       # Remove the space.
12843       if test $p = "-L" \
12844	  || test $p = "-R"; then
12845	 prev=$p
12846	 continue
12847       else
12848	 prev=
12849       fi
12850
12851       if test "$pre_test_object_deps_done" = no; then
12852	 case $p in
12853	 -L* | -R*)
12854	   # Internal compiler library paths should come after those
12855	   # provided the user.  The postdeps already come after the
12856	   # user supplied libs so there is no need to process them.
12857	   if test -z "$compiler_lib_search_path_CXX"; then
12858	     compiler_lib_search_path_CXX="${prev}${p}"
12859	   else
12860	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12861	   fi
12862	   ;;
12863	 # The "-l" case would never come before the object being
12864	 # linked, so don't bother handling this case.
12865	 esac
12866       else
12867	 if test -z "$postdeps_CXX"; then
12868	   postdeps_CXX="${prev}${p}"
12869	 else
12870	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12871	 fi
12872       fi
12873       ;;
12874
12875    *.$objext|*.$libext)
12876       # This assumes that the test object file only shows up
12877       # once in the compiler output.
12878       if test "$p" = "conftest.$objext"; then
12879	 pre_test_object_deps_done=yes
12880	 continue
12881       fi
12882
12883       if test "$pre_test_object_deps_done" = no; then
12884	 if test -z "$predep_objects_CXX"; then
12885	   predep_objects_CXX="$p"
12886	 else
12887	   predep_objects_CXX="$predep_objects_CXX $p"
12888	 fi
12889       else
12890	 if test -z "$postdep_objects_CXX"; then
12891	   postdep_objects_CXX="$p"
12892	 else
12893	   postdep_objects_CXX="$postdep_objects_CXX $p"
12894	 fi
12895       fi
12896       ;;
12897
12898    *) ;; # Ignore the rest.
12899
12900    esac
12901  done
12902
12903  # Clean up.
12904  rm -f a.out a.exe
12905else
12906  echo "libtool.m4: error: problem compiling CXX test program"
12907fi
12908
12909$rm -f confest.$objext
12910
12911case " $postdeps_CXX " in
12912*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12913esac
12914
12915lt_prog_compiler_wl_CXX=
12916lt_prog_compiler_pic_CXX=
12917lt_prog_compiler_static_CXX=
12918
12919echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12920echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12921
12922  # C++ specific cases for pic, static, wl, etc.
12923  if test "$GXX" = yes; then
12924    lt_prog_compiler_wl_CXX='-Wl,'
12925    lt_prog_compiler_static_CXX='-static'
12926
12927    case $host_os in
12928    aix*)
12929      # All AIX code is PIC.
12930      if test "$host_cpu" = ia64; then
12931	# AIX 5 now supports IA64 processor
12932	lt_prog_compiler_static_CXX='-Bstatic'
12933      fi
12934      ;;
12935    amigaos*)
12936      # FIXME: we need at least 68020 code to build shared libraries, but
12937      # adding the `-m68020' flag to GCC prevents building anything better,
12938      # like `-m68040'.
12939      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12940      ;;
12941    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12942      # PIC is the default for these OSes.
12943      ;;
12944    mingw* | os2* | pw32*)
12945      # This hack is so that the source file can tell whether it is being
12946      # built for inclusion in a dll (and should export symbols for example).
12947      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12948      ;;
12949    darwin* | rhapsody*)
12950      # PIC is the default on this platform
12951      # Common symbols not allowed in MH_DYLIB files
12952      lt_prog_compiler_pic_CXX='-fno-common'
12953      ;;
12954    *djgpp*)
12955      # DJGPP does not support shared libraries at all
12956      lt_prog_compiler_pic_CXX=
12957      ;;
12958    sysv4*MP*)
12959      if test -d /usr/nec; then
12960	lt_prog_compiler_pic_CXX=-Kconform_pic
12961      fi
12962      ;;
12963    hpux*)
12964      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12965      # not for PA HP-UX.
12966      case "$host_cpu" in
12967      hppa*64*|ia64*)
12968	;;
12969      *)
12970	lt_prog_compiler_pic_CXX='-fPIC'
12971	;;
12972      esac
12973      ;;
12974    *)
12975      lt_prog_compiler_pic_CXX='-fPIC'
12976      ;;
12977    esac
12978  else
12979    case $host_os in
12980      aix4* | aix5*)
12981	# All AIX code is PIC.
12982	if test "$host_cpu" = ia64; then
12983	  # AIX 5 now supports IA64 processor
12984	  lt_prog_compiler_static_CXX='-Bstatic'
12985	else
12986	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12987	fi
12988	;;
12989      chorus*)
12990	case $cc_basename in
12991	cxch68)
12992	  # Green Hills C++ Compiler
12993	  # _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"
12994	  ;;
12995	esac
12996	;;
12997      dgux*)
12998	case $cc_basename in
12999	  ec++)
13000	    lt_prog_compiler_pic_CXX='-KPIC'
13001	    ;;
13002	  ghcx)
13003	    # Green Hills C++ Compiler
13004	    lt_prog_compiler_pic_CXX='-pic'
13005	    ;;
13006	  *)
13007	    ;;
13008	esac
13009	;;
13010      freebsd*)
13011	# FreeBSD uses GNU C++
13012	;;
13013      hpux9* | hpux10* | hpux11*)
13014	case $cc_basename in
13015	  CC)
13016	    lt_prog_compiler_wl_CXX='-Wl,'
13017	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13018	    if test "$host_cpu" != ia64; then
13019	      lt_prog_compiler_pic_CXX='+Z'
13020	    fi
13021	    ;;
13022	  aCC)
13023	    lt_prog_compiler_wl_CXX='-Wl,'
13024	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13025	    case "$host_cpu" in
13026	    hppa*64*|ia64*)
13027	      # +Z the default
13028	      ;;
13029	    *)
13030	      lt_prog_compiler_pic_CXX='+Z'
13031	      ;;
13032	    esac
13033	    ;;
13034	  *)
13035	    ;;
13036	esac
13037	;;
13038      irix5* | irix6* | nonstopux*)
13039	case $cc_basename in
13040	  CC)
13041	    lt_prog_compiler_wl_CXX='-Wl,'
13042	    lt_prog_compiler_static_CXX='-non_shared'
13043	    # CC pic flag -KPIC is the default.
13044	    ;;
13045	  *)
13046	    ;;
13047	esac
13048	;;
13049      linux*)
13050	case $cc_basename in
13051	  KCC)
13052	    # KAI C++ Compiler
13053	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13054	    lt_prog_compiler_pic_CXX='-fPIC'
13055	    ;;
13056	  icpc)
13057	    # Intel C++
13058	    lt_prog_compiler_wl_CXX='-Wl,'
13059	    lt_prog_compiler_pic_CXX='-KPIC'
13060	    lt_prog_compiler_static_CXX='-static'
13061	    ;;
13062	  cxx)
13063	    # Compaq C++
13064	    # Make sure the PIC flag is empty.  It appears that all Alpha
13065	    # Linux and Compaq Tru64 Unix objects are PIC.
13066	    lt_prog_compiler_pic_CXX=
13067	    lt_prog_compiler_static_CXX='-non_shared'
13068	    ;;
13069	  *)
13070	    ;;
13071	esac
13072	;;
13073      lynxos*)
13074	;;
13075      m88k*)
13076	;;
13077      mvs*)
13078	case $cc_basename in
13079	  cxx)
13080	    lt_prog_compiler_pic_CXX='-W c,exportall'
13081	    ;;
13082	  *)
13083	    ;;
13084	esac
13085	;;
13086      netbsd*)
13087	;;
13088      osf3* | osf4* | osf5*)
13089	case $cc_basename in
13090	  KCC)
13091	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13092	    ;;
13093	  RCC)
13094	    # Rational C++ 2.4.1
13095	    lt_prog_compiler_pic_CXX='-pic'
13096	    ;;
13097	  cxx)
13098	    # Digital/Compaq C++
13099	    lt_prog_compiler_wl_CXX='-Wl,'
13100	    # Make sure the PIC flag is empty.  It appears that all Alpha
13101	    # Linux and Compaq Tru64 Unix objects are PIC.
13102	    lt_prog_compiler_pic_CXX=
13103	    lt_prog_compiler_static_CXX='-non_shared'
13104	    ;;
13105	  *)
13106	    ;;
13107	esac
13108	;;
13109      psos*)
13110	;;
13111      sco*)
13112	case $cc_basename in
13113	  CC)
13114	    lt_prog_compiler_pic_CXX='-fPIC'
13115	    ;;
13116	  *)
13117	    ;;
13118	esac
13119	;;
13120      solaris*)
13121	case $cc_basename in
13122	  CC)
13123	    # Sun C++ 4.2, 5.x and Centerline C++
13124	    lt_prog_compiler_pic_CXX='-KPIC'
13125	    lt_prog_compiler_static_CXX='-Bstatic'
13126	    lt_prog_compiler_wl_CXX='-Qoption ld '
13127	    ;;
13128	  gcx)
13129	    # Green Hills C++ Compiler
13130	    lt_prog_compiler_pic_CXX='-PIC'
13131	    ;;
13132	  *)
13133	    ;;
13134	esac
13135	;;
13136      sunos4*)
13137	case $cc_basename in
13138	  CC)
13139	    # Sun C++ 4.x
13140	    lt_prog_compiler_pic_CXX='-pic'
13141	    lt_prog_compiler_static_CXX='-Bstatic'
13142	    ;;
13143	  lcc)
13144	    # Lucid
13145	    lt_prog_compiler_pic_CXX='-pic'
13146	    ;;
13147	  *)
13148	    ;;
13149	esac
13150	;;
13151      tandem*)
13152	case $cc_basename in
13153	  NCC)
13154	    # NonStop-UX NCC 3.20
13155	    lt_prog_compiler_pic_CXX='-KPIC'
13156	    ;;
13157	  *)
13158	    ;;
13159	esac
13160	;;
13161      unixware*)
13162	;;
13163      vxworks*)
13164	;;
13165      *)
13166	lt_prog_compiler_can_build_shared_CXX=no
13167	;;
13168    esac
13169  fi
13170
13171echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13172echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13173
13174#
13175# Check to make sure the PIC flag actually works.
13176#
13177if test -n "$lt_prog_compiler_pic_CXX"; then
13178
13179echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13180echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13181if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13182  echo $ECHO_N "(cached) $ECHO_C" >&6
13183else
13184  lt_prog_compiler_pic_works_CXX=no
13185  ac_outfile=conftest.$ac_objext
13186   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13187   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13188   # Insert the option either (1) after the last *FLAGS variable, or
13189   # (2) before a word containing "conftest.", or (3) at the end.
13190   # Note that $ac_compile itself does not contain backslashes and begins
13191   # with a dollar sign (not a hyphen), so the echo should work correctly.
13192   # The option is referenced via a variable to avoid confusing sed.
13193   lt_compile=`echo "$ac_compile" | $SED \
13194   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13195   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13196   -e 's:$: $lt_compiler_flag:'`
13197   (eval echo "\"\$as_me:13197: $lt_compile\"" >&5)
13198   (eval "$lt_compile" 2>conftest.err)
13199   ac_status=$?
13200   cat conftest.err >&5
13201   echo "$as_me:13201: \$? = $ac_status" >&5
13202   if (exit $ac_status) && test -s "$ac_outfile"; then
13203     # The compiler can only warn and ignore the option if not recognized
13204     # So say no if there are warnings
13205     if test ! -s conftest.err; then
13206       lt_prog_compiler_pic_works_CXX=yes
13207     fi
13208   fi
13209   $rm conftest*
13210
13211fi
13212echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13213echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13214
13215if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13216    case $lt_prog_compiler_pic_CXX in
13217     "" | " "*) ;;
13218     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13219     esac
13220else
13221    lt_prog_compiler_pic_CXX=
13222     lt_prog_compiler_can_build_shared_CXX=no
13223fi
13224
13225fi
13226case "$host_os" in
13227  # For platforms which do not support PIC, -DPIC is meaningless:
13228  *djgpp*)
13229    lt_prog_compiler_pic_CXX=
13230    ;;
13231  *)
13232    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13233    ;;
13234esac
13235
13236echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13237echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13238if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13239  echo $ECHO_N "(cached) $ECHO_C" >&6
13240else
13241  lt_cv_prog_compiler_c_o_CXX=no
13242   $rm -r conftest 2>/dev/null
13243   mkdir conftest
13244   cd conftest
13245   mkdir out
13246   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13247
13248   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13249   # that will create temporary files in the current directory regardless of
13250   # the output directory.  Thus, making CWD read-only will cause this test
13251   # to fail, enabling locking or at least warning the user not to do parallel
13252   # builds.
13253   chmod -w .
13254
13255   lt_compiler_flag="-o out/conftest2.$ac_objext"
13256   # Insert the option either (1) after the last *FLAGS variable, or
13257   # (2) before a word containing "conftest.", or (3) at the end.
13258   # Note that $ac_compile itself does not contain backslashes and begins
13259   # with a dollar sign (not a hyphen), so the echo should work correctly.
13260   lt_compile=`echo "$ac_compile" | $SED \
13261   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13262   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13263   -e 's:$: $lt_compiler_flag:'`
13264   (eval echo "\"\$as_me:13264: $lt_compile\"" >&5)
13265   (eval "$lt_compile" 2>out/conftest.err)
13266   ac_status=$?
13267   cat out/conftest.err >&5
13268   echo "$as_me:13268: \$? = $ac_status" >&5
13269   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13270   then
13271     # The compiler can only warn and ignore the option if not recognized
13272     # So say no if there are warnings
13273     if test ! -s out/conftest.err; then
13274       lt_cv_prog_compiler_c_o_CXX=yes
13275     fi
13276   fi
13277   chmod u+w .
13278   $rm conftest* out/*
13279   rmdir out
13280   cd ..
13281   rmdir conftest
13282   $rm conftest*
13283
13284fi
13285echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13286echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13287
13288
13289hard_links="nottested"
13290if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13291  # do not overwrite the value of need_locks provided by the user
13292  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13293echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13294  hard_links=yes
13295  $rm conftest*
13296  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13297  touch conftest.a
13298  ln conftest.a conftest.b 2>&5 || hard_links=no
13299  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13300  echo "$as_me:$LINENO: result: $hard_links" >&5
13301echo "${ECHO_T}$hard_links" >&6
13302  if test "$hard_links" = no; then
13303    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13304echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13305    need_locks=warn
13306  fi
13307else
13308  need_locks=no
13309fi
13310
13311echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13312echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13313
13314  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13315  case $host_os in
13316  aix4* | aix5*)
13317    # If we're using GNU nm, then we don't want the "-C" option.
13318    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13319    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13320      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'
13321    else
13322      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'
13323    fi
13324    ;;
13325  pw32*)
13326    export_symbols_cmds_CXX="$ltdll_cmds"
13327  ;;
13328  cygwin* | mingw*)
13329    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13330  ;;
13331  *)
13332    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13333  ;;
13334  esac
13335
13336echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13337echo "${ECHO_T}$ld_shlibs_CXX" >&6
13338test "$ld_shlibs_CXX" = no && can_build_shared=no
13339
13340variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13341if test "$GCC" = yes; then
13342  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13343fi
13344
13345#
13346# Do we need to explicitly link libc?
13347#
13348case "x$archive_cmds_need_lc_CXX" in
13349x|xyes)
13350  # Assume -lc should be added
13351  archive_cmds_need_lc_CXX=yes
13352
13353  if test "$enable_shared" = yes && test "$GCC" = yes; then
13354    case $archive_cmds_CXX in
13355    *'~'*)
13356      # FIXME: we may have to deal with multi-command sequences.
13357      ;;
13358    '$CC '*)
13359      # Test whether the compiler implicitly links with -lc since on some
13360      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13361      # to ld, don't add -lc before -lgcc.
13362      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13363echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13364      $rm conftest*
13365      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13366
13367      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13368  (eval $ac_compile) 2>&5
13369  ac_status=$?
13370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371  (exit $ac_status); } 2>conftest.err; then
13372        soname=conftest
13373        lib=conftest
13374        libobjs=conftest.$ac_objext
13375        deplibs=
13376        wl=$lt_prog_compiler_wl_CXX
13377        compiler_flags=-v
13378        linker_flags=-v
13379        verstring=
13380        output_objdir=.
13381        libname=conftest
13382        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13383        allow_undefined_flag_CXX=
13384        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13385  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13386  ac_status=$?
13387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388  (exit $ac_status); }
13389        then
13390	  archive_cmds_need_lc_CXX=no
13391        else
13392	  archive_cmds_need_lc_CXX=yes
13393        fi
13394        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13395      else
13396        cat conftest.err 1>&5
13397      fi
13398      $rm conftest*
13399      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13400echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13401      ;;
13402    esac
13403  fi
13404  ;;
13405esac
13406
13407echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13408echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13409library_names_spec=
13410libname_spec='lib$name'
13411soname_spec=
13412shrext=".so"
13413postinstall_cmds=
13414postuninstall_cmds=
13415finish_cmds=
13416finish_eval=
13417shlibpath_var=
13418shlibpath_overrides_runpath=unknown
13419version_type=none
13420dynamic_linker="$host_os ld.so"
13421sys_lib_dlsearch_path_spec="/lib /usr/lib"
13422sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13423need_lib_prefix=unknown
13424hardcode_into_libs=no
13425
13426# when you set need_version to no, make sure it does not cause -set_version
13427# flags to be left without arguments
13428need_version=unknown
13429
13430case $host_os in
13431aix3*)
13432  version_type=linux
13433  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13434  shlibpath_var=LIBPATH
13435
13436  # AIX 3 has no versioning support, so we append a major version to the name.
13437  soname_spec='${libname}${release}${shared_ext}$major'
13438  ;;
13439
13440aix4* | aix5*)
13441  version_type=linux
13442  need_lib_prefix=no
13443  need_version=no
13444  hardcode_into_libs=yes
13445  if test "$host_cpu" = ia64; then
13446    # AIX 5 supports IA64
13447    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13448    shlibpath_var=LD_LIBRARY_PATH
13449  else
13450    # With GCC up to 2.95.x, collect2 would create an import file
13451    # for dependence libraries.  The import file would start with
13452    # the line `#! .'.  This would cause the generated library to
13453    # depend on `.', always an invalid library.  This was fixed in
13454    # development snapshots of GCC prior to 3.0.
13455    case $host_os in
13456      aix4 | aix4.[01] | aix4.[01].*)
13457      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13458	   echo ' yes '
13459	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13460	:
13461      else
13462	can_build_shared=no
13463      fi
13464      ;;
13465    esac
13466    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13467    # soname into executable. Probably we can add versioning support to
13468    # collect2, so additional links can be useful in future.
13469    if test "$aix_use_runtimelinking" = yes; then
13470      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13471      # instead of lib<name>.a to let people know that these are not
13472      # typical AIX shared libraries.
13473      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13474    else
13475      # We preserve .a as extension for shared libraries through AIX4.2
13476      # and later when we are not doing run time linking.
13477      library_names_spec='${libname}${release}.a $libname.a'
13478      soname_spec='${libname}${release}${shared_ext}$major'
13479    fi
13480    shlibpath_var=LIBPATH
13481  fi
13482  ;;
13483
13484amigaos*)
13485  library_names_spec='$libname.ixlibrary $libname.a'
13486  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13487  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'
13488  ;;
13489
13490beos*)
13491  library_names_spec='${libname}${shared_ext}'
13492  dynamic_linker="$host_os ld.so"
13493  shlibpath_var=LIBRARY_PATH
13494  ;;
13495
13496bsdi4*)
13497  version_type=linux
13498  need_version=no
13499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500  soname_spec='${libname}${release}${shared_ext}$major'
13501  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13502  shlibpath_var=LD_LIBRARY_PATH
13503  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13504  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13505  # the default ld.so.conf also contains /usr/contrib/lib and
13506  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13507  # libtool to hard-code these into programs
13508  ;;
13509
13510cygwin* | mingw* | pw32*)
13511  version_type=windows
13512  shrext=".dll"
13513  need_version=no
13514  need_lib_prefix=no
13515
13516  case $GCC,$host_os in
13517  yes,cygwin* | yes,mingw* | yes,pw32*)
13518    library_names_spec='$libname.dll.a'
13519    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13520    postinstall_cmds='base_file=`basename \${file}`~
13521      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13522      dldir=$destdir/`dirname \$dlpath`~
13523      test -d \$dldir || mkdir -p \$dldir~
13524      $install_prog $dir/$dlname \$dldir/$dlname'
13525    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13526      dlpath=$dir/\$dldll~
13527       $rm \$dlpath'
13528    shlibpath_overrides_runpath=yes
13529
13530    case $host_os in
13531    cygwin*)
13532      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13533      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13534      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13535      ;;
13536    mingw*)
13537      # MinGW DLLs use traditional 'lib' prefix
13538      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13539      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13540      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13541        # It is most probably a Windows format PATH printed by
13542        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13543        # path with ; separators, and with drive letters. We can handle the
13544        # drive letters (cygwin fileutils understands them), so leave them,
13545        # especially as we might pass files found there to a mingw objdump,
13546        # which wouldn't understand a cygwinified path. Ahh.
13547        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13548      else
13549        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13550      fi
13551      ;;
13552    pw32*)
13553      # pw32 DLLs use 'pw' prefix rather than 'lib'
13554      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13555      ;;
13556    esac
13557    ;;
13558
13559  *)
13560    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13561    ;;
13562  esac
13563  dynamic_linker='Win32 ld.exe'
13564  # FIXME: first we should search . and the directory the executable is in
13565  shlibpath_var=PATH
13566  ;;
13567
13568darwin* | rhapsody*)
13569  dynamic_linker="$host_os dyld"
13570  version_type=darwin
13571  need_lib_prefix=no
13572  need_version=no
13573  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13574  soname_spec='${libname}${release}${major}$shared_ext'
13575  shlibpath_overrides_runpath=yes
13576  shlibpath_var=DYLD_LIBRARY_PATH
13577  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13578  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13579  if test "$GCC" = yes; then
13580    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"`
13581  else
13582    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13583  fi
13584  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13585  ;;
13586
13587dgux*)
13588  version_type=linux
13589  need_lib_prefix=no
13590  need_version=no
13591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13592  soname_spec='${libname}${release}${shared_ext}$major'
13593  shlibpath_var=LD_LIBRARY_PATH
13594  ;;
13595
13596freebsd1*)
13597  dynamic_linker=no
13598  ;;
13599
13600freebsd*-gnu*)
13601  version_type=linux
13602  need_lib_prefix=no
13603  need_version=no
13604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13605  soname_spec='${libname}${release}${shared_ext}$major'
13606  shlibpath_var=LD_LIBRARY_PATH
13607  shlibpath_overrides_runpath=no
13608  hardcode_into_libs=yes
13609  dynamic_linker='GNU ld.so'
13610  ;;
13611
13612freebsd*)
13613  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13614  version_type=freebsd-$objformat
13615  case $version_type in
13616    freebsd-elf*)
13617      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13618      need_version=no
13619      need_lib_prefix=no
13620      ;;
13621    freebsd-*)
13622      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13623      need_version=yes
13624      ;;
13625  esac
13626  shlibpath_var=LD_LIBRARY_PATH
13627  case $host_os in
13628  freebsd2*)
13629    shlibpath_overrides_runpath=yes
13630    ;;
13631  freebsd3.01* | freebsdelf3.01*)
13632    shlibpath_overrides_runpath=yes
13633    hardcode_into_libs=yes
13634    ;;
13635  *) # from 3.2 on
13636    shlibpath_overrides_runpath=no
13637    hardcode_into_libs=yes
13638    ;;
13639  esac
13640  ;;
13641
13642gnu*)
13643  version_type=linux
13644  need_lib_prefix=no
13645  need_version=no
13646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13647  soname_spec='${libname}${release}${shared_ext}$major'
13648  shlibpath_var=LD_LIBRARY_PATH
13649  hardcode_into_libs=yes
13650  ;;
13651
13652hpux9* | hpux10* | hpux11*)
13653  # Give a soname corresponding to the major version so that dld.sl refuses to
13654  # link against other versions.
13655  version_type=sunos
13656  need_lib_prefix=no
13657  need_version=no
13658  case "$host_cpu" in
13659  ia64*)
13660    shrext='.so'
13661    hardcode_into_libs=yes
13662    dynamic_linker="$host_os dld.so"
13663    shlibpath_var=LD_LIBRARY_PATH
13664    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13665    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666    soname_spec='${libname}${release}${shared_ext}$major'
13667    if test "X$HPUX_IA64_MODE" = X32; then
13668      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13669    else
13670      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13671    fi
13672    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13673    ;;
13674   hppa*64*)
13675     shrext='.sl'
13676     hardcode_into_libs=yes
13677     dynamic_linker="$host_os dld.sl"
13678     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13679     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13681     soname_spec='${libname}${release}${shared_ext}$major'
13682     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13683     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13684     ;;
13685   *)
13686    shrext='.sl'
13687    dynamic_linker="$host_os dld.sl"
13688    shlibpath_var=SHLIB_PATH
13689    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13690    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13691    soname_spec='${libname}${release}${shared_ext}$major'
13692    ;;
13693  esac
13694  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13695  postinstall_cmds='chmod 555 $lib'
13696  ;;
13697
13698irix5* | irix6* | nonstopux*)
13699  case $host_os in
13700    nonstopux*) version_type=nonstopux ;;
13701    *)
13702	if test "$lt_cv_prog_gnu_ld" = yes; then
13703		version_type=linux
13704	else
13705		version_type=irix
13706	fi ;;
13707  esac
13708  need_lib_prefix=no
13709  need_version=no
13710  soname_spec='${libname}${release}${shared_ext}$major'
13711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13712  case $host_os in
13713  irix5* | nonstopux*)
13714    libsuff= shlibsuff=
13715    ;;
13716  *)
13717    case $LD in # libtool.m4 will add one of these switches to LD
13718    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13719      libsuff= shlibsuff= libmagic=32-bit;;
13720    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13721      libsuff=32 shlibsuff=N32 libmagic=N32;;
13722    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13723      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13724    *) libsuff= shlibsuff= libmagic=never-match;;
13725    esac
13726    ;;
13727  esac
13728  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13729  shlibpath_overrides_runpath=no
13730  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13731  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13732  hardcode_into_libs=yes
13733  ;;
13734
13735# No shared lib support for Linux oldld, aout, or coff.
13736linux*oldld* | linux*aout* | linux*coff*)
13737  dynamic_linker=no
13738  ;;
13739
13740# This must be Linux ELF.
13741linux*)
13742  version_type=linux
13743  need_lib_prefix=no
13744  need_version=no
13745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13746  soname_spec='${libname}${release}${shared_ext}$major'
13747  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13748  libsuff=
13749  if test "x$LINUX_64_MODE" = x64; then
13750    # Some platforms are per default 64-bit, so there's no /lib64
13751    if test -d /lib64; then
13752      libsuff=64
13753    fi
13754  fi
13755  shlibpath_var=LD_LIBRARY_PATH
13756  shlibpath_overrides_runpath=no
13757  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
13758  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13759  # This implies no fast_install, which is unacceptable.
13760  # Some rework will be needed to allow for fast_install
13761  # before this can be enabled.
13762  hardcode_into_libs=yes
13763
13764  # We used to test for /lib/ld.so.1 and disable shared libraries on
13765  # powerpc, because MkLinux only supported shared libraries with the
13766  # GNU dynamic linker.  Since this was broken with cross compilers,
13767  # most powerpc-linux boxes support dynamic linking these days and
13768  # people can always --disable-shared, the test was removed, and we
13769  # assume the GNU/Linux dynamic linker is in use.
13770  dynamic_linker='GNU/Linux ld.so'
13771  ;;
13772
13773netbsd*)
13774  version_type=sunos
13775  need_lib_prefix=no
13776  need_version=no
13777  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13778    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13779    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13780    dynamic_linker='NetBSD (a.out) ld.so'
13781  else
13782    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13783    soname_spec='${libname}${release}${shared_ext}$major'
13784    dynamic_linker='NetBSD ld.elf_so'
13785  fi
13786  shlibpath_var=LD_LIBRARY_PATH
13787  shlibpath_overrides_runpath=yes
13788  hardcode_into_libs=yes
13789  ;;
13790
13791newsos6)
13792  version_type=linux
13793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13794  shlibpath_var=LD_LIBRARY_PATH
13795  shlibpath_overrides_runpath=yes
13796  ;;
13797
13798nto-qnx*)
13799  version_type=linux
13800  need_lib_prefix=no
13801  need_version=no
13802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13803  soname_spec='${libname}${release}${shared_ext}$major'
13804  shlibpath_var=LD_LIBRARY_PATH
13805  shlibpath_overrides_runpath=yes
13806  ;;
13807
13808openbsd*)
13809  version_type=sunos
13810  need_lib_prefix=no
13811  need_version=no
13812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13813  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13814  shlibpath_var=LD_LIBRARY_PATH
13815  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13816    case $host_os in
13817      openbsd2.[89] | openbsd2.[89].*)
13818	shlibpath_overrides_runpath=no
13819	;;
13820      *)
13821	shlibpath_overrides_runpath=yes
13822	;;
13823      esac
13824  else
13825    shlibpath_overrides_runpath=yes
13826  fi
13827  ;;
13828
13829os2*)
13830  libname_spec='$name'
13831  shrext=".dll"
13832  need_lib_prefix=no
13833  library_names_spec='$libname${shared_ext} $libname.a'
13834  dynamic_linker='OS/2 ld.exe'
13835  shlibpath_var=LIBPATH
13836  ;;
13837
13838osf3* | osf4* | osf5*)
13839  version_type=osf
13840  need_lib_prefix=no
13841  need_version=no
13842  soname_spec='${libname}${release}${shared_ext}$major'
13843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13844  shlibpath_var=LD_LIBRARY_PATH
13845  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13846  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13847  ;;
13848
13849sco3.2v5*)
13850  version_type=osf
13851  soname_spec='${libname}${release}${shared_ext}$major'
13852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13853  shlibpath_var=LD_LIBRARY_PATH
13854  ;;
13855
13856solaris*)
13857  version_type=linux
13858  need_lib_prefix=no
13859  need_version=no
13860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13861  soname_spec='${libname}${release}${shared_ext}$major'
13862  shlibpath_var=LD_LIBRARY_PATH
13863  shlibpath_overrides_runpath=yes
13864  hardcode_into_libs=yes
13865  # ldd complains unless libraries are executable
13866  postinstall_cmds='chmod +x $lib'
13867  ;;
13868
13869sunos4*)
13870  version_type=sunos
13871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13872  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13873  shlibpath_var=LD_LIBRARY_PATH
13874  shlibpath_overrides_runpath=yes
13875  if test "$with_gnu_ld" = yes; then
13876    need_lib_prefix=no
13877  fi
13878  need_version=yes
13879  ;;
13880
13881sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13882  version_type=linux
13883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13884  soname_spec='${libname}${release}${shared_ext}$major'
13885  shlibpath_var=LD_LIBRARY_PATH
13886  case $host_vendor in
13887    sni)
13888      shlibpath_overrides_runpath=no
13889      need_lib_prefix=no
13890      export_dynamic_flag_spec='${wl}-Blargedynsym'
13891      runpath_var=LD_RUN_PATH
13892      ;;
13893    siemens)
13894      need_lib_prefix=no
13895      ;;
13896    motorola)
13897      need_lib_prefix=no
13898      need_version=no
13899      shlibpath_overrides_runpath=no
13900      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13901      ;;
13902  esac
13903  ;;
13904
13905sysv4*MP*)
13906  if test -d /usr/nec ;then
13907    version_type=linux
13908    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13909    soname_spec='$libname${shared_ext}.$major'
13910    shlibpath_var=LD_LIBRARY_PATH
13911  fi
13912  ;;
13913
13914uts4*)
13915  version_type=linux
13916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13917  soname_spec='${libname}${release}${shared_ext}$major'
13918  shlibpath_var=LD_LIBRARY_PATH
13919  ;;
13920
13921*)
13922  dynamic_linker=no
13923  ;;
13924esac
13925echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13926echo "${ECHO_T}$dynamic_linker" >&6
13927test "$dynamic_linker" = no && can_build_shared=no
13928
13929echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13930echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13931hardcode_action_CXX=
13932if test -n "$hardcode_libdir_flag_spec_CXX" || \
13933   test -n "$runpath_var CXX" || \
13934   test "X$hardcode_automatic_CXX"="Xyes" ; then
13935
13936  # We can hardcode non-existant directories.
13937  if test "$hardcode_direct_CXX" != no &&
13938     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13939     # have to relink, otherwise we might link with an installed library
13940     # when we should be linking with a yet-to-be-installed one
13941     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13942     test "$hardcode_minus_L_CXX" != no; then
13943    # Linking always hardcodes the temporary library directory.
13944    hardcode_action_CXX=relink
13945  else
13946    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13947    hardcode_action_CXX=immediate
13948  fi
13949else
13950  # We cannot hardcode anything, or else we can only hardcode existing
13951  # directories.
13952  hardcode_action_CXX=unsupported
13953fi
13954echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13955echo "${ECHO_T}$hardcode_action_CXX" >&6
13956
13957if test "$hardcode_action_CXX" = relink; then
13958  # Fast installation is not supported
13959  enable_fast_install=no
13960elif test "$shlibpath_overrides_runpath" = yes ||
13961     test "$enable_shared" = no; then
13962  # Fast installation is not necessary
13963  enable_fast_install=needless
13964fi
13965
13966striplib=
13967old_striplib=
13968echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13969echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13970if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13971  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13972  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13973  echo "$as_me:$LINENO: result: yes" >&5
13974echo "${ECHO_T}yes" >&6
13975else
13976# FIXME - insert some real tests, host_os isn't really good enough
13977  case $host_os in
13978   darwin*)
13979       if test -n "$STRIP" ; then
13980         striplib="$STRIP -x"
13981         echo "$as_me:$LINENO: result: yes" >&5
13982echo "${ECHO_T}yes" >&6
13983       else
13984  echo "$as_me:$LINENO: result: no" >&5
13985echo "${ECHO_T}no" >&6
13986fi
13987       ;;
13988   *)
13989  echo "$as_me:$LINENO: result: no" >&5
13990echo "${ECHO_T}no" >&6
13991    ;;
13992  esac
13993fi
13994
13995if test "x$enable_dlopen" != xyes; then
13996  enable_dlopen=unknown
13997  enable_dlopen_self=unknown
13998  enable_dlopen_self_static=unknown
13999else
14000  lt_cv_dlopen=no
14001  lt_cv_dlopen_libs=
14002
14003  case $host_os in
14004  beos*)
14005    lt_cv_dlopen="load_add_on"
14006    lt_cv_dlopen_libs=
14007    lt_cv_dlopen_self=yes
14008    ;;
14009
14010  mingw* | pw32*)
14011    lt_cv_dlopen="LoadLibrary"
14012    lt_cv_dlopen_libs=
14013   ;;
14014
14015  cygwin*)
14016    lt_cv_dlopen="dlopen"
14017    lt_cv_dlopen_libs=
14018   ;;
14019
14020  darwin*)
14021  # if libdl is installed we need to link against it
14022    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14023echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14024if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14025  echo $ECHO_N "(cached) $ECHO_C" >&6
14026else
14027  ac_check_lib_save_LIBS=$LIBS
14028LIBS="-ldl  $LIBS"
14029cat >conftest.$ac_ext <<_ACEOF
14030/* confdefs.h.  */
14031_ACEOF
14032cat confdefs.h >>conftest.$ac_ext
14033cat >>conftest.$ac_ext <<_ACEOF
14034/* end confdefs.h.  */
14035
14036/* Override any gcc2 internal prototype to avoid an error.  */
14037#ifdef __cplusplus
14038extern "C"
14039#endif
14040/* We use char because int might match the return type of a gcc2
14041   builtin and then its argument prototype would still apply.  */
14042char dlopen ();
14043int
14044main ()
14045{
14046dlopen ();
14047  ;
14048  return 0;
14049}
14050_ACEOF
14051rm -f conftest.$ac_objext conftest$ac_exeext
14052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053  (eval $ac_link) 2>conftest.er1
14054  ac_status=$?
14055  grep -v '^ *+' conftest.er1 >conftest.err
14056  rm -f conftest.er1
14057  cat conftest.err >&5
14058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059  (exit $ac_status); } &&
14060	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062  (eval $ac_try) 2>&5
14063  ac_status=$?
14064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065  (exit $ac_status); }; } &&
14066	 { ac_try='test -s conftest$ac_exeext'
14067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068  (eval $ac_try) 2>&5
14069  ac_status=$?
14070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071  (exit $ac_status); }; }; then
14072  ac_cv_lib_dl_dlopen=yes
14073else
14074  echo "$as_me: failed program was:" >&5
14075sed 's/^/| /' conftest.$ac_ext >&5
14076
14077ac_cv_lib_dl_dlopen=no
14078fi
14079rm -f conftest.err conftest.$ac_objext \
14080      conftest$ac_exeext conftest.$ac_ext
14081LIBS=$ac_check_lib_save_LIBS
14082fi
14083echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14084echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14085if test $ac_cv_lib_dl_dlopen = yes; then
14086  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14087else
14088
14089    lt_cv_dlopen="dyld"
14090    lt_cv_dlopen_libs=
14091    lt_cv_dlopen_self=yes
14092
14093fi
14094
14095   ;;
14096
14097  *)
14098    echo "$as_me:$LINENO: checking for shl_load" >&5
14099echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14100if test "${ac_cv_func_shl_load+set}" = set; then
14101  echo $ECHO_N "(cached) $ECHO_C" >&6
14102else
14103  cat >conftest.$ac_ext <<_ACEOF
14104/* confdefs.h.  */
14105_ACEOF
14106cat confdefs.h >>conftest.$ac_ext
14107cat >>conftest.$ac_ext <<_ACEOF
14108/* end confdefs.h.  */
14109/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14110   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14111#define shl_load innocuous_shl_load
14112
14113/* System header to define __stub macros and hopefully few prototypes,
14114    which can conflict with char shl_load (); below.
14115    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14116    <limits.h> exists even on freestanding compilers.  */
14117
14118#ifdef __STDC__
14119# include <limits.h>
14120#else
14121# include <assert.h>
14122#endif
14123
14124#undef shl_load
14125
14126/* Override any gcc2 internal prototype to avoid an error.  */
14127#ifdef __cplusplus
14128extern "C"
14129{
14130#endif
14131/* We use char because int might match the return type of a gcc2
14132   builtin and then its argument prototype would still apply.  */
14133char shl_load ();
14134/* The GNU C library defines this for functions which it implements
14135    to always fail with ENOSYS.  Some functions are actually named
14136    something starting with __ and the normal name is an alias.  */
14137#if defined (__stub_shl_load) || defined (__stub___shl_load)
14138choke me
14139#else
14140char (*f) () = shl_load;
14141#endif
14142#ifdef __cplusplus
14143}
14144#endif
14145
14146int
14147main ()
14148{
14149return f != shl_load;
14150  ;
14151  return 0;
14152}
14153_ACEOF
14154rm -f conftest.$ac_objext conftest$ac_exeext
14155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14156  (eval $ac_link) 2>conftest.er1
14157  ac_status=$?
14158  grep -v '^ *+' conftest.er1 >conftest.err
14159  rm -f conftest.er1
14160  cat conftest.err >&5
14161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162  (exit $ac_status); } &&
14163	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165  (eval $ac_try) 2>&5
14166  ac_status=$?
14167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168  (exit $ac_status); }; } &&
14169	 { ac_try='test -s conftest$ac_exeext'
14170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171  (eval $ac_try) 2>&5
14172  ac_status=$?
14173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174  (exit $ac_status); }; }; then
14175  ac_cv_func_shl_load=yes
14176else
14177  echo "$as_me: failed program was:" >&5
14178sed 's/^/| /' conftest.$ac_ext >&5
14179
14180ac_cv_func_shl_load=no
14181fi
14182rm -f conftest.err conftest.$ac_objext \
14183      conftest$ac_exeext conftest.$ac_ext
14184fi
14185echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14186echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14187if test $ac_cv_func_shl_load = yes; then
14188  lt_cv_dlopen="shl_load"
14189else
14190  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14191echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14192if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14193  echo $ECHO_N "(cached) $ECHO_C" >&6
14194else
14195  ac_check_lib_save_LIBS=$LIBS
14196LIBS="-ldld  $LIBS"
14197cat >conftest.$ac_ext <<_ACEOF
14198/* confdefs.h.  */
14199_ACEOF
14200cat confdefs.h >>conftest.$ac_ext
14201cat >>conftest.$ac_ext <<_ACEOF
14202/* end confdefs.h.  */
14203
14204/* Override any gcc2 internal prototype to avoid an error.  */
14205#ifdef __cplusplus
14206extern "C"
14207#endif
14208/* We use char because int might match the return type of a gcc2
14209   builtin and then its argument prototype would still apply.  */
14210char shl_load ();
14211int
14212main ()
14213{
14214shl_load ();
14215  ;
14216  return 0;
14217}
14218_ACEOF
14219rm -f conftest.$ac_objext conftest$ac_exeext
14220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221  (eval $ac_link) 2>conftest.er1
14222  ac_status=$?
14223  grep -v '^ *+' conftest.er1 >conftest.err
14224  rm -f conftest.er1
14225  cat conftest.err >&5
14226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227  (exit $ac_status); } &&
14228	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230  (eval $ac_try) 2>&5
14231  ac_status=$?
14232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233  (exit $ac_status); }; } &&
14234	 { ac_try='test -s conftest$ac_exeext'
14235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236  (eval $ac_try) 2>&5
14237  ac_status=$?
14238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239  (exit $ac_status); }; }; then
14240  ac_cv_lib_dld_shl_load=yes
14241else
14242  echo "$as_me: failed program was:" >&5
14243sed 's/^/| /' conftest.$ac_ext >&5
14244
14245ac_cv_lib_dld_shl_load=no
14246fi
14247rm -f conftest.err conftest.$ac_objext \
14248      conftest$ac_exeext conftest.$ac_ext
14249LIBS=$ac_check_lib_save_LIBS
14250fi
14251echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14252echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14253if test $ac_cv_lib_dld_shl_load = yes; then
14254  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14255else
14256  echo "$as_me:$LINENO: checking for dlopen" >&5
14257echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14258if test "${ac_cv_func_dlopen+set}" = set; then
14259  echo $ECHO_N "(cached) $ECHO_C" >&6
14260else
14261  cat >conftest.$ac_ext <<_ACEOF
14262/* confdefs.h.  */
14263_ACEOF
14264cat confdefs.h >>conftest.$ac_ext
14265cat >>conftest.$ac_ext <<_ACEOF
14266/* end confdefs.h.  */
14267/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14268   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14269#define dlopen innocuous_dlopen
14270
14271/* System header to define __stub macros and hopefully few prototypes,
14272    which can conflict with char dlopen (); below.
14273    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14274    <limits.h> exists even on freestanding compilers.  */
14275
14276#ifdef __STDC__
14277# include <limits.h>
14278#else
14279# include <assert.h>
14280#endif
14281
14282#undef dlopen
14283
14284/* Override any gcc2 internal prototype to avoid an error.  */
14285#ifdef __cplusplus
14286extern "C"
14287{
14288#endif
14289/* We use char because int might match the return type of a gcc2
14290   builtin and then its argument prototype would still apply.  */
14291char dlopen ();
14292/* The GNU C library defines this for functions which it implements
14293    to always fail with ENOSYS.  Some functions are actually named
14294    something starting with __ and the normal name is an alias.  */
14295#if defined (__stub_dlopen) || defined (__stub___dlopen)
14296choke me
14297#else
14298char (*f) () = dlopen;
14299#endif
14300#ifdef __cplusplus
14301}
14302#endif
14303
14304int
14305main ()
14306{
14307return f != dlopen;
14308  ;
14309  return 0;
14310}
14311_ACEOF
14312rm -f conftest.$ac_objext conftest$ac_exeext
14313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14314  (eval $ac_link) 2>conftest.er1
14315  ac_status=$?
14316  grep -v '^ *+' conftest.er1 >conftest.err
14317  rm -f conftest.er1
14318  cat conftest.err >&5
14319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320  (exit $ac_status); } &&
14321	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323  (eval $ac_try) 2>&5
14324  ac_status=$?
14325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326  (exit $ac_status); }; } &&
14327	 { ac_try='test -s conftest$ac_exeext'
14328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329  (eval $ac_try) 2>&5
14330  ac_status=$?
14331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332  (exit $ac_status); }; }; then
14333  ac_cv_func_dlopen=yes
14334else
14335  echo "$as_me: failed program was:" >&5
14336sed 's/^/| /' conftest.$ac_ext >&5
14337
14338ac_cv_func_dlopen=no
14339fi
14340rm -f conftest.err conftest.$ac_objext \
14341      conftest$ac_exeext conftest.$ac_ext
14342fi
14343echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14344echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14345if test $ac_cv_func_dlopen = yes; then
14346  lt_cv_dlopen="dlopen"
14347else
14348  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14349echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14350if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14351  echo $ECHO_N "(cached) $ECHO_C" >&6
14352else
14353  ac_check_lib_save_LIBS=$LIBS
14354LIBS="-ldl  $LIBS"
14355cat >conftest.$ac_ext <<_ACEOF
14356/* confdefs.h.  */
14357_ACEOF
14358cat confdefs.h >>conftest.$ac_ext
14359cat >>conftest.$ac_ext <<_ACEOF
14360/* end confdefs.h.  */
14361
14362/* Override any gcc2 internal prototype to avoid an error.  */
14363#ifdef __cplusplus
14364extern "C"
14365#endif
14366/* We use char because int might match the return type of a gcc2
14367   builtin and then its argument prototype would still apply.  */
14368char dlopen ();
14369int
14370main ()
14371{
14372dlopen ();
14373  ;
14374  return 0;
14375}
14376_ACEOF
14377rm -f conftest.$ac_objext conftest$ac_exeext
14378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14379  (eval $ac_link) 2>conftest.er1
14380  ac_status=$?
14381  grep -v '^ *+' conftest.er1 >conftest.err
14382  rm -f conftest.er1
14383  cat conftest.err >&5
14384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385  (exit $ac_status); } &&
14386	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388  (eval $ac_try) 2>&5
14389  ac_status=$?
14390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391  (exit $ac_status); }; } &&
14392	 { ac_try='test -s conftest$ac_exeext'
14393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394  (eval $ac_try) 2>&5
14395  ac_status=$?
14396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397  (exit $ac_status); }; }; then
14398  ac_cv_lib_dl_dlopen=yes
14399else
14400  echo "$as_me: failed program was:" >&5
14401sed 's/^/| /' conftest.$ac_ext >&5
14402
14403ac_cv_lib_dl_dlopen=no
14404fi
14405rm -f conftest.err conftest.$ac_objext \
14406      conftest$ac_exeext conftest.$ac_ext
14407LIBS=$ac_check_lib_save_LIBS
14408fi
14409echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14410echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14411if test $ac_cv_lib_dl_dlopen = yes; then
14412  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14413else
14414  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14415echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14416if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14417  echo $ECHO_N "(cached) $ECHO_C" >&6
14418else
14419  ac_check_lib_save_LIBS=$LIBS
14420LIBS="-lsvld  $LIBS"
14421cat >conftest.$ac_ext <<_ACEOF
14422/* confdefs.h.  */
14423_ACEOF
14424cat confdefs.h >>conftest.$ac_ext
14425cat >>conftest.$ac_ext <<_ACEOF
14426/* end confdefs.h.  */
14427
14428/* Override any gcc2 internal prototype to avoid an error.  */
14429#ifdef __cplusplus
14430extern "C"
14431#endif
14432/* We use char because int might match the return type of a gcc2
14433   builtin and then its argument prototype would still apply.  */
14434char dlopen ();
14435int
14436main ()
14437{
14438dlopen ();
14439  ;
14440  return 0;
14441}
14442_ACEOF
14443rm -f conftest.$ac_objext conftest$ac_exeext
14444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445  (eval $ac_link) 2>conftest.er1
14446  ac_status=$?
14447  grep -v '^ *+' conftest.er1 >conftest.err
14448  rm -f conftest.er1
14449  cat conftest.err >&5
14450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451  (exit $ac_status); } &&
14452	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454  (eval $ac_try) 2>&5
14455  ac_status=$?
14456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457  (exit $ac_status); }; } &&
14458	 { ac_try='test -s conftest$ac_exeext'
14459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460  (eval $ac_try) 2>&5
14461  ac_status=$?
14462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463  (exit $ac_status); }; }; then
14464  ac_cv_lib_svld_dlopen=yes
14465else
14466  echo "$as_me: failed program was:" >&5
14467sed 's/^/| /' conftest.$ac_ext >&5
14468
14469ac_cv_lib_svld_dlopen=no
14470fi
14471rm -f conftest.err conftest.$ac_objext \
14472      conftest$ac_exeext conftest.$ac_ext
14473LIBS=$ac_check_lib_save_LIBS
14474fi
14475echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14476echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14477if test $ac_cv_lib_svld_dlopen = yes; then
14478  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14479else
14480  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14481echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14482if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14483  echo $ECHO_N "(cached) $ECHO_C" >&6
14484else
14485  ac_check_lib_save_LIBS=$LIBS
14486LIBS="-ldld  $LIBS"
14487cat >conftest.$ac_ext <<_ACEOF
14488/* confdefs.h.  */
14489_ACEOF
14490cat confdefs.h >>conftest.$ac_ext
14491cat >>conftest.$ac_ext <<_ACEOF
14492/* end confdefs.h.  */
14493
14494/* Override any gcc2 internal prototype to avoid an error.  */
14495#ifdef __cplusplus
14496extern "C"
14497#endif
14498/* We use char because int might match the return type of a gcc2
14499   builtin and then its argument prototype would still apply.  */
14500char dld_link ();
14501int
14502main ()
14503{
14504dld_link ();
14505  ;
14506  return 0;
14507}
14508_ACEOF
14509rm -f conftest.$ac_objext conftest$ac_exeext
14510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14511  (eval $ac_link) 2>conftest.er1
14512  ac_status=$?
14513  grep -v '^ *+' conftest.er1 >conftest.err
14514  rm -f conftest.er1
14515  cat conftest.err >&5
14516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517  (exit $ac_status); } &&
14518	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
14519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520  (eval $ac_try) 2>&5
14521  ac_status=$?
14522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523  (exit $ac_status); }; } &&
14524	 { ac_try='test -s conftest$ac_exeext'
14525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526  (eval $ac_try) 2>&5
14527  ac_status=$?
14528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529  (exit $ac_status); }; }; then
14530  ac_cv_lib_dld_dld_link=yes
14531else
14532  echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
14535ac_cv_lib_dld_dld_link=no
14536fi
14537rm -f conftest.err conftest.$ac_objext \
14538      conftest$ac_exeext conftest.$ac_ext
14539LIBS=$ac_check_lib_save_LIBS
14540fi
14541echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14542echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14543if test $ac_cv_lib_dld_dld_link = yes; then
14544  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14545fi
14546
14547
14548fi
14549
14550
14551fi
14552
14553
14554fi
14555
14556
14557fi
14558
14559
14560fi
14561
14562    ;;
14563  esac
14564
14565  if test "x$lt_cv_dlopen" != xno; then
14566    enable_dlopen=yes
14567  else
14568    enable_dlopen=no
14569  fi
14570
14571  case $lt_cv_dlopen in
14572  dlopen)
14573    save_CPPFLAGS="$CPPFLAGS"
14574    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14575
14576    save_LDFLAGS="$LDFLAGS"
14577    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14578
14579    save_LIBS="$LIBS"
14580    LIBS="$lt_cv_dlopen_libs $LIBS"
14581
14582    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14583echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14584if test "${lt_cv_dlopen_self+set}" = set; then
14585  echo $ECHO_N "(cached) $ECHO_C" >&6
14586else
14587  	  if test "$cross_compiling" = yes; then :
14588  lt_cv_dlopen_self=cross
14589else
14590  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14591  lt_status=$lt_dlunknown
14592  cat > conftest.$ac_ext <<EOF
14593#line 14593 "configure"
14594#include "confdefs.h"
14595
14596#if HAVE_DLFCN_H
14597#include <dlfcn.h>
14598#endif
14599
14600#include <stdio.h>
14601
14602#ifdef RTLD_GLOBAL
14603#  define LT_DLGLOBAL		RTLD_GLOBAL
14604#else
14605#  ifdef DL_GLOBAL
14606#    define LT_DLGLOBAL		DL_GLOBAL
14607#  else
14608#    define LT_DLGLOBAL		0
14609#  endif
14610#endif
14611
14612/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14613   find out it does not work in some platform. */
14614#ifndef LT_DLLAZY_OR_NOW
14615#  ifdef RTLD_LAZY
14616#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14617#  else
14618#    ifdef DL_LAZY
14619#      define LT_DLLAZY_OR_NOW		DL_LAZY
14620#    else
14621#      ifdef RTLD_NOW
14622#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14623#      else
14624#        ifdef DL_NOW
14625#          define LT_DLLAZY_OR_NOW	DL_NOW
14626#        else
14627#          define LT_DLLAZY_OR_NOW	0
14628#        endif
14629#      endif
14630#    endif
14631#  endif
14632#endif
14633
14634#ifdef __cplusplus
14635extern "C" void exit (int);
14636#endif
14637
14638void fnord() { int i=42;}
14639int main ()
14640{
14641  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14642  int status = $lt_dlunknown;
14643
14644  if (self)
14645    {
14646      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14647      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14648      /* dlclose (self); */
14649    }
14650
14651    exit (status);
14652}
14653EOF
14654  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14655  (eval $ac_link) 2>&5
14656  ac_status=$?
14657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14659    (./conftest; exit; ) 2>/dev/null
14660    lt_status=$?
14661    case x$lt_status in
14662      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14663      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14664      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14665    esac
14666  else :
14667    # compilation failed
14668    lt_cv_dlopen_self=no
14669  fi
14670fi
14671rm -fr conftest*
14672
14673
14674fi
14675echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14676echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14677
14678    if test "x$lt_cv_dlopen_self" = xyes; then
14679      LDFLAGS="$LDFLAGS $link_static_flag"
14680      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14681echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14682if test "${lt_cv_dlopen_self_static+set}" = set; then
14683  echo $ECHO_N "(cached) $ECHO_C" >&6
14684else
14685  	  if test "$cross_compiling" = yes; then :
14686  lt_cv_dlopen_self_static=cross
14687else
14688  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14689  lt_status=$lt_dlunknown
14690  cat > conftest.$ac_ext <<EOF
14691#line 14691 "configure"
14692#include "confdefs.h"
14693
14694#if HAVE_DLFCN_H
14695#include <dlfcn.h>
14696#endif
14697
14698#include <stdio.h>
14699
14700#ifdef RTLD_GLOBAL
14701#  define LT_DLGLOBAL		RTLD_GLOBAL
14702#else
14703#  ifdef DL_GLOBAL
14704#    define LT_DLGLOBAL		DL_GLOBAL
14705#  else
14706#    define LT_DLGLOBAL		0
14707#  endif
14708#endif
14709
14710/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14711   find out it does not work in some platform. */
14712#ifndef LT_DLLAZY_OR_NOW
14713#  ifdef RTLD_LAZY
14714#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14715#  else
14716#    ifdef DL_LAZY
14717#      define LT_DLLAZY_OR_NOW		DL_LAZY
14718#    else
14719#      ifdef RTLD_NOW
14720#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14721#      else
14722#        ifdef DL_NOW
14723#          define LT_DLLAZY_OR_NOW	DL_NOW
14724#        else
14725#          define LT_DLLAZY_OR_NOW	0
14726#        endif
14727#      endif
14728#    endif
14729#  endif
14730#endif
14731
14732#ifdef __cplusplus
14733extern "C" void exit (int);
14734#endif
14735
14736void fnord() { int i=42;}
14737int main ()
14738{
14739  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14740  int status = $lt_dlunknown;
14741
14742  if (self)
14743    {
14744      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14745      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14746      /* dlclose (self); */
14747    }
14748
14749    exit (status);
14750}
14751EOF
14752  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14753  (eval $ac_link) 2>&5
14754  ac_status=$?
14755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14757    (./conftest; exit; ) 2>/dev/null
14758    lt_status=$?
14759    case x$lt_status in
14760      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14761      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14762      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14763    esac
14764  else :
14765    # compilation failed
14766    lt_cv_dlopen_self_static=no
14767  fi
14768fi
14769rm -fr conftest*
14770
14771
14772fi
14773echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14774echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14775    fi
14776
14777    CPPFLAGS="$save_CPPFLAGS"
14778    LDFLAGS="$save_LDFLAGS"
14779    LIBS="$save_LIBS"
14780    ;;
14781  esac
14782
14783  case $lt_cv_dlopen_self in
14784  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14785  *) enable_dlopen_self=unknown ;;
14786  esac
14787
14788  case $lt_cv_dlopen_self_static in
14789  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14790  *) enable_dlopen_self_static=unknown ;;
14791  esac
14792fi
14793
14794
14795# The else clause should only fire when bootstrapping the
14796# libtool distribution, otherwise you forgot to ship ltmain.sh
14797# with your package, and you will get complaints that there are
14798# no rules to generate ltmain.sh.
14799if test -f "$ltmain"; then
14800  # See if we are running on zsh, and set the options which allow our commands through
14801  # without removal of \ escapes.
14802  if test -n "${ZSH_VERSION+set}" ; then
14803    setopt NO_GLOB_SUBST
14804  fi
14805  # Now quote all the things that may contain metacharacters while being
14806  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14807  # variables and quote the copies for generation of the libtool script.
14808  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14809    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14810    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14811    deplibs_check_method reload_flag reload_cmds need_locks \
14812    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14813    lt_cv_sys_global_symbol_to_c_name_address \
14814    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14815    old_postinstall_cmds old_postuninstall_cmds \
14816    compiler_CXX \
14817    CC_CXX \
14818    LD_CXX \
14819    lt_prog_compiler_wl_CXX \
14820    lt_prog_compiler_pic_CXX \
14821    lt_prog_compiler_static_CXX \
14822    lt_prog_compiler_no_builtin_flag_CXX \
14823    export_dynamic_flag_spec_CXX \
14824    thread_safe_flag_spec_CXX \
14825    whole_archive_flag_spec_CXX \
14826    enable_shared_with_static_runtimes_CXX \
14827    old_archive_cmds_CXX \
14828    old_archive_from_new_cmds_CXX \
14829    predep_objects_CXX \
14830    postdep_objects_CXX \
14831    predeps_CXX \
14832    postdeps_CXX \
14833    compiler_lib_search_path_CXX \
14834    archive_cmds_CXX \
14835    archive_expsym_cmds_CXX \
14836    postinstall_cmds_CXX \
14837    postuninstall_cmds_CXX \
14838    old_archive_from_expsyms_cmds_CXX \
14839    allow_undefined_flag_CXX \
14840    no_undefined_flag_CXX \
14841    export_symbols_cmds_CXX \
14842    hardcode_libdir_flag_spec_CXX \
14843    hardcode_libdir_flag_spec_ld_CXX \
14844    hardcode_libdir_separator_CXX \
14845    hardcode_automatic_CXX \
14846    module_cmds_CXX \
14847    module_expsym_cmds_CXX \
14848    lt_cv_prog_compiler_c_o_CXX \
14849    exclude_expsyms_CXX \
14850    include_expsyms_CXX; do
14851
14852    case $var in
14853    old_archive_cmds_CXX | \
14854    old_archive_from_new_cmds_CXX | \
14855    archive_cmds_CXX | \
14856    archive_expsym_cmds_CXX | \
14857    module_cmds_CXX | \
14858    module_expsym_cmds_CXX | \
14859    old_archive_from_expsyms_cmds_CXX | \
14860    export_symbols_cmds_CXX | \
14861    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14862    postinstall_cmds | postuninstall_cmds | \
14863    old_postinstall_cmds | old_postuninstall_cmds | \
14864    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14865      # Double-quote double-evaled strings.
14866      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14867      ;;
14868    *)
14869      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14870      ;;
14871    esac
14872  done
14873
14874  case $lt_echo in
14875  *'\$0 --fallback-echo"')
14876    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14877    ;;
14878  esac
14879
14880cfgfile="$ofile"
14881
14882  cat <<__EOF__ >> "$cfgfile"
14883# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14884
14885# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14886
14887# Shell to use when invoking shell scripts.
14888SHELL=$lt_SHELL
14889
14890# Whether or not to build shared libraries.
14891build_libtool_libs=$enable_shared
14892
14893# Whether or not to build static libraries.
14894build_old_libs=$enable_static
14895
14896# Whether or not to add -lc for building shared libraries.
14897build_libtool_need_lc=$archive_cmds_need_lc_CXX
14898
14899# Whether or not to disallow shared libs when runtime libs are static
14900allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14901
14902# Whether or not to optimize for fast installation.
14903fast_install=$enable_fast_install
14904
14905# The host system.
14906host_alias=$host_alias
14907host=$host
14908
14909# An echo program that does not interpret backslashes.
14910echo=$lt_echo
14911
14912# The archiver.
14913AR=$lt_AR
14914AR_FLAGS=$lt_AR_FLAGS
14915
14916# A C compiler.
14917LTCC=$lt_LTCC
14918
14919# A language-specific compiler.
14920CC=$lt_compiler_CXX
14921
14922# Is the compiler the GNU C compiler?
14923with_gcc=$GCC_CXX
14924
14925# An ERE matcher.
14926EGREP=$lt_EGREP
14927
14928# The linker used to build libraries.
14929LD=$lt_LD_CXX
14930
14931# Whether we need hard or soft links.
14932LN_S=$lt_LN_S
14933
14934# A BSD-compatible nm program.
14935NM=$lt_NM
14936
14937# A symbol stripping program
14938STRIP=$STRIP
14939
14940# Used to examine libraries when file_magic_cmd begins "file"
14941MAGIC_CMD=$MAGIC_CMD
14942
14943# Used on cygwin: DLL creation program.
14944DLLTOOL="$DLLTOOL"
14945
14946# Used on cygwin: object dumper.
14947OBJDUMP="$OBJDUMP"
14948
14949# Used on cygwin: assembler.
14950AS="$AS"
14951
14952# The name of the directory that contains temporary libtool files.
14953objdir=$objdir
14954
14955# How to create reloadable object files.
14956reload_flag=$lt_reload_flag
14957reload_cmds=$lt_reload_cmds
14958
14959# How to pass a linker flag through the compiler.
14960wl=$lt_lt_prog_compiler_wl_CXX
14961
14962# Object file suffix (normally "o").
14963objext="$ac_objext"
14964
14965# Old archive suffix (normally "a").
14966libext="$libext"
14967
14968# Shared library suffix (normally ".so").
14969shrext='$shrext'
14970
14971# Executable file suffix (normally "").
14972exeext="$exeext"
14973
14974# Additional compiler flags for building library objects.
14975pic_flag=$lt_lt_prog_compiler_pic_CXX
14976pic_mode=$pic_mode
14977
14978# What is the maximum length of a command?
14979max_cmd_len=$lt_cv_sys_max_cmd_len
14980
14981# Does compiler simultaneously support -c and -o options?
14982compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14983
14984# Must we lock files when doing compilation ?
14985need_locks=$lt_need_locks
14986
14987# Do we need the lib prefix for modules?
14988need_lib_prefix=$need_lib_prefix
14989
14990# Do we need a version for libraries?
14991need_version=$need_version
14992
14993# Whether dlopen is supported.
14994dlopen_support=$enable_dlopen
14995
14996# Whether dlopen of programs is supported.
14997dlopen_self=$enable_dlopen_self
14998
14999# Whether dlopen of statically linked programs is supported.
15000dlopen_self_static=$enable_dlopen_self_static
15001
15002# Compiler flag to prevent dynamic linking.
15003link_static_flag=$lt_lt_prog_compiler_static_CXX
15004
15005# Compiler flag to turn off builtin functions.
15006no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15007
15008# Compiler flag to allow reflexive dlopens.
15009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15010
15011# Compiler flag to generate shared objects directly from archives.
15012whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15013
15014# Compiler flag to generate thread-safe objects.
15015thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15016
15017# Library versioning type.
15018version_type=$version_type
15019
15020# Format of library name prefix.
15021libname_spec=$lt_libname_spec
15022
15023# List of archive names.  First name is the real one, the rest are links.
15024# The last name is the one that the linker finds with -lNAME.
15025library_names_spec=$lt_library_names_spec
15026
15027# The coded name of the library, if different from the real name.
15028soname_spec=$lt_soname_spec
15029
15030# Commands used to build and install an old-style archive.
15031RANLIB=$lt_RANLIB
15032old_archive_cmds=$lt_old_archive_cmds_CXX
15033old_postinstall_cmds=$lt_old_postinstall_cmds
15034old_postuninstall_cmds=$lt_old_postuninstall_cmds
15035
15036# Create an old-style archive from a shared archive.
15037old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15038
15039# Create a temporary old-style archive to link instead of a shared archive.
15040old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15041
15042# Commands used to build and install a shared archive.
15043archive_cmds=$lt_archive_cmds_CXX
15044archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15045postinstall_cmds=$lt_postinstall_cmds
15046postuninstall_cmds=$lt_postuninstall_cmds
15047
15048# Commands used to build a loadable module (assumed same as above if empty)
15049module_cmds=$lt_module_cmds_CXX
15050module_expsym_cmds=$lt_module_expsym_cmds_CXX
15051
15052# Commands to strip libraries.
15053old_striplib=$lt_old_striplib
15054striplib=$lt_striplib
15055
15056# Dependencies to place before the objects being linked to create a
15057# shared library.
15058predep_objects=$lt_predep_objects_CXX
15059
15060# Dependencies to place after the objects being linked to create a
15061# shared library.
15062postdep_objects=$lt_postdep_objects_CXX
15063
15064# Dependencies to place before the objects being linked to create a
15065# shared library.
15066predeps=$lt_predeps_CXX
15067
15068# Dependencies to place after the objects being linked to create a
15069# shared library.
15070postdeps=$lt_postdeps_CXX
15071
15072# The library search path used internally by the compiler when linking
15073# a shared library.
15074compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15075
15076# Method to check whether dependent libraries are shared objects.
15077deplibs_check_method=$lt_deplibs_check_method
15078
15079# Command to use when deplibs_check_method == file_magic.
15080file_magic_cmd=$lt_file_magic_cmd
15081
15082# Flag that allows shared libraries with undefined symbols to be built.
15083allow_undefined_flag=$lt_allow_undefined_flag_CXX
15084
15085# Flag that forces no undefined symbols.
15086no_undefined_flag=$lt_no_undefined_flag_CXX
15087
15088# Commands used to finish a libtool library installation in a directory.
15089finish_cmds=$lt_finish_cmds
15090
15091# Same as above, but a single script fragment to be evaled but not shown.
15092finish_eval=$lt_finish_eval
15093
15094# Take the output of nm and produce a listing of raw symbols and C names.
15095global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15096
15097# Transform the output of nm in a proper C declaration
15098global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15099
15100# Transform the output of nm in a C name address pair
15101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15102
15103# This is the shared library runtime path variable.
15104runpath_var=$runpath_var
15105
15106# This is the shared library path variable.
15107shlibpath_var=$shlibpath_var
15108
15109# Is shlibpath searched before the hard-coded library search path?
15110shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15111
15112# How to hardcode a shared library path into an executable.
15113hardcode_action=$hardcode_action_CXX
15114
15115# Whether we should hardcode library paths into libraries.
15116hardcode_into_libs=$hardcode_into_libs
15117
15118# Flag to hardcode \$libdir into a binary during linking.
15119# This must work even if \$libdir does not exist.
15120hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15121
15122# If ld is used when linking, flag to hardcode \$libdir into
15123# a binary during linking. This must work even if \$libdir does
15124# not exist.
15125hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15126
15127# Whether we need a single -rpath flag with a separated argument.
15128hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15129
15130# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15131# resulting binary.
15132hardcode_direct=$hardcode_direct_CXX
15133
15134# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15135# resulting binary.
15136hardcode_minus_L=$hardcode_minus_L_CXX
15137
15138# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15139# the resulting binary.
15140hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15141
15142# Set to yes if building a shared library automatically hardcodes DIR into the library
15143# and all subsequent libraries and executables linked against it.
15144hardcode_automatic=$hardcode_automatic_CXX
15145
15146# Variables whose values should be saved in libtool wrapper scripts and
15147# restored at relink time.
15148variables_saved_for_relink="$variables_saved_for_relink"
15149
15150# Whether libtool must link a program against all its dependency libraries.
15151link_all_deplibs=$link_all_deplibs_CXX
15152
15153# Compile-time system search path for libraries
15154sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15155
15156# Run-time system search path for libraries
15157sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15158
15159# Fix the shell variable \$srcfile for the compiler.
15160fix_srcfile_path="$fix_srcfile_path_CXX"
15161
15162# Set to yes if exported symbols are required.
15163always_export_symbols=$always_export_symbols_CXX
15164
15165# The commands to list exported symbols.
15166export_symbols_cmds=$lt_export_symbols_cmds_CXX
15167
15168# The commands to extract the exported symbol list from a shared archive.
15169extract_expsyms_cmds=$lt_extract_expsyms_cmds
15170
15171# Symbols that should not be listed in the preloaded symbols.
15172exclude_expsyms=$lt_exclude_expsyms_CXX
15173
15174# Symbols that must always be exported.
15175include_expsyms=$lt_include_expsyms_CXX
15176
15177# ### END LIBTOOL TAG CONFIG: $tagname
15178
15179__EOF__
15180
15181
15182else
15183  # If there is no Makefile yet, we rely on a make rule to execute
15184  # `config.status --recheck' to rerun these tests and create the
15185  # libtool script then.
15186  test -f Makefile && make "$ltmain"
15187fi
15188
15189
15190ac_ext=c
15191ac_cpp='$CPP $CPPFLAGS'
15192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15194ac_compiler_gnu=$ac_cv_c_compiler_gnu
15195
15196CC=$lt_save_CC
15197LDCXX=$LD
15198LD=$lt_save_LD
15199GCC=$lt_save_GCC
15200with_gnu_ldcxx=$with_gnu_ld
15201with_gnu_ld=$lt_save_with_gnu_ld
15202lt_cv_path_LDCXX=$lt_cv_path_LD
15203lt_cv_path_LD=$lt_save_path_LD
15204lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15205lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15206
15207	else
15208	  tagname=""
15209	fi
15210	;;
15211
15212      F77)
15213	if test -n "$F77" && test "X$F77" != "Xno"; then
15214
15215ac_ext=f
15216ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15217ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15218ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15219
15220
15221archive_cmds_need_lc_F77=no
15222allow_undefined_flag_F77=
15223always_export_symbols_F77=no
15224archive_expsym_cmds_F77=
15225export_dynamic_flag_spec_F77=
15226hardcode_direct_F77=no
15227hardcode_libdir_flag_spec_F77=
15228hardcode_libdir_flag_spec_ld_F77=
15229hardcode_libdir_separator_F77=
15230hardcode_minus_L_F77=no
15231hardcode_automatic_F77=no
15232module_cmds_F77=
15233module_expsym_cmds_F77=
15234link_all_deplibs_F77=unknown
15235old_archive_cmds_F77=$old_archive_cmds
15236no_undefined_flag_F77=
15237whole_archive_flag_spec_F77=
15238enable_shared_with_static_runtimes_F77=no
15239
15240# Source file extension for f77 test sources.
15241ac_ext=f
15242
15243# Object file extension for compiled f77 test sources.
15244objext=o
15245objext_F77=$objext
15246
15247# Code to be used in simple compile tests
15248lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15249
15250# Code to be used in simple link tests
15251lt_simple_link_test_code="      program t\n      end\n"
15252
15253# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15254
15255# If no C compiler was specified, use CC.
15256LTCC=${LTCC-"$CC"}
15257
15258# Allow CC to be a program name with arguments.
15259compiler=$CC
15260
15261
15262# Allow CC to be a program name with arguments.
15263lt_save_CC="$CC"
15264CC=${F77-"f77"}
15265compiler=$CC
15266compiler_F77=$CC
15267cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15268
15269echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15270echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15271echo "$as_me:$LINENO: result: $can_build_shared" >&5
15272echo "${ECHO_T}$can_build_shared" >&6
15273
15274echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15275echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15276test "$can_build_shared" = "no" && enable_shared=no
15277
15278# On AIX, shared libraries and static libraries use the same namespace, and
15279# are all built from PIC.
15280case "$host_os" in
15281aix3*)
15282  test "$enable_shared" = yes && enable_static=no
15283  if test -n "$RANLIB"; then
15284    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15285    postinstall_cmds='$RANLIB $lib'
15286  fi
15287  ;;
15288aix4*)
15289  test "$enable_shared" = yes && enable_static=no
15290  ;;
15291esac
15292echo "$as_me:$LINENO: result: $enable_shared" >&5
15293echo "${ECHO_T}$enable_shared" >&6
15294
15295echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15296echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15297# Make sure either enable_shared or enable_static is yes.
15298test "$enable_shared" = yes || enable_static=yes
15299echo "$as_me:$LINENO: result: $enable_static" >&5
15300echo "${ECHO_T}$enable_static" >&6
15301
15302test "$ld_shlibs_F77" = no && can_build_shared=no
15303
15304GCC_F77="$G77"
15305LD_F77="$LD"
15306
15307lt_prog_compiler_wl_F77=
15308lt_prog_compiler_pic_F77=
15309lt_prog_compiler_static_F77=
15310
15311echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15312echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15313
15314  if test "$GCC" = yes; then
15315    lt_prog_compiler_wl_F77='-Wl,'
15316    lt_prog_compiler_static_F77='-static'
15317
15318    case $host_os in
15319      aix*)
15320      # All AIX code is PIC.
15321      if test "$host_cpu" = ia64; then
15322	# AIX 5 now supports IA64 processor
15323	lt_prog_compiler_static_F77='-Bstatic'
15324      fi
15325      ;;
15326
15327    amigaos*)
15328      # FIXME: we need at least 68020 code to build shared libraries, but
15329      # adding the `-m68020' flag to GCC prevents building anything better,
15330      # like `-m68040'.
15331      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15332      ;;
15333
15334    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15335      # PIC is the default for these OSes.
15336      ;;
15337
15338    mingw* | pw32* | os2*)
15339      # This hack is so that the source file can tell whether it is being
15340      # built for inclusion in a dll (and should export symbols for example).
15341      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15342      ;;
15343
15344    darwin* | rhapsody*)
15345      # PIC is the default on this platform
15346      # Common symbols not allowed in MH_DYLIB files
15347      lt_prog_compiler_pic_F77='-fno-common'
15348      ;;
15349
15350    msdosdjgpp*)
15351      # Just because we use GCC doesn't mean we suddenly get shared libraries
15352      # on systems that don't support them.
15353      lt_prog_compiler_can_build_shared_F77=no
15354      enable_shared=no
15355      ;;
15356
15357    sysv4*MP*)
15358      if test -d /usr/nec; then
15359	lt_prog_compiler_pic_F77=-Kconform_pic
15360      fi
15361      ;;
15362
15363    hpux*)
15364      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15365      # not for PA HP-UX.
15366      case "$host_cpu" in
15367      hppa*64*|ia64*)
15368	# +Z the default
15369	;;
15370      *)
15371	lt_prog_compiler_pic_F77='-fPIC'
15372	;;
15373      esac
15374      ;;
15375
15376    *)
15377      lt_prog_compiler_pic_F77='-fPIC'
15378      ;;
15379    esac
15380  else
15381    # PORTME Check for flag to pass linker flags through the system compiler.
15382    case $host_os in
15383    aix*)
15384      lt_prog_compiler_wl_F77='-Wl,'
15385      if test "$host_cpu" = ia64; then
15386	# AIX 5 now supports IA64 processor
15387	lt_prog_compiler_static_F77='-Bstatic'
15388      else
15389	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15390      fi
15391      ;;
15392
15393    mingw* | pw32* | os2*)
15394      # This hack is so that the source file can tell whether it is being
15395      # built for inclusion in a dll (and should export symbols for example).
15396      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15397      ;;
15398
15399    hpux9* | hpux10* | hpux11*)
15400      lt_prog_compiler_wl_F77='-Wl,'
15401      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15402      # not for PA HP-UX.
15403      case "$host_cpu" in
15404      hppa*64*|ia64*)
15405	# +Z the default
15406	;;
15407      *)
15408	lt_prog_compiler_pic_F77='+Z'
15409	;;
15410      esac
15411      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15412      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15413      ;;
15414
15415    irix5* | irix6* | nonstopux*)
15416      lt_prog_compiler_wl_F77='-Wl,'
15417      # PIC (with -KPIC) is the default.
15418      lt_prog_compiler_static_F77='-non_shared'
15419      ;;
15420
15421    newsos6)
15422      lt_prog_compiler_pic_F77='-KPIC'
15423      lt_prog_compiler_static_F77='-Bstatic'
15424      ;;
15425
15426    linux*)
15427      case $CC in
15428      icc* | ecc*)
15429	lt_prog_compiler_wl_F77='-Wl,'
15430	lt_prog_compiler_pic_F77='-KPIC'
15431	lt_prog_compiler_static_F77='-static'
15432        ;;
15433      ccc*)
15434        lt_prog_compiler_wl_F77='-Wl,'
15435        # All Alpha code is PIC.
15436        lt_prog_compiler_static_F77='-non_shared'
15437        ;;
15438      esac
15439      ;;
15440
15441    osf3* | osf4* | osf5*)
15442      lt_prog_compiler_wl_F77='-Wl,'
15443      # All OSF/1 code is PIC.
15444      lt_prog_compiler_static_F77='-non_shared'
15445      ;;
15446
15447    sco3.2v5*)
15448      lt_prog_compiler_pic_F77='-Kpic'
15449      lt_prog_compiler_static_F77='-dn'
15450      ;;
15451
15452    solaris*)
15453      lt_prog_compiler_wl_F77='-Wl,'
15454      lt_prog_compiler_pic_F77='-KPIC'
15455      lt_prog_compiler_static_F77='-Bstatic'
15456      ;;
15457
15458    sunos4*)
15459      lt_prog_compiler_wl_F77='-Qoption ld '
15460      lt_prog_compiler_pic_F77='-PIC'
15461      lt_prog_compiler_static_F77='-Bstatic'
15462      ;;
15463
15464    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15465      lt_prog_compiler_wl_F77='-Wl,'
15466      lt_prog_compiler_pic_F77='-KPIC'
15467      lt_prog_compiler_static_F77='-Bstatic'
15468      ;;
15469
15470    sysv4*MP*)
15471      if test -d /usr/nec ;then
15472	lt_prog_compiler_pic_F77='-Kconform_pic'
15473	lt_prog_compiler_static_F77='-Bstatic'
15474      fi
15475      ;;
15476
15477    uts4*)
15478      lt_prog_compiler_pic_F77='-pic'
15479      lt_prog_compiler_static_F77='-Bstatic'
15480      ;;
15481
15482    *)
15483      lt_prog_compiler_can_build_shared_F77=no
15484      ;;
15485    esac
15486  fi
15487
15488echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15489echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15490
15491#
15492# Check to make sure the PIC flag actually works.
15493#
15494if test -n "$lt_prog_compiler_pic_F77"; then
15495
15496echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15497echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15498if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15499  echo $ECHO_N "(cached) $ECHO_C" >&6
15500else
15501  lt_prog_compiler_pic_works_F77=no
15502  ac_outfile=conftest.$ac_objext
15503   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15504   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15505   # Insert the option either (1) after the last *FLAGS variable, or
15506   # (2) before a word containing "conftest.", or (3) at the end.
15507   # Note that $ac_compile itself does not contain backslashes and begins
15508   # with a dollar sign (not a hyphen), so the echo should work correctly.
15509   # The option is referenced via a variable to avoid confusing sed.
15510   lt_compile=`echo "$ac_compile" | $SED \
15511   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15512   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15513   -e 's:$: $lt_compiler_flag:'`
15514   (eval echo "\"\$as_me:15514: $lt_compile\"" >&5)
15515   (eval "$lt_compile" 2>conftest.err)
15516   ac_status=$?
15517   cat conftest.err >&5
15518   echo "$as_me:15518: \$? = $ac_status" >&5
15519   if (exit $ac_status) && test -s "$ac_outfile"; then
15520     # The compiler can only warn and ignore the option if not recognized
15521     # So say no if there are warnings
15522     if test ! -s conftest.err; then
15523       lt_prog_compiler_pic_works_F77=yes
15524     fi
15525   fi
15526   $rm conftest*
15527
15528fi
15529echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15530echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15531
15532if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15533    case $lt_prog_compiler_pic_F77 in
15534     "" | " "*) ;;
15535     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15536     esac
15537else
15538    lt_prog_compiler_pic_F77=
15539     lt_prog_compiler_can_build_shared_F77=no
15540fi
15541
15542fi
15543case "$host_os" in
15544  # For platforms which do not support PIC, -DPIC is meaningless:
15545  *djgpp*)
15546    lt_prog_compiler_pic_F77=
15547    ;;
15548  *)
15549    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15550    ;;
15551esac
15552
15553echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15554echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15555if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15556  echo $ECHO_N "(cached) $ECHO_C" >&6
15557else
15558  lt_cv_prog_compiler_c_o_F77=no
15559   $rm -r conftest 2>/dev/null
15560   mkdir conftest
15561   cd conftest
15562   mkdir out
15563   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15564
15565   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15566   # that will create temporary files in the current directory regardless of
15567   # the output directory.  Thus, making CWD read-only will cause this test
15568   # to fail, enabling locking or at least warning the user not to do parallel
15569   # builds.
15570   chmod -w .
15571
15572   lt_compiler_flag="-o out/conftest2.$ac_objext"
15573   # Insert the option either (1) after the last *FLAGS variable, or
15574   # (2) before a word containing "conftest.", or (3) at the end.
15575   # Note that $ac_compile itself does not contain backslashes and begins
15576   # with a dollar sign (not a hyphen), so the echo should work correctly.
15577   lt_compile=`echo "$ac_compile" | $SED \
15578   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15579   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15580   -e 's:$: $lt_compiler_flag:'`
15581   (eval echo "\"\$as_me:15581: $lt_compile\"" >&5)
15582   (eval "$lt_compile" 2>out/conftest.err)
15583   ac_status=$?
15584   cat out/conftest.err >&5
15585   echo "$as_me:15585: \$? = $ac_status" >&5
15586   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15587   then
15588     # The compiler can only warn and ignore the option if not recognized
15589     # So say no if there are warnings
15590     if test ! -s out/conftest.err; then
15591       lt_cv_prog_compiler_c_o_F77=yes
15592     fi
15593   fi
15594   chmod u+w .
15595   $rm conftest* out/*
15596   rmdir out
15597   cd ..
15598   rmdir conftest
15599   $rm conftest*
15600
15601fi
15602echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15603echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15604
15605
15606hard_links="nottested"
15607if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15608  # do not overwrite the value of need_locks provided by the user
15609  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15610echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15611  hard_links=yes
15612  $rm conftest*
15613  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15614  touch conftest.a
15615  ln conftest.a conftest.b 2>&5 || hard_links=no
15616  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15617  echo "$as_me:$LINENO: result: $hard_links" >&5
15618echo "${ECHO_T}$hard_links" >&6
15619  if test "$hard_links" = no; then
15620    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15621echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15622    need_locks=warn
15623  fi
15624else
15625  need_locks=no
15626fi
15627
15628echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15629echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15630
15631  runpath_var=
15632  allow_undefined_flag_F77=
15633  enable_shared_with_static_runtimes_F77=no
15634  archive_cmds_F77=
15635  archive_expsym_cmds_F77=
15636  old_archive_From_new_cmds_F77=
15637  old_archive_from_expsyms_cmds_F77=
15638  export_dynamic_flag_spec_F77=
15639  whole_archive_flag_spec_F77=
15640  thread_safe_flag_spec_F77=
15641  hardcode_libdir_flag_spec_F77=
15642  hardcode_libdir_flag_spec_ld_F77=
15643  hardcode_libdir_separator_F77=
15644  hardcode_direct_F77=no
15645  hardcode_minus_L_F77=no
15646  hardcode_shlibpath_var_F77=unsupported
15647  link_all_deplibs_F77=unknown
15648  hardcode_automatic_F77=no
15649  module_cmds_F77=
15650  module_expsym_cmds_F77=
15651  always_export_symbols_F77=no
15652  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15653  # include_expsyms should be a list of space-separated symbols to be *always*
15654  # included in the symbol list
15655  include_expsyms_F77=
15656  # exclude_expsyms can be an extended regexp of symbols to exclude
15657  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15658  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15659  # as well as any symbol that contains `d'.
15660  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15661  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15662  # platforms (ab)use it in PIC code, but their linkers get confused if
15663  # the symbol is explicitly referenced.  Since portable code cannot
15664  # rely on this symbol name, it's probably fine to never include it in
15665  # preloaded symbol tables.
15666  extract_expsyms_cmds=
15667
15668  case $host_os in
15669  cygwin* | mingw* | pw32*)
15670    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15671    # When not using gcc, we currently assume that we are using
15672    # Microsoft Visual C++.
15673    if test "$GCC" != yes; then
15674      with_gnu_ld=no
15675    fi
15676    ;;
15677  openbsd*)
15678    with_gnu_ld=no
15679    ;;
15680  esac
15681
15682  ld_shlibs_F77=yes
15683  if test "$with_gnu_ld" = yes; then
15684    # If archive_cmds runs LD, not CC, wlarc should be empty
15685    wlarc='${wl}'
15686
15687    # See if GNU ld supports shared libraries.
15688    case $host_os in
15689    aix3* | aix4* | aix5*)
15690      # On AIX/PPC, the GNU linker is very broken
15691      if test "$host_cpu" != ia64; then
15692	ld_shlibs_F77=no
15693	cat <<EOF 1>&2
15694
15695*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15696*** to be unable to reliably create shared libraries on AIX.
15697*** Therefore, libtool is disabling shared libraries support.  If you
15698*** really care for shared libraries, you may want to modify your PATH
15699*** so that a non-GNU linker is found, and then restart.
15700
15701EOF
15702      fi
15703      ;;
15704
15705    amigaos*)
15706      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)'
15707      hardcode_libdir_flag_spec_F77='-L$libdir'
15708      hardcode_minus_L_F77=yes
15709
15710      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15711      # that the semantics of dynamic libraries on AmigaOS, at least up
15712      # to version 4, is to share data among multiple programs linked
15713      # with the same dynamic library.  Since this doesn't match the
15714      # behavior of shared libraries on other platforms, we can't use
15715      # them.
15716      ld_shlibs_F77=no
15717      ;;
15718
15719    beos*)
15720      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15721	allow_undefined_flag_F77=unsupported
15722	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15723	# support --undefined.  This deserves some investigation.  FIXME
15724	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15725      else
15726	ld_shlibs_F77=no
15727      fi
15728      ;;
15729
15730    cygwin* | mingw* | pw32*)
15731      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15732      # as there is no search path for DLLs.
15733      hardcode_libdir_flag_spec_F77='-L$libdir'
15734      allow_undefined_flag_F77=no
15735      always_export_symbols_F77=no
15736      enable_shared_with_static_runtimes_F77=yes
15737      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15738
15739      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15740        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15741	# If the export-symbols file already is a .def file (1st line
15742	# is EXPORTS), use it as is; otherwise, prepend...
15743	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15744	  cp $export_symbols $output_objdir/$soname.def;
15745	else
15746	  echo EXPORTS > $output_objdir/$soname.def;
15747	  cat $export_symbols >> $output_objdir/$soname.def;
15748	fi~
15749	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15750      else
15751	ld_shlibs=no
15752      fi
15753      ;;
15754
15755    netbsd*)
15756      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15757	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15758	wlarc=
15759      else
15760	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15761	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15762      fi
15763      ;;
15764
15765    solaris* | sysv5*)
15766      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15767	ld_shlibs_F77=no
15768	cat <<EOF 1>&2
15769
15770*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15771*** create shared libraries on Solaris systems.  Therefore, libtool
15772*** is disabling shared libraries support.  We urge you to upgrade GNU
15773*** binutils to release 2.9.1 or newer.  Another option is to modify
15774*** your PATH or compiler configuration so that the native linker is
15775*** used, and then restart.
15776
15777EOF
15778      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15779	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15780	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15781      else
15782	ld_shlibs_F77=no
15783      fi
15784      ;;
15785
15786    sunos4*)
15787      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15788      wlarc=
15789      hardcode_direct_F77=yes
15790      hardcode_shlibpath_var_F77=no
15791      ;;
15792
15793    *)
15794      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15795	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15796	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15797      else
15798	ld_shlibs_F77=no
15799      fi
15800      ;;
15801    esac
15802
15803    if test "$ld_shlibs_F77" = yes; then
15804      runpath_var=LD_RUN_PATH
15805      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15806      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15807      # ancient GNU ld didn't support --whole-archive et. al.
15808      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15809 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15810      else
15811  	whole_archive_flag_spec_F77=
15812      fi
15813    fi
15814  else
15815    # PORTME fill in a description of your system's linker (not GNU ld)
15816    case $host_os in
15817    aix3*)
15818      allow_undefined_flag_F77=unsupported
15819      always_export_symbols_F77=yes
15820      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'
15821      # Note: this linker hardcodes the directories in LIBPATH if there
15822      # are no directories specified by -L.
15823      hardcode_minus_L_F77=yes
15824      if test "$GCC" = yes && test -z "$link_static_flag"; then
15825	# Neither direct hardcoding nor static linking is supported with a
15826	# broken collect2.
15827	hardcode_direct_F77=unsupported
15828      fi
15829      ;;
15830
15831    aix4* | aix5*)
15832      if test "$host_cpu" = ia64; then
15833	# On IA64, the linker does run time linking by default, so we don't
15834	# have to do anything special.
15835	aix_use_runtimelinking=no
15836	exp_sym_flag='-Bexport'
15837	no_entry_flag=""
15838      else
15839	# If we're using GNU nm, then we don't want the "-C" option.
15840	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15841	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15842	  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'
15843	else
15844	  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'
15845	fi
15846
15847	# KDE requires run time linking.  Make it the default.
15848	aix_use_runtimelinking=yes
15849	exp_sym_flag='-bexport'
15850	no_entry_flag='-bnoentry'
15851      fi
15852
15853      # When large executables or shared objects are built, AIX ld can
15854      # have problems creating the table of contents.  If linking a library
15855      # or program results in "error TOC overflow" add -mminimal-toc to
15856      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15857      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15858
15859      archive_cmds_F77=''
15860      hardcode_direct_F77=yes
15861      hardcode_libdir_separator_F77=':'
15862      link_all_deplibs_F77=yes
15863
15864      if test "$GCC" = yes; then
15865	case $host_os in aix4.012|aix4.012.*)
15866	# We only want to do this on AIX 4.2 and lower, the check
15867	# below for broken collect2 doesn't work under 4.3+
15868	  collect2name=`${CC} -print-prog-name=collect2`
15869	  if test -f "$collect2name" && \
15870  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15871	  then
15872  	  # We have reworked collect2
15873  	  hardcode_direct_F77=yes
15874	  else
15875  	  # We have old collect2
15876  	  hardcode_direct_F77=unsupported
15877  	  # It fails to find uninstalled libraries when the uninstalled
15878  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15879  	  # to unsupported forces relinking
15880  	  hardcode_minus_L_F77=yes
15881  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15882  	  hardcode_libdir_separator_F77=
15883	  fi
15884	esac
15885	shared_flag='-shared'
15886      else
15887	# not using gcc
15888	if test "$host_cpu" = ia64; then
15889  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15890  	# chokes on -Wl,-G. The following line is correct:
15891	  shared_flag='-G'
15892	else
15893  	if test "$aix_use_runtimelinking" = yes; then
15894	    shared_flag='-qmkshrobj ${wl}-G'
15895	  else
15896	    shared_flag='-qmkshrobj'
15897  	fi
15898	fi
15899      fi
15900
15901      # Let the compiler handle the export list.
15902      always_export_symbols_F77=no
15903      if test "$aix_use_runtimelinking" = yes; then
15904	# Warning - without using the other runtime loading flags (-brtl),
15905	# -berok will link without error, but may produce a broken library.
15906	allow_undefined_flag_F77='-berok'
15907       # Determine the default libpath from the value encoded in an empty executable.
15908	cat >conftest.$ac_ext <<_ACEOF
15909      program main
15910
15911      end
15912_ACEOF
15913rm -f conftest.$ac_objext conftest$ac_exeext
15914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15915  (eval $ac_link) 2>conftest.er1
15916  ac_status=$?
15917  grep -v '^ *+' conftest.er1 >conftest.err
15918  rm -f conftest.er1
15919  cat conftest.err >&5
15920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921  (exit $ac_status); } &&
15922	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
15923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924  (eval $ac_try) 2>&5
15925  ac_status=$?
15926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927  (exit $ac_status); }; } &&
15928	 { ac_try='test -s conftest$ac_exeext'
15929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930  (eval $ac_try) 2>&5
15931  ac_status=$?
15932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933  (exit $ac_status); }; }; then
15934
15935aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15936}'`
15937# Check for a 64-bit object if we didn't find anything.
15938if 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; }
15939}'`; fi
15940else
15941  echo "$as_me: failed program was:" >&5
15942sed 's/^/| /' conftest.$ac_ext >&5
15943
15944fi
15945rm -f conftest.err conftest.$ac_objext \
15946      conftest$ac_exeext conftest.$ac_ext
15947if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15948
15949	hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15950	archive_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
15951	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15952       else
15953	if test "$host_cpu" = ia64; then
15954	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15955	  allow_undefined_flag_F77="-z nodefs"
15956	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15957	else
15958	 # Determine the default libpath from the value encoded in an empty executable.
15959	 cat >conftest.$ac_ext <<_ACEOF
15960      program main
15961
15962      end
15963_ACEOF
15964rm -f conftest.$ac_objext conftest$ac_exeext
15965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15966  (eval $ac_link) 2>conftest.er1
15967  ac_status=$?
15968  grep -v '^ *+' conftest.er1 >conftest.err
15969  rm -f conftest.er1
15970  cat conftest.err >&5
15971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972  (exit $ac_status); } &&
15973	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
15974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975  (eval $ac_try) 2>&5
15976  ac_status=$?
15977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978  (exit $ac_status); }; } &&
15979	 { ac_try='test -s conftest$ac_exeext'
15980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981  (eval $ac_try) 2>&5
15982  ac_status=$?
15983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984  (exit $ac_status); }; }; then
15985
15986aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15987}'`
15988# Check for a 64-bit object if we didn't find anything.
15989if 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; }
15990}'`; fi
15991else
15992  echo "$as_me: failed program was:" >&5
15993sed 's/^/| /' conftest.$ac_ext >&5
15994
15995fi
15996rm -f conftest.err conftest.$ac_objext \
15997      conftest$ac_exeext conftest.$ac_ext
15998if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15999
16000	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16001	  # Warning - without using the other run time loading flags,
16002	  # -berok will link without error, but may produce a broken library.
16003	  no_undefined_flag_F77=' ${wl}-bernotok'
16004	  allow_undefined_flag_F77=' ${wl}-berok'
16005	  # -bexpall does not export symbols beginning with underscore (_)
16006	  always_export_symbols_F77=yes
16007	  # Exported symbols can be pulled into shared objects from archives
16008	  whole_archive_flag_spec_F77=' '
16009	  archive_cmds_need_lc_F77=yes
16010	  # This is similar to how AIX traditionally builds it's shared libraries.
16011	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16012	fi
16013      fi
16014      ;;
16015
16016    amigaos*)
16017      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)'
16018      hardcode_libdir_flag_spec_F77='-L$libdir'
16019      hardcode_minus_L_F77=yes
16020      # see comment about different semantics on the GNU ld section
16021      ld_shlibs_F77=no
16022      ;;
16023
16024    bsdi4*)
16025      export_dynamic_flag_spec_F77=-rdynamic
16026      ;;
16027
16028    cygwin* | mingw* | pw32*)
16029      # When not using gcc, we currently assume that we are using
16030      # Microsoft Visual C++.
16031      # hardcode_libdir_flag_spec is actually meaningless, as there is
16032      # no search path for DLLs.
16033      hardcode_libdir_flag_spec_F77=' '
16034      allow_undefined_flag_F77=no
16035      # Tell ltmain to make .lib files, not .a files.
16036      libext=lib
16037      # Tell ltmain to make .dll files, not .so files.
16038      shrext=".dll"
16039      # FIXME: Setting linknames here is a bad hack.
16040      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16041      # The linker will automatically build a .lib file if we build a DLL.
16042      old_archive_From_new_cmds_F77='true'
16043      # FIXME: Should let the user specify the lib program.
16044      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16045      fix_srcfile_path='`cygpath -w "$srcfile"`'
16046      enable_shared_with_static_runtimes_F77=yes
16047      ;;
16048
16049    darwin* | rhapsody*)
16050    if test "$GXX" = yes ; then
16051      archive_cmds_need_lc_F77=no
16052      case "$host_os" in
16053      rhapsody* | darwin1.[012])
16054	allow_undefined_flag_F77='-undefined suppress'
16055	;;
16056      *) # Darwin 1.3 on
16057	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
16058	;;
16059      esac
16060    	lt_int_apple_cc_single_mod=no
16061    	output_verbose_link_cmd='echo'
16062    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16063    	  lt_int_apple_cc_single_mod=yes
16064    	fi
16065    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16066    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16067    	else
16068        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16069      fi
16070      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16071      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16072        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16073          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16074        else
16075          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16076        fi
16077          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}'
16078      hardcode_direct_F77=no
16079      hardcode_automatic_F77=yes
16080      hardcode_shlibpath_var_F77=unsupported
16081      whole_archive_flag_spec_F77='-all_load $convenience'
16082      link_all_deplibs_F77=yes
16083    else
16084      ld_shlibs_F77=no
16085    fi
16086      ;;
16087
16088    dgux*)
16089      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16090      hardcode_libdir_flag_spec_F77='-L$libdir'
16091      hardcode_shlibpath_var_F77=no
16092      ;;
16093
16094    freebsd1*)
16095      ld_shlibs_F77=no
16096      ;;
16097
16098    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16099    # support.  Future versions do this automatically, but an explicit c++rt0.o
16100    # does not break anything, and helps significantly (at the cost of a little
16101    # extra space).
16102    freebsd2.2*)
16103      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16104      hardcode_libdir_flag_spec_F77='-R$libdir'
16105      hardcode_direct_F77=yes
16106      hardcode_shlibpath_var_F77=no
16107      ;;
16108
16109    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16110    freebsd2*)
16111      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16112      hardcode_direct_F77=yes
16113      hardcode_minus_L_F77=yes
16114      hardcode_shlibpath_var_F77=no
16115      ;;
16116
16117    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16118    freebsd*)
16119      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16120      hardcode_libdir_flag_spec_F77='-R$libdir'
16121      hardcode_direct_F77=yes
16122      hardcode_shlibpath_var_F77=no
16123      ;;
16124
16125    hpux9*)
16126      if test "$GCC" = yes; then
16127	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'
16128      else
16129	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'
16130      fi
16131      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16132      hardcode_libdir_separator_F77=:
16133      hardcode_direct_F77=yes
16134
16135      # hardcode_minus_L: Not really in the search PATH,
16136      # but as the default location of the library.
16137      hardcode_minus_L_F77=yes
16138      export_dynamic_flag_spec_F77='${wl}-E'
16139      ;;
16140
16141    hpux10* | hpux11*)
16142      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16143	case "$host_cpu" in
16144	hppa*64*|ia64*)
16145	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16146	  ;;
16147	*)
16148	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16149	  ;;
16150	esac
16151      else
16152	case "$host_cpu" in
16153	hppa*64*|ia64*)
16154	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16155	  ;;
16156	*)
16157	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16158	  ;;
16159	esac
16160      fi
16161      if test "$with_gnu_ld" = no; then
16162	case "$host_cpu" in
16163	hppa*64*)
16164	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16165	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16166	  hardcode_libdir_separator_F77=:
16167	  hardcode_direct_F77=no
16168	  hardcode_shlibpath_var_F77=no
16169	  ;;
16170	ia64*)
16171	  hardcode_libdir_flag_spec_F77='-L$libdir'
16172	  hardcode_direct_F77=no
16173	  hardcode_shlibpath_var_F77=no
16174
16175	  # hardcode_minus_L: Not really in the search PATH,
16176	  # but as the default location of the library.
16177	  hardcode_minus_L_F77=yes
16178	  ;;
16179	*)
16180	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16181	  hardcode_libdir_separator_F77=:
16182	  hardcode_direct_F77=yes
16183	  export_dynamic_flag_spec_F77='${wl}-E'
16184
16185	  # hardcode_minus_L: Not really in the search PATH,
16186	  # but as the default location of the library.
16187	  hardcode_minus_L_F77=yes
16188	  ;;
16189	esac
16190      fi
16191      ;;
16192
16193    irix5* | irix6* | nonstopux*)
16194      if test "$GCC" = yes; then
16195	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'
16196      else
16197	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'
16198	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16199      fi
16200      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16201      hardcode_libdir_separator_F77=:
16202      link_all_deplibs_F77=yes
16203      ;;
16204
16205    netbsd*)
16206      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16207	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16208      else
16209	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16210      fi
16211      hardcode_libdir_flag_spec_F77='-R$libdir'
16212      hardcode_direct_F77=yes
16213      hardcode_shlibpath_var_F77=no
16214      ;;
16215
16216    newsos6)
16217      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16218      hardcode_direct_F77=yes
16219      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16220      hardcode_libdir_separator_F77=:
16221      hardcode_shlibpath_var_F77=no
16222      ;;
16223
16224    openbsd*)
16225      hardcode_direct_F77=yes
16226      hardcode_shlibpath_var_F77=no
16227      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16228	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16229	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16230	export_dynamic_flag_spec_F77='${wl}-E'
16231      else
16232       case $host_os in
16233	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16234	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16235	   hardcode_libdir_flag_spec_F77='-R$libdir'
16236	   ;;
16237	 *)
16238	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16239	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16240	   ;;
16241       esac
16242      fi
16243      ;;
16244
16245    os2*)
16246      hardcode_libdir_flag_spec_F77='-L$libdir'
16247      hardcode_minus_L_F77=yes
16248      allow_undefined_flag_F77=unsupported
16249      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'
16250      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16251      ;;
16252
16253    osf3*)
16254      if test "$GCC" = yes; then
16255	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16256	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'
16257      else
16258	allow_undefined_flag_F77=' -expect_unresolved \*'
16259	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'
16260      fi
16261      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16262      hardcode_libdir_separator_F77=:
16263      ;;
16264
16265    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16266      if test "$GCC" = yes; then
16267	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16268	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'
16269	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16270      else
16271	allow_undefined_flag_F77=' -expect_unresolved \*'
16272	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'
16273	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~
16274	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16275
16276	# Both c and cxx compiler support -rpath directly
16277	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16278      fi
16279      hardcode_libdir_separator_F77=:
16280      ;;
16281
16282    sco3.2v5*)
16283      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16284      hardcode_shlibpath_var_F77=no
16285      export_dynamic_flag_spec_F77='${wl}-Bexport'
16286      runpath_var=LD_RUN_PATH
16287      hardcode_runpath_var=yes
16288      ;;
16289
16290    solaris*)
16291      no_undefined_flag_F77=' -z text'
16292      if test "$GCC" = yes; then
16293	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16294	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16295	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16296      else
16297	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16298	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16299  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16300      fi
16301      hardcode_libdir_flag_spec_F77='-R$libdir'
16302      hardcode_shlibpath_var_F77=no
16303      case $host_os in
16304      solaris2.[0-5] | solaris2.[0-5].*) ;;
16305      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16306	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16307      esac
16308      link_all_deplibs_F77=yes
16309      ;;
16310
16311    sunos4*)
16312      if test "x$host_vendor" = xsequent; then
16313	# Use $CC to link under sequent, because it throws in some extra .o
16314	# files that make .init and .fini sections work.
16315	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16316      else
16317	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16318      fi
16319      hardcode_libdir_flag_spec_F77='-L$libdir'
16320      hardcode_direct_F77=yes
16321      hardcode_minus_L_F77=yes
16322      hardcode_shlibpath_var_F77=no
16323      ;;
16324
16325    sysv4)
16326      case $host_vendor in
16327	sni)
16328	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329	  hardcode_direct_F77=yes # is this really true???
16330	;;
16331	siemens)
16332	  ## LD is ld it makes a PLAMLIB
16333	  ## CC just makes a GrossModule.
16334	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16335	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16336	  hardcode_direct_F77=no
16337        ;;
16338	motorola)
16339	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16340	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16341	;;
16342      esac
16343      runpath_var='LD_RUN_PATH'
16344      hardcode_shlibpath_var_F77=no
16345      ;;
16346
16347    sysv4.3*)
16348      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16349      hardcode_shlibpath_var_F77=no
16350      export_dynamic_flag_spec_F77='-Bexport'
16351      ;;
16352
16353    sysv4*MP*)
16354      if test -d /usr/nec; then
16355	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16356	hardcode_shlibpath_var_F77=no
16357	runpath_var=LD_RUN_PATH
16358	hardcode_runpath_var=yes
16359	ld_shlibs_F77=yes
16360      fi
16361      ;;
16362
16363    sysv4.2uw2*)
16364      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16365      hardcode_direct_F77=yes
16366      hardcode_minus_L_F77=no
16367      hardcode_shlibpath_var_F77=no
16368      hardcode_runpath_var=yes
16369      runpath_var=LD_RUN_PATH
16370      ;;
16371
16372   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16373      no_undefined_flag_F77='${wl}-z ${wl}text'
16374      if test "$GCC" = yes; then
16375	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16376      else
16377	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16378      fi
16379      runpath_var='LD_RUN_PATH'
16380      hardcode_shlibpath_var_F77=no
16381      ;;
16382
16383    sysv5*)
16384      no_undefined_flag_F77=' -z text'
16385      # $CC -shared without GNU ld will not create a library from C++
16386      # object files and a static libstdc++, better avoid it by now
16387      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16388      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16389  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16390      hardcode_libdir_flag_spec_F77=
16391      hardcode_shlibpath_var_F77=no
16392      runpath_var='LD_RUN_PATH'
16393      ;;
16394
16395    uts4*)
16396      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16397      hardcode_libdir_flag_spec_F77='-L$libdir'
16398      hardcode_shlibpath_var_F77=no
16399      ;;
16400
16401    *)
16402      ld_shlibs_F77=no
16403      ;;
16404    esac
16405  fi
16406
16407echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16408echo "${ECHO_T}$ld_shlibs_F77" >&6
16409test "$ld_shlibs_F77" = no && can_build_shared=no
16410
16411variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16412if test "$GCC" = yes; then
16413  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16414fi
16415
16416#
16417# Do we need to explicitly link libc?
16418#
16419case "x$archive_cmds_need_lc_F77" in
16420x|xyes)
16421  # Assume -lc should be added
16422  archive_cmds_need_lc_F77=yes
16423
16424  if test "$enable_shared" = yes && test "$GCC" = yes; then
16425    case $archive_cmds_F77 in
16426    *'~'*)
16427      # FIXME: we may have to deal with multi-command sequences.
16428      ;;
16429    '$CC '*)
16430      # Test whether the compiler implicitly links with -lc since on some
16431      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16432      # to ld, don't add -lc before -lgcc.
16433      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16434echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16435      $rm conftest*
16436      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16437
16438      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16439  (eval $ac_compile) 2>&5
16440  ac_status=$?
16441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442  (exit $ac_status); } 2>conftest.err; then
16443        soname=conftest
16444        lib=conftest
16445        libobjs=conftest.$ac_objext
16446        deplibs=
16447        wl=$lt_prog_compiler_wl_F77
16448        compiler_flags=-v
16449        linker_flags=-v
16450        verstring=
16451        output_objdir=.
16452        libname=conftest
16453        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16454        allow_undefined_flag_F77=
16455        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16456  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16457  ac_status=$?
16458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459  (exit $ac_status); }
16460        then
16461	  archive_cmds_need_lc_F77=no
16462        else
16463	  archive_cmds_need_lc_F77=yes
16464        fi
16465        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16466      else
16467        cat conftest.err 1>&5
16468      fi
16469      $rm conftest*
16470      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16471echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16472      ;;
16473    esac
16474  fi
16475  ;;
16476esac
16477
16478echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16479echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16480library_names_spec=
16481libname_spec='lib$name'
16482soname_spec=
16483shrext=".so"
16484postinstall_cmds=
16485postuninstall_cmds=
16486finish_cmds=
16487finish_eval=
16488shlibpath_var=
16489shlibpath_overrides_runpath=unknown
16490version_type=none
16491dynamic_linker="$host_os ld.so"
16492sys_lib_dlsearch_path_spec="/lib /usr/lib"
16493sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16494need_lib_prefix=unknown
16495hardcode_into_libs=no
16496
16497# when you set need_version to no, make sure it does not cause -set_version
16498# flags to be left without arguments
16499need_version=unknown
16500
16501case $host_os in
16502aix3*)
16503  version_type=linux
16504  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16505  shlibpath_var=LIBPATH
16506
16507  # AIX 3 has no versioning support, so we append a major version to the name.
16508  soname_spec='${libname}${release}${shared_ext}$major'
16509  ;;
16510
16511aix4* | aix5*)
16512  version_type=linux
16513  need_lib_prefix=no
16514  need_version=no
16515  hardcode_into_libs=yes
16516  if test "$host_cpu" = ia64; then
16517    # AIX 5 supports IA64
16518    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16519    shlibpath_var=LD_LIBRARY_PATH
16520  else
16521    # With GCC up to 2.95.x, collect2 would create an import file
16522    # for dependence libraries.  The import file would start with
16523    # the line `#! .'.  This would cause the generated library to
16524    # depend on `.', always an invalid library.  This was fixed in
16525    # development snapshots of GCC prior to 3.0.
16526    case $host_os in
16527      aix4 | aix4.[01] | aix4.[01].*)
16528      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16529	   echo ' yes '
16530	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16531	:
16532      else
16533	can_build_shared=no
16534      fi
16535      ;;
16536    esac
16537    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16538    # soname into executable. Probably we can add versioning support to
16539    # collect2, so additional links can be useful in future.
16540    if test "$aix_use_runtimelinking" = yes; then
16541      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16542      # instead of lib<name>.a to let people know that these are not
16543      # typical AIX shared libraries.
16544      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16545    else
16546      # We preserve .a as extension for shared libraries through AIX4.2
16547      # and later when we are not doing run time linking.
16548      library_names_spec='${libname}${release}.a $libname.a'
16549      soname_spec='${libname}${release}${shared_ext}$major'
16550    fi
16551    shlibpath_var=LIBPATH
16552  fi
16553  ;;
16554
16555amigaos*)
16556  library_names_spec='$libname.ixlibrary $libname.a'
16557  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16558  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'
16559  ;;
16560
16561beos*)
16562  library_names_spec='${libname}${shared_ext}'
16563  dynamic_linker="$host_os ld.so"
16564  shlibpath_var=LIBRARY_PATH
16565  ;;
16566
16567bsdi4*)
16568  version_type=linux
16569  need_version=no
16570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571  soname_spec='${libname}${release}${shared_ext}$major'
16572  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16573  shlibpath_var=LD_LIBRARY_PATH
16574  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16575  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16576  # the default ld.so.conf also contains /usr/contrib/lib and
16577  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16578  # libtool to hard-code these into programs
16579  ;;
16580
16581cygwin* | mingw* | pw32*)
16582  version_type=windows
16583  shrext=".dll"
16584  need_version=no
16585  need_lib_prefix=no
16586
16587  case $GCC,$host_os in
16588  yes,cygwin* | yes,mingw* | yes,pw32*)
16589    library_names_spec='$libname.dll.a'
16590    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16591    postinstall_cmds='base_file=`basename \${file}`~
16592      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16593      dldir=$destdir/`dirname \$dlpath`~
16594      test -d \$dldir || mkdir -p \$dldir~
16595      $install_prog $dir/$dlname \$dldir/$dlname'
16596    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16597      dlpath=$dir/\$dldll~
16598       $rm \$dlpath'
16599    shlibpath_overrides_runpath=yes
16600
16601    case $host_os in
16602    cygwin*)
16603      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16604      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16605      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16606      ;;
16607    mingw*)
16608      # MinGW DLLs use traditional 'lib' prefix
16609      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16610      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16611      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16612        # It is most probably a Windows format PATH printed by
16613        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16614        # path with ; separators, and with drive letters. We can handle the
16615        # drive letters (cygwin fileutils understands them), so leave them,
16616        # especially as we might pass files found there to a mingw objdump,
16617        # which wouldn't understand a cygwinified path. Ahh.
16618        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16619      else
16620        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16621      fi
16622      ;;
16623    pw32*)
16624      # pw32 DLLs use 'pw' prefix rather than 'lib'
16625      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16626      ;;
16627    esac
16628    ;;
16629
16630  *)
16631    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16632    ;;
16633  esac
16634  dynamic_linker='Win32 ld.exe'
16635  # FIXME: first we should search . and the directory the executable is in
16636  shlibpath_var=PATH
16637  ;;
16638
16639darwin* | rhapsody*)
16640  dynamic_linker="$host_os dyld"
16641  version_type=darwin
16642  need_lib_prefix=no
16643  need_version=no
16644  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16645  soname_spec='${libname}${release}${major}$shared_ext'
16646  shlibpath_overrides_runpath=yes
16647  shlibpath_var=DYLD_LIBRARY_PATH
16648  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16649  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16650  if test "$GCC" = yes; then
16651    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"`
16652  else
16653    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16654  fi
16655  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16656  ;;
16657
16658dgux*)
16659  version_type=linux
16660  need_lib_prefix=no
16661  need_version=no
16662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16663  soname_spec='${libname}${release}${shared_ext}$major'
16664  shlibpath_var=LD_LIBRARY_PATH
16665  ;;
16666
16667freebsd1*)
16668  dynamic_linker=no
16669  ;;
16670
16671freebsd*-gnu*)
16672  version_type=linux
16673  need_lib_prefix=no
16674  need_version=no
16675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16676  soname_spec='${libname}${release}${shared_ext}$major'
16677  shlibpath_var=LD_LIBRARY_PATH
16678  shlibpath_overrides_runpath=no
16679  hardcode_into_libs=yes
16680  dynamic_linker='GNU ld.so'
16681  ;;
16682
16683freebsd*)
16684  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16685  version_type=freebsd-$objformat
16686  case $version_type in
16687    freebsd-elf*)
16688      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16689      need_version=no
16690      need_lib_prefix=no
16691      ;;
16692    freebsd-*)
16693      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16694      need_version=yes
16695      ;;
16696  esac
16697  shlibpath_var=LD_LIBRARY_PATH
16698  case $host_os in
16699  freebsd2*)
16700    shlibpath_overrides_runpath=yes
16701    ;;
16702  freebsd3.01* | freebsdelf3.01*)
16703    shlibpath_overrides_runpath=yes
16704    hardcode_into_libs=yes
16705    ;;
16706  *) # from 3.2 on
16707    shlibpath_overrides_runpath=no
16708    hardcode_into_libs=yes
16709    ;;
16710  esac
16711  ;;
16712
16713gnu*)
16714  version_type=linux
16715  need_lib_prefix=no
16716  need_version=no
16717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16718  soname_spec='${libname}${release}${shared_ext}$major'
16719  shlibpath_var=LD_LIBRARY_PATH
16720  hardcode_into_libs=yes
16721  ;;
16722
16723hpux9* | hpux10* | hpux11*)
16724  # Give a soname corresponding to the major version so that dld.sl refuses to
16725  # link against other versions.
16726  version_type=sunos
16727  need_lib_prefix=no
16728  need_version=no
16729  case "$host_cpu" in
16730  ia64*)
16731    shrext='.so'
16732    hardcode_into_libs=yes
16733    dynamic_linker="$host_os dld.so"
16734    shlibpath_var=LD_LIBRARY_PATH
16735    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16736    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737    soname_spec='${libname}${release}${shared_ext}$major'
16738    if test "X$HPUX_IA64_MODE" = X32; then
16739      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16740    else
16741      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16742    fi
16743    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16744    ;;
16745   hppa*64*)
16746     shrext='.sl'
16747     hardcode_into_libs=yes
16748     dynamic_linker="$host_os dld.sl"
16749     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16750     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16751     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16752     soname_spec='${libname}${release}${shared_ext}$major'
16753     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16754     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16755     ;;
16756   *)
16757    shrext='.sl'
16758    dynamic_linker="$host_os dld.sl"
16759    shlibpath_var=SHLIB_PATH
16760    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16761    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762    soname_spec='${libname}${release}${shared_ext}$major'
16763    ;;
16764  esac
16765  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16766  postinstall_cmds='chmod 555 $lib'
16767  ;;
16768
16769irix5* | irix6* | nonstopux*)
16770  case $host_os in
16771    nonstopux*) version_type=nonstopux ;;
16772    *)
16773	if test "$lt_cv_prog_gnu_ld" = yes; then
16774		version_type=linux
16775	else
16776		version_type=irix
16777	fi ;;
16778  esac
16779  need_lib_prefix=no
16780  need_version=no
16781  soname_spec='${libname}${release}${shared_ext}$major'
16782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16783  case $host_os in
16784  irix5* | nonstopux*)
16785    libsuff= shlibsuff=
16786    ;;
16787  *)
16788    case $LD in # libtool.m4 will add one of these switches to LD
16789    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16790      libsuff= shlibsuff= libmagic=32-bit;;
16791    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16792      libsuff=32 shlibsuff=N32 libmagic=N32;;
16793    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16794      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16795    *) libsuff= shlibsuff= libmagic=never-match;;
16796    esac
16797    ;;
16798  esac
16799  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16800  shlibpath_overrides_runpath=no
16801  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16802  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16803  hardcode_into_libs=yes
16804  ;;
16805
16806# No shared lib support for Linux oldld, aout, or coff.
16807linux*oldld* | linux*aout* | linux*coff*)
16808  dynamic_linker=no
16809  ;;
16810
16811# This must be Linux ELF.
16812linux*)
16813  version_type=linux
16814  need_lib_prefix=no
16815  need_version=no
16816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16817  soname_spec='${libname}${release}${shared_ext}$major'
16818  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16819  libsuff=
16820  if test "x$LINUX_64_MODE" = x64; then
16821    # Some platforms are per default 64-bit, so there's no /lib64
16822    if test -d /lib64; then
16823      libsuff=64
16824    fi
16825  fi
16826  shlibpath_var=LD_LIBRARY_PATH
16827  shlibpath_overrides_runpath=no
16828  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16829  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16830  # This implies no fast_install, which is unacceptable.
16831  # Some rework will be needed to allow for fast_install
16832  # before this can be enabled.
16833  hardcode_into_libs=yes
16834
16835  # We used to test for /lib/ld.so.1 and disable shared libraries on
16836  # powerpc, because MkLinux only supported shared libraries with the
16837  # GNU dynamic linker.  Since this was broken with cross compilers,
16838  # most powerpc-linux boxes support dynamic linking these days and
16839  # people can always --disable-shared, the test was removed, and we
16840  # assume the GNU/Linux dynamic linker is in use.
16841  dynamic_linker='GNU/Linux ld.so'
16842  ;;
16843
16844netbsd*)
16845  version_type=sunos
16846  need_lib_prefix=no
16847  need_version=no
16848  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16849    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16850    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16851    dynamic_linker='NetBSD (a.out) ld.so'
16852  else
16853    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16854    soname_spec='${libname}${release}${shared_ext}$major'
16855    dynamic_linker='NetBSD ld.elf_so'
16856  fi
16857  shlibpath_var=LD_LIBRARY_PATH
16858  shlibpath_overrides_runpath=yes
16859  hardcode_into_libs=yes
16860  ;;
16861
16862newsos6)
16863  version_type=linux
16864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865  shlibpath_var=LD_LIBRARY_PATH
16866  shlibpath_overrides_runpath=yes
16867  ;;
16868
16869nto-qnx*)
16870  version_type=linux
16871  need_lib_prefix=no
16872  need_version=no
16873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874  soname_spec='${libname}${release}${shared_ext}$major'
16875  shlibpath_var=LD_LIBRARY_PATH
16876  shlibpath_overrides_runpath=yes
16877  ;;
16878
16879openbsd*)
16880  version_type=sunos
16881  need_lib_prefix=no
16882  need_version=no
16883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16884  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16885  shlibpath_var=LD_LIBRARY_PATH
16886  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16887    case $host_os in
16888      openbsd2.[89] | openbsd2.[89].*)
16889	shlibpath_overrides_runpath=no
16890	;;
16891      *)
16892	shlibpath_overrides_runpath=yes
16893	;;
16894      esac
16895  else
16896    shlibpath_overrides_runpath=yes
16897  fi
16898  ;;
16899
16900os2*)
16901  libname_spec='$name'
16902  shrext=".dll"
16903  need_lib_prefix=no
16904  library_names_spec='$libname${shared_ext} $libname.a'
16905  dynamic_linker='OS/2 ld.exe'
16906  shlibpath_var=LIBPATH
16907  ;;
16908
16909osf3* | osf4* | osf5*)
16910  version_type=osf
16911  need_lib_prefix=no
16912  need_version=no
16913  soname_spec='${libname}${release}${shared_ext}$major'
16914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16915  shlibpath_var=LD_LIBRARY_PATH
16916  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16917  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16918  ;;
16919
16920sco3.2v5*)
16921  version_type=osf
16922  soname_spec='${libname}${release}${shared_ext}$major'
16923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16924  shlibpath_var=LD_LIBRARY_PATH
16925  ;;
16926
16927solaris*)
16928  version_type=linux
16929  need_lib_prefix=no
16930  need_version=no
16931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932  soname_spec='${libname}${release}${shared_ext}$major'
16933  shlibpath_var=LD_LIBRARY_PATH
16934  shlibpath_overrides_runpath=yes
16935  hardcode_into_libs=yes
16936  # ldd complains unless libraries are executable
16937  postinstall_cmds='chmod +x $lib'
16938  ;;
16939
16940sunos4*)
16941  version_type=sunos
16942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16943  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16944  shlibpath_var=LD_LIBRARY_PATH
16945  shlibpath_overrides_runpath=yes
16946  if test "$with_gnu_ld" = yes; then
16947    need_lib_prefix=no
16948  fi
16949  need_version=yes
16950  ;;
16951
16952sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16953  version_type=linux
16954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16955  soname_spec='${libname}${release}${shared_ext}$major'
16956  shlibpath_var=LD_LIBRARY_PATH
16957  case $host_vendor in
16958    sni)
16959      shlibpath_overrides_runpath=no
16960      need_lib_prefix=no
16961      export_dynamic_flag_spec='${wl}-Blargedynsym'
16962      runpath_var=LD_RUN_PATH
16963      ;;
16964    siemens)
16965      need_lib_prefix=no
16966      ;;
16967    motorola)
16968      need_lib_prefix=no
16969      need_version=no
16970      shlibpath_overrides_runpath=no
16971      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16972      ;;
16973  esac
16974  ;;
16975
16976sysv4*MP*)
16977  if test -d /usr/nec ;then
16978    version_type=linux
16979    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16980    soname_spec='$libname${shared_ext}.$major'
16981    shlibpath_var=LD_LIBRARY_PATH
16982  fi
16983  ;;
16984
16985uts4*)
16986  version_type=linux
16987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988  soname_spec='${libname}${release}${shared_ext}$major'
16989  shlibpath_var=LD_LIBRARY_PATH
16990  ;;
16991
16992*)
16993  dynamic_linker=no
16994  ;;
16995esac
16996echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16997echo "${ECHO_T}$dynamic_linker" >&6
16998test "$dynamic_linker" = no && can_build_shared=no
16999
17000echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17001echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17002hardcode_action_F77=
17003if test -n "$hardcode_libdir_flag_spec_F77" || \
17004   test -n "$runpath_var F77" || \
17005   test "X$hardcode_automatic_F77"="Xyes" ; then
17006
17007  # We can hardcode non-existant directories.
17008  if test "$hardcode_direct_F77" != no &&
17009     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17010     # have to relink, otherwise we might link with an installed library
17011     # when we should be linking with a yet-to-be-installed one
17012     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17013     test "$hardcode_minus_L_F77" != no; then
17014    # Linking always hardcodes the temporary library directory.
17015    hardcode_action_F77=relink
17016  else
17017    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17018    hardcode_action_F77=immediate
17019  fi
17020else
17021  # We cannot hardcode anything, or else we can only hardcode existing
17022  # directories.
17023  hardcode_action_F77=unsupported
17024fi
17025echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17026echo "${ECHO_T}$hardcode_action_F77" >&6
17027
17028if test "$hardcode_action_F77" = relink; then
17029  # Fast installation is not supported
17030  enable_fast_install=no
17031elif test "$shlibpath_overrides_runpath" = yes ||
17032     test "$enable_shared" = no; then
17033  # Fast installation is not necessary
17034  enable_fast_install=needless
17035fi
17036
17037striplib=
17038old_striplib=
17039echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17040echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17041if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17042  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17043  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17044  echo "$as_me:$LINENO: result: yes" >&5
17045echo "${ECHO_T}yes" >&6
17046else
17047# FIXME - insert some real tests, host_os isn't really good enough
17048  case $host_os in
17049   darwin*)
17050       if test -n "$STRIP" ; then
17051         striplib="$STRIP -x"
17052         echo "$as_me:$LINENO: result: yes" >&5
17053echo "${ECHO_T}yes" >&6
17054       else
17055  echo "$as_me:$LINENO: result: no" >&5
17056echo "${ECHO_T}no" >&6
17057fi
17058       ;;
17059   *)
17060  echo "$as_me:$LINENO: result: no" >&5
17061echo "${ECHO_T}no" >&6
17062    ;;
17063  esac
17064fi
17065
17066
17067
17068# The else clause should only fire when bootstrapping the
17069# libtool distribution, otherwise you forgot to ship ltmain.sh
17070# with your package, and you will get complaints that there are
17071# no rules to generate ltmain.sh.
17072if test -f "$ltmain"; then
17073  # See if we are running on zsh, and set the options which allow our commands through
17074  # without removal of \ escapes.
17075  if test -n "${ZSH_VERSION+set}" ; then
17076    setopt NO_GLOB_SUBST
17077  fi
17078  # Now quote all the things that may contain metacharacters while being
17079  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17080  # variables and quote the copies for generation of the libtool script.
17081  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17082    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17083    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17084    deplibs_check_method reload_flag reload_cmds need_locks \
17085    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17086    lt_cv_sys_global_symbol_to_c_name_address \
17087    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17088    old_postinstall_cmds old_postuninstall_cmds \
17089    compiler_F77 \
17090    CC_F77 \
17091    LD_F77 \
17092    lt_prog_compiler_wl_F77 \
17093    lt_prog_compiler_pic_F77 \
17094    lt_prog_compiler_static_F77 \
17095    lt_prog_compiler_no_builtin_flag_F77 \
17096    export_dynamic_flag_spec_F77 \
17097    thread_safe_flag_spec_F77 \
17098    whole_archive_flag_spec_F77 \
17099    enable_shared_with_static_runtimes_F77 \
17100    old_archive_cmds_F77 \
17101    old_archive_from_new_cmds_F77 \
17102    predep_objects_F77 \
17103    postdep_objects_F77 \
17104    predeps_F77 \
17105    postdeps_F77 \
17106    compiler_lib_search_path_F77 \
17107    archive_cmds_F77 \
17108    archive_expsym_cmds_F77 \
17109    postinstall_cmds_F77 \
17110    postuninstall_cmds_F77 \
17111    old_archive_from_expsyms_cmds_F77 \
17112    allow_undefined_flag_F77 \
17113    no_undefined_flag_F77 \
17114    export_symbols_cmds_F77 \
17115    hardcode_libdir_flag_spec_F77 \
17116    hardcode_libdir_flag_spec_ld_F77 \
17117    hardcode_libdir_separator_F77 \
17118    hardcode_automatic_F77 \
17119    module_cmds_F77 \
17120    module_expsym_cmds_F77 \
17121    lt_cv_prog_compiler_c_o_F77 \
17122    exclude_expsyms_F77 \
17123    include_expsyms_F77; do
17124
17125    case $var in
17126    old_archive_cmds_F77 | \
17127    old_archive_from_new_cmds_F77 | \
17128    archive_cmds_F77 | \
17129    archive_expsym_cmds_F77 | \
17130    module_cmds_F77 | \
17131    module_expsym_cmds_F77 | \
17132    old_archive_from_expsyms_cmds_F77 | \
17133    export_symbols_cmds_F77 | \
17134    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17135    postinstall_cmds | postuninstall_cmds | \
17136    old_postinstall_cmds | old_postuninstall_cmds | \
17137    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17138      # Double-quote double-evaled strings.
17139      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17140      ;;
17141    *)
17142      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17143      ;;
17144    esac
17145  done
17146
17147  case $lt_echo in
17148  *'\$0 --fallback-echo"')
17149    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17150    ;;
17151  esac
17152
17153cfgfile="$ofile"
17154
17155  cat <<__EOF__ >> "$cfgfile"
17156# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17157
17158# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17159
17160# Shell to use when invoking shell scripts.
17161SHELL=$lt_SHELL
17162
17163# Whether or not to build shared libraries.
17164build_libtool_libs=$enable_shared
17165
17166# Whether or not to build static libraries.
17167build_old_libs=$enable_static
17168
17169# Whether or not to add -lc for building shared libraries.
17170build_libtool_need_lc=$archive_cmds_need_lc_F77
17171
17172# Whether or not to disallow shared libs when runtime libs are static
17173allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17174
17175# Whether or not to optimize for fast installation.
17176fast_install=$enable_fast_install
17177
17178# The host system.
17179host_alias=$host_alias
17180host=$host
17181
17182# An echo program that does not interpret backslashes.
17183echo=$lt_echo
17184
17185# The archiver.
17186AR=$lt_AR
17187AR_FLAGS=$lt_AR_FLAGS
17188
17189# A C compiler.
17190LTCC=$lt_LTCC
17191
17192# A language-specific compiler.
17193CC=$lt_compiler_F77
17194
17195# Is the compiler the GNU C compiler?
17196with_gcc=$GCC_F77
17197
17198# An ERE matcher.
17199EGREP=$lt_EGREP
17200
17201# The linker used to build libraries.
17202LD=$lt_LD_F77
17203
17204# Whether we need hard or soft links.
17205LN_S=$lt_LN_S
17206
17207# A BSD-compatible nm program.
17208NM=$lt_NM
17209
17210# A symbol stripping program
17211STRIP=$STRIP
17212
17213# Used to examine libraries when file_magic_cmd begins "file"
17214MAGIC_CMD=$MAGIC_CMD
17215
17216# Used on cygwin: DLL creation program.
17217DLLTOOL="$DLLTOOL"
17218
17219# Used on cygwin: object dumper.
17220OBJDUMP="$OBJDUMP"
17221
17222# Used on cygwin: assembler.
17223AS="$AS"
17224
17225# The name of the directory that contains temporary libtool files.
17226objdir=$objdir
17227
17228# How to create reloadable object files.
17229reload_flag=$lt_reload_flag
17230reload_cmds=$lt_reload_cmds
17231
17232# How to pass a linker flag through the compiler.
17233wl=$lt_lt_prog_compiler_wl_F77
17234
17235# Object file suffix (normally "o").
17236objext="$ac_objext"
17237
17238# Old archive suffix (normally "a").
17239libext="$libext"
17240
17241# Shared library suffix (normally ".so").
17242shrext='$shrext'
17243
17244# Executable file suffix (normally "").
17245exeext="$exeext"
17246
17247# Additional compiler flags for building library objects.
17248pic_flag=$lt_lt_prog_compiler_pic_F77
17249pic_mode=$pic_mode
17250
17251# What is the maximum length of a command?
17252max_cmd_len=$lt_cv_sys_max_cmd_len
17253
17254# Does compiler simultaneously support -c and -o options?
17255compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17256
17257# Must we lock files when doing compilation ?
17258need_locks=$lt_need_locks
17259
17260# Do we need the lib prefix for modules?
17261need_lib_prefix=$need_lib_prefix
17262
17263# Do we need a version for libraries?
17264need_version=$need_version
17265
17266# Whether dlopen is supported.
17267dlopen_support=$enable_dlopen
17268
17269# Whether dlopen of programs is supported.
17270dlopen_self=$enable_dlopen_self
17271
17272# Whether dlopen of statically linked programs is supported.
17273dlopen_self_static=$enable_dlopen_self_static
17274
17275# Compiler flag to prevent dynamic linking.
17276link_static_flag=$lt_lt_prog_compiler_static_F77
17277
17278# Compiler flag to turn off builtin functions.
17279no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17280
17281# Compiler flag to allow reflexive dlopens.
17282export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17283
17284# Compiler flag to generate shared objects directly from archives.
17285whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17286
17287# Compiler flag to generate thread-safe objects.
17288thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17289
17290# Library versioning type.
17291version_type=$version_type
17292
17293# Format of library name prefix.
17294libname_spec=$lt_libname_spec
17295
17296# List of archive names.  First name is the real one, the rest are links.
17297# The last name is the one that the linker finds with -lNAME.
17298library_names_spec=$lt_library_names_spec
17299
17300# The coded name of the library, if different from the real name.
17301soname_spec=$lt_soname_spec
17302
17303# Commands used to build and install an old-style archive.
17304RANLIB=$lt_RANLIB
17305old_archive_cmds=$lt_old_archive_cmds_F77
17306old_postinstall_cmds=$lt_old_postinstall_cmds
17307old_postuninstall_cmds=$lt_old_postuninstall_cmds
17308
17309# Create an old-style archive from a shared archive.
17310old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17311
17312# Create a temporary old-style archive to link instead of a shared archive.
17313old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17314
17315# Commands used to build and install a shared archive.
17316archive_cmds=$lt_archive_cmds_F77
17317archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17318postinstall_cmds=$lt_postinstall_cmds
17319postuninstall_cmds=$lt_postuninstall_cmds
17320
17321# Commands used to build a loadable module (assumed same as above if empty)
17322module_cmds=$lt_module_cmds_F77
17323module_expsym_cmds=$lt_module_expsym_cmds_F77
17324
17325# Commands to strip libraries.
17326old_striplib=$lt_old_striplib
17327striplib=$lt_striplib
17328
17329# Dependencies to place before the objects being linked to create a
17330# shared library.
17331predep_objects=$lt_predep_objects_F77
17332
17333# Dependencies to place after the objects being linked to create a
17334# shared library.
17335postdep_objects=$lt_postdep_objects_F77
17336
17337# Dependencies to place before the objects being linked to create a
17338# shared library.
17339predeps=$lt_predeps_F77
17340
17341# Dependencies to place after the objects being linked to create a
17342# shared library.
17343postdeps=$lt_postdeps_F77
17344
17345# The library search path used internally by the compiler when linking
17346# a shared library.
17347compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17348
17349# Method to check whether dependent libraries are shared objects.
17350deplibs_check_method=$lt_deplibs_check_method
17351
17352# Command to use when deplibs_check_method == file_magic.
17353file_magic_cmd=$lt_file_magic_cmd
17354
17355# Flag that allows shared libraries with undefined symbols to be built.
17356allow_undefined_flag=$lt_allow_undefined_flag_F77
17357
17358# Flag that forces no undefined symbols.
17359no_undefined_flag=$lt_no_undefined_flag_F77
17360
17361# Commands used to finish a libtool library installation in a directory.
17362finish_cmds=$lt_finish_cmds
17363
17364# Same as above, but a single script fragment to be evaled but not shown.
17365finish_eval=$lt_finish_eval
17366
17367# Take the output of nm and produce a listing of raw symbols and C names.
17368global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17369
17370# Transform the output of nm in a proper C declaration
17371global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17372
17373# Transform the output of nm in a C name address pair
17374global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17375
17376# This is the shared library runtime path variable.
17377runpath_var=$runpath_var
17378
17379# This is the shared library path variable.
17380shlibpath_var=$shlibpath_var
17381
17382# Is shlibpath searched before the hard-coded library search path?
17383shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17384
17385# How to hardcode a shared library path into an executable.
17386hardcode_action=$hardcode_action_F77
17387
17388# Whether we should hardcode library paths into libraries.
17389hardcode_into_libs=$hardcode_into_libs
17390
17391# Flag to hardcode \$libdir into a binary during linking.
17392# This must work even if \$libdir does not exist.
17393hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17394
17395# If ld is used when linking, flag to hardcode \$libdir into
17396# a binary during linking. This must work even if \$libdir does
17397# not exist.
17398hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17399
17400# Whether we need a single -rpath flag with a separated argument.
17401hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17402
17403# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17404# resulting binary.
17405hardcode_direct=$hardcode_direct_F77
17406
17407# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17408# resulting binary.
17409hardcode_minus_L=$hardcode_minus_L_F77
17410
17411# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17412# the resulting binary.
17413hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17414
17415# Set to yes if building a shared library automatically hardcodes DIR into the library
17416# and all subsequent libraries and executables linked against it.
17417hardcode_automatic=$hardcode_automatic_F77
17418
17419# Variables whose values should be saved in libtool wrapper scripts and
17420# restored at relink time.
17421variables_saved_for_relink="$variables_saved_for_relink"
17422
17423# Whether libtool must link a program against all its dependency libraries.
17424link_all_deplibs=$link_all_deplibs_F77
17425
17426# Compile-time system search path for libraries
17427sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17428
17429# Run-time system search path for libraries
17430sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17431
17432# Fix the shell variable \$srcfile for the compiler.
17433fix_srcfile_path="$fix_srcfile_path_F77"
17434
17435# Set to yes if exported symbols are required.
17436always_export_symbols=$always_export_symbols_F77
17437
17438# The commands to list exported symbols.
17439export_symbols_cmds=$lt_export_symbols_cmds_F77
17440
17441# The commands to extract the exported symbol list from a shared archive.
17442extract_expsyms_cmds=$lt_extract_expsyms_cmds
17443
17444# Symbols that should not be listed in the preloaded symbols.
17445exclude_expsyms=$lt_exclude_expsyms_F77
17446
17447# Symbols that must always be exported.
17448include_expsyms=$lt_include_expsyms_F77
17449
17450# ### END LIBTOOL TAG CONFIG: $tagname
17451
17452__EOF__
17453
17454
17455else
17456  # If there is no Makefile yet, we rely on a make rule to execute
17457  # `config.status --recheck' to rerun these tests and create the
17458  # libtool script then.
17459  test -f Makefile && make "$ltmain"
17460fi
17461
17462
17463ac_ext=c
17464ac_cpp='$CPP $CPPFLAGS'
17465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17467ac_compiler_gnu=$ac_cv_c_compiler_gnu
17468
17469CC="$lt_save_CC"
17470
17471	else
17472	  tagname=""
17473	fi
17474	;;
17475
17476      GCJ)
17477	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17478
17479
17480
17481# Source file extension for Java test sources.
17482ac_ext=java
17483
17484# Object file extension for compiled Java test sources.
17485objext=o
17486objext_GCJ=$objext
17487
17488# Code to be used in simple compile tests
17489lt_simple_compile_test_code="class foo {}\n"
17490
17491# Code to be used in simple link tests
17492lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17493
17494# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17495
17496# If no C compiler was specified, use CC.
17497LTCC=${LTCC-"$CC"}
17498
17499# Allow CC to be a program name with arguments.
17500compiler=$CC
17501
17502
17503# Allow CC to be a program name with arguments.
17504lt_save_CC="$CC"
17505CC=${GCJ-"gcj"}
17506compiler=$CC
17507compiler_GCJ=$CC
17508
17509# GCJ did not exist at the time GCC didn't implicitly link libc in.
17510archive_cmds_need_lc_GCJ=no
17511
17512## CAVEAT EMPTOR:
17513## There is no encapsulation within the following macros, do not change
17514## the running order or otherwise move them around unless you know exactly
17515## what you are doing...
17516
17517lt_prog_compiler_no_builtin_flag_GCJ=
17518
17519if test "$GCC" = yes; then
17520  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17521
17522
17523echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17524echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17525if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17526  echo $ECHO_N "(cached) $ECHO_C" >&6
17527else
17528  lt_cv_prog_compiler_rtti_exceptions=no
17529  ac_outfile=conftest.$ac_objext
17530   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17531   lt_compiler_flag="-fno-rtti -fno-exceptions"
17532   # Insert the option either (1) after the last *FLAGS variable, or
17533   # (2) before a word containing "conftest.", or (3) at the end.
17534   # Note that $ac_compile itself does not contain backslashes and begins
17535   # with a dollar sign (not a hyphen), so the echo should work correctly.
17536   # The option is referenced via a variable to avoid confusing sed.
17537   lt_compile=`echo "$ac_compile" | $SED \
17538   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17539   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17540   -e 's:$: $lt_compiler_flag:'`
17541   (eval echo "\"\$as_me:17541: $lt_compile\"" >&5)
17542   (eval "$lt_compile" 2>conftest.err)
17543   ac_status=$?
17544   cat conftest.err >&5
17545   echo "$as_me:17545: \$? = $ac_status" >&5
17546   if (exit $ac_status) && test -s "$ac_outfile"; then
17547     # The compiler can only warn and ignore the option if not recognized
17548     # So say no if there are warnings
17549     if test ! -s conftest.err; then
17550       lt_cv_prog_compiler_rtti_exceptions=yes
17551     fi
17552   fi
17553   $rm conftest*
17554
17555fi
17556echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17557echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17558
17559if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17560    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17561else
17562    :
17563fi
17564
17565fi
17566
17567lt_prog_compiler_wl_GCJ=
17568lt_prog_compiler_pic_GCJ=
17569lt_prog_compiler_static_GCJ=
17570
17571echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17572echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17573
17574  if test "$GCC" = yes; then
17575    lt_prog_compiler_wl_GCJ='-Wl,'
17576    lt_prog_compiler_static_GCJ='-static'
17577
17578    case $host_os in
17579      aix*)
17580      # All AIX code is PIC.
17581      if test "$host_cpu" = ia64; then
17582	# AIX 5 now supports IA64 processor
17583	lt_prog_compiler_static_GCJ='-Bstatic'
17584      fi
17585      ;;
17586
17587    amigaos*)
17588      # FIXME: we need at least 68020 code to build shared libraries, but
17589      # adding the `-m68020' flag to GCC prevents building anything better,
17590      # like `-m68040'.
17591      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17592      ;;
17593
17594    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17595      # PIC is the default for these OSes.
17596      ;;
17597
17598    mingw* | pw32* | os2*)
17599      # This hack is so that the source file can tell whether it is being
17600      # built for inclusion in a dll (and should export symbols for example).
17601      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17602      ;;
17603
17604    darwin* | rhapsody*)
17605      # PIC is the default on this platform
17606      # Common symbols not allowed in MH_DYLIB files
17607      lt_prog_compiler_pic_GCJ='-fno-common'
17608      ;;
17609
17610    msdosdjgpp*)
17611      # Just because we use GCC doesn't mean we suddenly get shared libraries
17612      # on systems that don't support them.
17613      lt_prog_compiler_can_build_shared_GCJ=no
17614      enable_shared=no
17615      ;;
17616
17617    sysv4*MP*)
17618      if test -d /usr/nec; then
17619	lt_prog_compiler_pic_GCJ=-Kconform_pic
17620      fi
17621      ;;
17622
17623    hpux*)
17624      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17625      # not for PA HP-UX.
17626      case "$host_cpu" in
17627      hppa*64*|ia64*)
17628	# +Z the default
17629	;;
17630      *)
17631	lt_prog_compiler_pic_GCJ='-fPIC'
17632	;;
17633      esac
17634      ;;
17635
17636    *)
17637      lt_prog_compiler_pic_GCJ='-fPIC'
17638      ;;
17639    esac
17640  else
17641    # PORTME Check for flag to pass linker flags through the system compiler.
17642    case $host_os in
17643    aix*)
17644      lt_prog_compiler_wl_GCJ='-Wl,'
17645      if test "$host_cpu" = ia64; then
17646	# AIX 5 now supports IA64 processor
17647	lt_prog_compiler_static_GCJ='-Bstatic'
17648      else
17649	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17650      fi
17651      ;;
17652
17653    mingw* | pw32* | os2*)
17654      # This hack is so that the source file can tell whether it is being
17655      # built for inclusion in a dll (and should export symbols for example).
17656      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17657      ;;
17658
17659    hpux9* | hpux10* | hpux11*)
17660      lt_prog_compiler_wl_GCJ='-Wl,'
17661      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17662      # not for PA HP-UX.
17663      case "$host_cpu" in
17664      hppa*64*|ia64*)
17665	# +Z the default
17666	;;
17667      *)
17668	lt_prog_compiler_pic_GCJ='+Z'
17669	;;
17670      esac
17671      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17672      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17673      ;;
17674
17675    irix5* | irix6* | nonstopux*)
17676      lt_prog_compiler_wl_GCJ='-Wl,'
17677      # PIC (with -KPIC) is the default.
17678      lt_prog_compiler_static_GCJ='-non_shared'
17679      ;;
17680
17681    newsos6)
17682      lt_prog_compiler_pic_GCJ='-KPIC'
17683      lt_prog_compiler_static_GCJ='-Bstatic'
17684      ;;
17685
17686    linux*)
17687      case $CC in
17688      icc* | ecc*)
17689	lt_prog_compiler_wl_GCJ='-Wl,'
17690	lt_prog_compiler_pic_GCJ='-KPIC'
17691	lt_prog_compiler_static_GCJ='-static'
17692        ;;
17693      ccc*)
17694        lt_prog_compiler_wl_GCJ='-Wl,'
17695        # All Alpha code is PIC.
17696        lt_prog_compiler_static_GCJ='-non_shared'
17697        ;;
17698      esac
17699      ;;
17700
17701    osf3* | osf4* | osf5*)
17702      lt_prog_compiler_wl_GCJ='-Wl,'
17703      # All OSF/1 code is PIC.
17704      lt_prog_compiler_static_GCJ='-non_shared'
17705      ;;
17706
17707    sco3.2v5*)
17708      lt_prog_compiler_pic_GCJ='-Kpic'
17709      lt_prog_compiler_static_GCJ='-dn'
17710      ;;
17711
17712    solaris*)
17713      lt_prog_compiler_wl_GCJ='-Wl,'
17714      lt_prog_compiler_pic_GCJ='-KPIC'
17715      lt_prog_compiler_static_GCJ='-Bstatic'
17716      ;;
17717
17718    sunos4*)
17719      lt_prog_compiler_wl_GCJ='-Qoption ld '
17720      lt_prog_compiler_pic_GCJ='-PIC'
17721      lt_prog_compiler_static_GCJ='-Bstatic'
17722      ;;
17723
17724    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17725      lt_prog_compiler_wl_GCJ='-Wl,'
17726      lt_prog_compiler_pic_GCJ='-KPIC'
17727      lt_prog_compiler_static_GCJ='-Bstatic'
17728      ;;
17729
17730    sysv4*MP*)
17731      if test -d /usr/nec ;then
17732	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17733	lt_prog_compiler_static_GCJ='-Bstatic'
17734      fi
17735      ;;
17736
17737    uts4*)
17738      lt_prog_compiler_pic_GCJ='-pic'
17739      lt_prog_compiler_static_GCJ='-Bstatic'
17740      ;;
17741
17742    *)
17743      lt_prog_compiler_can_build_shared_GCJ=no
17744      ;;
17745    esac
17746  fi
17747
17748echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17749echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17750
17751#
17752# Check to make sure the PIC flag actually works.
17753#
17754if test -n "$lt_prog_compiler_pic_GCJ"; then
17755
17756echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17757echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17758if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17759  echo $ECHO_N "(cached) $ECHO_C" >&6
17760else
17761  lt_prog_compiler_pic_works_GCJ=no
17762  ac_outfile=conftest.$ac_objext
17763   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17764   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17765   # Insert the option either (1) after the last *FLAGS variable, or
17766   # (2) before a word containing "conftest.", or (3) at the end.
17767   # Note that $ac_compile itself does not contain backslashes and begins
17768   # with a dollar sign (not a hyphen), so the echo should work correctly.
17769   # The option is referenced via a variable to avoid confusing sed.
17770   lt_compile=`echo "$ac_compile" | $SED \
17771   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17773   -e 's:$: $lt_compiler_flag:'`
17774   (eval echo "\"\$as_me:17774: $lt_compile\"" >&5)
17775   (eval "$lt_compile" 2>conftest.err)
17776   ac_status=$?
17777   cat conftest.err >&5
17778   echo "$as_me:17778: \$? = $ac_status" >&5
17779   if (exit $ac_status) && test -s "$ac_outfile"; then
17780     # The compiler can only warn and ignore the option if not recognized
17781     # So say no if there are warnings
17782     if test ! -s conftest.err; then
17783       lt_prog_compiler_pic_works_GCJ=yes
17784     fi
17785   fi
17786   $rm conftest*
17787
17788fi
17789echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17790echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17791
17792if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17793    case $lt_prog_compiler_pic_GCJ in
17794     "" | " "*) ;;
17795     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17796     esac
17797else
17798    lt_prog_compiler_pic_GCJ=
17799     lt_prog_compiler_can_build_shared_GCJ=no
17800fi
17801
17802fi
17803case "$host_os" in
17804  # For platforms which do not support PIC, -DPIC is meaningless:
17805  *djgpp*)
17806    lt_prog_compiler_pic_GCJ=
17807    ;;
17808  *)
17809    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17810    ;;
17811esac
17812
17813echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17814echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17815if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17816  echo $ECHO_N "(cached) $ECHO_C" >&6
17817else
17818  lt_cv_prog_compiler_c_o_GCJ=no
17819   $rm -r conftest 2>/dev/null
17820   mkdir conftest
17821   cd conftest
17822   mkdir out
17823   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17824
17825   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
17826   # that will create temporary files in the current directory regardless of
17827   # the output directory.  Thus, making CWD read-only will cause this test
17828   # to fail, enabling locking or at least warning the user not to do parallel
17829   # builds.
17830   chmod -w .
17831
17832   lt_compiler_flag="-o out/conftest2.$ac_objext"
17833   # Insert the option either (1) after the last *FLAGS variable, or
17834   # (2) before a word containing "conftest.", or (3) at the end.
17835   # Note that $ac_compile itself does not contain backslashes and begins
17836   # with a dollar sign (not a hyphen), so the echo should work correctly.
17837   lt_compile=`echo "$ac_compile" | $SED \
17838   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17840   -e 's:$: $lt_compiler_flag:'`
17841   (eval echo "\"\$as_me:17841: $lt_compile\"" >&5)
17842   (eval "$lt_compile" 2>out/conftest.err)
17843   ac_status=$?
17844   cat out/conftest.err >&5
17845   echo "$as_me:17845: \$? = $ac_status" >&5
17846   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17847   then
17848     # The compiler can only warn and ignore the option if not recognized
17849     # So say no if there are warnings
17850     if test ! -s out/conftest.err; then
17851       lt_cv_prog_compiler_c_o_GCJ=yes
17852     fi
17853   fi
17854   chmod u+w .
17855   $rm conftest* out/*
17856   rmdir out
17857   cd ..
17858   rmdir conftest
17859   $rm conftest*
17860
17861fi
17862echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17863echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17864
17865
17866hard_links="nottested"
17867if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17868  # do not overwrite the value of need_locks provided by the user
17869  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17870echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17871  hard_links=yes
17872  $rm conftest*
17873  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17874  touch conftest.a
17875  ln conftest.a conftest.b 2>&5 || hard_links=no
17876  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17877  echo "$as_me:$LINENO: result: $hard_links" >&5
17878echo "${ECHO_T}$hard_links" >&6
17879  if test "$hard_links" = no; then
17880    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17881echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17882    need_locks=warn
17883  fi
17884else
17885  need_locks=no
17886fi
17887
17888echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17889echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17890
17891  runpath_var=
17892  allow_undefined_flag_GCJ=
17893  enable_shared_with_static_runtimes_GCJ=no
17894  archive_cmds_GCJ=
17895  archive_expsym_cmds_GCJ=
17896  old_archive_From_new_cmds_GCJ=
17897  old_archive_from_expsyms_cmds_GCJ=
17898  export_dynamic_flag_spec_GCJ=
17899  whole_archive_flag_spec_GCJ=
17900  thread_safe_flag_spec_GCJ=
17901  hardcode_libdir_flag_spec_GCJ=
17902  hardcode_libdir_flag_spec_ld_GCJ=
17903  hardcode_libdir_separator_GCJ=
17904  hardcode_direct_GCJ=no
17905  hardcode_minus_L_GCJ=no
17906  hardcode_shlibpath_var_GCJ=unsupported
17907  link_all_deplibs_GCJ=unknown
17908  hardcode_automatic_GCJ=no
17909  module_cmds_GCJ=
17910  module_expsym_cmds_GCJ=
17911  always_export_symbols_GCJ=no
17912  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17913  # include_expsyms should be a list of space-separated symbols to be *always*
17914  # included in the symbol list
17915  include_expsyms_GCJ=
17916  # exclude_expsyms can be an extended regexp of symbols to exclude
17917  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17918  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17919  # as well as any symbol that contains `d'.
17920  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17921  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17922  # platforms (ab)use it in PIC code, but their linkers get confused if
17923  # the symbol is explicitly referenced.  Since portable code cannot
17924  # rely on this symbol name, it's probably fine to never include it in
17925  # preloaded symbol tables.
17926  extract_expsyms_cmds=
17927
17928  case $host_os in
17929  cygwin* | mingw* | pw32*)
17930    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17931    # When not using gcc, we currently assume that we are using
17932    # Microsoft Visual C++.
17933    if test "$GCC" != yes; then
17934      with_gnu_ld=no
17935    fi
17936    ;;
17937  openbsd*)
17938    with_gnu_ld=no
17939    ;;
17940  esac
17941
17942  ld_shlibs_GCJ=yes
17943  if test "$with_gnu_ld" = yes; then
17944    # If archive_cmds runs LD, not CC, wlarc should be empty
17945    wlarc='${wl}'
17946
17947    # See if GNU ld supports shared libraries.
17948    case $host_os in
17949    aix3* | aix4* | aix5*)
17950      # On AIX/PPC, the GNU linker is very broken
17951      if test "$host_cpu" != ia64; then
17952	ld_shlibs_GCJ=no
17953	cat <<EOF 1>&2
17954
17955*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17956*** to be unable to reliably create shared libraries on AIX.
17957*** Therefore, libtool is disabling shared libraries support.  If you
17958*** really care for shared libraries, you may want to modify your PATH
17959*** so that a non-GNU linker is found, and then restart.
17960
17961EOF
17962      fi
17963      ;;
17964
17965    amigaos*)
17966      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)'
17967      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17968      hardcode_minus_L_GCJ=yes
17969
17970      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17971      # that the semantics of dynamic libraries on AmigaOS, at least up
17972      # to version 4, is to share data among multiple programs linked
17973      # with the same dynamic library.  Since this doesn't match the
17974      # behavior of shared libraries on other platforms, we can't use
17975      # them.
17976      ld_shlibs_GCJ=no
17977      ;;
17978
17979    beos*)
17980      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17981	allow_undefined_flag_GCJ=unsupported
17982	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17983	# support --undefined.  This deserves some investigation.  FIXME
17984	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17985      else
17986	ld_shlibs_GCJ=no
17987      fi
17988      ;;
17989
17990    cygwin* | mingw* | pw32*)
17991      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17992      # as there is no search path for DLLs.
17993      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17994      allow_undefined_flag_GCJ=no
17995      always_export_symbols_GCJ=no
17996      enable_shared_with_static_runtimes_GCJ=yes
17997      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17998
17999      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18000        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18001	# If the export-symbols file already is a .def file (1st line
18002	# is EXPORTS), use it as is; otherwise, prepend...
18003	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18004	  cp $export_symbols $output_objdir/$soname.def;
18005	else
18006	  echo EXPORTS > $output_objdir/$soname.def;
18007	  cat $export_symbols >> $output_objdir/$soname.def;
18008	fi~
18009	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
18010      else
18011	ld_shlibs=no
18012      fi
18013      ;;
18014
18015    netbsd*)
18016      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18017	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18018	wlarc=
18019      else
18020	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18021	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18022      fi
18023      ;;
18024
18025    solaris* | sysv5*)
18026      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18027	ld_shlibs_GCJ=no
18028	cat <<EOF 1>&2
18029
18030*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18031*** create shared libraries on Solaris systems.  Therefore, libtool
18032*** is disabling shared libraries support.  We urge you to upgrade GNU
18033*** binutils to release 2.9.1 or newer.  Another option is to modify
18034*** your PATH or compiler configuration so that the native linker is
18035*** used, and then restart.
18036
18037EOF
18038      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18039	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18040	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18041      else
18042	ld_shlibs_GCJ=no
18043      fi
18044      ;;
18045
18046    sunos4*)
18047      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18048      wlarc=
18049      hardcode_direct_GCJ=yes
18050      hardcode_shlibpath_var_GCJ=no
18051      ;;
18052
18053    *)
18054      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18055	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18056	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18057      else
18058	ld_shlibs_GCJ=no
18059      fi
18060      ;;
18061    esac
18062
18063    if test "$ld_shlibs_GCJ" = yes; then
18064      runpath_var=LD_RUN_PATH
18065      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18066      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18067      # ancient GNU ld didn't support --whole-archive et. al.
18068      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18069 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18070      else
18071  	whole_archive_flag_spec_GCJ=
18072      fi
18073    fi
18074  else
18075    # PORTME fill in a description of your system's linker (not GNU ld)
18076    case $host_os in
18077    aix3*)
18078      allow_undefined_flag_GCJ=unsupported
18079      always_export_symbols_GCJ=yes
18080      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'
18081      # Note: this linker hardcodes the directories in LIBPATH if there
18082      # are no directories specified by -L.
18083      hardcode_minus_L_GCJ=yes
18084      if test "$GCC" = yes && test -z "$link_static_flag"; then
18085	# Neither direct hardcoding nor static linking is supported with a
18086	# broken collect2.
18087	hardcode_direct_GCJ=unsupported
18088      fi
18089      ;;
18090
18091    aix4* | aix5*)
18092      if test "$host_cpu" = ia64; then
18093	# On IA64, the linker does run time linking by default, so we don't
18094	# have to do anything special.
18095	aix_use_runtimelinking=no
18096	exp_sym_flag='-Bexport'
18097	no_entry_flag=""
18098      else
18099	# If we're using GNU nm, then we don't want the "-C" option.
18100	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18101	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18102	  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'
18103	else
18104	  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'
18105	fi
18106
18107	# KDE requires run time linking.  Make it the default.
18108	aix_use_runtimelinking=yes
18109	exp_sym_flag='-bexport'
18110	no_entry_flag='-bnoentry'
18111      fi
18112
18113      # When large executables or shared objects are built, AIX ld can
18114      # have problems creating the table of contents.  If linking a library
18115      # or program results in "error TOC overflow" add -mminimal-toc to
18116      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18117      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18118
18119      archive_cmds_GCJ=''
18120      hardcode_direct_GCJ=yes
18121      hardcode_libdir_separator_GCJ=':'
18122      link_all_deplibs_GCJ=yes
18123
18124      if test "$GCC" = yes; then
18125	case $host_os in aix4.012|aix4.012.*)
18126	# We only want to do this on AIX 4.2 and lower, the check
18127	# below for broken collect2 doesn't work under 4.3+
18128	  collect2name=`${CC} -print-prog-name=collect2`
18129	  if test -f "$collect2name" && \
18130  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18131	  then
18132  	  # We have reworked collect2
18133  	  hardcode_direct_GCJ=yes
18134	  else
18135  	  # We have old collect2
18136  	  hardcode_direct_GCJ=unsupported
18137  	  # It fails to find uninstalled libraries when the uninstalled
18138  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18139  	  # to unsupported forces relinking
18140  	  hardcode_minus_L_GCJ=yes
18141  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18142  	  hardcode_libdir_separator_GCJ=
18143	  fi
18144	esac
18145	shared_flag='-shared'
18146      else
18147	# not using gcc
18148	if test "$host_cpu" = ia64; then
18149  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18150  	# chokes on -Wl,-G. The following line is correct:
18151	  shared_flag='-G'
18152	else
18153  	if test "$aix_use_runtimelinking" = yes; then
18154	    shared_flag='-qmkshrobj ${wl}-G'
18155	  else
18156	    shared_flag='-qmkshrobj'
18157  	fi
18158	fi
18159      fi
18160
18161      # Let the compiler handle the export list.
18162      always_export_symbols_GCJ=no
18163      if test "$aix_use_runtimelinking" = yes; then
18164	# Warning - without using the other runtime loading flags (-brtl),
18165	# -berok will link without error, but may produce a broken library.
18166	allow_undefined_flag_GCJ='-berok'
18167       # Determine the default libpath from the value encoded in an empty executable.
18168	cat >conftest.$ac_ext <<_ACEOF
18169/* confdefs.h.  */
18170_ACEOF
18171cat confdefs.h >>conftest.$ac_ext
18172cat >>conftest.$ac_ext <<_ACEOF
18173/* end confdefs.h.  */
18174
18175int
18176main ()
18177{
18178
18179  ;
18180  return 0;
18181}
18182_ACEOF
18183rm -f conftest.$ac_objext conftest$ac_exeext
18184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18185  (eval $ac_link) 2>conftest.er1
18186  ac_status=$?
18187  grep -v '^ *+' conftest.er1 >conftest.err
18188  rm -f conftest.er1
18189  cat conftest.err >&5
18190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191  (exit $ac_status); } &&
18192	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18194  (eval $ac_try) 2>&5
18195  ac_status=$?
18196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197  (exit $ac_status); }; } &&
18198	 { ac_try='test -s conftest$ac_exeext'
18199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200  (eval $ac_try) 2>&5
18201  ac_status=$?
18202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203  (exit $ac_status); }; }; then
18204
18205aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18206}'`
18207# Check for a 64-bit object if we didn't find anything.
18208if 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; }
18209}'`; fi
18210else
18211  echo "$as_me: failed program was:" >&5
18212sed 's/^/| /' conftest.$ac_ext >&5
18213
18214fi
18215rm -f conftest.err conftest.$ac_objext \
18216      conftest$ac_exeext conftest.$ac_ext
18217if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18218
18219	hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18220	archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
18221	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18222       else
18223	if test "$host_cpu" = ia64; then
18224	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18225	  allow_undefined_flag_GCJ="-z nodefs"
18226	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18227	else
18228	 # Determine the default libpath from the value encoded in an empty executable.
18229	 cat >conftest.$ac_ext <<_ACEOF
18230/* confdefs.h.  */
18231_ACEOF
18232cat confdefs.h >>conftest.$ac_ext
18233cat >>conftest.$ac_ext <<_ACEOF
18234/* end confdefs.h.  */
18235
18236int
18237main ()
18238{
18239
18240  ;
18241  return 0;
18242}
18243_ACEOF
18244rm -f conftest.$ac_objext conftest$ac_exeext
18245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18246  (eval $ac_link) 2>conftest.er1
18247  ac_status=$?
18248  grep -v '^ *+' conftest.er1 >conftest.err
18249  rm -f conftest.er1
18250  cat conftest.err >&5
18251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252  (exit $ac_status); } &&
18253	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255  (eval $ac_try) 2>&5
18256  ac_status=$?
18257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258  (exit $ac_status); }; } &&
18259	 { ac_try='test -s conftest$ac_exeext'
18260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261  (eval $ac_try) 2>&5
18262  ac_status=$?
18263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264  (exit $ac_status); }; }; then
18265
18266aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18267}'`
18268# Check for a 64-bit object if we didn't find anything.
18269if 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; }
18270}'`; fi
18271else
18272  echo "$as_me: failed program was:" >&5
18273sed 's/^/| /' conftest.$ac_ext >&5
18274
18275fi
18276rm -f conftest.err conftest.$ac_objext \
18277      conftest$ac_exeext conftest.$ac_ext
18278if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18279
18280	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18281	  # Warning - without using the other run time loading flags,
18282	  # -berok will link without error, but may produce a broken library.
18283	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18284	  allow_undefined_flag_GCJ=' ${wl}-berok'
18285	  # -bexpall does not export symbols beginning with underscore (_)
18286	  always_export_symbols_GCJ=yes
18287	  # Exported symbols can be pulled into shared objects from archives
18288	  whole_archive_flag_spec_GCJ=' '
18289	  archive_cmds_need_lc_GCJ=yes
18290	  # This is similar to how AIX traditionally builds it's shared libraries.
18291	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18292	fi
18293      fi
18294      ;;
18295
18296    amigaos*)
18297      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)'
18298      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18299      hardcode_minus_L_GCJ=yes
18300      # see comment about different semantics on the GNU ld section
18301      ld_shlibs_GCJ=no
18302      ;;
18303
18304    bsdi4*)
18305      export_dynamic_flag_spec_GCJ=-rdynamic
18306      ;;
18307
18308    cygwin* | mingw* | pw32*)
18309      # When not using gcc, we currently assume that we are using
18310      # Microsoft Visual C++.
18311      # hardcode_libdir_flag_spec is actually meaningless, as there is
18312      # no search path for DLLs.
18313      hardcode_libdir_flag_spec_GCJ=' '
18314      allow_undefined_flag_GCJ=no
18315      # Tell ltmain to make .lib files, not .a files.
18316      libext=lib
18317      # Tell ltmain to make .dll files, not .so files.
18318      shrext=".dll"
18319      # FIXME: Setting linknames here is a bad hack.
18320      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18321      # The linker will automatically build a .lib file if we build a DLL.
18322      old_archive_From_new_cmds_GCJ='true'
18323      # FIXME: Should let the user specify the lib program.
18324      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18325      fix_srcfile_path='`cygpath -w "$srcfile"`'
18326      enable_shared_with_static_runtimes_GCJ=yes
18327      ;;
18328
18329    darwin* | rhapsody*)
18330    if test "$GXX" = yes ; then
18331      archive_cmds_need_lc_GCJ=no
18332      case "$host_os" in
18333      rhapsody* | darwin1.[012])
18334	allow_undefined_flag_GCJ='-undefined suppress'
18335	;;
18336      *) # Darwin 1.3 on
18337	test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18338	;;
18339      esac
18340    	lt_int_apple_cc_single_mod=no
18341    	output_verbose_link_cmd='echo'
18342    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18343    	  lt_int_apple_cc_single_mod=yes
18344    	fi
18345    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18346    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18347    	else
18348        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18349      fi
18350      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18351      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18352        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18353          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18354        else
18355          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18356        fi
18357          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}'
18358      hardcode_direct_GCJ=no
18359      hardcode_automatic_GCJ=yes
18360      hardcode_shlibpath_var_GCJ=unsupported
18361      whole_archive_flag_spec_GCJ='-all_load $convenience'
18362      link_all_deplibs_GCJ=yes
18363    else
18364      ld_shlibs_GCJ=no
18365    fi
18366      ;;
18367
18368    dgux*)
18369      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18370      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18371      hardcode_shlibpath_var_GCJ=no
18372      ;;
18373
18374    freebsd1*)
18375      ld_shlibs_GCJ=no
18376      ;;
18377
18378    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18379    # support.  Future versions do this automatically, but an explicit c++rt0.o
18380    # does not break anything, and helps significantly (at the cost of a little
18381    # extra space).
18382    freebsd2.2*)
18383      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18384      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18385      hardcode_direct_GCJ=yes
18386      hardcode_shlibpath_var_GCJ=no
18387      ;;
18388
18389    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18390    freebsd2*)
18391      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18392      hardcode_direct_GCJ=yes
18393      hardcode_minus_L_GCJ=yes
18394      hardcode_shlibpath_var_GCJ=no
18395      ;;
18396
18397    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18398    freebsd*)
18399      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18400      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18401      hardcode_direct_GCJ=yes
18402      hardcode_shlibpath_var_GCJ=no
18403      ;;
18404
18405    hpux9*)
18406      if test "$GCC" = yes; then
18407	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'
18408      else
18409	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'
18410      fi
18411      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18412      hardcode_libdir_separator_GCJ=:
18413      hardcode_direct_GCJ=yes
18414
18415      # hardcode_minus_L: Not really in the search PATH,
18416      # but as the default location of the library.
18417      hardcode_minus_L_GCJ=yes
18418      export_dynamic_flag_spec_GCJ='${wl}-E'
18419      ;;
18420
18421    hpux10* | hpux11*)
18422      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18423	case "$host_cpu" in
18424	hppa*64*|ia64*)
18425	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18426	  ;;
18427	*)
18428	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18429	  ;;
18430	esac
18431      else
18432	case "$host_cpu" in
18433	hppa*64*|ia64*)
18434	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18435	  ;;
18436	*)
18437	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18438	  ;;
18439	esac
18440      fi
18441      if test "$with_gnu_ld" = no; then
18442	case "$host_cpu" in
18443	hppa*64*)
18444	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18445	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18446	  hardcode_libdir_separator_GCJ=:
18447	  hardcode_direct_GCJ=no
18448	  hardcode_shlibpath_var_GCJ=no
18449	  ;;
18450	ia64*)
18451	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18452	  hardcode_direct_GCJ=no
18453	  hardcode_shlibpath_var_GCJ=no
18454
18455	  # hardcode_minus_L: Not really in the search PATH,
18456	  # but as the default location of the library.
18457	  hardcode_minus_L_GCJ=yes
18458	  ;;
18459	*)
18460	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18461	  hardcode_libdir_separator_GCJ=:
18462	  hardcode_direct_GCJ=yes
18463	  export_dynamic_flag_spec_GCJ='${wl}-E'
18464
18465	  # hardcode_minus_L: Not really in the search PATH,
18466	  # but as the default location of the library.
18467	  hardcode_minus_L_GCJ=yes
18468	  ;;
18469	esac
18470      fi
18471      ;;
18472
18473    irix5* | irix6* | nonstopux*)
18474      if test "$GCC" = yes; then
18475	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'
18476      else
18477	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'
18478	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18479      fi
18480      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18481      hardcode_libdir_separator_GCJ=:
18482      link_all_deplibs_GCJ=yes
18483      ;;
18484
18485    netbsd*)
18486      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18487	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18488      else
18489	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18490      fi
18491      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18492      hardcode_direct_GCJ=yes
18493      hardcode_shlibpath_var_GCJ=no
18494      ;;
18495
18496    newsos6)
18497      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18498      hardcode_direct_GCJ=yes
18499      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18500      hardcode_libdir_separator_GCJ=:
18501      hardcode_shlibpath_var_GCJ=no
18502      ;;
18503
18504    openbsd*)
18505      hardcode_direct_GCJ=yes
18506      hardcode_shlibpath_var_GCJ=no
18507      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18508	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18509	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18510	export_dynamic_flag_spec_GCJ='${wl}-E'
18511      else
18512       case $host_os in
18513	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18514	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18515	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18516	   ;;
18517	 *)
18518	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18519	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18520	   ;;
18521       esac
18522      fi
18523      ;;
18524
18525    os2*)
18526      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18527      hardcode_minus_L_GCJ=yes
18528      allow_undefined_flag_GCJ=unsupported
18529      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'
18530      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18531      ;;
18532
18533    osf3*)
18534      if test "$GCC" = yes; then
18535	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18536	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'
18537      else
18538	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18539	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'
18540      fi
18541      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18542      hardcode_libdir_separator_GCJ=:
18543      ;;
18544
18545    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18546      if test "$GCC" = yes; then
18547	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18548	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'
18549	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18550      else
18551	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18552	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'
18553	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~
18554	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18555
18556	# Both c and cxx compiler support -rpath directly
18557	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18558      fi
18559      hardcode_libdir_separator_GCJ=:
18560      ;;
18561
18562    sco3.2v5*)
18563      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18564      hardcode_shlibpath_var_GCJ=no
18565      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18566      runpath_var=LD_RUN_PATH
18567      hardcode_runpath_var=yes
18568      ;;
18569
18570    solaris*)
18571      no_undefined_flag_GCJ=' -z text'
18572      if test "$GCC" = yes; then
18573	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18574	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18575	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18576      else
18577	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18578	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18579  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18580      fi
18581      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18582      hardcode_shlibpath_var_GCJ=no
18583      case $host_os in
18584      solaris2.[0-5] | solaris2.[0-5].*) ;;
18585      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18586	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18587      esac
18588      link_all_deplibs_GCJ=yes
18589      ;;
18590
18591    sunos4*)
18592      if test "x$host_vendor" = xsequent; then
18593	# Use $CC to link under sequent, because it throws in some extra .o
18594	# files that make .init and .fini sections work.
18595	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18596      else
18597	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18598      fi
18599      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18600      hardcode_direct_GCJ=yes
18601      hardcode_minus_L_GCJ=yes
18602      hardcode_shlibpath_var_GCJ=no
18603      ;;
18604
18605    sysv4)
18606      case $host_vendor in
18607	sni)
18608	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18609	  hardcode_direct_GCJ=yes # is this really true???
18610	;;
18611	siemens)
18612	  ## LD is ld it makes a PLAMLIB
18613	  ## CC just makes a GrossModule.
18614	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18615	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18616	  hardcode_direct_GCJ=no
18617        ;;
18618	motorola)
18619	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18620	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18621	;;
18622      esac
18623      runpath_var='LD_RUN_PATH'
18624      hardcode_shlibpath_var_GCJ=no
18625      ;;
18626
18627    sysv4.3*)
18628      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18629      hardcode_shlibpath_var_GCJ=no
18630      export_dynamic_flag_spec_GCJ='-Bexport'
18631      ;;
18632
18633    sysv4*MP*)
18634      if test -d /usr/nec; then
18635	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18636	hardcode_shlibpath_var_GCJ=no
18637	runpath_var=LD_RUN_PATH
18638	hardcode_runpath_var=yes
18639	ld_shlibs_GCJ=yes
18640      fi
18641      ;;
18642
18643    sysv4.2uw2*)
18644      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18645      hardcode_direct_GCJ=yes
18646      hardcode_minus_L_GCJ=no
18647      hardcode_shlibpath_var_GCJ=no
18648      hardcode_runpath_var=yes
18649      runpath_var=LD_RUN_PATH
18650      ;;
18651
18652   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18653      no_undefined_flag_GCJ='${wl}-z ${wl}text'
18654      if test "$GCC" = yes; then
18655	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18656      else
18657	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18658      fi
18659      runpath_var='LD_RUN_PATH'
18660      hardcode_shlibpath_var_GCJ=no
18661      ;;
18662
18663    sysv5*)
18664      no_undefined_flag_GCJ=' -z text'
18665      # $CC -shared without GNU ld will not create a library from C++
18666      # object files and a static libstdc++, better avoid it by now
18667      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18668      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18669  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18670      hardcode_libdir_flag_spec_GCJ=
18671      hardcode_shlibpath_var_GCJ=no
18672      runpath_var='LD_RUN_PATH'
18673      ;;
18674
18675    uts4*)
18676      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18677      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18678      hardcode_shlibpath_var_GCJ=no
18679      ;;
18680
18681    *)
18682      ld_shlibs_GCJ=no
18683      ;;
18684    esac
18685  fi
18686
18687echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18688echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18689test "$ld_shlibs_GCJ" = no && can_build_shared=no
18690
18691variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18692if test "$GCC" = yes; then
18693  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18694fi
18695
18696#
18697# Do we need to explicitly link libc?
18698#
18699case "x$archive_cmds_need_lc_GCJ" in
18700x|xyes)
18701  # Assume -lc should be added
18702  archive_cmds_need_lc_GCJ=yes
18703
18704  if test "$enable_shared" = yes && test "$GCC" = yes; then
18705    case $archive_cmds_GCJ in
18706    *'~'*)
18707      # FIXME: we may have to deal with multi-command sequences.
18708      ;;
18709    '$CC '*)
18710      # Test whether the compiler implicitly links with -lc since on some
18711      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18712      # to ld, don't add -lc before -lgcc.
18713      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18714echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18715      $rm conftest*
18716      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18717
18718      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18719  (eval $ac_compile) 2>&5
18720  ac_status=$?
18721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722  (exit $ac_status); } 2>conftest.err; then
18723        soname=conftest
18724        lib=conftest
18725        libobjs=conftest.$ac_objext
18726        deplibs=
18727        wl=$lt_prog_compiler_wl_GCJ
18728        compiler_flags=-v
18729        linker_flags=-v
18730        verstring=
18731        output_objdir=.
18732        libname=conftest
18733        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18734        allow_undefined_flag_GCJ=
18735        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18736  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18737  ac_status=$?
18738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739  (exit $ac_status); }
18740        then
18741	  archive_cmds_need_lc_GCJ=no
18742        else
18743	  archive_cmds_need_lc_GCJ=yes
18744        fi
18745        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18746      else
18747        cat conftest.err 1>&5
18748      fi
18749      $rm conftest*
18750      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18751echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18752      ;;
18753    esac
18754  fi
18755  ;;
18756esac
18757
18758echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18759echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18760library_names_spec=
18761libname_spec='lib$name'
18762soname_spec=
18763shrext=".so"
18764postinstall_cmds=
18765postuninstall_cmds=
18766finish_cmds=
18767finish_eval=
18768shlibpath_var=
18769shlibpath_overrides_runpath=unknown
18770version_type=none
18771dynamic_linker="$host_os ld.so"
18772sys_lib_dlsearch_path_spec="/lib /usr/lib"
18773sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18774need_lib_prefix=unknown
18775hardcode_into_libs=no
18776
18777# when you set need_version to no, make sure it does not cause -set_version
18778# flags to be left without arguments
18779need_version=unknown
18780
18781case $host_os in
18782aix3*)
18783  version_type=linux
18784  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18785  shlibpath_var=LIBPATH
18786
18787  # AIX 3 has no versioning support, so we append a major version to the name.
18788  soname_spec='${libname}${release}${shared_ext}$major'
18789  ;;
18790
18791aix4* | aix5*)
18792  version_type=linux
18793  need_lib_prefix=no
18794  need_version=no
18795  hardcode_into_libs=yes
18796  if test "$host_cpu" = ia64; then
18797    # AIX 5 supports IA64
18798    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18799    shlibpath_var=LD_LIBRARY_PATH
18800  else
18801    # With GCC up to 2.95.x, collect2 would create an import file
18802    # for dependence libraries.  The import file would start with
18803    # the line `#! .'.  This would cause the generated library to
18804    # depend on `.', always an invalid library.  This was fixed in
18805    # development snapshots of GCC prior to 3.0.
18806    case $host_os in
18807      aix4 | aix4.[01] | aix4.[01].*)
18808      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18809	   echo ' yes '
18810	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18811	:
18812      else
18813	can_build_shared=no
18814      fi
18815      ;;
18816    esac
18817    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18818    # soname into executable. Probably we can add versioning support to
18819    # collect2, so additional links can be useful in future.
18820    if test "$aix_use_runtimelinking" = yes; then
18821      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18822      # instead of lib<name>.a to let people know that these are not
18823      # typical AIX shared libraries.
18824      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18825    else
18826      # We preserve .a as extension for shared libraries through AIX4.2
18827      # and later when we are not doing run time linking.
18828      library_names_spec='${libname}${release}.a $libname.a'
18829      soname_spec='${libname}${release}${shared_ext}$major'
18830    fi
18831    shlibpath_var=LIBPATH
18832  fi
18833  ;;
18834
18835amigaos*)
18836  library_names_spec='$libname.ixlibrary $libname.a'
18837  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18838  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'
18839  ;;
18840
18841beos*)
18842  library_names_spec='${libname}${shared_ext}'
18843  dynamic_linker="$host_os ld.so"
18844  shlibpath_var=LIBRARY_PATH
18845  ;;
18846
18847bsdi4*)
18848  version_type=linux
18849  need_version=no
18850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18851  soname_spec='${libname}${release}${shared_ext}$major'
18852  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18853  shlibpath_var=LD_LIBRARY_PATH
18854  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18855  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18856  # the default ld.so.conf also contains /usr/contrib/lib and
18857  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18858  # libtool to hard-code these into programs
18859  ;;
18860
18861cygwin* | mingw* | pw32*)
18862  version_type=windows
18863  shrext=".dll"
18864  need_version=no
18865  need_lib_prefix=no
18866
18867  case $GCC,$host_os in
18868  yes,cygwin* | yes,mingw* | yes,pw32*)
18869    library_names_spec='$libname.dll.a'
18870    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18871    postinstall_cmds='base_file=`basename \${file}`~
18872      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18873      dldir=$destdir/`dirname \$dlpath`~
18874      test -d \$dldir || mkdir -p \$dldir~
18875      $install_prog $dir/$dlname \$dldir/$dlname'
18876    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18877      dlpath=$dir/\$dldll~
18878       $rm \$dlpath'
18879    shlibpath_overrides_runpath=yes
18880
18881    case $host_os in
18882    cygwin*)
18883      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18884      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18885      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18886      ;;
18887    mingw*)
18888      # MinGW DLLs use traditional 'lib' prefix
18889      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18890      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18891      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18892        # It is most probably a Windows format PATH printed by
18893        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18894        # path with ; separators, and with drive letters. We can handle the
18895        # drive letters (cygwin fileutils understands them), so leave them,
18896        # especially as we might pass files found there to a mingw objdump,
18897        # which wouldn't understand a cygwinified path. Ahh.
18898        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18899      else
18900        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18901      fi
18902      ;;
18903    pw32*)
18904      # pw32 DLLs use 'pw' prefix rather than 'lib'
18905      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18906      ;;
18907    esac
18908    ;;
18909
18910  *)
18911    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18912    ;;
18913  esac
18914  dynamic_linker='Win32 ld.exe'
18915  # FIXME: first we should search . and the directory the executable is in
18916  shlibpath_var=PATH
18917  ;;
18918
18919darwin* | rhapsody*)
18920  dynamic_linker="$host_os dyld"
18921  version_type=darwin
18922  need_lib_prefix=no
18923  need_version=no
18924  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18925  soname_spec='${libname}${release}${major}$shared_ext'
18926  shlibpath_overrides_runpath=yes
18927  shlibpath_var=DYLD_LIBRARY_PATH
18928  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
18929  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18930  if test "$GCC" = yes; then
18931    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"`
18932  else
18933    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18934  fi
18935  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18936  ;;
18937
18938dgux*)
18939  version_type=linux
18940  need_lib_prefix=no
18941  need_version=no
18942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18943  soname_spec='${libname}${release}${shared_ext}$major'
18944  shlibpath_var=LD_LIBRARY_PATH
18945  ;;
18946
18947freebsd1*)
18948  dynamic_linker=no
18949  ;;
18950
18951freebsd*-gnu*)
18952  version_type=linux
18953  need_lib_prefix=no
18954  need_version=no
18955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18956  soname_spec='${libname}${release}${shared_ext}$major'
18957  shlibpath_var=LD_LIBRARY_PATH
18958  shlibpath_overrides_runpath=no
18959  hardcode_into_libs=yes
18960  dynamic_linker='GNU ld.so'
18961  ;;
18962
18963freebsd*)
18964  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18965  version_type=freebsd-$objformat
18966  case $version_type in
18967    freebsd-elf*)
18968      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18969      need_version=no
18970      need_lib_prefix=no
18971      ;;
18972    freebsd-*)
18973      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18974      need_version=yes
18975      ;;
18976  esac
18977  shlibpath_var=LD_LIBRARY_PATH
18978  case $host_os in
18979  freebsd2*)
18980    shlibpath_overrides_runpath=yes
18981    ;;
18982  freebsd3.01* | freebsdelf3.01*)
18983    shlibpath_overrides_runpath=yes
18984    hardcode_into_libs=yes
18985    ;;
18986  *) # from 3.2 on
18987    shlibpath_overrides_runpath=no
18988    hardcode_into_libs=yes
18989    ;;
18990  esac
18991  ;;
18992
18993gnu*)
18994  version_type=linux
18995  need_lib_prefix=no
18996  need_version=no
18997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18998  soname_spec='${libname}${release}${shared_ext}$major'
18999  shlibpath_var=LD_LIBRARY_PATH
19000  hardcode_into_libs=yes
19001  ;;
19002
19003hpux9* | hpux10* | hpux11*)
19004  # Give a soname corresponding to the major version so that dld.sl refuses to
19005  # link against other versions.
19006  version_type=sunos
19007  need_lib_prefix=no
19008  need_version=no
19009  case "$host_cpu" in
19010  ia64*)
19011    shrext='.so'
19012    hardcode_into_libs=yes
19013    dynamic_linker="$host_os dld.so"
19014    shlibpath_var=LD_LIBRARY_PATH
19015    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19016    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19017    soname_spec='${libname}${release}${shared_ext}$major'
19018    if test "X$HPUX_IA64_MODE" = X32; then
19019      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19020    else
19021      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19022    fi
19023    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19024    ;;
19025   hppa*64*)
19026     shrext='.sl'
19027     hardcode_into_libs=yes
19028     dynamic_linker="$host_os dld.sl"
19029     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19032     soname_spec='${libname}${release}${shared_ext}$major'
19033     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19034     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19035     ;;
19036   *)
19037    shrext='.sl'
19038    dynamic_linker="$host_os dld.sl"
19039    shlibpath_var=SHLIB_PATH
19040    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19041    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19042    soname_spec='${libname}${release}${shared_ext}$major'
19043    ;;
19044  esac
19045  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19046  postinstall_cmds='chmod 555 $lib'
19047  ;;
19048
19049irix5* | irix6* | nonstopux*)
19050  case $host_os in
19051    nonstopux*) version_type=nonstopux ;;
19052    *)
19053	if test "$lt_cv_prog_gnu_ld" = yes; then
19054		version_type=linux
19055	else
19056		version_type=irix
19057	fi ;;
19058  esac
19059  need_lib_prefix=no
19060  need_version=no
19061  soname_spec='${libname}${release}${shared_ext}$major'
19062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19063  case $host_os in
19064  irix5* | nonstopux*)
19065    libsuff= shlibsuff=
19066    ;;
19067  *)
19068    case $LD in # libtool.m4 will add one of these switches to LD
19069    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19070      libsuff= shlibsuff= libmagic=32-bit;;
19071    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19072      libsuff=32 shlibsuff=N32 libmagic=N32;;
19073    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19074      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19075    *) libsuff= shlibsuff= libmagic=never-match;;
19076    esac
19077    ;;
19078  esac
19079  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19080  shlibpath_overrides_runpath=no
19081  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19082  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19083  hardcode_into_libs=yes
19084  ;;
19085
19086# No shared lib support for Linux oldld, aout, or coff.
19087linux*oldld* | linux*aout* | linux*coff*)
19088  dynamic_linker=no
19089  ;;
19090
19091# This must be Linux ELF.
19092linux*)
19093  version_type=linux
19094  need_lib_prefix=no
19095  need_version=no
19096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19097  soname_spec='${libname}${release}${shared_ext}$major'
19098  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19099  libsuff=
19100  if test "x$LINUX_64_MODE" = x64; then
19101    # Some platforms are per default 64-bit, so there's no /lib64
19102    if test -d /lib64; then
19103      libsuff=64
19104    fi
19105  fi
19106  shlibpath_var=LD_LIBRARY_PATH
19107  shlibpath_overrides_runpath=no
19108  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
19109  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19110  # This implies no fast_install, which is unacceptable.
19111  # Some rework will be needed to allow for fast_install
19112  # before this can be enabled.
19113  hardcode_into_libs=yes
19114
19115  # We used to test for /lib/ld.so.1 and disable shared libraries on
19116  # powerpc, because MkLinux only supported shared libraries with the
19117  # GNU dynamic linker.  Since this was broken with cross compilers,
19118  # most powerpc-linux boxes support dynamic linking these days and
19119  # people can always --disable-shared, the test was removed, and we
19120  # assume the GNU/Linux dynamic linker is in use.
19121  dynamic_linker='GNU/Linux ld.so'
19122  ;;
19123
19124netbsd*)
19125  version_type=sunos
19126  need_lib_prefix=no
19127  need_version=no
19128  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19129    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19130    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19131    dynamic_linker='NetBSD (a.out) ld.so'
19132  else
19133    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
19134    soname_spec='${libname}${release}${shared_ext}$major'
19135    dynamic_linker='NetBSD ld.elf_so'
19136  fi
19137  shlibpath_var=LD_LIBRARY_PATH
19138  shlibpath_overrides_runpath=yes
19139  hardcode_into_libs=yes
19140  ;;
19141
19142newsos6)
19143  version_type=linux
19144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19145  shlibpath_var=LD_LIBRARY_PATH
19146  shlibpath_overrides_runpath=yes
19147  ;;
19148
19149nto-qnx*)
19150  version_type=linux
19151  need_lib_prefix=no
19152  need_version=no
19153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19154  soname_spec='${libname}${release}${shared_ext}$major'
19155  shlibpath_var=LD_LIBRARY_PATH
19156  shlibpath_overrides_runpath=yes
19157  ;;
19158
19159openbsd*)
19160  version_type=sunos
19161  need_lib_prefix=no
19162  need_version=no
19163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19164  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19165  shlibpath_var=LD_LIBRARY_PATH
19166  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19167    case $host_os in
19168      openbsd2.[89] | openbsd2.[89].*)
19169	shlibpath_overrides_runpath=no
19170	;;
19171      *)
19172	shlibpath_overrides_runpath=yes
19173	;;
19174      esac
19175  else
19176    shlibpath_overrides_runpath=yes
19177  fi
19178  ;;
19179
19180os2*)
19181  libname_spec='$name'
19182  shrext=".dll"
19183  need_lib_prefix=no
19184  library_names_spec='$libname${shared_ext} $libname.a'
19185  dynamic_linker='OS/2 ld.exe'
19186  shlibpath_var=LIBPATH
19187  ;;
19188
19189osf3* | osf4* | osf5*)
19190  version_type=osf
19191  need_lib_prefix=no
19192  need_version=no
19193  soname_spec='${libname}${release}${shared_ext}$major'
19194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19195  shlibpath_var=LD_LIBRARY_PATH
19196  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19197  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19198  ;;
19199
19200sco3.2v5*)
19201  version_type=osf
19202  soname_spec='${libname}${release}${shared_ext}$major'
19203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19204  shlibpath_var=LD_LIBRARY_PATH
19205  ;;
19206
19207solaris*)
19208  version_type=linux
19209  need_lib_prefix=no
19210  need_version=no
19211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19212  soname_spec='${libname}${release}${shared_ext}$major'
19213  shlibpath_var=LD_LIBRARY_PATH
19214  shlibpath_overrides_runpath=yes
19215  hardcode_into_libs=yes
19216  # ldd complains unless libraries are executable
19217  postinstall_cmds='chmod +x $lib'
19218  ;;
19219
19220sunos4*)
19221  version_type=sunos
19222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19223  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19224  shlibpath_var=LD_LIBRARY_PATH
19225  shlibpath_overrides_runpath=yes
19226  if test "$with_gnu_ld" = yes; then
19227    need_lib_prefix=no
19228  fi
19229  need_version=yes
19230  ;;
19231
19232sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19233  version_type=linux
19234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19235  soname_spec='${libname}${release}${shared_ext}$major'
19236  shlibpath_var=LD_LIBRARY_PATH
19237  case $host_vendor in
19238    sni)
19239      shlibpath_overrides_runpath=no
19240      need_lib_prefix=no
19241      export_dynamic_flag_spec='${wl}-Blargedynsym'
19242      runpath_var=LD_RUN_PATH
19243      ;;
19244    siemens)
19245      need_lib_prefix=no
19246      ;;
19247    motorola)
19248      need_lib_prefix=no
19249      need_version=no
19250      shlibpath_overrides_runpath=no
19251      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19252      ;;
19253  esac
19254  ;;
19255
19256sysv4*MP*)
19257  if test -d /usr/nec ;then
19258    version_type=linux
19259    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19260    soname_spec='$libname${shared_ext}.$major'
19261    shlibpath_var=LD_LIBRARY_PATH
19262  fi
19263  ;;
19264
19265uts4*)
19266  version_type=linux
19267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19268  soname_spec='${libname}${release}${shared_ext}$major'
19269  shlibpath_var=LD_LIBRARY_PATH
19270  ;;
19271
19272*)
19273  dynamic_linker=no
19274  ;;
19275esac
19276echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19277echo "${ECHO_T}$dynamic_linker" >&6
19278test "$dynamic_linker" = no && can_build_shared=no
19279
19280echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19281echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19282hardcode_action_GCJ=
19283if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19284   test -n "$runpath_var GCJ" || \
19285   test "X$hardcode_automatic_GCJ"="Xyes" ; then
19286
19287  # We can hardcode non-existant directories.
19288  if test "$hardcode_direct_GCJ" != no &&
19289     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19290     # have to relink, otherwise we might link with an installed library
19291     # when we should be linking with a yet-to-be-installed one
19292     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19293     test "$hardcode_minus_L_GCJ" != no; then
19294    # Linking always hardcodes the temporary library directory.
19295    hardcode_action_GCJ=relink
19296  else
19297    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19298    hardcode_action_GCJ=immediate
19299  fi
19300else
19301  # We cannot hardcode anything, or else we can only hardcode existing
19302  # directories.
19303  hardcode_action_GCJ=unsupported
19304fi
19305echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19306echo "${ECHO_T}$hardcode_action_GCJ" >&6
19307
19308if test "$hardcode_action_GCJ" = relink; then
19309  # Fast installation is not supported
19310  enable_fast_install=no
19311elif test "$shlibpath_overrides_runpath" = yes ||
19312     test "$enable_shared" = no; then
19313  # Fast installation is not necessary
19314  enable_fast_install=needless
19315fi
19316
19317striplib=
19318old_striplib=
19319echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19320echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19321if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19322  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19323  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19324  echo "$as_me:$LINENO: result: yes" >&5
19325echo "${ECHO_T}yes" >&6
19326else
19327# FIXME - insert some real tests, host_os isn't really good enough
19328  case $host_os in
19329   darwin*)
19330       if test -n "$STRIP" ; then
19331         striplib="$STRIP -x"
19332         echo "$as_me:$LINENO: result: yes" >&5
19333echo "${ECHO_T}yes" >&6
19334       else
19335  echo "$as_me:$LINENO: result: no" >&5
19336echo "${ECHO_T}no" >&6
19337fi
19338       ;;
19339   *)
19340  echo "$as_me:$LINENO: result: no" >&5
19341echo "${ECHO_T}no" >&6
19342    ;;
19343  esac
19344fi
19345
19346if test "x$enable_dlopen" != xyes; then
19347  enable_dlopen=unknown
19348  enable_dlopen_self=unknown
19349  enable_dlopen_self_static=unknown
19350else
19351  lt_cv_dlopen=no
19352  lt_cv_dlopen_libs=
19353
19354  case $host_os in
19355  beos*)
19356    lt_cv_dlopen="load_add_on"
19357    lt_cv_dlopen_libs=
19358    lt_cv_dlopen_self=yes
19359    ;;
19360
19361  mingw* | pw32*)
19362    lt_cv_dlopen="LoadLibrary"
19363    lt_cv_dlopen_libs=
19364   ;;
19365
19366  cygwin*)
19367    lt_cv_dlopen="dlopen"
19368    lt_cv_dlopen_libs=
19369   ;;
19370
19371  darwin*)
19372  # if libdl is installed we need to link against it
19373    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19374echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19375if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19376  echo $ECHO_N "(cached) $ECHO_C" >&6
19377else
19378  ac_check_lib_save_LIBS=$LIBS
19379LIBS="-ldl  $LIBS"
19380cat >conftest.$ac_ext <<_ACEOF
19381/* confdefs.h.  */
19382_ACEOF
19383cat confdefs.h >>conftest.$ac_ext
19384cat >>conftest.$ac_ext <<_ACEOF
19385/* end confdefs.h.  */
19386
19387/* Override any gcc2 internal prototype to avoid an error.  */
19388#ifdef __cplusplus
19389extern "C"
19390#endif
19391/* We use char because int might match the return type of a gcc2
19392   builtin and then its argument prototype would still apply.  */
19393char dlopen ();
19394int
19395main ()
19396{
19397dlopen ();
19398  ;
19399  return 0;
19400}
19401_ACEOF
19402rm -f conftest.$ac_objext conftest$ac_exeext
19403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19404  (eval $ac_link) 2>conftest.er1
19405  ac_status=$?
19406  grep -v '^ *+' conftest.er1 >conftest.err
19407  rm -f conftest.er1
19408  cat conftest.err >&5
19409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410  (exit $ac_status); } &&
19411	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413  (eval $ac_try) 2>&5
19414  ac_status=$?
19415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416  (exit $ac_status); }; } &&
19417	 { ac_try='test -s conftest$ac_exeext'
19418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419  (eval $ac_try) 2>&5
19420  ac_status=$?
19421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422  (exit $ac_status); }; }; then
19423  ac_cv_lib_dl_dlopen=yes
19424else
19425  echo "$as_me: failed program was:" >&5
19426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428ac_cv_lib_dl_dlopen=no
19429fi
19430rm -f conftest.err conftest.$ac_objext \
19431      conftest$ac_exeext conftest.$ac_ext
19432LIBS=$ac_check_lib_save_LIBS
19433fi
19434echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19435echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19436if test $ac_cv_lib_dl_dlopen = yes; then
19437  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19438else
19439
19440    lt_cv_dlopen="dyld"
19441    lt_cv_dlopen_libs=
19442    lt_cv_dlopen_self=yes
19443
19444fi
19445
19446   ;;
19447
19448  *)
19449    echo "$as_me:$LINENO: checking for shl_load" >&5
19450echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19451if test "${ac_cv_func_shl_load+set}" = set; then
19452  echo $ECHO_N "(cached) $ECHO_C" >&6
19453else
19454  cat >conftest.$ac_ext <<_ACEOF
19455/* confdefs.h.  */
19456_ACEOF
19457cat confdefs.h >>conftest.$ac_ext
19458cat >>conftest.$ac_ext <<_ACEOF
19459/* end confdefs.h.  */
19460/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19461   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19462#define shl_load innocuous_shl_load
19463
19464/* System header to define __stub macros and hopefully few prototypes,
19465    which can conflict with char shl_load (); below.
19466    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19467    <limits.h> exists even on freestanding compilers.  */
19468
19469#ifdef __STDC__
19470# include <limits.h>
19471#else
19472# include <assert.h>
19473#endif
19474
19475#undef shl_load
19476
19477/* Override any gcc2 internal prototype to avoid an error.  */
19478#ifdef __cplusplus
19479extern "C"
19480{
19481#endif
19482/* We use char because int might match the return type of a gcc2
19483   builtin and then its argument prototype would still apply.  */
19484char shl_load ();
19485/* The GNU C library defines this for functions which it implements
19486    to always fail with ENOSYS.  Some functions are actually named
19487    something starting with __ and the normal name is an alias.  */
19488#if defined (__stub_shl_load) || defined (__stub___shl_load)
19489choke me
19490#else
19491char (*f) () = shl_load;
19492#endif
19493#ifdef __cplusplus
19494}
19495#endif
19496
19497int
19498main ()
19499{
19500return f != shl_load;
19501  ;
19502  return 0;
19503}
19504_ACEOF
19505rm -f conftest.$ac_objext conftest$ac_exeext
19506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19507  (eval $ac_link) 2>conftest.er1
19508  ac_status=$?
19509  grep -v '^ *+' conftest.er1 >conftest.err
19510  rm -f conftest.er1
19511  cat conftest.err >&5
19512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513  (exit $ac_status); } &&
19514	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516  (eval $ac_try) 2>&5
19517  ac_status=$?
19518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519  (exit $ac_status); }; } &&
19520	 { ac_try='test -s conftest$ac_exeext'
19521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522  (eval $ac_try) 2>&5
19523  ac_status=$?
19524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525  (exit $ac_status); }; }; then
19526  ac_cv_func_shl_load=yes
19527else
19528  echo "$as_me: failed program was:" >&5
19529sed 's/^/| /' conftest.$ac_ext >&5
19530
19531ac_cv_func_shl_load=no
19532fi
19533rm -f conftest.err conftest.$ac_objext \
19534      conftest$ac_exeext conftest.$ac_ext
19535fi
19536echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19537echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19538if test $ac_cv_func_shl_load = yes; then
19539  lt_cv_dlopen="shl_load"
19540else
19541  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19542echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19543if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19544  echo $ECHO_N "(cached) $ECHO_C" >&6
19545else
19546  ac_check_lib_save_LIBS=$LIBS
19547LIBS="-ldld  $LIBS"
19548cat >conftest.$ac_ext <<_ACEOF
19549/* confdefs.h.  */
19550_ACEOF
19551cat confdefs.h >>conftest.$ac_ext
19552cat >>conftest.$ac_ext <<_ACEOF
19553/* end confdefs.h.  */
19554
19555/* Override any gcc2 internal prototype to avoid an error.  */
19556#ifdef __cplusplus
19557extern "C"
19558#endif
19559/* We use char because int might match the return type of a gcc2
19560   builtin and then its argument prototype would still apply.  */
19561char shl_load ();
19562int
19563main ()
19564{
19565shl_load ();
19566  ;
19567  return 0;
19568}
19569_ACEOF
19570rm -f conftest.$ac_objext conftest$ac_exeext
19571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19572  (eval $ac_link) 2>conftest.er1
19573  ac_status=$?
19574  grep -v '^ *+' conftest.er1 >conftest.err
19575  rm -f conftest.er1
19576  cat conftest.err >&5
19577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578  (exit $ac_status); } &&
19579	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581  (eval $ac_try) 2>&5
19582  ac_status=$?
19583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584  (exit $ac_status); }; } &&
19585	 { ac_try='test -s conftest$ac_exeext'
19586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587  (eval $ac_try) 2>&5
19588  ac_status=$?
19589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590  (exit $ac_status); }; }; then
19591  ac_cv_lib_dld_shl_load=yes
19592else
19593  echo "$as_me: failed program was:" >&5
19594sed 's/^/| /' conftest.$ac_ext >&5
19595
19596ac_cv_lib_dld_shl_load=no
19597fi
19598rm -f conftest.err conftest.$ac_objext \
19599      conftest$ac_exeext conftest.$ac_ext
19600LIBS=$ac_check_lib_save_LIBS
19601fi
19602echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19603echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19604if test $ac_cv_lib_dld_shl_load = yes; then
19605  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19606else
19607  echo "$as_me:$LINENO: checking for dlopen" >&5
19608echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19609if test "${ac_cv_func_dlopen+set}" = set; then
19610  echo $ECHO_N "(cached) $ECHO_C" >&6
19611else
19612  cat >conftest.$ac_ext <<_ACEOF
19613/* confdefs.h.  */
19614_ACEOF
19615cat confdefs.h >>conftest.$ac_ext
19616cat >>conftest.$ac_ext <<_ACEOF
19617/* end confdefs.h.  */
19618/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19619   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19620#define dlopen innocuous_dlopen
19621
19622/* System header to define __stub macros and hopefully few prototypes,
19623    which can conflict with char dlopen (); below.
19624    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19625    <limits.h> exists even on freestanding compilers.  */
19626
19627#ifdef __STDC__
19628# include <limits.h>
19629#else
19630# include <assert.h>
19631#endif
19632
19633#undef dlopen
19634
19635/* Override any gcc2 internal prototype to avoid an error.  */
19636#ifdef __cplusplus
19637extern "C"
19638{
19639#endif
19640/* We use char because int might match the return type of a gcc2
19641   builtin and then its argument prototype would still apply.  */
19642char dlopen ();
19643/* The GNU C library defines this for functions which it implements
19644    to always fail with ENOSYS.  Some functions are actually named
19645    something starting with __ and the normal name is an alias.  */
19646#if defined (__stub_dlopen) || defined (__stub___dlopen)
19647choke me
19648#else
19649char (*f) () = dlopen;
19650#endif
19651#ifdef __cplusplus
19652}
19653#endif
19654
19655int
19656main ()
19657{
19658return f != dlopen;
19659  ;
19660  return 0;
19661}
19662_ACEOF
19663rm -f conftest.$ac_objext conftest$ac_exeext
19664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19665  (eval $ac_link) 2>conftest.er1
19666  ac_status=$?
19667  grep -v '^ *+' conftest.er1 >conftest.err
19668  rm -f conftest.er1
19669  cat conftest.err >&5
19670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671  (exit $ac_status); } &&
19672	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674  (eval $ac_try) 2>&5
19675  ac_status=$?
19676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677  (exit $ac_status); }; } &&
19678	 { ac_try='test -s conftest$ac_exeext'
19679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680  (eval $ac_try) 2>&5
19681  ac_status=$?
19682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683  (exit $ac_status); }; }; then
19684  ac_cv_func_dlopen=yes
19685else
19686  echo "$as_me: failed program was:" >&5
19687sed 's/^/| /' conftest.$ac_ext >&5
19688
19689ac_cv_func_dlopen=no
19690fi
19691rm -f conftest.err conftest.$ac_objext \
19692      conftest$ac_exeext conftest.$ac_ext
19693fi
19694echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19695echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19696if test $ac_cv_func_dlopen = yes; then
19697  lt_cv_dlopen="dlopen"
19698else
19699  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19700echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19701if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19702  echo $ECHO_N "(cached) $ECHO_C" >&6
19703else
19704  ac_check_lib_save_LIBS=$LIBS
19705LIBS="-ldl  $LIBS"
19706cat >conftest.$ac_ext <<_ACEOF
19707/* confdefs.h.  */
19708_ACEOF
19709cat confdefs.h >>conftest.$ac_ext
19710cat >>conftest.$ac_ext <<_ACEOF
19711/* end confdefs.h.  */
19712
19713/* Override any gcc2 internal prototype to avoid an error.  */
19714#ifdef __cplusplus
19715extern "C"
19716#endif
19717/* We use char because int might match the return type of a gcc2
19718   builtin and then its argument prototype would still apply.  */
19719char dlopen ();
19720int
19721main ()
19722{
19723dlopen ();
19724  ;
19725  return 0;
19726}
19727_ACEOF
19728rm -f conftest.$ac_objext conftest$ac_exeext
19729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19730  (eval $ac_link) 2>conftest.er1
19731  ac_status=$?
19732  grep -v '^ *+' conftest.er1 >conftest.err
19733  rm -f conftest.er1
19734  cat conftest.err >&5
19735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736  (exit $ac_status); } &&
19737	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739  (eval $ac_try) 2>&5
19740  ac_status=$?
19741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742  (exit $ac_status); }; } &&
19743	 { ac_try='test -s conftest$ac_exeext'
19744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745  (eval $ac_try) 2>&5
19746  ac_status=$?
19747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748  (exit $ac_status); }; }; then
19749  ac_cv_lib_dl_dlopen=yes
19750else
19751  echo "$as_me: failed program was:" >&5
19752sed 's/^/| /' conftest.$ac_ext >&5
19753
19754ac_cv_lib_dl_dlopen=no
19755fi
19756rm -f conftest.err conftest.$ac_objext \
19757      conftest$ac_exeext conftest.$ac_ext
19758LIBS=$ac_check_lib_save_LIBS
19759fi
19760echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19761echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19762if test $ac_cv_lib_dl_dlopen = yes; then
19763  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19764else
19765  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19766echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19767if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19768  echo $ECHO_N "(cached) $ECHO_C" >&6
19769else
19770  ac_check_lib_save_LIBS=$LIBS
19771LIBS="-lsvld  $LIBS"
19772cat >conftest.$ac_ext <<_ACEOF
19773/* confdefs.h.  */
19774_ACEOF
19775cat confdefs.h >>conftest.$ac_ext
19776cat >>conftest.$ac_ext <<_ACEOF
19777/* end confdefs.h.  */
19778
19779/* Override any gcc2 internal prototype to avoid an error.  */
19780#ifdef __cplusplus
19781extern "C"
19782#endif
19783/* We use char because int might match the return type of a gcc2
19784   builtin and then its argument prototype would still apply.  */
19785char dlopen ();
19786int
19787main ()
19788{
19789dlopen ();
19790  ;
19791  return 0;
19792}
19793_ACEOF
19794rm -f conftest.$ac_objext conftest$ac_exeext
19795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19796  (eval $ac_link) 2>conftest.er1
19797  ac_status=$?
19798  grep -v '^ *+' conftest.er1 >conftest.err
19799  rm -f conftest.er1
19800  cat conftest.err >&5
19801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802  (exit $ac_status); } &&
19803	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805  (eval $ac_try) 2>&5
19806  ac_status=$?
19807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808  (exit $ac_status); }; } &&
19809	 { ac_try='test -s conftest$ac_exeext'
19810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811  (eval $ac_try) 2>&5
19812  ac_status=$?
19813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814  (exit $ac_status); }; }; then
19815  ac_cv_lib_svld_dlopen=yes
19816else
19817  echo "$as_me: failed program was:" >&5
19818sed 's/^/| /' conftest.$ac_ext >&5
19819
19820ac_cv_lib_svld_dlopen=no
19821fi
19822rm -f conftest.err conftest.$ac_objext \
19823      conftest$ac_exeext conftest.$ac_ext
19824LIBS=$ac_check_lib_save_LIBS
19825fi
19826echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19827echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19828if test $ac_cv_lib_svld_dlopen = yes; then
19829  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19830else
19831  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19832echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19833if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19834  echo $ECHO_N "(cached) $ECHO_C" >&6
19835else
19836  ac_check_lib_save_LIBS=$LIBS
19837LIBS="-ldld  $LIBS"
19838cat >conftest.$ac_ext <<_ACEOF
19839/* confdefs.h.  */
19840_ACEOF
19841cat confdefs.h >>conftest.$ac_ext
19842cat >>conftest.$ac_ext <<_ACEOF
19843/* end confdefs.h.  */
19844
19845/* Override any gcc2 internal prototype to avoid an error.  */
19846#ifdef __cplusplus
19847extern "C"
19848#endif
19849/* We use char because int might match the return type of a gcc2
19850   builtin and then its argument prototype would still apply.  */
19851char dld_link ();
19852int
19853main ()
19854{
19855dld_link ();
19856  ;
19857  return 0;
19858}
19859_ACEOF
19860rm -f conftest.$ac_objext conftest$ac_exeext
19861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19862  (eval $ac_link) 2>conftest.er1
19863  ac_status=$?
19864  grep -v '^ *+' conftest.er1 >conftest.err
19865  rm -f conftest.er1
19866  cat conftest.err >&5
19867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868  (exit $ac_status); } &&
19869	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871  (eval $ac_try) 2>&5
19872  ac_status=$?
19873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874  (exit $ac_status); }; } &&
19875	 { ac_try='test -s conftest$ac_exeext'
19876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877  (eval $ac_try) 2>&5
19878  ac_status=$?
19879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880  (exit $ac_status); }; }; then
19881  ac_cv_lib_dld_dld_link=yes
19882else
19883  echo "$as_me: failed program was:" >&5
19884sed 's/^/| /' conftest.$ac_ext >&5
19885
19886ac_cv_lib_dld_dld_link=no
19887fi
19888rm -f conftest.err conftest.$ac_objext \
19889      conftest$ac_exeext conftest.$ac_ext
19890LIBS=$ac_check_lib_save_LIBS
19891fi
19892echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19893echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19894if test $ac_cv_lib_dld_dld_link = yes; then
19895  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19896fi
19897
19898
19899fi
19900
19901
19902fi
19903
19904
19905fi
19906
19907
19908fi
19909
19910
19911fi
19912
19913    ;;
19914  esac
19915
19916  if test "x$lt_cv_dlopen" != xno; then
19917    enable_dlopen=yes
19918  else
19919    enable_dlopen=no
19920  fi
19921
19922  case $lt_cv_dlopen in
19923  dlopen)
19924    save_CPPFLAGS="$CPPFLAGS"
19925    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19926
19927    save_LDFLAGS="$LDFLAGS"
19928    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19929
19930    save_LIBS="$LIBS"
19931    LIBS="$lt_cv_dlopen_libs $LIBS"
19932
19933    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19934echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19935if test "${lt_cv_dlopen_self+set}" = set; then
19936  echo $ECHO_N "(cached) $ECHO_C" >&6
19937else
19938  	  if test "$cross_compiling" = yes; then :
19939  lt_cv_dlopen_self=cross
19940else
19941  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19942  lt_status=$lt_dlunknown
19943  cat > conftest.$ac_ext <<EOF
19944#line 19944 "configure"
19945#include "confdefs.h"
19946
19947#if HAVE_DLFCN_H
19948#include <dlfcn.h>
19949#endif
19950
19951#include <stdio.h>
19952
19953#ifdef RTLD_GLOBAL
19954#  define LT_DLGLOBAL		RTLD_GLOBAL
19955#else
19956#  ifdef DL_GLOBAL
19957#    define LT_DLGLOBAL		DL_GLOBAL
19958#  else
19959#    define LT_DLGLOBAL		0
19960#  endif
19961#endif
19962
19963/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19964   find out it does not work in some platform. */
19965#ifndef LT_DLLAZY_OR_NOW
19966#  ifdef RTLD_LAZY
19967#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19968#  else
19969#    ifdef DL_LAZY
19970#      define LT_DLLAZY_OR_NOW		DL_LAZY
19971#    else
19972#      ifdef RTLD_NOW
19973#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19974#      else
19975#        ifdef DL_NOW
19976#          define LT_DLLAZY_OR_NOW	DL_NOW
19977#        else
19978#          define LT_DLLAZY_OR_NOW	0
19979#        endif
19980#      endif
19981#    endif
19982#  endif
19983#endif
19984
19985#ifdef __cplusplus
19986extern "C" void exit (int);
19987#endif
19988
19989void fnord() { int i=42;}
19990int main ()
19991{
19992  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19993  int status = $lt_dlunknown;
19994
19995  if (self)
19996    {
19997      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19998      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19999      /* dlclose (self); */
20000    }
20001
20002    exit (status);
20003}
20004EOF
20005  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20006  (eval $ac_link) 2>&5
20007  ac_status=$?
20008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20010    (./conftest; exit; ) 2>/dev/null
20011    lt_status=$?
20012    case x$lt_status in
20013      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20014      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20015      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20016    esac
20017  else :
20018    # compilation failed
20019    lt_cv_dlopen_self=no
20020  fi
20021fi
20022rm -fr conftest*
20023
20024
20025fi
20026echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20027echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20028
20029    if test "x$lt_cv_dlopen_self" = xyes; then
20030      LDFLAGS="$LDFLAGS $link_static_flag"
20031      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20032echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20033if test "${lt_cv_dlopen_self_static+set}" = set; then
20034  echo $ECHO_N "(cached) $ECHO_C" >&6
20035else
20036  	  if test "$cross_compiling" = yes; then :
20037  lt_cv_dlopen_self_static=cross
20038else
20039  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20040  lt_status=$lt_dlunknown
20041  cat > conftest.$ac_ext <<EOF
20042#line 20042 "configure"
20043#include "confdefs.h"
20044
20045#if HAVE_DLFCN_H
20046#include <dlfcn.h>
20047#endif
20048
20049#include <stdio.h>
20050
20051#ifdef RTLD_GLOBAL
20052#  define LT_DLGLOBAL		RTLD_GLOBAL
20053#else
20054#  ifdef DL_GLOBAL
20055#    define LT_DLGLOBAL		DL_GLOBAL
20056#  else
20057#    define LT_DLGLOBAL		0
20058#  endif
20059#endif
20060
20061/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20062   find out it does not work in some platform. */
20063#ifndef LT_DLLAZY_OR_NOW
20064#  ifdef RTLD_LAZY
20065#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20066#  else
20067#    ifdef DL_LAZY
20068#      define LT_DLLAZY_OR_NOW		DL_LAZY
20069#    else
20070#      ifdef RTLD_NOW
20071#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20072#      else
20073#        ifdef DL_NOW
20074#          define LT_DLLAZY_OR_NOW	DL_NOW
20075#        else
20076#          define LT_DLLAZY_OR_NOW	0
20077#        endif
20078#      endif
20079#    endif
20080#  endif
20081#endif
20082
20083#ifdef __cplusplus
20084extern "C" void exit (int);
20085#endif
20086
20087void fnord() { int i=42;}
20088int main ()
20089{
20090  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20091  int status = $lt_dlunknown;
20092
20093  if (self)
20094    {
20095      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20096      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20097      /* dlclose (self); */
20098    }
20099
20100    exit (status);
20101}
20102EOF
20103  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20104  (eval $ac_link) 2>&5
20105  ac_status=$?
20106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20108    (./conftest; exit; ) 2>/dev/null
20109    lt_status=$?
20110    case x$lt_status in
20111      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20112      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20113      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20114    esac
20115  else :
20116    # compilation failed
20117    lt_cv_dlopen_self_static=no
20118  fi
20119fi
20120rm -fr conftest*
20121
20122
20123fi
20124echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20125echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20126    fi
20127
20128    CPPFLAGS="$save_CPPFLAGS"
20129    LDFLAGS="$save_LDFLAGS"
20130    LIBS="$save_LIBS"
20131    ;;
20132  esac
20133
20134  case $lt_cv_dlopen_self in
20135  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20136  *) enable_dlopen_self=unknown ;;
20137  esac
20138
20139  case $lt_cv_dlopen_self_static in
20140  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20141  *) enable_dlopen_self_static=unknown ;;
20142  esac
20143fi
20144
20145
20146# The else clause should only fire when bootstrapping the
20147# libtool distribution, otherwise you forgot to ship ltmain.sh
20148# with your package, and you will get complaints that there are
20149# no rules to generate ltmain.sh.
20150if test -f "$ltmain"; then
20151  # See if we are running on zsh, and set the options which allow our commands through
20152  # without removal of \ escapes.
20153  if test -n "${ZSH_VERSION+set}" ; then
20154    setopt NO_GLOB_SUBST
20155  fi
20156  # Now quote all the things that may contain metacharacters while being
20157  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20158  # variables and quote the copies for generation of the libtool script.
20159  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
20160    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20161    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20162    deplibs_check_method reload_flag reload_cmds need_locks \
20163    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20164    lt_cv_sys_global_symbol_to_c_name_address \
20165    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20166    old_postinstall_cmds old_postuninstall_cmds \
20167    compiler_GCJ \
20168    CC_GCJ \
20169    LD_GCJ \
20170    lt_prog_compiler_wl_GCJ \
20171    lt_prog_compiler_pic_GCJ \
20172    lt_prog_compiler_static_GCJ \
20173    lt_prog_compiler_no_builtin_flag_GCJ \
20174    export_dynamic_flag_spec_GCJ \
20175    thread_safe_flag_spec_GCJ \
20176    whole_archive_flag_spec_GCJ \
20177    enable_shared_with_static_runtimes_GCJ \
20178    old_archive_cmds_GCJ \
20179    old_archive_from_new_cmds_GCJ \
20180    predep_objects_GCJ \
20181    postdep_objects_GCJ \
20182    predeps_GCJ \
20183    postdeps_GCJ \
20184    compiler_lib_search_path_GCJ \
20185    archive_cmds_GCJ \
20186    archive_expsym_cmds_GCJ \
20187    postinstall_cmds_GCJ \
20188    postuninstall_cmds_GCJ \
20189    old_archive_from_expsyms_cmds_GCJ \
20190    allow_undefined_flag_GCJ \
20191    no_undefined_flag_GCJ \
20192    export_symbols_cmds_GCJ \
20193    hardcode_libdir_flag_spec_GCJ \
20194    hardcode_libdir_flag_spec_ld_GCJ \
20195    hardcode_libdir_separator_GCJ \
20196    hardcode_automatic_GCJ \
20197    module_cmds_GCJ \
20198    module_expsym_cmds_GCJ \
20199    lt_cv_prog_compiler_c_o_GCJ \
20200    exclude_expsyms_GCJ \
20201    include_expsyms_GCJ; do
20202
20203    case $var in
20204    old_archive_cmds_GCJ | \
20205    old_archive_from_new_cmds_GCJ | \
20206    archive_cmds_GCJ | \
20207    archive_expsym_cmds_GCJ | \
20208    module_cmds_GCJ | \
20209    module_expsym_cmds_GCJ | \
20210    old_archive_from_expsyms_cmds_GCJ | \
20211    export_symbols_cmds_GCJ | \
20212    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20213    postinstall_cmds | postuninstall_cmds | \
20214    old_postinstall_cmds | old_postuninstall_cmds | \
20215    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20216      # Double-quote double-evaled strings.
20217      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20218      ;;
20219    *)
20220      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20221      ;;
20222    esac
20223  done
20224
20225  case $lt_echo in
20226  *'\$0 --fallback-echo"')
20227    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20228    ;;
20229  esac
20230
20231cfgfile="$ofile"
20232
20233  cat <<__EOF__ >> "$cfgfile"
20234# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20235
20236# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20237
20238# Shell to use when invoking shell scripts.
20239SHELL=$lt_SHELL
20240
20241# Whether or not to build shared libraries.
20242build_libtool_libs=$enable_shared
20243
20244# Whether or not to build static libraries.
20245build_old_libs=$enable_static
20246
20247# Whether or not to add -lc for building shared libraries.
20248build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20249
20250# Whether or not to disallow shared libs when runtime libs are static
20251allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20252
20253# Whether or not to optimize for fast installation.
20254fast_install=$enable_fast_install
20255
20256# The host system.
20257host_alias=$host_alias
20258host=$host
20259
20260# An echo program that does not interpret backslashes.
20261echo=$lt_echo
20262
20263# The archiver.
20264AR=$lt_AR
20265AR_FLAGS=$lt_AR_FLAGS
20266
20267# A C compiler.
20268LTCC=$lt_LTCC
20269
20270# A language-specific compiler.
20271CC=$lt_compiler_GCJ
20272
20273# Is the compiler the GNU C compiler?
20274with_gcc=$GCC_GCJ
20275
20276# An ERE matcher.
20277EGREP=$lt_EGREP
20278
20279# The linker used to build libraries.
20280LD=$lt_LD_GCJ
20281
20282# Whether we need hard or soft links.
20283LN_S=$lt_LN_S
20284
20285# A BSD-compatible nm program.
20286NM=$lt_NM
20287
20288# A symbol stripping program
20289STRIP=$STRIP
20290
20291# Used to examine libraries when file_magic_cmd begins "file"
20292MAGIC_CMD=$MAGIC_CMD
20293
20294# Used on cygwin: DLL creation program.
20295DLLTOOL="$DLLTOOL"
20296
20297# Used on cygwin: object dumper.
20298OBJDUMP="$OBJDUMP"
20299
20300# Used on cygwin: assembler.
20301AS="$AS"
20302
20303# The name of the directory that contains temporary libtool files.
20304objdir=$objdir
20305
20306# How to create reloadable object files.
20307reload_flag=$lt_reload_flag
20308reload_cmds=$lt_reload_cmds
20309
20310# How to pass a linker flag through the compiler.
20311wl=$lt_lt_prog_compiler_wl_GCJ
20312
20313# Object file suffix (normally "o").
20314objext="$ac_objext"
20315
20316# Old archive suffix (normally "a").
20317libext="$libext"
20318
20319# Shared library suffix (normally ".so").
20320shrext='$shrext'
20321
20322# Executable file suffix (normally "").
20323exeext="$exeext"
20324
20325# Additional compiler flags for building library objects.
20326pic_flag=$lt_lt_prog_compiler_pic_GCJ
20327pic_mode=$pic_mode
20328
20329# What is the maximum length of a command?
20330max_cmd_len=$lt_cv_sys_max_cmd_len
20331
20332# Does compiler simultaneously support -c and -o options?
20333compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20334
20335# Must we lock files when doing compilation ?
20336need_locks=$lt_need_locks
20337
20338# Do we need the lib prefix for modules?
20339need_lib_prefix=$need_lib_prefix
20340
20341# Do we need a version for libraries?
20342need_version=$need_version
20343
20344# Whether dlopen is supported.
20345dlopen_support=$enable_dlopen
20346
20347# Whether dlopen of programs is supported.
20348dlopen_self=$enable_dlopen_self
20349
20350# Whether dlopen of statically linked programs is supported.
20351dlopen_self_static=$enable_dlopen_self_static
20352
20353# Compiler flag to prevent dynamic linking.
20354link_static_flag=$lt_lt_prog_compiler_static_GCJ
20355
20356# Compiler flag to turn off builtin functions.
20357no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20358
20359# Compiler flag to allow reflexive dlopens.
20360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20361
20362# Compiler flag to generate shared objects directly from archives.
20363whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20364
20365# Compiler flag to generate thread-safe objects.
20366thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20367
20368# Library versioning type.
20369version_type=$version_type
20370
20371# Format of library name prefix.
20372libname_spec=$lt_libname_spec
20373
20374# List of archive names.  First name is the real one, the rest are links.
20375# The last name is the one that the linker finds with -lNAME.
20376library_names_spec=$lt_library_names_spec
20377
20378# The coded name of the library, if different from the real name.
20379soname_spec=$lt_soname_spec
20380
20381# Commands used to build and install an old-style archive.
20382RANLIB=$lt_RANLIB
20383old_archive_cmds=$lt_old_archive_cmds_GCJ
20384old_postinstall_cmds=$lt_old_postinstall_cmds
20385old_postuninstall_cmds=$lt_old_postuninstall_cmds
20386
20387# Create an old-style archive from a shared archive.
20388old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20389
20390# Create a temporary old-style archive to link instead of a shared archive.
20391old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20392
20393# Commands used to build and install a shared archive.
20394archive_cmds=$lt_archive_cmds_GCJ
20395archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20396postinstall_cmds=$lt_postinstall_cmds
20397postuninstall_cmds=$lt_postuninstall_cmds
20398
20399# Commands used to build a loadable module (assumed same as above if empty)
20400module_cmds=$lt_module_cmds_GCJ
20401module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20402
20403# Commands to strip libraries.
20404old_striplib=$lt_old_striplib
20405striplib=$lt_striplib
20406
20407# Dependencies to place before the objects being linked to create a
20408# shared library.
20409predep_objects=$lt_predep_objects_GCJ
20410
20411# Dependencies to place after the objects being linked to create a
20412# shared library.
20413postdep_objects=$lt_postdep_objects_GCJ
20414
20415# Dependencies to place before the objects being linked to create a
20416# shared library.
20417predeps=$lt_predeps_GCJ
20418
20419# Dependencies to place after the objects being linked to create a
20420# shared library.
20421postdeps=$lt_postdeps_GCJ
20422
20423# The library search path used internally by the compiler when linking
20424# a shared library.
20425compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20426
20427# Method to check whether dependent libraries are shared objects.
20428deplibs_check_method=$lt_deplibs_check_method
20429
20430# Command to use when deplibs_check_method == file_magic.
20431file_magic_cmd=$lt_file_magic_cmd
20432
20433# Flag that allows shared libraries with undefined symbols to be built.
20434allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20435
20436# Flag that forces no undefined symbols.
20437no_undefined_flag=$lt_no_undefined_flag_GCJ
20438
20439# Commands used to finish a libtool library installation in a directory.
20440finish_cmds=$lt_finish_cmds
20441
20442# Same as above, but a single script fragment to be evaled but not shown.
20443finish_eval=$lt_finish_eval
20444
20445# Take the output of nm and produce a listing of raw symbols and C names.
20446global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20447
20448# Transform the output of nm in a proper C declaration
20449global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20450
20451# Transform the output of nm in a C name address pair
20452global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20453
20454# This is the shared library runtime path variable.
20455runpath_var=$runpath_var
20456
20457# This is the shared library path variable.
20458shlibpath_var=$shlibpath_var
20459
20460# Is shlibpath searched before the hard-coded library search path?
20461shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20462
20463# How to hardcode a shared library path into an executable.
20464hardcode_action=$hardcode_action_GCJ
20465
20466# Whether we should hardcode library paths into libraries.
20467hardcode_into_libs=$hardcode_into_libs
20468
20469# Flag to hardcode \$libdir into a binary during linking.
20470# This must work even if \$libdir does not exist.
20471hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20472
20473# If ld is used when linking, flag to hardcode \$libdir into
20474# a binary during linking. This must work even if \$libdir does
20475# not exist.
20476hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20477
20478# Whether we need a single -rpath flag with a separated argument.
20479hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20480
20481# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20482# resulting binary.
20483hardcode_direct=$hardcode_direct_GCJ
20484
20485# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20486# resulting binary.
20487hardcode_minus_L=$hardcode_minus_L_GCJ
20488
20489# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20490# the resulting binary.
20491hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20492
20493# Set to yes if building a shared library automatically hardcodes DIR into the library
20494# and all subsequent libraries and executables linked against it.
20495hardcode_automatic=$hardcode_automatic_GCJ
20496
20497# Variables whose values should be saved in libtool wrapper scripts and
20498# restored at relink time.
20499variables_saved_for_relink="$variables_saved_for_relink"
20500
20501# Whether libtool must link a program against all its dependency libraries.
20502link_all_deplibs=$link_all_deplibs_GCJ
20503
20504# Compile-time system search path for libraries
20505sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20506
20507# Run-time system search path for libraries
20508sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20509
20510# Fix the shell variable \$srcfile for the compiler.
20511fix_srcfile_path="$fix_srcfile_path_GCJ"
20512
20513# Set to yes if exported symbols are required.
20514always_export_symbols=$always_export_symbols_GCJ
20515
20516# The commands to list exported symbols.
20517export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20518
20519# The commands to extract the exported symbol list from a shared archive.
20520extract_expsyms_cmds=$lt_extract_expsyms_cmds
20521
20522# Symbols that should not be listed in the preloaded symbols.
20523exclude_expsyms=$lt_exclude_expsyms_GCJ
20524
20525# Symbols that must always be exported.
20526include_expsyms=$lt_include_expsyms_GCJ
20527
20528# ### END LIBTOOL TAG CONFIG: $tagname
20529
20530__EOF__
20531
20532
20533else
20534  # If there is no Makefile yet, we rely on a make rule to execute
20535  # `config.status --recheck' to rerun these tests and create the
20536  # libtool script then.
20537  test -f Makefile && make "$ltmain"
20538fi
20539
20540
20541ac_ext=c
20542ac_cpp='$CPP $CPPFLAGS'
20543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20545ac_compiler_gnu=$ac_cv_c_compiler_gnu
20546
20547CC="$lt_save_CC"
20548
20549	else
20550	  tagname=""
20551	fi
20552	;;
20553
20554      RC)
20555
20556
20557
20558# Source file extension for RC test sources.
20559ac_ext=rc
20560
20561# Object file extension for compiled RC test sources.
20562objext=o
20563objext_RC=$objext
20564
20565# Code to be used in simple compile tests
20566lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20567
20568# Code to be used in simple link tests
20569lt_simple_link_test_code="$lt_simple_compile_test_code"
20570
20571# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20572
20573# If no C compiler was specified, use CC.
20574LTCC=${LTCC-"$CC"}
20575
20576# Allow CC to be a program name with arguments.
20577compiler=$CC
20578
20579
20580# Allow CC to be a program name with arguments.
20581lt_save_CC="$CC"
20582CC=${RC-"windres"}
20583compiler=$CC
20584compiler_RC=$CC
20585lt_cv_prog_compiler_c_o_RC=yes
20586
20587# The else clause should only fire when bootstrapping the
20588# libtool distribution, otherwise you forgot to ship ltmain.sh
20589# with your package, and you will get complaints that there are
20590# no rules to generate ltmain.sh.
20591if test -f "$ltmain"; then
20592  # See if we are running on zsh, and set the options which allow our commands through
20593  # without removal of \ escapes.
20594  if test -n "${ZSH_VERSION+set}" ; then
20595    setopt NO_GLOB_SUBST
20596  fi
20597  # Now quote all the things that may contain metacharacters while being
20598  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20599  # variables and quote the copies for generation of the libtool script.
20600  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
20601    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20602    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20603    deplibs_check_method reload_flag reload_cmds need_locks \
20604    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20605    lt_cv_sys_global_symbol_to_c_name_address \
20606    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20607    old_postinstall_cmds old_postuninstall_cmds \
20608    compiler_RC \
20609    CC_RC \
20610    LD_RC \
20611    lt_prog_compiler_wl_RC \
20612    lt_prog_compiler_pic_RC \
20613    lt_prog_compiler_static_RC \
20614    lt_prog_compiler_no_builtin_flag_RC \
20615    export_dynamic_flag_spec_RC \
20616    thread_safe_flag_spec_RC \
20617    whole_archive_flag_spec_RC \
20618    enable_shared_with_static_runtimes_RC \
20619    old_archive_cmds_RC \
20620    old_archive_from_new_cmds_RC \
20621    predep_objects_RC \
20622    postdep_objects_RC \
20623    predeps_RC \
20624    postdeps_RC \
20625    compiler_lib_search_path_RC \
20626    archive_cmds_RC \
20627    archive_expsym_cmds_RC \
20628    postinstall_cmds_RC \
20629    postuninstall_cmds_RC \
20630    old_archive_from_expsyms_cmds_RC \
20631    allow_undefined_flag_RC \
20632    no_undefined_flag_RC \
20633    export_symbols_cmds_RC \
20634    hardcode_libdir_flag_spec_RC \
20635    hardcode_libdir_flag_spec_ld_RC \
20636    hardcode_libdir_separator_RC \
20637    hardcode_automatic_RC \
20638    module_cmds_RC \
20639    module_expsym_cmds_RC \
20640    lt_cv_prog_compiler_c_o_RC \
20641    exclude_expsyms_RC \
20642    include_expsyms_RC; do
20643
20644    case $var in
20645    old_archive_cmds_RC | \
20646    old_archive_from_new_cmds_RC | \
20647    archive_cmds_RC | \
20648    archive_expsym_cmds_RC | \
20649    module_cmds_RC | \
20650    module_expsym_cmds_RC | \
20651    old_archive_from_expsyms_cmds_RC | \
20652    export_symbols_cmds_RC | \
20653    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20654    postinstall_cmds | postuninstall_cmds | \
20655    old_postinstall_cmds | old_postuninstall_cmds | \
20656    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20657      # Double-quote double-evaled strings.
20658      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20659      ;;
20660    *)
20661      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20662      ;;
20663    esac
20664  done
20665
20666  case $lt_echo in
20667  *'\$0 --fallback-echo"')
20668    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20669    ;;
20670  esac
20671
20672cfgfile="$ofile"
20673
20674  cat <<__EOF__ >> "$cfgfile"
20675# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20676
20677# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20678
20679# Shell to use when invoking shell scripts.
20680SHELL=$lt_SHELL
20681
20682# Whether or not to build shared libraries.
20683build_libtool_libs=$enable_shared
20684
20685# Whether or not to build static libraries.
20686build_old_libs=$enable_static
20687
20688# Whether or not to add -lc for building shared libraries.
20689build_libtool_need_lc=$archive_cmds_need_lc_RC
20690
20691# Whether or not to disallow shared libs when runtime libs are static
20692allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20693
20694# Whether or not to optimize for fast installation.
20695fast_install=$enable_fast_install
20696
20697# The host system.
20698host_alias=$host_alias
20699host=$host
20700
20701# An echo program that does not interpret backslashes.
20702echo=$lt_echo
20703
20704# The archiver.
20705AR=$lt_AR
20706AR_FLAGS=$lt_AR_FLAGS
20707
20708# A C compiler.
20709LTCC=$lt_LTCC
20710
20711# A language-specific compiler.
20712CC=$lt_compiler_RC
20713
20714# Is the compiler the GNU C compiler?
20715with_gcc=$GCC_RC
20716
20717# An ERE matcher.
20718EGREP=$lt_EGREP
20719
20720# The linker used to build libraries.
20721LD=$lt_LD_RC
20722
20723# Whether we need hard or soft links.
20724LN_S=$lt_LN_S
20725
20726# A BSD-compatible nm program.
20727NM=$lt_NM
20728
20729# A symbol stripping program
20730STRIP=$STRIP
20731
20732# Used to examine libraries when file_magic_cmd begins "file"
20733MAGIC_CMD=$MAGIC_CMD
20734
20735# Used on cygwin: DLL creation program.
20736DLLTOOL="$DLLTOOL"
20737
20738# Used on cygwin: object dumper.
20739OBJDUMP="$OBJDUMP"
20740
20741# Used on cygwin: assembler.
20742AS="$AS"
20743
20744# The name of the directory that contains temporary libtool files.
20745objdir=$objdir
20746
20747# How to create reloadable object files.
20748reload_flag=$lt_reload_flag
20749reload_cmds=$lt_reload_cmds
20750
20751# How to pass a linker flag through the compiler.
20752wl=$lt_lt_prog_compiler_wl_RC
20753
20754# Object file suffix (normally "o").
20755objext="$ac_objext"
20756
20757# Old archive suffix (normally "a").
20758libext="$libext"
20759
20760# Shared library suffix (normally ".so").
20761shrext='$shrext'
20762
20763# Executable file suffix (normally "").
20764exeext="$exeext"
20765
20766# Additional compiler flags for building library objects.
20767pic_flag=$lt_lt_prog_compiler_pic_RC
20768pic_mode=$pic_mode
20769
20770# What is the maximum length of a command?
20771max_cmd_len=$lt_cv_sys_max_cmd_len
20772
20773# Does compiler simultaneously support -c and -o options?
20774compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20775
20776# Must we lock files when doing compilation ?
20777need_locks=$lt_need_locks
20778
20779# Do we need the lib prefix for modules?
20780need_lib_prefix=$need_lib_prefix
20781
20782# Do we need a version for libraries?
20783need_version=$need_version
20784
20785# Whether dlopen is supported.
20786dlopen_support=$enable_dlopen
20787
20788# Whether dlopen of programs is supported.
20789dlopen_self=$enable_dlopen_self
20790
20791# Whether dlopen of statically linked programs is supported.
20792dlopen_self_static=$enable_dlopen_self_static
20793
20794# Compiler flag to prevent dynamic linking.
20795link_static_flag=$lt_lt_prog_compiler_static_RC
20796
20797# Compiler flag to turn off builtin functions.
20798no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20799
20800# Compiler flag to allow reflexive dlopens.
20801export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20802
20803# Compiler flag to generate shared objects directly from archives.
20804whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20805
20806# Compiler flag to generate thread-safe objects.
20807thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20808
20809# Library versioning type.
20810version_type=$version_type
20811
20812# Format of library name prefix.
20813libname_spec=$lt_libname_spec
20814
20815# List of archive names.  First name is the real one, the rest are links.
20816# The last name is the one that the linker finds with -lNAME.
20817library_names_spec=$lt_library_names_spec
20818
20819# The coded name of the library, if different from the real name.
20820soname_spec=$lt_soname_spec
20821
20822# Commands used to build and install an old-style archive.
20823RANLIB=$lt_RANLIB
20824old_archive_cmds=$lt_old_archive_cmds_RC
20825old_postinstall_cmds=$lt_old_postinstall_cmds
20826old_postuninstall_cmds=$lt_old_postuninstall_cmds
20827
20828# Create an old-style archive from a shared archive.
20829old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20830
20831# Create a temporary old-style archive to link instead of a shared archive.
20832old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20833
20834# Commands used to build and install a shared archive.
20835archive_cmds=$lt_archive_cmds_RC
20836archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20837postinstall_cmds=$lt_postinstall_cmds
20838postuninstall_cmds=$lt_postuninstall_cmds
20839
20840# Commands used to build a loadable module (assumed same as above if empty)
20841module_cmds=$lt_module_cmds_RC
20842module_expsym_cmds=$lt_module_expsym_cmds_RC
20843
20844# Commands to strip libraries.
20845old_striplib=$lt_old_striplib
20846striplib=$lt_striplib
20847
20848# Dependencies to place before the objects being linked to create a
20849# shared library.
20850predep_objects=$lt_predep_objects_RC
20851
20852# Dependencies to place after the objects being linked to create a
20853# shared library.
20854postdep_objects=$lt_postdep_objects_RC
20855
20856# Dependencies to place before the objects being linked to create a
20857# shared library.
20858predeps=$lt_predeps_RC
20859
20860# Dependencies to place after the objects being linked to create a
20861# shared library.
20862postdeps=$lt_postdeps_RC
20863
20864# The library search path used internally by the compiler when linking
20865# a shared library.
20866compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20867
20868# Method to check whether dependent libraries are shared objects.
20869deplibs_check_method=$lt_deplibs_check_method
20870
20871# Command to use when deplibs_check_method == file_magic.
20872file_magic_cmd=$lt_file_magic_cmd
20873
20874# Flag that allows shared libraries with undefined symbols to be built.
20875allow_undefined_flag=$lt_allow_undefined_flag_RC
20876
20877# Flag that forces no undefined symbols.
20878no_undefined_flag=$lt_no_undefined_flag_RC
20879
20880# Commands used to finish a libtool library installation in a directory.
20881finish_cmds=$lt_finish_cmds
20882
20883# Same as above, but a single script fragment to be evaled but not shown.
20884finish_eval=$lt_finish_eval
20885
20886# Take the output of nm and produce a listing of raw symbols and C names.
20887global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20888
20889# Transform the output of nm in a proper C declaration
20890global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20891
20892# Transform the output of nm in a C name address pair
20893global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20894
20895# This is the shared library runtime path variable.
20896runpath_var=$runpath_var
20897
20898# This is the shared library path variable.
20899shlibpath_var=$shlibpath_var
20900
20901# Is shlibpath searched before the hard-coded library search path?
20902shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20903
20904# How to hardcode a shared library path into an executable.
20905hardcode_action=$hardcode_action_RC
20906
20907# Whether we should hardcode library paths into libraries.
20908hardcode_into_libs=$hardcode_into_libs
20909
20910# Flag to hardcode \$libdir into a binary during linking.
20911# This must work even if \$libdir does not exist.
20912hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20913
20914# If ld is used when linking, flag to hardcode \$libdir into
20915# a binary during linking. This must work even if \$libdir does
20916# not exist.
20917hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20918
20919# Whether we need a single -rpath flag with a separated argument.
20920hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20921
20922# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20923# resulting binary.
20924hardcode_direct=$hardcode_direct_RC
20925
20926# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20927# resulting binary.
20928hardcode_minus_L=$hardcode_minus_L_RC
20929
20930# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20931# the resulting binary.
20932hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20933
20934# Set to yes if building a shared library automatically hardcodes DIR into the library
20935# and all subsequent libraries and executables linked against it.
20936hardcode_automatic=$hardcode_automatic_RC
20937
20938# Variables whose values should be saved in libtool wrapper scripts and
20939# restored at relink time.
20940variables_saved_for_relink="$variables_saved_for_relink"
20941
20942# Whether libtool must link a program against all its dependency libraries.
20943link_all_deplibs=$link_all_deplibs_RC
20944
20945# Compile-time system search path for libraries
20946sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20947
20948# Run-time system search path for libraries
20949sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20950
20951# Fix the shell variable \$srcfile for the compiler.
20952fix_srcfile_path="$fix_srcfile_path_RC"
20953
20954# Set to yes if exported symbols are required.
20955always_export_symbols=$always_export_symbols_RC
20956
20957# The commands to list exported symbols.
20958export_symbols_cmds=$lt_export_symbols_cmds_RC
20959
20960# The commands to extract the exported symbol list from a shared archive.
20961extract_expsyms_cmds=$lt_extract_expsyms_cmds
20962
20963# Symbols that should not be listed in the preloaded symbols.
20964exclude_expsyms=$lt_exclude_expsyms_RC
20965
20966# Symbols that must always be exported.
20967include_expsyms=$lt_include_expsyms_RC
20968
20969# ### END LIBTOOL TAG CONFIG: $tagname
20970
20971__EOF__
20972
20973
20974else
20975  # If there is no Makefile yet, we rely on a make rule to execute
20976  # `config.status --recheck' to rerun these tests and create the
20977  # libtool script then.
20978  test -f Makefile && make "$ltmain"
20979fi
20980
20981
20982ac_ext=c
20983ac_cpp='$CPP $CPPFLAGS'
20984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20986ac_compiler_gnu=$ac_cv_c_compiler_gnu
20987
20988CC="$lt_save_CC"
20989
20990	;;
20991
20992      *)
20993	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20994echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20995   { (exit 1); exit 1; }; }
20996	;;
20997      esac
20998
20999      # Append the new tag name to the list of available tags.
21000      if test -n "$tagname" ; then
21001      available_tags="$available_tags $tagname"
21002    fi
21003    fi
21004  done
21005  IFS="$lt_save_ifs"
21006
21007  # Now substitute the updated list of available tags.
21008  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21009    mv "${ofile}T" "$ofile"
21010    chmod +x "$ofile"
21011  else
21012    rm -f "${ofile}T"
21013    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21014echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21015   { (exit 1); exit 1; }; }
21016  fi
21017fi
21018
21019
21020
21021# This can be used to rebuild libtool when needed
21022LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21023
21024# Always use our own libtool.
21025LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
21026
21027# Prevent multiple expansion
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062LIBTOOL_SHELL="/bin/sh ./libtool"
21063#  LIBTOOL="$LIBTOOL --silent"
21064KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
21065
21066
21067# we patch configure quite some so we better keep that consistent for incremental runs
21068AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
21069
21070
21071all_libraries="$all_libraries $USER_LDFLAGS"
21072all_includes="$all_includes $USER_INCLUDES"
21073
21074
21075
21076
21077
21078
21079
21080# Check whether --with-lineak-includedir or --without-lineak-includedir was given.
21081if test "${with_lineak_includedir+set}" = set; then
21082  withval="$with_lineak_includedir"
21083  lineakincludes=${withval}
21084fi;
21085
21086echo "$as_me:$LINENO: checking Looking for lineak headers" >&5
21087echo $ECHO_N "checking Looking for lineak headers... $ECHO_C" >&6
21088   if test "$lineakincludes" = ""; then
21089      for i in /usr/include /usr/local/include /opt/include $lineakincludes
21090      do
21091         if test -f "${i}/lineak/lconfig.h" ; then
21092            lineak_includedir="${i}/lineak"
21093            CPPFLAGS="${CPPFLAGS} -I${lineak_includedir} -I${i}"
21094            echo "$as_me:$LINENO: result: ${lineak_includedir}" >&5
21095echo "${ECHO_T}${lineak_includedir}" >&6
21096            break
21097         fi
21098      done
21099   else
21100      lineak_includedir="$lineakincludes"
21101      CPPFLAGS="${CPPFLAGS} -I${lineak_includedir} -I${i}"
21102      echo "$as_me:$LINENO: result: ${lineak_includedir}" >&5
21103echo "${ECHO_T}${lineak_includedir}" >&6
21104   fi
21105   if test ! -d "$lineak_includedir" ; then
21106      { { echo "$as_me:$LINENO: error: Lineak includes not found. Check your installation or try ./configure --with-lineak-includedir=" >&5
21107echo "$as_me: error: Lineak includes not found. Check your installation or try ./configure --with-lineak-includedir=" >&2;}
21108   { (exit 1); exit 1; }; }
21109      exit 0
21110   fi
21111
21112   if test "$lineak_includedir" != ""; then
21113
21114cat >>confdefs.h <<_ACEOF
21115#define INCLUDEDIR "$lineak_includedir"
21116_ACEOF
21117
21118
21119   else
21120      echo The lineak development headers could not be found. Please install lineakd version 0.8 or higher.
21121      exit 0
21122  fi
21123
21124
21125   echo "$as_me:$LINENO: checking for X" >&5
21126echo $ECHO_N "checking for X... $ECHO_C" >&6
21127
21128ac_path_x_has_been_run=yes
21129
21130# Check whether --with-x or --without-x was given.
21131if test "${with_x+set}" = set; then
21132  withval="$with_x"
21133
21134fi;
21135# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21136if test "x$with_x" = xno; then
21137  # The user explicitly disabled X.
21138  have_x=disabled
21139else
21140  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21141    # Both variables are already set.
21142    have_x=yes
21143  else
21144    if test "${ac_cv_have_x+set}" = set; then
21145  echo $ECHO_N "(cached) $ECHO_C" >&6
21146else
21147  # One or both of the vars are not set, and there is no cached value.
21148ac_x_includes=no ac_x_libraries=no
21149rm -fr conftest.dir
21150if mkdir conftest.dir; then
21151  cd conftest.dir
21152  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21153  cat >Imakefile <<'_ACEOF'
21154acfindx:
21155	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21156_ACEOF
21157  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21158    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21159    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21160    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21161    for ac_extension in a so sl; do
21162      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21163	 test -f $ac_im_libdir/libX11.$ac_extension; then
21164	ac_im_usrlibdir=$ac_im_libdir; break
21165      fi
21166    done
21167    # Screen out bogus values from the imake configuration.  They are
21168    # bogus both because they are the default anyway, and because
21169    # using them would break gcc on systems where it needs fixed includes.
21170    case $ac_im_incroot in
21171	/usr/include) ;;
21172	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21173    esac
21174    case $ac_im_usrlibdir in
21175	/usr/lib | /lib) ;;
21176	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21177    esac
21178  fi
21179  cd ..
21180  rm -fr conftest.dir
21181fi
21182
21183# Standard set of common directories for X headers.
21184# Check X11 before X11Rn because it is often a symlink to the current release.
21185ac_x_header_dirs='
21186/usr/X11/include
21187/usr/X11R6/include
21188/usr/X11R5/include
21189/usr/X11R4/include
21190
21191/usr/include/X11
21192/usr/include/X11R6
21193/usr/include/X11R5
21194/usr/include/X11R4
21195
21196/usr/local/X11/include
21197/usr/local/X11R6/include
21198/usr/local/X11R5/include
21199/usr/local/X11R4/include
21200
21201/usr/local/include/X11
21202/usr/local/include/X11R6
21203/usr/local/include/X11R5
21204/usr/local/include/X11R4
21205
21206/usr/X386/include
21207/usr/x386/include
21208/usr/XFree86/include/X11
21209
21210/usr/include
21211/usr/local/include
21212/usr/unsupported/include
21213/usr/athena/include
21214/usr/local/x11r5/include
21215/usr/lpp/Xamples/include
21216
21217/usr/openwin/include
21218/usr/openwin/share/include'
21219
21220if test "$ac_x_includes" = no; then
21221  # Guess where to find include files, by looking for a specified header file.
21222  # First, try using that file with no special directory specified.
21223  cat >conftest.$ac_ext <<_ACEOF
21224/* confdefs.h.  */
21225_ACEOF
21226cat confdefs.h >>conftest.$ac_ext
21227cat >>conftest.$ac_ext <<_ACEOF
21228/* end confdefs.h.  */
21229#include <X11/Xlib.h>
21230_ACEOF
21231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21232  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21233  ac_status=$?
21234  grep -v '^ *+' conftest.er1 >conftest.err
21235  rm -f conftest.er1
21236  cat conftest.err >&5
21237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238  (exit $ac_status); } >/dev/null; then
21239  if test -s conftest.err; then
21240    ac_cpp_err=$ac_c_preproc_warn_flag
21241    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21242  else
21243    ac_cpp_err=
21244  fi
21245else
21246  ac_cpp_err=yes
21247fi
21248if test -z "$ac_cpp_err"; then
21249  # We can compile using X headers with no special include directory.
21250ac_x_includes=
21251else
21252  echo "$as_me: failed program was:" >&5
21253sed 's/^/| /' conftest.$ac_ext >&5
21254
21255  for ac_dir in $ac_x_header_dirs; do
21256  if test -r "$ac_dir/X11/Xlib.h"; then
21257    ac_x_includes=$ac_dir
21258    break
21259  fi
21260done
21261fi
21262rm -f conftest.err conftest.$ac_ext
21263fi # $ac_x_includes = no
21264
21265if test "$ac_x_libraries" = no; then
21266  # Check for the libraries.
21267  # See if we find them without any special options.
21268  # Don't add to $LIBS permanently.
21269  ac_save_LIBS=$LIBS
21270  LIBS="-lX11 $LIBS"
21271  cat >conftest.$ac_ext <<_ACEOF
21272/* confdefs.h.  */
21273_ACEOF
21274cat confdefs.h >>conftest.$ac_ext
21275cat >>conftest.$ac_ext <<_ACEOF
21276/* end confdefs.h.  */
21277#include <X11/Xlib.h>
21278int
21279main ()
21280{
21281XrmInitialize ()
21282  ;
21283  return 0;
21284}
21285_ACEOF
21286rm -f conftest.$ac_objext conftest$ac_exeext
21287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21288  (eval $ac_link) 2>conftest.er1
21289  ac_status=$?
21290  grep -v '^ *+' conftest.er1 >conftest.err
21291  rm -f conftest.er1
21292  cat conftest.err >&5
21293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294  (exit $ac_status); } &&
21295	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297  (eval $ac_try) 2>&5
21298  ac_status=$?
21299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300  (exit $ac_status); }; } &&
21301	 { ac_try='test -s conftest$ac_exeext'
21302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303  (eval $ac_try) 2>&5
21304  ac_status=$?
21305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306  (exit $ac_status); }; }; then
21307  LIBS=$ac_save_LIBS
21308# We can link X programs with no special library path.
21309ac_x_libraries=
21310else
21311  echo "$as_me: failed program was:" >&5
21312sed 's/^/| /' conftest.$ac_ext >&5
21313
21314LIBS=$ac_save_LIBS
21315for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21316do
21317  # Don't even attempt the hair of trying to link an X program!
21318  for ac_extension in a so sl; do
21319    if test -r $ac_dir/libX11.$ac_extension; then
21320      ac_x_libraries=$ac_dir
21321      break 2
21322    fi
21323  done
21324done
21325fi
21326rm -f conftest.err conftest.$ac_objext \
21327      conftest$ac_exeext conftest.$ac_ext
21328fi # $ac_x_libraries = no
21329
21330if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21331  # Didn't find X anywhere.  Cache the known absence of X.
21332  ac_cv_have_x="have_x=no"
21333else
21334  # Record where we found X for the cache.
21335  ac_cv_have_x="have_x=yes \
21336		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21337fi
21338fi
21339
21340  fi
21341  eval "$ac_cv_have_x"
21342fi # $with_x != no
21343
21344if test "$have_x" != yes; then
21345  echo "$as_me:$LINENO: result: $have_x" >&5
21346echo "${ECHO_T}$have_x" >&6
21347  no_x=yes
21348else
21349  # If each of the values was on the command line, it overrides each guess.
21350  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21351  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21352  # Update the cache value to reflect the command line values.
21353  ac_cv_have_x="have_x=yes \
21354		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21355  # It might be that x_includes is empty (headers are found in the
21356  # standard search path. Then output the corresponding message
21357  ac_out_x_includes=$x_includes
21358  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
21359  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
21360echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
21361fi
21362
21363   LDFLAGS="$all_libraries -L${x_libraries} $X_LDFLAGS -lX11 -lXext "
21364   CPPFLAGS="$all_includes -I${x_includes} ${CPPFLAGS} "
21365      echo "$as_me:$LINENO: checking for ac_check_lineak in -llineak" >&5
21366echo $ECHO_N "checking for ac_check_lineak in -llineak... $ECHO_C" >&6
21367if test "${ac_cv_lib_lineak_ac_check_lineak+set}" = set; then
21368  echo $ECHO_N "(cached) $ECHO_C" >&6
21369else
21370  ac_check_lib_save_LIBS=$LIBS
21371LIBS="-llineak  $LIBS"
21372cat >conftest.$ac_ext <<_ACEOF
21373/* confdefs.h.  */
21374_ACEOF
21375cat confdefs.h >>conftest.$ac_ext
21376cat >>conftest.$ac_ext <<_ACEOF
21377/* end confdefs.h.  */
21378
21379/* Override any gcc2 internal prototype to avoid an error.  */
21380#ifdef __cplusplus
21381extern "C"
21382#endif
21383/* We use char because int might match the return type of a gcc2
21384   builtin and then its argument prototype would still apply.  */
21385char ac_check_lineak ();
21386int
21387main ()
21388{
21389ac_check_lineak ();
21390  ;
21391  return 0;
21392}
21393_ACEOF
21394rm -f conftest.$ac_objext conftest$ac_exeext
21395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21396  (eval $ac_link) 2>conftest.er1
21397  ac_status=$?
21398  grep -v '^ *+' conftest.er1 >conftest.err
21399  rm -f conftest.er1
21400  cat conftest.err >&5
21401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402  (exit $ac_status); } &&
21403	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405  (eval $ac_try) 2>&5
21406  ac_status=$?
21407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408  (exit $ac_status); }; } &&
21409	 { ac_try='test -s conftest$ac_exeext'
21410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411  (eval $ac_try) 2>&5
21412  ac_status=$?
21413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414  (exit $ac_status); }; }; then
21415  ac_cv_lib_lineak_ac_check_lineak=yes
21416else
21417  echo "$as_me: failed program was:" >&5
21418sed 's/^/| /' conftest.$ac_ext >&5
21419
21420ac_cv_lib_lineak_ac_check_lineak=no
21421fi
21422rm -f conftest.err conftest.$ac_objext \
21423      conftest$ac_exeext conftest.$ac_ext
21424LIBS=$ac_check_lib_save_LIBS
21425fi
21426echo "$as_me:$LINENO: result: $ac_cv_lib_lineak_ac_check_lineak" >&5
21427echo "${ECHO_T}$ac_cv_lib_lineak_ac_check_lineak" >&6
21428if test $ac_cv_lib_lineak_ac_check_lineak = yes; then
21429  LIBLINEAK="-llineak"
21430else
21431  { { echo "$as_me:$LINENO: error: lib lineak not found. Please install lineakd 0.8 or later." >&5
21432echo "$as_me: error: lib lineak not found. Please install lineakd 0.8 or later." >&2;}
21433   { (exit 1); exit 1; }; }
21434fi
21435
21436   if test "x$LIBLINEAK" != "x"; then
21437      LIBS="-llineak"
21438
21439cat >>confdefs.h <<\_ACEOF
21440#define HAVE_LIBLINEAK 1
21441_ACEOF
21442
21443      fi
21444
21445
21446
21447
21448# Check whether --with-lineak_plugindir or --without-lineak_plugindir was given.
21449if test "${with_lineak_plugindir+set}" = set; then
21450  withval="$with_lineak_plugindir"
21451  lineakplugins=${withval}
21452fi;
21453echo "$as_me:$LINENO: checking Looking for the plugin directory" >&5
21454echo $ECHO_N "checking Looking for the plugin directory... $ECHO_C" >&6
21455if test "$lineakplugins" = ""; then
21456   for i in /usr /usr/local / /opt
21457   do
21458      if test -d "${i}/lib/lineakd/plugins" ; then
21459         pdir="${i}/lib/lineakd/plugins"
21460         echo "$as_me:$LINENO: result: ${pdir}" >&5
21461echo "${ECHO_T}${pdir}" >&6
21462         break
21463      fi
21464   done
21465else
21466   pdir="$lineakplugins"
21467   echo "$as_me:$LINENO: result: ${pdir}" >&5
21468echo "${ECHO_T}${pdir}" >&6
21469fi
21470
21471if test ! -d $pdir ; then
21472   { { echo "$as_me:$LINENO: error: Lineak plugin directory not found. Please install lineakd version 0.8 or higher." >&5
21473echo "$as_me: error: Lineak plugin directory not found. Please install lineakd version 0.8 or higher." >&2;}
21474   { (exit 1); exit 1; }; }
21475   exit 0
21476fi
21477
21478if test "$pdir" != ""; then
21479
21480cat >>confdefs.h <<_ACEOF
21481#define PLUGINDIR "$pdir"
21482_ACEOF
21483
21484   PLUGINDIR="${pdir}"
21485
21486else
21487   echo The lineakd plugin directory could not be found. Please install lineakd version 0.8 or higher.
21488   exit 0
21489fi
21490
21491
21492
21493for ac_header in xosd.h
21494do
21495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21496if eval "test \"\${$as_ac_Header+set}\" = set"; then
21497  echo "$as_me:$LINENO: checking for $ac_header" >&5
21498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21499if eval "test \"\${$as_ac_Header+set}\" = set"; then
21500  echo $ECHO_N "(cached) $ECHO_C" >&6
21501fi
21502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21504else
21505  # Is the header compilable?
21506echo "$as_me:$LINENO: checking $ac_header usability" >&5
21507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21508cat >conftest.$ac_ext <<_ACEOF
21509/* confdefs.h.  */
21510_ACEOF
21511cat confdefs.h >>conftest.$ac_ext
21512cat >>conftest.$ac_ext <<_ACEOF
21513/* end confdefs.h.  */
21514$ac_includes_default
21515#include <$ac_header>
21516_ACEOF
21517rm -f conftest.$ac_objext
21518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21519  (eval $ac_compile) 2>conftest.er1
21520  ac_status=$?
21521  grep -v '^ *+' conftest.er1 >conftest.err
21522  rm -f conftest.er1
21523  cat conftest.err >&5
21524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525  (exit $ac_status); } &&
21526	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528  (eval $ac_try) 2>&5
21529  ac_status=$?
21530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531  (exit $ac_status); }; } &&
21532	 { ac_try='test -s conftest.$ac_objext'
21533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534  (eval $ac_try) 2>&5
21535  ac_status=$?
21536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537  (exit $ac_status); }; }; then
21538  ac_header_compiler=yes
21539else
21540  echo "$as_me: failed program was:" >&5
21541sed 's/^/| /' conftest.$ac_ext >&5
21542
21543ac_header_compiler=no
21544fi
21545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21547echo "${ECHO_T}$ac_header_compiler" >&6
21548
21549# Is the header present?
21550echo "$as_me:$LINENO: checking $ac_header presence" >&5
21551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21552cat >conftest.$ac_ext <<_ACEOF
21553/* confdefs.h.  */
21554_ACEOF
21555cat confdefs.h >>conftest.$ac_ext
21556cat >>conftest.$ac_ext <<_ACEOF
21557/* end confdefs.h.  */
21558#include <$ac_header>
21559_ACEOF
21560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21561  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21562  ac_status=$?
21563  grep -v '^ *+' conftest.er1 >conftest.err
21564  rm -f conftest.er1
21565  cat conftest.err >&5
21566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567  (exit $ac_status); } >/dev/null; then
21568  if test -s conftest.err; then
21569    ac_cpp_err=$ac_c_preproc_warn_flag
21570    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21571  else
21572    ac_cpp_err=
21573  fi
21574else
21575  ac_cpp_err=yes
21576fi
21577if test -z "$ac_cpp_err"; then
21578  ac_header_preproc=yes
21579else
21580  echo "$as_me: failed program was:" >&5
21581sed 's/^/| /' conftest.$ac_ext >&5
21582
21583  ac_header_preproc=no
21584fi
21585rm -f conftest.err conftest.$ac_ext
21586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21587echo "${ECHO_T}$ac_header_preproc" >&6
21588
21589# So?  What about this header?
21590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21591  yes:no: )
21592    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21594    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21596    ac_header_preproc=yes
21597    ;;
21598  no:yes:* )
21599    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21601    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21602echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21603    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21605    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21606echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21607    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21609    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21611    (
21612      cat <<\_ASBOX
21613## ------------------------------------------ ##
21614## Report this to the AC_PACKAGE_NAME lists.  ##
21615## ------------------------------------------ ##
21616_ASBOX
21617    ) |
21618      sed "s/^/$as_me: WARNING:     /" >&2
21619    ;;
21620esac
21621echo "$as_me:$LINENO: checking for $ac_header" >&5
21622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21623if eval "test \"\${$as_ac_Header+set}\" = set"; then
21624  echo $ECHO_N "(cached) $ECHO_C" >&6
21625else
21626  eval "$as_ac_Header=\$ac_header_preproc"
21627fi
21628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21630
21631fi
21632if test `eval echo '${'$as_ac_Header'}'` = yes; then
21633  cat >>confdefs.h <<_ACEOF
21634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21635_ACEOF
21636
21637fi
21638
21639done
21640
21641# Extract the first word of "xosd-config", so it can be a program name with args.
21642set dummy xosd-config; ac_word=$2
21643echo "$as_me:$LINENO: checking for $ac_word" >&5
21644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21645if test "${ac_cv_path_xosd_config_script+set}" = set; then
21646  echo $ECHO_N "(cached) $ECHO_C" >&6
21647else
21648  case $xosd_config_script in
21649  [\\/]* | ?:[\\/]*)
21650  ac_cv_path_xosd_config_script="$xosd_config_script" # Let the user override the test with a path.
21651  ;;
21652  *)
21653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21654for as_dir in $PATH
21655do
21656  IFS=$as_save_IFS
21657  test -z "$as_dir" && as_dir=.
21658  for ac_exec_ext in '' $ac_executable_extensions; do
21659  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21660    ac_cv_path_xosd_config_script="$as_dir/$ac_word$ac_exec_ext"
21661    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21662    break 2
21663  fi
21664done
21665done
21666
21667  test -z "$ac_cv_path_xosd_config_script" && ac_cv_path_xosd_config_script=""none""
21668  ;;
21669esac
21670fi
21671xosd_config_script=$ac_cv_path_xosd_config_script
21672
21673if test -n "$xosd_config_script"; then
21674  echo "$as_me:$LINENO: result: $xosd_config_script" >&5
21675echo "${ECHO_T}$xosd_config_script" >&6
21676else
21677  echo "$as_me:$LINENO: result: no" >&5
21678echo "${ECHO_T}no" >&6
21679fi
21680
21681	if test "x$xosd_config_script" = "xnone" ; then
21682		echo "$as_me:$LINENO: result: no" >&5
21683echo "${ECHO_T}no" >&6
21684		echo "*** xosd-config script not found!  Do you have xosd-dev"
21685		echo "*** installed??"
21686		{ { echo "$as_me:$LINENO: error: xsod-config not found" >&5
21687echo "$as_me: error: xsod-config not found" >&2;}
21688   { (exit 1); exit 1; }; }
21689		exit 1
21690	else
21691		echo "$as_me:$LINENO: result: yes" >&5
21692echo "${ECHO_T}yes" >&6
21693				XOSD_CFLAGS=`$xosd_config_script --cflags 2>/dev/null`
21694		XOSD_LIBS=`$xosd_config_script --libs 2>/dev/null`
21695
21696echo "$as_me:$LINENO: checking for main in -lxosd" >&5
21697echo $ECHO_N "checking for main in -lxosd... $ECHO_C" >&6
21698if test "${ac_cv_lib_xosd_main+set}" = set; then
21699  echo $ECHO_N "(cached) $ECHO_C" >&6
21700else
21701  ac_check_lib_save_LIBS=$LIBS
21702LIBS="-lxosd  $LIBS"
21703cat >conftest.$ac_ext <<_ACEOF
21704/* confdefs.h.  */
21705_ACEOF
21706cat confdefs.h >>conftest.$ac_ext
21707cat >>conftest.$ac_ext <<_ACEOF
21708/* end confdefs.h.  */
21709
21710
21711int
21712main ()
21713{
21714main ();
21715  ;
21716  return 0;
21717}
21718_ACEOF
21719rm -f conftest.$ac_objext conftest$ac_exeext
21720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21721  (eval $ac_link) 2>conftest.er1
21722  ac_status=$?
21723  grep -v '^ *+' conftest.er1 >conftest.err
21724  rm -f conftest.er1
21725  cat conftest.err >&5
21726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727  (exit $ac_status); } &&
21728	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
21729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730  (eval $ac_try) 2>&5
21731  ac_status=$?
21732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733  (exit $ac_status); }; } &&
21734	 { ac_try='test -s conftest$ac_exeext'
21735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736  (eval $ac_try) 2>&5
21737  ac_status=$?
21738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739  (exit $ac_status); }; }; then
21740  ac_cv_lib_xosd_main=yes
21741else
21742  echo "$as_me: failed program was:" >&5
21743sed 's/^/| /' conftest.$ac_ext >&5
21744
21745ac_cv_lib_xosd_main=no
21746fi
21747rm -f conftest.err conftest.$ac_objext \
21748      conftest$ac_exeext conftest.$ac_ext
21749LIBS=$ac_check_lib_save_LIBS
21750fi
21751echo "$as_me:$LINENO: result: $ac_cv_lib_xosd_main" >&5
21752echo "${ECHO_T}$ac_cv_lib_xosd_main" >&6
21753if test $ac_cv_lib_xosd_main = yes; then
21754  cat >>confdefs.h <<_ACEOF
21755#define HAVE_LIBXOSD 1
21756_ACEOF
21757
21758  LIBS="-lxosd $LIBS"
21759
21760fi
21761
21762
21763
21764			fi
21765
21766
21767
21768DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
21769
21770if test ! -s $srcdir/subdirs; then
21771    TOPSUBDIRS=""
21772  files=`cd $srcdir && ls -1`
21773  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
21774  for i in $dirs; do
21775    echo $i >> $srcdir/subdirs
21776  done
21777fi
21778
21779ac_topsubdirs=
21780if test -s $srcdir/inst-apps; then
21781  ac_topsubdirs="`cat $srcdir/inst-apps`"
21782elif test -s $srcdir/subdirs; then
21783  ac_topsubdirs="`cat $srcdir/subdirs`"
21784fi
21785
21786for i in $ac_topsubdirs; do
21787  echo "$as_me:$LINENO: checking if $i should be compiled" >&5
21788echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
21789  if test -d $srcdir/$i; then
21790    install_it="yes"
21791    for j in $DO_NOT_COMPILE; do
21792      if test $i = $j; then
21793        install_it="no"
21794      fi
21795    done
21796  else
21797    install_it="no"
21798  fi
21799  echo "$as_me:$LINENO: result: $install_it" >&5
21800echo "${ECHO_T}$install_it" >&6
21801  vari=`echo $i | sed -e 's,[-+.@],_,g'`
21802  if test $install_it = "yes"; then
21803    TOPSUBDIRS="$TOPSUBDIRS $i"
21804    eval "$vari""_SUBDIR_included=yes"
21805  else
21806    eval "$vari""_SUBDIR_included=no"
21807  fi
21808done
21809
21810
21811
21812          ac_config_files="$ac_config_files Makefile"
21813
21814          ac_config_files="$ac_config_files po/Makefile"
21815
21816          ac_config_files="$ac_config_files xosd_plugin/Makefile"
21817
21818cat >confcache <<\_ACEOF
21819# This file is a shell script that caches the results of configure
21820# tests run on this system so they can be shared between configure
21821# scripts and configure runs, see configure's option --config-cache.
21822# It is not useful on other systems.  If it contains results you don't
21823# want to keep, you may remove or edit it.
21824#
21825# config.status only pays attention to the cache file if you give it
21826# the --recheck option to rerun configure.
21827#
21828# `ac_cv_env_foo' variables (set or unset) will be overridden when
21829# loading this file, other *unset* `ac_cv_foo' will be assigned the
21830# following values.
21831
21832_ACEOF
21833
21834# The following way of writing the cache mishandles newlines in values,
21835# but we know of no workaround that is simple, portable, and efficient.
21836# So, don't put newlines in cache variables' values.
21837# Ultrix sh set writes to stderr and can't be redirected directly,
21838# and sets the high bit in the cache file unless we assign to the vars.
21839{
21840  (set) 2>&1 |
21841    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21842    *ac_space=\ *)
21843      # `set' does not quote correctly, so add quotes (double-quote
21844      # substitution turns \\\\ into \\, and sed turns \\ into \).
21845      sed -n \
21846	"s/'/'\\\\''/g;
21847	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21848      ;;
21849    *)
21850      # `set' quotes correctly as required by POSIX, so do not add quotes.
21851      sed -n \
21852	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21853      ;;
21854    esac;
21855} |
21856  sed '
21857     t clear
21858     : clear
21859     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21860     t end
21861     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21862     : end' >>confcache
21863if diff $cache_file confcache >/dev/null 2>&1; then :; else
21864  if test -w $cache_file; then
21865    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21866    cat confcache >$cache_file
21867  else
21868    echo "not updating unwritable cache $cache_file"
21869  fi
21870fi
21871rm -f confcache
21872
21873test "x$prefix" = xNONE && prefix=$ac_default_prefix
21874# Let make expand exec_prefix.
21875test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21876
21877# VPATH may cause trouble with some makes, so we remove $(srcdir),
21878# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21879# trailing colons and then remove the whole line if VPATH becomes empty
21880# (actually we leave an empty line to preserve line numbers).
21881if test "x$srcdir" = x.; then
21882  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21883s/:*\$(srcdir):*/:/;
21884s/:*\${srcdir}:*/:/;
21885s/:*@srcdir@:*/:/;
21886s/^\([^=]*=[	 ]*\):*/\1/;
21887s/:*$//;
21888s/^[^=]*=[	 ]*$//;
21889}'
21890fi
21891
21892DEFS=-DHAVE_CONFIG_H
21893
21894ac_libobjs=
21895ac_ltlibobjs=
21896for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21897  # 1. Remove the extension, and $U if already installed.
21898  ac_i=`echo "$ac_i" |
21899	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21900  # 2. Add them.
21901  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21902  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21903done
21904LIBOBJS=$ac_libobjs
21905
21906LTLIBOBJS=$ac_ltlibobjs
21907
21908
21909if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21910  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21911Usually this means the macro was only invoked conditionally." >&5
21912echo "$as_me: error: conditional \"AMDEP\" was never defined.
21913Usually this means the macro was only invoked conditionally." >&2;}
21914   { (exit 1); exit 1; }; }
21915fi
21916if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21917  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21918Usually this means the macro was only invoked conditionally." >&5
21919echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21920Usually this means the macro was only invoked conditionally." >&2;}
21921   { (exit 1); exit 1; }; }
21922fi
21923if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21924  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21925Usually this means the macro was only invoked conditionally." >&5
21926echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21927Usually this means the macro was only invoked conditionally." >&2;}
21928   { (exit 1); exit 1; }; }
21929fi
21930
21931: ${CONFIG_STATUS=./config.status}
21932ac_clean_files_save=$ac_clean_files
21933ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21934{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21935echo "$as_me: creating $CONFIG_STATUS" >&6;}
21936cat >$CONFIG_STATUS <<_ACEOF
21937#! $SHELL
21938# Generated by $as_me.
21939# Run this file to recreate the current configuration.
21940# Compiler output produced by configure, useful for debugging
21941# configure, is in config.log if it exists.
21942
21943debug=false
21944ac_cs_recheck=false
21945ac_cs_silent=false
21946SHELL=\${CONFIG_SHELL-$SHELL}
21947_ACEOF
21948
21949cat >>$CONFIG_STATUS <<\_ACEOF
21950## --------------------- ##
21951## M4sh Initialization.  ##
21952## --------------------- ##
21953
21954# Be Bourne compatible
21955if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21956  emulate sh
21957  NULLCMD=:
21958  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21959  # is contrary to our usage.  Disable this feature.
21960  alias -g '${1+"$@"}'='"$@"'
21961elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21962  set -o posix
21963fi
21964DUALCASE=1; export DUALCASE # for MKS sh
21965
21966# Support unset when possible.
21967if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21968  as_unset=unset
21969else
21970  as_unset=false
21971fi
21972
21973
21974# Work around bugs in pre-3.0 UWIN ksh.
21975$as_unset ENV MAIL MAILPATH
21976PS1='$ '
21977PS2='> '
21978PS4='+ '
21979
21980# NLS nuisances.
21981for as_var in \
21982  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21983  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21984  LC_TELEPHONE LC_TIME
21985do
21986  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21987    eval $as_var=C; export $as_var
21988  else
21989    $as_unset $as_var
21990  fi
21991done
21992
21993# Required to use basename.
21994if expr a : '\(a\)' >/dev/null 2>&1; then
21995  as_expr=expr
21996else
21997  as_expr=false
21998fi
21999
22000if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22001  as_basename=basename
22002else
22003  as_basename=false
22004fi
22005
22006
22007# Name of the executable.
22008as_me=`$as_basename "$0" ||
22009$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22010	 X"$0" : 'X\(//\)$' \| \
22011	 X"$0" : 'X\(/\)$' \| \
22012	 .     : '\(.\)' 2>/dev/null ||
22013echo X/"$0" |
22014    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22015  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
22016  	  /^X\/\(\/\).*/{ s//\1/; q; }
22017  	  s/.*/./; q'`
22018
22019
22020# PATH needs CR, and LINENO needs CR and PATH.
22021# Avoid depending upon Character Ranges.
22022as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22023as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22024as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22025as_cr_digits='0123456789'
22026as_cr_alnum=$as_cr_Letters$as_cr_digits
22027
22028# The user is always right.
22029if test "${PATH_SEPARATOR+set}" != set; then
22030  echo "#! /bin/sh" >conf$$.sh
22031  echo  "exit 0"   >>conf$$.sh
22032  chmod +x conf$$.sh
22033  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22034    PATH_SEPARATOR=';'
22035  else
22036    PATH_SEPARATOR=:
22037  fi
22038  rm -f conf$$.sh
22039fi
22040
22041
22042  as_lineno_1=$LINENO
22043  as_lineno_2=$LINENO
22044  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22045  test "x$as_lineno_1" != "x$as_lineno_2" &&
22046  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22047  # Find who we are.  Look in the path if we contain no path at all
22048  # relative or not.
22049  case $0 in
22050    *[\\/]* ) as_myself=$0 ;;
22051    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22052for as_dir in $PATH
22053do
22054  IFS=$as_save_IFS
22055  test -z "$as_dir" && as_dir=.
22056  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22057done
22058
22059       ;;
22060  esac
22061  # We did not find ourselves, most probably we were run as `sh COMMAND'
22062  # in which case we are not to be found in the path.
22063  if test "x$as_myself" = x; then
22064    as_myself=$0
22065  fi
22066  if test ! -f "$as_myself"; then
22067    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22068echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22069   { (exit 1); exit 1; }; }
22070  fi
22071  case $CONFIG_SHELL in
22072  '')
22073    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22074for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22075do
22076  IFS=$as_save_IFS
22077  test -z "$as_dir" && as_dir=.
22078  for as_base in sh bash ksh sh5; do
22079	 case $as_dir in
22080	 /*)
22081	   if ("$as_dir/$as_base" -c '
22082  as_lineno_1=$LINENO
22083  as_lineno_2=$LINENO
22084  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22085  test "x$as_lineno_1" != "x$as_lineno_2" &&
22086  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22087	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22088	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22089	     CONFIG_SHELL=$as_dir/$as_base
22090	     export CONFIG_SHELL
22091	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22092	   fi;;
22093	 esac
22094       done
22095done
22096;;
22097  esac
22098
22099  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22100  # uniformly replaced by the line number.  The first 'sed' inserts a
22101  # line-number line before each line; the second 'sed' does the real
22102  # work.  The second script uses 'N' to pair each line-number line
22103  # with the numbered line, and appends trailing '-' during
22104  # substitution so that $LINENO is not a special case at line end.
22105  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22106  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22107  sed '=' <$as_myself |
22108    sed '
22109      N
22110      s,$,-,
22111      : loop
22112      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22113      t loop
22114      s,-$,,
22115      s,^['$as_cr_digits']*\n,,
22116    ' >$as_me.lineno &&
22117  chmod +x $as_me.lineno ||
22118    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22119echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22120   { (exit 1); exit 1; }; }
22121
22122  # Don't try to exec as it changes $[0], causing all sort of problems
22123  # (the dirname of $[0] is not the place where we might find the
22124  # original and so on.  Autoconf is especially sensible to this).
22125  . ./$as_me.lineno
22126  # Exit status is that of the last command.
22127  exit
22128}
22129
22130
22131case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22132  *c*,-n*) ECHO_N= ECHO_C='
22133' ECHO_T='	' ;;
22134  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22135  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22136esac
22137
22138if expr a : '\(a\)' >/dev/null 2>&1; then
22139  as_expr=expr
22140else
22141  as_expr=false
22142fi
22143
22144rm -f conf$$ conf$$.exe conf$$.file
22145echo >conf$$.file
22146if ln -s conf$$.file conf$$ 2>/dev/null; then
22147  # We could just check for DJGPP; but this test a) works b) is more generic
22148  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22149  if test -f conf$$.exe; then
22150    # Don't use ln at all; we don't have any links
22151    as_ln_s='cp -p'
22152  else
22153    as_ln_s='ln -s'
22154  fi
22155elif ln conf$$.file conf$$ 2>/dev/null; then
22156  as_ln_s=ln
22157else
22158  as_ln_s='cp -p'
22159fi
22160rm -f conf$$ conf$$.exe conf$$.file
22161
22162if mkdir -p . 2>/dev/null; then
22163  as_mkdir_p=:
22164else
22165  test -d ./-p && rmdir ./-p
22166  as_mkdir_p=false
22167fi
22168
22169as_executable_p="test -f"
22170
22171# Sed expression to map a string onto a valid CPP name.
22172as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22173
22174# Sed expression to map a string onto a valid variable name.
22175as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22176
22177
22178# IFS
22179# We need space, tab and new line, in precisely that order.
22180as_nl='
22181'
22182IFS=" 	$as_nl"
22183
22184# CDPATH.
22185$as_unset CDPATH
22186
22187exec 6>&1
22188
22189# Open the log real soon, to keep \$[0] and so on meaningful, and to
22190# report actual input values of CONFIG_FILES etc. instead of their
22191# values after options handling.  Logging --version etc. is OK.
22192exec 5>>config.log
22193{
22194  echo
22195  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22196## Running $as_me. ##
22197_ASBOX
22198} >&5
22199cat >&5 <<_CSEOF
22200
22201This file was extended by $as_me, which was
22202generated by GNU Autoconf 2.59.  Invocation command line was
22203
22204  CONFIG_FILES    = $CONFIG_FILES
22205  CONFIG_HEADERS  = $CONFIG_HEADERS
22206  CONFIG_LINKS    = $CONFIG_LINKS
22207  CONFIG_COMMANDS = $CONFIG_COMMANDS
22208  $ $0 $@
22209
22210_CSEOF
22211echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22212echo >&5
22213_ACEOF
22214
22215# Files that config.status was made for.
22216if test -n "$ac_config_files"; then
22217  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22218fi
22219
22220if test -n "$ac_config_headers"; then
22221  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22222fi
22223
22224if test -n "$ac_config_links"; then
22225  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22226fi
22227
22228if test -n "$ac_config_commands"; then
22229  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22230fi
22231
22232cat >>$CONFIG_STATUS <<\_ACEOF
22233
22234ac_cs_usage="\
22235\`$as_me' instantiates files from templates according to the
22236current configuration.
22237
22238Usage: $0 [OPTIONS] [FILE]...
22239
22240  -h, --help       print this help, then exit
22241  -V, --version    print version number, then exit
22242  -q, --quiet      do not print progress messages
22243  -d, --debug      don't remove temporary files
22244      --recheck    update $as_me by reconfiguring in the same conditions
22245  --file=FILE[:TEMPLATE]
22246		   instantiate the configuration file FILE
22247  --header=FILE[:TEMPLATE]
22248		   instantiate the configuration header FILE
22249
22250Configuration files:
22251$config_files
22252
22253Configuration headers:
22254$config_headers
22255
22256Configuration commands:
22257$config_commands
22258
22259Report bugs to <bug-autoconf@gnu.org>."
22260_ACEOF
22261
22262cat >>$CONFIG_STATUS <<_ACEOF
22263ac_cs_version="\\
22264config.status
22265configured by $0, generated by GNU Autoconf 2.59,
22266  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22267
22268Copyright (C) 2003 Free Software Foundation, Inc.
22269This config.status script is free software; the Free Software Foundation
22270gives unlimited permission to copy, distribute and modify it."
22271srcdir=$srcdir
22272INSTALL="$INSTALL"
22273_ACEOF
22274
22275cat >>$CONFIG_STATUS <<\_ACEOF
22276# If no file are specified by the user, then we need to provide default
22277# value.  By we need to know if files were specified by the user.
22278ac_need_defaults=:
22279while test $# != 0
22280do
22281  case $1 in
22282  --*=*)
22283    ac_option=`expr "x$1" : 'x\([^=]*\)='`
22284    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22285    ac_shift=:
22286    ;;
22287  -*)
22288    ac_option=$1
22289    ac_optarg=$2
22290    ac_shift=shift
22291    ;;
22292  *) # This is not an option, so the user has probably given explicit
22293     # arguments.
22294     ac_option=$1
22295     ac_need_defaults=false;;
22296  esac
22297
22298  case $ac_option in
22299  # Handling of the options.
22300_ACEOF
22301cat >>$CONFIG_STATUS <<\_ACEOF
22302  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22303    ac_cs_recheck=: ;;
22304  --version | --vers* | -V )
22305    echo "$ac_cs_version"; exit 0 ;;
22306  --he | --h)
22307    # Conflict between --help and --header
22308    { { echo "$as_me:$LINENO: error: ambiguous option: $1
22309Try \`$0 --help' for more information." >&5
22310echo "$as_me: error: ambiguous option: $1
22311Try \`$0 --help' for more information." >&2;}
22312   { (exit 1); exit 1; }; };;
22313  --help | --hel | -h )
22314    echo "$ac_cs_usage"; exit 0 ;;
22315  --debug | --d* | -d )
22316    debug=: ;;
22317  --file | --fil | --fi | --f )
22318    $ac_shift
22319    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22320    ac_need_defaults=false;;
22321  --header | --heade | --head | --hea )
22322    $ac_shift
22323    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22324    ac_need_defaults=false;;
22325  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22326  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22327    ac_cs_silent=: ;;
22328
22329  # This is an error.
22330  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22331Try \`$0 --help' for more information." >&5
22332echo "$as_me: error: unrecognized option: $1
22333Try \`$0 --help' for more information." >&2;}
22334   { (exit 1); exit 1; }; } ;;
22335
22336  *) ac_config_targets="$ac_config_targets $1" ;;
22337
22338  esac
22339  shift
22340done
22341
22342ac_configure_extra_args=
22343
22344if $ac_cs_silent; then
22345  exec 6>/dev/null
22346  ac_configure_extra_args="$ac_configure_extra_args --silent"
22347fi
22348
22349_ACEOF
22350cat >>$CONFIG_STATUS <<_ACEOF
22351if \$ac_cs_recheck; then
22352  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22353  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22354fi
22355
22356_ACEOF
22357
22358cat >>$CONFIG_STATUS <<_ACEOF
22359#
22360# INIT-COMMANDS section.
22361#
22362
22363AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22364
22365_ACEOF
22366
22367
22368
22369cat >>$CONFIG_STATUS <<\_ACEOF
22370for ac_config_target in $ac_config_targets
22371do
22372  case "$ac_config_target" in
22373  # Handling of arguments.
22374  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22375  "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
22376  "xosd_plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES xosd_plugin/Makefile" ;;
22377  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22378  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22379  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22380echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22381   { (exit 1); exit 1; }; };;
22382  esac
22383done
22384
22385# If the user did not use the arguments to specify the items to instantiate,
22386# then the envvar interface is used.  Set only those that are not.
22387# We use the long form for the default assignment because of an extremely
22388# bizarre bug on SunOS 4.1.3.
22389if $ac_need_defaults; then
22390  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22391  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22392  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22393fi
22394
22395# Have a temporary directory for convenience.  Make it in the build tree
22396# simply because there is no reason to put it here, and in addition,
22397# creating and moving files from /tmp can sometimes cause problems.
22398# Create a temporary directory, and hook for its removal unless debugging.
22399$debug ||
22400{
22401  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22402  trap '{ (exit 1); exit 1; }' 1 2 13 15
22403}
22404
22405# Create a (secure) tmp directory for tmp files.
22406
22407{
22408  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22409  test -n "$tmp" && test -d "$tmp"
22410}  ||
22411{
22412  tmp=./confstat$$-$RANDOM
22413  (umask 077 && mkdir $tmp)
22414} ||
22415{
22416   echo "$me: cannot create a temporary directory in ." >&2
22417   { (exit 1); exit 1; }
22418}
22419
22420_ACEOF
22421
22422cat >>$CONFIG_STATUS <<_ACEOF
22423
22424#
22425# CONFIG_FILES section.
22426#
22427
22428# No need to generate the scripts if there are no CONFIG_FILES.
22429# This happens for instance when ./config.status config.h
22430if test -n "\$CONFIG_FILES"; then
22431  # Protect against being on the right side of a sed subst in config.status.
22432  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22433   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22434s,@SHELL@,$SHELL,;t t
22435s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22436s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22437s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22438s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22439s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22440s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22441s,@exec_prefix@,$exec_prefix,;t t
22442s,@prefix@,$prefix,;t t
22443s,@program_transform_name@,$program_transform_name,;t t
22444s,@bindir@,$bindir,;t t
22445s,@sbindir@,$sbindir,;t t
22446s,@libexecdir@,$libexecdir,;t t
22447s,@datadir@,$datadir,;t t
22448s,@sysconfdir@,$sysconfdir,;t t
22449s,@sharedstatedir@,$sharedstatedir,;t t
22450s,@localstatedir@,$localstatedir,;t t
22451s,@libdir@,$libdir,;t t
22452s,@includedir@,$includedir,;t t
22453s,@oldincludedir@,$oldincludedir,;t t
22454s,@infodir@,$infodir,;t t
22455s,@mandir@,$mandir,;t t
22456s,@build_alias@,$build_alias,;t t
22457s,@host_alias@,$host_alias,;t t
22458s,@target_alias@,$target_alias,;t t
22459s,@DEFS@,$DEFS,;t t
22460s,@ECHO_C@,$ECHO_C,;t t
22461s,@ECHO_N@,$ECHO_N,;t t
22462s,@ECHO_T@,$ECHO_T,;t t
22463s,@LIBS@,$LIBS,;t t
22464s,@build@,$build,;t t
22465s,@build_cpu@,$build_cpu,;t t
22466s,@build_vendor@,$build_vendor,;t t
22467s,@build_os@,$build_os,;t t
22468s,@host@,$host,;t t
22469s,@host_cpu@,$host_cpu,;t t
22470s,@host_vendor@,$host_vendor,;t t
22471s,@host_os@,$host_os,;t t
22472s,@target@,$target,;t t
22473s,@target_cpu@,$target_cpu,;t t
22474s,@target_vendor@,$target_vendor,;t t
22475s,@target_os@,$target_os,;t t
22476s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22477s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22478s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22479s,@CYGPATH_W@,$CYGPATH_W,;t t
22480s,@PACKAGE@,$PACKAGE,;t t
22481s,@VERSION@,$VERSION,;t t
22482s,@ACLOCAL@,$ACLOCAL,;t t
22483s,@AUTOCONF@,$AUTOCONF,;t t
22484s,@AUTOMAKE@,$AUTOMAKE,;t t
22485s,@AUTOHEADER@,$AUTOHEADER,;t t
22486s,@MAKEINFO@,$MAKEINFO,;t t
22487s,@AMTAR@,$AMTAR,;t t
22488s,@install_sh@,$install_sh,;t t
22489s,@STRIP@,$STRIP,;t t
22490s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22491s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22492s,@mkdir_p@,$mkdir_p,;t t
22493s,@AWK@,$AWK,;t t
22494s,@SET_MAKE@,$SET_MAKE,;t t
22495s,@am__leading_dot@,$am__leading_dot,;t t
22496s,@CC@,$CC,;t t
22497s,@CFLAGS@,$CFLAGS,;t t
22498s,@LDFLAGS@,$LDFLAGS,;t t
22499s,@CPPFLAGS@,$CPPFLAGS,;t t
22500s,@ac_ct_CC@,$ac_ct_CC,;t t
22501s,@EXEEXT@,$EXEEXT,;t t
22502s,@OBJEXT@,$OBJEXT,;t t
22503s,@DEPDIR@,$DEPDIR,;t t
22504s,@am__include@,$am__include,;t t
22505s,@am__quote@,$am__quote,;t t
22506s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22507s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22508s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22509s,@CCDEPMODE@,$CCDEPMODE,;t t
22510s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22511s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22512s,@CPP@,$CPP,;t t
22513s,@CXX@,$CXX,;t t
22514s,@CXXFLAGS@,$CXXFLAGS,;t t
22515s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22516s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22517s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22518s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22519s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
22520s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
22521s,@USE_RTTI@,$USE_RTTI,;t t
22522s,@CXXCPP@,$CXXCPP,;t t
22523s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
22524s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
22525s,@ENABLE_PERMISSIVE_FLAG@,$ENABLE_PERMISSIVE_FLAG,;t t
22526s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
22527s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
22528s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
22529s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
22530s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t
22531s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t
22532s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t
22533s,@EGREP@,$EGREP,;t t
22534s,@LN_S@,$LN_S,;t t
22535s,@ECHO@,$ECHO,;t t
22536s,@AR@,$AR,;t t
22537s,@ac_ct_AR@,$ac_ct_AR,;t t
22538s,@RANLIB@,$RANLIB,;t t
22539s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22540s,@F77@,$F77,;t t
22541s,@FFLAGS@,$FFLAGS,;t t
22542s,@ac_ct_F77@,$ac_ct_F77,;t t
22543s,@LIBTOOL@,$LIBTOOL,;t t
22544s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
22545s,@all_includes@,$all_includes,;t t
22546s,@all_libraries@,$all_libraries,;t t
22547s,@AUTODIRS@,$AUTODIRS,;t t
22548s,@INCLUDEDIR@,$INCLUDEDIR,;t t
22549s,@LIBLINEAK@,$LIBLINEAK,;t t
22550s,@PLUGINDIR@,$PLUGINDIR,;t t
22551s,@xosd_config_script@,$xosd_config_script,;t t
22552s,@XOSD_CFLAGS@,$XOSD_CFLAGS,;t t
22553s,@XOSD_LIBS@,$XOSD_LIBS,;t t
22554s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
22555s,@LIBOBJS@,$LIBOBJS,;t t
22556s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22557CEOF
22558
22559_ACEOF
22560
22561  cat >>$CONFIG_STATUS <<\_ACEOF
22562  # Split the substitutions into bite-sized pieces for seds with
22563  # small command number limits, like on Digital OSF/1 and HP-UX.
22564  ac_max_sed_lines=48
22565  ac_sed_frag=1 # Number of current file.
22566  ac_beg=1 # First line for current file.
22567  ac_end=$ac_max_sed_lines # Line after last line for current file.
22568  ac_more_lines=:
22569  ac_sed_cmds=
22570  while $ac_more_lines; do
22571    if test $ac_beg -gt 1; then
22572      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22573    else
22574      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22575    fi
22576    if test ! -s $tmp/subs.frag; then
22577      ac_more_lines=false
22578    else
22579      # The purpose of the label and of the branching condition is to
22580      # speed up the sed processing (if there are no `@' at all, there
22581      # is no need to browse any of the substitutions).
22582      # These are the two extra sed commands mentioned above.
22583      (echo ':t
22584  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22585      if test -z "$ac_sed_cmds"; then
22586	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22587      else
22588	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22589      fi
22590      ac_sed_frag=`expr $ac_sed_frag + 1`
22591      ac_beg=$ac_end
22592      ac_end=`expr $ac_end + $ac_max_sed_lines`
22593    fi
22594  done
22595  if test -z "$ac_sed_cmds"; then
22596    ac_sed_cmds=cat
22597  fi
22598fi # test -n "$CONFIG_FILES"
22599
22600_ACEOF
22601cat >>$CONFIG_STATUS <<\_ACEOF
22602for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22603  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22604  case $ac_file in
22605  - | *:- | *:-:* ) # input from stdin
22606	cat >$tmp/stdin
22607	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22608	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22609  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22610	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22611  * )   ac_file_in=$ac_file.in ;;
22612  esac
22613
22614  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22615  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22616$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22617	 X"$ac_file" : 'X\(//\)[^/]' \| \
22618	 X"$ac_file" : 'X\(//\)$' \| \
22619	 X"$ac_file" : 'X\(/\)' \| \
22620	 .     : '\(.\)' 2>/dev/null ||
22621echo X"$ac_file" |
22622    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22623  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22624  	  /^X\(\/\/\)$/{ s//\1/; q; }
22625  	  /^X\(\/\).*/{ s//\1/; q; }
22626  	  s/.*/./; q'`
22627  { if $as_mkdir_p; then
22628    mkdir -p "$ac_dir"
22629  else
22630    as_dir="$ac_dir"
22631    as_dirs=
22632    while test ! -d "$as_dir"; do
22633      as_dirs="$as_dir $as_dirs"
22634      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22635$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22636	 X"$as_dir" : 'X\(//\)[^/]' \| \
22637	 X"$as_dir" : 'X\(//\)$' \| \
22638	 X"$as_dir" : 'X\(/\)' \| \
22639	 .     : '\(.\)' 2>/dev/null ||
22640echo X"$as_dir" |
22641    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22642  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22643  	  /^X\(\/\/\)$/{ s//\1/; q; }
22644  	  /^X\(\/\).*/{ s//\1/; q; }
22645  	  s/.*/./; q'`
22646    done
22647    test ! -n "$as_dirs" || mkdir $as_dirs
22648  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22649echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22650   { (exit 1); exit 1; }; }; }
22651
22652  ac_builddir=.
22653
22654if test "$ac_dir" != .; then
22655  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22656  # A "../" for each directory in $ac_dir_suffix.
22657  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22658else
22659  ac_dir_suffix= ac_top_builddir=
22660fi
22661
22662case $srcdir in
22663  .)  # No --srcdir option.  We are building in place.
22664    ac_srcdir=.
22665    if test -z "$ac_top_builddir"; then
22666       ac_top_srcdir=.
22667    else
22668       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22669    fi ;;
22670  [\\/]* | ?:[\\/]* )  # Absolute path.
22671    ac_srcdir=$srcdir$ac_dir_suffix;
22672    ac_top_srcdir=$srcdir ;;
22673  *) # Relative path.
22674    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22675    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22676esac
22677
22678# Do not use `cd foo && pwd` to compute absolute paths, because
22679# the directories may not exist.
22680case `pwd` in
22681.) ac_abs_builddir="$ac_dir";;
22682*)
22683  case "$ac_dir" in
22684  .) ac_abs_builddir=`pwd`;;
22685  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22686  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22687  esac;;
22688esac
22689case $ac_abs_builddir in
22690.) ac_abs_top_builddir=${ac_top_builddir}.;;
22691*)
22692  case ${ac_top_builddir}. in
22693  .) ac_abs_top_builddir=$ac_abs_builddir;;
22694  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22695  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22696  esac;;
22697esac
22698case $ac_abs_builddir in
22699.) ac_abs_srcdir=$ac_srcdir;;
22700*)
22701  case $ac_srcdir in
22702  .) ac_abs_srcdir=$ac_abs_builddir;;
22703  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22704  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22705  esac;;
22706esac
22707case $ac_abs_builddir in
22708.) ac_abs_top_srcdir=$ac_top_srcdir;;
22709*)
22710  case $ac_top_srcdir in
22711  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22712  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22713  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22714  esac;;
22715esac
22716
22717
22718  case $INSTALL in
22719  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22720  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22721  esac
22722
22723  # Let's still pretend it is `configure' which instantiates (i.e., don't
22724  # use $as_me), people would be surprised to read:
22725  #    /* config.h.  Generated by config.status.  */
22726  if test x"$ac_file" = x-; then
22727    configure_input=
22728  else
22729    configure_input="$ac_file.  "
22730  fi
22731  configure_input=$configure_input"Generated from `echo $ac_file_in |
22732				     sed 's,.*/,,'` by configure."
22733
22734  # First look for the input files in the build tree, otherwise in the
22735  # src tree.
22736  ac_file_inputs=`IFS=:
22737    for f in $ac_file_in; do
22738      case $f in
22739      -) echo $tmp/stdin ;;
22740      [\\/$]*)
22741	 # Absolute (can't be DOS-style, as IFS=:)
22742	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22743echo "$as_me: error: cannot find input file: $f" >&2;}
22744   { (exit 1); exit 1; }; }
22745	 echo "$f";;
22746      *) # Relative
22747	 if test -f "$f"; then
22748	   # Build tree
22749	   echo "$f"
22750	 elif test -f "$srcdir/$f"; then
22751	   # Source tree
22752	   echo "$srcdir/$f"
22753	 else
22754	   # /dev/null tree
22755	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22756echo "$as_me: error: cannot find input file: $f" >&2;}
22757   { (exit 1); exit 1; }; }
22758	 fi;;
22759      esac
22760    done` || { (exit 1); exit 1; }
22761
22762  if test x"$ac_file" != x-; then
22763    { echo "$as_me:$LINENO: creating $ac_file" >&5
22764echo "$as_me: creating $ac_file" >&6;}
22765    rm -f "$ac_file"
22766  fi
22767_ACEOF
22768cat >>$CONFIG_STATUS <<_ACEOF
22769  sed "$ac_vpsub
22770$extrasub
22771_ACEOF
22772cat >>$CONFIG_STATUS <<\_ACEOF
22773:t
22774/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22775s,@configure_input@,$configure_input,;t t
22776s,@srcdir@,$ac_srcdir,;t t
22777s,@abs_srcdir@,$ac_abs_srcdir,;t t
22778s,@top_srcdir@,$ac_top_srcdir,;t t
22779s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22780s,@builddir@,$ac_builddir,;t t
22781s,@abs_builddir@,$ac_abs_builddir,;t t
22782s,@top_builddir@,$ac_top_builddir,;t t
22783s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22784s,@INSTALL@,$ac_INSTALL,;t t
22785" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22786  rm -f $tmp/stdin
22787  if test x"$ac_file" != x-; then
22788    mv $tmp/out $ac_file
22789  else
22790    cat $tmp/out
22791    rm -f $tmp/out
22792  fi
22793
22794done
22795_ACEOF
22796cat >>$CONFIG_STATUS <<\_ACEOF
22797
22798#
22799# CONFIG_HEADER section.
22800#
22801
22802# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22803# NAME is the cpp macro being defined and VALUE is the value it is being given.
22804#
22805# ac_d sets the value in "#define NAME VALUE" lines.
22806ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
22807ac_dB='[	 ].*$,\1#\2'
22808ac_dC=' '
22809ac_dD=',;t'
22810# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22811ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
22812ac_uB='$,\1#\2define\3'
22813ac_uC=' '
22814ac_uD=',;t'
22815
22816for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22817  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22818  case $ac_file in
22819  - | *:- | *:-:* ) # input from stdin
22820	cat >$tmp/stdin
22821	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22822	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22823  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22824	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22825  * )   ac_file_in=$ac_file.in ;;
22826  esac
22827
22828  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22829echo "$as_me: creating $ac_file" >&6;}
22830
22831  # First look for the input files in the build tree, otherwise in the
22832  # src tree.
22833  ac_file_inputs=`IFS=:
22834    for f in $ac_file_in; do
22835      case $f in
22836      -) echo $tmp/stdin ;;
22837      [\\/$]*)
22838	 # Absolute (can't be DOS-style, as IFS=:)
22839	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22840echo "$as_me: error: cannot find input file: $f" >&2;}
22841   { (exit 1); exit 1; }; }
22842	 # Do quote $f, to prevent DOS paths from being IFS'd.
22843	 echo "$f";;
22844      *) # Relative
22845	 if test -f "$f"; then
22846	   # Build tree
22847	   echo "$f"
22848	 elif test -f "$srcdir/$f"; then
22849	   # Source tree
22850	   echo "$srcdir/$f"
22851	 else
22852	   # /dev/null tree
22853	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22854echo "$as_me: error: cannot find input file: $f" >&2;}
22855   { (exit 1); exit 1; }; }
22856	 fi;;
22857      esac
22858    done` || { (exit 1); exit 1; }
22859  # Remove the trailing spaces.
22860  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
22861
22862_ACEOF
22863
22864# Transform confdefs.h into two sed scripts, `conftest.defines' and
22865# `conftest.undefs', that substitutes the proper values into
22866# config.h.in to produce config.h.  The first handles `#define'
22867# templates, and the second `#undef' templates.
22868# And first: Protect against being on the right side of a sed subst in
22869# config.status.  Protect against being in an unquoted here document
22870# in config.status.
22871rm -f conftest.defines conftest.undefs
22872# Using a here document instead of a string reduces the quoting nightmare.
22873# Putting comments in sed scripts is not portable.
22874#
22875# `end' is used to avoid that the second main sed command (meant for
22876# 0-ary CPP macros) applies to n-ary macro definitions.
22877# See the Autoconf documentation for `clear'.
22878cat >confdef2sed.sed <<\_ACEOF
22879s/[\\&,]/\\&/g
22880s,[\\$`],\\&,g
22881t clear
22882: clear
22883s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22884t end
22885s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22886: end
22887_ACEOF
22888# If some macros were called several times there might be several times
22889# the same #defines, which is useless.  Nevertheless, we may not want to
22890# sort them, since we want the *last* AC-DEFINE to be honored.
22891uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22892sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22893rm -f confdef2sed.sed
22894
22895# This sed command replaces #undef with comments.  This is necessary, for
22896# example, in the case of _POSIX_SOURCE, which is predefined and required
22897# on some systems where configure will not decide to define it.
22898cat >>conftest.undefs <<\_ACEOF
22899s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22900_ACEOF
22901
22902# Break up conftest.defines because some shells have a limit on the size
22903# of here documents, and old seds have small limits too (100 cmds).
22904echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22905echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22906echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22907echo '  :' >>$CONFIG_STATUS
22908rm -f conftest.tail
22909while grep . conftest.defines >/dev/null
22910do
22911  # Write a limited-size here document to $tmp/defines.sed.
22912  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22913  # Speed up: don't consider the non `#define' lines.
22914  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
22915  # Work around the forget-to-reset-the-flag bug.
22916  echo 't clr' >>$CONFIG_STATUS
22917  echo ': clr' >>$CONFIG_STATUS
22918  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22919  echo 'CEOF
22920  sed -f $tmp/defines.sed $tmp/in >$tmp/out
22921  rm -f $tmp/in
22922  mv $tmp/out $tmp/in
22923' >>$CONFIG_STATUS
22924  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22925  rm -f conftest.defines
22926  mv conftest.tail conftest.defines
22927done
22928rm -f conftest.defines
22929echo '  fi # grep' >>$CONFIG_STATUS
22930echo >>$CONFIG_STATUS
22931
22932# Break up conftest.undefs because some shells have a limit on the size
22933# of here documents, and old seds have small limits too (100 cmds).
22934echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22935rm -f conftest.tail
22936while grep . conftest.undefs >/dev/null
22937do
22938  # Write a limited-size here document to $tmp/undefs.sed.
22939  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22940  # Speed up: don't consider the non `#undef'
22941  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
22942  # Work around the forget-to-reset-the-flag bug.
22943  echo 't clr' >>$CONFIG_STATUS
22944  echo ': clr' >>$CONFIG_STATUS
22945  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22946  echo 'CEOF
22947  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22948  rm -f $tmp/in
22949  mv $tmp/out $tmp/in
22950' >>$CONFIG_STATUS
22951  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22952  rm -f conftest.undefs
22953  mv conftest.tail conftest.undefs
22954done
22955rm -f conftest.undefs
22956
22957cat >>$CONFIG_STATUS <<\_ACEOF
22958  # Let's still pretend it is `configure' which instantiates (i.e., don't
22959  # use $as_me), people would be surprised to read:
22960  #    /* config.h.  Generated by config.status.  */
22961  if test x"$ac_file" = x-; then
22962    echo "/* Generated by configure.  */" >$tmp/config.h
22963  else
22964    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22965  fi
22966  cat $tmp/in >>$tmp/config.h
22967  rm -f $tmp/in
22968  if test x"$ac_file" != x-; then
22969    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22970      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22971echo "$as_me: $ac_file is unchanged" >&6;}
22972    else
22973      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22974$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22975	 X"$ac_file" : 'X\(//\)[^/]' \| \
22976	 X"$ac_file" : 'X\(//\)$' \| \
22977	 X"$ac_file" : 'X\(/\)' \| \
22978	 .     : '\(.\)' 2>/dev/null ||
22979echo X"$ac_file" |
22980    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22981  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22982  	  /^X\(\/\/\)$/{ s//\1/; q; }
22983  	  /^X\(\/\).*/{ s//\1/; q; }
22984  	  s/.*/./; q'`
22985      { if $as_mkdir_p; then
22986    mkdir -p "$ac_dir"
22987  else
22988    as_dir="$ac_dir"
22989    as_dirs=
22990    while test ! -d "$as_dir"; do
22991      as_dirs="$as_dir $as_dirs"
22992      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22993$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22994	 X"$as_dir" : 'X\(//\)[^/]' \| \
22995	 X"$as_dir" : 'X\(//\)$' \| \
22996	 X"$as_dir" : 'X\(/\)' \| \
22997	 .     : '\(.\)' 2>/dev/null ||
22998echo X"$as_dir" |
22999    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23000  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23001  	  /^X\(\/\/\)$/{ s//\1/; q; }
23002  	  /^X\(\/\).*/{ s//\1/; q; }
23003  	  s/.*/./; q'`
23004    done
23005    test ! -n "$as_dirs" || mkdir $as_dirs
23006  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23007echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23008   { (exit 1); exit 1; }; }; }
23009
23010      rm -f $ac_file
23011      mv $tmp/config.h $ac_file
23012    fi
23013  else
23014    cat $tmp/config.h
23015    rm -f $tmp/config.h
23016  fi
23017# Compute $ac_file's index in $config_headers.
23018_am_stamp_count=1
23019for _am_header in $config_headers :; do
23020  case $_am_header in
23021    $ac_file | $ac_file:* )
23022      break ;;
23023    * )
23024      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23025  esac
23026done
23027echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23028$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23029	 X$ac_file : 'X\(//\)[^/]' \| \
23030	 X$ac_file : 'X\(//\)$' \| \
23031	 X$ac_file : 'X\(/\)' \| \
23032	 .     : '\(.\)' 2>/dev/null ||
23033echo X$ac_file |
23034    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23035  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23036  	  /^X\(\/\/\)$/{ s//\1/; q; }
23037  	  /^X\(\/\).*/{ s//\1/; q; }
23038  	  s/.*/./; q'`/stamp-h$_am_stamp_count
23039done
23040_ACEOF
23041cat >>$CONFIG_STATUS <<\_ACEOF
23042
23043#
23044# CONFIG_COMMANDS section.
23045#
23046for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23047  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23048  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23049  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23050$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23051	 X"$ac_dest" : 'X\(//\)[^/]' \| \
23052	 X"$ac_dest" : 'X\(//\)$' \| \
23053	 X"$ac_dest" : 'X\(/\)' \| \
23054	 .     : '\(.\)' 2>/dev/null ||
23055echo X"$ac_dest" |
23056    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23057  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23058  	  /^X\(\/\/\)$/{ s//\1/; q; }
23059  	  /^X\(\/\).*/{ s//\1/; q; }
23060  	  s/.*/./; q'`
23061  { if $as_mkdir_p; then
23062    mkdir -p "$ac_dir"
23063  else
23064    as_dir="$ac_dir"
23065    as_dirs=
23066    while test ! -d "$as_dir"; do
23067      as_dirs="$as_dir $as_dirs"
23068      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23069$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23070	 X"$as_dir" : 'X\(//\)[^/]' \| \
23071	 X"$as_dir" : 'X\(//\)$' \| \
23072	 X"$as_dir" : 'X\(/\)' \| \
23073	 .     : '\(.\)' 2>/dev/null ||
23074echo X"$as_dir" |
23075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23076  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23077  	  /^X\(\/\/\)$/{ s//\1/; q; }
23078  	  /^X\(\/\).*/{ s//\1/; q; }
23079  	  s/.*/./; q'`
23080    done
23081    test ! -n "$as_dirs" || mkdir $as_dirs
23082  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23083echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23084   { (exit 1); exit 1; }; }; }
23085
23086  ac_builddir=.
23087
23088if test "$ac_dir" != .; then
23089  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23090  # A "../" for each directory in $ac_dir_suffix.
23091  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23092else
23093  ac_dir_suffix= ac_top_builddir=
23094fi
23095
23096case $srcdir in
23097  .)  # No --srcdir option.  We are building in place.
23098    ac_srcdir=.
23099    if test -z "$ac_top_builddir"; then
23100       ac_top_srcdir=.
23101    else
23102       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23103    fi ;;
23104  [\\/]* | ?:[\\/]* )  # Absolute path.
23105    ac_srcdir=$srcdir$ac_dir_suffix;
23106    ac_top_srcdir=$srcdir ;;
23107  *) # Relative path.
23108    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23109    ac_top_srcdir=$ac_top_builddir$srcdir ;;
23110esac
23111
23112# Do not use `cd foo && pwd` to compute absolute paths, because
23113# the directories may not exist.
23114case `pwd` in
23115.) ac_abs_builddir="$ac_dir";;
23116*)
23117  case "$ac_dir" in
23118  .) ac_abs_builddir=`pwd`;;
23119  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23120  *) ac_abs_builddir=`pwd`/"$ac_dir";;
23121  esac;;
23122esac
23123case $ac_abs_builddir in
23124.) ac_abs_top_builddir=${ac_top_builddir}.;;
23125*)
23126  case ${ac_top_builddir}. in
23127  .) ac_abs_top_builddir=$ac_abs_builddir;;
23128  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23129  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23130  esac;;
23131esac
23132case $ac_abs_builddir in
23133.) ac_abs_srcdir=$ac_srcdir;;
23134*)
23135  case $ac_srcdir in
23136  .) ac_abs_srcdir=$ac_abs_builddir;;
23137  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23138  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23139  esac;;
23140esac
23141case $ac_abs_builddir in
23142.) ac_abs_top_srcdir=$ac_top_srcdir;;
23143*)
23144  case $ac_top_srcdir in
23145  .) ac_abs_top_srcdir=$ac_abs_builddir;;
23146  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23147  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23148  esac;;
23149esac
23150
23151
23152  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23153echo "$as_me: executing $ac_dest commands" >&6;}
23154  case $ac_dest in
23155    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23156  # Strip MF so we end up with the name of the file.
23157  mf=`echo "$mf" | sed -e 's/:.*$//'`
23158  # Check whether this is an Automake generated Makefile or not.
23159  # We used to match only the files named `Makefile.in', but
23160  # some people rename them; so instead we look at the file content.
23161  # Grep'ing the first line is not enough: some people post-process
23162  # each Makefile.in and add a new line on top of each file to say so.
23163  # So let's grep whole file.
23164  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23165    dirpart=`(dirname "$mf") 2>/dev/null ||
23166$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23167	 X"$mf" : 'X\(//\)[^/]' \| \
23168	 X"$mf" : 'X\(//\)$' \| \
23169	 X"$mf" : 'X\(/\)' \| \
23170	 .     : '\(.\)' 2>/dev/null ||
23171echo X"$mf" |
23172    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23173  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23174  	  /^X\(\/\/\)$/{ s//\1/; q; }
23175  	  /^X\(\/\).*/{ s//\1/; q; }
23176  	  s/.*/./; q'`
23177  else
23178    continue
23179  fi
23180  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23181  # Extract the definition of DEP_FILES from the Makefile without
23182  # running `make'.
23183  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23184  test -z "$DEPDIR" && continue
23185  # When using ansi2knr, U may be empty or an underscore; expand it
23186  U=`sed -n 's/^U = //p' < "$mf"`
23187  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23188  # We invoke sed twice because it is the simplest approach to
23189  # changing $(DEPDIR) to its actual value in the expansion.
23190  for file in `sed -n '
23191    /^DEP_FILES = .*\\\\$/ {
23192      s/^DEP_FILES = //
23193      :loop
23194	s/\\\\$//
23195	p
23196	n
23197	/\\\\$/ b loop
23198      p
23199    }
23200    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23201       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23202    # Make sure the directory exists.
23203    test -f "$dirpart/$file" && continue
23204    fdir=`(dirname "$file") 2>/dev/null ||
23205$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23206	 X"$file" : 'X\(//\)[^/]' \| \
23207	 X"$file" : 'X\(//\)$' \| \
23208	 X"$file" : 'X\(/\)' \| \
23209	 .     : '\(.\)' 2>/dev/null ||
23210echo X"$file" |
23211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23212  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23213  	  /^X\(\/\/\)$/{ s//\1/; q; }
23214  	  /^X\(\/\).*/{ s//\1/; q; }
23215  	  s/.*/./; q'`
23216    { if $as_mkdir_p; then
23217    mkdir -p $dirpart/$fdir
23218  else
23219    as_dir=$dirpart/$fdir
23220    as_dirs=
23221    while test ! -d "$as_dir"; do
23222      as_dirs="$as_dir $as_dirs"
23223      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23224$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23225	 X"$as_dir" : 'X\(//\)[^/]' \| \
23226	 X"$as_dir" : 'X\(//\)$' \| \
23227	 X"$as_dir" : 'X\(/\)' \| \
23228	 .     : '\(.\)' 2>/dev/null ||
23229echo X"$as_dir" |
23230    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23231  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23232  	  /^X\(\/\/\)$/{ s//\1/; q; }
23233  	  /^X\(\/\).*/{ s//\1/; q; }
23234  	  s/.*/./; q'`
23235    done
23236    test ! -n "$as_dirs" || mkdir $as_dirs
23237  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23238echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23239   { (exit 1); exit 1; }; }; }
23240
23241    # echo "creating $dirpart/$file"
23242    echo '# dummy' > "$dirpart/$file"
23243  done
23244done
23245 ;;
23246  esac
23247done
23248_ACEOF
23249
23250cat >>$CONFIG_STATUS <<\_ACEOF
23251
23252{ (exit 0); exit 0; }
23253_ACEOF
23254if test "x$with_fast_perl" = "xyes"; then
23255  perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS    \
23256    || mv $CONFIG_STATUS.bak $CONFIG_STATUS
23257  rm -f $CONFIG_STATUS.bak
23258fi
23259chmod +x $CONFIG_STATUS
23260ac_clean_files=$ac_clean_files_save
23261
23262
23263# configure is writing to config.log, and then calls config.status.
23264# config.status does its own redirection, appending to config.log.
23265# Unfortunately, on DOS this fails, as config.log is still kept open
23266# by configure, so config.status won't be able to write to it; its
23267# output is simply discarded.  So we exec the FD to /dev/null,
23268# effectively closing config.log, so it can be properly (re)opened and
23269# appended to by config.status.  When coming back to configure, we
23270# need to make the FD available again.
23271if test "$no_create" != yes; then
23272  ac_cs_success=:
23273  ac_config_status_args=
23274  test "$silent" = yes &&
23275    ac_config_status_args="$ac_config_status_args --quiet"
23276  exec 5>/dev/null
23277  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23278  exec 5>>config.log
23279  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23280  # would make configure fail if this is the last instruction.
23281  $ac_cs_success || { (exit 1); exit 1; }
23282fi
23283
23284# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
23285if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
23286  # And if so, warn when they don't match
23287  if test "$kde_libs_prefix" != "$given_prefix"; then
23288    # And if kde doesn't know about the prefix yet
23289    echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
23290    if test $? -ne 0; then
23291      echo ""
23292      echo "Warning: you chose to install this package in $given_prefix,"
23293      echo "but KDE was found in $kde_libs_prefix."
23294      echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
23295      echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
23296      echo "Then restart KDE."
23297      echo ""
23298    fi
23299  fi
23300fi
23301
23302if test "$all_tests" = "bad"; then
23303  if test ! "$cache_file" = "/dev/null"; then
23304    echo ""
23305    echo "Please remove the file $cache_file after changing your setup"
23306    echo "so that configure will find the changes next time."
23307    echo ""
23308  fi
23309else
23310  echo ""
23311  echo "Good - your configure finished. Start make now"
23312  echo ""
23313fi
23314