1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/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 -n "`(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  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243
244# Check that we are running under the correct shell.
245SHELL=${CONFIG_SHELL-/bin/sh}
246
247case X$ECHO in
248X*--fallback-echo)
249  # Remove one level of quotation (which was required for Make).
250  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251  ;;
252esac
253
254echo=${ECHO-echo}
255if test "X$1" = X--no-reexec; then
256  # Discard the --no-reexec flag, and continue.
257  shift
258elif test "X$1" = X--fallback-echo; then
259  # Avoid inline document here, it may be left over
260  :
261elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
262  # Yippee, $echo works!
263  :
264else
265  # Restart under the correct shell.
266  exec $SHELL "$0" --no-reexec ${1+"$@"}
267fi
268
269if test "X$1" = X--fallback-echo; then
270  # used as fallback echo
271  shift
272  cat <<EOF
273$*
274EOF
275  exit 0
276fi
277
278# The HP-UX ksh and POSIX shell print the target directory to stdout
279# if CDPATH is set.
280if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281
282if test -z "$ECHO"; then
283if test "X${echo_test_string+set}" != Xset; then
284# find a string as large as possible, as long as the shell can cope with it
285  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288       echo_test_string="`eval $cmd`" &&
289       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290    then
291      break
292    fi
293  done
294fi
295
296if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298   test "X$echo_testing_string" = "X$echo_test_string"; then
299  :
300else
301  # The Solaris, AIX, and Digital Unix default echo programs unquote
302  # backslashes.  This makes it impossible to quote backslashes using
303  #   echo "$something" | sed 's/\\/\\\\/g'
304  #
305  # So, first we look for a working echo in the user's PATH.
306
307  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308  for dir in $PATH /usr/ucb; do
309    IFS="$lt_save_ifs"
310    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313       test "X$echo_testing_string" = "X$echo_test_string"; then
314      echo="$dir/echo"
315      break
316    fi
317  done
318  IFS="$lt_save_ifs"
319
320  if test "X$echo" = Xecho; then
321    # We didn't find a better echo, so look for alternatives.
322    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324       test "X$echo_testing_string" = "X$echo_test_string"; then
325      # This shell has a builtin print -r that does the trick.
326      echo='print -r'
327    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328	 test "X$CONFIG_SHELL" != X/bin/ksh; then
329      # If we have ksh, try running configure again with it.
330      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331      export ORIGINAL_CONFIG_SHELL
332      CONFIG_SHELL=/bin/ksh
333      export CONFIG_SHELL
334      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335    else
336      # Try using printf.
337      echo='printf %s\n'
338      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340	 test "X$echo_testing_string" = "X$echo_test_string"; then
341	# Cool, printf works
342	:
343      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344	   test "X$echo_testing_string" = 'X\t' &&
345	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346	   test "X$echo_testing_string" = "X$echo_test_string"; then
347	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348	export CONFIG_SHELL
349	SHELL="$CONFIG_SHELL"
350	export SHELL
351	echo="$CONFIG_SHELL $0 --fallback-echo"
352      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353	   test "X$echo_testing_string" = 'X\t' &&
354	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355	   test "X$echo_testing_string" = "X$echo_test_string"; then
356	echo="$CONFIG_SHELL $0 --fallback-echo"
357      else
358	# maybe with a smaller string...
359	prev=:
360
361	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363	  then
364	    break
365	  fi
366	  prev="$cmd"
367	done
368
369	if test "$prev" != 'sed 50q "$0"'; then
370	  echo_test_string=`eval $prev`
371	  export echo_test_string
372	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373	else
374	  # Oops.  We lost completely, so just stick with echo.
375	  echo=echo
376	fi
377      fi
378    fi
379  fi
380fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385ECHO=$echo
386if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392# Name of the host.
393# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
394# so uname gets run too.
395ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
396
397exec 6>&1
398
399#
400# Initializations.
401#
402ac_default_prefix=/usr/local
403ac_config_libobj_dir=.
404cross_compiling=no
405subdirs=
406MFLAGS=
407MAKEFLAGS=
408SHELL=${CONFIG_SHELL-/bin/sh}
409
410# Maximum number of lines to put in a shell here document.
411# This variable seems obsolete.  It should probably be removed, and
412# only ac_max_sed_lines should be used.
413: ${ac_max_here_lines=38}
414
415# Identity of this package.
416PACKAGE_NAME=
417PACKAGE_TARNAME=
418PACKAGE_VERSION=
419PACKAGE_STRING=
420PACKAGE_BUGREPORT=
421
422ac_unique_file="acinclude.m4"
423ac_default_prefix=/usr/local
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438#  include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443#  include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454#  include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
461ac_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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CONF_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE WOVERLOADED_VIRTUAL USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS REPO NOREPO KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE LN_S ECHO RANLIB ac_ct_RANLIB EGREP LIBTOOL KDE_PLUGIN SDL_CONFIG SDL_CFLAGS SDL_LIBS USER_INCLUDES USER_LDFLAGS all_includes all_libraries AUTODIRS TOPSUBDIRS LIBOBJS LTLIBOBJS'
462ac_subst_files=''
463
464# Initialize some variables set by options.
465ac_init_help=
466ac_init_version=false
467# The variables have the same names as the options, with
468# dashes changed to underlines.
469cache_file=/dev/null
470exec_prefix=NONE
471no_create=
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
480verbose=
481x_includes=NONE
482x_libraries=NONE
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
501
502ac_prev=
503for ac_option
504do
505  # If the previous option needs an argument, assign it.
506  if test -n "$ac_prev"; then
507    eval "$ac_prev=\$ac_option"
508    ac_prev=
509    continue
510  fi
511
512  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514  # Accept the important Cygnus configure options, so we can diagnose typos.
515
516  case $ac_option in
517
518  -bindir | --bindir | --bindi | --bind | --bin | --bi)
519    ac_prev=bindir ;;
520  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521    bindir=$ac_optarg ;;
522
523  -build | --build | --buil | --bui | --bu)
524    ac_prev=build_alias ;;
525  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526    build_alias=$ac_optarg ;;
527
528  -cache-file | --cache-file | --cache-fil | --cache-fi \
529  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530    ac_prev=cache_file ;;
531  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533    cache_file=$ac_optarg ;;
534
535  --config-cache | -C)
536    cache_file=config.cache ;;
537
538  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539    ac_prev=datadir ;;
540  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541  | --da=*)
542    datadir=$ac_optarg ;;
543
544  -disable-* | --disable-*)
545    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546    # Reject names that are not valid shell variable names.
547    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549   { (exit 1); exit 1; }; }
550    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551    eval "enable_$ac_feature=no" ;;
552
553  -enable-* | --enable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    case $ac_option in
561      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562      *) ac_optarg=yes ;;
563    esac
564    eval "enable_$ac_feature='$ac_optarg'" ;;
565
566  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568  | --exec | --exe | --ex)
569    ac_prev=exec_prefix ;;
570  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572  | --exec=* | --exe=* | --ex=*)
573    exec_prefix=$ac_optarg ;;
574
575  -gas | --gas | --ga | --g)
576    # Obsolete; use --with-gas.
577    with_gas=yes ;;
578
579  -help | --help | --hel | --he | -h)
580    ac_init_help=long ;;
581  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582    ac_init_help=recursive ;;
583  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584    ac_init_help=short ;;
585
586  -host | --host | --hos | --ho)
587    ac_prev=host_alias ;;
588  -host=* | --host=* | --hos=* | --ho=*)
589    host_alias=$ac_optarg ;;
590
591  -includedir | --includedir | --includedi | --included | --include \
592  | --includ | --inclu | --incl | --inc)
593    ac_prev=includedir ;;
594  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595  | --includ=* | --inclu=* | --incl=* | --inc=*)
596    includedir=$ac_optarg ;;
597
598  -infodir | --infodir | --infodi | --infod | --info | --inf)
599    ac_prev=infodir ;;
600  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601    infodir=$ac_optarg ;;
602
603  -libdir | --libdir | --libdi | --libd)
604    ac_prev=libdir ;;
605  -libdir=* | --libdir=* | --libdi=* | --libd=*)
606    libdir=$ac_optarg ;;
607
608  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609  | --libexe | --libex | --libe)
610    ac_prev=libexecdir ;;
611  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612  | --libexe=* | --libex=* | --libe=*)
613    libexecdir=$ac_optarg ;;
614
615  -localstatedir | --localstatedir | --localstatedi | --localstated \
616  | --localstate | --localstat | --localsta | --localst \
617  | --locals | --local | --loca | --loc | --lo)
618    ac_prev=localstatedir ;;
619  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622    localstatedir=$ac_optarg ;;
623
624  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625    ac_prev=mandir ;;
626  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627    mandir=$ac_optarg ;;
628
629  -nfp | --nfp | --nf)
630    # Obsolete; use --without-fp.
631    with_fp=no ;;
632
633  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634  | --no-cr | --no-c | -n)
635    no_create=yes ;;
636
637  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639    no_recursion=yes ;;
640
641  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643  | --oldin | --oldi | --old | --ol | --o)
644    ac_prev=oldincludedir ;;
645  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648    oldincludedir=$ac_optarg ;;
649
650  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651    ac_prev=prefix ;;
652  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653    prefix=$ac_optarg ;;
654
655  -program-prefix | --program-prefix | --program-prefi | --program-pref \
656  | --program-pre | --program-pr | --program-p)
657    ac_prev=program_prefix ;;
658  -program-prefix=* | --program-prefix=* | --program-prefi=* \
659  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660    program_prefix=$ac_optarg ;;
661
662  -program-suffix | --program-suffix | --program-suffi | --program-suff \
663  | --program-suf | --program-su | --program-s)
664    ac_prev=program_suffix ;;
665  -program-suffix=* | --program-suffix=* | --program-suffi=* \
666  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667    program_suffix=$ac_optarg ;;
668
669  -program-transform-name | --program-transform-name \
670  | --program-transform-nam | --program-transform-na \
671  | --program-transform-n | --program-transform- \
672  | --program-transform | --program-transfor \
673  | --program-transfo | --program-transf \
674  | --program-trans | --program-tran \
675  | --progr-tra | --program-tr | --program-t)
676    ac_prev=program_transform_name ;;
677  -program-transform-name=* | --program-transform-name=* \
678  | --program-transform-nam=* | --program-transform-na=* \
679  | --program-transform-n=* | --program-transform-=* \
680  | --program-transform=* | --program-transfor=* \
681  | --program-transfo=* | --program-transf=* \
682  | --program-trans=* | --program-tran=* \
683  | --progr-tra=* | --program-tr=* | --program-t=*)
684    program_transform_name=$ac_optarg ;;
685
686  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687  | -silent | --silent | --silen | --sile | --sil)
688    silent=yes ;;
689
690  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691    ac_prev=sbindir ;;
692  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693  | --sbi=* | --sb=*)
694    sbindir=$ac_optarg ;;
695
696  -sharedstatedir | --sharedstatedir | --sharedstatedi \
697  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698  | --sharedst | --shareds | --shared | --share | --shar \
699  | --sha | --sh)
700    ac_prev=sharedstatedir ;;
701  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704  | --sha=* | --sh=*)
705    sharedstatedir=$ac_optarg ;;
706
707  -site | --site | --sit)
708    ac_prev=site ;;
709  -site=* | --site=* | --sit=*)
710    site=$ac_optarg ;;
711
712  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713    ac_prev=srcdir ;;
714  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715    srcdir=$ac_optarg ;;
716
717  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718  | --syscon | --sysco | --sysc | --sys | --sy)
719    ac_prev=sysconfdir ;;
720  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722    sysconfdir=$ac_optarg ;;
723
724  -target | --target | --targe | --targ | --tar | --ta | --t)
725    ac_prev=target_alias ;;
726  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727    target_alias=$ac_optarg ;;
728
729  -v | -verbose | --verbose | --verbos | --verbo | --verb)
730    verbose=yes ;;
731
732  -version | --version | --versio | --versi | --vers | -V)
733    ac_init_version=: ;;
734
735  -with-* | --with-*)
736    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737    # Reject names that are not valid shell variable names.
738    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739      { echo "$as_me: error: invalid package name: $ac_package" >&2
740   { (exit 1); exit 1; }; }
741    ac_package=`echo $ac_package| sed 's/-/_/g'`
742    case $ac_option in
743      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744      *) ac_optarg=yes ;;
745    esac
746    eval "with_$ac_package='$ac_optarg'" ;;
747
748  -without-* | --without-*)
749    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750    # Reject names that are not valid shell variable names.
751    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752      { echo "$as_me: error: invalid package name: $ac_package" >&2
753   { (exit 1); exit 1; }; }
754    ac_package=`echo $ac_package | sed 's/-/_/g'`
755    eval "with_$ac_package=no" ;;
756
757  --x)
758    # Obsolete; use --with-x.
759    with_x=yes ;;
760
761  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762  | --x-incl | --x-inc | --x-in | --x-i)
763    ac_prev=x_includes ;;
764  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766    x_includes=$ac_optarg ;;
767
768  -x-libraries | --x-libraries | --x-librarie | --x-librari \
769  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770    ac_prev=x_libraries ;;
771  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773    x_libraries=$ac_optarg ;;
774
775  -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777   { (exit 1); exit 1; }; }
778    ;;
779
780  *=*)
781    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782    # Reject names that are not valid shell variable names.
783    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785   { (exit 1); exit 1; }; }
786    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787    eval "$ac_envvar='$ac_optarg'"
788    export $ac_envvar ;;
789
790  *)
791    # FIXME: should be removed in autoconf 3.0.
792    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796    ;;
797
798  esac
799done
800
801if test -n "$ac_prev"; then
802  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803  { echo "$as_me: error: missing argument to $ac_option" >&2
804   { (exit 1); exit 1; }; }
805fi
806
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810  eval ac_val=$`echo $ac_var`
811  case $ac_val in
812    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814   { (exit 1); exit 1; }; };;
815  esac
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820              localstatedir libdir includedir oldincludedir infodir mandir
821do
822  eval ac_val=$`echo $ac_var`
823  case $ac_val in
824    [\\/$]* | ?:[\\/]* ) ;;
825    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826   { (exit 1); exit 1; }; };;
827  esac
828done
829
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
836
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839  if test "x$build_alias" = x; then
840    cross_compiling=maybe
841    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842    If a cross compiler is detected then cross compile mode will be used." >&2
843  elif test "x$build_alias" != "x$host_alias"; then
844    cross_compiling=yes
845  fi
846fi
847
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
852
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856  ac_srcdir_defaulted=yes
857  # Try the directory containing this script, then its parent.
858  ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860         X"$0" : 'X\(//\)[^/]' \| \
861         X"$0" : 'X\(//\)$' \| \
862         X"$0" : 'X\(/\)' \| \
863         .     : '\(.\)' 2>/dev/null ||
864echo X"$0" |
865    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867  	  /^X\(\/\/\)$/{ s//\1/; q; }
868  	  /^X\(\/\).*/{ s//\1/; q; }
869  	  s/.*/./; q'`
870  srcdir=$ac_confdir
871  if test ! -r $srcdir/$ac_unique_file; then
872    srcdir=..
873  fi
874else
875  ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878  if test "$ac_srcdir_defaulted" = yes; then
879    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880   { (exit 1); exit 1; }; }
881  else
882    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883   { (exit 1); exit 1; }; }
884  fi
885fi
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888   { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CC_set=${CC+set}
903ac_env_CC_value=$CC
904ac_cv_env_CC_set=${CC+set}
905ac_cv_env_CC_value=$CC
906ac_env_CFLAGS_set=${CFLAGS+set}
907ac_env_CFLAGS_value=$CFLAGS
908ac_cv_env_CFLAGS_set=${CFLAGS+set}
909ac_cv_env_CFLAGS_value=$CFLAGS
910ac_env_LDFLAGS_set=${LDFLAGS+set}
911ac_env_LDFLAGS_value=$LDFLAGS
912ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913ac_cv_env_LDFLAGS_value=$LDFLAGS
914ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915ac_env_CPPFLAGS_value=$CPPFLAGS
916ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918ac_env_CPP_set=${CPP+set}
919ac_env_CPP_value=$CPP
920ac_cv_env_CPP_set=${CPP+set}
921ac_cv_env_CPP_value=$CPP
922ac_env_CXX_set=${CXX+set}
923ac_env_CXX_value=$CXX
924ac_cv_env_CXX_set=${CXX+set}
925ac_cv_env_CXX_value=$CXX
926ac_env_CXXFLAGS_set=${CXXFLAGS+set}
927ac_env_CXXFLAGS_value=$CXXFLAGS
928ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
929ac_cv_env_CXXFLAGS_value=$CXXFLAGS
930ac_env_CXXCPP_set=${CXXCPP+set}
931ac_env_CXXCPP_value=$CXXCPP
932ac_cv_env_CXXCPP_set=${CXXCPP+set}
933ac_cv_env_CXXCPP_value=$CXXCPP
934
935#
936# Report the --help message.
937#
938if test "$ac_init_help" = "long"; then
939  # Omit some internal or obsolete options to make the list less imposing.
940  # This message is too long to be a string in the A/UX 3.1 sh.
941  cat <<_ACEOF
942\`configure' configures this package to adapt to many kinds of systems.
943
944Usage: $0 [OPTION]... [VAR=VALUE]...
945
946To assign environment variables (e.g., CC, CFLAGS...), specify them as
947VAR=VALUE.  See below for descriptions of some of the useful variables.
948
949Defaults for the options are specified in brackets.
950
951Configuration:
952  -h, --help              display this help and exit
953      --help=short        display options specific to this package
954      --help=recursive    display the short help of all the included packages
955  -V, --version           display version information and exit
956  -q, --quiet, --silent   do not print \`checking...' messages
957      --cache-file=FILE   cache test results in FILE [disabled]
958  -C, --config-cache      alias for \`--cache-file=config.cache'
959  -n, --no-create         do not create output files
960      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
961
962_ACEOF
963
964  cat <<_ACEOF
965Installation directories:
966  --prefix=PREFIX         install architecture-independent files in PREFIX
967                          [$ac_default_prefix]
968  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
969                          [PREFIX]
970
971By default, \`make install' will install all the files in
972\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
973an installation prefix other than \`$ac_default_prefix' using \`--prefix',
974for instance \`--prefix=\$HOME'.
975
976For better control, use the options below.
977
978Fine tuning of the installation directories:
979  --bindir=DIR           user executables [EPREFIX/bin]
980  --sbindir=DIR          system admin executables [EPREFIX/sbin]
981  --libexecdir=DIR       program executables [EPREFIX/libexec]
982  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
983  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
984  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
985  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
986  --libdir=DIR           object code libraries [EPREFIX/lib]
987  --includedir=DIR       C header files [PREFIX/include]
988  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
989  --infodir=DIR          info documentation [PREFIX/info]
990  --mandir=DIR           man documentation [PREFIX/man]
991_ACEOF
992
993  cat <<\_ACEOF
994
995Program names:
996  --program-prefix=PREFIX            prepend PREFIX to installed program names
997  --program-suffix=SUFFIX            append SUFFIX to installed program names
998  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
999
1000System types:
1001  --build=BUILD     configure for building on BUILD [guessed]
1002  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1003  --target=TARGET   configure for building compilers for TARGET [HOST]
1004_ACEOF
1005fi
1006
1007if test -n "$ac_init_help"; then
1008
1009  cat <<\_ACEOF
1010
1011Optional Features:
1012  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1013  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1014  --disable-fast-perl     disable fast Makefile generation (needs perl)
1015  --enable-debug=ARG    enables debug symbols (yes|no|full) default=no
1016  --disable-debug         disables debug output and debug symbols default=no
1017  --enable-strict         compiles with strict compiler options (may not work!)
1018  --disable-warnings      disables compilation with -Wall and similiar
1019  --enable-profile        creates profiling infos default=no
1020  --disable-dependency-tracking Speeds up one-time builds
1021  --enable-dependency-tracking  Do not reject slow dependency extractors
1022  --enable-pch            enables precompiled header support (currently only KCC) default=no
1023  --enable-final          build size optimized apps (experimental - needs lots of memory)
1024  --disable-closure       don't delay template instantiation
1025  --enable-shared[=PKGS]
1026                          build shared libraries [default=yes]
1027  --enable-static[=PKGS]
1028                          build static libraries [default=no]
1029  --enable-libsuffix      /lib directory suffix (64,32,none)
1030  --enable-fast-install[=PKGS]
1031                          optimize for fast installation [default=yes]
1032  --disable-libtool-lock  avoid locking (might break parallel builds)
1033  --enable-objprelink     prelink apps using objprelink (obsolete)
1034  --disable-sdltest       Do not try to compile and run a test SDL program
1035
1036Optional Packages:
1037  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1038  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1039  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1040  --with-pic              try to use only PIC/non-PIC objects [default=use
1041                          both]
1042  --with-tags=TAGS        include additional configurations [CXX,GCJ]
1043  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1044  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1045  --with-extra-includes=DIR
1046                          adds non standard include paths
1047  --with-extra-libs=DIR   adds non standard library paths
1048
1049Some influential environment variables:
1050  CC          C compiler command
1051  CFLAGS      C compiler flags
1052  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053              nonstandard directory <lib dir>
1054  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055              headers in a nonstandard directory <include dir>
1056  CPP         C preprocessor
1057  CXX         C++ compiler command
1058  CXXFLAGS    C++ compiler flags
1059  CXXCPP      C++ preprocessor
1060
1061Use these variables to override the choices made by `configure' or to help
1062it to find libraries and programs with nonstandard names/locations.
1063
1064_ACEOF
1065fi
1066
1067if test "$ac_init_help" = "recursive"; then
1068  # If there are subdirs, report their specific --help.
1069  ac_popdir=`pwd`
1070  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1071    test -d $ac_dir || continue
1072    ac_builddir=.
1073
1074if test "$ac_dir" != .; then
1075  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1076  # A "../" for each directory in $ac_dir_suffix.
1077  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1078else
1079  ac_dir_suffix= ac_top_builddir=
1080fi
1081
1082case $srcdir in
1083  .)  # No --srcdir option.  We are building in place.
1084    ac_srcdir=.
1085    if test -z "$ac_top_builddir"; then
1086       ac_top_srcdir=.
1087    else
1088       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1089    fi ;;
1090  [\\/]* | ?:[\\/]* )  # Absolute path.
1091    ac_srcdir=$srcdir$ac_dir_suffix;
1092    ac_top_srcdir=$srcdir ;;
1093  *) # Relative path.
1094    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1095    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1096esac
1097# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1098# absolute.
1099ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1100ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1101ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1102ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1103
1104    cd $ac_dir
1105    # Check for guested configure; otherwise get Cygnus style configure.
1106    if test -f $ac_srcdir/configure.gnu; then
1107      echo
1108      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1109    elif test -f $ac_srcdir/configure; then
1110      echo
1111      $SHELL $ac_srcdir/configure  --help=recursive
1112    elif test -f $ac_srcdir/configure.ac ||
1113           test -f $ac_srcdir/configure.in; then
1114      echo
1115      $ac_configure --help
1116    else
1117      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1118    fi
1119    cd $ac_popdir
1120  done
1121fi
1122
1123test -n "$ac_init_help" && exit 0
1124if $ac_init_version; then
1125  cat <<\_ACEOF
1126
1127Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1128Free Software Foundation, Inc.
1129This configure script is free software; the Free Software Foundation
1130gives unlimited permission to copy, distribute and modify it.
1131_ACEOF
1132  exit 0
1133fi
1134exec 5>config.log
1135cat >&5 <<_ACEOF
1136This file contains any messages produced by compilers while
1137running configure, to aid debugging if configure makes a mistake.
1138
1139It was created by $as_me, which was
1140generated by GNU Autoconf 2.57.  Invocation command line was
1141
1142  $ $0 $@
1143
1144_ACEOF
1145{
1146cat <<_ASUNAME
1147## --------- ##
1148## Platform. ##
1149## --------- ##
1150
1151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1152uname -m = `(uname -m) 2>/dev/null || echo unknown`
1153uname -r = `(uname -r) 2>/dev/null || echo unknown`
1154uname -s = `(uname -s) 2>/dev/null || echo unknown`
1155uname -v = `(uname -v) 2>/dev/null || echo unknown`
1156
1157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1158/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1159
1160/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1161/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1163hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1164/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1165/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1166/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1167
1168_ASUNAME
1169
1170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1171for as_dir in $PATH
1172do
1173  IFS=$as_save_IFS
1174  test -z "$as_dir" && as_dir=.
1175  echo "PATH: $as_dir"
1176done
1177
1178} >&5
1179
1180cat >&5 <<_ACEOF
1181
1182
1183## ----------- ##
1184## Core tests. ##
1185## ----------- ##
1186
1187_ACEOF
1188
1189
1190# Keep a trace of the command line.
1191# Strip out --no-create and --no-recursion so they do not pile up.
1192# Strip out --silent because we don't want to record it for future runs.
1193# Also quote any args containing shell meta-characters.
1194# Make two passes to allow for proper duplicate-argument suppression.
1195ac_configure_args=
1196ac_configure_args0=
1197ac_configure_args1=
1198ac_sep=
1199ac_must_keep_next=false
1200for ac_pass in 1 2
1201do
1202  for ac_arg
1203  do
1204    case $ac_arg in
1205    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1206    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207    | -silent | --silent | --silen | --sile | --sil)
1208      continue ;;
1209    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1210      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1211    esac
1212    case $ac_pass in
1213    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1214    2)
1215      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1216      if test $ac_must_keep_next = true; then
1217        ac_must_keep_next=false # Got value, back to normal.
1218      else
1219        case $ac_arg in
1220          *=* | --config-cache | -C | -disable-* | --disable-* \
1221          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1222          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1223          | -with-* | --with-* | -without-* | --without-* | --x)
1224            case "$ac_configure_args0 " in
1225              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1226            esac
1227            ;;
1228          -* ) ac_must_keep_next=true ;;
1229        esac
1230      fi
1231      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1232      # Get rid of the leading space.
1233      ac_sep=" "
1234      ;;
1235    esac
1236  done
1237done
1238$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1239$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1240
1241# When interrupted or exit'd, cleanup temporary files, and complete
1242# config.log.  We remove comments because anyway the quotes in there
1243# would cause problems or look ugly.
1244# WARNING: Be sure not to use single quotes in there, as some shells,
1245# such as our DU 5.0 friend, will then `close' the trap.
1246trap 'exit_status=$?
1247  # Save into config.log some information that might help in debugging.
1248  {
1249    echo
1250
1251    cat <<\_ASBOX
1252## ---------------- ##
1253## Cache variables. ##
1254## ---------------- ##
1255_ASBOX
1256    echo
1257    # The following way of writing the cache mishandles newlines in values,
1258{
1259  (set) 2>&1 |
1260    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1261    *ac_space=\ *)
1262      sed -n \
1263        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1264    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1265      ;;
1266    *)
1267      sed -n \
1268        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1269      ;;
1270    esac;
1271}
1272    echo
1273
1274    cat <<\_ASBOX
1275## ----------------- ##
1276## Output variables. ##
1277## ----------------- ##
1278_ASBOX
1279    echo
1280    for ac_var in $ac_subst_vars
1281    do
1282      eval ac_val=$`echo $ac_var`
1283      echo "$ac_var='"'"'$ac_val'"'"'"
1284    done | sort
1285    echo
1286
1287    if test -n "$ac_subst_files"; then
1288      cat <<\_ASBOX
1289## ------------- ##
1290## Output files. ##
1291## ------------- ##
1292_ASBOX
1293      echo
1294      for ac_var in $ac_subst_files
1295      do
1296	eval ac_val=$`echo $ac_var`
1297        echo "$ac_var='"'"'$ac_val'"'"'"
1298      done | sort
1299      echo
1300    fi
1301
1302    if test -s confdefs.h; then
1303      cat <<\_ASBOX
1304## ----------- ##
1305## confdefs.h. ##
1306## ----------- ##
1307_ASBOX
1308      echo
1309      sed "/^$/d" confdefs.h | sort
1310      echo
1311    fi
1312    test "$ac_signal" != 0 &&
1313      echo "$as_me: caught signal $ac_signal"
1314    echo "$as_me: exit $exit_status"
1315  } >&5
1316  rm -f core core.* *.core &&
1317  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1318    exit $exit_status
1319     ' 0
1320for ac_signal in 1 2 13 15; do
1321  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1322done
1323ac_signal=0
1324
1325# confdefs.h avoids OS command line length limits that DEFS can exceed.
1326rm -rf conftest* confdefs.h
1327# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1328echo >confdefs.h
1329
1330# Predefined preprocessor variables.
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_NAME "$PACKAGE_NAME"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_VERSION "$PACKAGE_VERSION"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_STRING "$PACKAGE_STRING"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1354_ACEOF
1355
1356
1357# Let the site file select an alternate cache file if it wants to.
1358# Prefer explicitly selected file to automatically selected ones.
1359if test -z "$CONFIG_SITE"; then
1360  if test "x$prefix" != xNONE; then
1361    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1362  else
1363    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1364  fi
1365fi
1366for ac_site_file in $CONFIG_SITE; do
1367  if test -r "$ac_site_file"; then
1368    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1369echo "$as_me: loading site script $ac_site_file" >&6;}
1370    sed 's/^/| /' "$ac_site_file" >&5
1371    . "$ac_site_file"
1372  fi
1373done
1374
1375if test -r "$cache_file"; then
1376  # Some versions of bash will fail to source /dev/null (special
1377  # files actually), so we avoid doing that.
1378  if test -f "$cache_file"; then
1379    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1380echo "$as_me: loading cache $cache_file" >&6;}
1381    case $cache_file in
1382      [\\/]* | ?:[\\/]* ) . $cache_file;;
1383      *)                      . ./$cache_file;;
1384    esac
1385  fi
1386else
1387  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1388echo "$as_me: creating cache $cache_file" >&6;}
1389  >$cache_file
1390fi
1391
1392# Check that the precious variables saved in the cache have kept the same
1393# value.
1394ac_cache_corrupted=false
1395for ac_var in `(set) 2>&1 |
1396               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1397  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1398  eval ac_new_set=\$ac_env_${ac_var}_set
1399  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1400  eval ac_new_val="\$ac_env_${ac_var}_value"
1401  case $ac_old_set,$ac_new_set in
1402    set,)
1403      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1404echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1405      ac_cache_corrupted=: ;;
1406    ,set)
1407      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1408echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1409      ac_cache_corrupted=: ;;
1410    ,);;
1411    *)
1412      if test "x$ac_old_val" != "x$ac_new_val"; then
1413        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1414echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1415        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1416echo "$as_me:   former value:  $ac_old_val" >&2;}
1417        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1418echo "$as_me:   current value: $ac_new_val" >&2;}
1419        ac_cache_corrupted=:
1420      fi;;
1421  esac
1422  # Pass precious variables to config.status.
1423  if test "$ac_new_set" = set; then
1424    case $ac_new_val in
1425    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1426      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1427    *) ac_arg=$ac_var=$ac_new_val ;;
1428    esac
1429    case " $ac_configure_args " in
1430      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1431      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1432    esac
1433  fi
1434done
1435if $ac_cache_corrupted; then
1436  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1437echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1438  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1439echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1440   { (exit 1); exit 1; }; }
1441fi
1442
1443ac_ext=c
1444ac_cpp='$CPP $CPPFLAGS'
1445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1447ac_compiler_gnu=$ac_cv_c_compiler_gnu
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467ac_aux_dir=
1468for ac_dir in admin $srcdir/admin; do
1469  if test -f $ac_dir/install-sh; then
1470    ac_aux_dir=$ac_dir
1471    ac_install_sh="$ac_aux_dir/install-sh -c"
1472    break
1473  elif test -f $ac_dir/install.sh; then
1474    ac_aux_dir=$ac_dir
1475    ac_install_sh="$ac_aux_dir/install.sh -c"
1476    break
1477  elif test -f $ac_dir/shtool; then
1478    ac_aux_dir=$ac_dir
1479    ac_install_sh="$ac_aux_dir/shtool install -c"
1480    break
1481  fi
1482done
1483if test -z "$ac_aux_dir"; then
1484  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1485echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1486   { (exit 1); exit 1; }; }
1487fi
1488ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1489ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1490ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1491
1492
1493unset CDPATH
1494
1495# Make sure we can run config.sub.
1496$ac_config_sub sun4 >/dev/null 2>&1 ||
1497  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1499   { (exit 1); exit 1; }; }
1500
1501echo "$as_me:$LINENO: checking build system type" >&5
1502echo $ECHO_N "checking build system type... $ECHO_C" >&6
1503if test "${ac_cv_build+set}" = set; then
1504  echo $ECHO_N "(cached) $ECHO_C" >&6
1505else
1506  ac_cv_build_alias=$build_alias
1507test -z "$ac_cv_build_alias" &&
1508  ac_cv_build_alias=`$ac_config_guess`
1509test -z "$ac_cv_build_alias" &&
1510  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512   { (exit 1); exit 1; }; }
1513ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1516   { (exit 1); exit 1; }; }
1517
1518fi
1519echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520echo "${ECHO_T}$ac_cv_build" >&6
1521build=$ac_cv_build
1522build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525
1526
1527echo "$as_me:$LINENO: checking host system type" >&5
1528echo $ECHO_N "checking host system type... $ECHO_C" >&6
1529if test "${ac_cv_host+set}" = set; then
1530  echo $ECHO_N "(cached) $ECHO_C" >&6
1531else
1532  ac_cv_host_alias=$host_alias
1533test -z "$ac_cv_host_alias" &&
1534  ac_cv_host_alias=$ac_cv_build_alias
1535ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1536  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1537echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1538   { (exit 1); exit 1; }; }
1539
1540fi
1541echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1542echo "${ECHO_T}$ac_cv_host" >&6
1543host=$ac_cv_host
1544host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549echo "$as_me:$LINENO: checking target system type" >&5
1550echo $ECHO_N "checking target system type... $ECHO_C" >&6
1551if test "${ac_cv_target+set}" = set; then
1552  echo $ECHO_N "(cached) $ECHO_C" >&6
1553else
1554  ac_cv_target_alias=$target_alias
1555test "x$ac_cv_target_alias" = "x" &&
1556  ac_cv_target_alias=$ac_cv_host_alias
1557ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1558  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1559echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1560   { (exit 1); exit 1; }; }
1561
1562fi
1563echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1564echo "${ECHO_T}$ac_cv_target" >&6
1565target=$ac_cv_target
1566target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571# The aliases save the names the user supplied, while $host etc.
1572# will get canonicalized.
1573test -n "$target_alias" &&
1574  test "$program_prefix$program_suffix$program_transform_name" = \
1575    NONENONEs,x,x, &&
1576  program_prefix=${target_alias}-
1577test "$program_prefix" != NONE &&
1578  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1579# Use a double $ so make ignores it.
1580test "$program_suffix" != NONE &&
1581  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1582# Double any \ or $.  echo might interpret backslashes.
1583# By default was `s,x,x', remove it if useless.
1584cat <<\_ACEOF >conftest.sed
1585s/[\\$]/&&/g;s/;s,x,x,$//
1586_ACEOF
1587program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1588rm conftest.sed
1589
1590
1591am__api_version="1.6"
1592
1593
1594          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
1595  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
1596  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
1597  # Find a good install program.  We prefer a C program (faster),
1598# so one script is as good as another.  But avoid the broken or
1599# incompatible versions:
1600# SysV /etc/install, /usr/sbin/install
1601# SunOS /usr/etc/install
1602# IRIX /sbin/install
1603# AIX /bin/install
1604# AmigaOS /C/install, which installs bootblocks on floppy discs
1605# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1606# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1607# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1608# ./install, which can be erroneously created by make from ./install.sh.
1609echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1610echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1611if test -z "$INSTALL"; then
1612if test "${ac_cv_path_install+set}" = set; then
1613  echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618  IFS=$as_save_IFS
1619  test -z "$as_dir" && as_dir=.
1620  # Account for people who put trailing slashes in PATH elements.
1621case $as_dir/ in
1622  ./ | .// | /cC/* | \
1623  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1624  /usr/ucb/* ) ;;
1625  *)
1626    # OSF1 and SCO ODT 3.0 have their own names for install.
1627    # Don't use installbsd from OSF since it installs stuff as root
1628    # by default.
1629    for ac_prog in ginstall scoinst install; do
1630      for ac_exec_ext in '' $ac_executable_extensions; do
1631        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1632          if test $ac_prog = install &&
1633            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1634            # AIX install.  It has an incompatible calling convention.
1635            :
1636          elif test $ac_prog = install &&
1637            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1638            # program-specific install script used by HP pwplus--don't use.
1639            :
1640          else
1641            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1642            break 3
1643          fi
1644        fi
1645      done
1646    done
1647    ;;
1648esac
1649done
1650
1651
1652fi
1653  if test "${ac_cv_path_install+set}" = set; then
1654    INSTALL=$ac_cv_path_install
1655  else
1656    # As a last resort, use the slow shell script.  We don't cache a
1657    # path for INSTALL within a source directory, because that will
1658    # break other packages using the cache if that directory is
1659    # removed, or if the path is relative.
1660    INSTALL=$ac_install_sh
1661  fi
1662fi
1663echo "$as_me:$LINENO: result: $INSTALL" >&5
1664echo "${ECHO_T}$INSTALL" >&6
1665
1666# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1667# It thinks the first close brace ends the variable substitution.
1668test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1669
1670test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1671
1672test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1673
1674
1675  if test -z "$kde_save_INSTALL_given" ; then
1676    # OK, user hasn't given any INSTALL, autoconf found one for us
1677    # now we test, if it supports the -p flag
1678    echo "$as_me:$LINENO: checking for -p flag to install" >&5
1679echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
1680    rm -f confinst.$$.* > /dev/null 2>&1
1681    echo "Testtest" > confinst.$$.orig
1682    ac_res=no
1683    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
1684      if test -f confinst.$$.new ; then
1685        # OK, -p seems to do no harm to install
1686	INSTALL="${INSTALL} -p"
1687	ac_res=yes
1688      fi
1689    fi
1690    rm -f confinst.$$.*
1691    echo "$as_me:$LINENO: result: $ac_res" >&5
1692echo "${ECHO_T}$ac_res" >&6
1693  fi
1694
1695  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
1696    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
1697  fi
1698  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
1699    INSTALL_SCRIPT='${INSTALL}'
1700  fi
1701
1702echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1703echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1704# Just in case
1705sleep 1
1706echo timestamp > conftest.file
1707# Do `set' in a subshell so we don't clobber the current shell's
1708# arguments.  Must try -L first in case configure is actually a
1709# symlink; some systems play weird games with the mod time of symlinks
1710# (eg FreeBSD returns the mod time of the symlink's containing
1711# directory).
1712if (
1713   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1714   if test "$*" = "X"; then
1715      # -L didn't work.
1716      set X `ls -t $srcdir/configure conftest.file`
1717   fi
1718   rm -f conftest.file
1719   if test "$*" != "X $srcdir/configure conftest.file" \
1720      && test "$*" != "X conftest.file $srcdir/configure"; then
1721
1722      # If neither matched, then we have a broken ls.  This can happen
1723      # if, for instance, CONFIG_SHELL is bash and it inherits a
1724      # broken ls alias from the environment.  This has actually
1725      # happened.  Such a system could not be considered "sane".
1726      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1727alias in your environment" >&5
1728echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1729alias in your environment" >&2;}
1730   { (exit 1); exit 1; }; }
1731   fi
1732
1733   test "$2" = conftest.file
1734   )
1735then
1736   # Ok.
1737   :
1738else
1739   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1740Check your system clock" >&5
1741echo "$as_me: error: newly created file is older than distributed files!
1742Check your system clock" >&2;}
1743   { (exit 1); exit 1; }; }
1744fi
1745echo "$as_me:$LINENO: result: yes" >&5
1746echo "${ECHO_T}yes" >&6
1747
1748# expand $ac_aux_dir to an absolute path
1749am_aux_dir=`cd $ac_aux_dir && pwd`
1750
1751test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1752# Use eval to expand $SHELL
1753if eval "$MISSING --run true"; then
1754  am_missing_run="$MISSING --run "
1755else
1756  am_missing_run=
1757  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1758echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1759fi
1760
1761for ac_prog in gawk mawk nawk awk
1762do
1763  # Extract the first word of "$ac_prog", so it can be a program name with args.
1764set dummy $ac_prog; ac_word=$2
1765echo "$as_me:$LINENO: checking for $ac_word" >&5
1766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767if test "${ac_cv_prog_AWK+set}" = set; then
1768  echo $ECHO_N "(cached) $ECHO_C" >&6
1769else
1770  if test -n "$AWK"; then
1771  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1772else
1773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774for as_dir in $PATH
1775do
1776  IFS=$as_save_IFS
1777  test -z "$as_dir" && as_dir=.
1778  for ac_exec_ext in '' $ac_executable_extensions; do
1779  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780    ac_cv_prog_AWK="$ac_prog"
1781    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782    break 2
1783  fi
1784done
1785done
1786
1787fi
1788fi
1789AWK=$ac_cv_prog_AWK
1790if test -n "$AWK"; then
1791  echo "$as_me:$LINENO: result: $AWK" >&5
1792echo "${ECHO_T}$AWK" >&6
1793else
1794  echo "$as_me:$LINENO: result: no" >&5
1795echo "${ECHO_T}no" >&6
1796fi
1797
1798  test -n "$AWK" && break
1799done
1800
1801echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1802echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1803set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1804if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1805  echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
1807  cat >conftest.make <<\_ACEOF
1808all:
1809	@echo 'ac_maketemp="$(MAKE)"'
1810_ACEOF
1811# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1812eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1813if test -n "$ac_maketemp"; then
1814  eval ac_cv_prog_make_${ac_make}_set=yes
1815else
1816  eval ac_cv_prog_make_${ac_make}_set=no
1817fi
1818rm -f conftest.make
1819fi
1820if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1821  echo "$as_me:$LINENO: result: yes" >&5
1822echo "${ECHO_T}yes" >&6
1823  SET_MAKE=
1824else
1825  echo "$as_me:$LINENO: result: no" >&5
1826echo "${ECHO_T}no" >&6
1827  SET_MAKE="MAKE=${MAKE-make}"
1828fi
1829
1830 # test to see if srcdir already configured
1831if test "`cd $srcdir && pwd`" != "`pwd`" &&
1832   test -f $srcdir/config.status; then
1833  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1834echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1835   { (exit 1); exit 1; }; }
1836fi
1837
1838# Define the identity of the package.
1839 PACKAGE=apricots
1840 VERSION=0.2.6
1841
1842
1843cat >>confdefs.h <<_ACEOF
1844#define PACKAGE "$PACKAGE"
1845_ACEOF
1846
1847
1848cat >>confdefs.h <<_ACEOF
1849#define VERSION "$VERSION"
1850_ACEOF
1851
1852# Some tools Automake needs.
1853
1854ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1855
1856
1857AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1858
1859
1860AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1861
1862
1863AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1864
1865
1866MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1867
1868
1869AMTAR=${AMTAR-"${am_missing_run}tar"}
1870
1871install_sh=${install_sh-"$am_aux_dir/install-sh"}
1872
1873# Installed binaries are usually stripped using `strip' when the user
1874# run `make install-strip'.  However `strip' might not be the right
1875# tool to use in cross-compilation environments, therefore Automake
1876# will honor the `STRIP' environment variable to overrule this program.
1877if test "$cross_compiling" != no; then
1878  if test -n "$ac_tool_prefix"; then
1879  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1880set dummy ${ac_tool_prefix}strip; ac_word=$2
1881echo "$as_me:$LINENO: checking for $ac_word" >&5
1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_STRIP+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test -n "$STRIP"; then
1887  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1888else
1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892  IFS=$as_save_IFS
1893  test -z "$as_dir" && as_dir=.
1894  for ac_exec_ext in '' $ac_executable_extensions; do
1895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898    break 2
1899  fi
1900done
1901done
1902
1903fi
1904fi
1905STRIP=$ac_cv_prog_STRIP
1906if test -n "$STRIP"; then
1907  echo "$as_me:$LINENO: result: $STRIP" >&5
1908echo "${ECHO_T}$STRIP" >&6
1909else
1910  echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914fi
1915if test -z "$ac_cv_prog_STRIP"; then
1916  ac_ct_STRIP=$STRIP
1917  # Extract the first word of "strip", so it can be a program name with args.
1918set dummy strip; ac_word=$2
1919echo "$as_me:$LINENO: checking for $ac_word" >&5
1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1922  echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924  if test -n "$ac_ct_STRIP"; then
1925  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1926else
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930  IFS=$as_save_IFS
1931  test -z "$as_dir" && as_dir=.
1932  for ac_exec_ext in '' $ac_executable_extensions; do
1933  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934    ac_cv_prog_ac_ct_STRIP="strip"
1935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936    break 2
1937  fi
1938done
1939done
1940
1941  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1942fi
1943fi
1944ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1945if test -n "$ac_ct_STRIP"; then
1946  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1947echo "${ECHO_T}$ac_ct_STRIP" >&6
1948else
1949  echo "$as_me:$LINENO: result: no" >&5
1950echo "${ECHO_T}no" >&6
1951fi
1952
1953  STRIP=$ac_ct_STRIP
1954else
1955  STRIP="$ac_cv_prog_STRIP"
1956fi
1957
1958fi
1959INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1960
1961# We need awk for the "check" target.  The system "awk" is bad on
1962# some platforms.
1963
1964
1965
1966
1967unset CDPATH
1968
1969
1970if test "x$prefix" = "xNONE"; then
1971  prefix=$ac_default_prefix
1972  ac_configure_args="$ac_configure_args --prefix $prefix"
1973fi
1974
1975    # Check whether --enable-fast-perl or --disable-fast-perl was given.
1976if test "${enable_fast_perl+set}" = set; then
1977  enableval="$enable_fast_perl"
1978  with_fast_perl=$enableval
1979else
1980  with_fast_perl=yes
1981fi;
1982
1983
1984  val=
1985  if test -f $srcdir/configure.files ; then
1986    val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
1987  fi
1988  CONF_FILES=
1989  if test -n "$val" ; then
1990    for i in $val ; do
1991      CONF_FILES="$CONF_FILES $i"
1992    done
1993  fi
1994
1995
1996
1997# Add the stamp file to the list of files AC keeps track of,
1998# along with our hook.
1999          ac_config_headers="$ac_config_headers config.h"
2000
2001
2002
2003
2004rm -f .deps 2>/dev/null
2005mkdir .deps 2>/dev/null
2006if test -d .deps; then
2007  DEPDIR=.deps
2008else
2009  # MS-DOS does not allow filenames that begin with a dot.
2010  DEPDIR=_deps
2011fi
2012rmdir .deps 2>/dev/null
2013
2014
2015          ac_config_commands="$ac_config_commands depfiles"
2016
2017
2018am_make=${MAKE-make}
2019cat > confinc << 'END'
2020doit:
2021	@echo done
2022END
2023# If we don't find an include directive, just comment out the code.
2024echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2025echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2026am__include="#"
2027am__quote=
2028_am_result=none
2029# First try GNU make style include.
2030echo "include confinc" > confmf
2031# We grep out `Entering directory' and `Leaving directory'
2032# messages which can occur if `w' ends up in MAKEFLAGS.
2033# In particular we don't look at `^make:' because GNU make might
2034# be invoked under some other name (usually "gmake"), in which
2035# case it prints its new name instead of `make'.
2036if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2037   am__include=include
2038   am__quote=
2039   _am_result=GNU
2040fi
2041# Now try BSD make style include.
2042if test "$am__include" = "#"; then
2043   echo '.include "confinc"' > confmf
2044   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2045      am__include=.include
2046      am__quote="\""
2047      _am_result=BSD
2048   fi
2049fi
2050
2051
2052echo "$as_me:$LINENO: result: $_am_result" >&5
2053echo "${ECHO_T}$_am_result" >&6
2054rm -f confinc confmf
2055
2056# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2057if test "${enable_dependency_tracking+set}" = set; then
2058  enableval="$enable_dependency_tracking"
2059
2060fi;
2061if test "x$enable_dependency_tracking" != xno; then
2062  am_depcomp="$ac_aux_dir/depcomp"
2063  AMDEPBACKSLASH='\'
2064fi
2065
2066
2067if test "x$enable_dependency_tracking" != xno; then
2068  AMDEP_TRUE=
2069  AMDEP_FALSE='#'
2070else
2071  AMDEP_TRUE='#'
2072  AMDEP_FALSE=
2073fi
2074
2075
2076
2077
2078
2079  # Check whether --enable-debug or --disable-debug was given.
2080if test "${enable_debug+set}" = set; then
2081  enableval="$enable_debug"
2082
2083    case $enableval in
2084      yes)
2085        kde_use_debug_code="yes"
2086        kde_use_debug_define=no
2087        ;;
2088      full)
2089        kde_use_debug_code="full"
2090        kde_use_debug_define=no
2091        ;;
2092      *)
2093        kde_use_debug_code="no"
2094        kde_use_debug_define=yes
2095        ;;
2096    esac
2097
2098else
2099  kde_use_debug_code="no"
2100      kde_use_debug_define=no
2101
2102fi;
2103
2104    # Check whether --enable-dummyoption or --disable-dummyoption was given.
2105if test "${enable_dummyoption+set}" = set; then
2106  enableval="$enable_dummyoption"
2107
2108fi;
2109
2110  # Check whether --enable-strict or --disable-strict was given.
2111if test "${enable_strict+set}" = set; then
2112  enableval="$enable_strict"
2113
2114    if test $enableval = "no"; then
2115         kde_use_strict_options="no"
2116       else
2117         kde_use_strict_options="yes"
2118    fi
2119
2120else
2121  kde_use_strict_options="no"
2122fi;
2123
2124  # Check whether --enable-warnings or --disable-warnings was given.
2125if test "${enable_warnings+set}" = set; then
2126  enableval="$enable_warnings"
2127
2128    if test $enableval = "no"; then
2129         kde_use_warnings="no"
2130       else
2131         kde_use_warnings="yes"
2132    fi
2133
2134else
2135  kde_use_warnings="yes"
2136fi;
2137
2138    if test "$kde_use_debug_code" != "no"; then
2139    kde_use_warnings=yes
2140  fi
2141
2142  # Check whether --enable-profile or --disable-profile was given.
2143if test "${enable_profile+set}" = set; then
2144  enableval="$enable_profile"
2145  kde_use_profiling=$enableval
2146else
2147  kde_use_profiling="no"
2148
2149fi;
2150
2151    CFLAGS=" $CFLAGS"
2152
2153  ac_ext=c
2154ac_cpp='$CPP $CPPFLAGS'
2155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2157ac_compiler_gnu=$ac_cv_c_compiler_gnu
2158if test -n "$ac_tool_prefix"; then
2159  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2160set dummy ${ac_tool_prefix}gcc; ac_word=$2
2161echo "$as_me:$LINENO: checking for $ac_word" >&5
2162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163if test "${ac_cv_prog_CC+set}" = set; then
2164  echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166  if test -n "$CC"; then
2167  ac_cv_prog_CC="$CC" # Let the user override the test.
2168else
2169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170for as_dir in $PATH
2171do
2172  IFS=$as_save_IFS
2173  test -z "$as_dir" && as_dir=.
2174  for ac_exec_ext in '' $ac_executable_extensions; do
2175  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2177    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2178    break 2
2179  fi
2180done
2181done
2182
2183fi
2184fi
2185CC=$ac_cv_prog_CC
2186if test -n "$CC"; then
2187  echo "$as_me:$LINENO: result: $CC" >&5
2188echo "${ECHO_T}$CC" >&6
2189else
2190  echo "$as_me:$LINENO: result: no" >&5
2191echo "${ECHO_T}no" >&6
2192fi
2193
2194fi
2195if test -z "$ac_cv_prog_CC"; then
2196  ac_ct_CC=$CC
2197  # Extract the first word of "gcc", so it can be a program name with args.
2198set dummy gcc; ac_word=$2
2199echo "$as_me:$LINENO: checking for $ac_word" >&5
2200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202  echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
2204  if test -n "$ac_ct_CC"; then
2205  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206else
2207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208for as_dir in $PATH
2209do
2210  IFS=$as_save_IFS
2211  test -z "$as_dir" && as_dir=.
2212  for ac_exec_ext in '' $ac_executable_extensions; do
2213  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214    ac_cv_prog_ac_ct_CC="gcc"
2215    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216    break 2
2217  fi
2218done
2219done
2220
2221fi
2222fi
2223ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224if test -n "$ac_ct_CC"; then
2225  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226echo "${ECHO_T}$ac_ct_CC" >&6
2227else
2228  echo "$as_me:$LINENO: result: no" >&5
2229echo "${ECHO_T}no" >&6
2230fi
2231
2232  CC=$ac_ct_CC
2233else
2234  CC="$ac_cv_prog_CC"
2235fi
2236
2237if test -z "$CC"; then
2238  if test -n "$ac_tool_prefix"; then
2239  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2240set dummy ${ac_tool_prefix}cc; ac_word=$2
2241echo "$as_me:$LINENO: checking for $ac_word" >&5
2242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243if test "${ac_cv_prog_CC+set}" = set; then
2244  echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246  if test -n "$CC"; then
2247  ac_cv_prog_CC="$CC" # Let the user override the test.
2248else
2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250for as_dir in $PATH
2251do
2252  IFS=$as_save_IFS
2253  test -z "$as_dir" && as_dir=.
2254  for ac_exec_ext in '' $ac_executable_extensions; do
2255  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2256    ac_cv_prog_CC="${ac_tool_prefix}cc"
2257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258    break 2
2259  fi
2260done
2261done
2262
2263fi
2264fi
2265CC=$ac_cv_prog_CC
2266if test -n "$CC"; then
2267  echo "$as_me:$LINENO: result: $CC" >&5
2268echo "${ECHO_T}$CC" >&6
2269else
2270  echo "$as_me:$LINENO: result: no" >&5
2271echo "${ECHO_T}no" >&6
2272fi
2273
2274fi
2275if test -z "$ac_cv_prog_CC"; then
2276  ac_ct_CC=$CC
2277  # Extract the first word of "cc", so it can be a program name with args.
2278set dummy cc; ac_word=$2
2279echo "$as_me:$LINENO: checking for $ac_word" >&5
2280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2282  echo $ECHO_N "(cached) $ECHO_C" >&6
2283else
2284  if test -n "$ac_ct_CC"; then
2285  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286else
2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288for as_dir in $PATH
2289do
2290  IFS=$as_save_IFS
2291  test -z "$as_dir" && as_dir=.
2292  for ac_exec_ext in '' $ac_executable_extensions; do
2293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294    ac_cv_prog_ac_ct_CC="cc"
2295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296    break 2
2297  fi
2298done
2299done
2300
2301fi
2302fi
2303ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304if test -n "$ac_ct_CC"; then
2305  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306echo "${ECHO_T}$ac_ct_CC" >&6
2307else
2308  echo "$as_me:$LINENO: result: no" >&5
2309echo "${ECHO_T}no" >&6
2310fi
2311
2312  CC=$ac_ct_CC
2313else
2314  CC="$ac_cv_prog_CC"
2315fi
2316
2317fi
2318if test -z "$CC"; then
2319  # Extract the first word of "cc", so it can be a program name with args.
2320set dummy cc; ac_word=$2
2321echo "$as_me:$LINENO: checking for $ac_word" >&5
2322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323if test "${ac_cv_prog_CC+set}" = set; then
2324  echo $ECHO_N "(cached) $ECHO_C" >&6
2325else
2326  if test -n "$CC"; then
2327  ac_cv_prog_CC="$CC" # Let the user override the test.
2328else
2329  ac_prog_rejected=no
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  test -z "$as_dir" && as_dir=.
2335  for ac_exec_ext in '' $ac_executable_extensions; do
2336  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2337    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2338       ac_prog_rejected=yes
2339       continue
2340     fi
2341    ac_cv_prog_CC="cc"
2342    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343    break 2
2344  fi
2345done
2346done
2347
2348if test $ac_prog_rejected = yes; then
2349  # We found a bogon in the path, so make sure we never use it.
2350  set dummy $ac_cv_prog_CC
2351  shift
2352  if test $# != 0; then
2353    # We chose a different compiler from the bogus one.
2354    # However, it has the same basename, so the bogon will be chosen
2355    # first if we set CC to just the basename; use the full file name.
2356    shift
2357    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2358  fi
2359fi
2360fi
2361fi
2362CC=$ac_cv_prog_CC
2363if test -n "$CC"; then
2364  echo "$as_me:$LINENO: result: $CC" >&5
2365echo "${ECHO_T}$CC" >&6
2366else
2367  echo "$as_me:$LINENO: result: no" >&5
2368echo "${ECHO_T}no" >&6
2369fi
2370
2371fi
2372if test -z "$CC"; then
2373  if test -n "$ac_tool_prefix"; then
2374  for ac_prog in cl
2375  do
2376    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2377set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2378echo "$as_me:$LINENO: checking for $ac_word" >&5
2379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380if test "${ac_cv_prog_CC+set}" = set; then
2381  echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383  if test -n "$CC"; then
2384  ac_cv_prog_CC="$CC" # Let the user override the test.
2385else
2386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387for as_dir in $PATH
2388do
2389  IFS=$as_save_IFS
2390  test -z "$as_dir" && as_dir=.
2391  for ac_exec_ext in '' $ac_executable_extensions; do
2392  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395    break 2
2396  fi
2397done
2398done
2399
2400fi
2401fi
2402CC=$ac_cv_prog_CC
2403if test -n "$CC"; then
2404  echo "$as_me:$LINENO: result: $CC" >&5
2405echo "${ECHO_T}$CC" >&6
2406else
2407  echo "$as_me:$LINENO: result: no" >&5
2408echo "${ECHO_T}no" >&6
2409fi
2410
2411    test -n "$CC" && break
2412  done
2413fi
2414if test -z "$CC"; then
2415  ac_ct_CC=$CC
2416  for ac_prog in cl
2417do
2418  # Extract the first word of "$ac_prog", so it can be a program name with args.
2419set dummy $ac_prog; ac_word=$2
2420echo "$as_me:$LINENO: checking for $ac_word" >&5
2421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2423  echo $ECHO_N "(cached) $ECHO_C" >&6
2424else
2425  if test -n "$ac_ct_CC"; then
2426  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2427else
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431  IFS=$as_save_IFS
2432  test -z "$as_dir" && as_dir=.
2433  for ac_exec_ext in '' $ac_executable_extensions; do
2434  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435    ac_cv_prog_ac_ct_CC="$ac_prog"
2436    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437    break 2
2438  fi
2439done
2440done
2441
2442fi
2443fi
2444ac_ct_CC=$ac_cv_prog_ac_ct_CC
2445if test -n "$ac_ct_CC"; then
2446  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2447echo "${ECHO_T}$ac_ct_CC" >&6
2448else
2449  echo "$as_me:$LINENO: result: no" >&5
2450echo "${ECHO_T}no" >&6
2451fi
2452
2453  test -n "$ac_ct_CC" && break
2454done
2455
2456  CC=$ac_ct_CC
2457fi
2458
2459fi
2460
2461
2462test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2463See \`config.log' for more details." >&5
2464echo "$as_me: error: no acceptable C compiler found in \$PATH
2465See \`config.log' for more details." >&2;}
2466   { (exit 1); exit 1; }; }
2467
2468# Provide some information about the compiler.
2469echo "$as_me:$LINENO:" \
2470     "checking for C compiler version" >&5
2471ac_compiler=`set X $ac_compile; echo $2`
2472{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2473  (eval $ac_compiler --version </dev/null >&5) 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); }
2477{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2478  (eval $ac_compiler -v </dev/null >&5) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }
2482{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2483  (eval $ac_compiler -V </dev/null >&5) 2>&5
2484  ac_status=$?
2485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486  (exit $ac_status); }
2487
2488cat >conftest.$ac_ext <<_ACEOF
2489#line $LINENO "configure"
2490/* confdefs.h.  */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h.  */
2495
2496int
2497main ()
2498{
2499
2500  ;
2501  return 0;
2502}
2503_ACEOF
2504ac_clean_files_save=$ac_clean_files
2505ac_clean_files="$ac_clean_files a.out a.exe b.out"
2506# Try to create an executable without -o first, disregard a.out.
2507# It will help us diagnose broken compilers, and finding out an intuition
2508# of exeext.
2509echo "$as_me:$LINENO: checking for C compiler default output" >&5
2510echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2511ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2512if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2513  (eval $ac_link_default) 2>&5
2514  ac_status=$?
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); }; then
2517  # Find the output, starting from the most likely.  This scheme is
2518# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2519# resort.
2520
2521# Be careful to initialize this variable, since it used to be cached.
2522# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2523ac_cv_exeext=
2524# b.out is created by i960 compilers.
2525for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2526do
2527  test -f "$ac_file" || continue
2528  case $ac_file in
2529    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2530        ;;
2531    conftest.$ac_ext )
2532        # This is the source file.
2533        ;;
2534    [ab].out )
2535        # We found the default executable, but exeext='' is most
2536        # certainly right.
2537        break;;
2538    *.* )
2539        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2540        # FIXME: I believe we export ac_cv_exeext for Libtool,
2541        # but it would be cool to find out if it's true.  Does anybody
2542        # maintain Libtool? --akim.
2543        export ac_cv_exeext
2544        break;;
2545    * )
2546        break;;
2547  esac
2548done
2549else
2550  echo "$as_me: failed program was:" >&5
2551sed 's/^/| /' conftest.$ac_ext >&5
2552
2553{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2554See \`config.log' for more details." >&5
2555echo "$as_me: error: C compiler cannot create executables
2556See \`config.log' for more details." >&2;}
2557   { (exit 77); exit 77; }; }
2558fi
2559
2560ac_exeext=$ac_cv_exeext
2561echo "$as_me:$LINENO: result: $ac_file" >&5
2562echo "${ECHO_T}$ac_file" >&6
2563
2564# Check the compiler produces executables we can run.  If not, either
2565# the compiler is broken, or we cross compile.
2566echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2567echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2568# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2569# If not cross compiling, check that we can run a simple program.
2570if test "$cross_compiling" != yes; then
2571  if { ac_try='./$ac_file'
2572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573  (eval $ac_try) 2>&5
2574  ac_status=$?
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); }; }; then
2577    cross_compiling=no
2578  else
2579    if test "$cross_compiling" = maybe; then
2580	cross_compiling=yes
2581    else
2582	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2583If you meant to cross compile, use \`--host'.
2584See \`config.log' for more details." >&5
2585echo "$as_me: error: cannot run C compiled programs.
2586If you meant to cross compile, use \`--host'.
2587See \`config.log' for more details." >&2;}
2588   { (exit 1); exit 1; }; }
2589    fi
2590  fi
2591fi
2592echo "$as_me:$LINENO: result: yes" >&5
2593echo "${ECHO_T}yes" >&6
2594
2595rm -f a.out a.exe conftest$ac_cv_exeext b.out
2596ac_clean_files=$ac_clean_files_save
2597# Check the compiler produces executables we can run.  If not, either
2598# the compiler is broken, or we cross compile.
2599echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2600echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2601echo "$as_me:$LINENO: result: $cross_compiling" >&5
2602echo "${ECHO_T}$cross_compiling" >&6
2603
2604echo "$as_me:$LINENO: checking for suffix of executables" >&5
2605echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2607  (eval $ac_link) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; then
2611  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2612# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2613# work properly (i.e., refer to `conftest.exe'), while it won't with
2614# `rm'.
2615for ac_file in conftest.exe conftest conftest.*; do
2616  test -f "$ac_file" || continue
2617  case $ac_file in
2618    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2619    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2620          export ac_cv_exeext
2621          break;;
2622    * ) break;;
2623  esac
2624done
2625else
2626  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2627See \`config.log' for more details." >&5
2628echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2629See \`config.log' for more details." >&2;}
2630   { (exit 1); exit 1; }; }
2631fi
2632
2633rm -f conftest$ac_cv_exeext
2634echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2635echo "${ECHO_T}$ac_cv_exeext" >&6
2636
2637rm -f conftest.$ac_ext
2638EXEEXT=$ac_cv_exeext
2639ac_exeext=$EXEEXT
2640echo "$as_me:$LINENO: checking for suffix of object files" >&5
2641echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2642if test "${ac_cv_objext+set}" = set; then
2643  echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645  cat >conftest.$ac_ext <<_ACEOF
2646#line $LINENO "configure"
2647/* confdefs.h.  */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h.  */
2652
2653int
2654main ()
2655{
2656
2657  ;
2658  return 0;
2659}
2660_ACEOF
2661rm -f conftest.o conftest.obj
2662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663  (eval $ac_compile) 2>&5
2664  ac_status=$?
2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666  (exit $ac_status); }; then
2667  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2668  case $ac_file in
2669    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2670    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2671       break;;
2672  esac
2673done
2674else
2675  echo "$as_me: failed program was:" >&5
2676sed 's/^/| /' conftest.$ac_ext >&5
2677
2678{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2679See \`config.log' for more details." >&5
2680echo "$as_me: error: cannot compute suffix of object files: cannot compile
2681See \`config.log' for more details." >&2;}
2682   { (exit 1); exit 1; }; }
2683fi
2684
2685rm -f conftest.$ac_cv_objext conftest.$ac_ext
2686fi
2687echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2688echo "${ECHO_T}$ac_cv_objext" >&6
2689OBJEXT=$ac_cv_objext
2690ac_objext=$OBJEXT
2691echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2692echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2693if test "${ac_cv_c_compiler_gnu+set}" = set; then
2694  echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696  cat >conftest.$ac_ext <<_ACEOF
2697#line $LINENO "configure"
2698/* confdefs.h.  */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h.  */
2703
2704int
2705main ()
2706{
2707#ifndef __GNUC__
2708       choke me
2709#endif
2710
2711  ;
2712  return 0;
2713}
2714_ACEOF
2715rm -f conftest.$ac_objext
2716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717  (eval $ac_compile) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); } &&
2721         { ac_try='test -s conftest.$ac_objext'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; }; then
2727  ac_compiler_gnu=yes
2728else
2729  echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732ac_compiler_gnu=no
2733fi
2734rm -f conftest.$ac_objext conftest.$ac_ext
2735ac_cv_c_compiler_gnu=$ac_compiler_gnu
2736
2737fi
2738echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2739echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2740GCC=`test $ac_compiler_gnu = yes && echo yes`
2741ac_test_CFLAGS=${CFLAGS+set}
2742ac_save_CFLAGS=$CFLAGS
2743CFLAGS="-g"
2744echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2745echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2746if test "${ac_cv_prog_cc_g+set}" = set; then
2747  echo $ECHO_N "(cached) $ECHO_C" >&6
2748else
2749  cat >conftest.$ac_ext <<_ACEOF
2750#line $LINENO "configure"
2751/* confdefs.h.  */
2752_ACEOF
2753cat confdefs.h >>conftest.$ac_ext
2754cat >>conftest.$ac_ext <<_ACEOF
2755/* end confdefs.h.  */
2756
2757int
2758main ()
2759{
2760
2761  ;
2762  return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext
2766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767  (eval $ac_compile) 2>&5
2768  ac_status=$?
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); } &&
2771         { ac_try='test -s conftest.$ac_objext'
2772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773  (eval $ac_try) 2>&5
2774  ac_status=$?
2775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776  (exit $ac_status); }; }; then
2777  ac_cv_prog_cc_g=yes
2778else
2779  echo "$as_me: failed program was:" >&5
2780sed 's/^/| /' conftest.$ac_ext >&5
2781
2782ac_cv_prog_cc_g=no
2783fi
2784rm -f conftest.$ac_objext conftest.$ac_ext
2785fi
2786echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2787echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2788if test "$ac_test_CFLAGS" = set; then
2789  CFLAGS=$ac_save_CFLAGS
2790elif test $ac_cv_prog_cc_g = yes; then
2791  if test "$GCC" = yes; then
2792    CFLAGS="-g -O2"
2793  else
2794    CFLAGS="-g"
2795  fi
2796else
2797  if test "$GCC" = yes; then
2798    CFLAGS="-O2"
2799  else
2800    CFLAGS=
2801  fi
2802fi
2803echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2804echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2805if test "${ac_cv_prog_cc_stdc+set}" = set; then
2806  echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808  ac_cv_prog_cc_stdc=no
2809ac_save_CC=$CC
2810cat >conftest.$ac_ext <<_ACEOF
2811#line $LINENO "configure"
2812/* confdefs.h.  */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h.  */
2817#include <stdarg.h>
2818#include <stdio.h>
2819#include <sys/types.h>
2820#include <sys/stat.h>
2821/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2822struct buf { int x; };
2823FILE * (*rcsopen) (struct buf *, struct stat *, int);
2824static char *e (p, i)
2825     char **p;
2826     int i;
2827{
2828  return p[i];
2829}
2830static char *f (char * (*g) (char **, int), char **p, ...)
2831{
2832  char *s;
2833  va_list v;
2834  va_start (v,p);
2835  s = g (p, va_arg (v,int));
2836  va_end (v);
2837  return s;
2838}
2839int test (int i, double x);
2840struct s1 {int (*f) (int a);};
2841struct s2 {int (*f) (double a);};
2842int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2843int argc;
2844char **argv;
2845int
2846main ()
2847{
2848return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2849  ;
2850  return 0;
2851}
2852_ACEOF
2853# Don't try gcc -ansi; that turns off useful extensions and
2854# breaks some systems' header files.
2855# AIX			-qlanglvl=ansi
2856# Ultrix and OSF/1	-std1
2857# HP-UX 10.20 and later	-Ae
2858# HP-UX older versions	-Aa -D_HPUX_SOURCE
2859# SVR4			-Xc -D__EXTENSIONS__
2860for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2861do
2862  CC="$ac_save_CC $ac_arg"
2863  rm -f conftest.$ac_objext
2864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2865  (eval $ac_compile) 2>&5
2866  ac_status=$?
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); } &&
2869         { ac_try='test -s conftest.$ac_objext'
2870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871  (eval $ac_try) 2>&5
2872  ac_status=$?
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); }; }; then
2875  ac_cv_prog_cc_stdc=$ac_arg
2876break
2877else
2878  echo "$as_me: failed program was:" >&5
2879sed 's/^/| /' conftest.$ac_ext >&5
2880
2881fi
2882rm -f conftest.$ac_objext
2883done
2884rm -f conftest.$ac_ext conftest.$ac_objext
2885CC=$ac_save_CC
2886
2887fi
2888
2889case "x$ac_cv_prog_cc_stdc" in
2890  x|xno)
2891    echo "$as_me:$LINENO: result: none needed" >&5
2892echo "${ECHO_T}none needed" >&6 ;;
2893  *)
2894    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2895echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2896    CC="$CC $ac_cv_prog_cc_stdc" ;;
2897esac
2898
2899# Some people use a C++ compiler to compile C.  Since we use `exit',
2900# in C++ we need to declare it.  In case someone uses the same compiler
2901# for both compiling C and C++ we need to have the C++ compiler decide
2902# the declaration of exit, since it's the most demanding environment.
2903cat >conftest.$ac_ext <<_ACEOF
2904#ifndef __cplusplus
2905  choke me
2906#endif
2907_ACEOF
2908rm -f conftest.$ac_objext
2909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2910  (eval $ac_compile) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); } &&
2914         { ac_try='test -s conftest.$ac_objext'
2915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916  (eval $ac_try) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; }; then
2920  for ac_declaration in \
2921   ''\
2922   '#include <stdlib.h>' \
2923   'extern "C" void std::exit (int) throw (); using std::exit;' \
2924   'extern "C" void std::exit (int); using std::exit;' \
2925   'extern "C" void exit (int) throw ();' \
2926   'extern "C" void exit (int);' \
2927   'void exit (int);'
2928do
2929  cat >conftest.$ac_ext <<_ACEOF
2930#line $LINENO "configure"
2931/* confdefs.h.  */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h.  */
2936#include <stdlib.h>
2937$ac_declaration
2938int
2939main ()
2940{
2941exit (42);
2942  ;
2943  return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext
2947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948  (eval $ac_compile) 2>&5
2949  ac_status=$?
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952         { ac_try='test -s conftest.$ac_objext'
2953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954  (eval $ac_try) 2>&5
2955  ac_status=$?
2956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957  (exit $ac_status); }; }; then
2958  :
2959else
2960  echo "$as_me: failed program was:" >&5
2961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963continue
2964fi
2965rm -f conftest.$ac_objext conftest.$ac_ext
2966  cat >conftest.$ac_ext <<_ACEOF
2967#line $LINENO "configure"
2968/* confdefs.h.  */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h.  */
2973$ac_declaration
2974int
2975main ()
2976{
2977exit (42);
2978  ;
2979  return 0;
2980}
2981_ACEOF
2982rm -f conftest.$ac_objext
2983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984  (eval $ac_compile) 2>&5
2985  ac_status=$?
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); } &&
2988         { ac_try='test -s conftest.$ac_objext'
2989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990  (eval $ac_try) 2>&5
2991  ac_status=$?
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); }; }; then
2994  break
2995else
2996  echo "$as_me: failed program was:" >&5
2997sed 's/^/| /' conftest.$ac_ext >&5
2998
2999fi
3000rm -f conftest.$ac_objext conftest.$ac_ext
3001done
3002rm -f conftest*
3003if test -n "$ac_declaration"; then
3004  echo '#ifdef __cplusplus' >>confdefs.h
3005  echo $ac_declaration      >>confdefs.h
3006  echo '#endif'             >>confdefs.h
3007fi
3008
3009else
3010  echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013fi
3014rm -f conftest.$ac_objext conftest.$ac_ext
3015ac_ext=c
3016ac_cpp='$CPP $CPPFLAGS'
3017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
3021depcc="$CC"   am_compiler_list=
3022
3023echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3024echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3025if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3026  echo $ECHO_N "(cached) $ECHO_C" >&6
3027else
3028  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3029  # We make a subdir and do the tests there.  Otherwise we can end up
3030  # making bogus files that we don't know about and never remove.  For
3031  # instance it was reported that on HP-UX the gcc test will end up
3032  # making a dummy file named `D' -- because `-MD' means `put the output
3033  # in D'.
3034  mkdir conftest.dir
3035  # Copy depcomp to subdir because otherwise we won't find it if we're
3036  # using a relative directory.
3037  cp "$am_depcomp" conftest.dir
3038  cd conftest.dir
3039
3040  am_cv_CC_dependencies_compiler_type=none
3041  if test "$am_compiler_list" = ""; then
3042     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3043  fi
3044  for depmode in $am_compiler_list; do
3045    # We need to recreate these files for each test, as the compiler may
3046    # overwrite some of them when testing with obscure command lines.
3047    # This happens at least with the AIX C compiler.
3048    echo '#include "conftest.h"' > conftest.c
3049    echo 'int i;' > conftest.h
3050    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3051
3052    case $depmode in
3053    nosideeffect)
3054      # after this tag, mechanisms are not by side-effect, so they'll
3055      # only be used when explicitly requested
3056      if test "x$enable_dependency_tracking" = xyes; then
3057	continue
3058      else
3059	break
3060      fi
3061      ;;
3062    none) break ;;
3063    esac
3064    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3065    # mode.  It turns out that the SunPro C++ compiler does not properly
3066    # handle `-M -o', and we need to detect this.
3067    if depmode=$depmode \
3068       source=conftest.c object=conftest.o \
3069       depfile=conftest.Po tmpdepfile=conftest.TPo \
3070       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3071       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3072       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3073      am_cv_CC_dependencies_compiler_type=$depmode
3074      break
3075    fi
3076  done
3077
3078  cd ..
3079  rm -rf conftest.dir
3080else
3081  am_cv_CC_dependencies_compiler_type=none
3082fi
3083
3084fi
3085echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3086echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3087CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3088
3089
3090
3091  ac_ext=c
3092ac_cpp='$CPP $CPPFLAGS'
3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3097echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3098# On Suns, sometimes $CPP names a directory.
3099if test -n "$CPP" && test -d "$CPP"; then
3100  CPP=
3101fi
3102if test -z "$CPP"; then
3103  if test "${ac_cv_prog_CPP+set}" = set; then
3104  echo $ECHO_N "(cached) $ECHO_C" >&6
3105else
3106      # Double quotes because CPP needs to be expanded
3107    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3108    do
3109      ac_preproc_ok=false
3110for ac_c_preproc_warn_flag in '' yes
3111do
3112  # Use a header file that comes with gcc, so configuring glibc
3113  # with a fresh cross-compiler works.
3114  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3115  # <limits.h> exists even on freestanding compilers.
3116  # On the NeXT, cc -E runs the code through the compiler's parser,
3117  # not just through cpp. "Syntax error" is here to catch this case.
3118  cat >conftest.$ac_ext <<_ACEOF
3119#line $LINENO "configure"
3120/* confdefs.h.  */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h.  */
3125#ifdef __STDC__
3126# include <limits.h>
3127#else
3128# include <assert.h>
3129#endif
3130                     Syntax error
3131_ACEOF
3132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134  ac_status=$?
3135  grep -v '^ *+' conftest.er1 >conftest.err
3136  rm -f conftest.er1
3137  cat conftest.err >&5
3138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139  (exit $ac_status); } >/dev/null; then
3140  if test -s conftest.err; then
3141    ac_cpp_err=$ac_c_preproc_warn_flag
3142  else
3143    ac_cpp_err=
3144  fi
3145else
3146  ac_cpp_err=yes
3147fi
3148if test -z "$ac_cpp_err"; then
3149  :
3150else
3151  echo "$as_me: failed program was:" >&5
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154  # Broken: fails on valid input.
3155continue
3156fi
3157rm -f conftest.err conftest.$ac_ext
3158
3159  # OK, works on sane cases.  Now check whether non-existent headers
3160  # can be detected and how.
3161  cat >conftest.$ac_ext <<_ACEOF
3162#line $LINENO "configure"
3163/* confdefs.h.  */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h.  */
3168#include <ac_nonexistent.h>
3169_ACEOF
3170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3171  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3172  ac_status=$?
3173  grep -v '^ *+' conftest.er1 >conftest.err
3174  rm -f conftest.er1
3175  cat conftest.err >&5
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); } >/dev/null; then
3178  if test -s conftest.err; then
3179    ac_cpp_err=$ac_c_preproc_warn_flag
3180  else
3181    ac_cpp_err=
3182  fi
3183else
3184  ac_cpp_err=yes
3185fi
3186if test -z "$ac_cpp_err"; then
3187  # Broken: success on invalid input.
3188continue
3189else
3190  echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193  # Passes both tests.
3194ac_preproc_ok=:
3195break
3196fi
3197rm -f conftest.err conftest.$ac_ext
3198
3199done
3200# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3201rm -f conftest.err conftest.$ac_ext
3202if $ac_preproc_ok; then
3203  break
3204fi
3205
3206    done
3207    ac_cv_prog_CPP=$CPP
3208
3209fi
3210  CPP=$ac_cv_prog_CPP
3211else
3212  ac_cv_prog_CPP=$CPP
3213fi
3214echo "$as_me:$LINENO: result: $CPP" >&5
3215echo "${ECHO_T}$CPP" >&6
3216ac_preproc_ok=false
3217for ac_c_preproc_warn_flag in '' yes
3218do
3219  # Use a header file that comes with gcc, so configuring glibc
3220  # with a fresh cross-compiler works.
3221  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222  # <limits.h> exists even on freestanding compilers.
3223  # On the NeXT, cc -E runs the code through the compiler's parser,
3224  # not just through cpp. "Syntax error" is here to catch this case.
3225  cat >conftest.$ac_ext <<_ACEOF
3226#line $LINENO "configure"
3227/* confdefs.h.  */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h.  */
3232#ifdef __STDC__
3233# include <limits.h>
3234#else
3235# include <assert.h>
3236#endif
3237                     Syntax error
3238_ACEOF
3239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241  ac_status=$?
3242  grep -v '^ *+' conftest.er1 >conftest.err
3243  rm -f conftest.er1
3244  cat conftest.err >&5
3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); } >/dev/null; then
3247  if test -s conftest.err; then
3248    ac_cpp_err=$ac_c_preproc_warn_flag
3249  else
3250    ac_cpp_err=
3251  fi
3252else
3253  ac_cpp_err=yes
3254fi
3255if test -z "$ac_cpp_err"; then
3256  :
3257else
3258  echo "$as_me: failed program was:" >&5
3259sed 's/^/| /' conftest.$ac_ext >&5
3260
3261  # Broken: fails on valid input.
3262continue
3263fi
3264rm -f conftest.err conftest.$ac_ext
3265
3266  # OK, works on sane cases.  Now check whether non-existent headers
3267  # can be detected and how.
3268  cat >conftest.$ac_ext <<_ACEOF
3269#line $LINENO "configure"
3270/* confdefs.h.  */
3271_ACEOF
3272cat confdefs.h >>conftest.$ac_ext
3273cat >>conftest.$ac_ext <<_ACEOF
3274/* end confdefs.h.  */
3275#include <ac_nonexistent.h>
3276_ACEOF
3277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3278  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3279  ac_status=$?
3280  grep -v '^ *+' conftest.er1 >conftest.err
3281  rm -f conftest.er1
3282  cat conftest.err >&5
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); } >/dev/null; then
3285  if test -s conftest.err; then
3286    ac_cpp_err=$ac_c_preproc_warn_flag
3287  else
3288    ac_cpp_err=
3289  fi
3290else
3291  ac_cpp_err=yes
3292fi
3293if test -z "$ac_cpp_err"; then
3294  # Broken: success on invalid input.
3295continue
3296else
3297  echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300  # Passes both tests.
3301ac_preproc_ok=:
3302break
3303fi
3304rm -f conftest.err conftest.$ac_ext
3305
3306done
3307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308rm -f conftest.err conftest.$ac_ext
3309if $ac_preproc_ok; then
3310  :
3311else
3312  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3313See \`config.log' for more details." >&5
3314echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3315See \`config.log' for more details." >&2;}
3316   { (exit 1); exit 1; }; }
3317fi
3318
3319ac_ext=c
3320ac_cpp='$CPP $CPPFLAGS'
3321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324
3325
3326  if test "$GCC" = "yes"; then
3327    if test "$kde_use_debug_code" != "no"; then
3328      if test $kde_use_debug_code = "full"; then
3329        CFLAGS="-g3 $CFLAGS"
3330      else
3331        CFLAGS="-g -O2 $CFLAGS"
3332      fi
3333    else
3334      CFLAGS="-O2 $CFLAGS"
3335    fi
3336  fi
3337
3338  if test "$kde_use_debug_define" = "yes"; then
3339    CFLAGS="-DNDEBUG $CFLAGS"
3340  fi
3341
3342
3343  case "$host" in
3344  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
3345  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
3346  esac
3347
3348  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
3349     LDFLAGS=""
3350  fi
3351
3352  CXXFLAGS=" $CXXFLAGS"
3353
3354  ac_ext=cc
3355ac_cpp='$CXXCPP $CPPFLAGS'
3356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3359if test -n "$ac_tool_prefix"; then
3360  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3361  do
3362    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364echo "$as_me:$LINENO: checking for $ac_word" >&5
3365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3366if test "${ac_cv_prog_CXX+set}" = set; then
3367  echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
3369  if test -n "$CXX"; then
3370  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375  IFS=$as_save_IFS
3376  test -z "$as_dir" && as_dir=.
3377  for ac_exec_ext in '' $ac_executable_extensions; do
3378  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381    break 2
3382  fi
3383done
3384done
3385
3386fi
3387fi
3388CXX=$ac_cv_prog_CXX
3389if test -n "$CXX"; then
3390  echo "$as_me:$LINENO: result: $CXX" >&5
3391echo "${ECHO_T}$CXX" >&6
3392else
3393  echo "$as_me:$LINENO: result: no" >&5
3394echo "${ECHO_T}no" >&6
3395fi
3396
3397    test -n "$CXX" && break
3398  done
3399fi
3400if test -z "$CXX"; then
3401  ac_ct_CXX=$CXX
3402  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3403do
3404  # Extract the first word of "$ac_prog", so it can be a program name with args.
3405set dummy $ac_prog; ac_word=$2
3406echo "$as_me:$LINENO: checking for $ac_word" >&5
3407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3409  echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411  if test -n "$ac_ct_CXX"; then
3412  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3413else
3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417  IFS=$as_save_IFS
3418  test -z "$as_dir" && as_dir=.
3419  for ac_exec_ext in '' $ac_executable_extensions; do
3420  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421    ac_cv_prog_ac_ct_CXX="$ac_prog"
3422    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423    break 2
3424  fi
3425done
3426done
3427
3428fi
3429fi
3430ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3431if test -n "$ac_ct_CXX"; then
3432  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3433echo "${ECHO_T}$ac_ct_CXX" >&6
3434else
3435  echo "$as_me:$LINENO: result: no" >&5
3436echo "${ECHO_T}no" >&6
3437fi
3438
3439  test -n "$ac_ct_CXX" && break
3440done
3441test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3442
3443  CXX=$ac_ct_CXX
3444fi
3445
3446
3447# Provide some information about the compiler.
3448echo "$as_me:$LINENO:" \
3449     "checking for C++ compiler version" >&5
3450ac_compiler=`set X $ac_compile; echo $2`
3451{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3452  (eval $ac_compiler --version </dev/null >&5) 2>&5
3453  ac_status=$?
3454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455  (exit $ac_status); }
3456{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3457  (eval $ac_compiler -v </dev/null >&5) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }
3461{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3462  (eval $ac_compiler -V </dev/null >&5) 2>&5
3463  ac_status=$?
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); }
3466
3467echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3468echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3469if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3470  echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472  cat >conftest.$ac_ext <<_ACEOF
3473#line $LINENO "configure"
3474/* confdefs.h.  */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h.  */
3479
3480int
3481main ()
3482{
3483#ifndef __GNUC__
3484       choke me
3485#endif
3486
3487  ;
3488  return 0;
3489}
3490_ACEOF
3491rm -f conftest.$ac_objext
3492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493  (eval $ac_compile) 2>&5
3494  ac_status=$?
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); } &&
3497         { ac_try='test -s conftest.$ac_objext'
3498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499  (eval $ac_try) 2>&5
3500  ac_status=$?
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); }; }; then
3503  ac_compiler_gnu=yes
3504else
3505  echo "$as_me: failed program was:" >&5
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
3508ac_compiler_gnu=no
3509fi
3510rm -f conftest.$ac_objext conftest.$ac_ext
3511ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3512
3513fi
3514echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3515echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3516GXX=`test $ac_compiler_gnu = yes && echo yes`
3517ac_test_CXXFLAGS=${CXXFLAGS+set}
3518ac_save_CXXFLAGS=$CXXFLAGS
3519CXXFLAGS="-g"
3520echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3521echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3522if test "${ac_cv_prog_cxx_g+set}" = set; then
3523  echo $ECHO_N "(cached) $ECHO_C" >&6
3524else
3525  cat >conftest.$ac_ext <<_ACEOF
3526#line $LINENO "configure"
3527/* confdefs.h.  */
3528_ACEOF
3529cat confdefs.h >>conftest.$ac_ext
3530cat >>conftest.$ac_ext <<_ACEOF
3531/* end confdefs.h.  */
3532
3533int
3534main ()
3535{
3536
3537  ;
3538  return 0;
3539}
3540_ACEOF
3541rm -f conftest.$ac_objext
3542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3543  (eval $ac_compile) 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); } &&
3547         { ac_try='test -s conftest.$ac_objext'
3548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549  (eval $ac_try) 2>&5
3550  ac_status=$?
3551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552  (exit $ac_status); }; }; then
3553  ac_cv_prog_cxx_g=yes
3554else
3555  echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558ac_cv_prog_cxx_g=no
3559fi
3560rm -f conftest.$ac_objext conftest.$ac_ext
3561fi
3562echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3563echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3564if test "$ac_test_CXXFLAGS" = set; then
3565  CXXFLAGS=$ac_save_CXXFLAGS
3566elif test $ac_cv_prog_cxx_g = yes; then
3567  if test "$GXX" = yes; then
3568    CXXFLAGS="-g -O2"
3569  else
3570    CXXFLAGS="-g"
3571  fi
3572else
3573  if test "$GXX" = yes; then
3574    CXXFLAGS="-O2"
3575  else
3576    CXXFLAGS=
3577  fi
3578fi
3579for ac_declaration in \
3580   ''\
3581   '#include <stdlib.h>' \
3582   'extern "C" void std::exit (int) throw (); using std::exit;' \
3583   'extern "C" void std::exit (int); using std::exit;' \
3584   'extern "C" void exit (int) throw ();' \
3585   'extern "C" void exit (int);' \
3586   'void exit (int);'
3587do
3588  cat >conftest.$ac_ext <<_ACEOF
3589#line $LINENO "configure"
3590/* confdefs.h.  */
3591_ACEOF
3592cat confdefs.h >>conftest.$ac_ext
3593cat >>conftest.$ac_ext <<_ACEOF
3594/* end confdefs.h.  */
3595#include <stdlib.h>
3596$ac_declaration
3597int
3598main ()
3599{
3600exit (42);
3601  ;
3602  return 0;
3603}
3604_ACEOF
3605rm -f conftest.$ac_objext
3606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3607  (eval $ac_compile) 2>&5
3608  ac_status=$?
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } &&
3611         { ac_try='test -s conftest.$ac_objext'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; }; then
3617  :
3618else
3619  echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
3622continue
3623fi
3624rm -f conftest.$ac_objext conftest.$ac_ext
3625  cat >conftest.$ac_ext <<_ACEOF
3626#line $LINENO "configure"
3627/* confdefs.h.  */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h.  */
3632$ac_declaration
3633int
3634main ()
3635{
3636exit (42);
3637  ;
3638  return 0;
3639}
3640_ACEOF
3641rm -f conftest.$ac_objext
3642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3643  (eval $ac_compile) 2>&5
3644  ac_status=$?
3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646  (exit $ac_status); } &&
3647         { ac_try='test -s conftest.$ac_objext'
3648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649  (eval $ac_try) 2>&5
3650  ac_status=$?
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); }; }; then
3653  break
3654else
3655  echo "$as_me: failed program was:" >&5
3656sed 's/^/| /' conftest.$ac_ext >&5
3657
3658fi
3659rm -f conftest.$ac_objext conftest.$ac_ext
3660done
3661rm -f conftest*
3662if test -n "$ac_declaration"; then
3663  echo '#ifdef __cplusplus' >>confdefs.h
3664  echo $ac_declaration      >>confdefs.h
3665  echo '#endif'             >>confdefs.h
3666fi
3667
3668ac_ext=c
3669ac_cpp='$CPP $CPPFLAGS'
3670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674depcc="$CXX"  am_compiler_list=
3675
3676echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3677echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3678if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3679  echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
3681  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3682  # We make a subdir and do the tests there.  Otherwise we can end up
3683  # making bogus files that we don't know about and never remove.  For
3684  # instance it was reported that on HP-UX the gcc test will end up
3685  # making a dummy file named `D' -- because `-MD' means `put the output
3686  # in D'.
3687  mkdir conftest.dir
3688  # Copy depcomp to subdir because otherwise we won't find it if we're
3689  # using a relative directory.
3690  cp "$am_depcomp" conftest.dir
3691  cd conftest.dir
3692
3693  am_cv_CXX_dependencies_compiler_type=none
3694  if test "$am_compiler_list" = ""; then
3695     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3696  fi
3697  for depmode in $am_compiler_list; do
3698    # We need to recreate these files for each test, as the compiler may
3699    # overwrite some of them when testing with obscure command lines.
3700    # This happens at least with the AIX C compiler.
3701    echo '#include "conftest.h"' > conftest.c
3702    echo 'int i;' > conftest.h
3703    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3704
3705    case $depmode in
3706    nosideeffect)
3707      # after this tag, mechanisms are not by side-effect, so they'll
3708      # only be used when explicitly requested
3709      if test "x$enable_dependency_tracking" = xyes; then
3710	continue
3711      else
3712	break
3713      fi
3714      ;;
3715    none) break ;;
3716    esac
3717    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3718    # mode.  It turns out that the SunPro C++ compiler does not properly
3719    # handle `-M -o', and we need to detect this.
3720    if depmode=$depmode \
3721       source=conftest.c object=conftest.o \
3722       depfile=conftest.Po tmpdepfile=conftest.TPo \
3723       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3724       grep conftest.h conftest.Po > /dev/null 2>&1 &&
3725       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3726      am_cv_CXX_dependencies_compiler_type=$depmode
3727      break
3728    fi
3729  done
3730
3731  cd ..
3732  rm -rf conftest.dir
3733else
3734  am_cv_CXX_dependencies_compiler_type=none
3735fi
3736
3737fi
3738echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3739echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3740CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3741
3742
3743
3744  if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
3745    if test "$kde_use_debug_code" != "no"; then
3746      if test "$CXX" = "KCC"; then
3747        CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
3748      else
3749        if test "$kde_use_debug_code" = "full"; then
3750          CXXFLAGS="-g3 $CXXFLAGS"
3751        else
3752          CXXFLAGS="-g -O2 $CXXFLAGS"
3753        fi
3754      fi
3755
3756echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
3757echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
3758kde_cache=`echo fno-builtin | sed 'y% .=/+-%____p_%'`
3759if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3760  echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762
3763
3764
3765
3766ac_ext=cc
3767ac_cpp='$CXXCPP $CPPFLAGS'
3768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3771
3772ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3773
3774
3775
3776  save_CXXFLAGS="$CXXFLAGS"
3777  CXXFLAGS="$CXXFLAGS -fno-builtin"
3778  cat >conftest.$ac_ext <<_ACEOF
3779#line $LINENO "configure"
3780/* confdefs.h.  */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789 return 0;
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext conftest$ac_exeext
3795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3796  (eval $ac_link) 2>&5
3797  ac_status=$?
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); } &&
3800         { ac_try='test -s conftest$ac_exeext'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; }; then
3806  eval "kde_cv_prog_cxx_$kde_cache=yes"
3807else
3808  echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
3811fi
3812rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3813  CXXFLAGS="$save_CXXFLAGS"
3814  ac_ext=c
3815ac_cpp='$CPP $CPPFLAGS'
3816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819
3820
3821fi
3822
3823if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3824 echo "$as_me:$LINENO: result: yes" >&5
3825echo "${ECHO_T}yes" >&6
3826 :
3827 CXXFLAGS="-fno-builtin $CXXFLAGS"
3828else
3829 echo "$as_me:$LINENO: result: no" >&5
3830echo "${ECHO_T}no" >&6
3831 :
3832
3833fi
3834
3835
3836
3837echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
3838echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
3839kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-%____p_%'`
3840if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3841  echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843
3844
3845
3846   ac_ext=cc
3847ac_cpp='$CXXCPP $CPPFLAGS'
3848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3851
3852ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3853
3854
3855  save_CXXFLAGS="$CXXFLAGS"
3856  CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
3857  cat >conftest.$ac_ext <<_ACEOF
3858#line $LINENO "configure"
3859/* confdefs.h.  */
3860_ACEOF
3861cat confdefs.h >>conftest.$ac_ext
3862cat >>conftest.$ac_ext <<_ACEOF
3863/* end confdefs.h.  */
3864
3865int
3866main ()
3867{
3868 return 0;
3869  ;
3870  return 0;
3871}
3872_ACEOF
3873rm -f conftest.$ac_objext conftest$ac_exeext
3874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875  (eval $ac_link) 2>&5
3876  ac_status=$?
3877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878  (exit $ac_status); } &&
3879         { ac_try='test -s conftest$ac_exeext'
3880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881  (eval $ac_try) 2>&5
3882  ac_status=$?
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); }; }; then
3885  eval "kde_cv_prog_cxx_$kde_cache=yes"
3886else
3887  echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890fi
3891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3892  CXXFLAGS="$save_CXXFLAGS"
3893  ac_ext=c
3894ac_cpp='$CPP $CPPFLAGS'
3895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
3899
3900fi
3901
3902if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3903 echo "$as_me:$LINENO: result: yes" >&5
3904echo "${ECHO_T}yes" >&6
3905 :
3906 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
3907else
3908 echo "$as_me:$LINENO: result: no" >&5
3909echo "${ECHO_T}no" >&6
3910 :
3911 WOVERLOADED_VRITUAL=""
3912fi
3913
3914
3915    else
3916      if test "$CXX" = "KCC"; then
3917        CXXFLAGS="+K3 $CXXFLAGS"
3918      else
3919        CXXFLAGS="-O2 $CXXFLAGS"
3920      fi
3921    fi
3922  fi
3923
3924  if test "$kde_use_debug_define" = "yes"; then
3925    CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
3926  fi
3927
3928  if test "$kde_use_profiling" = "yes"; then
3929
3930echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
3931echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
3932kde_cache=`echo pg | sed 'y% .=/+-%____p_%'`
3933if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
3934  echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936
3937
3938
3939   ac_ext=cc
3940ac_cpp='$CXXCPP $CPPFLAGS'
3941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3944
3945ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3946
3947
3948  save_CXXFLAGS="$CXXFLAGS"
3949  CXXFLAGS="$CXXFLAGS -pg"
3950  cat >conftest.$ac_ext <<_ACEOF
3951#line $LINENO "configure"
3952/* confdefs.h.  */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
3956/* end confdefs.h.  */
3957
3958int
3959main ()
3960{
3961 return 0;
3962  ;
3963  return 0;
3964}
3965_ACEOF
3966rm -f conftest.$ac_objext conftest$ac_exeext
3967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968  (eval $ac_link) 2>&5
3969  ac_status=$?
3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971  (exit $ac_status); } &&
3972         { ac_try='test -s conftest$ac_exeext'
3973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974  (eval $ac_try) 2>&5
3975  ac_status=$?
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); }; }; then
3978  eval "kde_cv_prog_cxx_$kde_cache=yes"
3979else
3980  echo "$as_me: failed program was:" >&5
3981sed 's/^/| /' conftest.$ac_ext >&5
3982
3983fi
3984rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3985  CXXFLAGS="$save_CXXFLAGS"
3986  ac_ext=c
3987ac_cpp='$CPP $CPPFLAGS'
3988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3990ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991
3992
3993fi
3994
3995if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
3996 echo "$as_me:$LINENO: result: yes" >&5
3997echo "${ECHO_T}yes" >&6
3998 :
3999
4000      CFLAGS="-pg $CFLAGS"
4001      CXXFLAGS="-pg $CXXFLAGS"
4002
4003else
4004 echo "$as_me:$LINENO: result: no" >&5
4005echo "${ECHO_T}no" >&6
4006 :
4007
4008fi
4009
4010  fi
4011
4012  if test "$kde_use_warnings" = "yes"; then
4013      if test "$GCC" = "yes"; then
4014        case $host in
4015          *-*-linux-gnu)
4016            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
4017            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
4018          ;;
4019        esac
4020        CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
4021
4022echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
4023echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
4024kde_cache=`echo Wundef | sed 'y% .=/+-%____p_%'`
4025if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4026  echo $ECHO_N "(cached) $ECHO_C" >&6
4027else
4028
4029
4030
4031   ac_ext=cc
4032ac_cpp='$CXXCPP $CPPFLAGS'
4033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4036
4037ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4038
4039
4040  save_CXXFLAGS="$CXXFLAGS"
4041  CXXFLAGS="$CXXFLAGS -Wundef"
4042  cat >conftest.$ac_ext <<_ACEOF
4043#line $LINENO "configure"
4044/* confdefs.h.  */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h.  */
4049
4050int
4051main ()
4052{
4053 return 0;
4054  ;
4055  return 0;
4056}
4057_ACEOF
4058rm -f conftest.$ac_objext conftest$ac_exeext
4059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060  (eval $ac_link) 2>&5
4061  ac_status=$?
4062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063  (exit $ac_status); } &&
4064         { ac_try='test -s conftest$ac_exeext'
4065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066  (eval $ac_try) 2>&5
4067  ac_status=$?
4068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069  (exit $ac_status); }; }; then
4070  eval "kde_cv_prog_cxx_$kde_cache=yes"
4071else
4072  echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075fi
4076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4077  CXXFLAGS="$save_CXXFLAGS"
4078  ac_ext=c
4079ac_cpp='$CPP $CPPFLAGS'
4080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083
4084
4085fi
4086
4087if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4088 echo "$as_me:$LINENO: result: yes" >&5
4089echo "${ECHO_T}yes" >&6
4090 :
4091 CXXFLAGS="-Wundef $CXXFLAGS"
4092else
4093 echo "$as_me:$LINENO: result: no" >&5
4094echo "${ECHO_T}no" >&6
4095 :
4096
4097fi
4098
4099
4100echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
4101echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
4102kde_cache=`echo Wno-long-long | sed 'y% .=/+-%____p_%'`
4103if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4104  echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106
4107
4108
4109   ac_ext=cc
4110ac_cpp='$CXXCPP $CPPFLAGS'
4111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4114
4115ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4116
4117
4118  save_CXXFLAGS="$CXXFLAGS"
4119  CXXFLAGS="$CXXFLAGS -Wno-long-long"
4120  cat >conftest.$ac_ext <<_ACEOF
4121#line $LINENO "configure"
4122/* confdefs.h.  */
4123_ACEOF
4124cat confdefs.h >>conftest.$ac_ext
4125cat >>conftest.$ac_ext <<_ACEOF
4126/* end confdefs.h.  */
4127
4128int
4129main ()
4130{
4131 return 0;
4132  ;
4133  return 0;
4134}
4135_ACEOF
4136rm -f conftest.$ac_objext conftest$ac_exeext
4137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4138  (eval $ac_link) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); } &&
4142         { ac_try='test -s conftest$ac_exeext'
4143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144  (eval $ac_try) 2>&5
4145  ac_status=$?
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); }; }; then
4148  eval "kde_cv_prog_cxx_$kde_cache=yes"
4149else
4150  echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4153fi
4154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4155  CXXFLAGS="$save_CXXFLAGS"
4156  ac_ext=c
4157ac_cpp='$CPP $CPPFLAGS'
4158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162
4163fi
4164
4165if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4166 echo "$as_me:$LINENO: result: yes" >&5
4167echo "${ECHO_T}yes" >&6
4168 :
4169 CXXFLAGS="-Wno-long-long $CXXFLAGS"
4170else
4171 echo "$as_me:$LINENO: result: no" >&5
4172echo "${ECHO_T}no" >&6
4173 :
4174
4175fi
4176
4177
4178echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
4179echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6
4180kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-%____p_%'`
4181if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4182  echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184
4185
4186
4187   ac_ext=cc
4188ac_cpp='$CXXCPP $CPPFLAGS'
4189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4192
4193ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4194
4195
4196  save_CXXFLAGS="$CXXFLAGS"
4197  CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
4198  cat >conftest.$ac_ext <<_ACEOF
4199#line $LINENO "configure"
4200/* confdefs.h.  */
4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
4204/* end confdefs.h.  */
4205
4206int
4207main ()
4208{
4209 return 0;
4210  ;
4211  return 0;
4212}
4213_ACEOF
4214rm -f conftest.$ac_objext conftest$ac_exeext
4215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216  (eval $ac_link) 2>&5
4217  ac_status=$?
4218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219  (exit $ac_status); } &&
4220         { ac_try='test -s conftest$ac_exeext'
4221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222  (eval $ac_try) 2>&5
4223  ac_status=$?
4224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225  (exit $ac_status); }; }; then
4226  eval "kde_cv_prog_cxx_$kde_cache=yes"
4227else
4228  echo "$as_me: failed program was:" >&5
4229sed 's/^/| /' conftest.$ac_ext >&5
4230
4231fi
4232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4233  CXXFLAGS="$save_CXXFLAGS"
4234  ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241fi
4242
4243if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4244 echo "$as_me:$LINENO: result: yes" >&5
4245echo "${ECHO_T}yes" >&6
4246 :
4247 CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
4248else
4249 echo "$as_me:$LINENO: result: no" >&5
4250echo "${ECHO_T}no" >&6
4251 :
4252
4253fi
4254
4255     fi
4256  fi
4257
4258  if test "$GCC" = "yes" && test "$kde_use_strict_options" = "yes"; then
4259    CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
4260  fi
4261
4262  if test "$GXX" = "yes"; then
4263
4264echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
4265echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
4266kde_cache=`echo fno-exceptions | sed 'y% .=/+-%____p_%'`
4267if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4268  echo $ECHO_N "(cached) $ECHO_C" >&6
4269else
4270
4271
4272
4273   ac_ext=cc
4274ac_cpp='$CXXCPP $CPPFLAGS'
4275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4278
4279ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4280
4281
4282  save_CXXFLAGS="$CXXFLAGS"
4283  CXXFLAGS="$CXXFLAGS -fno-exceptions"
4284  cat >conftest.$ac_ext <<_ACEOF
4285#line $LINENO "configure"
4286/* confdefs.h.  */
4287_ACEOF
4288cat confdefs.h >>conftest.$ac_ext
4289cat >>conftest.$ac_ext <<_ACEOF
4290/* end confdefs.h.  */
4291
4292int
4293main ()
4294{
4295 return 0;
4296  ;
4297  return 0;
4298}
4299_ACEOF
4300rm -f conftest.$ac_objext conftest$ac_exeext
4301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4302  (eval $ac_link) 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); } &&
4306         { ac_try='test -s conftest$ac_exeext'
4307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308  (eval $ac_try) 2>&5
4309  ac_status=$?
4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311  (exit $ac_status); }; }; then
4312  eval "kde_cv_prog_cxx_$kde_cache=yes"
4313else
4314  echo "$as_me: failed program was:" >&5
4315sed 's/^/| /' conftest.$ac_ext >&5
4316
4317fi
4318rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4319  CXXFLAGS="$save_CXXFLAGS"
4320  ac_ext=c
4321ac_cpp='$CPP $CPPFLAGS'
4322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
4326
4327fi
4328
4329if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4330 echo "$as_me:$LINENO: result: yes" >&5
4331echo "${ECHO_T}yes" >&6
4332 :
4333 CXXFLAGS="$CXXFLAGS -fno-exceptions"
4334else
4335 echo "$as_me:$LINENO: result: no" >&5
4336echo "${ECHO_T}no" >&6
4337 :
4338
4339fi
4340
4341
4342echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
4343echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
4344kde_cache=`echo fno-check-new | sed 'y% .=/+-%____p_%'`
4345if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4346  echo $ECHO_N "(cached) $ECHO_C" >&6
4347else
4348
4349
4350
4351   ac_ext=cc
4352ac_cpp='$CXXCPP $CPPFLAGS'
4353ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4356
4357ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4358
4359
4360  save_CXXFLAGS="$CXXFLAGS"
4361  CXXFLAGS="$CXXFLAGS -fno-check-new"
4362  cat >conftest.$ac_ext <<_ACEOF
4363#line $LINENO "configure"
4364/* confdefs.h.  */
4365_ACEOF
4366cat confdefs.h >>conftest.$ac_ext
4367cat >>conftest.$ac_ext <<_ACEOF
4368/* end confdefs.h.  */
4369
4370int
4371main ()
4372{
4373 return 0;
4374  ;
4375  return 0;
4376}
4377_ACEOF
4378rm -f conftest.$ac_objext conftest$ac_exeext
4379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380  (eval $ac_link) 2>&5
4381  ac_status=$?
4382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383  (exit $ac_status); } &&
4384         { ac_try='test -s conftest$ac_exeext'
4385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386  (eval $ac_try) 2>&5
4387  ac_status=$?
4388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389  (exit $ac_status); }; }; then
4390  eval "kde_cv_prog_cxx_$kde_cache=yes"
4391else
4392  echo "$as_me: failed program was:" >&5
4393sed 's/^/| /' conftest.$ac_ext >&5
4394
4395fi
4396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4397  CXXFLAGS="$save_CXXFLAGS"
4398  ac_ext=c
4399ac_cpp='$CPP $CPPFLAGS'
4400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
4404
4405fi
4406
4407if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4408 echo "$as_me:$LINENO: result: yes" >&5
4409echo "${ECHO_T}yes" >&6
4410 :
4411 CXXFLAGS="$CXXFLAGS -fno-check-new"
4412else
4413 echo "$as_me:$LINENO: result: no" >&5
4414echo "${ECHO_T}no" >&6
4415 :
4416
4417fi
4418
4419
4420echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
4421echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
4422kde_cache=`echo fexceptions | sed 'y% .=/+-%____p_%'`
4423if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4424  echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426
4427
4428
4429   ac_ext=cc
4430ac_cpp='$CXXCPP $CPPFLAGS'
4431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4434
4435ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4436
4437
4438  save_CXXFLAGS="$CXXFLAGS"
4439  CXXFLAGS="$CXXFLAGS -fexceptions"
4440  cat >conftest.$ac_ext <<_ACEOF
4441#line $LINENO "configure"
4442/* confdefs.h.  */
4443_ACEOF
4444cat confdefs.h >>conftest.$ac_ext
4445cat >>conftest.$ac_ext <<_ACEOF
4446/* end confdefs.h.  */
4447
4448int
4449main ()
4450{
4451 return 0;
4452  ;
4453  return 0;
4454}
4455_ACEOF
4456rm -f conftest.$ac_objext conftest$ac_exeext
4457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458  (eval $ac_link) 2>&5
4459  ac_status=$?
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } &&
4462         { ac_try='test -s conftest$ac_exeext'
4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464  (eval $ac_try) 2>&5
4465  ac_status=$?
4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467  (exit $ac_status); }; }; then
4468  eval "kde_cv_prog_cxx_$kde_cache=yes"
4469else
4470  echo "$as_me: failed program was:" >&5
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
4473fi
4474rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4475  CXXFLAGS="$save_CXXFLAGS"
4476  ac_ext=c
4477ac_cpp='$CPP $CPPFLAGS'
4478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481
4482
4483fi
4484
4485if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4486 echo "$as_me:$LINENO: result: yes" >&5
4487echo "${ECHO_T}yes" >&6
4488 :
4489 USE_EXCEPTIONS="-fexceptions"
4490else
4491 echo "$as_me:$LINENO: result: no" >&5
4492echo "${ECHO_T}no" >&6
4493 :
4494 USE_EXCEPTIONS=
4495fi
4496
4497  fi
4498  if test "$CXX" = "KCC"; then
4499
4500    # Check whether --enable-pch or --disable-pch was given.
4501if test "${enable_pch+set}" = set; then
4502  enableval="$enable_pch"
4503
4504      kde_use_pch=$enableval
4505
4506else
4507  kde_use_pch=no
4508fi;
4509
4510    if test "$kde_use_pch" = "yes"; then
4511
4512echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
4513echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
4514kde_cache=`echo -pch | sed 'y% .=/+-%____p_%'`
4515if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4516  echo $ECHO_N "(cached) $ECHO_C" >&6
4517else
4518
4519
4520
4521   ac_ext=cc
4522ac_cpp='$CXXCPP $CPPFLAGS'
4523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526
4527ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4528
4529
4530  save_CXXFLAGS="$CXXFLAGS"
4531  CXXFLAGS="$CXXFLAGS --pch"
4532  cat >conftest.$ac_ext <<_ACEOF
4533#line $LINENO "configure"
4534/* confdefs.h.  */
4535_ACEOF
4536cat confdefs.h >>conftest.$ac_ext
4537cat >>conftest.$ac_ext <<_ACEOF
4538/* end confdefs.h.  */
4539
4540int
4541main ()
4542{
4543 return 0;
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548rm -f conftest.$ac_objext conftest$ac_exeext
4549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550  (eval $ac_link) 2>&5
4551  ac_status=$?
4552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553  (exit $ac_status); } &&
4554         { ac_try='test -s conftest$ac_exeext'
4555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556  (eval $ac_try) 2>&5
4557  ac_status=$?
4558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559  (exit $ac_status); }; }; then
4560  eval "kde_cv_prog_cxx_$kde_cache=yes"
4561else
4562  echo "$as_me: failed program was:" >&5
4563sed 's/^/| /' conftest.$ac_ext >&5
4564
4565fi
4566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4567  CXXFLAGS="$save_CXXFLAGS"
4568  ac_ext=c
4569ac_cpp='$CPP $CPPFLAGS'
4570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574
4575fi
4576
4577if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4578 echo "$as_me:$LINENO: result: yes" >&5
4579echo "${ECHO_T}yes" >&6
4580 :
4581 CXXFLAGS="$CXXFLAGS --pch"
4582else
4583 echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6
4585 :
4586
4587fi
4588
4589                                              fi
4590
4591echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
4592echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
4593kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-%____p_%'`
4594if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4595  echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597
4598
4599
4600   ac_ext=cc
4601ac_cpp='$CXXCPP $CPPFLAGS'
4602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4605
4606ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4607
4608
4609  save_CXXFLAGS="$CXXFLAGS"
4610  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
4611  cat >conftest.$ac_ext <<_ACEOF
4612#line $LINENO "configure"
4613/* confdefs.h.  */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h.  */
4618
4619int
4620main ()
4621{
4622 return 0;
4623  ;
4624  return 0;
4625}
4626_ACEOF
4627rm -f conftest.$ac_objext conftest$ac_exeext
4628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4629  (eval $ac_link) 2>&5
4630  ac_status=$?
4631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632  (exit $ac_status); } &&
4633         { ac_try='test -s conftest$ac_exeext'
4634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635  (eval $ac_try) 2>&5
4636  ac_status=$?
4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; }; then
4639  eval "kde_cv_prog_cxx_$kde_cache=yes"
4640else
4641  echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644fi
4645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4646  CXXFLAGS="$save_CXXFLAGS"
4647  ac_ext=c
4648ac_cpp='$CPP $CPPFLAGS'
4649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651ac_compiler_gnu=$ac_cv_c_compiler_gnu
4652
4653
4654fi
4655
4656if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4657 echo "$as_me:$LINENO: result: yes" >&5
4658echo "${ECHO_T}yes" >&6
4659 :
4660 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
4661else
4662 echo "$as_me:$LINENO: result: no" >&5
4663echo "${ECHO_T}no" >&6
4664 :
4665
4666fi
4667
4668
4669echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
4670echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
4671kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-%____p_%'`
4672if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4673  echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675
4676
4677
4678   ac_ext=cc
4679ac_cpp='$CXXCPP $CPPFLAGS'
4680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4683
4684ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4685
4686
4687  save_CXXFLAGS="$CXXFLAGS"
4688  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
4689  cat >conftest.$ac_ext <<_ACEOF
4690#line $LINENO "configure"
4691/* confdefs.h.  */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h.  */
4696
4697int
4698main ()
4699{
4700 return 0;
4701  ;
4702  return 0;
4703}
4704_ACEOF
4705rm -f conftest.$ac_objext conftest$ac_exeext
4706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4707  (eval $ac_link) 2>&5
4708  ac_status=$?
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); } &&
4711         { ac_try='test -s conftest$ac_exeext'
4712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713  (eval $ac_try) 2>&5
4714  ac_status=$?
4715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); }; }; then
4717  eval "kde_cv_prog_cxx_$kde_cache=yes"
4718else
4719  echo "$as_me: failed program was:" >&5
4720sed 's/^/| /' conftest.$ac_ext >&5
4721
4722fi
4723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4724  CXXFLAGS="$save_CXXFLAGS"
4725  ac_ext=c
4726ac_cpp='$CPP $CPPFLAGS'
4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
4731
4732fi
4733
4734if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4735 echo "$as_me:$LINENO: result: yes" >&5
4736echo "${ECHO_T}yes" >&6
4737 :
4738 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
4739else
4740 echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6
4742 :
4743
4744fi
4745
4746
4747echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
4748echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
4749kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-%____p_%'`
4750if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753
4754
4755
4756   ac_ext=cc
4757ac_cpp='$CXXCPP $CPPFLAGS'
4758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4761
4762ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4763
4764
4765  save_CXXFLAGS="$CXXFLAGS"
4766  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
4767  cat >conftest.$ac_ext <<_ACEOF
4768#line $LINENO "configure"
4769/* confdefs.h.  */
4770_ACEOF
4771cat confdefs.h >>conftest.$ac_ext
4772cat >>conftest.$ac_ext <<_ACEOF
4773/* end confdefs.h.  */
4774
4775int
4776main ()
4777{
4778 return 0;
4779  ;
4780  return 0;
4781}
4782_ACEOF
4783rm -f conftest.$ac_objext conftest$ac_exeext
4784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4785  (eval $ac_link) 2>&5
4786  ac_status=$?
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); } &&
4789         { ac_try='test -s conftest$ac_exeext'
4790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791  (eval $ac_try) 2>&5
4792  ac_status=$?
4793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794  (exit $ac_status); }; }; then
4795  eval "kde_cv_prog_cxx_$kde_cache=yes"
4796else
4797  echo "$as_me: failed program was:" >&5
4798sed 's/^/| /' conftest.$ac_ext >&5
4799
4800fi
4801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4802  CXXFLAGS="$save_CXXFLAGS"
4803  ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809
4810fi
4811
4812if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4813 echo "$as_me:$LINENO: result: yes" >&5
4814echo "${ECHO_T}yes" >&6
4815 :
4816 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
4817else
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
4820 :
4821
4822fi
4823
4824
4825echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
4826echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
4827kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-%____p_%'`
4828if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4829  echo $ECHO_N "(cached) $ECHO_C" >&6
4830else
4831
4832
4833
4834   ac_ext=cc
4835ac_cpp='$CXXCPP $CPPFLAGS'
4836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4839
4840ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4841
4842
4843  save_CXXFLAGS="$CXXFLAGS"
4844  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
4845  cat >conftest.$ac_ext <<_ACEOF
4846#line $LINENO "configure"
4847/* confdefs.h.  */
4848_ACEOF
4849cat confdefs.h >>conftest.$ac_ext
4850cat >>conftest.$ac_ext <<_ACEOF
4851/* end confdefs.h.  */
4852
4853int
4854main ()
4855{
4856 return 0;
4857  ;
4858  return 0;
4859}
4860_ACEOF
4861rm -f conftest.$ac_objext conftest$ac_exeext
4862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4863  (eval $ac_link) 2>&5
4864  ac_status=$?
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); } &&
4867         { ac_try='test -s conftest$ac_exeext'
4868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869  (eval $ac_try) 2>&5
4870  ac_status=$?
4871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872  (exit $ac_status); }; }; then
4873  eval "kde_cv_prog_cxx_$kde_cache=yes"
4874else
4875  echo "$as_me: failed program was:" >&5
4876sed 's/^/| /' conftest.$ac_ext >&5
4877
4878fi
4879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4880  CXXFLAGS="$save_CXXFLAGS"
4881  ac_ext=c
4882ac_cpp='$CPP $CPPFLAGS'
4883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885ac_compiler_gnu=$ac_cv_c_compiler_gnu
4886
4887
4888fi
4889
4890if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4891 echo "$as_me:$LINENO: result: yes" >&5
4892echo "${ECHO_T}yes" >&6
4893 :
4894 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
4895else
4896 echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898 :
4899
4900fi
4901
4902
4903echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
4904echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
4905kde_cache=`echo -one_per | sed 'y% .=/+-%____p_%'`
4906if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4907  echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909
4910
4911
4912   ac_ext=cc
4913ac_cpp='$CXXCPP $CPPFLAGS'
4914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4917
4918ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4919
4920
4921  save_CXXFLAGS="$CXXFLAGS"
4922  CXXFLAGS="$CXXFLAGS --one_per"
4923  cat >conftest.$ac_ext <<_ACEOF
4924#line $LINENO "configure"
4925/* confdefs.h.  */
4926_ACEOF
4927cat confdefs.h >>conftest.$ac_ext
4928cat >>conftest.$ac_ext <<_ACEOF
4929/* end confdefs.h.  */
4930
4931int
4932main ()
4933{
4934 return 0;
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939rm -f conftest.$ac_objext conftest$ac_exeext
4940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941  (eval $ac_link) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); } &&
4945         { ac_try='test -s conftest$ac_exeext'
4946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947  (eval $ac_try) 2>&5
4948  ac_status=$?
4949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950  (exit $ac_status); }; }; then
4951  eval "kde_cv_prog_cxx_$kde_cache=yes"
4952else
4953  echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956fi
4957rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4958  CXXFLAGS="$save_CXXFLAGS"
4959  ac_ext=c
4960ac_cpp='$CPP $CPPFLAGS'
4961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964
4965
4966fi
4967
4968if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4969 echo "$as_me:$LINENO: result: yes" >&5
4970echo "${ECHO_T}yes" >&6
4971 :
4972 CXXFLAGS="$CXXFLAGS --one_per"
4973else
4974 echo "$as_me:$LINENO: result: no" >&5
4975echo "${ECHO_T}no" >&6
4976 :
4977
4978fi
4979
4980  fi
4981
4982    USE_RTTI=
4983
4984
4985  case "$host" in
4986      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
4987      *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
4988      *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
4989      *-*-solaris*)
4990        if test "$GXX" = yes; then
4991          libstdcpp=`$CXX -print-file-name=libstdc++.so`
4992          if test ! -f $libstdcpp; then
4993             { { 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
4994echo "$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;}
4995   { (exit 1); exit 1; }; }
4996          fi
4997        fi
4998        ;;
4999  esac
5000
5001  if test "x$kde_use_qt_emb" != "xyes"; then
5002  __val=$CXX
5003  __forbid=" -fno-rtti -rpath "
5004  if test -n "$__val"; then
5005    __new=""
5006    ac_save_IFS=$IFS
5007    IFS=" 	"
5008    for i in $__val; do
5009      case "$__forbid" in
5010        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
5011echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
5012	*) # Careful to not add spaces, where there were none, because otherwise
5013	   # libtool gets confused, if we change e.g. CXX
5014	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5015      esac
5016    done
5017    IFS=$ac_save_IFS
5018    CXX=$__new
5019  fi
5020
5021  __val=$CXXFLAGS
5022  __forbid=" -fno-rtti -rpath "
5023  if test -n "$__val"; then
5024    __new=""
5025    ac_save_IFS=$IFS
5026    IFS=" 	"
5027    for i in $__val; do
5028      case "$__forbid" in
5029        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
5030echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
5031	*) # Careful to not add spaces, where there were none, because otherwise
5032	   # libtool gets confused, if we change e.g. CXX
5033	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5034      esac
5035    done
5036    IFS=$ac_save_IFS
5037    CXXFLAGS=$__new
5038  fi
5039
5040else
5041  __val=$CXX
5042  __forbid=" -rpath "
5043  if test -n "$__val"; then
5044    __new=""
5045    ac_save_IFS=$IFS
5046    IFS=" 	"
5047    for i in $__val; do
5048      case "$__forbid" in
5049        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
5050echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
5051	*) # Careful to not add spaces, where there were none, because otherwise
5052	   # libtool gets confused, if we change e.g. CXX
5053	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5054      esac
5055    done
5056    IFS=$ac_save_IFS
5057    CXX=$__new
5058  fi
5059
5060  __val=$CXXFLAGS
5061  __forbid=" -rpath "
5062  if test -n "$__val"; then
5063    __new=""
5064    ac_save_IFS=$IFS
5065    IFS=" 	"
5066    for i in $__val; do
5067      case "$__forbid" in
5068        *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
5069echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
5070	*) # Careful to not add spaces, where there were none, because otherwise
5071	   # libtool gets confused, if we change e.g. CXX
5072	   if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
5073      esac
5074    done
5075    IFS=$ac_save_IFS
5076    CXXFLAGS=$__new
5077  fi
5078
5079fi
5080
5081
5082  ac_ext=cc
5083ac_cpp='$CXXCPP $CPPFLAGS'
5084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5087echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5088echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5089if test -z "$CXXCPP"; then
5090  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5091  echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093      # Double quotes because CXXCPP needs to be expanded
5094    for CXXCPP in "$CXX -E" "/lib/cpp"
5095    do
5096      ac_preproc_ok=false
5097for ac_cxx_preproc_warn_flag in '' yes
5098do
5099  # Use a header file that comes with gcc, so configuring glibc
5100  # with a fresh cross-compiler works.
5101  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102  # <limits.h> exists even on freestanding compilers.
5103  # On the NeXT, cc -E runs the code through the compiler's parser,
5104  # not just through cpp. "Syntax error" is here to catch this case.
5105  cat >conftest.$ac_ext <<_ACEOF
5106#line $LINENO "configure"
5107/* confdefs.h.  */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h.  */
5112#ifdef __STDC__
5113# include <limits.h>
5114#else
5115# include <assert.h>
5116#endif
5117                     Syntax error
5118_ACEOF
5119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5120  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5121  ac_status=$?
5122  grep -v '^ *+' conftest.er1 >conftest.err
5123  rm -f conftest.er1
5124  cat conftest.err >&5
5125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); } >/dev/null; then
5127  if test -s conftest.err; then
5128    ac_cpp_err=$ac_cxx_preproc_warn_flag
5129  else
5130    ac_cpp_err=
5131  fi
5132else
5133  ac_cpp_err=yes
5134fi
5135if test -z "$ac_cpp_err"; then
5136  :
5137else
5138  echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141  # Broken: fails on valid input.
5142continue
5143fi
5144rm -f conftest.err conftest.$ac_ext
5145
5146  # OK, works on sane cases.  Now check whether non-existent headers
5147  # can be detected and how.
5148  cat >conftest.$ac_ext <<_ACEOF
5149#line $LINENO "configure"
5150/* confdefs.h.  */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h.  */
5155#include <ac_nonexistent.h>
5156_ACEOF
5157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5158  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5159  ac_status=$?
5160  grep -v '^ *+' conftest.er1 >conftest.err
5161  rm -f conftest.er1
5162  cat conftest.err >&5
5163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164  (exit $ac_status); } >/dev/null; then
5165  if test -s conftest.err; then
5166    ac_cpp_err=$ac_cxx_preproc_warn_flag
5167  else
5168    ac_cpp_err=
5169  fi
5170else
5171  ac_cpp_err=yes
5172fi
5173if test -z "$ac_cpp_err"; then
5174  # Broken: success on invalid input.
5175continue
5176else
5177  echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180  # Passes both tests.
5181ac_preproc_ok=:
5182break
5183fi
5184rm -f conftest.err conftest.$ac_ext
5185
5186done
5187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188rm -f conftest.err conftest.$ac_ext
5189if $ac_preproc_ok; then
5190  break
5191fi
5192
5193    done
5194    ac_cv_prog_CXXCPP=$CXXCPP
5195
5196fi
5197  CXXCPP=$ac_cv_prog_CXXCPP
5198else
5199  ac_cv_prog_CXXCPP=$CXXCPP
5200fi
5201echo "$as_me:$LINENO: result: $CXXCPP" >&5
5202echo "${ECHO_T}$CXXCPP" >&6
5203ac_preproc_ok=false
5204for ac_cxx_preproc_warn_flag in '' yes
5205do
5206  # Use a header file that comes with gcc, so configuring glibc
5207  # with a fresh cross-compiler works.
5208  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209  # <limits.h> exists even on freestanding compilers.
5210  # On the NeXT, cc -E runs the code through the compiler's parser,
5211  # not just through cpp. "Syntax error" is here to catch this case.
5212  cat >conftest.$ac_ext <<_ACEOF
5213#line $LINENO "configure"
5214/* confdefs.h.  */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h.  */
5219#ifdef __STDC__
5220# include <limits.h>
5221#else
5222# include <assert.h>
5223#endif
5224                     Syntax error
5225_ACEOF
5226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5228  ac_status=$?
5229  grep -v '^ *+' conftest.er1 >conftest.err
5230  rm -f conftest.er1
5231  cat conftest.err >&5
5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); } >/dev/null; then
5234  if test -s conftest.err; then
5235    ac_cpp_err=$ac_cxx_preproc_warn_flag
5236  else
5237    ac_cpp_err=
5238  fi
5239else
5240  ac_cpp_err=yes
5241fi
5242if test -z "$ac_cpp_err"; then
5243  :
5244else
5245  echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248  # Broken: fails on valid input.
5249continue
5250fi
5251rm -f conftest.err conftest.$ac_ext
5252
5253  # OK, works on sane cases.  Now check whether non-existent headers
5254  # can be detected and how.
5255  cat >conftest.$ac_ext <<_ACEOF
5256#line $LINENO "configure"
5257/* confdefs.h.  */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h.  */
5262#include <ac_nonexistent.h>
5263_ACEOF
5264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266  ac_status=$?
5267  grep -v '^ *+' conftest.er1 >conftest.err
5268  rm -f conftest.er1
5269  cat conftest.err >&5
5270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271  (exit $ac_status); } >/dev/null; then
5272  if test -s conftest.err; then
5273    ac_cpp_err=$ac_cxx_preproc_warn_flag
5274  else
5275    ac_cpp_err=
5276  fi
5277else
5278  ac_cpp_err=yes
5279fi
5280if test -z "$ac_cpp_err"; then
5281  # Broken: success on invalid input.
5282continue
5283else
5284  echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287  # Passes both tests.
5288ac_preproc_ok=:
5289break
5290fi
5291rm -f conftest.err conftest.$ac_ext
5292
5293done
5294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295rm -f conftest.err conftest.$ac_ext
5296if $ac_preproc_ok; then
5297  :
5298else
5299  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5300See \`config.log' for more details." >&5
5301echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5302See \`config.log' for more details." >&2;}
5303   { (exit 1); exit 1; }; }
5304fi
5305
5306ac_ext=c
5307ac_cpp='$CPP $CPPFLAGS'
5308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311
5312
5313  if test "$GCC" = yes; then
5314     NOOPT_CXXFLAGS=-O0
5315     NOOPT_CFLAGS=-O0
5316  fi
5317
5318
5319
5320
5321
5322  # Check whether --enable-final or --disable-final was given.
5323if test "${enable_final+set}" = set; then
5324  enableval="$enable_final"
5325  kde_use_final=$enableval
5326else
5327  kde_use_final=no
5328fi;
5329
5330
5331  REPO=""
5332  NOREPO=""
5333
5334
5335echo "$as_me:$LINENO: checking whether $CXX supports -frepo" >&5
5336echo $ECHO_N "checking whether $CXX supports -frepo... $ECHO_C" >&6
5337kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'`
5338if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5339  echo $ECHO_N "(cached) $ECHO_C" >&6
5340else
5341
5342
5343
5344   ac_ext=cc
5345ac_cpp='$CXXCPP $CPPFLAGS'
5346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5349
5350ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5351
5352
5353  save_CXXFLAGS="$CXXFLAGS"
5354  CXXFLAGS="$CXXFLAGS -frepo"
5355  cat >conftest.$ac_ext <<_ACEOF
5356#line $LINENO "configure"
5357/* confdefs.h.  */
5358_ACEOF
5359cat confdefs.h >>conftest.$ac_ext
5360cat >>conftest.$ac_ext <<_ACEOF
5361/* end confdefs.h.  */
5362
5363int
5364main ()
5365{
5366 return 0;
5367  ;
5368  return 0;
5369}
5370_ACEOF
5371rm -f conftest.$ac_objext conftest$ac_exeext
5372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5373  (eval $ac_link) 2>&5
5374  ac_status=$?
5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376  (exit $ac_status); } &&
5377         { ac_try='test -s conftest$ac_exeext'
5378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5379  (eval $ac_try) 2>&5
5380  ac_status=$?
5381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382  (exit $ac_status); }; }; then
5383  eval "kde_cv_prog_cxx_$kde_cache=yes"
5384else
5385  echo "$as_me: failed program was:" >&5
5386sed 's/^/| /' conftest.$ac_ext >&5
5387
5388fi
5389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5390  CXXFLAGS="$save_CXXFLAGS"
5391  ac_ext=c
5392ac_cpp='$CPP $CPPFLAGS'
5393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395ac_compiler_gnu=$ac_cv_c_compiler_gnu
5396
5397
5398fi
5399
5400if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5401 echo "$as_me:$LINENO: result: yes" >&5
5402echo "${ECHO_T}yes" >&6
5403 :
5404
5405     REPO="-frepo"
5406     NOREPO="-fno-repo"
5407
5408else
5409 echo "$as_me:$LINENO: result: no" >&5
5410echo "${ECHO_T}no" >&6
5411 :
5412
5413fi
5414
5415
5416  if test -z "$REPO"; then
5417
5418echo "$as_me:$LINENO: checking whether $CXX supports -instances=explicit" >&5
5419echo $ECHO_N "checking whether $CXX supports -instances=explicit... $ECHO_C" >&6
5420kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'`
5421if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5422  echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424
5425
5426
5427   ac_ext=cc
5428ac_cpp='$CXXCPP $CPPFLAGS'
5429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5432
5433ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5434
5435
5436  save_CXXFLAGS="$CXXFLAGS"
5437  CXXFLAGS="$CXXFLAGS -instances=explicit"
5438  cat >conftest.$ac_ext <<_ACEOF
5439#line $LINENO "configure"
5440/* confdefs.h.  */
5441_ACEOF
5442cat confdefs.h >>conftest.$ac_ext
5443cat >>conftest.$ac_ext <<_ACEOF
5444/* end confdefs.h.  */
5445
5446int
5447main ()
5448{
5449 return 0;
5450  ;
5451  return 0;
5452}
5453_ACEOF
5454rm -f conftest.$ac_objext conftest$ac_exeext
5455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5456  (eval $ac_link) 2>&5
5457  ac_status=$?
5458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); } &&
5460         { ac_try='test -s conftest$ac_exeext'
5461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462  (eval $ac_try) 2>&5
5463  ac_status=$?
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); }; }; then
5466  eval "kde_cv_prog_cxx_$kde_cache=yes"
5467else
5468  echo "$as_me: failed program was:" >&5
5469sed 's/^/| /' conftest.$ac_ext >&5
5470
5471fi
5472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5473  CXXFLAGS="$save_CXXFLAGS"
5474  ac_ext=c
5475ac_cpp='$CPP $CPPFLAGS'
5476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478ac_compiler_gnu=$ac_cv_c_compiler_gnu
5479
5480
5481fi
5482
5483if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5484 echo "$as_me:$LINENO: result: yes" >&5
5485echo "${ECHO_T}yes" >&6
5486 :
5487
5488     REPO="-instances=explicit"
5489     NOREPO="-instances=extern"
5490
5491else
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
5494 :
5495
5496fi
5497
5498  fi
5499
5500  if test -n "$REPO"; then
5501
5502cat >>confdefs.h <<_ACEOF
5503#define HAVE_TEMPLATE_REPOSITORY 1
5504_ACEOF
5505
5506
5507  fi
5508
5509
5510
5511
5512  if test "x$kde_use_final" = "xyes"; then
5513      KDE_USE_FINAL_TRUE=""
5514      KDE_USE_FINAL_FALSE="#"
5515   else
5516      KDE_USE_FINAL_TRUE="#"
5517      KDE_USE_FINAL_FALSE=""
5518  fi
5519
5520
5521
5522  # Check whether --enable-closure or --disable-closure was given.
5523if test "${enable_closure+set}" = set; then
5524  enableval="$enable_closure"
5525  kde_use_closure=$enableval
5526else
5527  kde_use_closure=yes
5528fi;
5529
5530  if test "x$kde_use_closure" = "xyes"; then
5531       KDE_USE_CLOSURE_TRUE=""
5532       KDE_USE_CLOSURE_FALSE="#"
5533#       CXXFLAGS="$CXXFLAGS $REPO"
5534  else
5535       KDE_USE_CLOSURE_TRUE="#"
5536       KDE_USE_CLOSURE_FALSE=""
5537  fi
5538
5539
5540
5541
5542
5543
5544
5545
5546# Check whether --enable-shared or --disable-shared was given.
5547if test "${enable_shared+set}" = set; then
5548  enableval="$enable_shared"
5549  p=${PACKAGE-default}
5550    case $enableval in
5551    yes) enable_shared=yes ;;
5552    no) enable_shared=no ;;
5553    *)
5554      enable_shared=no
5555      # Look at the argument we got.  We use all the common list separators.
5556      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5557      for pkg in $enableval; do
5558	IFS="$lt_save_ifs"
5559	if test "X$pkg" = "X$p"; then
5560	  enable_shared=yes
5561	fi
5562      done
5563      IFS="$lt_save_ifs"
5564      ;;
5565    esac
5566else
5567  enable_shared=yes
5568fi;
5569
5570
5571# Check whether --enable-static or --disable-static was given.
5572if test "${enable_static+set}" = set; then
5573  enableval="$enable_static"
5574  p=${PACKAGE-default}
5575    case $enableval in
5576    yes) enable_static=yes ;;
5577    no) enable_static=no ;;
5578    *)
5579     enable_static=no
5580      # Look at the argument we got.  We use all the common list separators.
5581      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5582      for pkg in $enableval; do
5583	IFS="$lt_save_ifs"
5584	if test "X$pkg" = "X$p"; then
5585	  enable_static=yes
5586	fi
5587      done
5588      IFS="$lt_save_ifs"
5589      ;;
5590    esac
5591else
5592  enable_static=no
5593fi;
5594
5595
5596
5597
5598
5599    kdelibsuff=none
5600    # Check whether --enable-libsuffix or --disable-libsuffix was given.
5601if test "${enable_libsuffix+set}" = set; then
5602  enableval="$enable_libsuffix"
5603  kdelibsuff=$enableval
5604fi;
5605    if test "$kdelibsuff" = "none"; then
5606        if test -d /lib64 ; then
5607            kdelibsuff=64
5608        else
5609            kdelibsuff=
5610        fi
5611    fi
5612    if test -z "$kdelibsuff"; then
5613        echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
5614echo "${ECHO_T}not using lib directory suffix" >&6
5615
5616cat >>confdefs.h <<\_ACEOF
5617#define KDELIBSUFF ""
5618_ACEOF
5619
5620    else
5621        if test "$libdir" = '${exec_prefix}/lib'; then
5622            libdir="$libdir${kdelibsuff}"
5623            libdir="$libdir"
5624          fi
5625
5626cat >>confdefs.h <<_ACEOF
5627#define KDELIBSUFF "\"${kdelibsuff}\""
5628_ACEOF
5629
5630        echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
5631echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6
5632    fi
5633
5634# Check whether --enable-fast-install or --disable-fast-install was given.
5635if test "${enable_fast_install+set}" = set; then
5636  enableval="$enable_fast_install"
5637  p=${PACKAGE-default}
5638    case $enableval in
5639    yes) enable_fast_install=yes ;;
5640    no) enable_fast_install=no ;;
5641    *)
5642      enable_fast_install=no
5643      # Look at the argument we got.  We use all the common list separators.
5644      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5645      for pkg in $enableval; do
5646	IFS="$lt_save_ifs"
5647	if test "X$pkg" = "X$p"; then
5648	  enable_fast_install=yes
5649	fi
5650      done
5651      IFS="$lt_save_ifs"
5652      ;;
5653    esac
5654else
5655  enable_fast_install=yes
5656fi;
5657
5658
5659# Check whether --with-gnu-ld or --without-gnu-ld was given.
5660if test "${with_gnu_ld+set}" = set; then
5661  withval="$with_gnu_ld"
5662  test "$withval" = no || with_gnu_ld=yes
5663else
5664  with_gnu_ld=no
5665fi;
5666ac_prog=ld
5667if test "$GCC" = yes; then
5668  # Check if gcc -print-prog-name=ld gives a path.
5669  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5670echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5671  case $host in
5672  *-*-mingw*)
5673    # gcc leaves a trailing carriage return which upsets mingw
5674    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5675  *)
5676    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5677  esac
5678  case $ac_prog in
5679    # Accept absolute paths.
5680    [\\/]* | ?:[\\/]*)
5681      re_direlt='/[^/][^/]*/\.\./'
5682      # Canonicalize the path of ld
5683      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5684      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5685	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5686      done
5687      test -z "$LD" && LD="$ac_prog"
5688      ;;
5689  "")
5690    # If it fails, then pretend we aren't using GCC.
5691    ac_prog=ld
5692    ;;
5693  *)
5694    # If it is relative, then search for the first ld in PATH.
5695    with_gnu_ld=unknown
5696    ;;
5697  esac
5698elif test "$with_gnu_ld" = yes; then
5699  echo "$as_me:$LINENO: checking for GNU ld" >&5
5700echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5701else
5702  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5703echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5704fi
5705if test "${lt_cv_path_LD+set}" = set; then
5706  echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708  if test -z "$LD"; then
5709  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5710  for ac_dir in $PATH; do
5711    IFS="$lt_save_ifs"
5712    test -z "$ac_dir" && ac_dir=.
5713    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5714      lt_cv_path_LD="$ac_dir/$ac_prog"
5715      # Check to see if the program is GNU ld.  I'd rather use --version,
5716      # but apparently some GNU ld's only accept -v.
5717      # Break only if it was the GNU/non-GNU ld that we prefer.
5718      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5719	test "$with_gnu_ld" != no && break
5720      else
5721	test "$with_gnu_ld" != yes && break
5722      fi
5723    fi
5724  done
5725  IFS="$lt_save_ifs"
5726else
5727  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5728fi
5729fi
5730
5731LD="$lt_cv_path_LD"
5732if test -n "$LD"; then
5733  echo "$as_me:$LINENO: result: $LD" >&5
5734echo "${ECHO_T}$LD" >&6
5735else
5736  echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6
5738fi
5739test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5740echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5741   { (exit 1); exit 1; }; }
5742echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5743echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5744if test "${lt_cv_prog_gnu_ld+set}" = set; then
5745  echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5748if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5749  lt_cv_prog_gnu_ld=yes
5750else
5751  lt_cv_prog_gnu_ld=no
5752fi
5753fi
5754echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5755echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5756with_gnu_ld=$lt_cv_prog_gnu_ld
5757
5758
5759echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5760echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5761if test "${lt_cv_ld_reload_flag+set}" = set; then
5762  echo $ECHO_N "(cached) $ECHO_C" >&6
5763else
5764  lt_cv_ld_reload_flag='-r'
5765fi
5766echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5767echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5768reload_flag=$lt_cv_ld_reload_flag
5769case $reload_flag in
5770"" | " "*) ;;
5771*) reload_flag=" $reload_flag" ;;
5772esac
5773reload_cmds='$LD$reload_flag -o $output$reload_objs'
5774
5775echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5776echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5777if test "${lt_cv_path_NM+set}" = set; then
5778  echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780  if test -n "$NM"; then
5781  # Let the user override the test.
5782  lt_cv_path_NM="$NM"
5783else
5784  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5785  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5786    IFS="$lt_save_ifs"
5787    test -z "$ac_dir" && ac_dir=.
5788    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5789    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5790      # Check to see if the nm accepts a BSD-compat flag.
5791      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5792      #   nm: unknown option "B" ignored
5793      # Tru64's nm complains that /dev/null is an invalid object file
5794      if ("$tmp_nm" -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5795	lt_cv_path_NM="$tmp_nm -B"
5796	break
5797      elif ("$tmp_nm" -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5798	lt_cv_path_NM="$tmp_nm -p"
5799	break
5800      else
5801	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5802	continue # so that we can try to find one that supports BSD flags
5803      fi
5804    fi
5805  done
5806  IFS="$lt_save_ifs"
5807  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5808fi
5809fi
5810echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5811echo "${ECHO_T}$lt_cv_path_NM" >&6
5812NM="$lt_cv_path_NM"
5813
5814echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5815echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5816if test "${lt_cv_path_SED+set}" = set; then
5817  echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819  # Loop through the user's path and test for sed and gsed.
5820# Then use that list of sed's as ones to test for truncation.
5821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822for as_dir in $PATH
5823do
5824  IFS=$as_save_IFS
5825  test -z "$as_dir" && as_dir=.
5826  for ac_prog in sed gsed; do
5827    for ac_exec_ext in '' $ac_executable_extensions; do
5828      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5829        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
5830      fi
5831    done
5832  done
5833done
5834
5835  # Create a temporary directory, and hook for its removal unless debugging.
5836$debug ||
5837{
5838  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5839  trap '{ (exit 1); exit 1; }' 1 2 13 15
5840}
5841
5842# Create a (secure) tmp directory for tmp files.
5843: ${TMPDIR=/tmp}
5844{
5845  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
5846  test -n "$tmp" && test -d "$tmp"
5847}  ||
5848{
5849  tmp=$TMPDIR/sed$$-$RANDOM
5850  (umask 077 && mkdir $tmp)
5851} ||
5852{
5853   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5854   { (exit 1); exit 1; }
5855}
5856  _max=0
5857  _count=0
5858  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5859  # along with /bin/sed that truncates output.
5860  for _sed in $_sed_list /usr/xpg4/bin/sed; do
5861    test ! -f ${_sed} && break
5862    cat /dev/null > "$tmp/sed.in"
5863    _count=0
5864    echo $ECHO_N "0123456789$ECHO_C" >"$tmp/sed.in"
5865    # Check for GNU sed and select it if it is found.
5866    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
5867      lt_cv_path_SED=${_sed}
5868      break;
5869    fi
5870    while true; do
5871      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
5872      mv "$tmp/sed.tmp" "$tmp/sed.in"
5873      cp "$tmp/sed.in" "$tmp/sed.nl"
5874      echo >>"$tmp/sed.nl"
5875      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
5876      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
5877      # 10000 chars as input seems more than enough
5878      test $_count -gt 10 && break
5879      _count=`expr $_count + 1`
5880      if test $_count -gt $_max; then
5881        _max=$_count
5882        lt_cv_path_SED=$_sed
5883      fi
5884    done
5885  done
5886  rm -rf "$tmp"
5887
5888fi
5889
5890echo "$as_me:$LINENO: result: $SED" >&5
5891echo "${ECHO_T}$SED" >&6
5892
5893echo "$as_me:$LINENO: checking whether ln -s works" >&5
5894echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5895LN_S=$as_ln_s
5896if test "$LN_S" = "ln -s"; then
5897  echo "$as_me:$LINENO: result: yes" >&5
5898echo "${ECHO_T}yes" >&6
5899else
5900  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5901echo "${ECHO_T}no, using $LN_S" >&6
5902fi
5903
5904echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5905echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5906if test "${lt_cv_deplibs_check_method+set}" = set; then
5907  echo $ECHO_N "(cached) $ECHO_C" >&6
5908else
5909  lt_cv_file_magic_cmd='$MAGIC_CMD'
5910lt_cv_file_magic_test_file=
5911lt_cv_deplibs_check_method='unknown'
5912# Need to set the preceding variable on all platforms that support
5913# interlibrary dependencies.
5914# 'none' -- dependencies not supported.
5915# `unknown' -- same as none, but documents that we really don't know.
5916# 'pass_all' -- all dependencies passed with no checks.
5917# 'test_compile' -- check by making test program.
5918# 'file_magic [[regex]]' -- check by looking for files in library path
5919# which responds to the $file_magic_cmd with a given egrep regex.
5920# If you have `file' or equivalent on your system and you're not sure
5921# whether `pass_all' will *always* work, you probably want this one.
5922
5923case $host_os in
5924aix4* | aix5*)
5925  lt_cv_deplibs_check_method=pass_all
5926  ;;
5927
5928beos*)
5929  lt_cv_deplibs_check_method=pass_all
5930  ;;
5931
5932bsdi4*)
5933  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5934  lt_cv_file_magic_cmd='/usr/bin/file -L'
5935  lt_cv_file_magic_test_file=/shlib/libc.so
5936  ;;
5937
5938cygwin* | mingw* | pw32*)
5939  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5940  lt_cv_file_magic_cmd='$OBJDUMP -f'
5941  ;;
5942
5943darwin* | rhapsody*)
5944  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5945  lt_cv_file_magic_cmd='/usr/bin/file -L'
5946  case "$host_os" in
5947  rhapsody* | darwin1.[012])
5948    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
5949    ;;
5950  *) # Darwin 1.3 on
5951    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5952    ;;
5953  esac
5954  ;;
5955
5956freebsd*)
5957  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5958    case $host_cpu in
5959    i*86 )
5960      # Not sure whether the presence of OpenBSD here was a mistake.
5961      # Let's accept both of them until this is cleared up.
5962      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5963      lt_cv_file_magic_cmd=/usr/bin/file
5964      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5965      ;;
5966    esac
5967  else
5968    lt_cv_deplibs_check_method=pass_all
5969  fi
5970  ;;
5971
5972gnu*)
5973  lt_cv_deplibs_check_method=pass_all
5974  ;;
5975
5976hpux10.20* | hpux11*)
5977  lt_cv_file_magic_cmd=/usr/bin/file
5978  if test "$host_cpu" = ia64; then
5979    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5980    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5981  else
5982    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5983    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5984  fi
5985  ;;
5986
5987irix5* | irix6* | nonstopux*)
5988  case $host_os in
5989  irix5* | nonstopux*)
5990    # this will be overridden with pass_all, but let us keep it just in case
5991    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5992    ;;
5993  *)
5994    case $LD in
5995    *-32|*"-32 ") libmagic=32-bit;;
5996    *-n32|*"-n32 ") libmagic=N32;;
5997    *-64|*"-64 ") libmagic=64-bit;;
5998    *) libmagic=never-match;;
5999    esac
6000    # this will be overridden with pass_all, but let us keep it just in case
6001    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
6002    ;;
6003  esac
6004  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
6005  lt_cv_deplibs_check_method=pass_all
6006  ;;
6007
6008# This must be Linux ELF.
6009linux*)
6010  case $host_cpu in
6011  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64* )
6012    lt_cv_deplibs_check_method=pass_all ;;
6013  *)
6014    # glibc up to 2.1.1 does not perform some relocations on ARM
6015    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
6016  esac
6017  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
6018  ;;
6019
6020netbsd*)
6021  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6022    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
6023  else
6024    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
6025  fi
6026  ;;
6027
6028newos6*)
6029  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6030  lt_cv_file_magic_cmd=/usr/bin/file
6031  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6032  ;;
6033
6034nto-qnx)
6035  lt_cv_deplibs_check_method=unknown
6036  ;;
6037
6038openbsd*)
6039  lt_cv_file_magic_cmd=/usr/bin/file
6040  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6041  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6042    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6043  else
6044    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6045  fi
6046  ;;
6047
6048osf3* | osf4* | osf5*)
6049  # this will be overridden with pass_all, but let us keep it just in case
6050  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
6051  lt_cv_file_magic_test_file=/shlib/libc.so
6052  lt_cv_deplibs_check_method=pass_all
6053  ;;
6054
6055sco3.2v5*)
6056  lt_cv_deplibs_check_method=pass_all
6057  ;;
6058
6059solaris*)
6060  lt_cv_deplibs_check_method=pass_all
6061  lt_cv_file_magic_test_file=/lib/libc.so
6062  ;;
6063
6064sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6065  case $host_vendor in
6066  motorola)
6067    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]'
6068    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6069    ;;
6070  ncr)
6071    lt_cv_deplibs_check_method=pass_all
6072    ;;
6073  sequent)
6074    lt_cv_file_magic_cmd='/bin/file'
6075    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6076    ;;
6077  sni)
6078    lt_cv_file_magic_cmd='/bin/file'
6079    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6080    lt_cv_file_magic_test_file=/lib/libc.so
6081    ;;
6082  esac
6083  ;;
6084
6085sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6086  lt_cv_deplibs_check_method=pass_all
6087  ;;
6088esac
6089
6090fi
6091echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6092echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6093file_magic_cmd=$lt_cv_file_magic_cmd
6094deplibs_check_method=$lt_cv_deplibs_check_method
6095test -z "$deplibs_check_method" && deplibs_check_method=unknown
6096
6097
6098# If no C compiler was specified, use CC.
6099LTCC=${LTCC-"$CC"}
6100
6101# Allow CC to be a program name with arguments.
6102set dummy $CC
6103compiler="$2"
6104
6105
6106# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6107if test "${enable_libtool_lock+set}" = set; then
6108  enableval="$enable_libtool_lock"
6109
6110fi;
6111test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6112
6113# Some flags need to be propagated to the compiler or linker for good
6114# libtool support.
6115case $host in
6116ia64-*-hpux*)
6117  # Find out which ABI we are using.
6118  echo 'int i;' > conftest.$ac_ext
6119  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6120  (eval $ac_compile) 2>&5
6121  ac_status=$?
6122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123  (exit $ac_status); }; then
6124    case `/usr/bin/file conftest.$ac_objext` in
6125    *ELF-32*)
6126      HPUX_IA64_MODE="32"
6127      ;;
6128    *ELF-64*)
6129      HPUX_IA64_MODE="64"
6130      ;;
6131    esac
6132  fi
6133  rm -rf conftest*
6134  ;;
6135*-*-irix6*)
6136  # Find out which ABI we are using.
6137  echo '#line 6137 "configure"' > conftest.$ac_ext
6138  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139  (eval $ac_compile) 2>&5
6140  ac_status=$?
6141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142  (exit $ac_status); }; then
6143    case `/usr/bin/file conftest.$ac_objext` in
6144    *32-bit*)
6145      LD="${LD-ld} -32"
6146      ;;
6147    *N32*)
6148      LD="${LD-ld} -n32"
6149      ;;
6150    *64-bit*)
6151      LD="${LD-ld} -64"
6152      ;;
6153    esac
6154  fi
6155  rm -rf conftest*
6156  ;;
6157
6158*-*-linux*)
6159  # Test if the compiler is 64bit
6160  echo 'int i;' > conftest.$ac_ext
6161  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162  (eval $ac_compile) 2>&5
6163  ac_status=$?
6164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165  (exit $ac_status); }; then
6166    case `/usr/bin/file conftest.$ac_objext` in
6167    *"ELF 32"*)
6168      LINUX_64_MODE="32"
6169      ;;
6170    *"ELF 64"*)
6171      LINUX_64_MODE="64"
6172      ;;
6173    esac
6174  fi
6175  rm -rf conftest*
6176  ;;
6177
6178*-*-sco3.2v5*)
6179  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6180  SAVE_CFLAGS="$CFLAGS"
6181  CFLAGS="$CFLAGS -belf"
6182  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6183echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6184if test "${lt_cv_cc_needs_belf+set}" = set; then
6185  echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187  ac_ext=c
6188ac_cpp='$CPP $CPPFLAGS'
6189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193     cat >conftest.$ac_ext <<_ACEOF
6194#line $LINENO "configure"
6195/* confdefs.h.  */
6196_ACEOF
6197cat confdefs.h >>conftest.$ac_ext
6198cat >>conftest.$ac_ext <<_ACEOF
6199/* end confdefs.h.  */
6200
6201int
6202main ()
6203{
6204
6205  ;
6206  return 0;
6207}
6208_ACEOF
6209rm -f conftest.$ac_objext conftest$ac_exeext
6210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6211  (eval $ac_link) 2>&5
6212  ac_status=$?
6213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214  (exit $ac_status); } &&
6215         { ac_try='test -s conftest$ac_exeext'
6216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6217  (eval $ac_try) 2>&5
6218  ac_status=$?
6219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); }; }; then
6221  lt_cv_cc_needs_belf=yes
6222else
6223  echo "$as_me: failed program was:" >&5
6224sed 's/^/| /' conftest.$ac_ext >&5
6225
6226lt_cv_cc_needs_belf=no
6227fi
6228rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6229     ac_ext=c
6230ac_cpp='$CPP $CPPFLAGS'
6231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233ac_compiler_gnu=$ac_cv_c_compiler_gnu
6234
6235fi
6236echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6237echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6238  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6239    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6240    CFLAGS="$SAVE_CFLAGS"
6241  fi
6242  ;;
6243
6244esac
6245
6246need_locks="$enable_libtool_lock"
6247
6248
6249
6250echo "$as_me:$LINENO: checking for egrep" >&5
6251echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6252if test "${ac_cv_prog_egrep+set}" = set; then
6253  echo $ECHO_N "(cached) $ECHO_C" >&6
6254else
6255  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6256    then ac_cv_prog_egrep='grep -E'
6257    else ac_cv_prog_egrep='egrep'
6258    fi
6259fi
6260echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6261echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6262 EGREP=$ac_cv_prog_egrep
6263
6264
6265echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6266echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6267if test "${ac_cv_header_stdc+set}" = set; then
6268  echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270  cat >conftest.$ac_ext <<_ACEOF
6271#line $LINENO "configure"
6272/* confdefs.h.  */
6273_ACEOF
6274cat confdefs.h >>conftest.$ac_ext
6275cat >>conftest.$ac_ext <<_ACEOF
6276/* end confdefs.h.  */
6277#include <stdlib.h>
6278#include <stdarg.h>
6279#include <string.h>
6280#include <float.h>
6281
6282int
6283main ()
6284{
6285
6286  ;
6287  return 0;
6288}
6289_ACEOF
6290rm -f conftest.$ac_objext
6291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292  (eval $ac_compile) 2>&5
6293  ac_status=$?
6294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295  (exit $ac_status); } &&
6296         { ac_try='test -s conftest.$ac_objext'
6297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298  (eval $ac_try) 2>&5
6299  ac_status=$?
6300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301  (exit $ac_status); }; }; then
6302  ac_cv_header_stdc=yes
6303else
6304  echo "$as_me: failed program was:" >&5
6305sed 's/^/| /' conftest.$ac_ext >&5
6306
6307ac_cv_header_stdc=no
6308fi
6309rm -f conftest.$ac_objext conftest.$ac_ext
6310
6311if test $ac_cv_header_stdc = yes; then
6312  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6313  cat >conftest.$ac_ext <<_ACEOF
6314#line $LINENO "configure"
6315/* confdefs.h.  */
6316_ACEOF
6317cat confdefs.h >>conftest.$ac_ext
6318cat >>conftest.$ac_ext <<_ACEOF
6319/* end confdefs.h.  */
6320#include <string.h>
6321
6322_ACEOF
6323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6324  $EGREP "memchr" >/dev/null 2>&1; then
6325  :
6326else
6327  ac_cv_header_stdc=no
6328fi
6329rm -f conftest*
6330
6331fi
6332
6333if test $ac_cv_header_stdc = yes; then
6334  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6335  cat >conftest.$ac_ext <<_ACEOF
6336#line $LINENO "configure"
6337/* confdefs.h.  */
6338_ACEOF
6339cat confdefs.h >>conftest.$ac_ext
6340cat >>conftest.$ac_ext <<_ACEOF
6341/* end confdefs.h.  */
6342#include <stdlib.h>
6343
6344_ACEOF
6345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346  $EGREP "free" >/dev/null 2>&1; then
6347  :
6348else
6349  ac_cv_header_stdc=no
6350fi
6351rm -f conftest*
6352
6353fi
6354
6355if test $ac_cv_header_stdc = yes; then
6356  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6357  if test "$cross_compiling" = yes; then
6358  :
6359else
6360  cat >conftest.$ac_ext <<_ACEOF
6361#line $LINENO "configure"
6362/* confdefs.h.  */
6363_ACEOF
6364cat confdefs.h >>conftest.$ac_ext
6365cat >>conftest.$ac_ext <<_ACEOF
6366/* end confdefs.h.  */
6367#include <ctype.h>
6368#if ((' ' & 0x0FF) == 0x020)
6369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6371#else
6372# define ISLOWER(c) \
6373                   (('a' <= (c) && (c) <= 'i') \
6374                     || ('j' <= (c) && (c) <= 'r') \
6375                     || ('s' <= (c) && (c) <= 'z'))
6376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6377#endif
6378
6379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6380int
6381main ()
6382{
6383  int i;
6384  for (i = 0; i < 256; i++)
6385    if (XOR (islower (i), ISLOWER (i))
6386        || toupper (i) != TOUPPER (i))
6387      exit(2);
6388  exit (0);
6389}
6390_ACEOF
6391rm -f conftest$ac_exeext
6392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6393  (eval $ac_link) 2>&5
6394  ac_status=$?
6395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398  (eval $ac_try) 2>&5
6399  ac_status=$?
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); }; }; then
6402  :
6403else
6404  echo "$as_me: program exited with status $ac_status" >&5
6405echo "$as_me: failed program was:" >&5
6406sed 's/^/| /' conftest.$ac_ext >&5
6407
6408( exit $ac_status )
6409ac_cv_header_stdc=no
6410fi
6411rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6412fi
6413fi
6414fi
6415echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6416echo "${ECHO_T}$ac_cv_header_stdc" >&6
6417if test $ac_cv_header_stdc = yes; then
6418
6419cat >>confdefs.h <<\_ACEOF
6420#define STDC_HEADERS 1
6421_ACEOF
6422
6423fi
6424
6425# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6436                  inttypes.h stdint.h unistd.h
6437do
6438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6439echo "$as_me:$LINENO: checking for $ac_header" >&5
6440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6441if eval "test \"\${$as_ac_Header+set}\" = set"; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444  cat >conftest.$ac_ext <<_ACEOF
6445#line $LINENO "configure"
6446/* confdefs.h.  */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h.  */
6451$ac_includes_default
6452
6453#include <$ac_header>
6454_ACEOF
6455rm -f conftest.$ac_objext
6456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457  (eval $ac_compile) 2>&5
6458  ac_status=$?
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); } &&
6461         { ac_try='test -s conftest.$ac_objext'
6462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463  (eval $ac_try) 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); }; }; then
6467  eval "$as_ac_Header=yes"
6468else
6469  echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472eval "$as_ac_Header=no"
6473fi
6474rm -f conftest.$ac_objext conftest.$ac_ext
6475fi
6476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6478if test `eval echo '${'$as_ac_Header'}'` = yes; then
6479  cat >>confdefs.h <<_ACEOF
6480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6481_ACEOF
6482
6483fi
6484
6485done
6486
6487
6488
6489for ac_header in dlfcn.h
6490do
6491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6492if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493  echo "$as_me:$LINENO: checking for $ac_header" >&5
6494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6495if eval "test \"\${$as_ac_Header+set}\" = set"; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497fi
6498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500else
6501  # Is the header compilable?
6502echo "$as_me:$LINENO: checking $ac_header usability" >&5
6503echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6504cat >conftest.$ac_ext <<_ACEOF
6505#line $LINENO "configure"
6506/* confdefs.h.  */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h.  */
6511$ac_includes_default
6512#include <$ac_header>
6513_ACEOF
6514rm -f conftest.$ac_objext
6515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6516  (eval $ac_compile) 2>&5
6517  ac_status=$?
6518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519  (exit $ac_status); } &&
6520         { ac_try='test -s conftest.$ac_objext'
6521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522  (eval $ac_try) 2>&5
6523  ac_status=$?
6524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525  (exit $ac_status); }; }; then
6526  ac_header_compiler=yes
6527else
6528  echo "$as_me: failed program was:" >&5
6529sed 's/^/| /' conftest.$ac_ext >&5
6530
6531ac_header_compiler=no
6532fi
6533rm -f conftest.$ac_objext conftest.$ac_ext
6534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6535echo "${ECHO_T}$ac_header_compiler" >&6
6536
6537# Is the header present?
6538echo "$as_me:$LINENO: checking $ac_header presence" >&5
6539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6540cat >conftest.$ac_ext <<_ACEOF
6541#line $LINENO "configure"
6542/* confdefs.h.  */
6543_ACEOF
6544cat confdefs.h >>conftest.$ac_ext
6545cat >>conftest.$ac_ext <<_ACEOF
6546/* end confdefs.h.  */
6547#include <$ac_header>
6548_ACEOF
6549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6550  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6551  ac_status=$?
6552  grep -v '^ *+' conftest.er1 >conftest.err
6553  rm -f conftest.er1
6554  cat conftest.err >&5
6555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556  (exit $ac_status); } >/dev/null; then
6557  if test -s conftest.err; then
6558    ac_cpp_err=$ac_c_preproc_warn_flag
6559  else
6560    ac_cpp_err=
6561  fi
6562else
6563  ac_cpp_err=yes
6564fi
6565if test -z "$ac_cpp_err"; then
6566  ac_header_preproc=yes
6567else
6568  echo "$as_me: failed program was:" >&5
6569sed 's/^/| /' conftest.$ac_ext >&5
6570
6571  ac_header_preproc=no
6572fi
6573rm -f conftest.err conftest.$ac_ext
6574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6575echo "${ECHO_T}$ac_header_preproc" >&6
6576
6577# So?  What about this header?
6578case $ac_header_compiler:$ac_header_preproc in
6579  yes:no )
6580    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6582    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6584    (
6585      cat <<\_ASBOX
6586## ------------------------------------ ##
6587## Report this to bug-autoconf@gnu.org. ##
6588## ------------------------------------ ##
6589_ASBOX
6590    ) |
6591      sed "s/^/$as_me: WARNING:     /" >&2
6592    ;;
6593  no:yes )
6594    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6595echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6596    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6597echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6598    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6600    (
6601      cat <<\_ASBOX
6602## ------------------------------------ ##
6603## Report this to bug-autoconf@gnu.org. ##
6604## ------------------------------------ ##
6605_ASBOX
6606    ) |
6607      sed "s/^/$as_me: WARNING:     /" >&2
6608    ;;
6609esac
6610echo "$as_me:$LINENO: checking for $ac_header" >&5
6611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6612if eval "test \"\${$as_ac_Header+set}\" = set"; then
6613  echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615  eval "$as_ac_Header=$ac_header_preproc"
6616fi
6617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6619
6620fi
6621if test `eval echo '${'$as_ac_Header'}'` = yes; then
6622  cat >>confdefs.h <<_ACEOF
6623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6624_ACEOF
6625
6626fi
6627
6628done
6629
6630
6631# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6632
6633# find the maximum length of command line arguments
6634echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6635echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6636if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6637  echo $ECHO_N "(cached) $ECHO_C" >&6
6638else
6639    i=0
6640  testring="ABCD"
6641
6642  case $host_os in
6643  msdosdjgpp*)
6644    # On DJGPP, this test can blow up pretty badly due to problems in libc
6645    # (any single argument exceeding 2000 bytes causes a buffer overrun
6646    # during glob expansion).  Even if it were fixed, the result of this
6647    # check would be larger than it should be.
6648    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6649    ;;
6650
6651  gnu*)
6652    # Under GNU Hurd, this test is not required because there is
6653    # no limit to the length of command line arguments.
6654    # Libtool will interpret -1 as no limit whatsoever
6655    lt_cv_sys_max_cmd_len=-1;
6656    ;;
6657
6658  *)
6659    # If test is not a shell built-in, we'll probably end up computing a
6660    # maximum length that is only half of the actual maximum length, but
6661    # we can't tell.
6662    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6663	       = "XX$testring") >/dev/null 2>&1 &&
6664	    new_result=`expr "X$testring" : ".*" 2>&1` &&
6665	    lt_cv_sys_max_cmd_len=$new_result &&
6666	    test $i != 17 # 1/2 MB should be enough
6667    do
6668      i=`expr $i + 1`
6669      testring=$testring$testring
6670    done
6671    testring=
6672    # Add a significant safety factor because C++ compilers can tack on massive
6673    # amounts of additional arguments before passing them to the linker.
6674    # It appears as though 1/2 is a usable value.
6675    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6676    ;;
6677  esac
6678
6679fi
6680
6681if test -n $lt_cv_sys_max_cmd_len ; then
6682  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6683echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6684else
6685  echo "$as_me:$LINENO: result: none" >&5
6686echo "${ECHO_T}none" >&6
6687fi
6688
6689
6690
6691
6692# Check for command to grab the raw symbol name followed by C symbol from nm.
6693echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6694echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6695if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6696  echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698
6699# These are sane defaults that work on at least a few old systems.
6700# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6701
6702# Character class describing NM global symbol codes.
6703symcode='[BCDEGRST]'
6704
6705# Regexp to match symbols that can be accessed directly from C.
6706sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6707
6708# Transform the above into a raw symbol and a C symbol.
6709symxfrm='\1 \2\3 \3'
6710
6711# Transform an extracted symbol line into a proper C declaration
6712lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6713
6714# Transform an extracted symbol line into symbol name and symbol address
6715lt_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'"
6716
6717# Define system-specific variables.
6718case $host_os in
6719aix*)
6720  symcode='[BCDT]'
6721  ;;
6722cygwin* | mingw* | pw32*)
6723  symcode='[ABCDGISTW]'
6724  ;;
6725hpux*) # Its linker distinguishes data from code symbols
6726  if test "$host_cpu" = ia64; then
6727    symcode='[ABCDEGRST]'
6728  fi
6729  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6730  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'"
6731  ;;
6732irix* | nonstopux*)
6733  symcode='[BCDEGRST]'
6734  ;;
6735solaris* | sysv5*)
6736  symcode='[BDT]'
6737  ;;
6738sysv4)
6739  symcode='[DFNSTU]'
6740  ;;
6741esac
6742
6743# Handle CRLF in mingw tool chain
6744opt_cr=
6745case $host_os in
6746mingw*)
6747  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6748  ;;
6749esac
6750
6751# If we're using GNU nm, then use its standard symbol codes.
6752if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
6753  symcode='[ABCDGISTW]'
6754fi
6755
6756# Try without a prefix undercore, then with it.
6757for ac_symprfx in "" "_"; do
6758
6759  # Write the raw and C identifiers.
6760  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6761
6762  # Check to see that the pipe works correctly.
6763  pipe_works=no
6764
6765  rm -f conftest*
6766  cat > conftest.$ac_ext <<EOF
6767#ifdef __cplusplus
6768extern "C" {
6769#endif
6770char nm_test_var;
6771void nm_test_func(){}
6772#ifdef __cplusplus
6773}
6774#endif
6775int main(){nm_test_var='a';nm_test_func();return(0);}
6776EOF
6777
6778  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779  (eval $ac_compile) 2>&5
6780  ac_status=$?
6781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782  (exit $ac_status); }; then
6783    # Now try to grab the symbols.
6784    nlist=conftest.nm
6785    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6786  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6787  ac_status=$?
6788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789  (exit $ac_status); } && test -s "$nlist"; then
6790      # Try sorting and uniquifying the output.
6791      if sort "$nlist" | uniq > "$nlist"T; then
6792	mv -f "$nlist"T "$nlist"
6793      else
6794	rm -f "$nlist"T
6795      fi
6796
6797      # Make sure that we snagged all the symbols we need.
6798      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
6799	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
6800	  cat <<EOF > conftest.$ac_ext
6801#ifdef __cplusplus
6802extern "C" {
6803#endif
6804
6805EOF
6806	  # Now generate the symbol file.
6807	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6808
6809	  cat <<EOF >> conftest.$ac_ext
6810#if defined (__STDC__) && __STDC__
6811# define lt_ptr_t void *
6812#else
6813# define lt_ptr_t char *
6814# define const
6815#endif
6816
6817/* The mapping between symbol names and symbols. */
6818const struct {
6819  const char *name;
6820  lt_ptr_t address;
6821}
6822lt_preloaded_symbols[] =
6823{
6824EOF
6825	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6826	  cat <<\EOF >> conftest.$ac_ext
6827  {0, (lt_ptr_t) 0}
6828};
6829
6830#ifdef __cplusplus
6831}
6832#endif
6833EOF
6834	  # Now try linking the two files.
6835	  mv conftest.$ac_objext conftstm.$ac_objext
6836	  lt_save_LIBS="$LIBS"
6837	  lt_save_CFLAGS="$CFLAGS"
6838	  LIBS="conftstm.$ac_objext"
6839	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6840	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6841  (eval $ac_link) 2>&5
6842  ac_status=$?
6843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6845	    pipe_works=yes
6846	  fi
6847	  LIBS="$lt_save_LIBS"
6848	  CFLAGS="$lt_save_CFLAGS"
6849	else
6850	  echo "cannot find nm_test_func in $nlist" >&5
6851	fi
6852      else
6853	echo "cannot find nm_test_var in $nlist" >&5
6854      fi
6855    else
6856      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6857    fi
6858  else
6859    echo "$progname: failed program was:" >&5
6860    cat conftest.$ac_ext >&5
6861  fi
6862  rm -f conftest* conftst*
6863
6864  # Do not use the global_symbol_pipe unless it works.
6865  if test "$pipe_works" = yes; then
6866    break
6867  else
6868    lt_cv_sys_global_symbol_pipe=
6869  fi
6870done
6871
6872fi
6873
6874if test -z "$lt_cv_sys_global_symbol_pipe"; then
6875  lt_cv_sys_global_symbol_to_cdecl=
6876fi
6877if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6878  echo "$as_me:$LINENO: result: failed" >&5
6879echo "${ECHO_T}failed" >&6
6880else
6881  echo "$as_me:$LINENO: result: ok" >&5
6882echo "${ECHO_T}ok" >&6
6883fi
6884
6885echo "$as_me:$LINENO: checking for objdir" >&5
6886echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6887if test "${lt_cv_objdir+set}" = set; then
6888  echo $ECHO_N "(cached) $ECHO_C" >&6
6889else
6890  rm -f .libs 2>/dev/null
6891mkdir .libs 2>/dev/null
6892if test -d .libs; then
6893  lt_cv_objdir=.libs
6894else
6895  # MS-DOS does not allow filenames that begin with a dot.
6896  lt_cv_objdir=_libs
6897fi
6898rmdir .libs 2>/dev/null
6899fi
6900echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6901echo "${ECHO_T}$lt_cv_objdir" >&6
6902objdir=$lt_cv_objdir
6903
6904
6905
6906
6907
6908case $host_os in
6909aix3*)
6910  # AIX sometimes has problems with the GCC collect2 program.  For some
6911  # reason, if we set the COLLECT_NAMES environment variable, the problems
6912  # vanish in a puff of smoke.
6913  if test "X${COLLECT_NAMES+set}" != Xset; then
6914    COLLECT_NAMES=
6915    export COLLECT_NAMES
6916  fi
6917  ;;
6918esac
6919
6920# Sed substitution that helps us do robust quoting.  It backslashifies
6921# metacharacters that are still active within double-quoted strings.
6922Xsed='sed -e s/^X//'
6923sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6924
6925# Same as above, but do not quote variable references.
6926double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6927
6928# Sed substitution to delay expansion of an escaped shell variable in a
6929# double_quote_subst'ed string.
6930delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6931
6932# Sed substitution to avoid accidental globbing in evaled expressions
6933no_glob_subst='s/\*/\\\*/g'
6934
6935# Constants:
6936rm="rm -f"
6937
6938# Global variables:
6939default_ofile=libtool
6940can_build_shared=yes
6941
6942# All known linkers require a `.a' archive for static linking (except M$VC,
6943# which needs '.lib').
6944libext=a
6945ltmain="$ac_aux_dir/ltmain.sh"
6946ofile="$default_ofile"
6947with_gnu_ld="$lt_cv_prog_gnu_ld"
6948
6949if test -n "$ac_tool_prefix"; then
6950  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6951set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6952echo "$as_me:$LINENO: checking for $ac_word" >&5
6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6954if test "${ac_cv_prog_RANLIB+set}" = set; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957  if test -n "$RANLIB"; then
6958  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6959else
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963  IFS=$as_save_IFS
6964  test -z "$as_dir" && as_dir=.
6965  for ac_exec_ext in '' $ac_executable_extensions; do
6966  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969    break 2
6970  fi
6971done
6972done
6973
6974fi
6975fi
6976RANLIB=$ac_cv_prog_RANLIB
6977if test -n "$RANLIB"; then
6978  echo "$as_me:$LINENO: result: $RANLIB" >&5
6979echo "${ECHO_T}$RANLIB" >&6
6980else
6981  echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6
6983fi
6984
6985fi
6986if test -z "$ac_cv_prog_RANLIB"; then
6987  ac_ct_RANLIB=$RANLIB
6988  # Extract the first word of "ranlib", so it can be a program name with args.
6989set dummy ranlib; ac_word=$2
6990echo "$as_me:$LINENO: checking for $ac_word" >&5
6991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6992if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6993  echo $ECHO_N "(cached) $ECHO_C" >&6
6994else
6995  if test -n "$ac_ct_RANLIB"; then
6996  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001  IFS=$as_save_IFS
7002  test -z "$as_dir" && as_dir=.
7003  for ac_exec_ext in '' $ac_executable_extensions; do
7004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7005    ac_cv_prog_ac_ct_RANLIB="ranlib"
7006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007    break 2
7008  fi
7009done
7010done
7011
7012  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7013fi
7014fi
7015ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7016if test -n "$ac_ct_RANLIB"; then
7017  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7018echo "${ECHO_T}$ac_ct_RANLIB" >&6
7019else
7020  echo "$as_me:$LINENO: result: no" >&5
7021echo "${ECHO_T}no" >&6
7022fi
7023
7024  RANLIB=$ac_ct_RANLIB
7025else
7026  RANLIB="$ac_cv_prog_RANLIB"
7027fi
7028
7029if test -n "$ac_tool_prefix"; then
7030  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7031set dummy ${ac_tool_prefix}strip; ac_word=$2
7032echo "$as_me:$LINENO: checking for $ac_word" >&5
7033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7034if test "${ac_cv_prog_STRIP+set}" = set; then
7035  echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037  if test -n "$STRIP"; then
7038  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043  IFS=$as_save_IFS
7044  test -z "$as_dir" && as_dir=.
7045  for ac_exec_ext in '' $ac_executable_extensions; do
7046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7049    break 2
7050  fi
7051done
7052done
7053
7054fi
7055fi
7056STRIP=$ac_cv_prog_STRIP
7057if test -n "$STRIP"; then
7058  echo "$as_me:$LINENO: result: $STRIP" >&5
7059echo "${ECHO_T}$STRIP" >&6
7060else
7061  echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6
7063fi
7064
7065fi
7066if test -z "$ac_cv_prog_STRIP"; then
7067  ac_ct_STRIP=$STRIP
7068  # Extract the first word of "strip", so it can be a program name with args.
7069set dummy strip; ac_word=$2
7070echo "$as_me:$LINENO: checking for $ac_word" >&5
7071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7072if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7073  echo $ECHO_N "(cached) $ECHO_C" >&6
7074else
7075  if test -n "$ac_ct_STRIP"; then
7076  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081  IFS=$as_save_IFS
7082  test -z "$as_dir" && as_dir=.
7083  for ac_exec_ext in '' $ac_executable_extensions; do
7084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085    ac_cv_prog_ac_ct_STRIP="strip"
7086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087    break 2
7088  fi
7089done
7090done
7091
7092  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7093fi
7094fi
7095ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7096if test -n "$ac_ct_STRIP"; then
7097  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7098echo "${ECHO_T}$ac_ct_STRIP" >&6
7099else
7100  echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
7102fi
7103
7104  STRIP=$ac_ct_STRIP
7105else
7106  STRIP="$ac_cv_prog_STRIP"
7107fi
7108
7109
7110old_CC="$CC"
7111old_CFLAGS="$CFLAGS"
7112
7113# Set sane defaults for various variables
7114test -z "$AR" && AR=ar
7115test -z "$AR_FLAGS" && AR_FLAGS=cru
7116test -z "$AS" && AS=as
7117test -z "$CC" && CC=cc
7118test -z "$LTCC" && LTCC=$CC
7119test -z "$DLLTOOL" && DLLTOOL=dlltool
7120test -z "$LD" && LD=ld
7121test -z "$LN_S" && LN_S="ln -s"
7122test -z "$MAGIC_CMD" && MAGIC_CMD=file
7123test -z "$NM" && NM=nm
7124test -z "$SED" && SED=sed
7125test -z "$OBJDUMP" && OBJDUMP=objdump
7126test -z "$RANLIB" && RANLIB=:
7127test -z "$STRIP" && STRIP=:
7128test -z "$ac_objext" && ac_objext=o
7129
7130# Determine commands to create old-style static archives.
7131old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7132old_postinstall_cmds='chmod 644 $oldlib'
7133old_postuninstall_cmds=
7134
7135if test -n "$RANLIB"; then
7136  case $host_os in
7137  openbsd*)
7138    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7139    ;;
7140  *)
7141    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7142    ;;
7143  esac
7144  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7145fi
7146
7147# Only perform the check for file, if the check method requires it
7148case $deplibs_check_method in
7149file_magic*)
7150  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7151    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7152echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7153if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7154  echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156  case $MAGIC_CMD in
7157[\\/*] |  ?:[\\/]*)
7158  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7159  ;;
7160*)
7161  lt_save_MAGIC_CMD="$MAGIC_CMD"
7162  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7163  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7164  for ac_dir in $ac_dummy; do
7165    IFS="$lt_save_ifs"
7166    test -z "$ac_dir" && ac_dir=.
7167    if test -f $ac_dir/${ac_tool_prefix}file; then
7168      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7169      if test -n "$file_magic_test_file"; then
7170	case $deplibs_check_method in
7171	"file_magic "*)
7172	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7173	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7174	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7175	    egrep "$file_magic_regex" > /dev/null; then
7176	    :
7177	  else
7178	    cat <<EOF 1>&2
7179
7180*** Warning: the command libtool uses to detect shared libraries,
7181*** $file_magic_cmd, produces output that libtool cannot recognize.
7182*** The result is that libtool may fail to recognize shared libraries
7183*** as such.  This will affect the creation of libtool libraries that
7184*** depend on shared libraries, but programs linked with such libtool
7185*** libraries will work regardless of this problem.  Nevertheless, you
7186*** may want to report the problem to your system manager and/or to
7187*** bug-libtool@gnu.org
7188
7189EOF
7190	  fi ;;
7191	esac
7192      fi
7193      break
7194    fi
7195  done
7196  IFS="$lt_save_ifs"
7197  MAGIC_CMD="$lt_save_MAGIC_CMD"
7198  ;;
7199esac
7200fi
7201
7202MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7203if test -n "$MAGIC_CMD"; then
7204  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7205echo "${ECHO_T}$MAGIC_CMD" >&6
7206else
7207  echo "$as_me:$LINENO: result: no" >&5
7208echo "${ECHO_T}no" >&6
7209fi
7210
7211if test -z "$lt_cv_path_MAGIC_CMD"; then
7212  if test -n "$ac_tool_prefix"; then
7213    echo "$as_me:$LINENO: checking for file" >&5
7214echo $ECHO_N "checking for file... $ECHO_C" >&6
7215if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7216  echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218  case $MAGIC_CMD in
7219[\\/*] |  ?:[\\/]*)
7220  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7221  ;;
7222*)
7223  lt_save_MAGIC_CMD="$MAGIC_CMD"
7224  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7225  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7226  for ac_dir in $ac_dummy; do
7227    IFS="$lt_save_ifs"
7228    test -z "$ac_dir" && ac_dir=.
7229    if test -f $ac_dir/file; then
7230      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7231      if test -n "$file_magic_test_file"; then
7232	case $deplibs_check_method in
7233	"file_magic "*)
7234	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7235	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7236	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7237	    egrep "$file_magic_regex" > /dev/null; then
7238	    :
7239	  else
7240	    cat <<EOF 1>&2
7241
7242*** Warning: the command libtool uses to detect shared libraries,
7243*** $file_magic_cmd, produces output that libtool cannot recognize.
7244*** The result is that libtool may fail to recognize shared libraries
7245*** as such.  This will affect the creation of libtool libraries that
7246*** depend on shared libraries, but programs linked with such libtool
7247*** libraries will work regardless of this problem.  Nevertheless, you
7248*** may want to report the problem to your system manager and/or to
7249*** bug-libtool@gnu.org
7250
7251EOF
7252	  fi ;;
7253	esac
7254      fi
7255      break
7256    fi
7257  done
7258  IFS="$lt_save_ifs"
7259  MAGIC_CMD="$lt_save_MAGIC_CMD"
7260  ;;
7261esac
7262fi
7263
7264MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7265if test -n "$MAGIC_CMD"; then
7266  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7267echo "${ECHO_T}$MAGIC_CMD" >&6
7268else
7269  echo "$as_me:$LINENO: result: no" >&5
7270echo "${ECHO_T}no" >&6
7271fi
7272
7273  else
7274    MAGIC_CMD=:
7275  fi
7276fi
7277
7278  fi
7279  ;;
7280esac
7281
7282enable_dlopen=no
7283enable_win32_dll=no
7284
7285# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7286if test "${enable_libtool_lock+set}" = set; then
7287  enableval="$enable_libtool_lock"
7288
7289fi;
7290test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7291
7292
7293# Check whether --with-pic or --without-pic was given.
7294if test "${with_pic+set}" = set; then
7295  withval="$with_pic"
7296  pic_mode="$withval"
7297else
7298  pic_mode=default
7299fi;
7300test -z "$pic_mode" && pic_mode=default
7301
7302# Use C for the default configuration in the libtool script
7303tagname=
7304lt_save_CC="$CC"
7305ac_ext=c
7306ac_cpp='$CPP $CPPFLAGS'
7307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7309ac_compiler_gnu=$ac_cv_c_compiler_gnu
7310
7311
7312# Source file extension for C test sources.
7313ac_ext=c
7314
7315# Object file extension for compiled C test sources.
7316objext=o
7317objext=$objext
7318
7319# Code to be used in simple compile tests
7320lt_simple_compile_test_code="int some_variable = 0;"
7321
7322# Code to be used in simple link tests
7323lt_simple_link_test_code='main(){return(0);}'
7324
7325
7326# If no C compiler was specified, use CC.
7327LTCC=${LTCC-"$CC"}
7328
7329# Allow CC to be a program name with arguments.
7330set dummy $CC
7331compiler="$2"
7332
7333
7334#
7335# Check for any special shared library compilation flags.
7336#
7337lt_prog_cc_shlib=
7338if test "$GCC" = no; then
7339  case $host_os in
7340  sco3.2v5*)
7341    lt_prog_cc_shlib='-belf'
7342    ;;
7343  esac
7344fi
7345if test -n "$lt_prog_cc_shlib"; then
7346  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7347echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7348  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
7349  else
7350    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7351echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7352    lt_cv_prog_cc_can_build_shared=no
7353  fi
7354fi
7355
7356
7357#
7358# Check to make sure the static flag actually works.
7359#
7360echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7361echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7362if test "${lt_prog_compiler_static_works+set}" = set; then
7363  echo $ECHO_N "(cached) $ECHO_C" >&6
7364else
7365  lt_prog_compiler_static_works=no
7366   save_LDFLAGS="$LDFLAGS"
7367   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7368   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7369   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7370     # The compiler can only warn and ignore the option if not recognized
7371     # So say no if there are warnings
7372     if test -s conftest.err; then
7373       # Append any errors to the config.log.
7374       cat conftest.err 1>&5
7375     else
7376       lt_prog_compiler_static_works=yes
7377     fi
7378   fi
7379   $rm conftest*
7380   LDFLAGS="$save_LDFLAGS"
7381
7382fi
7383echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7384echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7385
7386if test x"$lt_prog_compiler_static_works" = xyes; then
7387    :
7388else
7389    lt_prog_compiler_static=
7390fi
7391
7392
7393
7394
7395lt_prog_compiler_no_builtin_flag=
7396
7397if test "$GCC" = yes; then
7398  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7399
7400  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7401echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7402if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7403  echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405  lt_cv_prog_compiler_rtti_exceptions=no
7406  ac_outfile=conftest.$ac_objext
7407   save_CFLAGS="$CFLAGS"
7408   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
7409   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7410   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
7411     # The compiler can only warn and ignore the option if not recognized
7412     # So say no if there are warnings
7413     if test -s conftest.err; then
7414       # Append any errors to the config.log.
7415       cat conftest.err 1>&5
7416     else
7417       lt_cv_prog_compiler_rtti_exceptions=yes
7418     fi
7419   fi
7420   $rm conftest*
7421   CFLAGS="$save_CFLAGS"
7422
7423fi
7424echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7425echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7426
7427if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7428    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7429else
7430    :
7431fi
7432
7433fi
7434
7435lt_prog_compiler_wl=
7436lt_prog_compiler_pic=
7437lt_prog_compiler_static=
7438
7439echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7440echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7441
7442  if test "$GCC" = yes; then
7443    lt_prog_compiler_wl='-Wl,'
7444    lt_prog_compiler_static='-static'
7445
7446    case $host_os in
7447      aix*)
7448      # All AIX code is PIC.
7449      if test "$host_cpu" = ia64; then
7450	# AIX 5 now supports IA64 processor
7451	lt_prog_compiler_static='-Bstatic'
7452      fi
7453      ;;
7454
7455    amigaos*)
7456      # FIXME: we need at least 68020 code to build shared libraries, but
7457      # adding the `-m68020' flag to GCC prevents building anything better,
7458      # like `-m68040'.
7459      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7460      ;;
7461
7462    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7463      # PIC is the default for these OSes.
7464      ;;
7465
7466    cygwin* | mingw* | pw32* | os2*)
7467      # This hack is so that the source file can tell whether it is being
7468      # built for inclusion in a dll (and should export symbols for example).
7469      lt_prog_compiler_pic='-DDLL_EXPORT'
7470      ;;
7471
7472    darwin* | rhapsody*)
7473      # PIC is the default on this platform
7474      # Common symbols not allowed in MH_DYLIB files
7475      lt_prog_compiler_pic='-fno-common'
7476      ;;
7477
7478    msdosdjgpp*)
7479      # Just because we use GCC doesn't mean we suddenly get shared libraries
7480      # on systems that don't support them.
7481      lt_prog_compiler_can_build_shared=no
7482      enable_shared=no
7483      ;;
7484
7485    sysv4*MP*)
7486      if test -d /usr/nec; then
7487	lt_prog_compiler_pic=-Kconform_pic
7488      fi
7489      ;;
7490
7491    hpux*)
7492      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
7493      if test "$host_cpu" != ia64; then
7494	lt_prog_compiler_pic='-fPIC'
7495      fi
7496      ;;
7497
7498    *)
7499      lt_prog_compiler_pic='-fPIC'
7500      ;;
7501    esac
7502  else
7503    # PORTME Check for flag to pass linker flags through the system compiler.
7504    case $host_os in
7505    aix*)
7506      lt_prog_compiler_wl='-Wl,'
7507      if test "$host_cpu" = ia64; then
7508	# AIX 5 now supports IA64 processor
7509	lt_prog_compiler_static='-Bstatic'
7510      else
7511	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7512      fi
7513      ;;
7514
7515    cygwin* | mingw* | pw32* | os2*)
7516      # This hack is so that the source file can tell whether it is being
7517      # built for inclusion in a dll (and should export symbols for example).
7518      lt_prog_compiler_pic='-DDLL_EXPORT'
7519      ;;
7520
7521    hpux9* | hpux10* | hpux11*)
7522      lt_prog_compiler_wl='-Wl,'
7523      if test "$host_cpu" != ia64; then
7524	lt_prog_compiler_pic='+Z'
7525      fi
7526      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7527      lt_prog_compiler_static='${wl}-a ${wl}archive'
7528      ;;
7529
7530    irix5* | irix6* | nonstopux*)
7531      lt_prog_compiler_wl='-Wl,'
7532      # PIC (with -KPIC) is the default.
7533      lt_prog_compiler_static='-non_shared'
7534      ;;
7535
7536    newsos6)
7537      lt_prog_compiler_pic='-KPIC'
7538      lt_prog_compiler_static='-Bstatic'
7539      ;;
7540
7541    osf3* | osf4* | osf5*)
7542      lt_prog_compiler_wl='-Wl,'
7543      # All OSF/1 code is PIC.
7544      lt_prog_compiler_static='-non_shared'
7545      ;;
7546
7547    sco3.2v5*)
7548      lt_prog_compiler_pic='-Kpic'
7549      lt_prog_compiler_static='-dn'
7550      ;;
7551
7552    solaris*)
7553      lt_prog_compiler_wl='-Wl,'
7554      lt_prog_compiler_pic='-KPIC'
7555      lt_prog_compiler_static='-Bstatic'
7556      ;;
7557
7558    sunos4*)
7559      lt_prog_compiler_wl='-Qoption ld '
7560      lt_prog_compiler_pic='-PIC'
7561      lt_prog_compiler_static='-Bstatic'
7562      ;;
7563
7564    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7565      if test "x$host_vendor" = xsni; then
7566	lt_prog_compiler_wl='-LD'
7567      else
7568	lt_prog_compiler_wl='-Wl,'
7569      fi
7570      lt_prog_compiler_pic='-KPIC'
7571      lt_prog_compiler_static='-Bstatic'
7572      ;;
7573
7574    sysv4*MP*)
7575      if test -d /usr/nec ;then
7576	lt_prog_compiler_pic='-Kconform_pic'
7577	lt_prog_compiler_static='-Bstatic'
7578      fi
7579      ;;
7580
7581    uts4*)
7582      lt_prog_compiler_pic='-pic'
7583      lt_prog_compiler_static='-Bstatic'
7584      ;;
7585
7586    *)
7587      lt_prog_compiler_can_build_shared=no
7588      ;;
7589    esac
7590  fi
7591
7592echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7593echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7594
7595#
7596# Check to make sure the PIC flag actually works.
7597#
7598if test -n "$lt_prog_compiler_pic"; then
7599  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7600echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7601if test "${lt_prog_compiler_pic_works+set}" = set; then
7602  echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604  lt_prog_compiler_pic_works=no
7605  ac_outfile=conftest.$ac_objext
7606   save_CFLAGS="$CFLAGS"
7607   CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
7608   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7609   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
7610     # The compiler can only warn and ignore the option if not recognized
7611     # So say no if there are warnings
7612     if test -s conftest.err; then
7613       # Append any errors to the config.log.
7614       cat conftest.err 1>&5
7615     else
7616       lt_prog_compiler_pic_works=yes
7617     fi
7618   fi
7619   $rm conftest*
7620   CFLAGS="$save_CFLAGS"
7621
7622fi
7623echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7624echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7625
7626if test x"$lt_prog_compiler_pic_works" = xyes; then
7627    case $lt_prog_compiler_pic in
7628     "" | " "*) ;;
7629     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7630     esac
7631else
7632    lt_prog_compiler_pic=
7633     lt_prog_compiler_can_build_shared=no
7634fi
7635
7636fi
7637case "$host_os" in
7638  # For platforms which do not support PIC, -DPIC is meaningless:
7639  *djgpp*)
7640    lt_prog_compiler_pic=
7641    ;;
7642  *)
7643    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7644    ;;
7645esac
7646
7647echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7648echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7649if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7650  echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652  lt_cv_prog_compiler_c_o=no
7653   $rm -r conftest 2>/dev/null
7654   mkdir conftest
7655   cd conftest
7656   mkdir out
7657   save_CFLAGS="$CFLAGS"
7658		   CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
7659   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7660
7661   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7662   # that will create temporary files in the current directory regardless of
7663   # the output directory.  Thus, making CWD read-only will cause this test
7664   # to fail, enabling locking or at least warning the user not to do parallel
7665   # builds.
7666   chmod -w .
7667
7668   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
7669   then
7670     # The compiler can only warn and ignore the option if not recognized
7671     # So say no if there are warnings
7672     if test -s out/conftest.err; then
7673       # Append any errors to the config.log.
7674       cat out/conftest.err 1>&5
7675     else
7676       lt_cv_prog_compiler_c_o=yes
7677     fi
7678   fi
7679   CFLAGS="$save_CFLAGS"
7680   chmod u+w .
7681   $rm conftest* out/*
7682   rmdir out
7683   cd ..
7684   rmdir conftest
7685   $rm conftest*
7686
7687fi
7688echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7689echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7690
7691
7692hard_links="nottested"
7693if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7694  # do not overwrite the value of need_locks provided by the user
7695  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7696echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7697  hard_links=yes
7698  $rm conftest*
7699  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7700  touch conftest.a
7701  ln conftest.a conftest.b 2>&5 || hard_links=no
7702  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7703  echo "$as_me:$LINENO: result: $hard_links" >&5
7704echo "${ECHO_T}$hard_links" >&6
7705  if test "$hard_links" = no; then
7706    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7707echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7708    need_locks=warn
7709  fi
7710else
7711  need_locks=no
7712fi
7713
7714echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7715echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7716
7717  runpath_var=
7718  allow_undefined_flag=
7719
7720  archive_cmds=
7721  archive_cmds_need_lc=
7722  archive_expsym_cmds=
7723  old_archive_From_new_cmds=
7724  old_archive_from_expsyms_cmds=
7725  export_dynamic_flag_spec=
7726  whole_archive_flag_spec=
7727  thread_safe_flag_spec=
7728  hardcode_libdir_flag_spec=
7729  hardcode_libdir_separator=
7730  hardcode_direct=no
7731  hardcode_minus_L=no
7732  hardcode_shlibpath_var=unsupported
7733  link_all_deplibs=unknown
7734  always_export_symbols=no
7735  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
7736  # include_expsyms should be a list of space-separated symbols to be *always*
7737  # included in the symbol list
7738  include_expsyms=
7739  # exclude_expsyms can be an egrep regular expression of symbols to exclude
7740  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7741  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7742  # as well as any symbol that contains `d'.
7743  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7744  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7745  # platforms (ab)use it in PIC code, but their linkers get confused if
7746  # the symbol is explicitly referenced.  Since portable code cannot
7747  # rely on this symbol name, it's probably fine to never include it in
7748  # preloaded symbol tables.
7749  extract_expsyms_cmds=
7750
7751  case $host_os in
7752  cygwin* | mingw* | pw32*)
7753    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7754    # When not using gcc, we currently assume that we are using
7755    # Microsoft Visual C++.
7756    if test "$GCC" != yes; then
7757      with_gnu_ld=no
7758    fi
7759    ;;
7760  openbsd*)
7761    with_gnu_ld=no
7762    ;;
7763  esac
7764
7765  ld_shlibs=yes
7766  if test "$with_gnu_ld" = yes; then
7767    # If archive_cmds runs LD, not CC, wlarc should be empty
7768    wlarc='${wl}'
7769
7770    # See if GNU ld supports shared libraries.
7771    case $host_os in
7772    aix3* | aix4* | aix5*)
7773      # On AIX/PPC, the GNU linker is very broken
7774      if test "$host_cpu" != ia64; then
7775	ld_shlibs=no
7776	cat <<EOF 1>&2
7777
7778*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7779*** to be unable to reliably create shared libraries on AIX.
7780*** Therefore, libtool is disabling shared libraries support.  If you
7781*** really care for shared libraries, you may want to modify your PATH
7782*** so that a non-GNU linker is found, and then restart.
7783
7784EOF
7785      fi
7786      ;;
7787
7788    amigaos*)
7789      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)'
7790      hardcode_libdir_flag_spec='-L$libdir'
7791      hardcode_minus_L=yes
7792
7793      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7794      # that the semantics of dynamic libraries on AmigaOS, at least up
7795      # to version 4, is to share data among multiple programs linked
7796      # with the same dynamic library.  Since this doesn't match the
7797      # behavior of shared libraries on other platforms, we can't use
7798      # them.
7799      ld_shlibs=no
7800      ;;
7801
7802    beos*)
7803      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7804	allow_undefined_flag=unsupported
7805	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7806	# support --undefined.  This deserves some investigation.  FIXME
7807	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7808      else
7809	ld_shlibs=no
7810      fi
7811      ;;
7812
7813    cygwin* | mingw* | pw32*)
7814      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
7815      # no search path for DLLs.
7816      hardcode_libdir_flag_spec='-L$libdir'
7817      allow_undefined_flag=unsupported
7818      always_export_symbols=yes
7819
7820      extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
7821	sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
7822	test -f $output_objdir/impgen.exe || (cd $output_objdir && \
7823	if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
7824	else $CC -o impgen impgen.c ; fi)~
7825	$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
7826
7827      old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
7828
7829      # cygwin and mingw dlls have different entry points and sets of symbols
7830      # to exclude.
7831      # FIXME: what about values for MSVC?
7832      dll_entry=__cygwin_dll_entry@12
7833      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
7834      case $host_os in
7835      mingw*)
7836	# mingw values
7837	dll_entry=_DllMainCRTStartup@12
7838	dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
7839	;;
7840      esac
7841
7842      # mingw and cygwin differ, and it's simplest to just exclude the union
7843      # of the two symbol sets.
7844      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
7845
7846      # recent cygwin and mingw systems supply a stub DllMain which the user
7847      # can override, but on older systems we have to supply one (in ltdll.c)
7848      if test "x$lt_cv_need_dllmain" = "xyes"; then
7849	ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
7850	ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
7851  	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
7852      else
7853	ltdll_obj=
7854	ltdll_cmds=
7855      fi
7856
7857      # Extract the symbol export list from an `--export-all' def file,
7858      # then regenerate the def file from the symbol export list, so that
7859      # the compiled dll only exports the symbol export list.
7860      # Be careful not to strip the DATA tag left by newer dlltools.
7861      export_symbols_cmds="$ltdll_cmds"'
7862	$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
7863	sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
7864
7865      # If the export-symbols file already is a .def file (1st line
7866      # is EXPORTS), use it as is.
7867      # If DATA tags from a recent dlltool are present, honour them!
7868      archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
7869	  cp $export_symbols $output_objdir/$soname-def;
7870	else
7871	  echo EXPORTS > $output_objdir/$soname-def;
7872	  _lt_hint=1;
7873	  cat $export_symbols | while read symbol; do
7874	   set dummy \$symbol;
7875	   case \$# in
7876	     2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
7877	     *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
7878	   esac;
7879	   _lt_hint=`expr 1 + \$_lt_hint`;
7880	  done;
7881	fi~
7882	'"$ltdll_cmds"'
7883	$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
7884	$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
7885	$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
7886	$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
7887	$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
7888      ;;
7889
7890    netbsd*)
7891      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7892	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7893	wlarc=
7894      else
7895	archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7896	archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7897      fi
7898      ;;
7899
7900    solaris* | sysv5*)
7901      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
7902	ld_shlibs=no
7903	cat <<EOF 1>&2
7904
7905*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7906*** create shared libraries on Solaris systems.  Therefore, libtool
7907*** is disabling shared libraries support.  We urge you to upgrade GNU
7908*** binutils to release 2.9.1 or newer.  Another option is to modify
7909*** your PATH or compiler configuration so that the native linker is
7910*** used, and then restart.
7911
7912EOF
7913      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7914	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7915	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7916      else
7917	ld_shlibs=no
7918      fi
7919      ;;
7920
7921    sunos4*)
7922      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7923      wlarc=
7924      hardcode_direct=yes
7925      hardcode_shlibpath_var=no
7926      ;;
7927
7928    *)
7929      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7930	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7931	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7932      else
7933	ld_shlibs=no
7934      fi
7935      ;;
7936    esac
7937
7938    if test "$ld_shlibs" = yes; then
7939      runpath_var=LD_RUN_PATH
7940      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7941      export_dynamic_flag_spec='${wl}--export-dynamic'
7942      case $host_os in
7943      cygwin* | mingw* | pw32*)
7944	# dlltool doesn't understand --whole-archive et. al.
7945	whole_archive_flag_spec=
7946	;;
7947      *)
7948	# ancient GNU ld didn't support --whole-archive et. al.
7949	if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
7950  	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7951	else
7952  	whole_archive_flag_spec=
7953	fi
7954	;;
7955      esac
7956    fi
7957  else
7958    # PORTME fill in a description of your system's linker (not GNU ld)
7959    case $host_os in
7960    aix3*)
7961      allow_undefined_flag=unsupported
7962      always_export_symbols=yes
7963      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'
7964      # Note: this linker hardcodes the directories in LIBPATH if there
7965      # are no directories specified by -L.
7966      hardcode_minus_L=yes
7967      if test "$GCC" = yes && test -z "$link_static_flag"; then
7968	# Neither direct hardcoding nor static linking is supported with a
7969	# broken collect2.
7970	hardcode_direct=unsupported
7971      fi
7972      ;;
7973
7974    aix4* | aix5*)
7975      if test "$host_cpu" = ia64; then
7976	# On IA64, the linker does run time linking by default, so we don't
7977	# have to do anything special.
7978	aix_use_runtimelinking=no
7979	exp_sym_flag='-Bexport'
7980	no_entry_flag=""
7981      else
7982	# If we're using GNU nm, then we don't want the "-C" option.
7983	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7984	if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
7985	  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'
7986	else
7987	  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'
7988	fi
7989
7990	# KDE requires run time linking.  Make it the default.
7991	aix_use_runtimelinking=yes
7992	exp_sym_flag='-bexport'
7993	no_entry_flag='-bnoentry'
7994      fi
7995
7996      # When large executables or shared objects are built, AIX ld can
7997      # have problems creating the table of contents.  If linking a library
7998      # or program results in "error TOC overflow" add -mminimal-toc to
7999      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8000      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8001
8002      archive_cmds=''
8003      hardcode_direct=yes
8004      hardcode_libdir_separator=':'
8005      link_all_deplibs=yes
8006
8007      if test "$GCC" = yes; then
8008	case $host_os in aix4.012|aix4.012.*)
8009	# We only want to do this on AIX 4.2 and lower, the check
8010	# below for broken collect2 doesn't work under 4.3+
8011	  collect2name=`${CC} -print-prog-name=collect2`
8012	  if test -f "$collect2name" && \
8013  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8014	  then
8015  	  # We have reworked collect2
8016  	  hardcode_direct=yes
8017	  else
8018  	  # We have old collect2
8019  	  hardcode_direct=unsupported
8020  	  # It fails to find uninstalled libraries when the uninstalled
8021  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8022  	  # to unsupported forces relinking
8023  	  hardcode_minus_L=yes
8024  	  hardcode_libdir_flag_spec='-L$libdir'
8025  	  hardcode_libdir_separator=
8026	  fi
8027	esac
8028	shared_flag='-shared'
8029      else
8030	# not using gcc
8031	if test "$host_cpu" = ia64; then
8032  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8033  	# chokes on -Wl,-G. The following line is correct:
8034	  shared_flag='-G'
8035	else
8036  	if test "$aix_use_runtimelinking" = yes; then
8037	    shared_flag='-qmkshrobj ${wl}-G'
8038	  else
8039	    shared_flag='-qmkshrobj'
8040  	fi
8041	fi
8042      fi
8043
8044      # Let the compiler handle the export list.
8045      always_export_symbols=no
8046      if test "$aix_use_runtimelinking" = yes; then
8047	# Warning - without using the other runtime loading flags (-brtl),
8048	# -berok will link without error, but may produce a broken library.
8049	allow_undefined_flag='-berok'
8050       # Determine the default libpath from the value encoded in an empty executable.
8051	cat >conftest.$ac_ext <<_ACEOF
8052#line $LINENO "configure"
8053/* confdefs.h.  */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h.  */
8058
8059int
8060main ()
8061{
8062
8063  ;
8064  return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext conftest$ac_exeext
8068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8069  (eval $ac_link) 2>&5
8070  ac_status=$?
8071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072  (exit $ac_status); } &&
8073         { ac_try='test -s conftest$ac_exeext'
8074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075  (eval $ac_try) 2>&5
8076  ac_status=$?
8077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078  (exit $ac_status); }; }; then
8079
8080aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8081}'`
8082# Check for a 64-bit object if we didn't find anything.
8083if 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; }
8084}'`; fi
8085else
8086  echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
8089fi
8090rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8092
8093	hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8094	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"
8095	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"
8096       else
8097	if test "$host_cpu" = ia64; then
8098	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8099	  allow_undefined_flag="-z nodefs"
8100	  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"
8101	else
8102	 # Determine the default libpath from the value encoded in an empty executable.
8103	 cat >conftest.$ac_ext <<_ACEOF
8104#line $LINENO "configure"
8105/* confdefs.h.  */
8106_ACEOF
8107cat confdefs.h >>conftest.$ac_ext
8108cat >>conftest.$ac_ext <<_ACEOF
8109/* end confdefs.h.  */
8110
8111int
8112main ()
8113{
8114
8115  ;
8116  return 0;
8117}
8118_ACEOF
8119rm -f conftest.$ac_objext conftest$ac_exeext
8120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121  (eval $ac_link) 2>&5
8122  ac_status=$?
8123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124  (exit $ac_status); } &&
8125         { ac_try='test -s conftest$ac_exeext'
8126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127  (eval $ac_try) 2>&5
8128  ac_status=$?
8129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130  (exit $ac_status); }; }; then
8131
8132aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8133}'`
8134# Check for a 64-bit object if we didn't find anything.
8135if 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; }
8136}'`; fi
8137else
8138  echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141fi
8142rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8143if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8144
8145	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8146	  # Warning - without using the other run time loading flags,
8147	  # -berok will link without error, but may produce a broken library.
8148	  no_undefined_flag=' ${wl}-bernotok'
8149	  allow_undefined_flag=' ${wl}-berok'
8150	  # -bexpall does not export symbols beginning with underscore (_)
8151	  always_export_symbols=yes
8152	  # Exported symbols can be pulled into shared objects from archives
8153	  whole_archive_flag_spec=' '
8154	  archive_cmds_need_lc=yes
8155	  # This is similar to how AIX traditionally builds it's shared libraries.
8156	  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'
8157	fi
8158      fi
8159      ;;
8160
8161    amigaos*)
8162      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)'
8163      hardcode_libdir_flag_spec='-L$libdir'
8164      hardcode_minus_L=yes
8165      # see comment about different semantics on the GNU ld section
8166      ld_shlibs=no
8167      ;;
8168
8169    bsdi4*)
8170      export_dynamic_flag_spec=-rdynamic
8171      ;;
8172
8173    cygwin* | mingw* | pw32*)
8174      # When not using gcc, we currently assume that we are using
8175      # Microsoft Visual C++.
8176      # hardcode_libdir_flag_spec is actually meaningless, as there is
8177      # no search path for DLLs.
8178      hardcode_libdir_flag_spec=' '
8179      allow_undefined_flag=unsupported
8180      # Tell ltmain to make .lib files, not .a files.
8181      libext=lib
8182      # FIXME: Setting linknames here is a bad hack.
8183      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8184      # The linker will automatically build a .lib file if we build a DLL.
8185      old_archive_From_new_cmds='true'
8186      # FIXME: Should let the user specify the lib program.
8187      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8188      fix_srcfile_path='`cygpath -w "$srcfile"`'
8189      ;;
8190
8191    darwin* | rhapsody*)
8192      case "$host_os" in
8193      rhapsody* | darwin1.[012])
8194	allow_undefined_flag='-undefined suppress'
8195	;;
8196      *) # Darwin 1.3 on
8197	allow_undefined_flag='-flat_namespace -undefined suppress'
8198	;;
8199      esac
8200
8201      # FIXME: Relying on posixy $() will cause problems for
8202      #        cross-compilation, but unfortunately the echo tests do not
8203      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8204      #	       `"' quotes if we put them in here... so don't!
8205      archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
8206      # We need to add '_' to the symbols in $export_symbols first
8207      #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
8208      hardcode_direct=yes
8209      hardcode_shlibpath_var=no
8210      whole_archive_flag_spec='-all_load $convenience'
8211      ;;
8212
8213    dgux*)
8214      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8215      hardcode_libdir_flag_spec='-L$libdir'
8216      hardcode_shlibpath_var=no
8217      ;;
8218
8219    freebsd1*)
8220      ld_shlibs=no
8221      ;;
8222
8223    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8224    # support.  Future versions do this automatically, but an explicit c++rt0.o
8225    # does not break anything, and helps significantly (at the cost of a little
8226    # extra space).
8227    freebsd2.2*)
8228      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8229      hardcode_libdir_flag_spec='-R$libdir'
8230      hardcode_direct=yes
8231      hardcode_shlibpath_var=no
8232      ;;
8233
8234    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8235    freebsd2*)
8236      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8237      hardcode_direct=yes
8238      hardcode_minus_L=yes
8239      hardcode_shlibpath_var=no
8240      ;;
8241
8242    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8243    freebsd*)
8244      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8245      hardcode_libdir_flag_spec='-R$libdir'
8246      hardcode_direct=yes
8247      hardcode_shlibpath_var=no
8248      ;;
8249
8250    hpux9* | hpux10* | hpux11*)
8251      if test "$GCC" = yes; then
8252	case $host_os in
8253	  hpux9*)
8254	    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'
8255	    ;;
8256	  *)
8257	    if test "$host_cpu" = ia64; then
8258	      archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8259	    else
8260	      archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8261	    fi
8262	    ;;
8263	esac
8264      else
8265	case $host_os in
8266	  hpux9*)
8267	    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'
8268	    ;;
8269	  *)
8270	    if test "$host_cpu" = ia64; then
8271	      archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8272	    else
8273	      archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8274	    fi
8275	    ;;
8276	esac
8277      fi
8278      if test "$host_cpu" = ia64; then
8279	hardcode_libdir_flag_spec='-L$libdir'
8280	hardcode_direct=no
8281	hardcode_shlibpath_var=no
8282      else
8283	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8284	hardcode_libdir_separator=:
8285	hardcode_direct=yes
8286      fi
8287      # hardcode_minus_L: Not really in the search PATH,
8288      # but as the default location of the library.
8289      hardcode_minus_L=yes
8290      export_dynamic_flag_spec='${wl}-E'
8291      ;;
8292
8293    irix5* | irix6* | nonstopux*)
8294      if test "$GCC" = yes; then
8295	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'
8296      else
8297	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'
8298      fi
8299      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8300      hardcode_libdir_separator=:
8301      link_all_deplibs=yes
8302      ;;
8303
8304    netbsd*)
8305      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8306	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8307      else
8308	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8309      fi
8310      hardcode_libdir_flag_spec='-R$libdir'
8311      hardcode_direct=yes
8312      hardcode_shlibpath_var=no
8313      ;;
8314
8315    newsos6)
8316      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8317      hardcode_direct=yes
8318      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319      hardcode_libdir_separator=:
8320      hardcode_shlibpath_var=no
8321      ;;
8322
8323    openbsd*)
8324      hardcode_direct=yes
8325      hardcode_shlibpath_var=no
8326
8327      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8328	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
8329	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8330	export_dynamic_flag_spec='${wl}-E'
8331      else
8332       case $host_os in
8333	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8334	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8335	   hardcode_libdir_flag_spec='-R$libdir'
8336	   ;;
8337	 *)
8338	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
8339	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8340	   ;;
8341       esac
8342      fi
8343      ;;
8344
8345    os2*)
8346      hardcode_libdir_flag_spec='-L$libdir'
8347      hardcode_minus_L=yes
8348      allow_undefined_flag=unsupported
8349      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'
8350      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8351      ;;
8352
8353    osf3*)
8354      if test "$GCC" = yes; then
8355	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8356	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'
8357      else
8358	allow_undefined_flag=' -expect_unresolved \*'
8359	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'
8360      fi
8361      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8362      hardcode_libdir_separator=:
8363      ;;
8364
8365    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8366      if test "$GCC" = yes; then
8367	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8368	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'
8369	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8370      else
8371	allow_undefined_flag=' -expect_unresolved \*'
8372	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'
8373	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8374	$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'
8375
8376	# Both c and cxx compiler support -rpath directly
8377	hardcode_libdir_flag_spec='-rpath $libdir'
8378      fi
8379      hardcode_libdir_separator=:
8380      ;;
8381
8382    sco3.2v5*)
8383      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8384      hardcode_shlibpath_var=no
8385      export_dynamic_flag_spec='${wl}-Bexport'
8386      runpath_var=LD_RUN_PATH
8387      hardcode_runpath_var=yes
8388      ;;
8389
8390    solaris*)
8391      no_undefined_flag=' -z text'
8392      if test "$GCC" = yes; then
8393	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8394	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8395	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8396      else
8397	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8398	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8399  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8400      fi
8401      hardcode_libdir_flag_spec='-R$libdir'
8402      hardcode_shlibpath_var=no
8403      case $host_os in
8404      solaris2.[0-5] | solaris2.[0-5].*) ;;
8405      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8406	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8407      esac
8408      link_all_deplibs=yes
8409      ;;
8410
8411    sunos4*)
8412      if test "x$host_vendor" = xsequent; then
8413	# Use $CC to link under sequent, because it throws in some extra .o
8414	# files that make .init and .fini sections work.
8415	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8416      else
8417	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8418      fi
8419      hardcode_libdir_flag_spec='-L$libdir'
8420      hardcode_direct=yes
8421      hardcode_minus_L=yes
8422      hardcode_shlibpath_var=no
8423      ;;
8424
8425    sysv4)
8426      if test "x$host_vendor" = xsni; then
8427	archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
8428	hardcode_direct=yes # is this really true???
8429      else
8430	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8431	hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8432      fi
8433      runpath_var='LD_RUN_PATH'
8434      hardcode_shlibpath_var=no
8435      ;;
8436
8437    sysv4.3*)
8438      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439      hardcode_shlibpath_var=no
8440      export_dynamic_flag_spec='-Bexport'
8441      ;;
8442
8443    sysv4*MP*)
8444      if test -d /usr/nec; then
8445	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446	hardcode_shlibpath_var=no
8447	runpath_var=LD_RUN_PATH
8448	hardcode_runpath_var=yes
8449	ld_shlibs=yes
8450      fi
8451      ;;
8452
8453    sysv4.2uw2*)
8454      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8455      hardcode_direct=yes
8456      hardcode_minus_L=no
8457      hardcode_shlibpath_var=no
8458      hardcode_runpath_var=yes
8459      runpath_var=LD_RUN_PATH
8460      ;;
8461
8462   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8463      no_undefined_flag='${wl}-z ${wl}text'
8464      if test "$GCC" = yes; then
8465	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466      else
8467	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468      fi
8469      runpath_var='LD_RUN_PATH'
8470      hardcode_shlibpath_var=no
8471      ;;
8472
8473    sysv5*)
8474      no_undefined_flag=' -z text'
8475      # $CC -shared without GNU ld will not create a library from C++
8476      # object files and a static libstdc++, better avoid it by now
8477      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8478      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8479  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8480      hardcode_libdir_flag_spec=
8481      hardcode_shlibpath_var=no
8482      runpath_var='LD_RUN_PATH'
8483      ;;
8484
8485    uts4*)
8486      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487      hardcode_libdir_flag_spec='-L$libdir'
8488      hardcode_shlibpath_var=no
8489      ;;
8490
8491    *)
8492      ld_shlibs=no
8493      ;;
8494    esac
8495  fi
8496
8497echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8498echo "${ECHO_T}$ld_shlibs" >&6
8499test "$ld_shlibs" = no && can_build_shared=no
8500
8501variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8502if test "$GCC" = yes; then
8503  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8504fi
8505
8506#
8507# Do we need to explicitly link libc?
8508#
8509archive_cmds_need_lc=yes
8510if test "$enable_shared" = yes && test "$GCC" = yes; then
8511  case $archive_cmds in
8512  *'~'*)
8513    # FIXME: we may have to deal with multi-command sequences.
8514    ;;
8515  '$CC '*)
8516    # Test whether the compiler implicitly links with -lc since on some
8517    # systems, -lgcc has to come before -lc. If gcc already passes -lc
8518    # to ld, don't add -lc before -lgcc.
8519    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8520echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8521    $rm conftest*
8522    echo 'static int dummy;' > conftest.$ac_ext
8523
8524    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8525  (eval $ac_compile) 2>&5
8526  ac_status=$?
8527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528  (exit $ac_status); } 2>conftest.err; then
8529      soname=conftest
8530      lib=conftest
8531      libobjs=conftest.$ac_objext
8532      deplibs=
8533      wl=$lt_prog_compiler_wl
8534      compiler_flags=-v
8535      linker_flags=-v
8536      verstring=
8537      output_objdir=.
8538      libname=conftest
8539      lt_save_allow_undefined_flag=$allow_undefined_flag
8540      allow_undefined_flag=
8541      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8542  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8543  ac_status=$?
8544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545  (exit $ac_status); }
8546      then
8547	archive_cmds_need_lc=no
8548      else
8549	archive_cmds_need_lc=yes
8550      fi
8551      allow_undefined_flag=$lt_save_allow_undefined_flag
8552    else
8553      cat conftest.err 1>&5
8554    fi
8555    $rm conftest*
8556    echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8557echo "${ECHO_T}$archive_cmds_need_lc" >&6
8558    ;;
8559  esac
8560fi
8561
8562echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8563echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8564hardcode_action=
8565if test -n "$hardcode_libdir_flag_spec" || \
8566   test -n "$runpath_var "; then
8567
8568  # We can hardcode non-existant directories.
8569  if test "$hardcode_direct" != no &&
8570     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8571     # have to relink, otherwise we might link with an installed library
8572     # when we should be linking with a yet-to-be-installed one
8573     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8574     test "$hardcode_minus_L" != no; then
8575    # Linking always hardcodes the temporary library directory.
8576    hardcode_action=relink
8577  else
8578    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8579    hardcode_action=immediate
8580  fi
8581else
8582  # We cannot hardcode anything, or else we can only hardcode existing
8583  # directories.
8584  hardcode_action=unsupported
8585fi
8586echo "$as_me:$LINENO: result: $hardcode_action" >&5
8587echo "${ECHO_T}$hardcode_action" >&6
8588
8589if test "$hardcode_action" = relink; then
8590  # Fast installation is not supported
8591  enable_fast_install=no
8592elif test "$shlibpath_overrides_runpath" = yes ||
8593     test "$enable_shared" = no; then
8594  # Fast installation is not necessary
8595  enable_fast_install=needless
8596fi
8597
8598striplib=
8599old_striplib=
8600echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8601echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8602if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8603  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8604  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8605  echo "$as_me:$LINENO: result: yes" >&5
8606echo "${ECHO_T}yes" >&6
8607else
8608  echo "$as_me:$LINENO: result: no" >&5
8609echo "${ECHO_T}no" >&6
8610fi
8611
8612echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8613echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8614library_names_spec=
8615libname_spec='lib$name'
8616soname_spec=
8617postinstall_cmds=
8618postuninstall_cmds=
8619finish_cmds=
8620finish_eval=
8621shlibpath_var=
8622shlibpath_overrides_runpath=unknown
8623version_type=none
8624dynamic_linker="$host_os ld.so"
8625sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8627need_lib_prefix=unknown
8628hardcode_into_libs=no
8629
8630# when you set need_version to no, make sure it does not cause -set_version
8631# flags to be left without arguments
8632need_version=unknown
8633
8634case $host_os in
8635aix3*)
8636  version_type=linux
8637  library_names_spec='${libname}${release}.so$versuffix $libname.a'
8638  shlibpath_var=LIBPATH
8639
8640  # AIX 3 has no versioning support, so we append a major version to the name.
8641  soname_spec='${libname}${release}.so$major'
8642  ;;
8643
8644aix4* | aix5*)
8645  version_type=linux
8646  if test "$host_cpu" = ia64; then
8647    # AIX 5 supports IA64
8648    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
8649    shlibpath_var=LD_LIBRARY_PATH
8650  else
8651    # With GCC up to 2.95.x, collect2 would create an import file
8652    # for dependence libraries.  The import file would start with
8653    # the line `#! .'.  This would cause the generated library to
8654    # depend on `.', always an invalid library.  This was fixed in
8655    # development snapshots of GCC prior to 3.0.
8656    case $host_os in
8657      aix4 | aix4.[01] | aix4.[01].*)
8658      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8659	   echo ' yes '
8660	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8661	:
8662      else
8663	can_build_shared=no
8664      fi
8665      ;;
8666    esac
8667    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8668    # soname into executable. Probably we can add versioning support to
8669    # collect2, so additional links can be useful in future.
8670    if test "$aix_use_runtimelinking" = yes; then
8671      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8672      # instead of lib<name>.a to let people know that these are not
8673      # typical AIX shared libraries.
8674      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8675    else
8676      # We preserve .a as extension for shared libraries through AIX4.2
8677      # and later when we are not doing run time linking.
8678      library_names_spec='${libname}${release}.a $libname.a'
8679      soname_spec='${libname}${release}.so$major'
8680    fi
8681    shlibpath_var=LIBPATH
8682  fi
8683  ;;
8684
8685amigaos*)
8686  library_names_spec='$libname.ixlibrary $libname.a'
8687  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8688  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'
8689  ;;
8690
8691beos*)
8692  library_names_spec='${libname}.so'
8693  dynamic_linker="$host_os ld.so"
8694  shlibpath_var=LIBRARY_PATH
8695  ;;
8696
8697bsdi4*)
8698  version_type=linux
8699  need_version=no
8700  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8701  soname_spec='${libname}${release}.so$major'
8702  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8703  shlibpath_var=LD_LIBRARY_PATH
8704  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8705  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8706  # the default ld.so.conf also contains /usr/contrib/lib and
8707  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8708  # libtool to hard-code these into programs
8709  ;;
8710
8711cygwin* | mingw* | pw32*)
8712  version_type=windows
8713  need_version=no
8714  need_lib_prefix=no
8715  case $GCC,$host_os in
8716  yes,cygwin*)
8717    library_names_spec='$libname.dll.a'
8718    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
8719    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8720    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
8721      dldir=$destdir/`dirname \$dlpath`~
8722      test -d \$dldir || mkdir -p \$dldir~
8723      $install_prog .libs/$dlname \$dldir/$dlname'
8724    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
8725      dlpath=$dir/\$dldll~
8726       $rm \$dlpath'
8727    ;;
8728  yes,mingw*)
8729    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8730    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
8731    if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
8732      # It is most probably a Windows format PATH printed by
8733      # mingw gcc, but we are running on Cygwin. Gcc prints its search
8734      # path with ; separators, and with drive letters. We can handle the
8735      # drive letters (cygwin fileutils understands them), so leave them,
8736      # especially as we might pass files found there to a mingw objdump,
8737      # which wouldn't understand a cygwinified path. Ahh.
8738      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
8739    else
8740      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed  -e "s/$PATH_SEPARATOR/ /g"`
8741    fi
8742    ;;
8743  yes,pw32*)
8744    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
8745    ;;
8746  *)
8747    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
8748    ;;
8749  esac
8750  dynamic_linker='Win32 ld.exe'
8751  # FIXME: first we should search . and the directory the executable is in
8752  shlibpath_var=PATH
8753  ;;
8754
8755darwin* | rhapsody*)
8756  dynamic_linker="$host_os dyld"
8757  version_type=darwin
8758  need_lib_prefix=no
8759  need_version=no
8760  # FIXME: Relying on posixy $() will cause problems for
8761  #        cross-compilation, but unfortunately the echo tests do not
8762  #        yet detect zsh echo's removal of \ escapes.
8763  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
8764  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
8765  shlibpath_overrides_runpath=yes
8766  shlibpath_var=DYLD_LIBRARY_PATH
8767  ;;
8768
8769dgux*)
8770  version_type=linux
8771  need_lib_prefix=no
8772  need_version=no
8773  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8774  soname_spec='${libname}${release}.so$major'
8775  shlibpath_var=LD_LIBRARY_PATH
8776  ;;
8777
8778freebsd1*)
8779  dynamic_linker=no
8780  ;;
8781
8782freebsd*)
8783  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8784  version_type=freebsd-$objformat
8785  case $version_type in
8786    freebsd-elf*)
8787      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8788      need_version=no
8789      need_lib_prefix=no
8790      ;;
8791    freebsd-*)
8792      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
8793      need_version=yes
8794      ;;
8795  esac
8796  shlibpath_var=LD_LIBRARY_PATH
8797  case $host_os in
8798  freebsd2*)
8799    shlibpath_overrides_runpath=yes
8800    ;;
8801  freebsd3.01* | freebsdelf3.01*)
8802    shlibpath_overrides_runpath=yes
8803    hardcode_into_libs=yes
8804    ;;
8805  *) # from 3.2 on
8806    shlibpath_overrides_runpath=no
8807    hardcode_into_libs=yes
8808    ;;
8809  esac
8810  ;;
8811
8812gnu*)
8813  version_type=linux
8814  need_lib_prefix=no
8815  need_version=no
8816  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
8817  soname_spec='${libname}${release}.so$major'
8818  shlibpath_var=LD_LIBRARY_PATH
8819  hardcode_into_libs=yes
8820  ;;
8821
8822hpux9* | hpux10* | hpux11*)
8823  # Give a soname corresponding to the major version so that dld.sl refuses to
8824  # link against other versions.
8825  version_type=sunos
8826  need_lib_prefix=no
8827  need_version=no
8828  if test "$host_cpu" = ia64; then
8829    hardcode_into_libs=yes
8830    dynamic_linker="$host_os dld.so"
8831    shlibpath_var=LD_LIBRARY_PATH
8832    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8833    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8834    soname_spec='${libname}${release}.so$major'
8835    if test "X$HPUX_IA64_MODE" = X32; then
8836      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8837    else
8838      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8839    fi
8840    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8841  else
8842    dynamic_linker="$host_os dld.sl"
8843    shlibpath_var=SHLIB_PATH
8844    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8845    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
8846    soname_spec='${libname}${release}.sl$major'
8847  fi
8848  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8849  postinstall_cmds='chmod 555 $lib'
8850  ;;
8851
8852irix5* | irix6* | nonstopux*)
8853  case $host_os in
8854    nonstopux*) version_type=nonstopux ;;
8855    *)          version_type=irix ;;
8856  esac
8857  need_lib_prefix=no
8858  need_version=no
8859  soname_spec='${libname}${release}.so$major'
8860  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
8861  case $host_os in
8862  irix5* | nonstopux*)
8863    libsuff= shlibsuff=
8864    ;;
8865  *)
8866    case $LD in # libtool.m4 will add one of these switches to LD
8867    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
8868    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
8869    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
8870    *) libsuff= shlibsuff= libmagic=never-match;;
8871    esac
8872    ;;
8873  esac
8874  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8875  shlibpath_overrides_runpath=no
8876  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8877  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8878  ;;
8879
8880# No shared lib support for Linux oldld, aout, or coff.
8881linux*oldld* | linux*aout* | linux*coff*)
8882  dynamic_linker=no
8883  ;;
8884
8885# This must be Linux ELF.
8886linux*)
8887  version_type=linux
8888  need_lib_prefix=no
8889  need_version=no
8890  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8891  soname_spec='${libname}${release}.so$major'
8892  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8893  libsuff=
8894  if test "x$LINUX_64_MODE" = x64; then
8895    # Some platforms are per default 64-bit, so there's no /lib64
8896    if test -d /lib64; then
8897      libsuff=64
8898    fi
8899  fi
8900  shlibpath_var=LD_LIBRARY_PATH
8901  shlibpath_overrides_runpath=no
8902  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
8903  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8904  # This implies no fast_install, which is unacceptable.
8905  # Some rework will be needed to allow for fast_install
8906  # before this can be enabled.
8907  hardcode_into_libs=yes
8908
8909  # We used to test for /lib/ld.so.1 and disable shared libraries on
8910  # powerpc, because MkLinux only supported shared libraries with the
8911  # GNU dynamic linker.  Since this was broken with cross compilers,
8912  # most powerpc-linux boxes support dynamic linking these days and
8913  # people can always --disable-shared, the test was removed, and we
8914  # assume the GNU/Linux dynamic linker is in use.
8915  dynamic_linker='GNU/Linux ld.so'
8916  ;;
8917
8918netbsd*)
8919  version_type=sunos
8920  need_lib_prefix=no
8921  need_version=no
8922  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8923    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8924    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8925    dynamic_linker='NetBSD (a.out) ld.so'
8926  else
8927    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
8928    soname_spec='${libname}${release}.so$major'
8929    dynamic_linker='NetBSD ld.elf_so'
8930  fi
8931  shlibpath_var=LD_LIBRARY_PATH
8932  shlibpath_overrides_runpath=yes
8933  hardcode_into_libs=yes
8934  ;;
8935
8936newsos6)
8937  version_type=linux
8938  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8939  shlibpath_var=LD_LIBRARY_PATH
8940  shlibpath_overrides_runpath=yes
8941  ;;
8942
8943nto-qnx)
8944  version_type=linux
8945  need_lib_prefix=no
8946  need_version=no
8947  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8948  soname_spec='${libname}${release}.so$major'
8949  shlibpath_var=LD_LIBRARY_PATH
8950  shlibpath_overrides_runpath=yes
8951  ;;
8952
8953openbsd*)
8954  version_type=sunos
8955  need_lib_prefix=no
8956  need_version=no
8957  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8958  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8959  shlibpath_var=LD_LIBRARY_PATH
8960  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8961    case $host_os in
8962      openbsd2.[89] | openbsd2.[89].*)
8963	shlibpath_overrides_runpath=no
8964	;;
8965      *)
8966	shlibpath_overrides_runpath=yes
8967	;;
8968      esac
8969  else
8970    shlibpath_overrides_runpath=yes
8971  fi
8972  ;;
8973
8974os2*)
8975  libname_spec='$name'
8976  need_lib_prefix=no
8977  library_names_spec='$libname.dll $libname.a'
8978  dynamic_linker='OS/2 ld.exe'
8979  shlibpath_var=LIBPATH
8980  ;;
8981
8982osf3* | osf4* | osf5*)
8983  version_type=osf
8984  need_lib_prefix=no
8985  need_version=no
8986  soname_spec='${libname}${release}.so'
8987  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8988  shlibpath_var=LD_LIBRARY_PATH
8989  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8990  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8991  ;;
8992
8993sco3.2v5*)
8994  version_type=osf
8995  soname_spec='${libname}${release}.so$major'
8996  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8997  shlibpath_var=LD_LIBRARY_PATH
8998  ;;
8999
9000solaris*)
9001  version_type=linux
9002  need_lib_prefix=no
9003  need_version=no
9004  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9005  soname_spec='${libname}${release}.so$major'
9006  shlibpath_var=LD_LIBRARY_PATH
9007  shlibpath_overrides_runpath=yes
9008  hardcode_into_libs=yes
9009  # ldd complains unless libraries are executable
9010  postinstall_cmds='chmod +x $lib'
9011  ;;
9012
9013sunos4*)
9014  version_type=sunos
9015  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
9016  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9017  shlibpath_var=LD_LIBRARY_PATH
9018  shlibpath_overrides_runpath=yes
9019  if test "$with_gnu_ld" = yes; then
9020    need_lib_prefix=no
9021  fi
9022  need_version=yes
9023  ;;
9024
9025sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9026  version_type=linux
9027  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9028  soname_spec='${libname}${release}.so$major'
9029  shlibpath_var=LD_LIBRARY_PATH
9030  case $host_vendor in
9031    sni)
9032      shlibpath_overrides_runpath=no
9033      ;;
9034    motorola)
9035      need_lib_prefix=no
9036      need_version=no
9037      shlibpath_overrides_runpath=no
9038      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9039      ;;
9040  esac
9041  ;;
9042
9043sysv4*MP*)
9044  if test -d /usr/nec ;then
9045    version_type=linux
9046    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
9047    soname_spec='$libname.so.$major'
9048    shlibpath_var=LD_LIBRARY_PATH
9049  fi
9050  ;;
9051
9052uts4*)
9053  version_type=linux
9054  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9055  soname_spec='${libname}${release}.so$major'
9056  shlibpath_var=LD_LIBRARY_PATH
9057  ;;
9058
9059*)
9060  dynamic_linker=no
9061  ;;
9062esac
9063echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9064echo "${ECHO_T}$dynamic_linker" >&6
9065test "$dynamic_linker" = no && can_build_shared=no
9066
9067if test "x$enable_dlopen" != xyes; then
9068  enable_dlopen=unknown
9069  enable_dlopen_self=unknown
9070  enable_dlopen_self_static=unknown
9071else
9072  lt_cv_dlopen=no
9073  lt_cv_dlopen_libs=
9074
9075  case $host_os in
9076  beos*)
9077    lt_cv_dlopen="load_add_on"
9078    lt_cv_dlopen_libs=
9079    lt_cv_dlopen_self=yes
9080    ;;
9081
9082  cygwin* | mingw* | pw32*)
9083    lt_cv_dlopen="LoadLibrary"
9084    lt_cv_dlopen_libs=
9085   ;;
9086
9087  *)
9088    echo "$as_me:$LINENO: checking for shl_load" >&5
9089echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9090if test "${ac_cv_func_shl_load+set}" = set; then
9091  echo $ECHO_N "(cached) $ECHO_C" >&6
9092else
9093  cat >conftest.$ac_ext <<_ACEOF
9094#line $LINENO "configure"
9095/* confdefs.h.  */
9096_ACEOF
9097cat confdefs.h >>conftest.$ac_ext
9098cat >>conftest.$ac_ext <<_ACEOF
9099/* end confdefs.h.  */
9100/* System header to define __stub macros and hopefully few prototypes,
9101    which can conflict with char shl_load (); below.
9102    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9103    <limits.h> exists even on freestanding compilers.  */
9104#ifdef __STDC__
9105# include <limits.h>
9106#else
9107# include <assert.h>
9108#endif
9109/* Override any gcc2 internal prototype to avoid an error.  */
9110#ifdef __cplusplus
9111extern "C"
9112{
9113#endif
9114/* We use char because int might match the return type of a gcc2
9115   builtin and then its argument prototype would still apply.  */
9116char shl_load ();
9117/* The GNU C library defines this for functions which it implements
9118    to always fail with ENOSYS.  Some functions are actually named
9119    something starting with __ and the normal name is an alias.  */
9120#if defined (__stub_shl_load) || defined (__stub___shl_load)
9121choke me
9122#else
9123char (*f) () = shl_load;
9124#endif
9125#ifdef __cplusplus
9126}
9127#endif
9128
9129int
9130main ()
9131{
9132return f != shl_load;
9133  ;
9134  return 0;
9135}
9136_ACEOF
9137rm -f conftest.$ac_objext conftest$ac_exeext
9138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139  (eval $ac_link) 2>&5
9140  ac_status=$?
9141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142  (exit $ac_status); } &&
9143         { ac_try='test -s conftest$ac_exeext'
9144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145  (eval $ac_try) 2>&5
9146  ac_status=$?
9147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148  (exit $ac_status); }; }; then
9149  ac_cv_func_shl_load=yes
9150else
9151  echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
9154ac_cv_func_shl_load=no
9155fi
9156rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9157fi
9158echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9159echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9160if test $ac_cv_func_shl_load = yes; then
9161  lt_cv_dlopen="shl_load"
9162else
9163  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9164echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9165if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9166  echo $ECHO_N "(cached) $ECHO_C" >&6
9167else
9168  ac_check_lib_save_LIBS=$LIBS
9169LIBS="-ldld  $LIBS"
9170cat >conftest.$ac_ext <<_ACEOF
9171#line $LINENO "configure"
9172/* confdefs.h.  */
9173_ACEOF
9174cat confdefs.h >>conftest.$ac_ext
9175cat >>conftest.$ac_ext <<_ACEOF
9176/* end confdefs.h.  */
9177
9178/* Override any gcc2 internal prototype to avoid an error.  */
9179#ifdef __cplusplus
9180extern "C"
9181#endif
9182/* We use char because int might match the return type of a gcc2
9183   builtin and then its argument prototype would still apply.  */
9184char shl_load ();
9185int
9186main ()
9187{
9188shl_load ();
9189  ;
9190  return 0;
9191}
9192_ACEOF
9193rm -f conftest.$ac_objext conftest$ac_exeext
9194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195  (eval $ac_link) 2>&5
9196  ac_status=$?
9197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198  (exit $ac_status); } &&
9199         { ac_try='test -s conftest$ac_exeext'
9200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201  (eval $ac_try) 2>&5
9202  ac_status=$?
9203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204  (exit $ac_status); }; }; then
9205  ac_cv_lib_dld_shl_load=yes
9206else
9207  echo "$as_me: failed program was:" >&5
9208sed 's/^/| /' conftest.$ac_ext >&5
9209
9210ac_cv_lib_dld_shl_load=no
9211fi
9212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9213LIBS=$ac_check_lib_save_LIBS
9214fi
9215echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9216echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9217if test $ac_cv_lib_dld_shl_load = yes; then
9218  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9219else
9220  echo "$as_me:$LINENO: checking for dlopen" >&5
9221echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9222if test "${ac_cv_func_dlopen+set}" = set; then
9223  echo $ECHO_N "(cached) $ECHO_C" >&6
9224else
9225  cat >conftest.$ac_ext <<_ACEOF
9226#line $LINENO "configure"
9227/* confdefs.h.  */
9228_ACEOF
9229cat confdefs.h >>conftest.$ac_ext
9230cat >>conftest.$ac_ext <<_ACEOF
9231/* end confdefs.h.  */
9232/* System header to define __stub macros and hopefully few prototypes,
9233    which can conflict with char dlopen (); below.
9234    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235    <limits.h> exists even on freestanding compilers.  */
9236#ifdef __STDC__
9237# include <limits.h>
9238#else
9239# include <assert.h>
9240#endif
9241/* Override any gcc2 internal prototype to avoid an error.  */
9242#ifdef __cplusplus
9243extern "C"
9244{
9245#endif
9246/* We use char because int might match the return type of a gcc2
9247   builtin and then its argument prototype would still apply.  */
9248char dlopen ();
9249/* The GNU C library defines this for functions which it implements
9250    to always fail with ENOSYS.  Some functions are actually named
9251    something starting with __ and the normal name is an alias.  */
9252#if defined (__stub_dlopen) || defined (__stub___dlopen)
9253choke me
9254#else
9255char (*f) () = dlopen;
9256#endif
9257#ifdef __cplusplus
9258}
9259#endif
9260
9261int
9262main ()
9263{
9264return f != dlopen;
9265  ;
9266  return 0;
9267}
9268_ACEOF
9269rm -f conftest.$ac_objext conftest$ac_exeext
9270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271  (eval $ac_link) 2>&5
9272  ac_status=$?
9273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274  (exit $ac_status); } &&
9275         { ac_try='test -s conftest$ac_exeext'
9276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277  (eval $ac_try) 2>&5
9278  ac_status=$?
9279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280  (exit $ac_status); }; }; then
9281  ac_cv_func_dlopen=yes
9282else
9283  echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286ac_cv_func_dlopen=no
9287fi
9288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9289fi
9290echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9291echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9292if test $ac_cv_func_dlopen = yes; then
9293  lt_cv_dlopen="dlopen"
9294else
9295  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9296echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9297if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9298  echo $ECHO_N "(cached) $ECHO_C" >&6
9299else
9300  ac_check_lib_save_LIBS=$LIBS
9301LIBS="-ldl  $LIBS"
9302cat >conftest.$ac_ext <<_ACEOF
9303#line $LINENO "configure"
9304/* confdefs.h.  */
9305_ACEOF
9306cat confdefs.h >>conftest.$ac_ext
9307cat >>conftest.$ac_ext <<_ACEOF
9308/* end confdefs.h.  */
9309
9310/* Override any gcc2 internal prototype to avoid an error.  */
9311#ifdef __cplusplus
9312extern "C"
9313#endif
9314/* We use char because int might match the return type of a gcc2
9315   builtin and then its argument prototype would still apply.  */
9316char dlopen ();
9317int
9318main ()
9319{
9320dlopen ();
9321  ;
9322  return 0;
9323}
9324_ACEOF
9325rm -f conftest.$ac_objext conftest$ac_exeext
9326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327  (eval $ac_link) 2>&5
9328  ac_status=$?
9329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330  (exit $ac_status); } &&
9331         { ac_try='test -s conftest$ac_exeext'
9332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333  (eval $ac_try) 2>&5
9334  ac_status=$?
9335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336  (exit $ac_status); }; }; then
9337  ac_cv_lib_dl_dlopen=yes
9338else
9339  echo "$as_me: failed program was:" >&5
9340sed 's/^/| /' conftest.$ac_ext >&5
9341
9342ac_cv_lib_dl_dlopen=no
9343fi
9344rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9345LIBS=$ac_check_lib_save_LIBS
9346fi
9347echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9348echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9349if test $ac_cv_lib_dl_dlopen = yes; then
9350  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9351else
9352  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9353echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9354if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9355  echo $ECHO_N "(cached) $ECHO_C" >&6
9356else
9357  ac_check_lib_save_LIBS=$LIBS
9358LIBS="-lsvld  $LIBS"
9359cat >conftest.$ac_ext <<_ACEOF
9360#line $LINENO "configure"
9361/* confdefs.h.  */
9362_ACEOF
9363cat confdefs.h >>conftest.$ac_ext
9364cat >>conftest.$ac_ext <<_ACEOF
9365/* end confdefs.h.  */
9366
9367/* Override any gcc2 internal prototype to avoid an error.  */
9368#ifdef __cplusplus
9369extern "C"
9370#endif
9371/* We use char because int might match the return type of a gcc2
9372   builtin and then its argument prototype would still apply.  */
9373char dlopen ();
9374int
9375main ()
9376{
9377dlopen ();
9378  ;
9379  return 0;
9380}
9381_ACEOF
9382rm -f conftest.$ac_objext conftest$ac_exeext
9383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9384  (eval $ac_link) 2>&5
9385  ac_status=$?
9386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387  (exit $ac_status); } &&
9388         { ac_try='test -s conftest$ac_exeext'
9389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390  (eval $ac_try) 2>&5
9391  ac_status=$?
9392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393  (exit $ac_status); }; }; then
9394  ac_cv_lib_svld_dlopen=yes
9395else
9396  echo "$as_me: failed program was:" >&5
9397sed 's/^/| /' conftest.$ac_ext >&5
9398
9399ac_cv_lib_svld_dlopen=no
9400fi
9401rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9402LIBS=$ac_check_lib_save_LIBS
9403fi
9404echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9405echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9406if test $ac_cv_lib_svld_dlopen = yes; then
9407  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9408else
9409  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9410echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9411if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9412  echo $ECHO_N "(cached) $ECHO_C" >&6
9413else
9414  ac_check_lib_save_LIBS=$LIBS
9415LIBS="-ldld  $LIBS"
9416cat >conftest.$ac_ext <<_ACEOF
9417#line $LINENO "configure"
9418/* confdefs.h.  */
9419_ACEOF
9420cat confdefs.h >>conftest.$ac_ext
9421cat >>conftest.$ac_ext <<_ACEOF
9422/* end confdefs.h.  */
9423
9424/* Override any gcc2 internal prototype to avoid an error.  */
9425#ifdef __cplusplus
9426extern "C"
9427#endif
9428/* We use char because int might match the return type of a gcc2
9429   builtin and then its argument prototype would still apply.  */
9430char dld_link ();
9431int
9432main ()
9433{
9434dld_link ();
9435  ;
9436  return 0;
9437}
9438_ACEOF
9439rm -f conftest.$ac_objext conftest$ac_exeext
9440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9441  (eval $ac_link) 2>&5
9442  ac_status=$?
9443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444  (exit $ac_status); } &&
9445         { ac_try='test -s conftest$ac_exeext'
9446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447  (eval $ac_try) 2>&5
9448  ac_status=$?
9449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450  (exit $ac_status); }; }; then
9451  ac_cv_lib_dld_dld_link=yes
9452else
9453  echo "$as_me: failed program was:" >&5
9454sed 's/^/| /' conftest.$ac_ext >&5
9455
9456ac_cv_lib_dld_dld_link=no
9457fi
9458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9459LIBS=$ac_check_lib_save_LIBS
9460fi
9461echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9462echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9463if test $ac_cv_lib_dld_dld_link = yes; then
9464  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9465fi
9466
9467
9468fi
9469
9470
9471fi
9472
9473
9474fi
9475
9476
9477fi
9478
9479
9480fi
9481
9482    ;;
9483  esac
9484
9485  if test "x$lt_cv_dlopen" != xno; then
9486    enable_dlopen=yes
9487  else
9488    enable_dlopen=no
9489  fi
9490
9491  case $lt_cv_dlopen in
9492  dlopen)
9493    save_CPPFLAGS="$CPPFLAGS"
9494    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9495
9496    save_LDFLAGS="$LDFLAGS"
9497    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9498
9499    save_LIBS="$LIBS"
9500    LIBS="$lt_cv_dlopen_libs $LIBS"
9501
9502    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9503echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9504if test "${lt_cv_dlopen_self+set}" = set; then
9505  echo $ECHO_N "(cached) $ECHO_C" >&6
9506else
9507  	  if test "$cross_compiling" = yes; then :
9508  lt_cv_dlopen_self=cross
9509else
9510  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9511  lt_status=$lt_dlunknown
9512  cat > conftest.$ac_ext <<EOF
9513#line 9513 "configure"
9514#include "confdefs.h"
9515
9516#if HAVE_DLFCN_H
9517#include <dlfcn.h>
9518#endif
9519
9520#include <stdio.h>
9521
9522#ifdef RTLD_GLOBAL
9523#  define LT_DLGLOBAL		RTLD_GLOBAL
9524#else
9525#  ifdef DL_GLOBAL
9526#    define LT_DLGLOBAL		DL_GLOBAL
9527#  else
9528#    define LT_DLGLOBAL		0
9529#  endif
9530#endif
9531
9532/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9533   find out it does not work in some platform. */
9534#ifndef LT_DLLAZY_OR_NOW
9535#  ifdef RTLD_LAZY
9536#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9537#  else
9538#    ifdef DL_LAZY
9539#      define LT_DLLAZY_OR_NOW		DL_LAZY
9540#    else
9541#      ifdef RTLD_NOW
9542#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9543#      else
9544#        ifdef DL_NOW
9545#          define LT_DLLAZY_OR_NOW	DL_NOW
9546#        else
9547#          define LT_DLLAZY_OR_NOW	0
9548#        endif
9549#      endif
9550#    endif
9551#  endif
9552#endif
9553
9554#ifdef __cplusplus
9555extern "C" void exit (int);
9556#endif
9557
9558void fnord() { int i=42;}
9559int main ()
9560{
9561  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9562  int status = $lt_dlunknown;
9563
9564  if (self)
9565    {
9566      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9567      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9568      /* dlclose (self); */
9569    }
9570
9571    exit (status);
9572}
9573EOF
9574  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575  (eval $ac_link) 2>&5
9576  ac_status=$?
9577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9579    (./conftest; exit; ) 2>/dev/null
9580    lt_status=$?
9581    case x$lt_status in
9582      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9583      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9584      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9585    esac
9586  else :
9587    # compilation failed
9588    lt_cv_dlopen_self=no
9589  fi
9590fi
9591rm -fr conftest*
9592
9593
9594fi
9595echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9596echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9597
9598    if test "x$lt_cv_dlopen_self" = xyes; then
9599      LDFLAGS="$LDFLAGS $link_static_flag"
9600      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9601echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9602if test "${lt_cv_dlopen_self_static+set}" = set; then
9603  echo $ECHO_N "(cached) $ECHO_C" >&6
9604else
9605  	  if test "$cross_compiling" = yes; then :
9606  lt_cv_dlopen_self_static=cross
9607else
9608  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9609  lt_status=$lt_dlunknown
9610  cat > conftest.$ac_ext <<EOF
9611#line 9611 "configure"
9612#include "confdefs.h"
9613
9614#if HAVE_DLFCN_H
9615#include <dlfcn.h>
9616#endif
9617
9618#include <stdio.h>
9619
9620#ifdef RTLD_GLOBAL
9621#  define LT_DLGLOBAL		RTLD_GLOBAL
9622#else
9623#  ifdef DL_GLOBAL
9624#    define LT_DLGLOBAL		DL_GLOBAL
9625#  else
9626#    define LT_DLGLOBAL		0
9627#  endif
9628#endif
9629
9630/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9631   find out it does not work in some platform. */
9632#ifndef LT_DLLAZY_OR_NOW
9633#  ifdef RTLD_LAZY
9634#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9635#  else
9636#    ifdef DL_LAZY
9637#      define LT_DLLAZY_OR_NOW		DL_LAZY
9638#    else
9639#      ifdef RTLD_NOW
9640#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9641#      else
9642#        ifdef DL_NOW
9643#          define LT_DLLAZY_OR_NOW	DL_NOW
9644#        else
9645#          define LT_DLLAZY_OR_NOW	0
9646#        endif
9647#      endif
9648#    endif
9649#  endif
9650#endif
9651
9652#ifdef __cplusplus
9653extern "C" void exit (int);
9654#endif
9655
9656void fnord() { int i=42;}
9657int main ()
9658{
9659  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9660  int status = $lt_dlunknown;
9661
9662  if (self)
9663    {
9664      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9665      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9666      /* dlclose (self); */
9667    }
9668
9669    exit (status);
9670}
9671EOF
9672  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673  (eval $ac_link) 2>&5
9674  ac_status=$?
9675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9677    (./conftest; exit; ) 2>/dev/null
9678    lt_status=$?
9679    case x$lt_status in
9680      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9681      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9682      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9683    esac
9684  else :
9685    # compilation failed
9686    lt_cv_dlopen_self_static=no
9687  fi
9688fi
9689rm -fr conftest*
9690
9691
9692fi
9693echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9694echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9695    fi
9696
9697    CPPFLAGS="$save_CPPFLAGS"
9698    LDFLAGS="$save_LDFLAGS"
9699    LIBS="$save_LIBS"
9700    ;;
9701  esac
9702
9703  case $lt_cv_dlopen_self in
9704  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9705  *) enable_dlopen_self=unknown ;;
9706  esac
9707
9708  case $lt_cv_dlopen_self_static in
9709  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9710  *) enable_dlopen_self_static=unknown ;;
9711  esac
9712fi
9713
9714
9715# Report which librarie types wil actually be built
9716echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9717echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9718echo "$as_me:$LINENO: result: $can_build_shared" >&5
9719echo "${ECHO_T}$can_build_shared" >&6
9720
9721echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9722echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9723test "$can_build_shared" = "no" && enable_shared=no
9724
9725# On AIX, shared libraries and static libraries use the same namespace, and
9726# are all built from PIC.
9727case "$host_os" in
9728aix3*)
9729  test "$enable_shared" = yes && enable_static=no
9730  if test -n "$RANLIB"; then
9731    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9732    postinstall_cmds='$RANLIB $lib'
9733  fi
9734  ;;
9735
9736aix4*)
9737  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9738    test "$enable_shared" = yes && enable_static=no
9739  fi
9740  ;;
9741esac
9742echo "$as_me:$LINENO: result: $enable_shared" >&5
9743echo "${ECHO_T}$enable_shared" >&6
9744
9745echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9746echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9747# Make sure either enable_shared or enable_static is yes.
9748test "$enable_shared" = yes || enable_static=yes
9749echo "$as_me:$LINENO: result: $enable_static" >&5
9750echo "${ECHO_T}$enable_static" >&6
9751
9752# The else clause should only fire when bootstrapping the
9753# libtool distribution, otherwise you forgot to ship ltmain.sh
9754# with your package, and you will get complaints that there are
9755# no rules to generate ltmain.sh.
9756if test -f "$ltmain"; then
9757  # Now quote all the things that may contain metacharacters while being
9758  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9759  # variables and quote the copies for generation of the libtool script.
9760  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
9761    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9762    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9763    deplibs_check_method reload_flag reload_cmds need_locks \
9764    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9765    lt_cv_sys_global_symbol_to_c_name_address \
9766    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9767    old_postinstall_cmds old_postuninstall_cmds \
9768    compiler \
9769    CC \
9770    LD \
9771    lt_prog_compiler_wl \
9772    lt_prog_compiler_pic \
9773    lt_prog_compiler_static \
9774    lt_prog_compiler_no_builtin_flag \
9775    export_dynamic_flag_spec \
9776    thread_safe_flag_spec \
9777    whole_archive_flag_spec \
9778    old_archive_cmds \
9779    old_archive_from_new_cmds \
9780    predep_objects \
9781    postdep_objects \
9782    predeps \
9783    postdeps \
9784    compiler_lib_search_path \
9785    archive_cmds \
9786    archive_expsym_cmds \
9787    postinstall_cmds \
9788    postuninstall_cmds \
9789    old_archive_from_expsyms_cmds \
9790    allow_undefined_flag \
9791    no_undefined_flag \
9792    export_symbols_cmds \
9793    hardcode_libdir_flag_spec \
9794    hardcode_libdir_separator \
9795    lt_cv_prog_compiler_c_o \
9796    exclude_expsyms \
9797    include_expsyms; do
9798
9799    case $var in
9800    old_archive_cmds | \
9801    old_archive_from_new_cmds | \
9802    archive_cmds | \
9803    archive_expsym_cmds | \
9804    old_archive_from_expsyms_cmds | \
9805    export_symbols_cmds | \
9806    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9807    postinstall_cmds | postuninstall_cmds | \
9808    old_postinstall_cmds | old_postuninstall_cmds | \
9809    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9810      # Double-quote double-evaled strings.
9811      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9812      ;;
9813    *)
9814      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9815      ;;
9816    esac
9817  done
9818
9819  case $lt_echo in
9820  *'\$0 --fallback-echo"')
9821    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9822    ;;
9823  esac
9824
9825cfgfile="${ofile}T"
9826  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9827  $rm -f "$cfgfile"
9828  { echo "$as_me:$LINENO: creating $ofile" >&5
9829echo "$as_me: creating $ofile" >&6;}
9830
9831  cat <<__EOF__ >> "$cfgfile"
9832#! $SHELL
9833
9834# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9835# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9836# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9837#
9838# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9839# Free Software Foundation, Inc.
9840#
9841# This file is part of GNU Libtool:
9842# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9843#
9844# This program is free software; you can redistribute it and/or modify
9845# it under the terms of the GNU General Public License as published by
9846# the Free Software Foundation; either version 2 of the License, or
9847# (at your option) any later version.
9848#
9849# This program is distributed in the hope that it will be useful, but
9850# WITHOUT ANY WARRANTY; without even the implied warranty of
9851# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9852# General Public License for more details.
9853#
9854# You should have received a copy of the GNU General Public License
9855# along with this program; if not, write to the Free Software
9856# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9857#
9858# As a special exception to the GNU General Public License, if you
9859# distribute this file as part of a program that contains a
9860# configuration script generated by Autoconf, you may include it under
9861# the same distribution terms that you use for the rest of that program.
9862
9863# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9864Xsed="sed -e s/^X//"
9865
9866# The HP-UX ksh and POSIX shell print the target directory to stdout
9867# if CDPATH is set.
9868if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9869
9870# The names of the tagged configurations supported by this script.
9871available_tags=
9872
9873# ### BEGIN LIBTOOL CONFIG
9874
9875# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9876
9877# Shell to use when invoking shell scripts.
9878SHELL=$lt_SHELL
9879
9880# Whether or not to build shared libraries.
9881build_libtool_libs=$enable_shared
9882
9883# Whether or not to build static libraries.
9884build_old_libs=$enable_static
9885
9886# Whether or not to add -lc for building shared libraries.
9887build_libtool_need_lc=$archive_cmds_need_lc
9888
9889# Whether or not to optimize for fast installation.
9890fast_install=$enable_fast_install
9891
9892# The host system.
9893host_alias=$host_alias
9894host=$host
9895
9896# An echo program that does not interpret backslashes.
9897echo=$lt_echo
9898
9899# The archiver.
9900AR=$lt_AR
9901AR_FLAGS=$lt_AR_FLAGS
9902
9903# A C compiler.
9904LTCC=$lt_LTCC
9905
9906# A language-specific compiler.
9907CC=$lt_compiler
9908
9909# Is the compiler the GNU C compiler?
9910with_gcc=$GCC
9911
9912# The linker used to build libraries.
9913LD=$lt_LD
9914
9915# Whether we need hard or soft links.
9916LN_S=$lt_LN_S
9917
9918# A BSD-compatible nm program.
9919NM=$lt_NM
9920
9921# A sed program that does not truncate output.
9922SED=$lt_SED
9923
9924# A symbol stripping program
9925STRIP=$STRIP
9926
9927# Used to examine libraries when file_magic_cmd begins "file"
9928MAGIC_CMD=$MAGIC_CMD
9929
9930# Used on cygwin: DLL creation program.
9931DLLTOOL="$DLLTOOL"
9932
9933# Used on cygwin: object dumper.
9934OBJDUMP="$OBJDUMP"
9935
9936# Used on cygwin: assembler.
9937AS="$AS"
9938
9939# The name of the directory that contains temporary libtool files.
9940objdir=$objdir
9941
9942# How to create reloadable object files.
9943reload_flag=$lt_reload_flag
9944reload_cmds=$lt_reload_cmds
9945
9946# How to pass a linker flag through the compiler.
9947wl=$lt_lt_prog_compiler_wl
9948
9949# Object file suffix (normally "o").
9950objext="$ac_objext"
9951
9952# Old archive suffix (normally "a").
9953libext="$libext"
9954
9955# Executable file suffix (normally "").
9956exeext="$exeext"
9957
9958# Additional compiler flags for building library objects.
9959pic_flag=$lt_lt_prog_compiler_pic
9960pic_mode=$pic_mode
9961
9962# What is the maximum length of a command?
9963max_cmd_len=$lt_cv_sys_max_cmd_len
9964
9965# Does compiler simultaneously support -c and -o options?
9966compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9967
9968# Must we lock files when doing compilation ?
9969need_locks=$lt_need_locks
9970
9971# Do we need the lib prefix for modules?
9972need_lib_prefix=$need_lib_prefix
9973
9974# Do we need a version for libraries?
9975need_version=$need_version
9976
9977# Whether dlopen is supported.
9978dlopen_support=$enable_dlopen
9979
9980# Whether dlopen of programs is supported.
9981dlopen_self=$enable_dlopen_self
9982
9983# Whether dlopen of statically linked programs is supported.
9984dlopen_self_static=$enable_dlopen_self_static
9985
9986# Compiler flag to prevent dynamic linking.
9987link_static_flag=$lt_lt_prog_compiler_static
9988
9989# Compiler flag to turn off builtin functions.
9990no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9991
9992# Compiler flag to allow reflexive dlopens.
9993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9994
9995# Compiler flag to generate shared objects directly from archives.
9996whole_archive_flag_spec=$lt_whole_archive_flag_spec
9997
9998# Compiler flag to generate thread-safe objects.
9999thread_safe_flag_spec=$lt_thread_safe_flag_spec
10000
10001# Library versioning type.
10002version_type=$version_type
10003
10004# Format of library name prefix.
10005libname_spec=$lt_libname_spec
10006
10007# List of archive names.  First name is the real one, the rest are links.
10008# The last name is the one that the linker finds with -lNAME.
10009library_names_spec=$lt_library_names_spec
10010
10011# The coded name of the library, if different from the real name.
10012soname_spec=$lt_soname_spec
10013
10014# Commands used to build and install an old-style archive.
10015RANLIB=$lt_RANLIB
10016old_archive_cmds=$lt_old_archive_cmds
10017old_postinstall_cmds=$lt_old_postinstall_cmds
10018old_postuninstall_cmds=$lt_old_postuninstall_cmds
10019
10020# Create an old-style archive from a shared archive.
10021old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10022
10023# Create a temporary old-style archive to link instead of a shared archive.
10024old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10025
10026# Commands used to build and install a shared archive.
10027archive_cmds=$lt_archive_cmds
10028archive_expsym_cmds=$lt_archive_expsym_cmds
10029postinstall_cmds=$lt_postinstall_cmds
10030postuninstall_cmds=$lt_postuninstall_cmds
10031
10032# Commands to strip libraries.
10033old_striplib=$lt_old_striplib
10034striplib=$lt_striplib
10035
10036# Dependencies to place before the objects being linked to create a
10037# shared library.
10038predep_objects=$lt_predep_objects
10039
10040# Dependencies to place after the objects being linked to create a
10041# shared library.
10042postdep_objects=$lt_postdep_objects
10043
10044# Dependencies to place before the objects being linked to create a
10045# shared library.
10046predeps=$lt_predeps
10047
10048# Dependencies to place after the objects being linked to create a
10049# shared library.
10050postdeps=$lt_postdeps
10051
10052# The library search path used internally by the compiler when linking
10053# a shared library.
10054compiler_lib_search_path=$lt_compiler_lib_search_path
10055
10056# Method to check whether dependent libraries are shared objects.
10057deplibs_check_method=$lt_deplibs_check_method
10058
10059# Command to use when deplibs_check_method == file_magic.
10060file_magic_cmd=$lt_file_magic_cmd
10061
10062# Flag that allows shared libraries with undefined symbols to be built.
10063allow_undefined_flag=$lt_allow_undefined_flag
10064
10065# Flag that forces no undefined symbols.
10066no_undefined_flag=$lt_no_undefined_flag
10067
10068# Commands used to finish a libtool library installation in a directory.
10069finish_cmds=$lt_finish_cmds
10070
10071# Same as above, but a single script fragment to be evaled but not shown.
10072finish_eval=$lt_finish_eval
10073
10074# Take the output of nm and produce a listing of raw symbols and C names.
10075global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10076
10077# Transform the output of nm in a proper C declaration
10078global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10079
10080# Transform the output of nm in a C name address pair
10081global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10082
10083# This is the shared library runtime path variable.
10084runpath_var=$runpath_var
10085
10086# This is the shared library path variable.
10087shlibpath_var=$shlibpath_var
10088
10089# Is shlibpath searched before the hard-coded library search path?
10090shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10091
10092# How to hardcode a shared library path into an executable.
10093hardcode_action=$hardcode_action
10094
10095# Whether we should hardcode library paths into libraries.
10096hardcode_into_libs=$hardcode_into_libs
10097
10098# Flag to hardcode \$libdir into a binary during linking.
10099# This must work even if \$libdir does not exist.
10100hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10101
10102# Whether we need a single -rpath flag with a separated argument.
10103hardcode_libdir_separator=$lt_hardcode_libdir_separator
10104
10105# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
10106# resulting binary.
10107hardcode_direct=$hardcode_direct
10108
10109# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10110# resulting binary.
10111hardcode_minus_L=$hardcode_minus_L
10112
10113# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10114# the resulting binary.
10115hardcode_shlibpath_var=$hardcode_shlibpath_var
10116
10117# Variables whose values should be saved in libtool wrapper scripts and
10118# restored at relink time.
10119variables_saved_for_relink="$variables_saved_for_relink"
10120
10121# Whether libtool must link a program against all its dependency libraries.
10122link_all_deplibs=$link_all_deplibs
10123
10124# Compile-time system search path for libraries
10125sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10126
10127# Run-time system search path for libraries
10128sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10129
10130# Fix the shell variable \$srcfile for the compiler.
10131fix_srcfile_path="$fix_srcfile_path"
10132
10133# Set to yes if exported symbols are required.
10134always_export_symbols=$always_export_symbols
10135
10136# The commands to list exported symbols.
10137export_symbols_cmds=$lt_export_symbols_cmds
10138
10139# The commands to extract the exported symbol list from a shared archive.
10140extract_expsyms_cmds=$lt_extract_expsyms_cmds
10141
10142# Symbols that should not be listed in the preloaded symbols.
10143exclude_expsyms=$lt_exclude_expsyms
10144
10145# Symbols that must always be exported.
10146include_expsyms=$lt_include_expsyms
10147
10148# ### END LIBTOOL CONFIG
10149
10150__EOF__
10151
10152
10153  case $host_os in
10154  aix3*)
10155    cat <<\EOF >> "$cfgfile"
10156
10157# AIX sometimes has problems with the GCC collect2 program.  For some
10158# reason, if we set the COLLECT_NAMES environment variable, the problems
10159# vanish in a puff of smoke.
10160if test "X${COLLECT_NAMES+set}" != Xset; then
10161  COLLECT_NAMES=
10162  export COLLECT_NAMES
10163fi
10164EOF
10165    ;;
10166
10167  cygwin* | mingw* | pw32* | os2*)
10168    cat <<'EOF' >> "$cfgfile"
10169    # This is a source program that is used to create dlls on Windows
10170    # Don't remove nor modify the starting and closing comments
10171
10172# /* ltdll.c starts here */
10173# #define WIN32_LEAN_AND_MEAN
10174# #include <windows.h>
10175# #undef WIN32_LEAN_AND_MEAN
10176# #include <stdio.h>
10177#
10178# #ifndef __CYGWIN__
10179# #  ifdef __CYGWIN32__
10180# #    define __CYGWIN__ __CYGWIN32__
10181# #  endif
10182# #endif
10183#
10184# #ifdef __cplusplus
10185# extern "C" {
10186# #endif
10187# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
10188# #ifdef __cplusplus
10189# }
10190# #endif
10191#
10192# #ifdef __CYGWIN__
10193# #include <cygwin/cygwin_dll.h>
10194# DECLARE_CYGWIN_DLL( DllMain );
10195# #endif
10196# HINSTANCE __hDllInstance_base;
10197#
10198# BOOL APIENTRY
10199# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
10200# {
10201#   __hDllInstance_base = hInst;
10202#   return TRUE;
10203# }
10204# /* ltdll.c ends here */
10205
10206    # This is a source program that is used to create import libraries
10207    # on Windows for dlls which lack them. Don't remove nor modify the
10208    # starting and closing comments
10209
10210# /* impgen.c starts here */
10211# /*   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
10212#
10213#  This file is part of GNU libtool.
10214#
10215#  This program is free software; you can redistribute it and/or modify
10216#  it under the terms of the GNU General Public License as published by
10217#  the Free Software Foundation; either version 2 of the License, or
10218#  (at your option) any later version.
10219#
10220#  This program is distributed in the hope that it will be useful,
10221#  but WITHOUT ANY WARRANTY; without even the implied warranty of
10222#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10223#  GNU General Public License for more details.
10224#
10225#  You should have received a copy of the GNU General Public License
10226#  along with this program; if not, write to the Free Software
10227#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10228#  */
10229#
10230# #include <stdio.h>		/* for printf() */
10231# #include <unistd.h>		/* for open(), lseek(), read() */
10232# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
10233# #include <string.h>		/* for strdup() */
10234#
10235# /* O_BINARY isn't required (or even defined sometimes) under Unix */
10236# #ifndef O_BINARY
10237# #define O_BINARY 0
10238# #endif
10239#
10240# static unsigned int
10241# pe_get16 (fd, offset)
10242#      int fd;
10243#      int offset;
10244# {
10245#   unsigned char b[2];
10246#   lseek (fd, offset, SEEK_SET);
10247#   read (fd, b, 2);
10248#   return b[0] + (b[1]<<8);
10249# }
10250#
10251# static unsigned int
10252# pe_get32 (fd, offset)
10253#     int fd;
10254#     int offset;
10255# {
10256#   unsigned char b[4];
10257#   lseek (fd, offset, SEEK_SET);
10258#   read (fd, b, 4);
10259#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
10260# }
10261#
10262# static unsigned int
10263# pe_as32 (ptr)
10264#      void *ptr;
10265# {
10266#   unsigned char *b = ptr;
10267#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
10268# }
10269#
10270# int
10271# main (argc, argv)
10272#     int argc;
10273#     char *argv[];
10274# {
10275#     int dll;
10276#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
10277#     unsigned long export_rva, export_size, nsections, secptr, expptr;
10278#     unsigned long name_rvas, nexp;
10279#     unsigned char *expdata, *erva;
10280#     char *filename, *dll_name;
10281#
10282#     filename = argv[1];
10283#
10284#     dll = open(filename, O_RDONLY|O_BINARY);
10285#     if (dll < 1)
10286# 	return 1;
10287#
10288#     dll_name = filename;
10289#
10290#     for (i=0; filename[i]; i++)
10291# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
10292# 	    dll_name = filename + i +1;
10293#
10294#     pe_header_offset = pe_get32 (dll, 0x3c);
10295#     opthdr_ofs = pe_header_offset + 4 + 20;
10296#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
10297#
10298#     if (num_entries < 1) /* no exports */
10299# 	return 1;
10300#
10301#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
10302#     export_size = pe_get32 (dll, opthdr_ofs + 100);
10303#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
10304#     secptr = (pe_header_offset + 4 + 20 +
10305# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
10306#
10307#     expptr = 0;
10308#     for (i = 0; i < nsections; i++)
10309#     {
10310# 	char sname[8];
10311# 	unsigned long secptr1 = secptr + 40 * i;
10312# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
10313# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
10314# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
10315# 	lseek(dll, secptr1, SEEK_SET);
10316# 	read(dll, sname, 8);
10317# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
10318# 	{
10319# 	    expptr = fptr + (export_rva - vaddr);
10320# 	    if (export_rva + export_size > vaddr + vsize)
10321# 		export_size = vsize - (export_rva - vaddr);
10322# 	    break;
10323# 	}
10324#     }
10325#
10326#     expdata = (unsigned char*)malloc(export_size);
10327#     lseek (dll, expptr, SEEK_SET);
10328#     read (dll, expdata, export_size);
10329#     erva = expdata - export_rva;
10330#
10331#     nexp = pe_as32 (expdata+24);
10332#     name_rvas = pe_as32 (expdata+32);
10333#
10334#     printf ("EXPORTS\n");
10335#     for (i = 0; i<nexp; i++)
10336#     {
10337# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
10338# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
10339#     }
10340#
10341#     return 0;
10342# }
10343# /* impgen.c ends here */
10344
10345EOF
10346    ;;
10347  esac
10348
10349  # We use sed instead of cat because bash on DJGPP gets confused if
10350  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10351  # text mode, it properly converts lines to CR/LF.  This bash problem
10352  # is reportedly fixed, but why not run on old versions too?
10353  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10354
10355  mv -f "$cfgfile" "$ofile" || \
10356    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10357  chmod +x "$ofile"
10358
10359else
10360  # If there is no Makefile yet, we rely on a make rule to execute
10361  # `config.status --recheck' to rerun these tests and create the
10362  # libtool script then.
10363  test -f Makefile && make "$ltmain"
10364fi
10365
10366
10367ac_ext=c
10368ac_cpp='$CPP $CPPFLAGS'
10369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10371ac_compiler_gnu=$ac_cv_c_compiler_gnu
10372
10373CC="$lt_save_CC"
10374
10375
10376# Check whether --with-tags or --without-tags was given.
10377if test "${with_tags+set}" = set; then
10378  withval="$with_tags"
10379  tagnames="$withval"
10380else
10381  tagnames="CXX,GCJ"
10382    case $host_os in
10383      mingw*|cygwin*) tagnames="$tagnames,RC" ;;
10384    esac
10385fi;
10386
10387if test -f "$ltmain" && test -n "$tagnames"; then
10388  if test ! -f "${ofile}"; then
10389    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10390echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10391  fi
10392
10393  if test -z "$LTCC"; then
10394    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10395    if test -z "$LTCC"; then
10396      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10397echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10398    else
10399      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10400echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10401    fi
10402  fi
10403
10404  # Extract list of available tagged configurations in $ofile.
10405  # Note that this assumes the entire list is on one line.
10406  available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10407
10408  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10409  for tagname in $tagnames; do
10410    IFS="$lt_save_ifs"
10411    # Check whether tagname contains only valid characters
10412    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10413    "") ;;
10414    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10415echo "$as_me: error: invalid tag name: $tagname" >&2;}
10416   { (exit 1); exit 1; }; }
10417	;;
10418    esac
10419
10420    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10421    then
10422      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10423echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10424   { (exit 1); exit 1; }; }
10425    fi
10426
10427    # Update the list of available tags.
10428    if test -n "$tagname"; then
10429      echo appending configuration tag \"$tagname\" to $ofile
10430
10431      case $tagname in
10432      CXX)
10433	ac_ext=cc
10434ac_cpp='$CXXCPP $CPPFLAGS'
10435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10438
10439
10440
10441
10442archive_cmds_need_lc_CXX=no
10443allow_undefined_flag_CXX=
10444always_export_symbols_CXX=no
10445archive_expsym_cmds_CXX=
10446export_dynamic_flag_spec_CXX=
10447hardcode_direct_CXX=no
10448hardcode_libdir_flag_spec_CXX=
10449hardcode_libdir_separator_CXX=
10450hardcode_minus_L_CXX=no
10451link_all_deplibs_CXX=unknown
10452old_archive_cmds_CXX=$old_archive_cmds
10453no_undefined_flag_CXX=
10454whole_archive_flag_spec_CXX=
10455
10456# Dependencies to place before and after the object being linked:
10457predep_objects_CXX=
10458postdep_objects_CXX=
10459predeps_CXX=
10460postdeps_CXX=
10461compiler_lib_search_path_CXX=
10462
10463# Source file extension for C test sources.
10464ac_ext=cc
10465
10466# Object file extension for compiled C test sources.
10467objext=o
10468objext_CXX=$objext
10469
10470# Code to be used in simple compile tests
10471lt_simple_compile_test_code="int some_variable = 0;"
10472
10473# Code to be used in simple link tests
10474lt_simple_link_test_code='int main(int char *) { return(0); }'
10475
10476# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10477
10478# If no C compiler was specified, use CC.
10479LTCC=${LTCC-"$CC"}
10480
10481# Allow CC to be a program name with arguments.
10482set dummy $CC
10483compiler="$2"
10484
10485
10486# Allow CC to be a program name with arguments.
10487lt_save_CC="$CC"
10488CC=${CXX-"c++"}
10489set dummy $CC
10490compiler="$2"
10491compiler_CXX=$CC
10492cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10493
10494# We don't want -fno-exception wen compiling C++ code, so set the
10495# no_builtin_flag separately
10496if test "$GXX" = yes; then
10497  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10498else
10499  lt_prog_compiler_no_builtin_flag_CXX=
10500fi
10501
10502if test "$GXX" = yes; then
10503  # Set up default GNU C++ configuration
10504
10505  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10506  # archiving commands below assume that GNU ld is being used.
10507  if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
10508      egrep 'GNU ld' > /dev/null; then
10509    with_gnu_ld=yes
10510
10511    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10512    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'
10513
10514    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10515    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10516
10517    # If archive_cmds runs LD, not CC, wlarc should be empty
10518    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10519    #     investigate it a little bit more. (MM)
10520    wlarc='${wl}'
10521
10522    # ancient GNU ld didn't support --whole-archive et. al.
10523    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10524	egrep 'no-whole-archive' > /dev/null; then
10525      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10526    else
10527      whole_archive_flag_spec_CXX=
10528    fi
10529  else
10530    with_gnu_ld=no
10531    wlarc=
10532
10533    # A generic and very simple default shared library creation
10534    # command for GNU C++ for the case where it uses the native
10535    # linker, instead of GNU ld.  If possible, this setting should
10536    # overridden to take advantage of the native linker features on
10537    # the platform it is being used on.
10538    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10539  fi
10540
10541  # Commands to make compiler produce verbose output that lists
10542  # what "hidden" libraries, object files and flags are used when
10543  # linking a shared library.
10544  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
10545
10546else
10547  GXX=no
10548  with_gnu_ld=no
10549  wlarc=
10550fi
10551
10552# PORTME: fill in a description of your system's C++ link characteristics
10553echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10554echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10555ld_shlibs_CXX=yes
10556case $host_os in
10557  aix3*)
10558    # FIXME: insert proper C++ library support
10559    ld_shlibs_CXX=no
10560    ;;
10561  aix4* | aix5*)
10562    if test "$host_cpu" = ia64; then
10563      # On IA64, the linker does run time linking by default, so we don't
10564      # have to do anything special.
10565      aix_use_runtimelinking=no
10566      exp_sym_flag='-Bexport'
10567      no_entry_flag=""
10568    else
10569      # KDE requires run time linking.  Make it the default.
10570      aix_use_runtimelinking=yes
10571      exp_sym_flag='-bexport'
10572      no_entry_flag='-bnoentry'
10573    fi
10574
10575    # When large executables or shared objects are built, AIX ld can
10576    # have problems creating the table of contents.  If linking a library
10577    # or program results in "error TOC overflow" add -mminimal-toc to
10578    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10579    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10580
10581    archive_cmds_CXX=''
10582    hardcode_direct_CXX=yes
10583    hardcode_libdir_separator_CXX=':'
10584    link_all_deplibs_CXX=yes
10585
10586    if test "$GXX" = yes; then
10587      case $host_os in aix4.012|aix4.012.*)
10588      # We only want to do this on AIX 4.2 and lower, the check
10589      # below for broken collect2 doesn't work under 4.3+
10590	collect2name=`${CC} -print-prog-name=collect2`
10591	if test -f "$collect2name" && \
10592	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10593	then
10594	  # We have reworked collect2
10595	  hardcode_direct_CXX=yes
10596	else
10597	  # We have old collect2
10598	  hardcode_direct_CXX=unsupported
10599	  # It fails to find uninstalled libraries when the uninstalled
10600	  # path is not listed in the libpath.  Setting hardcode_minus_L
10601	  # to unsupported forces relinking
10602	  hardcode_minus_L_CXX=yes
10603	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10604	  hardcode_libdir_separator_CXX=
10605	fi
10606      esac
10607      shared_flag='-shared'
10608    else
10609      # not using gcc
10610      if test "$host_cpu" = ia64; then
10611	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10612	# chokes on -Wl,-G. The following line is correct:
10613	shared_flag='-G'
10614      else
10615	if test "$aix_use_runtimelinking" = yes; then
10616	  shared_flag='-qmkshrobj ${wl}-G'
10617	else
10618	  shared_flag='-qmkshrobj'
10619	fi
10620      fi
10621    fi
10622
10623    # Let the compiler handle the export list.
10624    always_export_symbols_CXX=no
10625    if test "$aix_use_runtimelinking" = yes; then
10626      # Warning - without using the other runtime loading flags (-brtl),
10627      # -berok will link without error, but may produce a broken library.
10628      allow_undefined_flag_CXX='-berok'
10629      # Determine the default libpath from the value encoded in an empty executable.
10630      cat >conftest.$ac_ext <<_ACEOF
10631#line $LINENO "configure"
10632/* confdefs.h.  */
10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h.  */
10637
10638int
10639main ()
10640{
10641
10642  ;
10643  return 0;
10644}
10645_ACEOF
10646rm -f conftest.$ac_objext conftest$ac_exeext
10647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648  (eval $ac_link) 2>&5
10649  ac_status=$?
10650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651  (exit $ac_status); } &&
10652         { ac_try='test -s conftest$ac_exeext'
10653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654  (eval $ac_try) 2>&5
10655  ac_status=$?
10656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657  (exit $ac_status); }; }; then
10658
10659aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10660}'`
10661# Check for a 64-bit object if we didn't find anything.
10662if 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; }
10663}'`; fi
10664else
10665  echo "$as_me: failed program was:" >&5
10666sed 's/^/| /' conftest.$ac_ext >&5
10667
10668fi
10669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10670if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10671
10672      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10673
10674      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"
10675      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"
10676     else
10677      if test "$host_cpu" = ia64; then
10678	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10679	allow_undefined_flag_CXX="-z nodefs"
10680	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"
10681      else
10682	# Determine the default libpath from the value encoded in an empty executable.
10683	cat >conftest.$ac_ext <<_ACEOF
10684#line $LINENO "configure"
10685/* confdefs.h.  */
10686_ACEOF
10687cat confdefs.h >>conftest.$ac_ext
10688cat >>conftest.$ac_ext <<_ACEOF
10689/* end confdefs.h.  */
10690
10691int
10692main ()
10693{
10694
10695  ;
10696  return 0;
10697}
10698_ACEOF
10699rm -f conftest.$ac_objext conftest$ac_exeext
10700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701  (eval $ac_link) 2>&5
10702  ac_status=$?
10703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704  (exit $ac_status); } &&
10705         { ac_try='test -s conftest$ac_exeext'
10706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707  (eval $ac_try) 2>&5
10708  ac_status=$?
10709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710  (exit $ac_status); }; }; then
10711
10712aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10713}'`
10714# Check for a 64-bit object if we didn't find anything.
10715if 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; }
10716}'`; fi
10717else
10718  echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721fi
10722rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10723if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10724
10725	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10726	# Warning - without using the other run time loading flags,
10727	# -berok will link without error, but may produce a broken library.
10728	no_undefined_flag_CXX=' ${wl}-bernotok'
10729	allow_undefined_flag_CXX=' ${wl}-berok'
10730	# -bexpall does not export symbols beginning with underscore (_)
10731	always_export_symbols_CXX=yes
10732	# Exported symbols can be pulled into shared objects from archives
10733	whole_archive_flag_spec_CXX=' '
10734	archive_cmds_need_lc_CXX=yes
10735	# This is similar to how AIX traditionally builds it's shared libraries.
10736	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'
10737      fi
10738    fi
10739    ;;
10740  chorus*)
10741    case $cc_basename in
10742      *)
10743	# FIXME: insert proper C++ library support
10744	ld_shlibs_CXX=no
10745	;;
10746    esac
10747    ;;
10748  dgux*)
10749    case $cc_basename in
10750      ec++)
10751	# FIXME: insert proper C++ library support
10752	ld_shlibs_CXX=no
10753	;;
10754      ghcx)
10755	# Green Hills C++ Compiler
10756	# FIXME: insert proper C++ library support
10757	ld_shlibs_CXX=no
10758	;;
10759      *)
10760	# FIXME: insert proper C++ library support
10761	ld_shlibs_CXX=no
10762	;;
10763    esac
10764    ;;
10765  freebsd12*)
10766    # C++ shared libraries reported to be fairly broken before switch to ELF
10767    ld_shlibs_CXX=no
10768    ;;
10769  freebsd-elf*)
10770    archive_cmds_need_lc_CXX=no
10771    ;;
10772  freebsd*)
10773    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10774    # conventions
10775    ld_shlibs_CXX=yes
10776    ;;
10777  gnu*)
10778    ;;
10779  hpux*)
10780    if test $with_gnu_ld = no; then
10781      if test "$host_cpu" = ia64; then
10782	hardcode_libdir_flag_spec_CXX='-L$libdir'
10783      else
10784	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10785	hardcode_libdir_separator_CXX=:
10786	export_dynamic_flag_spec_CXX='${wl}-E'
10787      fi
10788    fi
10789    if test "$host_cpu" = ia64; then
10790      hardcode_direct_CXX=no
10791      hardcode_shlibpath_var_CXX=no
10792    else
10793      hardcode_direct_CXX=yes
10794    fi
10795    hardcode_minus_L_CXX=yes # Not in the search PATH,
10796					    # but as the default
10797					    # location of the library.
10798
10799    case $cc_basename in
10800      CC)
10801	# FIXME: insert proper C++ library support
10802	ld_shlibs_CXX=no
10803	;;
10804      aCC)
10805	case $host_os in
10806	hpux9*)
10807	  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'
10808	  ;;
10809	*)
10810	  if test "$host_cpu" = ia64; then
10811	    archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10812	  else
10813	    archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10814	  fi
10815	  ;;
10816	esac
10817	# Commands to make compiler produce verbose output that lists
10818	# what "hidden" libraries, object files and flags are used when
10819	# linking a shared library.
10820	#
10821	# There doesn't appear to be a way to prevent this compiler from
10822	# explicitly linking system object files so we need to strip them
10823	# from the output so that they don't get included in the library
10824	# dependencies.
10825	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'
10826	;;
10827      *)
10828	if test "$GXX" = yes; then
10829	  if test $with_gnu_ld = no; then
10830	    case $host_os in
10831	    hpux9*)
10832	      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'
10833	      ;;
10834	    *)
10835	      if test "$host_cpu" = ia64; then
10836		archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10837	      else
10838		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'
10839	      fi
10840	      ;;
10841	    esac
10842	  fi
10843	else
10844	  # FIXME: insert proper C++ library support
10845	  ld_shlibs_CXX=no
10846	fi
10847	;;
10848    esac
10849    ;;
10850  irix5* | irix6*)
10851    case $cc_basename in
10852      CC)
10853	# SGI C++
10854	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'
10855
10856	# Archives containing C++ object files must be created using
10857	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10858	# necessary to make sure instantiated templates are included
10859	# in the archive.
10860	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10861	;;
10862      *)
10863	if test "$GXX" = yes; then
10864	  if test "$with_gnu_ld" = no; then
10865	    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'
10866	  else
10867	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
10868	  fi
10869	fi
10870	link_all_deplibs_CXX=yes
10871	;;
10872    esac
10873    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10874    hardcode_libdir_separator_CXX=:
10875    ;;
10876  linux*)
10877    case $cc_basename in
10878      KCC)
10879	# Kuck and Associates, Inc. (KAI) C++ Compiler
10880
10881	# KCC will only create a shared library if the output file
10882	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10883	# to its proper name (with version) after linking.
10884	archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10885	archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10886
10887	# Commands to make compiler produce verbose output that lists
10888	# what "hidden" libraries, object files and flags are used when
10889	# linking a shared library.
10890	#
10891	# There doesn't appear to be a way to prevent this compiler from
10892	# explicitly linking system object files so we need to strip them
10893	# from the output so that they don't get included in the library
10894	# dependencies.
10895	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10896
10897	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10898	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10899
10900	# Archives containing C++ object files must be created using
10901	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10902	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10903	;;
10904      cxx)
10905	# Compaq C++
10906	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10907	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'
10908
10909	runpath_var=LD_RUN_PATH
10910	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10911	hardcode_libdir_separator_CXX=:
10912
10913	# Commands to make compiler produce verbose output that lists
10914	# what "hidden" libraries, object files and flags are used when
10915	# linking a shared library.
10916	#
10917	# There doesn't appear to be a way to prevent this compiler from
10918	# explicitly linking system object files so we need to strip them
10919	# from the output so that they don't get included in the library
10920	# dependencies.
10921	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'
10922	;;
10923    esac
10924    ;;
10925  lynxos*)
10926    # FIXME: insert proper C++ library support
10927    ld_shlibs_CXX=no
10928    ;;
10929  m88k*)
10930    # FIXME: insert proper C++ library support
10931    ld_shlibs_CXX=no
10932    ;;
10933  mvs*)
10934    case $cc_basename in
10935      cxx)
10936	# FIXME: insert proper C++ library support
10937	ld_shlibs_CXX=no
10938	;;
10939      *)
10940	# FIXME: insert proper C++ library support
10941	ld_shlibs_CXX=no
10942	;;
10943    esac
10944    ;;
10945  netbsd*)
10946    # NetBSD uses g++ - do we need to do anything?
10947    ;;
10948  osf3*)
10949    case $cc_basename in
10950      KCC)
10951	# Kuck and Associates, Inc. (KAI) C++ Compiler
10952
10953	# KCC will only create a shared library if the output file
10954	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10955	# to its proper name (with version) after linking.
10956	archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10957
10958	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10959	hardcode_libdir_separator_CXX=:
10960
10961	# Archives containing C++ object files must be created using
10962	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10963	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10964
10965	;;
10966      RCC)
10967	# Rational C++ 2.4.1
10968	# FIXME: insert proper C++ library support
10969	ld_shlibs_CXX=no
10970	;;
10971      cxx)
10972	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10973	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'
10974
10975	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10976	hardcode_libdir_separator_CXX=:
10977
10978	# Commands to make compiler produce verbose output that lists
10979	# what "hidden" libraries, object files and flags are used when
10980	# linking a shared library.
10981	#
10982	# There doesn't appear to be a way to prevent this compiler from
10983	# explicitly linking system object files so we need to strip them
10984	# from the output so that they don't get included in the library
10985	# dependencies.
10986	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'
10987	;;
10988      *)
10989	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10990	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10991	  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'
10992
10993	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10994	  hardcode_libdir_separator_CXX=:
10995
10996	  # Commands to make compiler produce verbose output that lists
10997	  # what "hidden" libraries, object files and flags are used when
10998	  # linking a shared library.
10999	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
11000
11001	else
11002	  # FIXME: insert proper C++ library support
11003	  ld_shlibs_CXX=no
11004	fi
11005	;;
11006    esac
11007    ;;
11008  osf4* | osf5*)
11009    case $cc_basename in
11010      KCC)
11011	# Kuck and Associates, Inc. (KAI) C++ Compiler
11012
11013	# KCC will only create a shared library if the output file
11014	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11015	# to its proper name (with version) after linking.
11016	archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11017
11018	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11019	hardcode_libdir_separator_CXX=:
11020
11021	# Archives containing C++ object files must be created using
11022	# the KAI C++ compiler.
11023	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11024	;;
11025      RCC)
11026	# Rational C++ 2.4.1
11027	# FIXME: insert proper C++ library support
11028	ld_shlibs_CXX=no
11029	;;
11030      cxx)
11031	allow_undefined_flag_CXX=' -expect_unresolved \*'
11032	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'
11033	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
11034	  echo "-hidden">> $lib.exp~
11035	  $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~
11036	  $rm $lib.exp'
11037
11038	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11039	hardcode_libdir_separator_CXX=:
11040
11041	# Commands to make compiler produce verbose output that lists
11042	# what "hidden" libraries, object files and flags are used when
11043	# linking a shared library.
11044	#
11045	# There doesn't appear to be a way to prevent this compiler from
11046	# explicitly linking system object files so we need to strip them
11047	# from the output so that they don't get included in the library
11048	# dependencies.
11049	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'
11050	;;
11051      *)
11052	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11053	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11054	 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'
11055
11056	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11057	  hardcode_libdir_separator_CXX=:
11058
11059	  # Commands to make compiler produce verbose output that lists
11060	  # what "hidden" libraries, object files and flags are used when
11061	  # linking a shared library.
11062	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
11063
11064	else
11065	  # FIXME: insert proper C++ library support
11066	  ld_shlibs_CXX=no
11067	fi
11068	;;
11069    esac
11070    ;;
11071  psos*)
11072    # FIXME: insert proper C++ library support
11073    ld_shlibs_CXX=no
11074    ;;
11075  sco*)
11076    archive_cmds_need_lc_CXX=no
11077    case $cc_basename in
11078      CC)
11079	# FIXME: insert proper C++ library support
11080	ld_shlibs_CXX=no
11081	;;
11082      *)
11083	# FIXME: insert proper C++ library support
11084	ld_shlibs_CXX=no
11085	;;
11086    esac
11087    ;;
11088  sunos4*)
11089    case $cc_basename in
11090      CC)
11091	# Sun C++ 4.x
11092	# FIXME: insert proper C++ library support
11093	ld_shlibs_CXX=no
11094	;;
11095      lcc)
11096	# Lucid
11097	# FIXME: insert proper C++ library support
11098	ld_shlibs_CXX=no
11099	;;
11100      *)
11101	# FIXME: insert proper C++ library support
11102	ld_shlibs_CXX=no
11103	;;
11104    esac
11105    ;;
11106  solaris*)
11107    case $cc_basename in
11108      CC)
11109	# Sun C++ 4.2, 5.x and Centerline C++
11110	no_undefined_flag_CXX=' -zdefs'
11111	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11112	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11113	$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'
11114
11115	hardcode_libdir_flag_spec_CXX='-R$libdir'
11116	hardcode_shlibpath_var_CXX=no
11117	case $host_os in
11118	  solaris2.0-5 | solaris2.0-5.*) ;;
11119	  *)
11120	    # The C++ compiler is used as linker so we must use $wl
11121	    # flag to pass the commands to the underlying system
11122	    # linker.
11123	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11124	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11125	    ;;
11126	esac
11127	link_all_deplibs_CXX=yes
11128
11129	# Commands to make compiler produce verbose output that lists
11130	# what "hidden" libraries, object files and flags are used when
11131	# linking a shared library.
11132	#
11133	# There doesn't appear to be a way to prevent this compiler from
11134	# explicitly linking system object files so we need to strip them
11135	# from the output so that they don't get included in the library
11136	# dependencies.
11137	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11138
11139	# Archives containing C++ object files must be created using
11140	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11141	# necessary to make sure instantiated templates are included
11142	# in the archive.
11143	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11144	;;
11145      gcx)
11146	# Green Hills C++ Compiler
11147	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11148
11149	# The C++ compiler must be used to create the archive.
11150	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11151	;;
11152      *)
11153	# GNU C++ compiler with Solaris linker
11154	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11155	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11156	  if $CC --version | egrep -v '^2\.7' > /dev/null; then
11157	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
11158	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11159		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
11160
11161	    # Commands to make compiler produce verbose output that lists
11162	    # what "hidden" libraries, object files and flags are used when
11163	    # linking a shared library.
11164	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
11165	  else
11166	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11167	    # platform.
11168	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
11169	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11170		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
11171
11172	    # Commands to make compiler produce verbose output that lists
11173	    # what "hidden" libraries, object files and flags are used when
11174	    # linking a shared library.
11175	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
11176	  fi
11177
11178	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11179	fi
11180	;;
11181    esac
11182    ;;
11183  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11184    archive_cmds_need_lc_CXX=no
11185    ;;
11186  tandem*)
11187    case $cc_basename in
11188      NCC)
11189	# NonStop-UX NCC 3.20
11190	# FIXME: insert proper C++ library support
11191	ld_shlibs_CXX=no
11192	;;
11193      *)
11194	# FIXME: insert proper C++ library support
11195	ld_shlibs_CXX=no
11196	;;
11197    esac
11198    ;;
11199  vxworks*)
11200    # FIXME: insert proper C++ library support
11201    ld_shlibs_CXX=no
11202    ;;
11203  *)
11204    # FIXME: insert proper C++ library support
11205    ld_shlibs_CXX=no
11206    ;;
11207esac
11208echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11209echo "${ECHO_T}$ld_shlibs_CXX" >&6
11210test "$ld_shlibs_CXX" = no && can_build_shared=no
11211
11212# Figure out "hidden" C++ library dependencies from verbose
11213# compiler output whening linking a shared library.
11214cat > conftest.$ac_ext <<EOF
11215class Foo
11216{
11217public:
11218  Foo (void) { a = 0; }
11219private:
11220  int a;
11221};
11222EOF
11223
11224
11225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226  (eval $ac_compile) 2>&5
11227  ac_status=$?
11228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229  (exit $ac_status); }; then
11230  # Parse the compiler output and extract the necessary
11231  # objects, libraries and library flags.
11232
11233  # Sentinel used to keep track of whether or not we are before
11234  # the conftest object file.
11235  pre_test_object_deps_done=no
11236
11237  # The `*' in the case matches for architectures that use `case' in
11238  # $output_verbose_cmd can trigger glob expansion during the loop
11239  # eval without this substitution.
11240  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11241
11242  for p in `eval $output_verbose_link_cmd`; do
11243    case $p in
11244
11245    -L* | -R* | -l*)
11246       # Some compilers place space between "-{L,R}" and the path.
11247       # Remove the space.
11248       if test $p = "-L" \
11249	  || test $p = "-R"; then
11250	 prev=$p
11251	 continue
11252       else
11253	 prev=
11254       fi
11255
11256       if test "$pre_test_object_deps_done" = no; then
11257	 case $p in
11258	 -L* | -R*)
11259	   # Internal compiler library paths should come after those
11260	   # provided the user.  The postdeps already come after the
11261	   # user supplied libs so there is no need to process them.
11262	   if test -z "$compiler_lib_search_path_CXX"; then
11263	     compiler_lib_search_path_CXX="${prev}${p}"
11264	   else
11265	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11266	   fi
11267	   ;;
11268	 # The "-l" case would never come before the object being
11269	 # linked, so don't bother handling this case.
11270	 esac
11271       else
11272	 if test -z "$postdeps_CXX"; then
11273	   postdeps_CXX="${prev}${p}"
11274	 else
11275	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11276	 fi
11277       fi
11278       ;;
11279
11280    *.$objext|*.$libext)
11281       # This assumes that the test object file only shows up
11282       # once in the compiler output.
11283       if test "$p" = "conftest.$objext"; then
11284	 pre_test_object_deps_done=yes
11285	 continue
11286       fi
11287
11288       if test "$pre_test_object_deps_done" = no; then
11289	 if test -z "$predep_objects_CXX"; then
11290	   predep_objects_CXX="$p"
11291	 else
11292	   predep_objects_CXX="$predep_objects_CXX $p"
11293	 fi
11294       else
11295	 if test -z "$postdep_objects_CXX"; then
11296	   postdep_objects_CXX="$p"
11297	 else
11298	   postdep_objects_CXX="$postdep_objects_CXX $p"
11299	 fi
11300       fi
11301       ;;
11302
11303    *) ;; # Ignore the rest.
11304
11305    esac
11306  done
11307
11308  # Clean up.
11309  rm -f a.out
11310else
11311  echo "libtool.m4: error: problem compiling C++ test program"
11312fi
11313
11314$rm -f confest.$objext
11315
11316case " $postdeps_CXX " in
11317*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11318*) archive_cmds_need_lc_CXX=yes ;;
11319esac
11320
11321GCC_CXX="$GXX"
11322LD_CXX="$LD"
11323
11324lt_prog_compiler_wl_CXX=
11325lt_prog_compiler_pic_CXX=
11326lt_prog_compiler_static_CXX=
11327
11328echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11329echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11330
11331  # C++ specific cases for pic, static, wl, etc.
11332  if test "$GXX" = yes; then
11333    lt_prog_compiler_wl_CXX='-Wl,'
11334    lt_prog_compiler_static_CXX='-static'
11335
11336    case $host_os in
11337    aix*)
11338      # All AIX code is PIC.
11339      if test "$host_cpu" = ia64; then
11340	# AIX 5 now supports IA64 processor
11341	lt_prog_compiler_static_CXX='-Bstatic'
11342      fi
11343      ;;
11344    amigaos*)
11345      # FIXME: we need at least 68020 code to build shared libraries, but
11346      # adding the `-m68020' flag to GCC prevents building anything better,
11347      # like `-m68040'.
11348      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11349      ;;
11350    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11351      # PIC is the default for these OSes.
11352      ;;
11353    cygwin* | mingw* | os2*)
11354      # This hack is so that the source file can tell whether it is being
11355      # built for inclusion in a dll (and should export symbols for example).
11356      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11357      ;;
11358    darwin* | rhapsody*)
11359      # PIC is the default on this platform
11360      # Common symbols not allowed in MH_DYLIB files
11361      lt_prog_compiler_pic_CXX='-fno-common'
11362      ;;
11363    *djgpp*)
11364      # DJGPP does not support shared libraries at all
11365      lt_prog_compiler_pic_CXX=
11366      ;;
11367    sysv4*MP*)
11368      if test -d /usr/nec; then
11369	lt_prog_compiler_pic_CXX=-Kconform_pic
11370      fi
11371      ;;
11372    hpux*)
11373      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
11374      if test "$host_cpu" != ia64; then
11375	lt_prog_compiler_pic_CXX='-fPIC'
11376      fi
11377      ;;
11378    *)
11379      lt_prog_compiler_pic_CXX='-fPIC'
11380      ;;
11381    esac
11382  else
11383    case $host_os in
11384      aix4* | aix5*)
11385	# All AIX code is PIC.
11386	if test "$host_cpu" = ia64; then
11387	  # AIX 5 now supports IA64 processor
11388	  lt_prog_compiler_static_CXX='-Bstatic'
11389	else
11390	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11391	fi
11392	;;
11393      chorus*)
11394	case $cc_basename in
11395	cxch68)
11396	  # Green Hills C++ Compiler
11397	  # _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"
11398	  ;;
11399	esac
11400	;;
11401      dgux*)
11402	case $cc_basename in
11403	  ec++)
11404	    lt_prog_compiler_pic_CXX='-KPIC'
11405	    ;;
11406	  ghcx)
11407	    # Green Hills C++ Compiler
11408	    lt_prog_compiler_pic_CXX='-pic'
11409	    ;;
11410	  *)
11411	    ;;
11412	esac
11413	;;
11414      freebsd*)
11415	# FreeBSD uses GNU C++
11416	;;
11417      hpux9* | hpux10* | hpux11*)
11418	case $cc_basename in
11419	  CC)
11420	    lt_prog_compiler_wl_CXX='-Wl,'
11421	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11422	    if test "$host_cpu" != ia64; then
11423	      lt_prog_compiler_pic_CXX='+Z'
11424	    fi
11425	    ;;
11426	  aCC)
11427	    lt_prog_compiler_wl_CXX='-Wl,'
11428	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11429	    if test "$host_cpu" != ia64; then
11430	      lt_prog_compiler_pic_CXX='+Z'
11431	    fi
11432	    ;;
11433	  *)
11434	    ;;
11435	esac
11436	;;
11437      irix5* | irix6* | nonstopux*)
11438	case $cc_basename in
11439	  CC)
11440	    lt_prog_compiler_wl_CXX='-Wl,'
11441	    lt_prog_compiler_static_CXX='-non_shared'
11442	    # CC pic flag -KPIC is the default.
11443	    ;;
11444	  *)
11445	    ;;
11446	esac
11447	;;
11448      linux*)
11449	case $cc_basename in
11450	  KCC)
11451	    # KAI C++ Compiler
11452	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11453	    lt_prog_compiler_pic_CXX='-fPIC'
11454	    ;;
11455	  cxx)
11456	    # Compaq C++
11457	    # Make sure the PIC flag is empty.  It appears that all Alpha
11458	    # Linux and Compaq Tru64 Unix objects are PIC.
11459	    lt_prog_compiler_pic_CXX=
11460	    lt_prog_compiler_static_CXX='-non_shared'
11461	    ;;
11462	  *)
11463	    ;;
11464	esac
11465	;;
11466      lynxos*)
11467	;;
11468      m88k*)
11469	;;
11470      mvs*)
11471	case $cc_basename in
11472	  cxx)
11473	    lt_prog_compiler_pic_CXX='-W c,exportall'
11474	    ;;
11475	  *)
11476	    ;;
11477	esac
11478	;;
11479      netbsd*)
11480	;;
11481      osf3* | osf4* | osf5*)
11482	case $cc_basename in
11483	  KCC)
11484	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11485	    ;;
11486	  RCC)
11487	    # Rational C++ 2.4.1
11488	    lt_prog_compiler_pic_CXX='-pic'
11489	    ;;
11490	  cxx)
11491	    # Digital/Compaq C++
11492	    lt_prog_compiler_wl_CXX='-Wl,'
11493	    # Make sure the PIC flag is empty.  It appears that all Alpha
11494	    # Linux and Compaq Tru64 Unix objects are PIC.
11495	    lt_prog_compiler_pic_CXX=
11496	    lt_prog_compiler_static_CXX='-non_shared'
11497	    ;;
11498	  *)
11499	    ;;
11500	esac
11501	;;
11502      psos*)
11503	;;
11504      sco*)
11505	case $cc_basename in
11506	  CC)
11507	    lt_prog_compiler_pic_CXX='-fPIC'
11508	    ;;
11509	  *)
11510	    ;;
11511	esac
11512	;;
11513      solaris*)
11514	case $cc_basename in
11515	  CC)
11516	    # Sun C++ 4.2, 5.x and Centerline C++
11517	    lt_prog_compiler_pic_CXX='-KPIC'
11518	    lt_prog_compiler_static_CXX='-Bstatic'
11519	    lt_prog_compiler_wl_CXX='-Qoption ld '
11520	    ;;
11521	  gcx)
11522	    # Green Hills C++ Compiler
11523	    lt_prog_compiler_pic_CXX='-PIC'
11524	    ;;
11525	  *)
11526	    ;;
11527	esac
11528	;;
11529      sunos4*)
11530	case $cc_basename in
11531	  CC)
11532	    # Sun C++ 4.x
11533	    lt_prog_compiler_pic_CXX='-pic'
11534	    lt_prog_compiler_static_CXX='-Bstatic'
11535	    ;;
11536	  lcc)
11537	    # Lucid
11538	    lt_prog_compiler_pic_CXX='-pic'
11539	    ;;
11540	  *)
11541	    ;;
11542	esac
11543	;;
11544      tandem*)
11545	case $cc_basename in
11546	  NCC)
11547	    # NonStop-UX NCC 3.20
11548	    lt_prog_compiler_pic_CXX='-KPIC'
11549	    ;;
11550	  *)
11551	    ;;
11552	esac
11553	;;
11554      unixware*)
11555	;;
11556      vxworks*)
11557	;;
11558      *)
11559	lt_prog_compiler_can_build_shared_CXX=no
11560	;;
11561    esac
11562  fi
11563
11564echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11565echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11566
11567#
11568# Check to make sure the PIC flag actually works.
11569#
11570if test -n "$lt_prog_compiler_pic_CXX"; then
11571  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11572echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11573if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11574  echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576  lt_prog_compiler_pic_works_CXX=no
11577  ac_outfile=conftest.$ac_objext
11578   save_CFLAGS="$CFLAGS"
11579   CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
11580   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11581   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
11582     # The compiler can only warn and ignore the option if not recognized
11583     # So say no if there are warnings
11584     if test -s conftest.err; then
11585       # Append any errors to the config.log.
11586       cat conftest.err 1>&5
11587     else
11588       lt_prog_compiler_pic_works_CXX=yes
11589     fi
11590   fi
11591   $rm conftest*
11592   CFLAGS="$save_CFLAGS"
11593
11594fi
11595echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11596echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11597
11598if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11599    case $lt_prog_compiler_pic_CXX in
11600     "" | " "*) ;;
11601     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11602     esac
11603else
11604    lt_prog_compiler_pic_CXX=
11605     lt_prog_compiler_can_build_shared_CXX=no
11606fi
11607
11608fi
11609case "$host_os" in
11610  # For platforms which do not support PIC, -DPIC is meaningless:
11611  *djgpp*)
11612    lt_prog_compiler_pic_CXX=
11613    ;;
11614  *)
11615    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11616    ;;
11617esac
11618
11619echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11620echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11621if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11622  echo $ECHO_N "(cached) $ECHO_C" >&6
11623else
11624  lt_cv_prog_compiler_c_o_CXX=no
11625   $rm -r conftest 2>/dev/null
11626   mkdir conftest
11627   cd conftest
11628   mkdir out
11629   save_CXXFLAGS="$CXXFLAGS"
11630		   CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
11631   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11632
11633   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11634   # that will create temporary files in the current directory regardless of
11635   # the output directory.  Thus, making CWD read-only will cause this test
11636   # to fail, enabling locking or at least warning the user not to do parallel
11637   # builds.
11638   chmod -w .
11639
11640   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
11641   then
11642     # The compiler can only warn and ignore the option if not recognized
11643     # So say no if there are warnings
11644     if test -s out/conftest.err; then
11645       # Append any errors to the config.log.
11646       cat out/conftest.err 1>&5
11647     else
11648       lt_cv_prog_compiler_c_o_CXX=yes
11649     fi
11650   fi
11651   CXXFLAGS="$save_CXXFLAGS"
11652   chmod u+w .
11653   $rm conftest* out/*
11654   rmdir out
11655   cd ..
11656   rmdir conftest
11657   $rm conftest*
11658
11659fi
11660echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11661echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11662
11663
11664hard_links="nottested"
11665if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11666  # do not overwrite the value of need_locks provided by the user
11667  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11668echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11669  hard_links=yes
11670  $rm conftest*
11671  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11672  touch conftest.a
11673  ln conftest.a conftest.b 2>&5 || hard_links=no
11674  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11675  echo "$as_me:$LINENO: result: $hard_links" >&5
11676echo "${ECHO_T}$hard_links" >&6
11677  if test "$hard_links" = no; then
11678    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11679echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11680    need_locks=warn
11681  fi
11682else
11683  need_locks=no
11684fi
11685
11686echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11687echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11688
11689  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
11690  case $host_os in
11691  aix4* | aix5*)
11692    # If we're using GNU nm, then we don't want the "-C" option.
11693    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11694    if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
11695      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'
11696    else
11697      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'
11698    fi
11699    ;;
11700  cygwin* | mingw* | pw32*)
11701    export_symbols_cmds_CXX="$ltdll_cmds"
11702  ;;
11703  *)
11704    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
11705  ;;
11706  esac
11707
11708echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11709echo "${ECHO_T}$ld_shlibs_CXX" >&6
11710test "$ld_shlibs_CXX" = no && can_build_shared=no
11711
11712variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11713if test "$GCC" = yes; then
11714  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11715fi
11716
11717#
11718# Do we need to explicitly link libc?
11719#
11720archive_cmds_need_lc_CXX=yes
11721if test "$enable_shared" = yes && test "$GCC" = yes; then
11722  case $archive_cmds_CXX in
11723  *'~'*)
11724    # FIXME: we may have to deal with multi-command sequences.
11725    ;;
11726  '$CC '*)
11727    # Test whether the compiler implicitly links with -lc since on some
11728    # systems, -lgcc has to come before -lc. If gcc already passes -lc
11729    # to ld, don't add -lc before -lgcc.
11730    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11731echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11732    $rm conftest*
11733    echo 'static int dummy;' > conftest.$ac_ext
11734
11735    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11736  (eval $ac_compile) 2>&5
11737  ac_status=$?
11738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739  (exit $ac_status); } 2>conftest.err; then
11740      soname=conftest
11741      lib=conftest
11742      libobjs=conftest.$ac_objext
11743      deplibs=
11744      wl=$lt_prog_compiler_wl_CXX
11745      compiler_flags=-v
11746      linker_flags=-v
11747      verstring=
11748      output_objdir=.
11749      libname=conftest
11750      lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11751      allow_undefined_flag_CXX=
11752      if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11753  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11754  ac_status=$?
11755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756  (exit $ac_status); }
11757      then
11758	archive_cmds_need_lc_CXX=no
11759      else
11760	archive_cmds_need_lc_CXX=yes
11761      fi
11762      allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11763    else
11764      cat conftest.err 1>&5
11765    fi
11766    $rm conftest*
11767    echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11768echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11769    ;;
11770  esac
11771fi
11772
11773echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11774echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11775hardcode_action_CXX=
11776if test -n "$hardcode_libdir_flag_spec_CXX" || \
11777   test -n "$runpath_var CXX"; then
11778
11779  # We can hardcode non-existant directories.
11780  if test "$hardcode_direct_CXX" != no &&
11781     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11782     # have to relink, otherwise we might link with an installed library
11783     # when we should be linking with a yet-to-be-installed one
11784     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11785     test "$hardcode_minus_L_CXX" != no; then
11786    # Linking always hardcodes the temporary library directory.
11787    hardcode_action_CXX=relink
11788  else
11789    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11790    hardcode_action_CXX=immediate
11791  fi
11792else
11793  # We cannot hardcode anything, or else we can only hardcode existing
11794  # directories.
11795  hardcode_action_CXX=unsupported
11796fi
11797echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11798echo "${ECHO_T}$hardcode_action_CXX" >&6
11799
11800if test "$hardcode_action_CXX" = relink; then
11801  # Fast installation is not supported
11802  enable_fast_install=no
11803elif test "$shlibpath_overrides_runpath" = yes ||
11804     test "$enable_shared" = no; then
11805  # Fast installation is not necessary
11806  enable_fast_install=needless
11807fi
11808
11809striplib=
11810old_striplib=
11811echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11812echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11813if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11814  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11815  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11816  echo "$as_me:$LINENO: result: yes" >&5
11817echo "${ECHO_T}yes" >&6
11818else
11819  echo "$as_me:$LINENO: result: no" >&5
11820echo "${ECHO_T}no" >&6
11821fi
11822
11823echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11824echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11825library_names_spec=
11826libname_spec='lib$name'
11827soname_spec=
11828postinstall_cmds=
11829postuninstall_cmds=
11830finish_cmds=
11831finish_eval=
11832shlibpath_var=
11833shlibpath_overrides_runpath=unknown
11834version_type=none
11835dynamic_linker="$host_os ld.so"
11836sys_lib_dlsearch_path_spec="/lib /usr/lib"
11837sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11838need_lib_prefix=unknown
11839hardcode_into_libs=no
11840
11841# when you set need_version to no, make sure it does not cause -set_version
11842# flags to be left without arguments
11843need_version=unknown
11844
11845case $host_os in
11846aix3*)
11847  version_type=linux
11848  library_names_spec='${libname}${release}.so$versuffix $libname.a'
11849  shlibpath_var=LIBPATH
11850
11851  # AIX 3 has no versioning support, so we append a major version to the name.
11852  soname_spec='${libname}${release}.so$major'
11853  ;;
11854
11855aix4* | aix5*)
11856  version_type=linux
11857  if test "$host_cpu" = ia64; then
11858    # AIX 5 supports IA64
11859    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
11860    shlibpath_var=LD_LIBRARY_PATH
11861  else
11862    # With GCC up to 2.95.x, collect2 would create an import file
11863    # for dependence libraries.  The import file would start with
11864    # the line `#! .'.  This would cause the generated library to
11865    # depend on `.', always an invalid library.  This was fixed in
11866    # development snapshots of GCC prior to 3.0.
11867    case $host_os in
11868      aix4 | aix4.[01] | aix4.[01].*)
11869      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11870	   echo ' yes '
11871	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11872	:
11873      else
11874	can_build_shared=no
11875      fi
11876      ;;
11877    esac
11878    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11879    # soname into executable. Probably we can add versioning support to
11880    # collect2, so additional links can be useful in future.
11881    if test "$aix_use_runtimelinking" = yes; then
11882      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11883      # instead of lib<name>.a to let people know that these are not
11884      # typical AIX shared libraries.
11885      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11886    else
11887      # We preserve .a as extension for shared libraries through AIX4.2
11888      # and later when we are not doing run time linking.
11889      library_names_spec='${libname}${release}.a $libname.a'
11890      soname_spec='${libname}${release}.so$major'
11891    fi
11892    shlibpath_var=LIBPATH
11893  fi
11894  ;;
11895
11896amigaos*)
11897  library_names_spec='$libname.ixlibrary $libname.a'
11898  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11899  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'
11900  ;;
11901
11902beos*)
11903  library_names_spec='${libname}.so'
11904  dynamic_linker="$host_os ld.so"
11905  shlibpath_var=LIBRARY_PATH
11906  ;;
11907
11908bsdi4*)
11909  version_type=linux
11910  need_version=no
11911  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11912  soname_spec='${libname}${release}.so$major'
11913  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11914  shlibpath_var=LD_LIBRARY_PATH
11915  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11916  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11917  # the default ld.so.conf also contains /usr/contrib/lib and
11918  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11919  # libtool to hard-code these into programs
11920  ;;
11921
11922cygwin* | mingw* | pw32*)
11923  version_type=windows
11924  need_version=no
11925  need_lib_prefix=no
11926  case $GCC,$host_os in
11927  yes,cygwin*)
11928    library_names_spec='$libname.dll.a'
11929    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11930    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
11931    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
11932      dldir=$destdir/`dirname \$dlpath`~
11933      test -d \$dldir || mkdir -p \$dldir~
11934      $install_prog .libs/$dlname \$dldir/$dlname'
11935    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
11936      dlpath=$dir/\$dldll~
11937       $rm \$dlpath'
11938    ;;
11939  yes,mingw*)
11940    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
11941    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
11942    if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
11943      # It is most probably a Windows format PATH printed by
11944      # mingw gcc, but we are running on Cygwin. Gcc prints its search
11945      # path with ; separators, and with drive letters. We can handle the
11946      # drive letters (cygwin fileutils understands them), so leave them,
11947      # especially as we might pass files found there to a mingw objdump,
11948      # which wouldn't understand a cygwinified path. Ahh.
11949      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
11950    else
11951      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed  -e "s/$PATH_SEPARATOR/ /g"`
11952    fi
11953    ;;
11954  yes,pw32*)
11955    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
11956    ;;
11957  *)
11958    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
11959    ;;
11960  esac
11961  dynamic_linker='Win32 ld.exe'
11962  # FIXME: first we should search . and the directory the executable is in
11963  shlibpath_var=PATH
11964  ;;
11965
11966darwin* | rhapsody*)
11967  dynamic_linker="$host_os dyld"
11968  version_type=darwin
11969  need_lib_prefix=no
11970  need_version=no
11971  # FIXME: Relying on posixy $() will cause problems for
11972  #        cross-compilation, but unfortunately the echo tests do not
11973  #        yet detect zsh echo's removal of \ escapes.
11974  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
11975  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
11976  shlibpath_overrides_runpath=yes
11977  shlibpath_var=DYLD_LIBRARY_PATH
11978  ;;
11979
11980dgux*)
11981  version_type=linux
11982  need_lib_prefix=no
11983  need_version=no
11984  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11985  soname_spec='${libname}${release}.so$major'
11986  shlibpath_var=LD_LIBRARY_PATH
11987  ;;
11988
11989freebsd1*)
11990  dynamic_linker=no
11991  ;;
11992
11993freebsd*)
11994  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11995  version_type=freebsd-$objformat
11996  case $version_type in
11997    freebsd-elf*)
11998      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
11999      need_version=no
12000      need_lib_prefix=no
12001      ;;
12002    freebsd-*)
12003      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
12004      need_version=yes
12005      ;;
12006  esac
12007  shlibpath_var=LD_LIBRARY_PATH
12008  case $host_os in
12009  freebsd2*)
12010    shlibpath_overrides_runpath=yes
12011    ;;
12012  freebsd3.01* | freebsdelf3.01*)
12013    shlibpath_overrides_runpath=yes
12014    hardcode_into_libs=yes
12015    ;;
12016  *) # from 3.2 on
12017    shlibpath_overrides_runpath=no
12018    hardcode_into_libs=yes
12019    ;;
12020  esac
12021  ;;
12022
12023gnu*)
12024  version_type=linux
12025  need_lib_prefix=no
12026  need_version=no
12027  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
12028  soname_spec='${libname}${release}.so$major'
12029  shlibpath_var=LD_LIBRARY_PATH
12030  hardcode_into_libs=yes
12031  ;;
12032
12033hpux9* | hpux10* | hpux11*)
12034  # Give a soname corresponding to the major version so that dld.sl refuses to
12035  # link against other versions.
12036  version_type=sunos
12037  need_lib_prefix=no
12038  need_version=no
12039  if test "$host_cpu" = ia64; then
12040    hardcode_into_libs=yes
12041    dynamic_linker="$host_os dld.so"
12042    shlibpath_var=LD_LIBRARY_PATH
12043    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12044    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12045    soname_spec='${libname}${release}.so$major'
12046    if test "X$HPUX_IA64_MODE" = X32; then
12047      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12048    else
12049      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12050    fi
12051    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12052  else
12053    dynamic_linker="$host_os dld.sl"
12054    shlibpath_var=SHLIB_PATH
12055    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12056    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
12057    soname_spec='${libname}${release}.sl$major'
12058  fi
12059  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12060  postinstall_cmds='chmod 555 $lib'
12061  ;;
12062
12063irix5* | irix6* | nonstopux*)
12064  case $host_os in
12065    nonstopux*) version_type=nonstopux ;;
12066    *)          version_type=irix ;;
12067  esac
12068  need_lib_prefix=no
12069  need_version=no
12070  soname_spec='${libname}${release}.so$major'
12071  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
12072  case $host_os in
12073  irix5* | nonstopux*)
12074    libsuff= shlibsuff=
12075    ;;
12076  *)
12077    case $LD in # libtool.m4 will add one of these switches to LD
12078    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
12079    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
12080    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
12081    *) libsuff= shlibsuff= libmagic=never-match;;
12082    esac
12083    ;;
12084  esac
12085  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12086  shlibpath_overrides_runpath=no
12087  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12088  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12089  ;;
12090
12091# No shared lib support for Linux oldld, aout, or coff.
12092linux*oldld* | linux*aout* | linux*coff*)
12093  dynamic_linker=no
12094  ;;
12095
12096# This must be Linux ELF.
12097linux*)
12098  version_type=linux
12099  need_lib_prefix=no
12100  need_version=no
12101  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12102  soname_spec='${libname}${release}.so$major'
12103  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12104  libsuff=
12105  if test "x$LINUX_64_MODE" = x64; then
12106    # Some platforms are per default 64-bit, so there's no /lib64
12107    if test -d /lib64; then
12108      libsuff=64
12109    fi
12110  fi
12111  shlibpath_var=LD_LIBRARY_PATH
12112  shlibpath_overrides_runpath=no
12113  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
12114  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12115  # This implies no fast_install, which is unacceptable.
12116  # Some rework will be needed to allow for fast_install
12117  # before this can be enabled.
12118  hardcode_into_libs=yes
12119
12120  # We used to test for /lib/ld.so.1 and disable shared libraries on
12121  # powerpc, because MkLinux only supported shared libraries with the
12122  # GNU dynamic linker.  Since this was broken with cross compilers,
12123  # most powerpc-linux boxes support dynamic linking these days and
12124  # people can always --disable-shared, the test was removed, and we
12125  # assume the GNU/Linux dynamic linker is in use.
12126  dynamic_linker='GNU/Linux ld.so'
12127  ;;
12128
12129netbsd*)
12130  version_type=sunos
12131  need_lib_prefix=no
12132  need_version=no
12133  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12134    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12135    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12136    dynamic_linker='NetBSD (a.out) ld.so'
12137  else
12138    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
12139    soname_spec='${libname}${release}.so$major'
12140    dynamic_linker='NetBSD ld.elf_so'
12141  fi
12142  shlibpath_var=LD_LIBRARY_PATH
12143  shlibpath_overrides_runpath=yes
12144  hardcode_into_libs=yes
12145  ;;
12146
12147newsos6)
12148  version_type=linux
12149  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12150  shlibpath_var=LD_LIBRARY_PATH
12151  shlibpath_overrides_runpath=yes
12152  ;;
12153
12154nto-qnx)
12155  version_type=linux
12156  need_lib_prefix=no
12157  need_version=no
12158  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12159  soname_spec='${libname}${release}.so$major'
12160  shlibpath_var=LD_LIBRARY_PATH
12161  shlibpath_overrides_runpath=yes
12162  ;;
12163
12164openbsd*)
12165  version_type=sunos
12166  need_lib_prefix=no
12167  need_version=no
12168  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12169  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12170  shlibpath_var=LD_LIBRARY_PATH
12171  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12172    case $host_os in
12173      openbsd2.[89] | openbsd2.[89].*)
12174	shlibpath_overrides_runpath=no
12175	;;
12176      *)
12177	shlibpath_overrides_runpath=yes
12178	;;
12179      esac
12180  else
12181    shlibpath_overrides_runpath=yes
12182  fi
12183  ;;
12184
12185os2*)
12186  libname_spec='$name'
12187  need_lib_prefix=no
12188  library_names_spec='$libname.dll $libname.a'
12189  dynamic_linker='OS/2 ld.exe'
12190  shlibpath_var=LIBPATH
12191  ;;
12192
12193osf3* | osf4* | osf5*)
12194  version_type=osf
12195  need_lib_prefix=no
12196  need_version=no
12197  soname_spec='${libname}${release}.so'
12198  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
12199  shlibpath_var=LD_LIBRARY_PATH
12200  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12201  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12202  ;;
12203
12204sco3.2v5*)
12205  version_type=osf
12206  soname_spec='${libname}${release}.so$major'
12207  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12208  shlibpath_var=LD_LIBRARY_PATH
12209  ;;
12210
12211solaris*)
12212  version_type=linux
12213  need_lib_prefix=no
12214  need_version=no
12215  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12216  soname_spec='${libname}${release}.so$major'
12217  shlibpath_var=LD_LIBRARY_PATH
12218  shlibpath_overrides_runpath=yes
12219  hardcode_into_libs=yes
12220  # ldd complains unless libraries are executable
12221  postinstall_cmds='chmod +x $lib'
12222  ;;
12223
12224sunos4*)
12225  version_type=sunos
12226  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
12227  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12228  shlibpath_var=LD_LIBRARY_PATH
12229  shlibpath_overrides_runpath=yes
12230  if test "$with_gnu_ld" = yes; then
12231    need_lib_prefix=no
12232  fi
12233  need_version=yes
12234  ;;
12235
12236sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12237  version_type=linux
12238  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12239  soname_spec='${libname}${release}.so$major'
12240  shlibpath_var=LD_LIBRARY_PATH
12241  case $host_vendor in
12242    sni)
12243      shlibpath_overrides_runpath=no
12244      ;;
12245    motorola)
12246      need_lib_prefix=no
12247      need_version=no
12248      shlibpath_overrides_runpath=no
12249      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12250      ;;
12251  esac
12252  ;;
12253
12254sysv4*MP*)
12255  if test -d /usr/nec ;then
12256    version_type=linux
12257    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
12258    soname_spec='$libname.so.$major'
12259    shlibpath_var=LD_LIBRARY_PATH
12260  fi
12261  ;;
12262
12263uts4*)
12264  version_type=linux
12265  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
12266  soname_spec='${libname}${release}.so$major'
12267  shlibpath_var=LD_LIBRARY_PATH
12268  ;;
12269
12270*)
12271  dynamic_linker=no
12272  ;;
12273esac
12274echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12275echo "${ECHO_T}$dynamic_linker" >&6
12276test "$dynamic_linker" = no && can_build_shared=no
12277
12278if test "x$enable_dlopen" != xyes; then
12279  enable_dlopen=unknown
12280  enable_dlopen_self=unknown
12281  enable_dlopen_self_static=unknown
12282else
12283  lt_cv_dlopen=no
12284  lt_cv_dlopen_libs=
12285
12286  case $host_os in
12287  beos*)
12288    lt_cv_dlopen="load_add_on"
12289    lt_cv_dlopen_libs=
12290    lt_cv_dlopen_self=yes
12291    ;;
12292
12293  cygwin* | mingw* | pw32*)
12294    lt_cv_dlopen="LoadLibrary"
12295    lt_cv_dlopen_libs=
12296   ;;
12297
12298  *)
12299    echo "$as_me:$LINENO: checking for shl_load" >&5
12300echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12301if test "${ac_cv_func_shl_load+set}" = set; then
12302  echo $ECHO_N "(cached) $ECHO_C" >&6
12303else
12304  cat >conftest.$ac_ext <<_ACEOF
12305#line $LINENO "configure"
12306/* confdefs.h.  */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h.  */
12311/* System header to define __stub macros and hopefully few prototypes,
12312    which can conflict with char shl_load (); below.
12313    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12314    <limits.h> exists even on freestanding compilers.  */
12315#ifdef __STDC__
12316# include <limits.h>
12317#else
12318# include <assert.h>
12319#endif
12320/* Override any gcc2 internal prototype to avoid an error.  */
12321#ifdef __cplusplus
12322extern "C"
12323{
12324#endif
12325/* We use char because int might match the return type of a gcc2
12326   builtin and then its argument prototype would still apply.  */
12327char shl_load ();
12328/* The GNU C library defines this for functions which it implements
12329    to always fail with ENOSYS.  Some functions are actually named
12330    something starting with __ and the normal name is an alias.  */
12331#if defined (__stub_shl_load) || defined (__stub___shl_load)
12332choke me
12333#else
12334char (*f) () = shl_load;
12335#endif
12336#ifdef __cplusplus
12337}
12338#endif
12339
12340int
12341main ()
12342{
12343return f != shl_load;
12344  ;
12345  return 0;
12346}
12347_ACEOF
12348rm -f conftest.$ac_objext conftest$ac_exeext
12349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350  (eval $ac_link) 2>&5
12351  ac_status=$?
12352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353  (exit $ac_status); } &&
12354         { ac_try='test -s conftest$ac_exeext'
12355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356  (eval $ac_try) 2>&5
12357  ac_status=$?
12358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359  (exit $ac_status); }; }; then
12360  ac_cv_func_shl_load=yes
12361else
12362  echo "$as_me: failed program was:" >&5
12363sed 's/^/| /' conftest.$ac_ext >&5
12364
12365ac_cv_func_shl_load=no
12366fi
12367rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12368fi
12369echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12370echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12371if test $ac_cv_func_shl_load = yes; then
12372  lt_cv_dlopen="shl_load"
12373else
12374  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12375echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12376if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12377  echo $ECHO_N "(cached) $ECHO_C" >&6
12378else
12379  ac_check_lib_save_LIBS=$LIBS
12380LIBS="-ldld  $LIBS"
12381cat >conftest.$ac_ext <<_ACEOF
12382#line $LINENO "configure"
12383/* confdefs.h.  */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h.  */
12388
12389/* Override any gcc2 internal prototype to avoid an error.  */
12390#ifdef __cplusplus
12391extern "C"
12392#endif
12393/* We use char because int might match the return type of a gcc2
12394   builtin and then its argument prototype would still apply.  */
12395char shl_load ();
12396int
12397main ()
12398{
12399shl_load ();
12400  ;
12401  return 0;
12402}
12403_ACEOF
12404rm -f conftest.$ac_objext conftest$ac_exeext
12405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12406  (eval $ac_link) 2>&5
12407  ac_status=$?
12408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409  (exit $ac_status); } &&
12410         { ac_try='test -s conftest$ac_exeext'
12411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412  (eval $ac_try) 2>&5
12413  ac_status=$?
12414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415  (exit $ac_status); }; }; then
12416  ac_cv_lib_dld_shl_load=yes
12417else
12418  echo "$as_me: failed program was:" >&5
12419sed 's/^/| /' conftest.$ac_ext >&5
12420
12421ac_cv_lib_dld_shl_load=no
12422fi
12423rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12424LIBS=$ac_check_lib_save_LIBS
12425fi
12426echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12427echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12428if test $ac_cv_lib_dld_shl_load = yes; then
12429  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12430else
12431  echo "$as_me:$LINENO: checking for dlopen" >&5
12432echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12433if test "${ac_cv_func_dlopen+set}" = set; then
12434  echo $ECHO_N "(cached) $ECHO_C" >&6
12435else
12436  cat >conftest.$ac_ext <<_ACEOF
12437#line $LINENO "configure"
12438/* confdefs.h.  */
12439_ACEOF
12440cat confdefs.h >>conftest.$ac_ext
12441cat >>conftest.$ac_ext <<_ACEOF
12442/* end confdefs.h.  */
12443/* System header to define __stub macros and hopefully few prototypes,
12444    which can conflict with char dlopen (); below.
12445    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12446    <limits.h> exists even on freestanding compilers.  */
12447#ifdef __STDC__
12448# include <limits.h>
12449#else
12450# include <assert.h>
12451#endif
12452/* Override any gcc2 internal prototype to avoid an error.  */
12453#ifdef __cplusplus
12454extern "C"
12455{
12456#endif
12457/* We use char because int might match the return type of a gcc2
12458   builtin and then its argument prototype would still apply.  */
12459char dlopen ();
12460/* The GNU C library defines this for functions which it implements
12461    to always fail with ENOSYS.  Some functions are actually named
12462    something starting with __ and the normal name is an alias.  */
12463#if defined (__stub_dlopen) || defined (__stub___dlopen)
12464choke me
12465#else
12466char (*f) () = dlopen;
12467#endif
12468#ifdef __cplusplus
12469}
12470#endif
12471
12472int
12473main ()
12474{
12475return f != dlopen;
12476  ;
12477  return 0;
12478}
12479_ACEOF
12480rm -f conftest.$ac_objext conftest$ac_exeext
12481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482  (eval $ac_link) 2>&5
12483  ac_status=$?
12484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485  (exit $ac_status); } &&
12486         { ac_try='test -s conftest$ac_exeext'
12487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488  (eval $ac_try) 2>&5
12489  ac_status=$?
12490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491  (exit $ac_status); }; }; then
12492  ac_cv_func_dlopen=yes
12493else
12494  echo "$as_me: failed program was:" >&5
12495sed 's/^/| /' conftest.$ac_ext >&5
12496
12497ac_cv_func_dlopen=no
12498fi
12499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12500fi
12501echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12502echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12503if test $ac_cv_func_dlopen = yes; then
12504  lt_cv_dlopen="dlopen"
12505else
12506  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12507echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12508if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12509  echo $ECHO_N "(cached) $ECHO_C" >&6
12510else
12511  ac_check_lib_save_LIBS=$LIBS
12512LIBS="-ldl  $LIBS"
12513cat >conftest.$ac_ext <<_ACEOF
12514#line $LINENO "configure"
12515/* confdefs.h.  */
12516_ACEOF
12517cat confdefs.h >>conftest.$ac_ext
12518cat >>conftest.$ac_ext <<_ACEOF
12519/* end confdefs.h.  */
12520
12521/* Override any gcc2 internal prototype to avoid an error.  */
12522#ifdef __cplusplus
12523extern "C"
12524#endif
12525/* We use char because int might match the return type of a gcc2
12526   builtin and then its argument prototype would still apply.  */
12527char dlopen ();
12528int
12529main ()
12530{
12531dlopen ();
12532  ;
12533  return 0;
12534}
12535_ACEOF
12536rm -f conftest.$ac_objext conftest$ac_exeext
12537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12538  (eval $ac_link) 2>&5
12539  ac_status=$?
12540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541  (exit $ac_status); } &&
12542         { ac_try='test -s conftest$ac_exeext'
12543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544  (eval $ac_try) 2>&5
12545  ac_status=$?
12546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547  (exit $ac_status); }; }; then
12548  ac_cv_lib_dl_dlopen=yes
12549else
12550  echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
12553ac_cv_lib_dl_dlopen=no
12554fi
12555rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12556LIBS=$ac_check_lib_save_LIBS
12557fi
12558echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12559echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12560if test $ac_cv_lib_dl_dlopen = yes; then
12561  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12562else
12563  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12564echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12565if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12566  echo $ECHO_N "(cached) $ECHO_C" >&6
12567else
12568  ac_check_lib_save_LIBS=$LIBS
12569LIBS="-lsvld  $LIBS"
12570cat >conftest.$ac_ext <<_ACEOF
12571#line $LINENO "configure"
12572/* confdefs.h.  */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h.  */
12577
12578/* Override any gcc2 internal prototype to avoid an error.  */
12579#ifdef __cplusplus
12580extern "C"
12581#endif
12582/* We use char because int might match the return type of a gcc2
12583   builtin and then its argument prototype would still apply.  */
12584char dlopen ();
12585int
12586main ()
12587{
12588dlopen ();
12589  ;
12590  return 0;
12591}
12592_ACEOF
12593rm -f conftest.$ac_objext conftest$ac_exeext
12594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595  (eval $ac_link) 2>&5
12596  ac_status=$?
12597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598  (exit $ac_status); } &&
12599         { ac_try='test -s conftest$ac_exeext'
12600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601  (eval $ac_try) 2>&5
12602  ac_status=$?
12603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604  (exit $ac_status); }; }; then
12605  ac_cv_lib_svld_dlopen=yes
12606else
12607  echo "$as_me: failed program was:" >&5
12608sed 's/^/| /' conftest.$ac_ext >&5
12609
12610ac_cv_lib_svld_dlopen=no
12611fi
12612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12613LIBS=$ac_check_lib_save_LIBS
12614fi
12615echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12616echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12617if test $ac_cv_lib_svld_dlopen = yes; then
12618  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12619else
12620  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12621echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12622if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12623  echo $ECHO_N "(cached) $ECHO_C" >&6
12624else
12625  ac_check_lib_save_LIBS=$LIBS
12626LIBS="-ldld  $LIBS"
12627cat >conftest.$ac_ext <<_ACEOF
12628#line $LINENO "configure"
12629/* confdefs.h.  */
12630_ACEOF
12631cat confdefs.h >>conftest.$ac_ext
12632cat >>conftest.$ac_ext <<_ACEOF
12633/* end confdefs.h.  */
12634
12635/* Override any gcc2 internal prototype to avoid an error.  */
12636#ifdef __cplusplus
12637extern "C"
12638#endif
12639/* We use char because int might match the return type of a gcc2
12640   builtin and then its argument prototype would still apply.  */
12641char dld_link ();
12642int
12643main ()
12644{
12645dld_link ();
12646  ;
12647  return 0;
12648}
12649_ACEOF
12650rm -f conftest.$ac_objext conftest$ac_exeext
12651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652  (eval $ac_link) 2>&5
12653  ac_status=$?
12654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655  (exit $ac_status); } &&
12656         { ac_try='test -s conftest$ac_exeext'
12657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658  (eval $ac_try) 2>&5
12659  ac_status=$?
12660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661  (exit $ac_status); }; }; then
12662  ac_cv_lib_dld_dld_link=yes
12663else
12664  echo "$as_me: failed program was:" >&5
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
12667ac_cv_lib_dld_dld_link=no
12668fi
12669rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12670LIBS=$ac_check_lib_save_LIBS
12671fi
12672echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12673echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12674if test $ac_cv_lib_dld_dld_link = yes; then
12675  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12676fi
12677
12678
12679fi
12680
12681
12682fi
12683
12684
12685fi
12686
12687
12688fi
12689
12690
12691fi
12692
12693    ;;
12694  esac
12695
12696  if test "x$lt_cv_dlopen" != xno; then
12697    enable_dlopen=yes
12698  else
12699    enable_dlopen=no
12700  fi
12701
12702  case $lt_cv_dlopen in
12703  dlopen)
12704    save_CPPFLAGS="$CPPFLAGS"
12705    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12706
12707    save_LDFLAGS="$LDFLAGS"
12708    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12709
12710    save_LIBS="$LIBS"
12711    LIBS="$lt_cv_dlopen_libs $LIBS"
12712
12713    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12714echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12715if test "${lt_cv_dlopen_self+set}" = set; then
12716  echo $ECHO_N "(cached) $ECHO_C" >&6
12717else
12718  	  if test "$cross_compiling" = yes; then :
12719  lt_cv_dlopen_self=cross
12720else
12721  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12722  lt_status=$lt_dlunknown
12723  cat > conftest.$ac_ext <<EOF
12724#line 12724 "configure"
12725#include "confdefs.h"
12726
12727#if HAVE_DLFCN_H
12728#include <dlfcn.h>
12729#endif
12730
12731#include <stdio.h>
12732
12733#ifdef RTLD_GLOBAL
12734#  define LT_DLGLOBAL		RTLD_GLOBAL
12735#else
12736#  ifdef DL_GLOBAL
12737#    define LT_DLGLOBAL		DL_GLOBAL
12738#  else
12739#    define LT_DLGLOBAL		0
12740#  endif
12741#endif
12742
12743/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12744   find out it does not work in some platform. */
12745#ifndef LT_DLLAZY_OR_NOW
12746#  ifdef RTLD_LAZY
12747#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12748#  else
12749#    ifdef DL_LAZY
12750#      define LT_DLLAZY_OR_NOW		DL_LAZY
12751#    else
12752#      ifdef RTLD_NOW
12753#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12754#      else
12755#        ifdef DL_NOW
12756#          define LT_DLLAZY_OR_NOW	DL_NOW
12757#        else
12758#          define LT_DLLAZY_OR_NOW	0
12759#        endif
12760#      endif
12761#    endif
12762#  endif
12763#endif
12764
12765#ifdef __cplusplus
12766extern "C" void exit (int);
12767#endif
12768
12769void fnord() { int i=42;}
12770int main ()
12771{
12772  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12773  int status = $lt_dlunknown;
12774
12775  if (self)
12776    {
12777      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12778      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12779      /* dlclose (self); */
12780    }
12781
12782    exit (status);
12783}
12784EOF
12785  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12786  (eval $ac_link) 2>&5
12787  ac_status=$?
12788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12790    (./conftest; exit; ) 2>/dev/null
12791    lt_status=$?
12792    case x$lt_status in
12793      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12794      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12795      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12796    esac
12797  else :
12798    # compilation failed
12799    lt_cv_dlopen_self=no
12800  fi
12801fi
12802rm -fr conftest*
12803
12804
12805fi
12806echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12807echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12808
12809    if test "x$lt_cv_dlopen_self" = xyes; then
12810      LDFLAGS="$LDFLAGS $link_static_flag"
12811      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12812echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12813if test "${lt_cv_dlopen_self_static+set}" = set; then
12814  echo $ECHO_N "(cached) $ECHO_C" >&6
12815else
12816  	  if test "$cross_compiling" = yes; then :
12817  lt_cv_dlopen_self_static=cross
12818else
12819  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12820  lt_status=$lt_dlunknown
12821  cat > conftest.$ac_ext <<EOF
12822#line 12822 "configure"
12823#include "confdefs.h"
12824
12825#if HAVE_DLFCN_H
12826#include <dlfcn.h>
12827#endif
12828
12829#include <stdio.h>
12830
12831#ifdef RTLD_GLOBAL
12832#  define LT_DLGLOBAL		RTLD_GLOBAL
12833#else
12834#  ifdef DL_GLOBAL
12835#    define LT_DLGLOBAL		DL_GLOBAL
12836#  else
12837#    define LT_DLGLOBAL		0
12838#  endif
12839#endif
12840
12841/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12842   find out it does not work in some platform. */
12843#ifndef LT_DLLAZY_OR_NOW
12844#  ifdef RTLD_LAZY
12845#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12846#  else
12847#    ifdef DL_LAZY
12848#      define LT_DLLAZY_OR_NOW		DL_LAZY
12849#    else
12850#      ifdef RTLD_NOW
12851#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12852#      else
12853#        ifdef DL_NOW
12854#          define LT_DLLAZY_OR_NOW	DL_NOW
12855#        else
12856#          define LT_DLLAZY_OR_NOW	0
12857#        endif
12858#      endif
12859#    endif
12860#  endif
12861#endif
12862
12863#ifdef __cplusplus
12864extern "C" void exit (int);
12865#endif
12866
12867void fnord() { int i=42;}
12868int main ()
12869{
12870  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12871  int status = $lt_dlunknown;
12872
12873  if (self)
12874    {
12875      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12876      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12877      /* dlclose (self); */
12878    }
12879
12880    exit (status);
12881}
12882EOF
12883  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884  (eval $ac_link) 2>&5
12885  ac_status=$?
12886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12888    (./conftest; exit; ) 2>/dev/null
12889    lt_status=$?
12890    case x$lt_status in
12891      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12892      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12893      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12894    esac
12895  else :
12896    # compilation failed
12897    lt_cv_dlopen_self_static=no
12898  fi
12899fi
12900rm -fr conftest*
12901
12902
12903fi
12904echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12905echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12906    fi
12907
12908    CPPFLAGS="$save_CPPFLAGS"
12909    LDFLAGS="$save_LDFLAGS"
12910    LIBS="$save_LIBS"
12911    ;;
12912  esac
12913
12914  case $lt_cv_dlopen_self in
12915  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12916  *) enable_dlopen_self=unknown ;;
12917  esac
12918
12919  case $lt_cv_dlopen_self_static in
12920  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12921  *) enable_dlopen_self_static=unknown ;;
12922  esac
12923fi
12924
12925
12926# The else clause should only fire when bootstrapping the
12927# libtool distribution, otherwise you forgot to ship ltmain.sh
12928# with your package, and you will get complaints that there are
12929# no rules to generate ltmain.sh.
12930if test -f "$ltmain"; then
12931  # Now quote all the things that may contain metacharacters while being
12932  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12933  # variables and quote the copies for generation of the libtool script.
12934  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
12935    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12936    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12937    deplibs_check_method reload_flag reload_cmds need_locks \
12938    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12939    lt_cv_sys_global_symbol_to_c_name_address \
12940    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12941    old_postinstall_cmds old_postuninstall_cmds \
12942    compiler_CXX \
12943    CC_CXX \
12944    LD_CXX \
12945    lt_prog_compiler_wl_CXX \
12946    lt_prog_compiler_pic_CXX \
12947    lt_prog_compiler_static_CXX \
12948    lt_prog_compiler_no_builtin_flag_CXX \
12949    export_dynamic_flag_spec_CXX \
12950    thread_safe_flag_spec_CXX \
12951    whole_archive_flag_spec_CXX \
12952    old_archive_cmds_CXX \
12953    old_archive_from_new_cmds_CXX \
12954    predep_objects_CXX \
12955    postdep_objects_CXX \
12956    predeps_CXX \
12957    postdeps_CXX \
12958    compiler_lib_search_path_CXX \
12959    archive_cmds_CXX \
12960    archive_expsym_cmds_CXX \
12961    postinstall_cmds_CXX \
12962    postuninstall_cmds_CXX \
12963    old_archive_from_expsyms_cmds_CXX \
12964    allow_undefined_flag_CXX \
12965    no_undefined_flag_CXX \
12966    export_symbols_cmds_CXX \
12967    hardcode_libdir_flag_spec_CXX \
12968    hardcode_libdir_separator_CXX \
12969    lt_cv_prog_compiler_c_o_CXX \
12970    exclude_expsyms_CXX \
12971    include_expsyms_CXX; do
12972
12973    case $var in
12974    old_archive_cmds_CXX | \
12975    old_archive_from_new_cmds_CXX | \
12976    archive_cmds_CXX | \
12977    archive_expsym_cmds_CXX | \
12978    old_archive_from_expsyms_cmds_CXX | \
12979    export_symbols_cmds_CXX | \
12980    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12981    postinstall_cmds | postuninstall_cmds | \
12982    old_postinstall_cmds | old_postuninstall_cmds | \
12983    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12984      # Double-quote double-evaled strings.
12985      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12986      ;;
12987    *)
12988      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12989      ;;
12990    esac
12991  done
12992
12993  case $lt_echo in
12994  *'\$0 --fallback-echo"')
12995    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12996    ;;
12997  esac
12998
12999cfgfile="$ofile"
13000
13001  cat <<__EOF__ >> "$cfgfile"
13002# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13003
13004# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13005
13006# Shell to use when invoking shell scripts.
13007SHELL=$lt_SHELL
13008
13009# Whether or not to build shared libraries.
13010build_libtool_libs=$enable_shared
13011
13012# Whether or not to build static libraries.
13013build_old_libs=$enable_static
13014
13015# Whether or not to add -lc for building shared libraries.
13016build_libtool_need_lc=$archive_cmds_need_lc_CXX
13017
13018# Whether or not to optimize for fast installation.
13019fast_install=$enable_fast_install
13020
13021# The host system.
13022host_alias=$host_alias
13023host=$host
13024
13025# An echo program that does not interpret backslashes.
13026echo=$lt_echo
13027
13028# The archiver.
13029AR=$lt_AR
13030AR_FLAGS=$lt_AR_FLAGS
13031
13032# A C compiler.
13033LTCC=$lt_LTCC
13034
13035# A language-specific compiler.
13036CC=$lt_compiler_CXX
13037
13038# Is the compiler the GNU C compiler?
13039with_gcc=$GCC_CXX
13040
13041# The linker used to build libraries.
13042LD=$lt_LD_CXX
13043
13044# Whether we need hard or soft links.
13045LN_S=$lt_LN_S
13046
13047# A BSD-compatible nm program.
13048NM=$lt_NM
13049
13050# A sed program that does not truncate output.
13051SED=$lt_SED
13052
13053# A symbol stripping program
13054STRIP=$STRIP
13055
13056# Used to examine libraries when file_magic_cmd begins "file"
13057MAGIC_CMD=$MAGIC_CMD
13058
13059# Used on cygwin: DLL creation program.
13060DLLTOOL="$DLLTOOL"
13061
13062# Used on cygwin: object dumper.
13063OBJDUMP="$OBJDUMP"
13064
13065# Used on cygwin: assembler.
13066AS="$AS"
13067
13068# The name of the directory that contains temporary libtool files.
13069objdir=$objdir
13070
13071# How to create reloadable object files.
13072reload_flag=$lt_reload_flag
13073reload_cmds=$lt_reload_cmds
13074
13075# How to pass a linker flag through the compiler.
13076wl=$lt_lt_prog_compiler_wl_CXX
13077
13078# Object file suffix (normally "o").
13079objext="$ac_objext"
13080
13081# Old archive suffix (normally "a").
13082libext="$libext"
13083
13084# Executable file suffix (normally "").
13085exeext="$exeext"
13086
13087# Additional compiler flags for building library objects.
13088pic_flag=$lt_lt_prog_compiler_pic_CXX
13089pic_mode=$pic_mode
13090
13091# What is the maximum length of a command?
13092max_cmd_len=$lt_cv_sys_max_cmd_len
13093
13094# Does compiler simultaneously support -c and -o options?
13095compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13096
13097# Must we lock files when doing compilation ?
13098need_locks=$lt_need_locks
13099
13100# Do we need the lib prefix for modules?
13101need_lib_prefix=$need_lib_prefix
13102
13103# Do we need a version for libraries?
13104need_version=$need_version
13105
13106# Whether dlopen is supported.
13107dlopen_support=$enable_dlopen
13108
13109# Whether dlopen of programs is supported.
13110dlopen_self=$enable_dlopen_self
13111
13112# Whether dlopen of statically linked programs is supported.
13113dlopen_self_static=$enable_dlopen_self_static
13114
13115# Compiler flag to prevent dynamic linking.
13116link_static_flag=$lt_lt_prog_compiler_static_CXX
13117
13118# Compiler flag to turn off builtin functions.
13119no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13120
13121# Compiler flag to allow reflexive dlopens.
13122export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13123
13124# Compiler flag to generate shared objects directly from archives.
13125whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13126
13127# Compiler flag to generate thread-safe objects.
13128thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13129
13130# Library versioning type.
13131version_type=$version_type
13132
13133# Format of library name prefix.
13134libname_spec=$lt_libname_spec
13135
13136# List of archive names.  First name is the real one, the rest are links.
13137# The last name is the one that the linker finds with -lNAME.
13138library_names_spec=$lt_library_names_spec
13139
13140# The coded name of the library, if different from the real name.
13141soname_spec=$lt_soname_spec
13142
13143# Commands used to build and install an old-style archive.
13144RANLIB=$lt_RANLIB
13145old_archive_cmds=$lt_old_archive_cmds_CXX
13146old_postinstall_cmds=$lt_old_postinstall_cmds
13147old_postuninstall_cmds=$lt_old_postuninstall_cmds
13148
13149# Create an old-style archive from a shared archive.
13150old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13151
13152# Create a temporary old-style archive to link instead of a shared archive.
13153old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13154
13155# Commands used to build and install a shared archive.
13156archive_cmds=$lt_archive_cmds_CXX
13157archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13158postinstall_cmds=$lt_postinstall_cmds
13159postuninstall_cmds=$lt_postuninstall_cmds
13160
13161# Commands to strip libraries.
13162old_striplib=$lt_old_striplib
13163striplib=$lt_striplib
13164
13165# Dependencies to place before the objects being linked to create a
13166# shared library.
13167predep_objects=$lt_predep_objects_CXX
13168
13169# Dependencies to place after the objects being linked to create a
13170# shared library.
13171postdep_objects=$lt_postdep_objects_CXX
13172
13173# Dependencies to place before the objects being linked to create a
13174# shared library.
13175predeps=$lt_predeps_CXX
13176
13177# Dependencies to place after the objects being linked to create a
13178# shared library.
13179postdeps=$lt_postdeps_CXX
13180
13181# The library search path used internally by the compiler when linking
13182# a shared library.
13183compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13184
13185# Method to check whether dependent libraries are shared objects.
13186deplibs_check_method=$lt_deplibs_check_method
13187
13188# Command to use when deplibs_check_method == file_magic.
13189file_magic_cmd=$lt_file_magic_cmd
13190
13191# Flag that allows shared libraries with undefined symbols to be built.
13192allow_undefined_flag=$lt_allow_undefined_flag_CXX
13193
13194# Flag that forces no undefined symbols.
13195no_undefined_flag=$lt_no_undefined_flag_CXX
13196
13197# Commands used to finish a libtool library installation in a directory.
13198finish_cmds=$lt_finish_cmds
13199
13200# Same as above, but a single script fragment to be evaled but not shown.
13201finish_eval=$lt_finish_eval
13202
13203# Take the output of nm and produce a listing of raw symbols and C names.
13204global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13205
13206# Transform the output of nm in a proper C declaration
13207global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13208
13209# Transform the output of nm in a C name address pair
13210global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13211
13212# This is the shared library runtime path variable.
13213runpath_var=$runpath_var
13214
13215# This is the shared library path variable.
13216shlibpath_var=$shlibpath_var
13217
13218# Is shlibpath searched before the hard-coded library search path?
13219shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13220
13221# How to hardcode a shared library path into an executable.
13222hardcode_action=$hardcode_action_CXX
13223
13224# Whether we should hardcode library paths into libraries.
13225hardcode_into_libs=$hardcode_into_libs
13226
13227# Flag to hardcode \$libdir into a binary during linking.
13228# This must work even if \$libdir does not exist.
13229hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13230
13231# Whether we need a single -rpath flag with a separated argument.
13232hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13233
13234# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
13235# resulting binary.
13236hardcode_direct=$hardcode_direct_CXX
13237
13238# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13239# resulting binary.
13240hardcode_minus_L=$hardcode_minus_L_CXX
13241
13242# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13243# the resulting binary.
13244hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13245
13246# Variables whose values should be saved in libtool wrapper scripts and
13247# restored at relink time.
13248variables_saved_for_relink="$variables_saved_for_relink"
13249
13250# Whether libtool must link a program against all its dependency libraries.
13251link_all_deplibs=$link_all_deplibs_CXX
13252
13253# Compile-time system search path for libraries
13254sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13255
13256# Run-time system search path for libraries
13257sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13258
13259# Fix the shell variable \$srcfile for the compiler.
13260fix_srcfile_path="$fix_srcfile_path_CXX"
13261
13262# Set to yes if exported symbols are required.
13263always_export_symbols=$always_export_symbols_CXX
13264
13265# The commands to list exported symbols.
13266export_symbols_cmds=$lt_export_symbols_cmds_CXX
13267
13268# The commands to extract the exported symbol list from a shared archive.
13269extract_expsyms_cmds=$lt_extract_expsyms_cmds
13270
13271# Symbols that should not be listed in the preloaded symbols.
13272exclude_expsyms=$lt_exclude_expsyms_CXX
13273
13274# Symbols that must always be exported.
13275include_expsyms=$lt_include_expsyms_CXX
13276
13277# ### END LIBTOOL TAG CONFIG: $tagname
13278
13279__EOF__
13280
13281
13282else
13283  # If there is no Makefile yet, we rely on a make rule to execute
13284  # `config.status --recheck' to rerun these tests and create the
13285  # libtool script then.
13286  test -f Makefile && make "$ltmain"
13287fi
13288
13289
13290ac_ext=c
13291ac_cpp='$CPP $CPPFLAGS'
13292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13294ac_compiler_gnu=$ac_cv_c_compiler_gnu
13295
13296CC="$lt_save_CC"
13297
13298	;;
13299
13300      GCJ)
13301
13302
13303
13304# Source file extension for C test sources.
13305ac_ext=java
13306
13307# Object file extension for compiled C test sources.
13308objext=o
13309objext_GCJ=$objext
13310
13311# Code to be used in simple compile tests
13312lt_simple_compile_test_code="class foo {}"
13313
13314# Code to be used in simple link tests
13315lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
13316
13317# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13318
13319# If no C compiler was specified, use CC.
13320LTCC=${LTCC-"$CC"}
13321
13322# Allow CC to be a program name with arguments.
13323set dummy $CC
13324compiler="$2"
13325
13326
13327# Allow CC to be a program name with arguments.
13328lt_save_CC="$CC"
13329CC=${GCJ-"gcj"}
13330set dummy $CC
13331compiler="$2"
13332compiler_GCJ=$CC
13333
13334# GCJ did not exist at the time GCC didn't implicitly link libc in.
13335archive_cmds_need_lc_GCJ=no
13336
13337
13338lt_prog_compiler_no_builtin_flag_GCJ=
13339
13340if test "$GCC" = yes; then
13341  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
13342
13343  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13344echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
13345if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13346  echo $ECHO_N "(cached) $ECHO_C" >&6
13347else
13348  lt_cv_prog_compiler_rtti_exceptions=no
13349  ac_outfile=conftest.$ac_objext
13350   save_CFLAGS="$CFLAGS"
13351   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
13352   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13353   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
13354     # The compiler can only warn and ignore the option if not recognized
13355     # So say no if there are warnings
13356     if test -s conftest.err; then
13357       # Append any errors to the config.log.
13358       cat conftest.err 1>&5
13359     else
13360       lt_cv_prog_compiler_rtti_exceptions=yes
13361     fi
13362   fi
13363   $rm conftest*
13364   CFLAGS="$save_CFLAGS"
13365
13366fi
13367echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13368echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
13369
13370if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13371    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
13372else
13373    :
13374fi
13375
13376fi
13377
13378lt_prog_compiler_wl_GCJ=
13379lt_prog_compiler_pic_GCJ=
13380lt_prog_compiler_static_GCJ=
13381
13382echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13383echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13384
13385  if test "$GCC" = yes; then
13386    lt_prog_compiler_wl_GCJ='-Wl,'
13387    lt_prog_compiler_static_GCJ='-static'
13388
13389    case $host_os in
13390      aix*)
13391      # All AIX code is PIC.
13392      if test "$host_cpu" = ia64; then
13393	# AIX 5 now supports IA64 processor
13394	lt_prog_compiler_static_GCJ='-Bstatic'
13395      fi
13396      ;;
13397
13398    amigaos*)
13399      # FIXME: we need at least 68020 code to build shared libraries, but
13400      # adding the `-m68020' flag to GCC prevents building anything better,
13401      # like `-m68040'.
13402      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
13403      ;;
13404
13405    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13406      # PIC is the default for these OSes.
13407      ;;
13408
13409    cygwin* | mingw* | pw32* | os2*)
13410      # This hack is so that the source file can tell whether it is being
13411      # built for inclusion in a dll (and should export symbols for example).
13412      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
13413      ;;
13414
13415    darwin* | rhapsody*)
13416      # PIC is the default on this platform
13417      # Common symbols not allowed in MH_DYLIB files
13418      lt_prog_compiler_pic_GCJ='-fno-common'
13419      ;;
13420
13421    msdosdjgpp*)
13422      # Just because we use GCC doesn't mean we suddenly get shared libraries
13423      # on systems that don't support them.
13424      lt_prog_compiler_can_build_shared_GCJ=no
13425      enable_shared=no
13426      ;;
13427
13428    sysv4*MP*)
13429      if test -d /usr/nec; then
13430	lt_prog_compiler_pic_GCJ=-Kconform_pic
13431      fi
13432      ;;
13433
13434    hpux*)
13435      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
13436      if test "$host_cpu" != ia64; then
13437	lt_prog_compiler_pic_GCJ='-fPIC'
13438      fi
13439      ;;
13440
13441    *)
13442      lt_prog_compiler_pic_GCJ='-fPIC'
13443      ;;
13444    esac
13445  else
13446    # PORTME Check for flag to pass linker flags through the system compiler.
13447    case $host_os in
13448    aix*)
13449      lt_prog_compiler_wl_GCJ='-Wl,'
13450      if test "$host_cpu" = ia64; then
13451	# AIX 5 now supports IA64 processor
13452	lt_prog_compiler_static_GCJ='-Bstatic'
13453      else
13454	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
13455      fi
13456      ;;
13457
13458    cygwin* | mingw* | pw32* | os2*)
13459      # This hack is so that the source file can tell whether it is being
13460      # built for inclusion in a dll (and should export symbols for example).
13461      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
13462      ;;
13463
13464    hpux9* | hpux10* | hpux11*)
13465      lt_prog_compiler_wl_GCJ='-Wl,'
13466      if test "$host_cpu" != ia64; then
13467	lt_prog_compiler_pic_GCJ='+Z'
13468      fi
13469      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13470      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
13471      ;;
13472
13473    irix5* | irix6* | nonstopux*)
13474      lt_prog_compiler_wl_GCJ='-Wl,'
13475      # PIC (with -KPIC) is the default.
13476      lt_prog_compiler_static_GCJ='-non_shared'
13477      ;;
13478
13479    newsos6)
13480      lt_prog_compiler_pic_GCJ='-KPIC'
13481      lt_prog_compiler_static_GCJ='-Bstatic'
13482      ;;
13483
13484    osf3* | osf4* | osf5*)
13485      lt_prog_compiler_wl_GCJ='-Wl,'
13486      # All OSF/1 code is PIC.
13487      lt_prog_compiler_static_GCJ='-non_shared'
13488      ;;
13489
13490    sco3.2v5*)
13491      lt_prog_compiler_pic_GCJ='-Kpic'
13492      lt_prog_compiler_static_GCJ='-dn'
13493      ;;
13494
13495    solaris*)
13496      lt_prog_compiler_wl_GCJ='-Wl,'
13497      lt_prog_compiler_pic_GCJ='-KPIC'
13498      lt_prog_compiler_static_GCJ='-Bstatic'
13499      ;;
13500
13501    sunos4*)
13502      lt_prog_compiler_wl_GCJ='-Qoption ld '
13503      lt_prog_compiler_pic_GCJ='-PIC'
13504      lt_prog_compiler_static_GCJ='-Bstatic'
13505      ;;
13506
13507    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13508      if test "x$host_vendor" = xsni; then
13509	lt_prog_compiler_wl_GCJ='-LD'
13510      else
13511	lt_prog_compiler_wl_GCJ='-Wl,'
13512      fi
13513      lt_prog_compiler_pic_GCJ='-KPIC'
13514      lt_prog_compiler_static_GCJ='-Bstatic'
13515      ;;
13516
13517    sysv4*MP*)
13518      if test -d /usr/nec ;then
13519	lt_prog_compiler_pic_GCJ='-Kconform_pic'
13520	lt_prog_compiler_static_GCJ='-Bstatic'
13521      fi
13522      ;;
13523
13524    uts4*)
13525      lt_prog_compiler_pic_GCJ='-pic'
13526      lt_prog_compiler_static_GCJ='-Bstatic'
13527      ;;
13528
13529    *)
13530      lt_prog_compiler_can_build_shared_GCJ=no
13531      ;;
13532    esac
13533  fi
13534
13535echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
13536echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
13537
13538#
13539# Check to make sure the PIC flag actually works.
13540#
13541if test -n "$lt_prog_compiler_pic_GCJ"; then
13542  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
13543echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
13544if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
13545  echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547  lt_prog_compiler_pic_works_GCJ=no
13548  ac_outfile=conftest.$ac_objext
13549   save_CFLAGS="$CFLAGS"
13550   CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
13551   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13552   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
13553     # The compiler can only warn and ignore the option if not recognized
13554     # So say no if there are warnings
13555     if test -s conftest.err; then
13556       # Append any errors to the config.log.
13557       cat conftest.err 1>&5
13558     else
13559       lt_prog_compiler_pic_works_GCJ=yes
13560     fi
13561   fi
13562   $rm conftest*
13563   CFLAGS="$save_CFLAGS"
13564
13565fi
13566echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
13567echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
13568
13569if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
13570    case $lt_prog_compiler_pic_GCJ in
13571     "" | " "*) ;;
13572     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
13573     esac
13574else
13575    lt_prog_compiler_pic_GCJ=
13576     lt_prog_compiler_can_build_shared_GCJ=no
13577fi
13578
13579fi
13580case "$host_os" in
13581  # For platforms which do not support PIC, -DPIC is meaningless:
13582  *djgpp*)
13583    lt_prog_compiler_pic_GCJ=
13584    ;;
13585  *)
13586    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
13587    ;;
13588esac
13589
13590echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13591echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13592if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
13593  echo $ECHO_N "(cached) $ECHO_C" >&6
13594else
13595  lt_cv_prog_compiler_c_o_GCJ=no
13596   $rm -r conftest 2>/dev/null
13597   mkdir conftest
13598   cd conftest
13599   mkdir out
13600   save_GCJFLAGS="$GCJFLAGS"
13601		   GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
13602   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13603
13604   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13605   # that will create temporary files in the current directory regardless of
13606   # the output directory.  Thus, making CWD read-only will cause this test
13607   # to fail, enabling locking or at least warning the user not to do parallel
13608   # builds.
13609   chmod -w .
13610
13611   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
13612   then
13613     # The compiler can only warn and ignore the option if not recognized
13614     # So say no if there are warnings
13615     if test -s out/conftest.err; then
13616       # Append any errors to the config.log.
13617       cat out/conftest.err 1>&5
13618     else
13619       lt_cv_prog_compiler_c_o_GCJ=yes
13620     fi
13621   fi
13622   GCJFLAGS="$save_GCJFLAGS"
13623   chmod u+w .
13624   $rm conftest* out/*
13625   rmdir out
13626   cd ..
13627   rmdir conftest
13628   $rm conftest*
13629
13630fi
13631echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
13632echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
13633
13634
13635hard_links="nottested"
13636if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
13637  # do not overwrite the value of need_locks provided by the user
13638  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13639echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13640  hard_links=yes
13641  $rm conftest*
13642  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13643  touch conftest.a
13644  ln conftest.a conftest.b 2>&5 || hard_links=no
13645  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13646  echo "$as_me:$LINENO: result: $hard_links" >&5
13647echo "${ECHO_T}$hard_links" >&6
13648  if test "$hard_links" = no; then
13649    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13650echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13651    need_locks=warn
13652  fi
13653else
13654  need_locks=no
13655fi
13656
13657echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13658echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13659
13660  runpath_var=
13661  allow_undefined_flag_GCJ=
13662
13663  archive_cmds_GCJ=
13664  archive_cmds_need_lc_GCJ=
13665  archive_expsym_cmds_GCJ=
13666  old_archive_From_new_cmds_GCJ=
13667  old_archive_from_expsyms_cmds_GCJ=
13668  export_dynamic_flag_spec_GCJ=
13669  whole_archive_flag_spec_GCJ=
13670  thread_safe_flag_spec_GCJ=
13671  hardcode_libdir_flag_spec_GCJ=
13672  hardcode_libdir_separator_GCJ=
13673  hardcode_direct_GCJ=no
13674  hardcode_minus_L_GCJ=no
13675  hardcode_shlibpath_var_GCJ=unsupported
13676  link_all_deplibs_GCJ=unknown
13677  always_export_symbols_GCJ=no
13678  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
13679  # include_expsyms should be a list of space-separated symbols to be *always*
13680  # included in the symbol list
13681  include_expsyms_GCJ=
13682  # exclude_expsyms can be an egrep regular expression of symbols to exclude
13683  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13684  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13685  # as well as any symbol that contains `d'.
13686  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
13687  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13688  # platforms (ab)use it in PIC code, but their linkers get confused if
13689  # the symbol is explicitly referenced.  Since portable code cannot
13690  # rely on this symbol name, it's probably fine to never include it in
13691  # preloaded symbol tables.
13692  extract_expsyms_cmds=
13693
13694  case $host_os in
13695  cygwin* | mingw* | pw32*)
13696    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13697    # When not using gcc, we currently assume that we are using
13698    # Microsoft Visual C++.
13699    if test "$GCC" != yes; then
13700      with_gnu_ld=no
13701    fi
13702    ;;
13703  openbsd*)
13704    with_gnu_ld=no
13705    ;;
13706  esac
13707
13708  ld_shlibs_GCJ=yes
13709  if test "$with_gnu_ld" = yes; then
13710    # If archive_cmds runs LD, not CC, wlarc should be empty
13711    wlarc='${wl}'
13712
13713    # See if GNU ld supports shared libraries.
13714    case $host_os in
13715    aix3* | aix4* | aix5*)
13716      # On AIX/PPC, the GNU linker is very broken
13717      if test "$host_cpu" != ia64; then
13718	ld_shlibs_GCJ=no
13719	cat <<EOF 1>&2
13720
13721*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13722*** to be unable to reliably create shared libraries on AIX.
13723*** Therefore, libtool is disabling shared libraries support.  If you
13724*** really care for shared libraries, you may want to modify your PATH
13725*** so that a non-GNU linker is found, and then restart.
13726
13727EOF
13728      fi
13729      ;;
13730
13731    amigaos*)
13732      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)'
13733      hardcode_libdir_flag_spec_GCJ='-L$libdir'
13734      hardcode_minus_L_GCJ=yes
13735
13736      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13737      # that the semantics of dynamic libraries on AmigaOS, at least up
13738      # to version 4, is to share data among multiple programs linked
13739      # with the same dynamic library.  Since this doesn't match the
13740      # behavior of shared libraries on other platforms, we can't use
13741      # them.
13742      ld_shlibs_GCJ=no
13743      ;;
13744
13745    beos*)
13746      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13747	allow_undefined_flag_GCJ=unsupported
13748	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13749	# support --undefined.  This deserves some investigation.  FIXME
13750	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13751      else
13752	ld_shlibs_GCJ=no
13753      fi
13754      ;;
13755
13756    cygwin* | mingw* | pw32*)
13757      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
13758      # no search path for DLLs.
13759      hardcode_libdir_flag_spec_GCJ='-L$libdir'
13760      allow_undefined_flag_GCJ=unsupported
13761      always_export_symbols_GCJ=yes
13762
13763      extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
13764	sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
13765	test -f $output_objdir/impgen.exe || (cd $output_objdir && \
13766	if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
13767	else $CC -o impgen impgen.c ; fi)~
13768	$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
13769
13770      old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
13771
13772      # cygwin and mingw dlls have different entry points and sets of symbols
13773      # to exclude.
13774      # FIXME: what about values for MSVC?
13775      dll_entry=__cygwin_dll_entry@12
13776      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
13777      case $host_os in
13778      mingw*)
13779	# mingw values
13780	dll_entry=_DllMainCRTStartup@12
13781	dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
13782	;;
13783      esac
13784
13785      # mingw and cygwin differ, and it's simplest to just exclude the union
13786      # of the two symbol sets.
13787      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
13788
13789      # recent cygwin and mingw systems supply a stub DllMain which the user
13790      # can override, but on older systems we have to supply one (in ltdll.c)
13791      if test "x$lt_cv_need_dllmain" = "xyes"; then
13792	ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
13793	ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
13794  	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
13795      else
13796	ltdll_obj=
13797	ltdll_cmds=
13798      fi
13799
13800      # Extract the symbol export list from an `--export-all' def file,
13801      # then regenerate the def file from the symbol export list, so that
13802      # the compiled dll only exports the symbol export list.
13803      # Be careful not to strip the DATA tag left by newer dlltools.
13804      export_symbols_cmds_GCJ="$ltdll_cmds"'
13805	$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
13806	sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
13807
13808      # If the export-symbols file already is a .def file (1st line
13809      # is EXPORTS), use it as is.
13810      # If DATA tags from a recent dlltool are present, honour them!
13811      archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
13812	  cp $export_symbols $output_objdir/$soname-def;
13813	else
13814	  echo EXPORTS > $output_objdir/$soname-def;
13815	  _lt_hint=1;
13816	  cat $export_symbols | while read symbol; do
13817	   set dummy \$symbol;
13818	   case \$# in
13819	     2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
13820	     *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
13821	   esac;
13822	   _lt_hint=`expr 1 + \$_lt_hint`;
13823	  done;
13824	fi~
13825	'"$ltdll_cmds"'
13826	$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
13827	$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
13828	$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
13829	$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
13830	$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
13831      ;;
13832
13833    netbsd*)
13834      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13835	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13836	wlarc=
13837      else
13838	archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13839	archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13840      fi
13841      ;;
13842
13843    solaris* | sysv5*)
13844      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
13845	ld_shlibs_GCJ=no
13846	cat <<EOF 1>&2
13847
13848*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13849*** create shared libraries on Solaris systems.  Therefore, libtool
13850*** is disabling shared libraries support.  We urge you to upgrade GNU
13851*** binutils to release 2.9.1 or newer.  Another option is to modify
13852*** your PATH or compiler configuration so that the native linker is
13853*** used, and then restart.
13854
13855EOF
13856      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13857	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13858	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13859      else
13860	ld_shlibs_GCJ=no
13861      fi
13862      ;;
13863
13864    sunos4*)
13865      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13866      wlarc=
13867      hardcode_direct_GCJ=yes
13868      hardcode_shlibpath_var_GCJ=no
13869      ;;
13870
13871    *)
13872      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13873	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13874	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13875      else
13876	ld_shlibs_GCJ=no
13877      fi
13878      ;;
13879    esac
13880
13881    if test "$ld_shlibs_GCJ" = yes; then
13882      runpath_var=LD_RUN_PATH
13883      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
13884      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
13885      case $host_os in
13886      cygwin* | mingw* | pw32*)
13887	# dlltool doesn't understand --whole-archive et. al.
13888	whole_archive_flag_spec_GCJ=
13889	;;
13890      *)
13891	# ancient GNU ld didn't support --whole-archive et. al.
13892	if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
13893  	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13894	else
13895  	whole_archive_flag_spec_GCJ=
13896	fi
13897	;;
13898      esac
13899    fi
13900  else
13901    # PORTME fill in a description of your system's linker (not GNU ld)
13902    case $host_os in
13903    aix3*)
13904      allow_undefined_flag_GCJ=unsupported
13905      always_export_symbols_GCJ=yes
13906      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'
13907      # Note: this linker hardcodes the directories in LIBPATH if there
13908      # are no directories specified by -L.
13909      hardcode_minus_L_GCJ=yes
13910      if test "$GCC" = yes && test -z "$link_static_flag"; then
13911	# Neither direct hardcoding nor static linking is supported with a
13912	# broken collect2.
13913	hardcode_direct_GCJ=unsupported
13914      fi
13915      ;;
13916
13917    aix4* | aix5*)
13918      if test "$host_cpu" = ia64; then
13919	# On IA64, the linker does run time linking by default, so we don't
13920	# have to do anything special.
13921	aix_use_runtimelinking=no
13922	exp_sym_flag='-Bexport'
13923	no_entry_flag=""
13924      else
13925	# If we're using GNU nm, then we don't want the "-C" option.
13926	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13927	if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
13928	  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'
13929	else
13930	  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'
13931	fi
13932
13933	# KDE requires run time linking.  Make it the default.
13934	aix_use_runtimelinking=yes
13935	exp_sym_flag='-bexport'
13936	no_entry_flag='-bnoentry'
13937      fi
13938
13939      # When large executables or shared objects are built, AIX ld can
13940      # have problems creating the table of contents.  If linking a library
13941      # or program results in "error TOC overflow" add -mminimal-toc to
13942      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13943      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13944
13945      archive_cmds_GCJ=''
13946      hardcode_direct_GCJ=yes
13947      hardcode_libdir_separator_GCJ=':'
13948      link_all_deplibs_GCJ=yes
13949
13950      if test "$GCC" = yes; then
13951	case $host_os in aix4.012|aix4.012.*)
13952	# We only want to do this on AIX 4.2 and lower, the check
13953	# below for broken collect2 doesn't work under 4.3+
13954	  collect2name=`${CC} -print-prog-name=collect2`
13955	  if test -f "$collect2name" && \
13956  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13957	  then
13958  	  # We have reworked collect2
13959  	  hardcode_direct_GCJ=yes
13960	  else
13961  	  # We have old collect2
13962  	  hardcode_direct_GCJ=unsupported
13963  	  # It fails to find uninstalled libraries when the uninstalled
13964  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13965  	  # to unsupported forces relinking
13966  	  hardcode_minus_L_GCJ=yes
13967  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
13968  	  hardcode_libdir_separator_GCJ=
13969	  fi
13970	esac
13971	shared_flag='-shared'
13972      else
13973	# not using gcc
13974	if test "$host_cpu" = ia64; then
13975  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13976  	# chokes on -Wl,-G. The following line is correct:
13977	  shared_flag='-G'
13978	else
13979  	if test "$aix_use_runtimelinking" = yes; then
13980	    shared_flag='-qmkshrobj ${wl}-G'
13981	  else
13982	    shared_flag='-qmkshrobj'
13983  	fi
13984	fi
13985      fi
13986
13987      # Let the compiler handle the export list.
13988      always_export_symbols_GCJ=no
13989      if test "$aix_use_runtimelinking" = yes; then
13990	# Warning - without using the other runtime loading flags (-brtl),
13991	# -berok will link without error, but may produce a broken library.
13992	allow_undefined_flag_GCJ='-berok'
13993       # Determine the default libpath from the value encoded in an empty executable.
13994	cat >conftest.$ac_ext <<_ACEOF
13995#line $LINENO "configure"
13996/* confdefs.h.  */
13997_ACEOF
13998cat confdefs.h >>conftest.$ac_ext
13999cat >>conftest.$ac_ext <<_ACEOF
14000/* end confdefs.h.  */
14001
14002int
14003main ()
14004{
14005
14006  ;
14007  return 0;
14008}
14009_ACEOF
14010rm -f conftest.$ac_objext conftest$ac_exeext
14011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14012  (eval $ac_link) 2>&5
14013  ac_status=$?
14014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015  (exit $ac_status); } &&
14016         { ac_try='test -s conftest$ac_exeext'
14017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018  (eval $ac_try) 2>&5
14019  ac_status=$?
14020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021  (exit $ac_status); }; }; then
14022
14023aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14024}'`
14025# Check for a 64-bit object if we didn't find anything.
14026if 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; }
14027}'`; fi
14028else
14029  echo "$as_me: failed program was:" >&5
14030sed 's/^/| /' conftest.$ac_ext >&5
14031
14032fi
14033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14034if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14035
14036	hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14037	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"
14038	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"
14039       else
14040	if test "$host_cpu" = ia64; then
14041	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
14042	  allow_undefined_flag_GCJ="-z nodefs"
14043	  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"
14044	else
14045	 # Determine the default libpath from the value encoded in an empty executable.
14046	 cat >conftest.$ac_ext <<_ACEOF
14047#line $LINENO "configure"
14048/* confdefs.h.  */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
14052/* end confdefs.h.  */
14053
14054int
14055main ()
14056{
14057
14058  ;
14059  return 0;
14060}
14061_ACEOF
14062rm -f conftest.$ac_objext conftest$ac_exeext
14063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14064  (eval $ac_link) 2>&5
14065  ac_status=$?
14066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067  (exit $ac_status); } &&
14068         { ac_try='test -s conftest$ac_exeext'
14069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070  (eval $ac_try) 2>&5
14071  ac_status=$?
14072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073  (exit $ac_status); }; }; then
14074
14075aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14076}'`
14077# Check for a 64-bit object if we didn't find anything.
14078if 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; }
14079}'`; fi
14080else
14081  echo "$as_me: failed program was:" >&5
14082sed 's/^/| /' conftest.$ac_ext >&5
14083
14084fi
14085rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14086if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14087
14088	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14089	  # Warning - without using the other run time loading flags,
14090	  # -berok will link without error, but may produce a broken library.
14091	  no_undefined_flag_GCJ=' ${wl}-bernotok'
14092	  allow_undefined_flag_GCJ=' ${wl}-berok'
14093	  # -bexpall does not export symbols beginning with underscore (_)
14094	  always_export_symbols_GCJ=yes
14095	  # Exported symbols can be pulled into shared objects from archives
14096	  whole_archive_flag_spec_GCJ=' '
14097	  archive_cmds_need_lc_GCJ=yes
14098	  # This is similar to how AIX traditionally builds it's shared libraries.
14099	  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'
14100	fi
14101      fi
14102      ;;
14103
14104    amigaos*)
14105      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)'
14106      hardcode_libdir_flag_spec_GCJ='-L$libdir'
14107      hardcode_minus_L_GCJ=yes
14108      # see comment about different semantics on the GNU ld section
14109      ld_shlibs_GCJ=no
14110      ;;
14111
14112    bsdi4*)
14113      export_dynamic_flag_spec_GCJ=-rdynamic
14114      ;;
14115
14116    cygwin* | mingw* | pw32*)
14117      # When not using gcc, we currently assume that we are using
14118      # Microsoft Visual C++.
14119      # hardcode_libdir_flag_spec is actually meaningless, as there is
14120      # no search path for DLLs.
14121      hardcode_libdir_flag_spec_GCJ=' '
14122      allow_undefined_flag_GCJ=unsupported
14123      # Tell ltmain to make .lib files, not .a files.
14124      libext=lib
14125      # FIXME: Setting linknames here is a bad hack.
14126      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14127      # The linker will automatically build a .lib file if we build a DLL.
14128      old_archive_From_new_cmds_GCJ='true'
14129      # FIXME: Should let the user specify the lib program.
14130      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
14131      fix_srcfile_path='`cygpath -w "$srcfile"`'
14132      ;;
14133
14134    darwin* | rhapsody*)
14135      case "$host_os" in
14136      rhapsody* | darwin1.[012])
14137	allow_undefined_flag_GCJ='-undefined suppress'
14138	;;
14139      *) # Darwin 1.3 on
14140	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
14141	;;
14142      esac
14143
14144      # FIXME: Relying on posixy $() will cause problems for
14145      #        cross-compilation, but unfortunately the echo tests do not
14146      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
14147      #	       `"' quotes if we put them in here... so don't!
14148      archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
14149      # We need to add '_' to the symbols in $export_symbols first
14150      #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
14151      hardcode_direct_GCJ=yes
14152      hardcode_shlibpath_var_GCJ=no
14153      whole_archive_flag_spec_GCJ='-all_load $convenience'
14154      ;;
14155
14156    dgux*)
14157      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14158      hardcode_libdir_flag_spec_GCJ='-L$libdir'
14159      hardcode_shlibpath_var_GCJ=no
14160      ;;
14161
14162    freebsd1*)
14163      ld_shlibs_GCJ=no
14164      ;;
14165
14166    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14167    # support.  Future versions do this automatically, but an explicit c++rt0.o
14168    # does not break anything, and helps significantly (at the cost of a little
14169    # extra space).
14170    freebsd2.2*)
14171      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14172      hardcode_libdir_flag_spec_GCJ='-R$libdir'
14173      hardcode_direct_GCJ=yes
14174      hardcode_shlibpath_var_GCJ=no
14175      ;;
14176
14177    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14178    freebsd2*)
14179      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14180      hardcode_direct_GCJ=yes
14181      hardcode_minus_L_GCJ=yes
14182      hardcode_shlibpath_var_GCJ=no
14183      ;;
14184
14185    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14186    freebsd*)
14187      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14188      hardcode_libdir_flag_spec_GCJ='-R$libdir'
14189      hardcode_direct_GCJ=yes
14190      hardcode_shlibpath_var_GCJ=no
14191      ;;
14192
14193    hpux9* | hpux10* | hpux11*)
14194      if test "$GCC" = yes; then
14195	case $host_os in
14196	  hpux9*)
14197	    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'
14198	    ;;
14199	  *)
14200	    if test "$host_cpu" = ia64; then
14201	      archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14202	    else
14203	      archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14204	    fi
14205	    ;;
14206	esac
14207      else
14208	case $host_os in
14209	  hpux9*)
14210	    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'
14211	    ;;
14212	  *)
14213	    if test "$host_cpu" = ia64; then
14214	      archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14215	    else
14216	      archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14217	    fi
14218	    ;;
14219	esac
14220      fi
14221      if test "$host_cpu" = ia64; then
14222	hardcode_libdir_flag_spec_GCJ='-L$libdir'
14223	hardcode_direct_GCJ=no
14224	hardcode_shlibpath_var_GCJ=no
14225      else
14226	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
14227	hardcode_libdir_separator_GCJ=:
14228	hardcode_direct_GCJ=yes
14229      fi
14230      # hardcode_minus_L: Not really in the search PATH,
14231      # but as the default location of the library.
14232      hardcode_minus_L_GCJ=yes
14233      export_dynamic_flag_spec_GCJ='${wl}-E'
14234      ;;
14235
14236    irix5* | irix6* | nonstopux*)
14237      if test "$GCC" = yes; then
14238	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'
14239      else
14240	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'
14241      fi
14242      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14243      hardcode_libdir_separator_GCJ=:
14244      link_all_deplibs_GCJ=yes
14245      ;;
14246
14247    netbsd*)
14248      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14249	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14250      else
14251	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14252      fi
14253      hardcode_libdir_flag_spec_GCJ='-R$libdir'
14254      hardcode_direct_GCJ=yes
14255      hardcode_shlibpath_var_GCJ=no
14256      ;;
14257
14258    newsos6)
14259      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14260      hardcode_direct_GCJ=yes
14261      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14262      hardcode_libdir_separator_GCJ=:
14263      hardcode_shlibpath_var_GCJ=no
14264      ;;
14265
14266    openbsd*)
14267      hardcode_direct_GCJ=yes
14268      hardcode_shlibpath_var_GCJ=no
14269
14270      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14271	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
14272	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
14273	export_dynamic_flag_spec_GCJ='${wl}-E'
14274      else
14275       case $host_os in
14276	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14277	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14278	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
14279	   ;;
14280	 *)
14281	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
14282	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
14283	   ;;
14284       esac
14285      fi
14286      ;;
14287
14288    os2*)
14289      hardcode_libdir_flag_spec_GCJ='-L$libdir'
14290      hardcode_minus_L_GCJ=yes
14291      allow_undefined_flag_GCJ=unsupported
14292      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'
14293      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14294      ;;
14295
14296    osf3*)
14297      if test "$GCC" = yes; then
14298	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
14299	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'
14300      else
14301	allow_undefined_flag_GCJ=' -expect_unresolved \*'
14302	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'
14303      fi
14304      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14305      hardcode_libdir_separator_GCJ=:
14306      ;;
14307
14308    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14309      if test "$GCC" = yes; then
14310	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
14311	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'
14312	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
14313      else
14314	allow_undefined_flag_GCJ=' -expect_unresolved \*'
14315	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'
14316	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14317	$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'
14318
14319	# Both c and cxx compiler support -rpath directly
14320	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
14321      fi
14322      hardcode_libdir_separator_GCJ=:
14323      ;;
14324
14325    sco3.2v5*)
14326      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14327      hardcode_shlibpath_var_GCJ=no
14328      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
14329      runpath_var=LD_RUN_PATH
14330      hardcode_runpath_var=yes
14331      ;;
14332
14333    solaris*)
14334      no_undefined_flag_GCJ=' -z text'
14335      if test "$GCC" = yes; then
14336	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14337	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14338	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14339      else
14340	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14341	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14342  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14343      fi
14344      hardcode_libdir_flag_spec_GCJ='-R$libdir'
14345      hardcode_shlibpath_var_GCJ=no
14346      case $host_os in
14347      solaris2.[0-5] | solaris2.[0-5].*) ;;
14348      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14349	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
14350      esac
14351      link_all_deplibs_GCJ=yes
14352      ;;
14353
14354    sunos4*)
14355      if test "x$host_vendor" = xsequent; then
14356	# Use $CC to link under sequent, because it throws in some extra .o
14357	# files that make .init and .fini sections work.
14358	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14359      else
14360	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14361      fi
14362      hardcode_libdir_flag_spec_GCJ='-L$libdir'
14363      hardcode_direct_GCJ=yes
14364      hardcode_minus_L_GCJ=yes
14365      hardcode_shlibpath_var_GCJ=no
14366      ;;
14367
14368    sysv4)
14369      if test "x$host_vendor" = xsni; then
14370	archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
14371	hardcode_direct_GCJ=yes # is this really true???
14372      else
14373	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14374	hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
14375      fi
14376      runpath_var='LD_RUN_PATH'
14377      hardcode_shlibpath_var_GCJ=no
14378      ;;
14379
14380    sysv4.3*)
14381      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14382      hardcode_shlibpath_var_GCJ=no
14383      export_dynamic_flag_spec_GCJ='-Bexport'
14384      ;;
14385
14386    sysv4*MP*)
14387      if test -d /usr/nec; then
14388	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14389	hardcode_shlibpath_var_GCJ=no
14390	runpath_var=LD_RUN_PATH
14391	hardcode_runpath_var=yes
14392	ld_shlibs_GCJ=yes
14393      fi
14394      ;;
14395
14396    sysv4.2uw2*)
14397      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14398      hardcode_direct_GCJ=yes
14399      hardcode_minus_L_GCJ=no
14400      hardcode_shlibpath_var_GCJ=no
14401      hardcode_runpath_var=yes
14402      runpath_var=LD_RUN_PATH
14403      ;;
14404
14405   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14406      no_undefined_flag_GCJ='${wl}-z ${wl}text'
14407      if test "$GCC" = yes; then
14408	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14409      else
14410	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14411      fi
14412      runpath_var='LD_RUN_PATH'
14413      hardcode_shlibpath_var_GCJ=no
14414      ;;
14415
14416    sysv5*)
14417      no_undefined_flag_GCJ=' -z text'
14418      # $CC -shared without GNU ld will not create a library from C++
14419      # object files and a static libstdc++, better avoid it by now
14420      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14421      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14422  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14423      hardcode_libdir_flag_spec_GCJ=
14424      hardcode_shlibpath_var_GCJ=no
14425      runpath_var='LD_RUN_PATH'
14426      ;;
14427
14428    uts4*)
14429      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14430      hardcode_libdir_flag_spec_GCJ='-L$libdir'
14431      hardcode_shlibpath_var_GCJ=no
14432      ;;
14433
14434    *)
14435      ld_shlibs_GCJ=no
14436      ;;
14437    esac
14438  fi
14439
14440echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
14441echo "${ECHO_T}$ld_shlibs_GCJ" >&6
14442test "$ld_shlibs_GCJ" = no && can_build_shared=no
14443
14444variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14445if test "$GCC" = yes; then
14446  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14447fi
14448
14449#
14450# Do we need to explicitly link libc?
14451#
14452archive_cmds_need_lc_GCJ=yes
14453if test "$enable_shared" = yes && test "$GCC" = yes; then
14454  case $archive_cmds_GCJ in
14455  *'~'*)
14456    # FIXME: we may have to deal with multi-command sequences.
14457    ;;
14458  '$CC '*)
14459    # Test whether the compiler implicitly links with -lc since on some
14460    # systems, -lgcc has to come before -lc. If gcc already passes -lc
14461    # to ld, don't add -lc before -lgcc.
14462    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14463echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14464    $rm conftest*
14465    echo 'static int dummy;' > conftest.$ac_ext
14466
14467    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14468  (eval $ac_compile) 2>&5
14469  ac_status=$?
14470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471  (exit $ac_status); } 2>conftest.err; then
14472      soname=conftest
14473      lib=conftest
14474      libobjs=conftest.$ac_objext
14475      deplibs=
14476      wl=$lt_prog_compiler_wl_GCJ
14477      compiler_flags=-v
14478      linker_flags=-v
14479      verstring=
14480      output_objdir=.
14481      libname=conftest
14482      lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14483      allow_undefined_flag_GCJ=
14484      if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14485  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14486  ac_status=$?
14487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488  (exit $ac_status); }
14489      then
14490	archive_cmds_need_lc_GCJ=no
14491      else
14492	archive_cmds_need_lc_GCJ=yes
14493      fi
14494      allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14495    else
14496      cat conftest.err 1>&5
14497    fi
14498    $rm conftest*
14499    echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
14500echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
14501    ;;
14502  esac
14503fi
14504
14505echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14506echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14507hardcode_action_GCJ=
14508if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14509   test -n "$runpath_var GCJ"; then
14510
14511  # We can hardcode non-existant directories.
14512  if test "$hardcode_direct_GCJ" != no &&
14513     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14514     # have to relink, otherwise we might link with an installed library
14515     # when we should be linking with a yet-to-be-installed one
14516     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14517     test "$hardcode_minus_L_GCJ" != no; then
14518    # Linking always hardcodes the temporary library directory.
14519    hardcode_action_GCJ=relink
14520  else
14521    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14522    hardcode_action_GCJ=immediate
14523  fi
14524else
14525  # We cannot hardcode anything, or else we can only hardcode existing
14526  # directories.
14527  hardcode_action_GCJ=unsupported
14528fi
14529echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
14530echo "${ECHO_T}$hardcode_action_GCJ" >&6
14531
14532if test "$hardcode_action_GCJ" = relink; then
14533  # Fast installation is not supported
14534  enable_fast_install=no
14535elif test "$shlibpath_overrides_runpath" = yes ||
14536     test "$enable_shared" = no; then
14537  # Fast installation is not necessary
14538  enable_fast_install=needless
14539fi
14540
14541striplib=
14542old_striplib=
14543echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14544echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14545if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14546  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14547  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14548  echo "$as_me:$LINENO: result: yes" >&5
14549echo "${ECHO_T}yes" >&6
14550else
14551  echo "$as_me:$LINENO: result: no" >&5
14552echo "${ECHO_T}no" >&6
14553fi
14554
14555echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14556echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14557library_names_spec=
14558libname_spec='lib$name'
14559soname_spec=
14560postinstall_cmds=
14561postuninstall_cmds=
14562finish_cmds=
14563finish_eval=
14564shlibpath_var=
14565shlibpath_overrides_runpath=unknown
14566version_type=none
14567dynamic_linker="$host_os ld.so"
14568sys_lib_dlsearch_path_spec="/lib /usr/lib"
14569sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14570need_lib_prefix=unknown
14571hardcode_into_libs=no
14572
14573# when you set need_version to no, make sure it does not cause -set_version
14574# flags to be left without arguments
14575need_version=unknown
14576
14577case $host_os in
14578aix3*)
14579  version_type=linux
14580  library_names_spec='${libname}${release}.so$versuffix $libname.a'
14581  shlibpath_var=LIBPATH
14582
14583  # AIX 3 has no versioning support, so we append a major version to the name.
14584  soname_spec='${libname}${release}.so$major'
14585  ;;
14586
14587aix4* | aix5*)
14588  version_type=linux
14589  if test "$host_cpu" = ia64; then
14590    # AIX 5 supports IA64
14591    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
14592    shlibpath_var=LD_LIBRARY_PATH
14593  else
14594    # With GCC up to 2.95.x, collect2 would create an import file
14595    # for dependence libraries.  The import file would start with
14596    # the line `#! .'.  This would cause the generated library to
14597    # depend on `.', always an invalid library.  This was fixed in
14598    # development snapshots of GCC prior to 3.0.
14599    case $host_os in
14600      aix4 | aix4.[01] | aix4.[01].*)
14601      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14602	   echo ' yes '
14603	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14604	:
14605      else
14606	can_build_shared=no
14607      fi
14608      ;;
14609    esac
14610    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14611    # soname into executable. Probably we can add versioning support to
14612    # collect2, so additional links can be useful in future.
14613    if test "$aix_use_runtimelinking" = yes; then
14614      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14615      # instead of lib<name>.a to let people know that these are not
14616      # typical AIX shared libraries.
14617      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14618    else
14619      # We preserve .a as extension for shared libraries through AIX4.2
14620      # and later when we are not doing run time linking.
14621      library_names_spec='${libname}${release}.a $libname.a'
14622      soname_spec='${libname}${release}.so$major'
14623    fi
14624    shlibpath_var=LIBPATH
14625  fi
14626  ;;
14627
14628amigaos*)
14629  library_names_spec='$libname.ixlibrary $libname.a'
14630  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14631  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'
14632  ;;
14633
14634beos*)
14635  library_names_spec='${libname}.so'
14636  dynamic_linker="$host_os ld.so"
14637  shlibpath_var=LIBRARY_PATH
14638  ;;
14639
14640bsdi4*)
14641  version_type=linux
14642  need_version=no
14643  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14644  soname_spec='${libname}${release}.so$major'
14645  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14646  shlibpath_var=LD_LIBRARY_PATH
14647  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14648  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14649  # the default ld.so.conf also contains /usr/contrib/lib and
14650  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14651  # libtool to hard-code these into programs
14652  ;;
14653
14654cygwin* | mingw* | pw32*)
14655  version_type=windows
14656  need_version=no
14657  need_lib_prefix=no
14658  case $GCC,$host_os in
14659  yes,cygwin*)
14660    library_names_spec='$libname.dll.a'
14661    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14662    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
14663    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
14664      dldir=$destdir/`dirname \$dlpath`~
14665      test -d \$dldir || mkdir -p \$dldir~
14666      $install_prog .libs/$dlname \$dldir/$dlname'
14667    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
14668      dlpath=$dir/\$dldll~
14669       $rm \$dlpath'
14670    ;;
14671  yes,mingw*)
14672    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
14673    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://"`
14674    if echo "$sys_lib_search_path_spec" | egrep ';[C-Z]:/' >/dev/null; then
14675      # It is most probably a Windows format PATH printed by
14676      # mingw gcc, but we are running on Cygwin. Gcc prints its search
14677      # path with ; separators, and with drive letters. We can handle the
14678      # drive letters (cygwin fileutils understands them), so leave them,
14679      # especially as we might pass files found there to a mingw objdump,
14680      # which wouldn't understand a cygwinified path. Ahh.
14681      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
14682    else
14683      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed  -e "s/$PATH_SEPARATOR/ /g"`
14684    fi
14685    ;;
14686  yes,pw32*)
14687    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
14688    ;;
14689  *)
14690    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
14691    ;;
14692  esac
14693  dynamic_linker='Win32 ld.exe'
14694  # FIXME: first we should search . and the directory the executable is in
14695  shlibpath_var=PATH
14696  ;;
14697
14698darwin* | rhapsody*)
14699  dynamic_linker="$host_os dyld"
14700  version_type=darwin
14701  need_lib_prefix=no
14702  need_version=no
14703  # FIXME: Relying on posixy $() will cause problems for
14704  #        cross-compilation, but unfortunately the echo tests do not
14705  #        yet detect zsh echo's removal of \ escapes.
14706  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
14707  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
14708  shlibpath_overrides_runpath=yes
14709  shlibpath_var=DYLD_LIBRARY_PATH
14710  ;;
14711
14712dgux*)
14713  version_type=linux
14714  need_lib_prefix=no
14715  need_version=no
14716  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14717  soname_spec='${libname}${release}.so$major'
14718  shlibpath_var=LD_LIBRARY_PATH
14719  ;;
14720
14721freebsd1*)
14722  dynamic_linker=no
14723  ;;
14724
14725freebsd*)
14726  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14727  version_type=freebsd-$objformat
14728  case $version_type in
14729    freebsd-elf*)
14730      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
14731      need_version=no
14732      need_lib_prefix=no
14733      ;;
14734    freebsd-*)
14735      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
14736      need_version=yes
14737      ;;
14738  esac
14739  shlibpath_var=LD_LIBRARY_PATH
14740  case $host_os in
14741  freebsd2*)
14742    shlibpath_overrides_runpath=yes
14743    ;;
14744  freebsd3.01* | freebsdelf3.01*)
14745    shlibpath_overrides_runpath=yes
14746    hardcode_into_libs=yes
14747    ;;
14748  *) # from 3.2 on
14749    shlibpath_overrides_runpath=no
14750    hardcode_into_libs=yes
14751    ;;
14752  esac
14753  ;;
14754
14755gnu*)
14756  version_type=linux
14757  need_lib_prefix=no
14758  need_version=no
14759  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
14760  soname_spec='${libname}${release}.so$major'
14761  shlibpath_var=LD_LIBRARY_PATH
14762  hardcode_into_libs=yes
14763  ;;
14764
14765hpux9* | hpux10* | hpux11*)
14766  # Give a soname corresponding to the major version so that dld.sl refuses to
14767  # link against other versions.
14768  version_type=sunos
14769  need_lib_prefix=no
14770  need_version=no
14771  if test "$host_cpu" = ia64; then
14772    hardcode_into_libs=yes
14773    dynamic_linker="$host_os dld.so"
14774    shlibpath_var=LD_LIBRARY_PATH
14775    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14776    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14777    soname_spec='${libname}${release}.so$major'
14778    if test "X$HPUX_IA64_MODE" = X32; then
14779      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14780    else
14781      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14782    fi
14783    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14784  else
14785    dynamic_linker="$host_os dld.sl"
14786    shlibpath_var=SHLIB_PATH
14787    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14788    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
14789    soname_spec='${libname}${release}.sl$major'
14790  fi
14791  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14792  postinstall_cmds='chmod 555 $lib'
14793  ;;
14794
14795irix5* | irix6* | nonstopux*)
14796  case $host_os in
14797    nonstopux*) version_type=nonstopux ;;
14798    *)          version_type=irix ;;
14799  esac
14800  need_lib_prefix=no
14801  need_version=no
14802  soname_spec='${libname}${release}.so$major'
14803  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
14804  case $host_os in
14805  irix5* | nonstopux*)
14806    libsuff= shlibsuff=
14807    ;;
14808  *)
14809    case $LD in # libtool.m4 will add one of these switches to LD
14810    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
14811    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
14812    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
14813    *) libsuff= shlibsuff= libmagic=never-match;;
14814    esac
14815    ;;
14816  esac
14817  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14818  shlibpath_overrides_runpath=no
14819  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14820  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14821  ;;
14822
14823# No shared lib support for Linux oldld, aout, or coff.
14824linux*oldld* | linux*aout* | linux*coff*)
14825  dynamic_linker=no
14826  ;;
14827
14828# This must be Linux ELF.
14829linux*)
14830  version_type=linux
14831  need_lib_prefix=no
14832  need_version=no
14833  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14834  soname_spec='${libname}${release}.so$major'
14835  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14836  libsuff=
14837  if test "x$LINUX_64_MODE" = x64; then
14838    # Some platforms are per default 64-bit, so there's no /lib64
14839    if test -d /lib64; then
14840      libsuff=64
14841    fi
14842  fi
14843  shlibpath_var=LD_LIBRARY_PATH
14844  shlibpath_overrides_runpath=no
14845  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14846  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14847  # This implies no fast_install, which is unacceptable.
14848  # Some rework will be needed to allow for fast_install
14849  # before this can be enabled.
14850  hardcode_into_libs=yes
14851
14852  # We used to test for /lib/ld.so.1 and disable shared libraries on
14853  # powerpc, because MkLinux only supported shared libraries with the
14854  # GNU dynamic linker.  Since this was broken with cross compilers,
14855  # most powerpc-linux boxes support dynamic linking these days and
14856  # people can always --disable-shared, the test was removed, and we
14857  # assume the GNU/Linux dynamic linker is in use.
14858  dynamic_linker='GNU/Linux ld.so'
14859  ;;
14860
14861netbsd*)
14862  version_type=sunos
14863  need_lib_prefix=no
14864  need_version=no
14865  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14866    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
14867    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14868    dynamic_linker='NetBSD (a.out) ld.so'
14869  else
14870    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
14871    soname_spec='${libname}${release}.so$major'
14872    dynamic_linker='NetBSD ld.elf_so'
14873  fi
14874  shlibpath_var=LD_LIBRARY_PATH
14875  shlibpath_overrides_runpath=yes
14876  hardcode_into_libs=yes
14877  ;;
14878
14879newsos6)
14880  version_type=linux
14881  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14882  shlibpath_var=LD_LIBRARY_PATH
14883  shlibpath_overrides_runpath=yes
14884  ;;
14885
14886nto-qnx)
14887  version_type=linux
14888  need_lib_prefix=no
14889  need_version=no
14890  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14891  soname_spec='${libname}${release}.so$major'
14892  shlibpath_var=LD_LIBRARY_PATH
14893  shlibpath_overrides_runpath=yes
14894  ;;
14895
14896openbsd*)
14897  version_type=sunos
14898  need_lib_prefix=no
14899  need_version=no
14900  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
14901  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14902  shlibpath_var=LD_LIBRARY_PATH
14903  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14904    case $host_os in
14905      openbsd2.[89] | openbsd2.[89].*)
14906	shlibpath_overrides_runpath=no
14907	;;
14908      *)
14909	shlibpath_overrides_runpath=yes
14910	;;
14911      esac
14912  else
14913    shlibpath_overrides_runpath=yes
14914  fi
14915  ;;
14916
14917os2*)
14918  libname_spec='$name'
14919  need_lib_prefix=no
14920  library_names_spec='$libname.dll $libname.a'
14921  dynamic_linker='OS/2 ld.exe'
14922  shlibpath_var=LIBPATH
14923  ;;
14924
14925osf3* | osf4* | osf5*)
14926  version_type=osf
14927  need_lib_prefix=no
14928  need_version=no
14929  soname_spec='${libname}${release}.so'
14930  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
14931  shlibpath_var=LD_LIBRARY_PATH
14932  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14933  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14934  ;;
14935
14936sco3.2v5*)
14937  version_type=osf
14938  soname_spec='${libname}${release}.so$major'
14939  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14940  shlibpath_var=LD_LIBRARY_PATH
14941  ;;
14942
14943solaris*)
14944  version_type=linux
14945  need_lib_prefix=no
14946  need_version=no
14947  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14948  soname_spec='${libname}${release}.so$major'
14949  shlibpath_var=LD_LIBRARY_PATH
14950  shlibpath_overrides_runpath=yes
14951  hardcode_into_libs=yes
14952  # ldd complains unless libraries are executable
14953  postinstall_cmds='chmod +x $lib'
14954  ;;
14955
14956sunos4*)
14957  version_type=sunos
14958  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
14959  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14960  shlibpath_var=LD_LIBRARY_PATH
14961  shlibpath_overrides_runpath=yes
14962  if test "$with_gnu_ld" = yes; then
14963    need_lib_prefix=no
14964  fi
14965  need_version=yes
14966  ;;
14967
14968sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14969  version_type=linux
14970  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14971  soname_spec='${libname}${release}.so$major'
14972  shlibpath_var=LD_LIBRARY_PATH
14973  case $host_vendor in
14974    sni)
14975      shlibpath_overrides_runpath=no
14976      ;;
14977    motorola)
14978      need_lib_prefix=no
14979      need_version=no
14980      shlibpath_overrides_runpath=no
14981      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14982      ;;
14983  esac
14984  ;;
14985
14986sysv4*MP*)
14987  if test -d /usr/nec ;then
14988    version_type=linux
14989    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
14990    soname_spec='$libname.so.$major'
14991    shlibpath_var=LD_LIBRARY_PATH
14992  fi
14993  ;;
14994
14995uts4*)
14996  version_type=linux
14997  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
14998  soname_spec='${libname}${release}.so$major'
14999  shlibpath_var=LD_LIBRARY_PATH
15000  ;;
15001
15002*)
15003  dynamic_linker=no
15004  ;;
15005esac
15006echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15007echo "${ECHO_T}$dynamic_linker" >&6
15008test "$dynamic_linker" = no && can_build_shared=no
15009
15010if test "x$enable_dlopen" != xyes; then
15011  enable_dlopen=unknown
15012  enable_dlopen_self=unknown
15013  enable_dlopen_self_static=unknown
15014else
15015  lt_cv_dlopen=no
15016  lt_cv_dlopen_libs=
15017
15018  case $host_os in
15019  beos*)
15020    lt_cv_dlopen="load_add_on"
15021    lt_cv_dlopen_libs=
15022    lt_cv_dlopen_self=yes
15023    ;;
15024
15025  cygwin* | mingw* | pw32*)
15026    lt_cv_dlopen="LoadLibrary"
15027    lt_cv_dlopen_libs=
15028   ;;
15029
15030  *)
15031    echo "$as_me:$LINENO: checking for shl_load" >&5
15032echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
15033if test "${ac_cv_func_shl_load+set}" = set; then
15034  echo $ECHO_N "(cached) $ECHO_C" >&6
15035else
15036  cat >conftest.$ac_ext <<_ACEOF
15037#line $LINENO "configure"
15038/* confdefs.h.  */
15039_ACEOF
15040cat confdefs.h >>conftest.$ac_ext
15041cat >>conftest.$ac_ext <<_ACEOF
15042/* end confdefs.h.  */
15043/* System header to define __stub macros and hopefully few prototypes,
15044    which can conflict with char shl_load (); below.
15045    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15046    <limits.h> exists even on freestanding compilers.  */
15047#ifdef __STDC__
15048# include <limits.h>
15049#else
15050# include <assert.h>
15051#endif
15052/* Override any gcc2 internal prototype to avoid an error.  */
15053#ifdef __cplusplus
15054extern "C"
15055{
15056#endif
15057/* We use char because int might match the return type of a gcc2
15058   builtin and then its argument prototype would still apply.  */
15059char shl_load ();
15060/* The GNU C library defines this for functions which it implements
15061    to always fail with ENOSYS.  Some functions are actually named
15062    something starting with __ and the normal name is an alias.  */
15063#if defined (__stub_shl_load) || defined (__stub___shl_load)
15064choke me
15065#else
15066char (*f) () = shl_load;
15067#endif
15068#ifdef __cplusplus
15069}
15070#endif
15071
15072int
15073main ()
15074{
15075return f != shl_load;
15076  ;
15077  return 0;
15078}
15079_ACEOF
15080rm -f conftest.$ac_objext conftest$ac_exeext
15081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082  (eval $ac_link) 2>&5
15083  ac_status=$?
15084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085  (exit $ac_status); } &&
15086         { ac_try='test -s conftest$ac_exeext'
15087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088  (eval $ac_try) 2>&5
15089  ac_status=$?
15090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091  (exit $ac_status); }; }; then
15092  ac_cv_func_shl_load=yes
15093else
15094  echo "$as_me: failed program was:" >&5
15095sed 's/^/| /' conftest.$ac_ext >&5
15096
15097ac_cv_func_shl_load=no
15098fi
15099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15100fi
15101echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15102echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15103if test $ac_cv_func_shl_load = yes; then
15104  lt_cv_dlopen="shl_load"
15105else
15106  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15107echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15108if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15109  echo $ECHO_N "(cached) $ECHO_C" >&6
15110else
15111  ac_check_lib_save_LIBS=$LIBS
15112LIBS="-ldld  $LIBS"
15113cat >conftest.$ac_ext <<_ACEOF
15114#line $LINENO "configure"
15115/* confdefs.h.  */
15116_ACEOF
15117cat confdefs.h >>conftest.$ac_ext
15118cat >>conftest.$ac_ext <<_ACEOF
15119/* end confdefs.h.  */
15120
15121/* Override any gcc2 internal prototype to avoid an error.  */
15122#ifdef __cplusplus
15123extern "C"
15124#endif
15125/* We use char because int might match the return type of a gcc2
15126   builtin and then its argument prototype would still apply.  */
15127char shl_load ();
15128int
15129main ()
15130{
15131shl_load ();
15132  ;
15133  return 0;
15134}
15135_ACEOF
15136rm -f conftest.$ac_objext conftest$ac_exeext
15137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15138  (eval $ac_link) 2>&5
15139  ac_status=$?
15140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141  (exit $ac_status); } &&
15142         { ac_try='test -s conftest$ac_exeext'
15143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144  (eval $ac_try) 2>&5
15145  ac_status=$?
15146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147  (exit $ac_status); }; }; then
15148  ac_cv_lib_dld_shl_load=yes
15149else
15150  echo "$as_me: failed program was:" >&5
15151sed 's/^/| /' conftest.$ac_ext >&5
15152
15153ac_cv_lib_dld_shl_load=no
15154fi
15155rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15156LIBS=$ac_check_lib_save_LIBS
15157fi
15158echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15159echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15160if test $ac_cv_lib_dld_shl_load = yes; then
15161  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15162else
15163  echo "$as_me:$LINENO: checking for dlopen" >&5
15164echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15165if test "${ac_cv_func_dlopen+set}" = set; then
15166  echo $ECHO_N "(cached) $ECHO_C" >&6
15167else
15168  cat >conftest.$ac_ext <<_ACEOF
15169#line $LINENO "configure"
15170/* confdefs.h.  */
15171_ACEOF
15172cat confdefs.h >>conftest.$ac_ext
15173cat >>conftest.$ac_ext <<_ACEOF
15174/* end confdefs.h.  */
15175/* System header to define __stub macros and hopefully few prototypes,
15176    which can conflict with char dlopen (); below.
15177    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15178    <limits.h> exists even on freestanding compilers.  */
15179#ifdef __STDC__
15180# include <limits.h>
15181#else
15182# include <assert.h>
15183#endif
15184/* Override any gcc2 internal prototype to avoid an error.  */
15185#ifdef __cplusplus
15186extern "C"
15187{
15188#endif
15189/* We use char because int might match the return type of a gcc2
15190   builtin and then its argument prototype would still apply.  */
15191char dlopen ();
15192/* The GNU C library defines this for functions which it implements
15193    to always fail with ENOSYS.  Some functions are actually named
15194    something starting with __ and the normal name is an alias.  */
15195#if defined (__stub_dlopen) || defined (__stub___dlopen)
15196choke me
15197#else
15198char (*f) () = dlopen;
15199#endif
15200#ifdef __cplusplus
15201}
15202#endif
15203
15204int
15205main ()
15206{
15207return f != dlopen;
15208  ;
15209  return 0;
15210}
15211_ACEOF
15212rm -f conftest.$ac_objext conftest$ac_exeext
15213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15214  (eval $ac_link) 2>&5
15215  ac_status=$?
15216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217  (exit $ac_status); } &&
15218         { ac_try='test -s conftest$ac_exeext'
15219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220  (eval $ac_try) 2>&5
15221  ac_status=$?
15222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223  (exit $ac_status); }; }; then
15224  ac_cv_func_dlopen=yes
15225else
15226  echo "$as_me: failed program was:" >&5
15227sed 's/^/| /' conftest.$ac_ext >&5
15228
15229ac_cv_func_dlopen=no
15230fi
15231rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15232fi
15233echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15234echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15235if test $ac_cv_func_dlopen = yes; then
15236  lt_cv_dlopen="dlopen"
15237else
15238  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15239echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15240if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15241  echo $ECHO_N "(cached) $ECHO_C" >&6
15242else
15243  ac_check_lib_save_LIBS=$LIBS
15244LIBS="-ldl  $LIBS"
15245cat >conftest.$ac_ext <<_ACEOF
15246#line $LINENO "configure"
15247/* confdefs.h.  */
15248_ACEOF
15249cat confdefs.h >>conftest.$ac_ext
15250cat >>conftest.$ac_ext <<_ACEOF
15251/* end confdefs.h.  */
15252
15253/* Override any gcc2 internal prototype to avoid an error.  */
15254#ifdef __cplusplus
15255extern "C"
15256#endif
15257/* We use char because int might match the return type of a gcc2
15258   builtin and then its argument prototype would still apply.  */
15259char dlopen ();
15260int
15261main ()
15262{
15263dlopen ();
15264  ;
15265  return 0;
15266}
15267_ACEOF
15268rm -f conftest.$ac_objext conftest$ac_exeext
15269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15270  (eval $ac_link) 2>&5
15271  ac_status=$?
15272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273  (exit $ac_status); } &&
15274         { ac_try='test -s conftest$ac_exeext'
15275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276  (eval $ac_try) 2>&5
15277  ac_status=$?
15278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279  (exit $ac_status); }; }; then
15280  ac_cv_lib_dl_dlopen=yes
15281else
15282  echo "$as_me: failed program was:" >&5
15283sed 's/^/| /' conftest.$ac_ext >&5
15284
15285ac_cv_lib_dl_dlopen=no
15286fi
15287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15288LIBS=$ac_check_lib_save_LIBS
15289fi
15290echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15291echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15292if test $ac_cv_lib_dl_dlopen = yes; then
15293  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15294else
15295  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15296echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15297if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15298  echo $ECHO_N "(cached) $ECHO_C" >&6
15299else
15300  ac_check_lib_save_LIBS=$LIBS
15301LIBS="-lsvld  $LIBS"
15302cat >conftest.$ac_ext <<_ACEOF
15303#line $LINENO "configure"
15304/* confdefs.h.  */
15305_ACEOF
15306cat confdefs.h >>conftest.$ac_ext
15307cat >>conftest.$ac_ext <<_ACEOF
15308/* end confdefs.h.  */
15309
15310/* Override any gcc2 internal prototype to avoid an error.  */
15311#ifdef __cplusplus
15312extern "C"
15313#endif
15314/* We use char because int might match the return type of a gcc2
15315   builtin and then its argument prototype would still apply.  */
15316char dlopen ();
15317int
15318main ()
15319{
15320dlopen ();
15321  ;
15322  return 0;
15323}
15324_ACEOF
15325rm -f conftest.$ac_objext conftest$ac_exeext
15326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15327  (eval $ac_link) 2>&5
15328  ac_status=$?
15329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330  (exit $ac_status); } &&
15331         { ac_try='test -s conftest$ac_exeext'
15332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333  (eval $ac_try) 2>&5
15334  ac_status=$?
15335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336  (exit $ac_status); }; }; then
15337  ac_cv_lib_svld_dlopen=yes
15338else
15339  echo "$as_me: failed program was:" >&5
15340sed 's/^/| /' conftest.$ac_ext >&5
15341
15342ac_cv_lib_svld_dlopen=no
15343fi
15344rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15345LIBS=$ac_check_lib_save_LIBS
15346fi
15347echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15348echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15349if test $ac_cv_lib_svld_dlopen = yes; then
15350  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15351else
15352  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15353echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15354if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15355  echo $ECHO_N "(cached) $ECHO_C" >&6
15356else
15357  ac_check_lib_save_LIBS=$LIBS
15358LIBS="-ldld  $LIBS"
15359cat >conftest.$ac_ext <<_ACEOF
15360#line $LINENO "configure"
15361/* confdefs.h.  */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h.  */
15366
15367/* Override any gcc2 internal prototype to avoid an error.  */
15368#ifdef __cplusplus
15369extern "C"
15370#endif
15371/* We use char because int might match the return type of a gcc2
15372   builtin and then its argument prototype would still apply.  */
15373char dld_link ();
15374int
15375main ()
15376{
15377dld_link ();
15378  ;
15379  return 0;
15380}
15381_ACEOF
15382rm -f conftest.$ac_objext conftest$ac_exeext
15383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15384  (eval $ac_link) 2>&5
15385  ac_status=$?
15386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387  (exit $ac_status); } &&
15388         { ac_try='test -s conftest$ac_exeext'
15389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390  (eval $ac_try) 2>&5
15391  ac_status=$?
15392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393  (exit $ac_status); }; }; then
15394  ac_cv_lib_dld_dld_link=yes
15395else
15396  echo "$as_me: failed program was:" >&5
15397sed 's/^/| /' conftest.$ac_ext >&5
15398
15399ac_cv_lib_dld_dld_link=no
15400fi
15401rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15402LIBS=$ac_check_lib_save_LIBS
15403fi
15404echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15405echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15406if test $ac_cv_lib_dld_dld_link = yes; then
15407  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15408fi
15409
15410
15411fi
15412
15413
15414fi
15415
15416
15417fi
15418
15419
15420fi
15421
15422
15423fi
15424
15425    ;;
15426  esac
15427
15428  if test "x$lt_cv_dlopen" != xno; then
15429    enable_dlopen=yes
15430  else
15431    enable_dlopen=no
15432  fi
15433
15434  case $lt_cv_dlopen in
15435  dlopen)
15436    save_CPPFLAGS="$CPPFLAGS"
15437    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15438
15439    save_LDFLAGS="$LDFLAGS"
15440    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15441
15442    save_LIBS="$LIBS"
15443    LIBS="$lt_cv_dlopen_libs $LIBS"
15444
15445    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15446echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15447if test "${lt_cv_dlopen_self+set}" = set; then
15448  echo $ECHO_N "(cached) $ECHO_C" >&6
15449else
15450  	  if test "$cross_compiling" = yes; then :
15451  lt_cv_dlopen_self=cross
15452else
15453  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15454  lt_status=$lt_dlunknown
15455  cat > conftest.$ac_ext <<EOF
15456#line 15456 "configure"
15457#include "confdefs.h"
15458
15459#if HAVE_DLFCN_H
15460#include <dlfcn.h>
15461#endif
15462
15463#include <stdio.h>
15464
15465#ifdef RTLD_GLOBAL
15466#  define LT_DLGLOBAL		RTLD_GLOBAL
15467#else
15468#  ifdef DL_GLOBAL
15469#    define LT_DLGLOBAL		DL_GLOBAL
15470#  else
15471#    define LT_DLGLOBAL		0
15472#  endif
15473#endif
15474
15475/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15476   find out it does not work in some platform. */
15477#ifndef LT_DLLAZY_OR_NOW
15478#  ifdef RTLD_LAZY
15479#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15480#  else
15481#    ifdef DL_LAZY
15482#      define LT_DLLAZY_OR_NOW		DL_LAZY
15483#    else
15484#      ifdef RTLD_NOW
15485#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15486#      else
15487#        ifdef DL_NOW
15488#          define LT_DLLAZY_OR_NOW	DL_NOW
15489#        else
15490#          define LT_DLLAZY_OR_NOW	0
15491#        endif
15492#      endif
15493#    endif
15494#  endif
15495#endif
15496
15497#ifdef __cplusplus
15498extern "C" void exit (int);
15499#endif
15500
15501void fnord() { int i=42;}
15502int main ()
15503{
15504  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15505  int status = $lt_dlunknown;
15506
15507  if (self)
15508    {
15509      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15510      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15511      /* dlclose (self); */
15512    }
15513
15514    exit (status);
15515}
15516EOF
15517  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15518  (eval $ac_link) 2>&5
15519  ac_status=$?
15520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15522    (./conftest; exit; ) 2>/dev/null
15523    lt_status=$?
15524    case x$lt_status in
15525      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15526      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15527      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15528    esac
15529  else :
15530    # compilation failed
15531    lt_cv_dlopen_self=no
15532  fi
15533fi
15534rm -fr conftest*
15535
15536
15537fi
15538echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15539echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15540
15541    if test "x$lt_cv_dlopen_self" = xyes; then
15542      LDFLAGS="$LDFLAGS $link_static_flag"
15543      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15544echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15545if test "${lt_cv_dlopen_self_static+set}" = set; then
15546  echo $ECHO_N "(cached) $ECHO_C" >&6
15547else
15548  	  if test "$cross_compiling" = yes; then :
15549  lt_cv_dlopen_self_static=cross
15550else
15551  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15552  lt_status=$lt_dlunknown
15553  cat > conftest.$ac_ext <<EOF
15554#line 15554 "configure"
15555#include "confdefs.h"
15556
15557#if HAVE_DLFCN_H
15558#include <dlfcn.h>
15559#endif
15560
15561#include <stdio.h>
15562
15563#ifdef RTLD_GLOBAL
15564#  define LT_DLGLOBAL		RTLD_GLOBAL
15565#else
15566#  ifdef DL_GLOBAL
15567#    define LT_DLGLOBAL		DL_GLOBAL
15568#  else
15569#    define LT_DLGLOBAL		0
15570#  endif
15571#endif
15572
15573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15574   find out it does not work in some platform. */
15575#ifndef LT_DLLAZY_OR_NOW
15576#  ifdef RTLD_LAZY
15577#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15578#  else
15579#    ifdef DL_LAZY
15580#      define LT_DLLAZY_OR_NOW		DL_LAZY
15581#    else
15582#      ifdef RTLD_NOW
15583#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15584#      else
15585#        ifdef DL_NOW
15586#          define LT_DLLAZY_OR_NOW	DL_NOW
15587#        else
15588#          define LT_DLLAZY_OR_NOW	0
15589#        endif
15590#      endif
15591#    endif
15592#  endif
15593#endif
15594
15595#ifdef __cplusplus
15596extern "C" void exit (int);
15597#endif
15598
15599void fnord() { int i=42;}
15600int main ()
15601{
15602  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15603  int status = $lt_dlunknown;
15604
15605  if (self)
15606    {
15607      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15608      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15609      /* dlclose (self); */
15610    }
15611
15612    exit (status);
15613}
15614EOF
15615  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15616  (eval $ac_link) 2>&5
15617  ac_status=$?
15618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15620    (./conftest; exit; ) 2>/dev/null
15621    lt_status=$?
15622    case x$lt_status in
15623      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15624      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15625      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15626    esac
15627  else :
15628    # compilation failed
15629    lt_cv_dlopen_self_static=no
15630  fi
15631fi
15632rm -fr conftest*
15633
15634
15635fi
15636echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15637echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15638    fi
15639
15640    CPPFLAGS="$save_CPPFLAGS"
15641    LDFLAGS="$save_LDFLAGS"
15642    LIBS="$save_LIBS"
15643    ;;
15644  esac
15645
15646  case $lt_cv_dlopen_self in
15647  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15648  *) enable_dlopen_self=unknown ;;
15649  esac
15650
15651  case $lt_cv_dlopen_self_static in
15652  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15653  *) enable_dlopen_self_static=unknown ;;
15654  esac
15655fi
15656
15657
15658# The else clause should only fire when bootstrapping the
15659# libtool distribution, otherwise you forgot to ship ltmain.sh
15660# with your package, and you will get complaints that there are
15661# no rules to generate ltmain.sh.
15662if test -f "$ltmain"; then
15663  # Now quote all the things that may contain metacharacters while being
15664  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15665  # variables and quote the copies for generation of the libtool script.
15666  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
15667    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15668    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15669    deplibs_check_method reload_flag reload_cmds need_locks \
15670    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15671    lt_cv_sys_global_symbol_to_c_name_address \
15672    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15673    old_postinstall_cmds old_postuninstall_cmds \
15674    compiler_GCJ \
15675    CC_GCJ \
15676    LD_GCJ \
15677    lt_prog_compiler_wl_GCJ \
15678    lt_prog_compiler_pic_GCJ \
15679    lt_prog_compiler_static_GCJ \
15680    lt_prog_compiler_no_builtin_flag_GCJ \
15681    export_dynamic_flag_spec_GCJ \
15682    thread_safe_flag_spec_GCJ \
15683    whole_archive_flag_spec_GCJ \
15684    old_archive_cmds_GCJ \
15685    old_archive_from_new_cmds_GCJ \
15686    predep_objects_GCJ \
15687    postdep_objects_GCJ \
15688    predeps_GCJ \
15689    postdeps_GCJ \
15690    compiler_lib_search_path_GCJ \
15691    archive_cmds_GCJ \
15692    archive_expsym_cmds_GCJ \
15693    postinstall_cmds_GCJ \
15694    postuninstall_cmds_GCJ \
15695    old_archive_from_expsyms_cmds_GCJ \
15696    allow_undefined_flag_GCJ \
15697    no_undefined_flag_GCJ \
15698    export_symbols_cmds_GCJ \
15699    hardcode_libdir_flag_spec_GCJ \
15700    hardcode_libdir_separator_GCJ \
15701    lt_cv_prog_compiler_c_o_GCJ \
15702    exclude_expsyms_GCJ \
15703    include_expsyms_GCJ; do
15704
15705    case $var in
15706    old_archive_cmds_GCJ | \
15707    old_archive_from_new_cmds_GCJ | \
15708    archive_cmds_GCJ | \
15709    archive_expsym_cmds_GCJ | \
15710    old_archive_from_expsyms_cmds_GCJ | \
15711    export_symbols_cmds_GCJ | \
15712    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15713    postinstall_cmds | postuninstall_cmds | \
15714    old_postinstall_cmds | old_postuninstall_cmds | \
15715    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15716      # Double-quote double-evaled strings.
15717      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15718      ;;
15719    *)
15720      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15721      ;;
15722    esac
15723  done
15724
15725  case $lt_echo in
15726  *'\$0 --fallback-echo"')
15727    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15728    ;;
15729  esac
15730
15731cfgfile="$ofile"
15732
15733  cat <<__EOF__ >> "$cfgfile"
15734# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15735
15736# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15737
15738# Shell to use when invoking shell scripts.
15739SHELL=$lt_SHELL
15740
15741# Whether or not to build shared libraries.
15742build_libtool_libs=$enable_shared
15743
15744# Whether or not to build static libraries.
15745build_old_libs=$enable_static
15746
15747# Whether or not to add -lc for building shared libraries.
15748build_libtool_need_lc=$archive_cmds_need_lc_GCJ
15749
15750# Whether or not to optimize for fast installation.
15751fast_install=$enable_fast_install
15752
15753# The host system.
15754host_alias=$host_alias
15755host=$host
15756
15757# An echo program that does not interpret backslashes.
15758echo=$lt_echo
15759
15760# The archiver.
15761AR=$lt_AR
15762AR_FLAGS=$lt_AR_FLAGS
15763
15764# A C compiler.
15765LTCC=$lt_LTCC
15766
15767# A language-specific compiler.
15768CC=$lt_compiler_GCJ
15769
15770# Is the compiler the GNU C compiler?
15771with_gcc=$GCC_GCJ
15772
15773# The linker used to build libraries.
15774LD=$lt_LD_GCJ
15775
15776# Whether we need hard or soft links.
15777LN_S=$lt_LN_S
15778
15779# A BSD-compatible nm program.
15780NM=$lt_NM
15781
15782# A sed program that does not truncate output.
15783SED=$lt_SED
15784
15785# A symbol stripping program
15786STRIP=$STRIP
15787
15788# Used to examine libraries when file_magic_cmd begins "file"
15789MAGIC_CMD=$MAGIC_CMD
15790
15791# Used on cygwin: DLL creation program.
15792DLLTOOL="$DLLTOOL"
15793
15794# Used on cygwin: object dumper.
15795OBJDUMP="$OBJDUMP"
15796
15797# Used on cygwin: assembler.
15798AS="$AS"
15799
15800# The name of the directory that contains temporary libtool files.
15801objdir=$objdir
15802
15803# How to create reloadable object files.
15804reload_flag=$lt_reload_flag
15805reload_cmds=$lt_reload_cmds
15806
15807# How to pass a linker flag through the compiler.
15808wl=$lt_lt_prog_compiler_wl_GCJ
15809
15810# Object file suffix (normally "o").
15811objext="$ac_objext"
15812
15813# Old archive suffix (normally "a").
15814libext="$libext"
15815
15816# Executable file suffix (normally "").
15817exeext="$exeext"
15818
15819# Additional compiler flags for building library objects.
15820pic_flag=$lt_lt_prog_compiler_pic_GCJ
15821pic_mode=$pic_mode
15822
15823# What is the maximum length of a command?
15824max_cmd_len=$lt_cv_sys_max_cmd_len
15825
15826# Does compiler simultaneously support -c and -o options?
15827compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
15828
15829# Must we lock files when doing compilation ?
15830need_locks=$lt_need_locks
15831
15832# Do we need the lib prefix for modules?
15833need_lib_prefix=$need_lib_prefix
15834
15835# Do we need a version for libraries?
15836need_version=$need_version
15837
15838# Whether dlopen is supported.
15839dlopen_support=$enable_dlopen
15840
15841# Whether dlopen of programs is supported.
15842dlopen_self=$enable_dlopen_self
15843
15844# Whether dlopen of statically linked programs is supported.
15845dlopen_self_static=$enable_dlopen_self_static
15846
15847# Compiler flag to prevent dynamic linking.
15848link_static_flag=$lt_lt_prog_compiler_static_GCJ
15849
15850# Compiler flag to turn off builtin functions.
15851no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
15852
15853# Compiler flag to allow reflexive dlopens.
15854export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
15855
15856# Compiler flag to generate shared objects directly from archives.
15857whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
15858
15859# Compiler flag to generate thread-safe objects.
15860thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
15861
15862# Library versioning type.
15863version_type=$version_type
15864
15865# Format of library name prefix.
15866libname_spec=$lt_libname_spec
15867
15868# List of archive names.  First name is the real one, the rest are links.
15869# The last name is the one that the linker finds with -lNAME.
15870library_names_spec=$lt_library_names_spec
15871
15872# The coded name of the library, if different from the real name.
15873soname_spec=$lt_soname_spec
15874
15875# Commands used to build and install an old-style archive.
15876RANLIB=$lt_RANLIB
15877old_archive_cmds=$lt_old_archive_cmds_GCJ
15878old_postinstall_cmds=$lt_old_postinstall_cmds
15879old_postuninstall_cmds=$lt_old_postuninstall_cmds
15880
15881# Create an old-style archive from a shared archive.
15882old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15883
15884# Create a temporary old-style archive to link instead of a shared archive.
15885old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15886
15887# Commands used to build and install a shared archive.
15888archive_cmds=$lt_archive_cmds_GCJ
15889archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15890postinstall_cmds=$lt_postinstall_cmds
15891postuninstall_cmds=$lt_postuninstall_cmds
15892
15893# Commands to strip libraries.
15894old_striplib=$lt_old_striplib
15895striplib=$lt_striplib
15896
15897# Dependencies to place before the objects being linked to create a
15898# shared library.
15899predep_objects=$lt_predep_objects_GCJ
15900
15901# Dependencies to place after the objects being linked to create a
15902# shared library.
15903postdep_objects=$lt_postdep_objects_GCJ
15904
15905# Dependencies to place before the objects being linked to create a
15906# shared library.
15907predeps=$lt_predeps_GCJ
15908
15909# Dependencies to place after the objects being linked to create a
15910# shared library.
15911postdeps=$lt_postdeps_GCJ
15912
15913# The library search path used internally by the compiler when linking
15914# a shared library.
15915compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15916
15917# Method to check whether dependent libraries are shared objects.
15918deplibs_check_method=$lt_deplibs_check_method
15919
15920# Command to use when deplibs_check_method == file_magic.
15921file_magic_cmd=$lt_file_magic_cmd
15922
15923# Flag that allows shared libraries with undefined symbols to be built.
15924allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15925
15926# Flag that forces no undefined symbols.
15927no_undefined_flag=$lt_no_undefined_flag_GCJ
15928
15929# Commands used to finish a libtool library installation in a directory.
15930finish_cmds=$lt_finish_cmds
15931
15932# Same as above, but a single script fragment to be evaled but not shown.
15933finish_eval=$lt_finish_eval
15934
15935# Take the output of nm and produce a listing of raw symbols and C names.
15936global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15937
15938# Transform the output of nm in a proper C declaration
15939global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15940
15941# Transform the output of nm in a C name address pair
15942global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15943
15944# This is the shared library runtime path variable.
15945runpath_var=$runpath_var
15946
15947# This is the shared library path variable.
15948shlibpath_var=$shlibpath_var
15949
15950# Is shlibpath searched before the hard-coded library search path?
15951shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15952
15953# How to hardcode a shared library path into an executable.
15954hardcode_action=$hardcode_action_GCJ
15955
15956# Whether we should hardcode library paths into libraries.
15957hardcode_into_libs=$hardcode_into_libs
15958
15959# Flag to hardcode \$libdir into a binary during linking.
15960# This must work even if \$libdir does not exist.
15961hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15962
15963# Whether we need a single -rpath flag with a separated argument.
15964hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15965
15966# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
15967# resulting binary.
15968hardcode_direct=$hardcode_direct_GCJ
15969
15970# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15971# resulting binary.
15972hardcode_minus_L=$hardcode_minus_L_GCJ
15973
15974# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15975# the resulting binary.
15976hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15977
15978# Variables whose values should be saved in libtool wrapper scripts and
15979# restored at relink time.
15980variables_saved_for_relink="$variables_saved_for_relink"
15981
15982# Whether libtool must link a program against all its dependency libraries.
15983link_all_deplibs=$link_all_deplibs_GCJ
15984
15985# Compile-time system search path for libraries
15986sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15987
15988# Run-time system search path for libraries
15989sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15990
15991# Fix the shell variable \$srcfile for the compiler.
15992fix_srcfile_path="$fix_srcfile_path_GCJ"
15993
15994# Set to yes if exported symbols are required.
15995always_export_symbols=$always_export_symbols_GCJ
15996
15997# The commands to list exported symbols.
15998export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15999
16000# The commands to extract the exported symbol list from a shared archive.
16001extract_expsyms_cmds=$lt_extract_expsyms_cmds
16002
16003# Symbols that should not be listed in the preloaded symbols.
16004exclude_expsyms=$lt_exclude_expsyms_GCJ
16005
16006# Symbols that must always be exported.
16007include_expsyms=$lt_include_expsyms_GCJ
16008
16009# ### END LIBTOOL TAG CONFIG: $tagname
16010
16011__EOF__
16012
16013
16014else
16015  # If there is no Makefile yet, we rely on a make rule to execute
16016  # `config.status --recheck' to rerun these tests and create the
16017  # libtool script then.
16018  test -f Makefile && make "$ltmain"
16019fi
16020
16021
16022ac_ext=c
16023ac_cpp='$CPP $CPPFLAGS'
16024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16026ac_compiler_gnu=$ac_cv_c_compiler_gnu
16027
16028CC="$lt_save_CC"
16029
16030	;;
16031
16032      RC)
16033
16034
16035
16036# Source file extension for RC test sources.
16037ac_ext=rc
16038
16039# Object file extension for compiled RC test sources.
16040objext=o
16041objext_RC=$objext
16042
16043# Code to be used in simple compile tests
16044lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16045
16046# Code to be used in simple link tests
16047lt_simple_link_test_code="$lt_simple_compile_test_code"
16048
16049# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16050
16051# If no C compiler was specified, use CC.
16052LTCC=${LTCC-"$CC"}
16053
16054# Allow CC to be a program name with arguments.
16055set dummy $CC
16056compiler="$2"
16057
16058
16059# Allow CC to be a program name with arguments.
16060lt_save_CC="$CC"
16061CC=${RC-"windres"}
16062set dummy $CC
16063compiler="$2"
16064compiler_RC=$CC
16065lt_cv_prog_compiler_c_o_RC=yes
16066
16067# The else clause should only fire when bootstrapping the
16068# libtool distribution, otherwise you forgot to ship ltmain.sh
16069# with your package, and you will get complaints that there are
16070# no rules to generate ltmain.sh.
16071if test -f "$ltmain"; then
16072  # Now quote all the things that may contain metacharacters while being
16073  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16074  # variables and quote the copies for generation of the libtool script.
16075  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SED SHELL \
16076    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16077    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16078    deplibs_check_method reload_flag reload_cmds need_locks \
16079    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16080    lt_cv_sys_global_symbol_to_c_name_address \
16081    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16082    old_postinstall_cmds old_postuninstall_cmds \
16083    compiler_RC \
16084    CC_RC \
16085    LD_RC \
16086    lt_prog_compiler_wl_RC \
16087    lt_prog_compiler_pic_RC \
16088    lt_prog_compiler_static_RC \
16089    lt_prog_compiler_no_builtin_flag_RC \
16090    export_dynamic_flag_spec_RC \
16091    thread_safe_flag_spec_RC \
16092    whole_archive_flag_spec_RC \
16093    old_archive_cmds_RC \
16094    old_archive_from_new_cmds_RC \
16095    predep_objects_RC \
16096    postdep_objects_RC \
16097    predeps_RC \
16098    postdeps_RC \
16099    compiler_lib_search_path_RC \
16100    archive_cmds_RC \
16101    archive_expsym_cmds_RC \
16102    postinstall_cmds_RC \
16103    postuninstall_cmds_RC \
16104    old_archive_from_expsyms_cmds_RC \
16105    allow_undefined_flag_RC \
16106    no_undefined_flag_RC \
16107    export_symbols_cmds_RC \
16108    hardcode_libdir_flag_spec_RC \
16109    hardcode_libdir_separator_RC \
16110    lt_cv_prog_compiler_c_o_RC \
16111    exclude_expsyms_RC \
16112    include_expsyms_RC; do
16113
16114    case $var in
16115    old_archive_cmds_RC | \
16116    old_archive_from_new_cmds_RC | \
16117    archive_cmds_RC | \
16118    archive_expsym_cmds_RC | \
16119    old_archive_from_expsyms_cmds_RC | \
16120    export_symbols_cmds_RC | \
16121    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16122    postinstall_cmds | postuninstall_cmds | \
16123    old_postinstall_cmds | old_postuninstall_cmds | \
16124    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16125      # Double-quote double-evaled strings.
16126      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16127      ;;
16128    *)
16129      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16130      ;;
16131    esac
16132  done
16133
16134  case $lt_echo in
16135  *'\$0 --fallback-echo"')
16136    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16137    ;;
16138  esac
16139
16140cfgfile="$ofile"
16141
16142  cat <<__EOF__ >> "$cfgfile"
16143# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16144
16145# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16146
16147# Shell to use when invoking shell scripts.
16148SHELL=$lt_SHELL
16149
16150# Whether or not to build shared libraries.
16151build_libtool_libs=$enable_shared
16152
16153# Whether or not to build static libraries.
16154build_old_libs=$enable_static
16155
16156# Whether or not to add -lc for building shared libraries.
16157build_libtool_need_lc=$archive_cmds_need_lc_RC
16158
16159# Whether or not to optimize for fast installation.
16160fast_install=$enable_fast_install
16161
16162# The host system.
16163host_alias=$host_alias
16164host=$host
16165
16166# An echo program that does not interpret backslashes.
16167echo=$lt_echo
16168
16169# The archiver.
16170AR=$lt_AR
16171AR_FLAGS=$lt_AR_FLAGS
16172
16173# A C compiler.
16174LTCC=$lt_LTCC
16175
16176# A language-specific compiler.
16177CC=$lt_compiler_RC
16178
16179# Is the compiler the GNU C compiler?
16180with_gcc=$GCC_RC
16181
16182# The linker used to build libraries.
16183LD=$lt_LD_RC
16184
16185# Whether we need hard or soft links.
16186LN_S=$lt_LN_S
16187
16188# A BSD-compatible nm program.
16189NM=$lt_NM
16190
16191# A sed program that does not truncate output.
16192SED=$lt_SED
16193
16194# A symbol stripping program
16195STRIP=$STRIP
16196
16197# Used to examine libraries when file_magic_cmd begins "file"
16198MAGIC_CMD=$MAGIC_CMD
16199
16200# Used on cygwin: DLL creation program.
16201DLLTOOL="$DLLTOOL"
16202
16203# Used on cygwin: object dumper.
16204OBJDUMP="$OBJDUMP"
16205
16206# Used on cygwin: assembler.
16207AS="$AS"
16208
16209# The name of the directory that contains temporary libtool files.
16210objdir=$objdir
16211
16212# How to create reloadable object files.
16213reload_flag=$lt_reload_flag
16214reload_cmds=$lt_reload_cmds
16215
16216# How to pass a linker flag through the compiler.
16217wl=$lt_lt_prog_compiler_wl_RC
16218
16219# Object file suffix (normally "o").
16220objext="$ac_objext"
16221
16222# Old archive suffix (normally "a").
16223libext="$libext"
16224
16225# Executable file suffix (normally "").
16226exeext="$exeext"
16227
16228# Additional compiler flags for building library objects.
16229pic_flag=$lt_lt_prog_compiler_pic_RC
16230pic_mode=$pic_mode
16231
16232# What is the maximum length of a command?
16233max_cmd_len=$lt_cv_sys_max_cmd_len
16234
16235# Does compiler simultaneously support -c and -o options?
16236compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
16237
16238# Must we lock files when doing compilation ?
16239need_locks=$lt_need_locks
16240
16241# Do we need the lib prefix for modules?
16242need_lib_prefix=$need_lib_prefix
16243
16244# Do we need a version for libraries?
16245need_version=$need_version
16246
16247# Whether dlopen is supported.
16248dlopen_support=$enable_dlopen
16249
16250# Whether dlopen of programs is supported.
16251dlopen_self=$enable_dlopen_self
16252
16253# Whether dlopen of statically linked programs is supported.
16254dlopen_self_static=$enable_dlopen_self_static
16255
16256# Compiler flag to prevent dynamic linking.
16257link_static_flag=$lt_lt_prog_compiler_static_RC
16258
16259# Compiler flag to turn off builtin functions.
16260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
16261
16262# Compiler flag to allow reflexive dlopens.
16263export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
16264
16265# Compiler flag to generate shared objects directly from archives.
16266whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
16267
16268# Compiler flag to generate thread-safe objects.
16269thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
16270
16271# Library versioning type.
16272version_type=$version_type
16273
16274# Format of library name prefix.
16275libname_spec=$lt_libname_spec
16276
16277# List of archive names.  First name is the real one, the rest are links.
16278# The last name is the one that the linker finds with -lNAME.
16279library_names_spec=$lt_library_names_spec
16280
16281# The coded name of the library, if different from the real name.
16282soname_spec=$lt_soname_spec
16283
16284# Commands used to build and install an old-style archive.
16285RANLIB=$lt_RANLIB
16286old_archive_cmds=$lt_old_archive_cmds_RC
16287old_postinstall_cmds=$lt_old_postinstall_cmds
16288old_postuninstall_cmds=$lt_old_postuninstall_cmds
16289
16290# Create an old-style archive from a shared archive.
16291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
16292
16293# Create a temporary old-style archive to link instead of a shared archive.
16294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
16295
16296# Commands used to build and install a shared archive.
16297archive_cmds=$lt_archive_cmds_RC
16298archive_expsym_cmds=$lt_archive_expsym_cmds_RC
16299postinstall_cmds=$lt_postinstall_cmds
16300postuninstall_cmds=$lt_postuninstall_cmds
16301
16302# Commands to strip libraries.
16303old_striplib=$lt_old_striplib
16304striplib=$lt_striplib
16305
16306# Dependencies to place before the objects being linked to create a
16307# shared library.
16308predep_objects=$lt_predep_objects_RC
16309
16310# Dependencies to place after the objects being linked to create a
16311# shared library.
16312postdep_objects=$lt_postdep_objects_RC
16313
16314# Dependencies to place before the objects being linked to create a
16315# shared library.
16316predeps=$lt_predeps_RC
16317
16318# Dependencies to place after the objects being linked to create a
16319# shared library.
16320postdeps=$lt_postdeps_RC
16321
16322# The library search path used internally by the compiler when linking
16323# a shared library.
16324compiler_lib_search_path=$lt_compiler_lib_search_path_RC
16325
16326# Method to check whether dependent libraries are shared objects.
16327deplibs_check_method=$lt_deplibs_check_method
16328
16329# Command to use when deplibs_check_method == file_magic.
16330file_magic_cmd=$lt_file_magic_cmd
16331
16332# Flag that allows shared libraries with undefined symbols to be built.
16333allow_undefined_flag=$lt_allow_undefined_flag_RC
16334
16335# Flag that forces no undefined symbols.
16336no_undefined_flag=$lt_no_undefined_flag_RC
16337
16338# Commands used to finish a libtool library installation in a directory.
16339finish_cmds=$lt_finish_cmds
16340
16341# Same as above, but a single script fragment to be evaled but not shown.
16342finish_eval=$lt_finish_eval
16343
16344# Take the output of nm and produce a listing of raw symbols and C names.
16345global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16346
16347# Transform the output of nm in a proper C declaration
16348global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16349
16350# Transform the output of nm in a C name address pair
16351global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16352
16353# This is the shared library runtime path variable.
16354runpath_var=$runpath_var
16355
16356# This is the shared library path variable.
16357shlibpath_var=$shlibpath_var
16358
16359# Is shlibpath searched before the hard-coded library search path?
16360shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16361
16362# How to hardcode a shared library path into an executable.
16363hardcode_action=$hardcode_action_RC
16364
16365# Whether we should hardcode library paths into libraries.
16366hardcode_into_libs=$hardcode_into_libs
16367
16368# Flag to hardcode \$libdir into a binary during linking.
16369# This must work even if \$libdir does not exist.
16370hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
16371
16372# Whether we need a single -rpath flag with a separated argument.
16373hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
16374
16375# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
16376# resulting binary.
16377hardcode_direct=$hardcode_direct_RC
16378
16379# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16380# resulting binary.
16381hardcode_minus_L=$hardcode_minus_L_RC
16382
16383# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16384# the resulting binary.
16385hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
16386
16387# Variables whose values should be saved in libtool wrapper scripts and
16388# restored at relink time.
16389variables_saved_for_relink="$variables_saved_for_relink"
16390
16391# Whether libtool must link a program against all its dependency libraries.
16392link_all_deplibs=$link_all_deplibs_RC
16393
16394# Compile-time system search path for libraries
16395sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16396
16397# Run-time system search path for libraries
16398sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16399
16400# Fix the shell variable \$srcfile for the compiler.
16401fix_srcfile_path="$fix_srcfile_path_RC"
16402
16403# Set to yes if exported symbols are required.
16404always_export_symbols=$always_export_symbols_RC
16405
16406# The commands to list exported symbols.
16407export_symbols_cmds=$lt_export_symbols_cmds_RC
16408
16409# The commands to extract the exported symbol list from a shared archive.
16410extract_expsyms_cmds=$lt_extract_expsyms_cmds
16411
16412# Symbols that should not be listed in the preloaded symbols.
16413exclude_expsyms=$lt_exclude_expsyms_RC
16414
16415# Symbols that must always be exported.
16416include_expsyms=$lt_include_expsyms_RC
16417
16418# ### END LIBTOOL TAG CONFIG: $tagname
16419
16420__EOF__
16421
16422
16423else
16424  # If there is no Makefile yet, we rely on a make rule to execute
16425  # `config.status --recheck' to rerun these tests and create the
16426  # libtool script then.
16427  test -f Makefile && make "$ltmain"
16428fi
16429
16430
16431ac_ext=c
16432ac_cpp='$CPP $CPPFLAGS'
16433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16435ac_compiler_gnu=$ac_cv_c_compiler_gnu
16436
16437CC="$lt_save_CC"
16438
16439	;;
16440
16441      *)
16442	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
16443echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
16444   { (exit 1); exit 1; }; }
16445	;;
16446      esac
16447
16448      # Append the new tag name to the list of available tags.
16449      available_tags="$available_tags $tagname"
16450    fi
16451  done
16452  IFS="$lt_save_ifs"
16453
16454  # Now substitute the updated list of available tags.
16455  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
16456    mv "${ofile}T" "$ofile"
16457    chmod +x "$ofile"
16458  else
16459    rm -f "${ofile}T"
16460    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
16461echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
16462   { (exit 1); exit 1; }; }
16463  fi
16464fi
16465
16466
16467
16468# This can be used to rebuild libtool when needed
16469LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
16470
16471# Always use our own libtool.
16472LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
16473
16474# Prevent multiple expansion
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490ac_ext=c
16491ac_cpp='$CPP $CPPFLAGS'
16492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16494ac_compiler_gnu=$ac_cv_c_compiler_gnu
16495
16496
16497
16498ac_ext=c
16499ac_cpp='$CPP $CPPFLAGS'
16500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16502ac_compiler_gnu=$ac_cv_c_compiler_gnu
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515LIBTOOL_SHELL="/bin/sh ./libtool"
16516#  LIBTOOL="$LIBTOOL --silent"
16517KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
16518
16519
16520# Check whether --enable-objprelink or --disable-objprelink was given.
16521if test "${enable_objprelink+set}" = set; then
16522  enableval="$enable_objprelink"
16523  kde_use_objprelink=$enableval
16524else
16525  kde_use_objprelink=no
16526fi;
16527  if test "x$kde_use_objprelink" = "xyes"; then
16528        { echo "$as_me:$LINENO: WARNING:
16529------------------------------------------------------------
16530Configuration option --enable-objprelink is no longer useful.
16531See http:://objprelink.sourceforge.net for details:
165321- Recent binutils are fast enough to do without objprelink.
165332- Newer versions of objprelink do not need this option.
16534------------------------------------------------------------
16535" >&5
16536echo "$as_me: WARNING:
16537------------------------------------------------------------
16538Configuration option --enable-objprelink is no longer useful.
16539See http:://objprelink.sourceforge.net for details:
165401- Recent binutils are fast enough to do without objprelink.
165412- Newer versions of objprelink do not need this option.
16542------------------------------------------------------------
16543" >&2;}
16544  fi
16545
16546
16547
16548
16549
16550SDL_VERSION=1.2.0
16551
16552# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
16553if test "${with_sdl_prefix+set}" = set; then
16554  withval="$with_sdl_prefix"
16555  sdl_prefix="$withval"
16556else
16557  sdl_prefix=""
16558fi;
16559
16560# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
16561if test "${with_sdl_exec_prefix+set}" = set; then
16562  withval="$with_sdl_exec_prefix"
16563  sdl_exec_prefix="$withval"
16564else
16565  sdl_exec_prefix=""
16566fi;
16567# Check whether --enable-sdltest or --disable-sdltest was given.
16568if test "${enable_sdltest+set}" = set; then
16569  enableval="$enable_sdltest"
16570
16571else
16572  enable_sdltest=yes
16573fi;
16574
16575  if test x$sdl_exec_prefix != x ; then
16576     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
16577     if test x${SDL_CONFIG+set} != xset ; then
16578        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
16579     fi
16580  fi
16581  if test x$sdl_prefix != x ; then
16582     sdl_args="$sdl_args --prefix=$sdl_prefix"
16583     if test x${SDL_CONFIG+set} != xset ; then
16584        SDL_CONFIG=$sdl_prefix/bin/sdl-config
16585     fi
16586  fi
16587
16588
16589  PATH="$prefix/bin:$prefix/usr/bin:$PATH"
16590  # Extract the first word of "sdl-config", so it can be a program name with args.
16591set dummy sdl-config; ac_word=$2
16592echo "$as_me:$LINENO: checking for $ac_word" >&5
16593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16594if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
16595  echo $ECHO_N "(cached) $ECHO_C" >&6
16596else
16597  case $SDL_CONFIG in
16598  [\\/]* | ?:[\\/]*)
16599  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
16600  ;;
16601  *)
16602  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16603for as_dir in $PATH
16604do
16605  IFS=$as_save_IFS
16606  test -z "$as_dir" && as_dir=.
16607  for ac_exec_ext in '' $ac_executable_extensions; do
16608  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16609    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16611    break 2
16612  fi
16613done
16614done
16615
16616  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
16617  ;;
16618esac
16619fi
16620SDL_CONFIG=$ac_cv_path_SDL_CONFIG
16621
16622if test -n "$SDL_CONFIG"; then
16623  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
16624echo "${ECHO_T}$SDL_CONFIG" >&6
16625else
16626  echo "$as_me:$LINENO: result: no" >&5
16627echo "${ECHO_T}no" >&6
16628fi
16629
16630  min_sdl_version=$SDL_VERSION
16631  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
16632echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
16633  no_sdl=""
16634  if test "$SDL_CONFIG" = "no" ; then
16635    no_sdl=yes
16636  else
16637    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
16638    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
16639
16640    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
16641           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
16642    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
16643           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
16644    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
16645           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
16646    if test "x$enable_sdltest" = "xyes" ; then
16647      ac_save_CFLAGS="$CFLAGS"
16648      ac_save_CXXFLAGS="$CXXFLAGS"
16649      ac_save_LIBS="$LIBS"
16650      CFLAGS="$CFLAGS $SDL_CFLAGS"
16651      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
16652      LIBS="$LIBS $SDL_LIBS"
16653      rm -f conf.sdltest
16654      if test "$cross_compiling" = yes; then
16655  echo $ac_n "cross compiling; assumed OK... $ac_c"
16656else
16657  cat >conftest.$ac_ext <<_ACEOF
16658#line $LINENO "configure"
16659/* confdefs.h.  */
16660_ACEOF
16661cat confdefs.h >>conftest.$ac_ext
16662cat >>conftest.$ac_ext <<_ACEOF
16663/* end confdefs.h.  */
16664
16665#include <stdio.h>
16666#include <stdlib.h>
16667#include <string.h>
16668#include "SDL.h"
16669
16670char*
16671my_strdup (char *str)
16672{
16673  char *new_str;
16674
16675  if (str)
16676    {
16677      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
16678      strcpy (new_str, str);
16679    }
16680  else
16681    new_str = NULL;
16682
16683  return new_str;
16684}
16685
16686int main (int argc, char *argv[])
16687{
16688  int major, minor, micro;
16689  char *tmp_version;
16690
16691  /* This hangs on some systems (?)
16692  system ("touch conf.sdltest");
16693  */
16694  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
16695
16696  /* HP/UX 9 (%@#!) writes to sscanf strings */
16697  tmp_version = my_strdup("$min_sdl_version");
16698  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
16699     printf("%s, bad version string\n", "$min_sdl_version");
16700     exit(1);
16701   }
16702
16703   if (($sdl_major_version > major) ||
16704      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
16705      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
16706    {
16707      return 0;
16708    }
16709  else
16710    {
16711      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
16712      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
16713      printf("*** best to upgrade to the required version.\n");
16714      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
16715      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
16716      printf("*** config.cache before re-running configure\n");
16717      return 1;
16718    }
16719}
16720
16721
16722_ACEOF
16723rm -f conftest$ac_exeext
16724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16725  (eval $ac_link) 2>&5
16726  ac_status=$?
16727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16730  (eval $ac_try) 2>&5
16731  ac_status=$?
16732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733  (exit $ac_status); }; }; then
16734  :
16735else
16736  echo "$as_me: program exited with status $ac_status" >&5
16737echo "$as_me: failed program was:" >&5
16738sed 's/^/| /' conftest.$ac_ext >&5
16739
16740( exit $ac_status )
16741no_sdl=yes
16742fi
16743rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16744fi
16745       CFLAGS="$ac_save_CFLAGS"
16746       CXXFLAGS="$ac_save_CXXFLAGS"
16747       LIBS="$ac_save_LIBS"
16748     fi
16749  fi
16750  if test "x$no_sdl" = x ; then
16751     echo "$as_me:$LINENO: result: yes" >&5
16752echo "${ECHO_T}yes" >&6
16753     :
16754  else
16755     echo "$as_me:$LINENO: result: no" >&5
16756echo "${ECHO_T}no" >&6
16757     if test "$SDL_CONFIG" = "no" ; then
16758       echo "*** The sdl-config script installed by SDL could not be found"
16759       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
16760       echo "*** your path, or set the SDL_CONFIG environment variable to the"
16761       echo "*** full path to sdl-config."
16762     else
16763       if test -f conf.sdltest ; then
16764        :
16765       else
16766          echo "*** Could not run SDL test program, checking why..."
16767          CFLAGS="$CFLAGS $SDL_CFLAGS"
16768          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
16769          LIBS="$LIBS $SDL_LIBS"
16770          cat >conftest.$ac_ext <<_ACEOF
16771#line $LINENO "configure"
16772/* confdefs.h.  */
16773_ACEOF
16774cat confdefs.h >>conftest.$ac_ext
16775cat >>conftest.$ac_ext <<_ACEOF
16776/* end confdefs.h.  */
16777
16778#include <stdio.h>
16779#include "SDL.h"
16780
16781int main(int argc, char *argv[])
16782{ return 0; }
16783#undef  main
16784#define main K_and_R_C_main
16785
16786int
16787main ()
16788{
16789 return 0;
16790  ;
16791  return 0;
16792}
16793_ACEOF
16794rm -f conftest.$ac_objext conftest$ac_exeext
16795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16796  (eval $ac_link) 2>&5
16797  ac_status=$?
16798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799  (exit $ac_status); } &&
16800         { ac_try='test -s conftest$ac_exeext'
16801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802  (eval $ac_try) 2>&5
16803  ac_status=$?
16804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805  (exit $ac_status); }; }; then
16806   echo "*** The test program compiled, but did not run. This usually means"
16807          echo "*** that the run-time linker is not finding SDL or finding the wrong"
16808          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
16809          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
16810          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
16811          echo "*** is required on your system"
16812	  echo "***"
16813          echo "*** If you have an old version installed, it is best to remove it, although"
16814          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
16815else
16816  echo "$as_me: failed program was:" >&5
16817sed 's/^/| /' conftest.$ac_ext >&5
16818
16819 echo "*** The test program failed to compile or link. See the file config.log for the"
16820          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
16821          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
16822          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
16823fi
16824rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16825          CFLAGS="$ac_save_CFLAGS"
16826          CXXFLAGS="$ac_save_CXXFLAGS"
16827          LIBS="$ac_save_LIBS"
16828       fi
16829     fi
16830     SDL_CFLAGS=""
16831     SDL_LIBS=""
16832     { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
16833echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
16834   { (exit 1); exit 1; }; }
16835
16836  fi
16837
16838
16839  rm -f conf.sdltest
16840
16841CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
16842LIBS="$LIBS $SDL_LIBS"
16843
16844CXXFLAGS="$CXXFLAGS -DAP_PATH=\\\"$prefix/share/apricots/\\\""
16845
16846if test "${ac_cv_header_AL_al_h+set}" = set; then
16847  echo "$as_me:$LINENO: checking for AL/al.h" >&5
16848echo $ECHO_N "checking for AL/al.h... $ECHO_C" >&6
16849if test "${ac_cv_header_AL_al_h+set}" = set; then
16850  echo $ECHO_N "(cached) $ECHO_C" >&6
16851fi
16852echo "$as_me:$LINENO: result: $ac_cv_header_AL_al_h" >&5
16853echo "${ECHO_T}$ac_cv_header_AL_al_h" >&6
16854else
16855  # Is the header compilable?
16856echo "$as_me:$LINENO: checking AL/al.h usability" >&5
16857echo $ECHO_N "checking AL/al.h usability... $ECHO_C" >&6
16858cat >conftest.$ac_ext <<_ACEOF
16859#line $LINENO "configure"
16860/* confdefs.h.  */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h.  */
16865$ac_includes_default
16866#include <AL/al.h>
16867_ACEOF
16868rm -f conftest.$ac_objext
16869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16870  (eval $ac_compile) 2>&5
16871  ac_status=$?
16872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873  (exit $ac_status); } &&
16874         { ac_try='test -s conftest.$ac_objext'
16875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876  (eval $ac_try) 2>&5
16877  ac_status=$?
16878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879  (exit $ac_status); }; }; then
16880  ac_header_compiler=yes
16881else
16882  echo "$as_me: failed program was:" >&5
16883sed 's/^/| /' conftest.$ac_ext >&5
16884
16885ac_header_compiler=no
16886fi
16887rm -f conftest.$ac_objext conftest.$ac_ext
16888echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16889echo "${ECHO_T}$ac_header_compiler" >&6
16890
16891# Is the header present?
16892echo "$as_me:$LINENO: checking AL/al.h presence" >&5
16893echo $ECHO_N "checking AL/al.h presence... $ECHO_C" >&6
16894cat >conftest.$ac_ext <<_ACEOF
16895#line $LINENO "configure"
16896/* confdefs.h.  */
16897_ACEOF
16898cat confdefs.h >>conftest.$ac_ext
16899cat >>conftest.$ac_ext <<_ACEOF
16900/* end confdefs.h.  */
16901#include <AL/al.h>
16902_ACEOF
16903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16904  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16905  ac_status=$?
16906  grep -v '^ *+' conftest.er1 >conftest.err
16907  rm -f conftest.er1
16908  cat conftest.err >&5
16909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910  (exit $ac_status); } >/dev/null; then
16911  if test -s conftest.err; then
16912    ac_cpp_err=$ac_c_preproc_warn_flag
16913  else
16914    ac_cpp_err=
16915  fi
16916else
16917  ac_cpp_err=yes
16918fi
16919if test -z "$ac_cpp_err"; then
16920  ac_header_preproc=yes
16921else
16922  echo "$as_me: failed program was:" >&5
16923sed 's/^/| /' conftest.$ac_ext >&5
16924
16925  ac_header_preproc=no
16926fi
16927rm -f conftest.err conftest.$ac_ext
16928echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16929echo "${ECHO_T}$ac_header_preproc" >&6
16930
16931# So?  What about this header?
16932case $ac_header_compiler:$ac_header_preproc in
16933  yes:no )
16934    { echo "$as_me:$LINENO: WARNING: AL/al.h: accepted by the compiler, rejected by the preprocessor!" >&5
16935echo "$as_me: WARNING: AL/al.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16936    { echo "$as_me:$LINENO: WARNING: AL/al.h: proceeding with the preprocessor's result" >&5
16937echo "$as_me: WARNING: AL/al.h: proceeding with the preprocessor's result" >&2;}
16938    (
16939      cat <<\_ASBOX
16940## ------------------------------------ ##
16941## Report this to bug-autoconf@gnu.org. ##
16942## ------------------------------------ ##
16943_ASBOX
16944    ) |
16945      sed "s/^/$as_me: WARNING:     /" >&2
16946    ;;
16947  no:yes )
16948    { echo "$as_me:$LINENO: WARNING: AL/al.h: present but cannot be compiled" >&5
16949echo "$as_me: WARNING: AL/al.h: present but cannot be compiled" >&2;}
16950    { echo "$as_me:$LINENO: WARNING: AL/al.h: check for missing prerequisite headers?" >&5
16951echo "$as_me: WARNING: AL/al.h: check for missing prerequisite headers?" >&2;}
16952    { echo "$as_me:$LINENO: WARNING: AL/al.h: proceeding with the preprocessor's result" >&5
16953echo "$as_me: WARNING: AL/al.h: proceeding with the preprocessor's result" >&2;}
16954    (
16955      cat <<\_ASBOX
16956## ------------------------------------ ##
16957## Report this to bug-autoconf@gnu.org. ##
16958## ------------------------------------ ##
16959_ASBOX
16960    ) |
16961      sed "s/^/$as_me: WARNING:     /" >&2
16962    ;;
16963esac
16964echo "$as_me:$LINENO: checking for AL/al.h" >&5
16965echo $ECHO_N "checking for AL/al.h... $ECHO_C" >&6
16966if test "${ac_cv_header_AL_al_h+set}" = set; then
16967  echo $ECHO_N "(cached) $ECHO_C" >&6
16968else
16969  ac_cv_header_AL_al_h=$ac_header_preproc
16970fi
16971echo "$as_me:$LINENO: result: $ac_cv_header_AL_al_h" >&5
16972echo "${ECHO_T}$ac_cv_header_AL_al_h" >&6
16973
16974fi
16975if test $ac_cv_header_AL_al_h = yes; then
16976  CXXFLAGS="$CXXFLAGS -DAP_AUDIO_OPENAL"
16977fi
16978
16979
16980
16981echo "$as_me:$LINENO: checking for alutInit in -lopenal" >&5
16982echo $ECHO_N "checking for alutInit in -lopenal... $ECHO_C" >&6
16983if test "${ac_cv_lib_openal_alutInit+set}" = set; then
16984  echo $ECHO_N "(cached) $ECHO_C" >&6
16985else
16986  ac_check_lib_save_LIBS=$LIBS
16987LIBS="-lopenal  $LIBS"
16988cat >conftest.$ac_ext <<_ACEOF
16989#line $LINENO "configure"
16990/* confdefs.h.  */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h.  */
16995
16996/* Override any gcc2 internal prototype to avoid an error.  */
16997#ifdef __cplusplus
16998extern "C"
16999#endif
17000/* We use char because int might match the return type of a gcc2
17001   builtin and then its argument prototype would still apply.  */
17002char alutInit ();
17003int
17004main ()
17005{
17006alutInit ();
17007  ;
17008  return 0;
17009}
17010_ACEOF
17011rm -f conftest.$ac_objext conftest$ac_exeext
17012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17013  (eval $ac_link) 2>&5
17014  ac_status=$?
17015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016  (exit $ac_status); } &&
17017         { ac_try='test -s conftest$ac_exeext'
17018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019  (eval $ac_try) 2>&5
17020  ac_status=$?
17021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022  (exit $ac_status); }; }; then
17023  ac_cv_lib_openal_alutInit=yes
17024else
17025  echo "$as_me: failed program was:" >&5
17026sed 's/^/| /' conftest.$ac_ext >&5
17027
17028ac_cv_lib_openal_alutInit=no
17029fi
17030rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17031LIBS=$ac_check_lib_save_LIBS
17032fi
17033echo "$as_me:$LINENO: result: $ac_cv_lib_openal_alutInit" >&5
17034echo "${ECHO_T}$ac_cv_lib_openal_alutInit" >&6
17035if test $ac_cv_lib_openal_alutInit = yes; then
17036  cat >>confdefs.h <<_ACEOF
17037#define HAVE_LIBOPENAL 1
17038_ACEOF
17039
17040  LIBS="-lopenal $LIBS"
17041
17042fi
17043
17044
17045
17046echo "$as_me:$LINENO: checking for extra includes" >&5
17047echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
17048
17049# Check whether --with-extra-includes or --without-extra-includes was given.
17050if test "${with_extra_includes+set}" = set; then
17051  withval="$with_extra_includes"
17052  kde_use_extra_includes="$withval"
17053else
17054  kde_use_extra_includes=NONE
17055
17056fi;
17057kde_extra_includes=
17058if test -n "$kde_use_extra_includes" && \
17059   test "$kde_use_extra_includes" != "NONE"; then
17060
17061   ac_save_ifs=$IFS
17062   IFS=':'
17063   for dir in $kde_use_extra_includes; do
17064     kde_extra_includes="$kde_extra_includes $dir"
17065     USER_INCLUDES="$USER_INCLUDES -I$dir"
17066   done
17067   IFS=$ac_save_ifs
17068   kde_use_extra_includes="added"
17069else
17070   kde_use_extra_includes="no"
17071fi
17072
17073
17074echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
17075echo "${ECHO_T}$kde_use_extra_includes" >&6
17076
17077kde_extra_libs=
17078echo "$as_me:$LINENO: checking for extra libs" >&5
17079echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
17080
17081# Check whether --with-extra-libs or --without-extra-libs was given.
17082if test "${with_extra_libs+set}" = set; then
17083  withval="$with_extra_libs"
17084  kde_use_extra_libs=$withval
17085else
17086  kde_use_extra_libs=NONE
17087
17088fi;
17089if test -n "$kde_use_extra_libs" && \
17090   test "$kde_use_extra_libs" != "NONE"; then
17091
17092   ac_save_ifs=$IFS
17093   IFS=':'
17094   for dir in $kde_use_extra_libs; do
17095     kde_extra_libs="$kde_extra_libs $dir"
17096     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
17097     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
17098   done
17099   IFS=$ac_save_ifs
17100   kde_use_extra_libs="added"
17101else
17102   kde_use_extra_libs="no"
17103fi
17104
17105
17106
17107echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
17108echo "${ECHO_T}$kde_use_extra_libs" >&6
17109
17110
17111all_libraries="$all_libraries $USER_LDFLAGS"
17112all_includes="$all_includes $USER_INCLUDES"
17113
17114
17115
17116
17117
17118
17119
17120DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
17121
17122if test ! -s $srcdir/subdirs; then
17123    TOPSUBDIRS=""
17124  files=`cd $srcdir && ls -1`
17125  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
17126  for i in $dirs; do
17127    echo $i >> $srcdir/subdirs
17128  done
17129fi
17130
17131if test -s $srcdir/inst-apps; then
17132  ac_topsubdirs="`cat $srcdir/inst-apps`"
17133else
17134  ac_topsubdirs="`cat $srcdir/subdirs`"
17135fi
17136
17137for i in $ac_topsubdirs; do
17138  echo "$as_me:$LINENO: checking if $i should be compiled" >&5
17139echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
17140  if test -d $srcdir/$i; then
17141    install_it="yes"
17142    for j in $DO_NOT_COMPILE; do
17143      if test $i = $j; then
17144        install_it="no"
17145      fi
17146    done
17147  else
17148    install_it="no"
17149  fi
17150  echo "$as_me:$LINENO: result: $install_it" >&5
17151echo "${ECHO_T}$install_it" >&6
17152  vari=`echo $i | sed -e 's,[-+.],_,g'`
17153  if test $install_it = "yes"; then
17154    TOPSUBDIRS="$TOPSUBDIRS $i"
17155    eval "$vari""_SUBDIR_included=yes"
17156  else
17157    eval "$vari""_SUBDIR_included=no"
17158  fi
17159done
17160
17161
17162
17163          ac_config_files="$ac_config_files Makefile"
17164
17165          ac_config_files="$ac_config_files apricots/Makefile"
17166
17167          ac_config_files="$ac_config_files apricots/docs/Makefile"
17168
17169          ac_config_files="$ac_config_files apricots/docs/en/Makefile"
17170
17171cat >confcache <<\_ACEOF
17172# This file is a shell script that caches the results of configure
17173# tests run on this system so they can be shared between configure
17174# scripts and configure runs, see configure's option --config-cache.
17175# It is not useful on other systems.  If it contains results you don't
17176# want to keep, you may remove or edit it.
17177#
17178# config.status only pays attention to the cache file if you give it
17179# the --recheck option to rerun configure.
17180#
17181# `ac_cv_env_foo' variables (set or unset) will be overridden when
17182# loading this file, other *unset* `ac_cv_foo' will be assigned the
17183# following values.
17184
17185_ACEOF
17186
17187# The following way of writing the cache mishandles newlines in values,
17188# but we know of no workaround that is simple, portable, and efficient.
17189# So, don't put newlines in cache variables' values.
17190# Ultrix sh set writes to stderr and can't be redirected directly,
17191# and sets the high bit in the cache file unless we assign to the vars.
17192{
17193  (set) 2>&1 |
17194    case `(ac_space=' '; set | grep ac_space) 2>&1` in
17195    *ac_space=\ *)
17196      # `set' does not quote correctly, so add quotes (double-quote
17197      # substitution turns \\\\ into \\, and sed turns \\ into \).
17198      sed -n \
17199        "s/'/'\\\\''/g;
17200    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17201      ;;
17202    *)
17203      # `set' quotes correctly as required by POSIX, so do not add quotes.
17204      sed -n \
17205        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17206      ;;
17207    esac;
17208} |
17209  sed '
17210     t clear
17211     : clear
17212     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17213     t end
17214     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17215     : end' >>confcache
17216if diff $cache_file confcache >/dev/null 2>&1; then :; else
17217  if test -w $cache_file; then
17218    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17219    cat confcache >$cache_file
17220  else
17221    echo "not updating unwritable cache $cache_file"
17222  fi
17223fi
17224rm -f confcache
17225
17226test "x$prefix" = xNONE && prefix=$ac_default_prefix
17227# Let make expand exec_prefix.
17228test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17229
17230# VPATH may cause trouble with some makes, so we remove $(srcdir),
17231# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17232# trailing colons and then remove the whole line if VPATH becomes empty
17233# (actually we leave an empty line to preserve line numbers).
17234if test "x$srcdir" = x.; then
17235  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
17236s/:*\$(srcdir):*/:/;
17237s/:*\${srcdir}:*/:/;
17238s/:*@srcdir@:*/:/;
17239s/^\([^=]*=[ 	]*\):*/\1/;
17240s/:*$//;
17241s/^[^=]*=[ 	]*$//;
17242}'
17243fi
17244
17245DEFS=-DHAVE_CONFIG_H
17246
17247ac_libobjs=
17248ac_ltlibobjs=
17249for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17250  # 1. Remove the extension, and $U if already installed.
17251  ac_i=`echo "$ac_i" |
17252         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17253  # 2. Add them.
17254  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17255  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17256done
17257LIBOBJS=$ac_libobjs
17258
17259LTLIBOBJS=$ac_ltlibobjs
17260
17261
17262if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17263  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17264Usually this means the macro was only invoked conditionally." >&5
17265echo "$as_me: error: conditional \"AMDEP\" was never defined.
17266Usually this means the macro was only invoked conditionally." >&2;}
17267   { (exit 1); exit 1; }; }
17268fi
17269
17270: ${CONFIG_STATUS=./config.status}
17271ac_clean_files_save=$ac_clean_files
17272ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17273{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17274echo "$as_me: creating $CONFIG_STATUS" >&6;}
17275cat >$CONFIG_STATUS <<_ACEOF
17276#! $SHELL
17277# Generated by $as_me.
17278# Run this file to recreate the current configuration.
17279# Compiler output produced by configure, useful for debugging
17280# configure, is in config.log if it exists.
17281
17282debug=false
17283ac_cs_recheck=false
17284ac_cs_silent=false
17285SHELL=\${CONFIG_SHELL-$SHELL}
17286_ACEOF
17287
17288cat >>$CONFIG_STATUS <<\_ACEOF
17289## --------------------- ##
17290## M4sh Initialization.  ##
17291## --------------------- ##
17292
17293# Be Bourne compatible
17294if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17295  emulate sh
17296  NULLCMD=:
17297  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17298  # is contrary to our usage.  Disable this feature.
17299  alias -g '${1+"$@"}'='"$@"'
17300elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17301  set -o posix
17302fi
17303
17304# Support unset when possible.
17305if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17306  as_unset=unset
17307else
17308  as_unset=false
17309fi
17310
17311
17312# Work around bugs in pre-3.0 UWIN ksh.
17313$as_unset ENV MAIL MAILPATH
17314PS1='$ '
17315PS2='> '
17316PS4='+ '
17317
17318# NLS nuisances.
17319for as_var in \
17320  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17321  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17322  LC_TELEPHONE LC_TIME
17323do
17324  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17325    eval $as_var=C; export $as_var
17326  else
17327    $as_unset $as_var
17328  fi
17329done
17330
17331# Required to use basename.
17332if expr a : '\(a\)' >/dev/null 2>&1; then
17333  as_expr=expr
17334else
17335  as_expr=false
17336fi
17337
17338if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17339  as_basename=basename
17340else
17341  as_basename=false
17342fi
17343
17344
17345# Name of the executable.
17346as_me=`$as_basename "$0" ||
17347$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17348	 X"$0" : 'X\(//\)$' \| \
17349	 X"$0" : 'X\(/\)$' \| \
17350	 .     : '\(.\)' 2>/dev/null ||
17351echo X/"$0" |
17352    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17353  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
17354  	  /^X\/\(\/\).*/{ s//\1/; q; }
17355  	  s/.*/./; q'`
17356
17357
17358# PATH needs CR, and LINENO needs CR and PATH.
17359# Avoid depending upon Character Ranges.
17360as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17361as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17362as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17363as_cr_digits='0123456789'
17364as_cr_alnum=$as_cr_Letters$as_cr_digits
17365
17366# The user is always right.
17367if test "${PATH_SEPARATOR+set}" != set; then
17368  echo "#! /bin/sh" >conf$$.sh
17369  echo  "exit 0"   >>conf$$.sh
17370  chmod +x conf$$.sh
17371  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17372    PATH_SEPARATOR=';'
17373  else
17374    PATH_SEPARATOR=:
17375  fi
17376  rm -f conf$$.sh
17377fi
17378
17379
17380  as_lineno_1=$LINENO
17381  as_lineno_2=$LINENO
17382  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17383  test "x$as_lineno_1" != "x$as_lineno_2" &&
17384  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17385  # Find who we are.  Look in the path if we contain no path at all
17386  # relative or not.
17387  case $0 in
17388    *[\\/]* ) as_myself=$0 ;;
17389    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17390for as_dir in $PATH
17391do
17392  IFS=$as_save_IFS
17393  test -z "$as_dir" && as_dir=.
17394  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17395done
17396
17397       ;;
17398  esac
17399  # We did not find ourselves, most probably we were run as `sh COMMAND'
17400  # in which case we are not to be found in the path.
17401  if test "x$as_myself" = x; then
17402    as_myself=$0
17403  fi
17404  if test ! -f "$as_myself"; then
17405    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17406echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17407   { (exit 1); exit 1; }; }
17408  fi
17409  case $CONFIG_SHELL in
17410  '')
17411    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17412for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17413do
17414  IFS=$as_save_IFS
17415  test -z "$as_dir" && as_dir=.
17416  for as_base in sh bash ksh sh5; do
17417	 case $as_dir in
17418	 /*)
17419	   if ("$as_dir/$as_base" -c '
17420  as_lineno_1=$LINENO
17421  as_lineno_2=$LINENO
17422  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17423  test "x$as_lineno_1" != "x$as_lineno_2" &&
17424  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17425	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17426	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17427	     CONFIG_SHELL=$as_dir/$as_base
17428	     export CONFIG_SHELL
17429	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17430	   fi;;
17431	 esac
17432       done
17433done
17434;;
17435  esac
17436
17437  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17438  # uniformly replaced by the line number.  The first 'sed' inserts a
17439  # line-number line before each line; the second 'sed' does the real
17440  # work.  The second script uses 'N' to pair each line-number line
17441  # with the numbered line, and appends trailing '-' during
17442  # substitution so that $LINENO is not a special case at line end.
17443  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17444  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17445  sed '=' <$as_myself |
17446    sed '
17447      N
17448      s,$,-,
17449      : loop
17450      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17451      t loop
17452      s,-$,,
17453      s,^['$as_cr_digits']*\n,,
17454    ' >$as_me.lineno &&
17455  chmod +x $as_me.lineno ||
17456    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17457echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17458   { (exit 1); exit 1; }; }
17459
17460  # Don't try to exec as it changes $[0], causing all sort of problems
17461  # (the dirname of $[0] is not the place where we might find the
17462  # original and so on.  Autoconf is especially sensible to this).
17463  . ./$as_me.lineno
17464  # Exit status is that of the last command.
17465  exit
17466}
17467
17468
17469case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17470  *c*,-n*) ECHO_N= ECHO_C='
17471' ECHO_T='	' ;;
17472  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17473  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17474esac
17475
17476if expr a : '\(a\)' >/dev/null 2>&1; then
17477  as_expr=expr
17478else
17479  as_expr=false
17480fi
17481
17482rm -f conf$$ conf$$.exe conf$$.file
17483echo >conf$$.file
17484if ln -s conf$$.file conf$$ 2>/dev/null; then
17485  # We could just check for DJGPP; but this test a) works b) is more generic
17486  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17487  if test -f conf$$.exe; then
17488    # Don't use ln at all; we don't have any links
17489    as_ln_s='cp -p'
17490  else
17491    as_ln_s='ln -s'
17492  fi
17493elif ln conf$$.file conf$$ 2>/dev/null; then
17494  as_ln_s=ln
17495else
17496  as_ln_s='cp -p'
17497fi
17498rm -f conf$$ conf$$.exe conf$$.file
17499
17500if mkdir -p . 2>/dev/null; then
17501  as_mkdir_p=:
17502else
17503  as_mkdir_p=false
17504fi
17505
17506as_executable_p="test -f"
17507
17508# Sed expression to map a string onto a valid CPP name.
17509as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17510
17511# Sed expression to map a string onto a valid variable name.
17512as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17513
17514
17515# IFS
17516# We need space, tab and new line, in precisely that order.
17517as_nl='
17518'
17519IFS=" 	$as_nl"
17520
17521# CDPATH.
17522$as_unset CDPATH
17523
17524exec 6>&1
17525
17526# Open the log real soon, to keep \$[0] and so on meaningful, and to
17527# report actual input values of CONFIG_FILES etc. instead of their
17528# values after options handling.  Logging --version etc. is OK.
17529exec 5>>config.log
17530{
17531  echo
17532  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17533## Running $as_me. ##
17534_ASBOX
17535} >&5
17536cat >&5 <<_CSEOF
17537
17538This file was extended by $as_me, which was
17539generated by GNU Autoconf 2.57.  Invocation command line was
17540
17541  CONFIG_FILES    = $CONFIG_FILES
17542  CONFIG_HEADERS  = $CONFIG_HEADERS
17543  CONFIG_LINKS    = $CONFIG_LINKS
17544  CONFIG_COMMANDS = $CONFIG_COMMANDS
17545  $ $0 $@
17546
17547_CSEOF
17548echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17549echo >&5
17550_ACEOF
17551
17552# Files that config.status was made for.
17553if test -n "$ac_config_files"; then
17554  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17555fi
17556
17557if test -n "$ac_config_headers"; then
17558  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17559fi
17560
17561if test -n "$ac_config_links"; then
17562  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17563fi
17564
17565if test -n "$ac_config_commands"; then
17566  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17567fi
17568
17569cat >>$CONFIG_STATUS <<\_ACEOF
17570
17571ac_cs_usage="\
17572\`$as_me' instantiates files from templates according to the
17573current configuration.
17574
17575Usage: $0 [OPTIONS] [FILE]...
17576
17577  -h, --help       print this help, then exit
17578  -V, --version    print version number, then exit
17579  -q, --quiet      do not print progress messages
17580  -d, --debug      don't remove temporary files
17581      --recheck    update $as_me by reconfiguring in the same conditions
17582  --file=FILE[:TEMPLATE]
17583                   instantiate the configuration file FILE
17584  --header=FILE[:TEMPLATE]
17585                   instantiate the configuration header FILE
17586
17587Configuration files:
17588$config_files
17589
17590Configuration headers:
17591$config_headers
17592
17593Configuration commands:
17594$config_commands
17595
17596Report bugs to <bug-autoconf@gnu.org>."
17597_ACEOF
17598
17599cat >>$CONFIG_STATUS <<_ACEOF
17600ac_cs_version="\\
17601config.status
17602configured by $0, generated by GNU Autoconf 2.57,
17603  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17604
17605Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17606Free Software Foundation, Inc.
17607This config.status script is free software; the Free Software Foundation
17608gives unlimited permission to copy, distribute and modify it."
17609srcdir=$srcdir
17610INSTALL="$INSTALL"
17611_ACEOF
17612
17613cat >>$CONFIG_STATUS <<\_ACEOF
17614# If no file are specified by the user, then we need to provide default
17615# value.  By we need to know if files were specified by the user.
17616ac_need_defaults=:
17617while test $# != 0
17618do
17619  case $1 in
17620  --*=*)
17621    ac_option=`expr "x$1" : 'x\([^=]*\)='`
17622    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17623    ac_shift=:
17624    ;;
17625  -*)
17626    ac_option=$1
17627    ac_optarg=$2
17628    ac_shift=shift
17629    ;;
17630  *) # This is not an option, so the user has probably given explicit
17631     # arguments.
17632     ac_option=$1
17633     ac_need_defaults=false;;
17634  esac
17635
17636  case $ac_option in
17637  # Handling of the options.
17638_ACEOF
17639cat >>$CONFIG_STATUS <<\_ACEOF
17640  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17641    ac_cs_recheck=: ;;
17642  --version | --vers* | -V )
17643    echo "$ac_cs_version"; exit 0 ;;
17644  --he | --h)
17645    # Conflict between --help and --header
17646    { { echo "$as_me:$LINENO: error: ambiguous option: $1
17647Try \`$0 --help' for more information." >&5
17648echo "$as_me: error: ambiguous option: $1
17649Try \`$0 --help' for more information." >&2;}
17650   { (exit 1); exit 1; }; };;
17651  --help | --hel | -h )
17652    echo "$ac_cs_usage"; exit 0 ;;
17653  --debug | --d* | -d )
17654    debug=: ;;
17655  --file | --fil | --fi | --f )
17656    $ac_shift
17657    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17658    ac_need_defaults=false;;
17659  --header | --heade | --head | --hea )
17660    $ac_shift
17661    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17662    ac_need_defaults=false;;
17663  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17664  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17665    ac_cs_silent=: ;;
17666
17667  # This is an error.
17668  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17669Try \`$0 --help' for more information." >&5
17670echo "$as_me: error: unrecognized option: $1
17671Try \`$0 --help' for more information." >&2;}
17672   { (exit 1); exit 1; }; } ;;
17673
17674  *) ac_config_targets="$ac_config_targets $1" ;;
17675
17676  esac
17677  shift
17678done
17679
17680ac_configure_extra_args=
17681
17682if $ac_cs_silent; then
17683  exec 6>/dev/null
17684  ac_configure_extra_args="$ac_configure_extra_args --silent"
17685fi
17686
17687_ACEOF
17688cat >>$CONFIG_STATUS <<_ACEOF
17689if \$ac_cs_recheck; then
17690  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17691  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17692fi
17693
17694_ACEOF
17695
17696cat >>$CONFIG_STATUS <<_ACEOF
17697#
17698# INIT-COMMANDS section.
17699#
17700
17701AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17702
17703_ACEOF
17704
17705
17706
17707cat >>$CONFIG_STATUS <<\_ACEOF
17708for ac_config_target in $ac_config_targets
17709do
17710  case "$ac_config_target" in
17711  # Handling of arguments.
17712  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17713  "apricots/Makefile" ) CONFIG_FILES="$CONFIG_FILES apricots/Makefile" ;;
17714  "apricots/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES apricots/docs/Makefile" ;;
17715  "apricots/docs/en/Makefile" ) CONFIG_FILES="$CONFIG_FILES apricots/docs/en/Makefile" ;;
17716  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17717  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17718  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17719echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17720   { (exit 1); exit 1; }; };;
17721  esac
17722done
17723
17724# If the user did not use the arguments to specify the items to instantiate,
17725# then the envvar interface is used.  Set only those that are not.
17726# We use the long form for the default assignment because of an extremely
17727# bizarre bug on SunOS 4.1.3.
17728if $ac_need_defaults; then
17729  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17730  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17731  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17732fi
17733
17734# Have a temporary directory for convenience.  Make it in the build tree
17735# simply because there is no reason to put it here, and in addition,
17736# creating and moving files from /tmp can sometimes cause problems.
17737# Create a temporary directory, and hook for its removal unless debugging.
17738$debug ||
17739{
17740  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17741  trap '{ (exit 1); exit 1; }' 1 2 13 15
17742}
17743
17744# Create a (secure) tmp directory for tmp files.
17745
17746{
17747  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17748  test -n "$tmp" && test -d "$tmp"
17749}  ||
17750{
17751  tmp=./confstat$$-$RANDOM
17752  (umask 077 && mkdir $tmp)
17753} ||
17754{
17755   echo "$me: cannot create a temporary directory in ." >&2
17756   { (exit 1); exit 1; }
17757}
17758
17759_ACEOF
17760
17761cat >>$CONFIG_STATUS <<_ACEOF
17762
17763#
17764# CONFIG_FILES section.
17765#
17766
17767# No need to generate the scripts if there are no CONFIG_FILES.
17768# This happens for instance when ./config.status config.h
17769if test -n "\$CONFIG_FILES"; then
17770  # Protect against being on the right side of a sed subst in config.status.
17771  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17772   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17773s,@SHELL@,$SHELL,;t t
17774s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17775s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17776s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17777s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17778s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17779s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17780s,@exec_prefix@,$exec_prefix,;t t
17781s,@prefix@,$prefix,;t t
17782s,@program_transform_name@,$program_transform_name,;t t
17783s,@bindir@,$bindir,;t t
17784s,@sbindir@,$sbindir,;t t
17785s,@libexecdir@,$libexecdir,;t t
17786s,@datadir@,$datadir,;t t
17787s,@sysconfdir@,$sysconfdir,;t t
17788s,@sharedstatedir@,$sharedstatedir,;t t
17789s,@localstatedir@,$localstatedir,;t t
17790s,@libdir@,$libdir,;t t
17791s,@includedir@,$includedir,;t t
17792s,@oldincludedir@,$oldincludedir,;t t
17793s,@infodir@,$infodir,;t t
17794s,@mandir@,$mandir,;t t
17795s,@build_alias@,$build_alias,;t t
17796s,@host_alias@,$host_alias,;t t
17797s,@target_alias@,$target_alias,;t t
17798s,@DEFS@,$DEFS,;t t
17799s,@ECHO_C@,$ECHO_C,;t t
17800s,@ECHO_N@,$ECHO_N,;t t
17801s,@ECHO_T@,$ECHO_T,;t t
17802s,@LIBS@,$LIBS,;t t
17803s,@build@,$build,;t t
17804s,@build_cpu@,$build_cpu,;t t
17805s,@build_vendor@,$build_vendor,;t t
17806s,@build_os@,$build_os,;t t
17807s,@host@,$host,;t t
17808s,@host_cpu@,$host_cpu,;t t
17809s,@host_vendor@,$host_vendor,;t t
17810s,@host_os@,$host_os,;t t
17811s,@target@,$target,;t t
17812s,@target_cpu@,$target_cpu,;t t
17813s,@target_vendor@,$target_vendor,;t t
17814s,@target_os@,$target_os,;t t
17815s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17816s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17817s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17818s,@PACKAGE@,$PACKAGE,;t t
17819s,@VERSION@,$VERSION,;t t
17820s,@ACLOCAL@,$ACLOCAL,;t t
17821s,@AUTOCONF@,$AUTOCONF,;t t
17822s,@AUTOMAKE@,$AUTOMAKE,;t t
17823s,@AUTOHEADER@,$AUTOHEADER,;t t
17824s,@MAKEINFO@,$MAKEINFO,;t t
17825s,@AMTAR@,$AMTAR,;t t
17826s,@install_sh@,$install_sh,;t t
17827s,@STRIP@,$STRIP,;t t
17828s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17829s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17830s,@AWK@,$AWK,;t t
17831s,@SET_MAKE@,$SET_MAKE,;t t
17832s,@CONF_FILES@,$CONF_FILES,;t t
17833s,@CC@,$CC,;t t
17834s,@CFLAGS@,$CFLAGS,;t t
17835s,@LDFLAGS@,$LDFLAGS,;t t
17836s,@CPPFLAGS@,$CPPFLAGS,;t t
17837s,@ac_ct_CC@,$ac_ct_CC,;t t
17838s,@EXEEXT@,$EXEEXT,;t t
17839s,@OBJEXT@,$OBJEXT,;t t
17840s,@DEPDIR@,$DEPDIR,;t t
17841s,@am__include@,$am__include,;t t
17842s,@am__quote@,$am__quote,;t t
17843s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17844s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17845s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17846s,@CCDEPMODE@,$CCDEPMODE,;t t
17847s,@CPP@,$CPP,;t t
17848s,@CXX@,$CXX,;t t
17849s,@CXXFLAGS@,$CXXFLAGS,;t t
17850s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17851s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17852s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
17853s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
17854s,@USE_RTTI@,$USE_RTTI,;t t
17855s,@CXXCPP@,$CXXCPP,;t t
17856s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
17857s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
17858s,@REPO@,$REPO,;t t
17859s,@NOREPO@,$NOREPO,;t t
17860s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
17861s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
17862s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
17863s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
17864s,@LN_S@,$LN_S,;t t
17865s,@ECHO@,$ECHO,;t t
17866s,@RANLIB@,$RANLIB,;t t
17867s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17868s,@EGREP@,$EGREP,;t t
17869s,@LIBTOOL@,$LIBTOOL,;t t
17870s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
17871s,@SDL_CONFIG@,$SDL_CONFIG,;t t
17872s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
17873s,@SDL_LIBS@,$SDL_LIBS,;t t
17874s,@USER_INCLUDES@,$USER_INCLUDES,;t t
17875s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
17876s,@all_includes@,$all_includes,;t t
17877s,@all_libraries@,$all_libraries,;t t
17878s,@AUTODIRS@,$AUTODIRS,;t t
17879s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
17880s,@LIBOBJS@,$LIBOBJS,;t t
17881s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17882CEOF
17883
17884_ACEOF
17885
17886  cat >>$CONFIG_STATUS <<\_ACEOF
17887  # Split the substitutions into bite-sized pieces for seds with
17888  # small command number limits, like on Digital OSF/1 and HP-UX.
17889  ac_max_sed_lines=48
17890  ac_sed_frag=1 # Number of current file.
17891  ac_beg=1 # First line for current file.
17892  ac_end=$ac_max_sed_lines # Line after last line for current file.
17893  ac_more_lines=:
17894  ac_sed_cmds=
17895  while $ac_more_lines; do
17896    if test $ac_beg -gt 1; then
17897      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17898    else
17899      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17900    fi
17901    if test ! -s $tmp/subs.frag; then
17902      ac_more_lines=false
17903    else
17904      # The purpose of the label and of the branching condition is to
17905      # speed up the sed processing (if there are no `@' at all, there
17906      # is no need to browse any of the substitutions).
17907      # These are the two extra sed commands mentioned above.
17908      (echo ':t
17909  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17910      if test -z "$ac_sed_cmds"; then
17911  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17912      else
17913  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17914      fi
17915      ac_sed_frag=`expr $ac_sed_frag + 1`
17916      ac_beg=$ac_end
17917      ac_end=`expr $ac_end + $ac_max_sed_lines`
17918    fi
17919  done
17920  if test -z "$ac_sed_cmds"; then
17921    ac_sed_cmds=cat
17922  fi
17923fi # test -n "$CONFIG_FILES"
17924
17925_ACEOF
17926cat >>$CONFIG_STATUS <<\_ACEOF
17927for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17928  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17929  case $ac_file in
17930  - | *:- | *:-:* ) # input from stdin
17931        cat >$tmp/stdin
17932        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17933        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17934  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17935        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17936  * )   ac_file_in=$ac_file.in ;;
17937  esac
17938
17939  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17940  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17941$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17942         X"$ac_file" : 'X\(//\)[^/]' \| \
17943         X"$ac_file" : 'X\(//\)$' \| \
17944         X"$ac_file" : 'X\(/\)' \| \
17945         .     : '\(.\)' 2>/dev/null ||
17946echo X"$ac_file" |
17947    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17948  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17949  	  /^X\(\/\/\)$/{ s//\1/; q; }
17950  	  /^X\(\/\).*/{ s//\1/; q; }
17951  	  s/.*/./; q'`
17952  { if $as_mkdir_p; then
17953    mkdir -p "$ac_dir"
17954  else
17955    as_dir="$ac_dir"
17956    as_dirs=
17957    while test ! -d "$as_dir"; do
17958      as_dirs="$as_dir $as_dirs"
17959      as_dir=`(dirname "$as_dir") 2>/dev/null ||
17960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17961         X"$as_dir" : 'X\(//\)[^/]' \| \
17962         X"$as_dir" : 'X\(//\)$' \| \
17963         X"$as_dir" : 'X\(/\)' \| \
17964         .     : '\(.\)' 2>/dev/null ||
17965echo X"$as_dir" |
17966    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17967  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17968  	  /^X\(\/\/\)$/{ s//\1/; q; }
17969  	  /^X\(\/\).*/{ s//\1/; q; }
17970  	  s/.*/./; q'`
17971    done
17972    test ! -n "$as_dirs" || mkdir $as_dirs
17973  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17974echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17975   { (exit 1); exit 1; }; }; }
17976
17977  ac_builddir=.
17978
17979if test "$ac_dir" != .; then
17980  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17981  # A "../" for each directory in $ac_dir_suffix.
17982  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17983else
17984  ac_dir_suffix= ac_top_builddir=
17985fi
17986
17987case $srcdir in
17988  .)  # No --srcdir option.  We are building in place.
17989    ac_srcdir=.
17990    if test -z "$ac_top_builddir"; then
17991       ac_top_srcdir=.
17992    else
17993       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17994    fi ;;
17995  [\\/]* | ?:[\\/]* )  # Absolute path.
17996    ac_srcdir=$srcdir$ac_dir_suffix;
17997    ac_top_srcdir=$srcdir ;;
17998  *) # Relative path.
17999    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18000    ac_top_srcdir=$ac_top_builddir$srcdir ;;
18001esac
18002# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18003# absolute.
18004ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18005ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18006ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18007ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18008
18009
18010  case $INSTALL in
18011  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18012  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18013  esac
18014
18015  if test x"$ac_file" != x-; then
18016    { echo "$as_me:$LINENO: creating $ac_file" >&5
18017echo "$as_me: creating $ac_file" >&6;}
18018    rm -f "$ac_file"
18019  fi
18020  # Let's still pretend it is `configure' which instantiates (i.e., don't
18021  # use $as_me), people would be surprised to read:
18022  #    /* config.h.  Generated by config.status.  */
18023  if test x"$ac_file" = x-; then
18024    configure_input=
18025  else
18026    configure_input="$ac_file.  "
18027  fi
18028  configure_input=$configure_input"Generated from `echo $ac_file_in |
18029                                     sed 's,.*/,,'` by configure."
18030
18031  # First look for the input files in the build tree, otherwise in the
18032  # src tree.
18033  ac_file_inputs=`IFS=:
18034    for f in $ac_file_in; do
18035      case $f in
18036      -) echo $tmp/stdin ;;
18037      [\\/$]*)
18038         # Absolute (can't be DOS-style, as IFS=:)
18039         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18040echo "$as_me: error: cannot find input file: $f" >&2;}
18041   { (exit 1); exit 1; }; }
18042         echo $f;;
18043      *) # Relative
18044         if test -f "$f"; then
18045           # Build tree
18046           echo $f
18047         elif test -f "$srcdir/$f"; then
18048           # Source tree
18049           echo $srcdir/$f
18050         else
18051           # /dev/null tree
18052           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18053echo "$as_me: error: cannot find input file: $f" >&2;}
18054   { (exit 1); exit 1; }; }
18055         fi;;
18056      esac
18057    done` || { (exit 1); exit 1; }
18058_ACEOF
18059cat >>$CONFIG_STATUS <<_ACEOF
18060  sed "$ac_vpsub
18061$extrasub
18062_ACEOF
18063cat >>$CONFIG_STATUS <<\_ACEOF
18064:t
18065/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18066s,@configure_input@,$configure_input,;t t
18067s,@srcdir@,$ac_srcdir,;t t
18068s,@abs_srcdir@,$ac_abs_srcdir,;t t
18069s,@top_srcdir@,$ac_top_srcdir,;t t
18070s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18071s,@builddir@,$ac_builddir,;t t
18072s,@abs_builddir@,$ac_abs_builddir,;t t
18073s,@top_builddir@,$ac_top_builddir,;t t
18074s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18075s,@INSTALL@,$ac_INSTALL,;t t
18076" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18077  rm -f $tmp/stdin
18078  if test x"$ac_file" != x-; then
18079    mv $tmp/out $ac_file
18080  else
18081    cat $tmp/out
18082    rm -f $tmp/out
18083  fi
18084
18085done
18086_ACEOF
18087cat >>$CONFIG_STATUS <<\_ACEOF
18088
18089#
18090# CONFIG_HEADER section.
18091#
18092
18093# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18094# NAME is the cpp macro being defined and VALUE is the value it is being given.
18095#
18096# ac_d sets the value in "#define NAME VALUE" lines.
18097ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
18098ac_dB='[ 	].*$,\1#\2'
18099ac_dC=' '
18100ac_dD=',;t'
18101# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18102ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
18103ac_uB='$,\1#\2define\3'
18104ac_uC=' '
18105ac_uD=',;t'
18106
18107for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18108  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18109  case $ac_file in
18110  - | *:- | *:-:* ) # input from stdin
18111        cat >$tmp/stdin
18112        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18113        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18114  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18115        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18116  * )   ac_file_in=$ac_file.in ;;
18117  esac
18118
18119  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18120echo "$as_me: creating $ac_file" >&6;}
18121
18122  # First look for the input files in the build tree, otherwise in the
18123  # src tree.
18124  ac_file_inputs=`IFS=:
18125    for f in $ac_file_in; do
18126      case $f in
18127      -) echo $tmp/stdin ;;
18128      [\\/$]*)
18129         # Absolute (can't be DOS-style, as IFS=:)
18130         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18131echo "$as_me: error: cannot find input file: $f" >&2;}
18132   { (exit 1); exit 1; }; }
18133         echo $f;;
18134      *) # Relative
18135         if test -f "$f"; then
18136           # Build tree
18137           echo $f
18138         elif test -f "$srcdir/$f"; then
18139           # Source tree
18140           echo $srcdir/$f
18141         else
18142           # /dev/null tree
18143           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18144echo "$as_me: error: cannot find input file: $f" >&2;}
18145   { (exit 1); exit 1; }; }
18146         fi;;
18147      esac
18148    done` || { (exit 1); exit 1; }
18149  # Remove the trailing spaces.
18150  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
18151
18152_ACEOF
18153
18154# Transform confdefs.h into two sed scripts, `conftest.defines' and
18155# `conftest.undefs', that substitutes the proper values into
18156# config.h.in to produce config.h.  The first handles `#define'
18157# templates, and the second `#undef' templates.
18158# And first: Protect against being on the right side of a sed subst in
18159# config.status.  Protect against being in an unquoted here document
18160# in config.status.
18161rm -f conftest.defines conftest.undefs
18162# Using a here document instead of a string reduces the quoting nightmare.
18163# Putting comments in sed scripts is not portable.
18164#
18165# `end' is used to avoid that the second main sed command (meant for
18166# 0-ary CPP macros) applies to n-ary macro definitions.
18167# See the Autoconf documentation for `clear'.
18168cat >confdef2sed.sed <<\_ACEOF
18169s/[\\&,]/\\&/g
18170s,[\\$`],\\&,g
18171t clear
18172: clear
18173s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18174t end
18175s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18176: end
18177_ACEOF
18178# If some macros were called several times there might be several times
18179# the same #defines, which is useless.  Nevertheless, we may not want to
18180# sort them, since we want the *last* AC-DEFINE to be honored.
18181uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18182sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18183rm -f confdef2sed.sed
18184
18185# This sed command replaces #undef with comments.  This is necessary, for
18186# example, in the case of _POSIX_SOURCE, which is predefined and required
18187# on some systems where configure will not decide to define it.
18188cat >>conftest.undefs <<\_ACEOF
18189s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18190_ACEOF
18191
18192# Break up conftest.defines because some shells have a limit on the size
18193# of here documents, and old seds have small limits too (100 cmds).
18194echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18195echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18196echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18197echo '  :' >>$CONFIG_STATUS
18198rm -f conftest.tail
18199while grep . conftest.defines >/dev/null
18200do
18201  # Write a limited-size here document to $tmp/defines.sed.
18202  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18203  # Speed up: don't consider the non `#define' lines.
18204  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
18205  # Work around the forget-to-reset-the-flag bug.
18206  echo 't clr' >>$CONFIG_STATUS
18207  echo ': clr' >>$CONFIG_STATUS
18208  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18209  echo 'CEOF
18210  sed -f $tmp/defines.sed $tmp/in >$tmp/out
18211  rm -f $tmp/in
18212  mv $tmp/out $tmp/in
18213' >>$CONFIG_STATUS
18214  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18215  rm -f conftest.defines
18216  mv conftest.tail conftest.defines
18217done
18218rm -f conftest.defines
18219echo '  fi # grep' >>$CONFIG_STATUS
18220echo >>$CONFIG_STATUS
18221
18222# Break up conftest.undefs because some shells have a limit on the size
18223# of here documents, and old seds have small limits too (100 cmds).
18224echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18225rm -f conftest.tail
18226while grep . conftest.undefs >/dev/null
18227do
18228  # Write a limited-size here document to $tmp/undefs.sed.
18229  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18230  # Speed up: don't consider the non `#undef'
18231  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
18232  # Work around the forget-to-reset-the-flag bug.
18233  echo 't clr' >>$CONFIG_STATUS
18234  echo ': clr' >>$CONFIG_STATUS
18235  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18236  echo 'CEOF
18237  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18238  rm -f $tmp/in
18239  mv $tmp/out $tmp/in
18240' >>$CONFIG_STATUS
18241  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18242  rm -f conftest.undefs
18243  mv conftest.tail conftest.undefs
18244done
18245rm -f conftest.undefs
18246
18247cat >>$CONFIG_STATUS <<\_ACEOF
18248  # Let's still pretend it is `configure' which instantiates (i.e., don't
18249  # use $as_me), people would be surprised to read:
18250  #    /* config.h.  Generated by config.status.  */
18251  if test x"$ac_file" = x-; then
18252    echo "/* Generated by configure.  */" >$tmp/config.h
18253  else
18254    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18255  fi
18256  cat $tmp/in >>$tmp/config.h
18257  rm -f $tmp/in
18258  if test x"$ac_file" != x-; then
18259    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18260      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18261echo "$as_me: $ac_file is unchanged" >&6;}
18262    else
18263      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18264$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18265         X"$ac_file" : 'X\(//\)[^/]' \| \
18266         X"$ac_file" : 'X\(//\)$' \| \
18267         X"$ac_file" : 'X\(/\)' \| \
18268         .     : '\(.\)' 2>/dev/null ||
18269echo X"$ac_file" |
18270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18271  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18272  	  /^X\(\/\/\)$/{ s//\1/; q; }
18273  	  /^X\(\/\).*/{ s//\1/; q; }
18274  	  s/.*/./; q'`
18275      { if $as_mkdir_p; then
18276    mkdir -p "$ac_dir"
18277  else
18278    as_dir="$ac_dir"
18279    as_dirs=
18280    while test ! -d "$as_dir"; do
18281      as_dirs="$as_dir $as_dirs"
18282      as_dir=`(dirname "$as_dir") 2>/dev/null ||
18283$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18284         X"$as_dir" : 'X\(//\)[^/]' \| \
18285         X"$as_dir" : 'X\(//\)$' \| \
18286         X"$as_dir" : 'X\(/\)' \| \
18287         .     : '\(.\)' 2>/dev/null ||
18288echo X"$as_dir" |
18289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18290  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18291  	  /^X\(\/\/\)$/{ s//\1/; q; }
18292  	  /^X\(\/\).*/{ s//\1/; q; }
18293  	  s/.*/./; q'`
18294    done
18295    test ! -n "$as_dirs" || mkdir $as_dirs
18296  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18297echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18298   { (exit 1); exit 1; }; }; }
18299
18300      rm -f $ac_file
18301      mv $tmp/config.h $ac_file
18302    fi
18303  else
18304    cat $tmp/config.h
18305    rm -f $tmp/config.h
18306  fi
18307  # Run the commands associated with the file.
18308  case $ac_file in
18309    config.h ) # update the timestamp
18310echo 'timestamp for config.h' >"./stamp-h1"
18311 ;;
18312  esac
18313done
18314_ACEOF
18315cat >>$CONFIG_STATUS <<\_ACEOF
18316
18317#
18318# CONFIG_COMMANDS section.
18319#
18320for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18321  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18322  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18323  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18324$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18325         X"$ac_dest" : 'X\(//\)[^/]' \| \
18326         X"$ac_dest" : 'X\(//\)$' \| \
18327         X"$ac_dest" : 'X\(/\)' \| \
18328         .     : '\(.\)' 2>/dev/null ||
18329echo X"$ac_dest" |
18330    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18331  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18332  	  /^X\(\/\/\)$/{ s//\1/; q; }
18333  	  /^X\(\/\).*/{ s//\1/; q; }
18334  	  s/.*/./; q'`
18335  ac_builddir=.
18336
18337if test "$ac_dir" != .; then
18338  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18339  # A "../" for each directory in $ac_dir_suffix.
18340  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18341else
18342  ac_dir_suffix= ac_top_builddir=
18343fi
18344
18345case $srcdir in
18346  .)  # No --srcdir option.  We are building in place.
18347    ac_srcdir=.
18348    if test -z "$ac_top_builddir"; then
18349       ac_top_srcdir=.
18350    else
18351       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18352    fi ;;
18353  [\\/]* | ?:[\\/]* )  # Absolute path.
18354    ac_srcdir=$srcdir$ac_dir_suffix;
18355    ac_top_srcdir=$srcdir ;;
18356  *) # Relative path.
18357    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18358    ac_top_srcdir=$ac_top_builddir$srcdir ;;
18359esac
18360# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18361# absolute.
18362ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18363ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18364ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18365ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18366
18367
18368  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18369echo "$as_me: executing $ac_dest commands" >&6;}
18370  case $ac_dest in
18371    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18372  # Strip MF so we end up with the name of the file.
18373  mf=`echo "$mf" | sed -e 's/:.*$//'`
18374  # Check whether this is an Automake generated Makefile or not.
18375  # We used to match only the files named `Makefile.in', but
18376  # some people rename them; so instead we look at the file content.
18377  # Grep'ing the first line is not enough: some people post-process
18378  # each Makefile.in and add a new line on top of each file to say so.
18379  # So let's grep whole file.
18380  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18381    dirpart=`(dirname "$mf") 2>/dev/null ||
18382$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18383         X"$mf" : 'X\(//\)[^/]' \| \
18384         X"$mf" : 'X\(//\)$' \| \
18385         X"$mf" : 'X\(/\)' \| \
18386         .     : '\(.\)' 2>/dev/null ||
18387echo X"$mf" |
18388    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18389  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18390  	  /^X\(\/\/\)$/{ s//\1/; q; }
18391  	  /^X\(\/\).*/{ s//\1/; q; }
18392  	  s/.*/./; q'`
18393  else
18394    continue
18395  fi
18396  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18397  # Extract the definition of DEP_FILES from the Makefile without
18398  # running `make'.
18399  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18400  test -z "$DEPDIR" && continue
18401  # When using ansi2knr, U may be empty or an underscore; expand it
18402  U=`sed -n -e '/^U = / s///p' < "$mf"`
18403  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18404  # We invoke sed twice because it is the simplest approach to
18405  # changing $(DEPDIR) to its actual value in the expansion.
18406  for file in `sed -n -e '
18407    /^DEP_FILES = .*\\\\$/ {
18408      s/^DEP_FILES = //
18409      :loop
18410	s/\\\\$//
18411	p
18412	n
18413	/\\\\$/ b loop
18414      p
18415    }
18416    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18417       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18418    # Make sure the directory exists.
18419    test -f "$dirpart/$file" && continue
18420    fdir=`(dirname "$file") 2>/dev/null ||
18421$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18422         X"$file" : 'X\(//\)[^/]' \| \
18423         X"$file" : 'X\(//\)$' \| \
18424         X"$file" : 'X\(/\)' \| \
18425         .     : '\(.\)' 2>/dev/null ||
18426echo X"$file" |
18427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18428  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18429  	  /^X\(\/\/\)$/{ s//\1/; q; }
18430  	  /^X\(\/\).*/{ s//\1/; q; }
18431  	  s/.*/./; q'`
18432    { if $as_mkdir_p; then
18433    mkdir -p $dirpart/$fdir
18434  else
18435    as_dir=$dirpart/$fdir
18436    as_dirs=
18437    while test ! -d "$as_dir"; do
18438      as_dirs="$as_dir $as_dirs"
18439      as_dir=`(dirname "$as_dir") 2>/dev/null ||
18440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18441         X"$as_dir" : 'X\(//\)[^/]' \| \
18442         X"$as_dir" : 'X\(//\)$' \| \
18443         X"$as_dir" : 'X\(/\)' \| \
18444         .     : '\(.\)' 2>/dev/null ||
18445echo X"$as_dir" |
18446    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18447  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18448  	  /^X\(\/\/\)$/{ s//\1/; q; }
18449  	  /^X\(\/\).*/{ s//\1/; q; }
18450  	  s/.*/./; q'`
18451    done
18452    test ! -n "$as_dirs" || mkdir $as_dirs
18453  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18454echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18455   { (exit 1); exit 1; }; }; }
18456
18457    # echo "creating $dirpart/$file"
18458    echo '# dummy' > "$dirpart/$file"
18459  done
18460done
18461 ;;
18462  esac
18463done
18464_ACEOF
18465
18466cat >>$CONFIG_STATUS <<\_ACEOF
18467
18468{ (exit 0); exit 0; }
18469_ACEOF
18470chmod +x $CONFIG_STATUS
18471ac_clean_files=$ac_clean_files_save
18472
18473
18474# configure is writing to config.log, and then calls config.status.
18475# config.status does its own redirection, appending to config.log.
18476# Unfortunately, on DOS this fails, as config.log is still kept open
18477# by configure, so config.status won't be able to write to it; its
18478# output is simply discarded.  So we exec the FD to /dev/null,
18479# effectively closing config.log, so it can be properly (re)opened and
18480# appended to by config.status.  When coming back to configure, we
18481# need to make the FD available again.
18482if test "$no_create" != yes; then
18483  ac_cs_success=:
18484  ac_config_status_args=
18485  test "$silent" = yes &&
18486    ac_config_status_args="$ac_config_status_args --quiet"
18487  exec 5>/dev/null
18488  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18489  exec 5>>config.log
18490  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18491  # would make configure fail if this is the last instruction.
18492  $ac_cs_success || { (exit 1); exit 1; }
18493fi
18494
18495if test "$all_tests" = "bad"; then
18496  if test ! "$cache_file" = "/dev/null"; then
18497    echo ""
18498    echo "Please remove the file $cache_file after changing your setup"
18499    echo "so that configure will find the changes next time."
18500    echo ""
18501  fi
18502else
18503  echo ""
18504  echo "Good - your configure finished. Start make now"
18505  echo ""
18506fi
18507