Yannick Shpilka , cleaned up
[kgraphinterface.git] / configure
blob798a39ad88735e53fe37c568dbddc9bc60972830
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
276 exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
294 done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 exec 6>&1
406 # Initializations.
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
428 ac_unique_file="acinclude.m4"
429 ac_default_prefix=${KDEDIR:-the kde prefix}
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 # include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 # include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar KDECONFIG kde_libs_prefix kde_libs_htmldir CONF_FILES CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE WOVERLOADED_VIRTUAL HAVE_GCC_VISIBILITY unsermake_enable_pch_TRUE unsermake_enable_pch_FALSE USE_EXCEPTIONS USE_RTTI CXXCPP NOOPT_CXXFLAGS NOOPT_CFLAGS ENABLE_PERMISSIVE_FLAG LDFLAGS_AS_NEEDED LDFLAGS_NEW_DTAGS KDE_USE_FINAL_TRUE KDE_USE_FINAL_FALSE KDE_USE_CLOSURE_TRUE KDE_USE_CLOSURE_FALSE KDE_NO_UNDEFINED KDE_USE_NMCHECK_TRUE KDE_USE_NMCHECK_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB F77 FFLAGS ac_ct_F77 LIBTOOL KDE_PLUGIN KDE_CHECK_PLUGIN MSGFMT GMSGFMT XGETTEXT LIBUTIL LIBCOMPAT LIBCRYPT LIBRESOLV LIB_POLL FRAMEWORK_COREAUDIO LIBSOCKET X_EXTRA_LIBS LIBUCB LIBDL KDE_USE_FPIE KDE_USE_PIE include_x11_TRUE include_x11_FALSE X_PRE_LIBS LIB_X11 LIB_XRENDER LIBSM X_INCLUDES X_LDFLAGS x_includes x_libraries QTE_NORTTI LIB_XEXT LIBPTHREAD USE_THREADS KDE_MT_LDFLAGS KDE_MT_LIBS USER_INCLUDES USER_LDFLAGS LIBZ LIBPNG LIBJPEG qt_libraries qt_includes QT_INCLUDES QT_LDFLAGS PERL MOC UIC UIC_TR LIB_QT LIB_QPE kde_qtver KDE_EXTRA_RPATH KDE_RPATH X_RPATH kde_libraries kde_includes KDE_LDFLAGS KDE_INCLUDES all_includes all_libraries AUTODIRS include_ARTS_TRUE include_ARTS_FALSE MAKEKDEWIDGETS KCONFIG_COMPILER KCFG_DEPENDENCIES DCOPIDLNG DCOPIDL DCOPIDL2CPP DCOP_DEPENDENCIES MCOPIDL ARTSCCONFIG MEINPROC KDE_XSL_STYLESHEET XMLLINT kde_htmldir kde_appsdir kde_icondir kde_sounddir kde_datadir kde_locale kde_confdir kde_kcfgdir kde_mimedir kde_wallpaperdir kde_bindir xdg_appsdir xdg_menudir xdg_directorydir kde_templatesdir kde_servicesdir kde_servicetypesdir kde_moduledir kdeinitdir kde_styledir kde_widgetdir LIB_KDED LIB_KDECORE LIB_KDEUI LIB_KIO LIB_KJS LIB_SMB LIB_KAB LIB_KABC LIB_KHTML LIB_KSPELL LIB_KPARTS LIB_KDEPRINT LIB_KUTILS LIB_KDEPIM LIB_KIMPROXY LIB_KNEWSTUFF LIB_KDNSSD LIB_KUNITTEST LIB_KSYCOCA LIB_KFILE LIB_KFM TOPSUBDIRS LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
508 ac_prev=
509 for ac_option
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
522 case $ac_option in
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
541 --config-cache | -C)
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 esac
805 done
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822 done
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834 done
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
880 else
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
955 cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
965 Configuration:
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
976 _ACEOF
978 cat <<_ACEOF
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
981 [$ac_default_prefix]
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
983 [PREFIX]
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1005 _ACEOF
1007 cat <<\_ACEOF
1009 Program names:
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1014 System types:
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 --target=TARGET configure for building compilers for TARGET [HOST]
1018 _ACEOF
1021 if test -n "$ac_init_help"; then
1023 cat <<\_ACEOF
1025 Optional Features:
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028 --disable-fast-perl disable fast Makefile generation (needs perl)
1029 --enable-debug=ARG enables debug symbols (yes|no|full) default=no
1030 --disable-debug disables debug output and debug symbols default=no
1031 --enable-strict compiles with strict compiler options (may not
1032 work!)
1033 --disable-warnings disables compilation with -Wall and similar
1034 --enable-profile creates profiling infos default=no
1035 --disable-dependency-tracking speeds up one-time build
1036 --enable-dependency-tracking do not reject slow dependency extractors
1037 --enable-pch enables precompiled header support (currently only
1038 KCC or gcc >=3.4+unsermake) default=no
1039 --enable-coverage use gcc coverage testing
1040 --enable-new-ldflags enable the new linker flags
1041 --enable-final build size optimized apps (experimental - needs lots
1042 of memory)
1043 --enable-closure delay template instantiation
1044 --enable-nmcheck enable automatic namespace cleanness check
1045 --enable-shared[=PKGS]
1046 build shared libraries [default=yes]
1047 --enable-static[=PKGS]
1048 build static libraries [default=no]
1049 --enable-libsuffix /lib directory suffix (64,32,none,auto=default)
1050 --enable-fast-install[=PKGS]
1051 optimize for fast installation [default=yes]
1052 --disable-libtool-lock avoid locking (might break parallel builds)
1053 --enable-pie platform supports PIE linking default=detect
1054 --enable-embedded link to Qt-embedded, don't use X
1055 --enable-qtopia link to Qt-embedded, link to the Qtopia Environment
1056 --enable-mac link to Qt/Mac (don't use X)
1057 --disable-mt link to non-threaded Qt (deprecated)
1058 --disable-threading disables threading even if libpthread found
1059 --disable-rpath do not use the rpath feature of ld
1060 --disable-path-check don't try to find out, where to install
1062 Optional Packages:
1063 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1064 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1065 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1066 --with-pic try to use only PIC/non-PIC objects [default=use
1067 both]
1068 --with-tags[=TAGS]
1069 include additional configurations [automatic]
1070 --with-extra-includes=DIR
1071 adds non standard include paths
1072 --with-extra-libs=DIR adds non standard library paths
1073 --with-qt-dir=DIR where the root of Qt is installed
1074 --with-qt-includes=DIR where the Qt includes are.
1075 --with-qt-libraries=DIR where the Qt library is installed.
1076 --without-arts build without aRts default=no
1078 Some influential environment variables:
1079 CC C compiler command
1080 CFLAGS C compiler flags
1081 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1082 nonstandard directory <lib dir>
1083 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1084 headers in a nonstandard directory <include dir>
1085 CPP C preprocessor
1086 CXX C++ compiler command
1087 CXXFLAGS C++ compiler flags
1088 CXXCPP C++ preprocessor
1089 F77 Fortran 77 compiler command
1090 FFLAGS Fortran 77 compiler flags
1092 Use these variables to override the choices made by `configure' or to help
1093 it to find libraries and programs with nonstandard names/locations.
1095 _ACEOF
1098 if test "$ac_init_help" = "recursive"; then
1099 # If there are subdirs, report their specific --help.
1100 ac_popdir=`pwd`
1101 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1102 test -d $ac_dir || continue
1103 ac_builddir=.
1105 if test "$ac_dir" != .; then
1106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1107 # A "../" for each directory in $ac_dir_suffix.
1108 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1109 else
1110 ac_dir_suffix= ac_top_builddir=
1113 case $srcdir in
1114 .) # No --srcdir option. We are building in place.
1115 ac_srcdir=.
1116 if test -z "$ac_top_builddir"; then
1117 ac_top_srcdir=.
1118 else
1119 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1120 fi ;;
1121 [\\/]* | ?:[\\/]* ) # Absolute path.
1122 ac_srcdir=$srcdir$ac_dir_suffix;
1123 ac_top_srcdir=$srcdir ;;
1124 *) # Relative path.
1125 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1126 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1127 esac
1129 # Do not use `cd foo && pwd` to compute absolute paths, because
1130 # the directories may not exist.
1131 case `pwd` in
1132 .) ac_abs_builddir="$ac_dir";;
1134 case "$ac_dir" in
1135 .) ac_abs_builddir=`pwd`;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1137 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1138 esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1143 case ${ac_top_builddir}. in
1144 .) ac_abs_top_builddir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1146 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1147 esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_srcdir=$ac_srcdir;;
1152 case $ac_srcdir in
1153 .) ac_abs_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1155 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1156 esac;;
1157 esac
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1161 case $ac_top_srcdir in
1162 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1164 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1165 esac;;
1166 esac
1168 cd $ac_dir
1169 # Check for guested configure; otherwise get Cygnus style configure.
1170 if test -f $ac_srcdir/configure.gnu; then
1171 echo
1172 $SHELL $ac_srcdir/configure.gnu --help=recursive
1173 elif test -f $ac_srcdir/configure; then
1174 echo
1175 $SHELL $ac_srcdir/configure --help=recursive
1176 elif test -f $ac_srcdir/configure.ac ||
1177 test -f $ac_srcdir/configure.in; then
1178 echo
1179 $ac_configure --help
1180 else
1181 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1183 cd $ac_popdir
1184 done
1187 test -n "$ac_init_help" && exit 0
1188 if $ac_init_version; then
1189 cat <<\_ACEOF
1191 Copyright (C) 2003 Free Software Foundation, Inc.
1192 This configure script is free software; the Free Software Foundation
1193 gives unlimited permission to copy, distribute and modify it.
1194 _ACEOF
1195 exit 0
1197 exec 5>config.log
1198 cat >&5 <<_ACEOF
1199 This file contains any messages produced by compilers while
1200 running configure, to aid debugging if configure makes a mistake.
1202 It was created by $as_me, which was
1203 generated by GNU Autoconf 2.59. Invocation command line was
1205 $ $0 $@
1207 _ACEOF
1209 cat <<_ASUNAME
1210 ## --------- ##
1211 ## Platform. ##
1212 ## --------- ##
1214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1215 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1216 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1217 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1218 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1221 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1223 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1224 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1226 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1227 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1228 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1229 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1231 _ASUNAME
1233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1234 for as_dir in $PATH
1236 IFS=$as_save_IFS
1237 test -z "$as_dir" && as_dir=.
1238 echo "PATH: $as_dir"
1239 done
1241 } >&5
1243 cat >&5 <<_ACEOF
1246 ## ----------- ##
1247 ## Core tests. ##
1248 ## ----------- ##
1250 _ACEOF
1253 # Keep a trace of the command line.
1254 # Strip out --no-create and --no-recursion so they do not pile up.
1255 # Strip out --silent because we don't want to record it for future runs.
1256 # Also quote any args containing shell meta-characters.
1257 # Make two passes to allow for proper duplicate-argument suppression.
1258 ac_configure_args=
1259 ac_configure_args0=
1260 ac_configure_args1=
1261 ac_sep=
1262 ac_must_keep_next=false
1263 for ac_pass in 1 2
1265 for ac_arg
1267 case $ac_arg in
1268 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 continue ;;
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 esac
1275 case $ac_pass in
1276 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1278 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1279 if test $ac_must_keep_next = true; then
1280 ac_must_keep_next=false # Got value, back to normal.
1281 else
1282 case $ac_arg in
1283 *=* | --config-cache | -C | -disable-* | --disable-* \
1284 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1285 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1286 | -with-* | --with-* | -without-* | --without-* | --x)
1287 case "$ac_configure_args0 " in
1288 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1289 esac
1291 -* ) ac_must_keep_next=true ;;
1292 esac
1294 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1295 # Get rid of the leading space.
1296 ac_sep=" "
1298 esac
1299 done
1300 done
1301 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1302 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1304 # When interrupted or exit'd, cleanup temporary files, and complete
1305 # config.log. We remove comments because anyway the quotes in there
1306 # would cause problems or look ugly.
1307 # WARNING: Be sure not to use single quotes in there, as some shells,
1308 # such as our DU 5.0 friend, will then `close' the trap.
1309 trap 'exit_status=$?
1310 # Save into config.log some information that might help in debugging.
1312 echo
1314 cat <<\_ASBOX
1315 ## ---------------- ##
1316 ## Cache variables. ##
1317 ## ---------------- ##
1318 _ASBOX
1319 echo
1320 # The following way of writing the cache mishandles newlines in values,
1322 (set) 2>&1 |
1323 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1324 *ac_space=\ *)
1325 sed -n \
1326 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1327 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1330 sed -n \
1331 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1333 esac;
1335 echo
1337 cat <<\_ASBOX
1338 ## ----------------- ##
1339 ## Output variables. ##
1340 ## ----------------- ##
1341 _ASBOX
1342 echo
1343 for ac_var in $ac_subst_vars
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1347 done | sort
1348 echo
1350 if test -n "$ac_subst_files"; then
1351 cat <<\_ASBOX
1352 ## ------------- ##
1353 ## Output files. ##
1354 ## ------------- ##
1355 _ASBOX
1356 echo
1357 for ac_var in $ac_subst_files
1359 eval ac_val=$`echo $ac_var`
1360 echo "$ac_var='"'"'$ac_val'"'"'"
1361 done | sort
1362 echo
1365 if test -s confdefs.h; then
1366 cat <<\_ASBOX
1367 ## ----------- ##
1368 ## confdefs.h. ##
1369 ## ----------- ##
1370 _ASBOX
1371 echo
1372 sed "/^$/d" confdefs.h | sort
1373 echo
1375 test "$ac_signal" != 0 &&
1376 echo "$as_me: caught signal $ac_signal"
1377 echo "$as_me: exit $exit_status"
1378 } >&5
1379 rm -f core *.core &&
1380 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1381 exit $exit_status
1383 for ac_signal in 1 2 13 15; do
1384 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1385 done
1386 ac_signal=0
1388 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1389 rm -rf conftest* confdefs.h
1390 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1391 echo >confdefs.h
1393 # Predefined preprocessor variables.
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_NAME "$PACKAGE_NAME"
1397 _ACEOF
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1402 _ACEOF
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1407 _ACEOF
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_STRING "$PACKAGE_STRING"
1412 _ACEOF
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1417 _ACEOF
1420 # Let the site file select an alternate cache file if it wants to.
1421 # Prefer explicitly selected file to automatically selected ones.
1422 if test -z "$CONFIG_SITE"; then
1423 if test "x$prefix" != xNONE; then
1424 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1425 else
1426 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1429 for ac_site_file in $CONFIG_SITE; do
1430 if test -r "$ac_site_file"; then
1431 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1432 echo "$as_me: loading site script $ac_site_file" >&6;}
1433 sed 's/^/| /' "$ac_site_file" >&5
1434 . "$ac_site_file"
1436 done
1438 if test -r "$cache_file"; then
1439 # Some versions of bash will fail to source /dev/null (special
1440 # files actually), so we avoid doing that.
1441 if test -f "$cache_file"; then
1442 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1443 echo "$as_me: loading cache $cache_file" >&6;}
1444 case $cache_file in
1445 [\\/]* | ?:[\\/]* ) . $cache_file;;
1446 *) . ./$cache_file;;
1447 esac
1449 else
1450 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1451 echo "$as_me: creating cache $cache_file" >&6;}
1452 >$cache_file
1455 # Check that the precious variables saved in the cache have kept the same
1456 # value.
1457 ac_cache_corrupted=false
1458 for ac_var in `(set) 2>&1 |
1459 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1460 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1461 eval ac_new_set=\$ac_env_${ac_var}_set
1462 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1463 eval ac_new_val="\$ac_env_${ac_var}_value"
1464 case $ac_old_set,$ac_new_set in
1465 set,)
1466 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1467 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1468 ac_cache_corrupted=: ;;
1469 ,set)
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1473 ,);;
1475 if test "x$ac_old_val" != "x$ac_new_val"; then
1476 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1477 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1478 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1479 echo "$as_me: former value: $ac_old_val" >&2;}
1480 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1481 echo "$as_me: current value: $ac_new_val" >&2;}
1482 ac_cache_corrupted=:
1483 fi;;
1484 esac
1485 # Pass precious variables to config.status.
1486 if test "$ac_new_set" = set; then
1487 case $ac_new_val in
1488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1489 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1490 *) ac_arg=$ac_var=$ac_new_val ;;
1491 esac
1492 case " $ac_configure_args " in
1493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1494 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1495 esac
1497 done
1498 if $ac_cache_corrupted; then
1499 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1500 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1501 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1502 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1503 { (exit 1); exit 1; }; }
1506 ac_ext=c
1507 ac_cpp='$CPP $CPPFLAGS'
1508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1530 ac_aux_dir=
1531 for ac_dir in admin $srcdir/admin; do
1532 if test -f $ac_dir/install-sh; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/install-sh -c"
1535 break
1536 elif test -f $ac_dir/install.sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install.sh -c"
1539 break
1540 elif test -f $ac_dir/shtool; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/shtool install -c"
1543 break
1545 done
1546 if test -z "$ac_aux_dir"; then
1547 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&5
1548 echo "$as_me: error: cannot find install-sh or install.sh in admin $srcdir/admin" >&2;}
1549 { (exit 1); exit 1; }; }
1551 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1552 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1553 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556 unset CDPATH
1558 # Make sure we can run config.sub.
1559 $ac_config_sub sun4 >/dev/null 2>&1 ||
1560 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1561 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1562 { (exit 1); exit 1; }; }
1564 echo "$as_me:$LINENO: checking build system type" >&5
1565 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1566 if test "${ac_cv_build+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569 ac_cv_build_alias=$build_alias
1570 test -z "$ac_cv_build_alias" &&
1571 ac_cv_build_alias=`$ac_config_guess`
1572 test -z "$ac_cv_build_alias" &&
1573 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1574 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1575 { (exit 1); exit 1; }; }
1576 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1578 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1582 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1583 echo "${ECHO_T}$ac_cv_build" >&6
1584 build=$ac_cv_build
1585 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590 echo "$as_me:$LINENO: checking host system type" >&5
1591 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1592 if test "${ac_cv_host+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 else
1595 ac_cv_host_alias=$host_alias
1596 test -z "$ac_cv_host_alias" &&
1597 ac_cv_host_alias=$ac_cv_build_alias
1598 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1599 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1600 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1601 { (exit 1); exit 1; }; }
1604 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1605 echo "${ECHO_T}$ac_cv_host" >&6
1606 host=$ac_cv_host
1607 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1608 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1609 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612 echo "$as_me:$LINENO: checking target system type" >&5
1613 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1614 if test "${ac_cv_target+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617 ac_cv_target_alias=$target_alias
1618 test "x$ac_cv_target_alias" = "x" &&
1619 ac_cv_target_alias=$ac_cv_host_alias
1620 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1622 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1623 { (exit 1); exit 1; }; }
1626 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1627 echo "${ECHO_T}$ac_cv_target" >&6
1628 target=$ac_cv_target
1629 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634 # The aliases save the names the user supplied, while $host etc.
1635 # will get canonicalized.
1636 test -n "$target_alias" &&
1637 test "$program_prefix$program_suffix$program_transform_name" = \
1638 NONENONEs,x,x, &&
1639 program_prefix=${target_alias}-
1640 test "$program_prefix" != NONE &&
1641 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1642 # Use a double $ so make ignores it.
1643 test "$program_suffix" != NONE &&
1644 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1645 # Double any \ or $. echo might interpret backslashes.
1646 # By default was `s,x,x', remove it if useless.
1647 cat <<\_ACEOF >conftest.sed
1648 s/[\\$]/&&/g;s/;s,x,x,$//
1649 _ACEOF
1650 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1651 rm conftest.sed
1654 am__api_version="1.9"
1657 test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
1658 test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
1659 test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
1660 # Find a good install program. We prefer a C program (faster),
1661 # so one script is as good as another. But avoid the broken or
1662 # incompatible versions:
1663 # SysV /etc/install, /usr/sbin/install
1664 # SunOS /usr/etc/install
1665 # IRIX /sbin/install
1666 # AIX /bin/install
1667 # AmigaOS /C/install, which installs bootblocks on floppy discs
1668 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1669 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1670 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1671 # OS/2's system install, which has a completely different semantic
1672 # ./install, which can be erroneously created by make from ./install.sh.
1673 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1674 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1675 if test -z "$INSTALL"; then
1676 if test "${ac_cv_path_install+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 # Account for people who put trailing slashes in PATH elements.
1685 case $as_dir/ in
1686 ./ | .// | /cC/* | \
1687 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1688 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1689 /usr/ucb/* ) ;;
1691 # OSF1 and SCO ODT 3.0 have their own names for install.
1692 # Don't use installbsd from OSF since it installs stuff as root
1693 # by default.
1694 for ac_prog in ginstall scoinst install; do
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1697 if test $ac_prog = install &&
1698 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1699 # AIX install. It has an incompatible calling convention.
1701 elif test $ac_prog = install &&
1702 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1703 # program-specific install script used by HP pwplus--don't use.
1705 else
1706 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1707 break 3
1710 done
1711 done
1713 esac
1714 done
1718 if test "${ac_cv_path_install+set}" = set; then
1719 INSTALL=$ac_cv_path_install
1720 else
1721 # As a last resort, use the slow shell script. We don't cache a
1722 # path for INSTALL within a source directory, because that will
1723 # break other packages using the cache if that directory is
1724 # removed, or if the path is relative.
1725 INSTALL=$ac_install_sh
1728 echo "$as_me:$LINENO: result: $INSTALL" >&5
1729 echo "${ECHO_T}$INSTALL" >&6
1731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1732 # It thinks the first close brace ends the variable substitution.
1733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1740 if test -z "$kde_save_INSTALL_given" ; then
1741 # OK, user hasn't given any INSTALL, autoconf found one for us
1742 # now we test, if it supports the -p flag
1743 echo "$as_me:$LINENO: checking for -p flag to install" >&5
1744 echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6
1745 rm -f confinst.$$.* > /dev/null 2>&1
1746 echo "Testtest" > confinst.$$.orig
1747 ac_res=no
1748 if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
1749 if test -f confinst.$$.new ; then
1750 # OK, -p seems to do no harm to install
1751 INSTALL="${INSTALL} -p"
1752 ac_res=yes
1755 rm -f confinst.$$.*
1756 echo "$as_me:$LINENO: result: $ac_res" >&5
1757 echo "${ECHO_T}$ac_res" >&6
1760 if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
1761 INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
1763 if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
1764 INSTALL_SCRIPT='${INSTALL}'
1767 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1768 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1769 # Just in case
1770 sleep 1
1771 echo timestamp > conftest.file
1772 # Do `set' in a subshell so we don't clobber the current shell's
1773 # arguments. Must try -L first in case configure is actually a
1774 # symlink; some systems play weird games with the mod time of symlinks
1775 # (eg FreeBSD returns the mod time of the symlink's containing
1776 # directory).
1777 if (
1778 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1779 if test "$*" = "X"; then
1780 # -L didn't work.
1781 set X `ls -t $srcdir/configure conftest.file`
1783 rm -f conftest.file
1784 if test "$*" != "X $srcdir/configure conftest.file" \
1785 && test "$*" != "X conftest.file $srcdir/configure"; then
1787 # If neither matched, then we have a broken ls. This can happen
1788 # if, for instance, CONFIG_SHELL is bash and it inherits a
1789 # broken ls alias from the environment. This has actually
1790 # happened. Such a system could not be considered "sane".
1791 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1792 alias in your environment" >&5
1793 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1794 alias in your environment" >&2;}
1795 { (exit 1); exit 1; }; }
1798 test "$2" = conftest.file
1800 then
1801 # Ok.
1803 else
1804 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1805 Check your system clock" >&5
1806 echo "$as_me: error: newly created file is older than distributed files!
1807 Check your system clock" >&2;}
1808 { (exit 1); exit 1; }; }
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812 # expand $ac_aux_dir to an absolute path
1813 am_aux_dir=`cd $ac_aux_dir && pwd`
1815 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1816 # Use eval to expand $SHELL
1817 if eval "$MISSING --run true"; then
1818 am_missing_run="$MISSING --run "
1819 else
1820 am_missing_run=
1821 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1822 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1825 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1826 # We used to keeping the `.' as first argument, in order to
1827 # allow $(mkdir_p) to be used without argument. As in
1828 # $(mkdir_p) $(somedir)
1829 # where $(somedir) is conditionally defined. However this is wrong
1830 # for two reasons:
1831 # 1. if the package is installed by a user who cannot write `.'
1832 # make install will fail,
1833 # 2. the above comment should most certainly read
1834 # $(mkdir_p) $(DESTDIR)$(somedir)
1835 # so it does not work when $(somedir) is undefined and
1836 # $(DESTDIR) is not.
1837 # To support the latter case, we have to write
1838 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1839 # so the `.' trick is pointless.
1840 mkdir_p='mkdir -p --'
1841 else
1842 # On NextStep and OpenStep, the `mkdir' command does not
1843 # recognize any option. It will interpret all options as
1844 # directories to create, and then abort because `.' already
1845 # exists.
1846 for d in ./-p ./--version;
1848 test -d $d && rmdir $d
1849 done
1850 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1851 if test -f "$ac_aux_dir/mkinstalldirs"; then
1852 mkdir_p='$(mkinstalldirs)'
1853 else
1854 mkdir_p='$(install_sh) -d'
1858 for ac_prog in gawk mawk nawk awk
1860 # Extract the first word of "$ac_prog", so it can be a program name with args.
1861 set dummy $ac_prog; ac_word=$2
1862 echo "$as_me:$LINENO: checking for $ac_word" >&5
1863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1864 if test "${ac_cv_prog_AWK+set}" = set; then
1865 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 else
1867 if test -n "$AWK"; then
1868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1869 else
1870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 for as_dir in $PATH
1873 IFS=$as_save_IFS
1874 test -z "$as_dir" && as_dir=.
1875 for ac_exec_ext in '' $ac_executable_extensions; do
1876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1877 ac_cv_prog_AWK="$ac_prog"
1878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 break 2
1881 done
1882 done
1886 AWK=$ac_cv_prog_AWK
1887 if test -n "$AWK"; then
1888 echo "$as_me:$LINENO: result: $AWK" >&5
1889 echo "${ECHO_T}$AWK" >&6
1890 else
1891 echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1895 test -n "$AWK" && break
1896 done
1898 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1899 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1900 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1901 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904 cat >conftest.make <<\_ACEOF
1905 all:
1906 @echo 'ac_maketemp="$(MAKE)"'
1907 _ACEOF
1908 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1909 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1910 if test -n "$ac_maketemp"; then
1911 eval ac_cv_prog_make_${ac_make}_set=yes
1912 else
1913 eval ac_cv_prog_make_${ac_make}_set=no
1915 rm -f conftest.make
1917 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1918 echo "$as_me:$LINENO: result: yes" >&5
1919 echo "${ECHO_T}yes" >&6
1920 SET_MAKE=
1921 else
1922 echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1924 SET_MAKE="MAKE=${MAKE-make}"
1927 rm -rf .tst 2>/dev/null
1928 mkdir .tst 2>/dev/null
1929 if test -d .tst; then
1930 am__leading_dot=.
1931 else
1932 am__leading_dot=_
1934 rmdir .tst 2>/dev/null
1936 # test to see if srcdir already configured
1937 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1938 test -f $srcdir/config.status; then
1939 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1940 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1941 { (exit 1); exit 1; }; }
1944 # test whether we have cygpath
1945 if test -z "$CYGPATH_W"; then
1946 if (cygpath --version) >/dev/null 2>/dev/null; then
1947 CYGPATH_W='cygpath -w'
1948 else
1949 CYGPATH_W=echo
1954 # Define the identity of the package.
1955 PACKAGE=kgraphinterface
1956 VERSION=0.1
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE "$PACKAGE"
1961 _ACEOF
1964 cat >>confdefs.h <<_ACEOF
1965 #define VERSION "$VERSION"
1966 _ACEOF
1968 # Some tools Automake needs.
1970 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1973 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1976 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1979 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1982 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1984 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1986 # Installed binaries are usually stripped using `strip' when the user
1987 # run `make install-strip'. However `strip' might not be the right
1988 # tool to use in cross-compilation environments, therefore Automake
1989 # will honor the `STRIP' environment variable to overrule this program.
1990 if test "$cross_compiling" != no; then
1991 if test -n "$ac_tool_prefix"; then
1992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1993 set dummy ${ac_tool_prefix}strip; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_STRIP+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 if test -n "$STRIP"; then
2000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 break 2
2013 done
2014 done
2018 STRIP=$ac_cv_prog_STRIP
2019 if test -n "$STRIP"; then
2020 echo "$as_me:$LINENO: result: $STRIP" >&5
2021 echo "${ECHO_T}$STRIP" >&6
2022 else
2023 echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2028 if test -z "$ac_cv_prog_STRIP"; then
2029 ac_ct_STRIP=$STRIP
2030 # Extract the first word of "strip", so it can be a program name with args.
2031 set dummy strip; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 if test -n "$ac_ct_STRIP"; then
2038 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_ac_ct_STRIP="strip"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2051 done
2052 done
2054 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2057 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2058 if test -n "$ac_ct_STRIP"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2060 echo "${ECHO_T}$ac_ct_STRIP" >&6
2061 else
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2066 STRIP=$ac_ct_STRIP
2067 else
2068 STRIP="$ac_cv_prog_STRIP"
2072 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2074 # We need awk for the "check" target. The system "awk" is bad on
2075 # some platforms.
2076 # Always define AMTAR for backward compatibility.
2078 AMTAR=${AMTAR-"${am_missing_run}tar"}
2080 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2087 unset CDPATH
2091 kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
2092 test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
2093 if test -n "$KDEDIRS"; then
2094 kde_save_IFS=$IFS
2095 IFS=:
2096 for dir in $KDEDIRS; do
2097 kde_default_bindirs="$dir/bin $kde_default_bindirs "
2098 done
2099 IFS=$kde_save_IFS
2102 if test "x$prefix" = "xNONE"; then
2104 echo "$as_me:$LINENO: checking for kde-config" >&5
2105 echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
2106 if test -n "$KDECONFIG"; then
2107 kde_cv_path="$KDECONFIG";
2108 else
2109 kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2111 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2115 kde_cv_path="NONE"
2116 kde_save_IFS=$IFS
2117 IFS=':'
2118 dirs=""
2119 for dir in $PATH; do
2120 dirs="$dirs $dir"
2121 done
2122 if test -z "prepend"; then dirs="$kde_default_bindirs $dirs"
2123 else dirs="$dirs $kde_default_bindirs"
2125 IFS=$kde_save_IFS
2127 for dir in $dirs; do
2128 if test -x "$dir/kde-config"; then
2129 if test -n ""
2130 then
2131 evalstr="$dir/kde-config 2>&1 "
2132 if eval $evalstr; then
2133 kde_cv_path="$dir/kde-config"
2134 break
2136 else
2137 kde_cv_path="$dir/kde-config"
2138 break
2141 done
2143 eval "kde_cv_path_$kde_cache=$kde_cv_path"
2149 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2153 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2154 echo "$as_me:$LINENO: result: not found" >&5
2155 echo "${ECHO_T}not found" >&6
2157 { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
2158 Please check whether you installed KDE correctly.
2159 " >&5
2160 echo "$as_me: error: The important program kde-config was not found!
2161 Please check whether you installed KDE correctly.
2162 " >&2;}
2163 { (exit 1); exit 1; }; }
2165 else
2166 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2167 echo "${ECHO_T}$kde_cv_path" >&6
2168 KDECONFIG=$kde_cv_path
2172 else
2173 kde_save_PATH="$PATH"
2174 PATH="$exec_prefix/bin:$prefix/bin:$PATH"
2176 echo "$as_me:$LINENO: checking for kde-config" >&5
2177 echo $ECHO_N "checking for kde-config... $ECHO_C" >&6
2178 if test -n "$KDECONFIG"; then
2179 kde_cv_path="$KDECONFIG";
2180 else
2181 kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2183 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2187 kde_cv_path="NONE"
2188 kde_save_IFS=$IFS
2189 IFS=':'
2190 dirs=""
2191 for dir in $PATH; do
2192 dirs="$dirs $dir"
2193 done
2194 if test -z "prepend"; then dirs="$kde_default_bindirs $dirs"
2195 else dirs="$dirs $kde_default_bindirs"
2197 IFS=$kde_save_IFS
2199 for dir in $dirs; do
2200 if test -x "$dir/kde-config"; then
2201 if test -n ""
2202 then
2203 evalstr="$dir/kde-config 2>&1 "
2204 if eval $evalstr; then
2205 kde_cv_path="$dir/kde-config"
2206 break
2208 else
2209 kde_cv_path="$dir/kde-config"
2210 break
2213 done
2215 eval "kde_cv_path_$kde_cache=$kde_cv_path"
2221 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2225 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2226 echo "$as_me:$LINENO: result: not found" >&5
2227 echo "${ECHO_T}not found" >&6
2229 { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
2230 Please check whether you installed KDE correctly.
2231 " >&5
2232 echo "$as_me: error: The important program kde-config was not found!
2233 Please check whether you installed KDE correctly.
2234 " >&2;}
2235 { (exit 1); exit 1; }; }
2237 else
2238 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2239 echo "${ECHO_T}$kde_cv_path" >&6
2240 KDECONFIG=$kde_cv_path
2244 PATH="$kde_save_PATH"
2247 kde_libs_prefix=`$KDECONFIG --prefix`
2248 if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
2249 { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2250 This means it has been moved since you installed it.
2251 This won't work. Please recompile kdelibs for the new prefix.
2252 " >&5
2253 echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2254 This means it has been moved since you installed it.
2255 This won't work. Please recompile kdelibs for the new prefix.
2256 " >&2;}
2257 { (exit 1); exit 1; }; }
2259 kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
2260 kde_libs_suffix=`$KDECONFIG --libsuffix` || kde_libs_suffix=auto
2262 echo "$as_me:$LINENO: checking where to install" >&5
2263 echo $ECHO_N "checking where to install... $ECHO_C" >&6
2264 if test "x$prefix" = "xNONE"; then
2265 prefix=$kde_libs_prefix
2266 echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
2267 echo "${ECHO_T}$prefix (as returned by kde-config)" >&6
2268 else
2269 given_prefix=$prefix
2270 echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
2271 echo "${ECHO_T}$prefix (as requested)" >&6
2274 # And delete superfluous '/' to make compares easier
2275 prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2276 exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2277 given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2284 # Check whether --enable-fast-perl or --disable-fast-perl was given.
2285 if test "${enable_fast_perl+set}" = set; then
2286 enableval="$enable_fast_perl"
2287 with_fast_perl=$enableval
2288 else
2289 with_fast_perl=yes
2293 val=
2294 if test -f $srcdir/configure.files ; then
2295 val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
2297 CONF_FILES=
2298 if test -n "$val" ; then
2299 for i in $val ; do
2300 CONF_FILES="$CONF_FILES $i"
2301 done
2307 ac_config_headers="$ac_config_headers config.h"
2309 DEPDIR="${am__leading_dot}deps"
2311 ac_config_commands="$ac_config_commands depfiles"
2314 am_make=${MAKE-make}
2315 cat > confinc << 'END'
2316 am__doit:
2317 @echo done
2318 .PHONY: am__doit
2320 # If we don't find an include directive, just comment out the code.
2321 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2322 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2323 am__include="#"
2324 am__quote=
2325 _am_result=none
2326 # First try GNU make style include.
2327 echo "include confinc" > confmf
2328 # We grep out `Entering directory' and `Leaving directory'
2329 # messages which can occur if `w' ends up in MAKEFLAGS.
2330 # In particular we don't look at `^make:' because GNU make might
2331 # be invoked under some other name (usually "gmake"), in which
2332 # case it prints its new name instead of `make'.
2333 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2334 am__include=include
2335 am__quote=
2336 _am_result=GNU
2338 # Now try BSD make style include.
2339 if test "$am__include" = "#"; then
2340 echo '.include "confinc"' > confmf
2341 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2342 am__include=.include
2343 am__quote="\""
2344 _am_result=BSD
2349 echo "$as_me:$LINENO: result: $_am_result" >&5
2350 echo "${ECHO_T}$_am_result" >&6
2351 rm -f confinc confmf
2353 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2354 if test "${enable_dependency_tracking+set}" = set; then
2355 enableval="$enable_dependency_tracking"
2358 if test "x$enable_dependency_tracking" != xno; then
2359 am_depcomp="$ac_aux_dir/depcomp"
2360 AMDEPBACKSLASH='\'
2364 if test "x$enable_dependency_tracking" != xno; then
2365 AMDEP_TRUE=
2366 AMDEP_FALSE='#'
2367 else
2368 AMDEP_TRUE='#'
2369 AMDEP_FALSE=
2377 # Check whether --enable-debug or --disable-debug was given.
2378 if test "${enable_debug+set}" = set; then
2379 enableval="$enable_debug"
2381 case $enableval in
2382 yes)
2383 kde_use_debug_code="yes"
2384 kde_use_debug_define=no
2386 full)
2387 kde_use_debug_code="full"
2388 kde_use_debug_define=no
2391 kde_use_debug_code="no"
2392 kde_use_debug_define=yes
2394 esac
2396 else
2397 kde_use_debug_code="no"
2398 kde_use_debug_define=no
2402 # Check whether --enable-dummyoption or --disable-dummyoption was given.
2403 if test "${enable_dummyoption+set}" = set; then
2404 enableval="$enable_dummyoption"
2408 # Check whether --enable-strict or --disable-strict was given.
2409 if test "${enable_strict+set}" = set; then
2410 enableval="$enable_strict"
2412 if test $enableval = "no"; then
2413 kde_use_strict_options="no"
2414 else
2415 kde_use_strict_options="yes"
2418 else
2419 kde_use_strict_options="no"
2422 # Check whether --enable-warnings or --disable-warnings was given.
2423 if test "${enable_warnings+set}" = set; then
2424 enableval="$enable_warnings"
2426 if test $enableval = "no"; then
2427 kde_use_warnings="no"
2428 else
2429 kde_use_warnings="yes"
2432 else
2433 kde_use_warnings="yes"
2436 if test "$kde_use_debug_code" != "no"; then
2437 kde_use_warnings=yes
2440 # Check whether --enable-profile or --disable-profile was given.
2441 if test "${enable_profile+set}" = set; then
2442 enableval="$enable_profile"
2443 kde_use_profiling=$enableval
2444 else
2445 kde_use_profiling="no"
2449 CFLAGS=" $CFLAGS"
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 break 2
2478 done
2479 done
2483 CC=$ac_cv_prog_CC
2484 if test -n "$CC"; then
2485 echo "$as_me:$LINENO: result: $CC" >&5
2486 echo "${ECHO_T}$CC" >&6
2487 else
2488 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2493 if test -z "$ac_cv_prog_CC"; then
2494 ac_ct_CC=$CC
2495 # Extract the first word of "gcc", so it can be a program name with args.
2496 set dummy gcc; ac_word=$2
2497 echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 if test -n "$ac_ct_CC"; then
2503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512 ac_cv_prog_ac_ct_CC="gcc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2516 done
2517 done
2521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2522 if test -n "$ac_ct_CC"; then
2523 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2524 echo "${ECHO_T}$ac_ct_CC" >&6
2525 else
2526 echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6
2530 CC=$ac_ct_CC
2531 else
2532 CC="$ac_cv_prog_CC"
2535 if test -z "$CC"; then
2536 if test -n "$ac_tool_prefix"; then
2537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2538 set dummy ${ac_tool_prefix}cc; ac_word=$2
2539 echo "$as_me:$LINENO: checking for $ac_word" >&5
2540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2541 if test "${ac_cv_prog_CC+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544 if test -n "$CC"; then
2545 ac_cv_prog_CC="$CC" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554 ac_cv_prog_CC="${ac_tool_prefix}cc"
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2558 done
2559 done
2563 CC=$ac_cv_prog_CC
2564 if test -n "$CC"; then
2565 echo "$as_me:$LINENO: result: $CC" >&5
2566 echo "${ECHO_T}$CC" >&6
2567 else
2568 echo "$as_me:$LINENO: result: no" >&5
2569 echo "${ECHO_T}no" >&6
2573 if test -z "$ac_cv_prog_CC"; then
2574 ac_ct_CC=$CC
2575 # Extract the first word of "cc", so it can be a program name with args.
2576 set dummy cc; ac_word=$2
2577 echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582 if test -n "$ac_ct_CC"; then
2583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592 ac_cv_prog_ac_ct_CC="cc"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2596 done
2597 done
2601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2602 if test -n "$ac_ct_CC"; then
2603 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2604 echo "${ECHO_T}$ac_ct_CC" >&6
2605 else
2606 echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6
2610 CC=$ac_ct_CC
2611 else
2612 CC="$ac_cv_prog_CC"
2616 if test -z "$CC"; then
2617 # Extract the first word of "cc", so it can be a program name with args.
2618 set dummy cc; ac_word=$2
2619 echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2621 if test "${ac_cv_prog_CC+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 else
2627 ac_prog_rejected=no
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2636 ac_prog_rejected=yes
2637 continue
2639 ac_cv_prog_CC="cc"
2640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641 break 2
2643 done
2644 done
2646 if test $ac_prog_rejected = yes; then
2647 # We found a bogon in the path, so make sure we never use it.
2648 set dummy $ac_cv_prog_CC
2649 shift
2650 if test $# != 0; then
2651 # We chose a different compiler from the bogus one.
2652 # However, it has the same basename, so the bogon will be chosen
2653 # first if we set CC to just the basename; use the full file name.
2654 shift
2655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2660 CC=$ac_cv_prog_CC
2661 if test -n "$CC"; then
2662 echo "$as_me:$LINENO: result: $CC" >&5
2663 echo "${ECHO_T}$CC" >&6
2664 else
2665 echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2670 if test -z "$CC"; then
2671 if test -n "$ac_tool_prefix"; then
2672 for ac_prog in cl
2674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_CC+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2700 CC=$ac_cv_prog_CC
2701 if test -n "$CC"; then
2702 echo "$as_me:$LINENO: result: $CC" >&5
2703 echo "${ECHO_T}$CC" >&6
2704 else
2705 echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2709 test -n "$CC" && break
2710 done
2712 if test -z "$CC"; then
2713 ac_ct_CC=$CC
2714 for ac_prog in cl
2716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 if test -n "$ac_ct_CC"; then
2724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_ac_ct_CC="$ac_prog"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2737 done
2738 done
2742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743 if test -n "$ac_ct_CC"; then
2744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2745 echo "${ECHO_T}$ac_ct_CC" >&6
2746 else
2747 echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2751 test -n "$ac_ct_CC" && break
2752 done
2754 CC=$ac_ct_CC
2760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2761 See \`config.log' for more details." >&5
2762 echo "$as_me: error: no acceptable C compiler found in \$PATH
2763 See \`config.log' for more details." >&2;}
2764 { (exit 1); exit 1; }; }
2766 # Provide some information about the compiler.
2767 echo "$as_me:$LINENO:" \
2768 "checking for C compiler version" >&5
2769 ac_compiler=`set X $ac_compile; echo $2`
2770 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2771 (eval $ac_compiler --version </dev/null >&5) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2775 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2776 (eval $ac_compiler -v </dev/null >&5) 2>&5
2777 ac_status=$?
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }
2780 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2781 (eval $ac_compiler -V </dev/null >&5) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }
2786 cat >conftest.$ac_ext <<_ACEOF
2787 /* confdefs.h. */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2794 main ()
2798 return 0;
2800 _ACEOF
2801 ac_clean_files_save=$ac_clean_files
2802 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2803 # Try to create an executable without -o first, disregard a.out.
2804 # It will help us diagnose broken compilers, and finding out an intuition
2805 # of exeext.
2806 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2807 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2808 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2809 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2810 (eval $ac_link_default) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; then
2814 # Find the output, starting from the most likely. This scheme is
2815 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2816 # resort.
2818 # Be careful to initialize this variable, since it used to be cached.
2819 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2820 ac_cv_exeext=
2821 # b.out is created by i960 compilers.
2822 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2824 test -f "$ac_file" || continue
2825 case $ac_file in
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2828 conftest.$ac_ext )
2829 # This is the source file.
2831 [ab].out )
2832 # We found the default executable, but exeext='' is most
2833 # certainly right.
2834 break;;
2835 *.* )
2836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837 # FIXME: I believe we export ac_cv_exeext for Libtool,
2838 # but it would be cool to find out if it's true. Does anybody
2839 # maintain Libtool? --akim.
2840 export ac_cv_exeext
2841 break;;
2843 break;;
2844 esac
2845 done
2846 else
2847 echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2850 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2851 See \`config.log' for more details." >&5
2852 echo "$as_me: error: C compiler cannot create executables
2853 See \`config.log' for more details." >&2;}
2854 { (exit 77); exit 77; }; }
2857 ac_exeext=$ac_cv_exeext
2858 echo "$as_me:$LINENO: result: $ac_file" >&5
2859 echo "${ECHO_T}$ac_file" >&6
2861 # Check the compiler produces executables we can run. If not, either
2862 # the compiler is broken, or we cross compile.
2863 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2864 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2865 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2866 # If not cross compiling, check that we can run a simple program.
2867 if test "$cross_compiling" != yes; then
2868 if { ac_try='./$ac_file'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 cross_compiling=no
2875 else
2876 if test "$cross_compiling" = maybe; then
2877 cross_compiling=yes
2878 else
2879 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2880 If you meant to cross compile, use \`--host'.
2881 See \`config.log' for more details." >&5
2882 echo "$as_me: error: cannot run C compiled programs.
2883 If you meant to cross compile, use \`--host'.
2884 See \`config.log' for more details." >&2;}
2885 { (exit 1); exit 1; }; }
2889 echo "$as_me:$LINENO: result: yes" >&5
2890 echo "${ECHO_T}yes" >&6
2892 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2893 ac_clean_files=$ac_clean_files_save
2894 # Check the compiler produces executables we can run. If not, either
2895 # the compiler is broken, or we cross compile.
2896 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2897 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2898 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2899 echo "${ECHO_T}$cross_compiling" >&6
2901 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2902 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2904 (eval $ac_link) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; then
2908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2909 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2910 # work properly (i.e., refer to `conftest.exe'), while it won't with
2911 # `rm'.
2912 for ac_file in conftest.exe conftest conftest.*; do
2913 test -f "$ac_file" || continue
2914 case $ac_file in
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2917 export ac_cv_exeext
2918 break;;
2919 * ) break;;
2920 esac
2921 done
2922 else
2923 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2926 See \`config.log' for more details." >&2;}
2927 { (exit 1); exit 1; }; }
2930 rm -f conftest$ac_cv_exeext
2931 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2932 echo "${ECHO_T}$ac_cv_exeext" >&6
2934 rm -f conftest.$ac_ext
2935 EXEEXT=$ac_cv_exeext
2936 ac_exeext=$EXEEXT
2937 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2938 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2939 if test "${ac_cv_objext+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942 cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h. */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2950 main ()
2954 return 0;
2956 _ACEOF
2957 rm -f conftest.o conftest.obj
2958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959 (eval $ac_compile) 2>&5
2960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
2963 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2964 case $ac_file in
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2966 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2967 break;;
2968 esac
2969 done
2970 else
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2974 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2975 See \`config.log' for more details." >&5
2976 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2977 See \`config.log' for more details." >&2;}
2978 { (exit 1); exit 1; }; }
2981 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2983 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2984 echo "${ECHO_T}$ac_cv_objext" >&6
2985 OBJEXT=$ac_cv_objext
2986 ac_objext=$OBJEXT
2987 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2988 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992 cat >conftest.$ac_ext <<_ACEOF
2993 /* confdefs.h. */
2994 _ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
3000 main ()
3002 #ifndef __GNUC__
3003 choke me
3004 #endif
3007 return 0;
3009 _ACEOF
3010 rm -f conftest.$ac_objext
3011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3012 (eval $ac_compile) 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_c_werror_flag"
3020 || test ! -s conftest.err'
3021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022 (eval $ac_try) 2>&5
3023 ac_status=$?
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); }; } &&
3026 { ac_try='test -s conftest.$ac_objext'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; }; then
3032 ac_compiler_gnu=yes
3033 else
3034 echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 ac_compiler_gnu=no
3039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3045 GCC=`test $ac_compiler_gnu = yes && echo yes`
3046 ac_test_CFLAGS=${CFLAGS+set}
3047 ac_save_CFLAGS=$CFLAGS
3048 CFLAGS="-g"
3049 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3050 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3051 if test "${ac_cv_prog_cc_g+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 else
3054 cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3062 main ()
3066 return 0;
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3071 (eval $ac_compile) 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_c_werror_flag"
3079 || test ! -s conftest.err'
3080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 (eval $ac_try) 2>&5
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; } &&
3085 { ac_try='test -s conftest.$ac_objext'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3091 ac_cv_prog_cc_g=yes
3092 else
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 ac_cv_prog_cc_g=no
3098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3101 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3102 if test "$ac_test_CFLAGS" = set; then
3103 CFLAGS=$ac_save_CFLAGS
3104 elif test $ac_cv_prog_cc_g = yes; then
3105 if test "$GCC" = yes; then
3106 CFLAGS="-g -O2"
3107 else
3108 CFLAGS="-g"
3110 else
3111 if test "$GCC" = yes; then
3112 CFLAGS="-O2"
3113 else
3114 CFLAGS=
3117 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 ac_cv_prog_cc_stdc=no
3123 ac_save_CC=$CC
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #include <stdarg.h>
3131 #include <stdio.h>
3132 #include <sys/types.h>
3133 #include <sys/stat.h>
3134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3135 struct buf { int x; };
3136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3137 static char *e (p, i)
3138 char **p;
3139 int i;
3141 return p[i];
3143 static char *f (char * (*g) (char **, int), char **p, ...)
3145 char *s;
3146 va_list v;
3147 va_start (v,p);
3148 s = g (p, va_arg (v,int));
3149 va_end (v);
3150 return s;
3153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3154 function prototypes and stuff, but not '\xHH' hex character constants.
3155 These don't provoke an error unfortunately, instead are silently treated
3156 as 'x'. The following induces an error, until -std1 is added to get
3157 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3158 array size at least. It's necessary to write '\x00'==0 to get something
3159 that's true only with -std1. */
3160 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3162 int test (int i, double x);
3163 struct s1 {int (*f) (int a);};
3164 struct s2 {int (*f) (double a);};
3165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3166 int argc;
3167 char **argv;
3169 main ()
3171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3173 return 0;
3175 _ACEOF
3176 # Don't try gcc -ansi; that turns off useful extensions and
3177 # breaks some systems' header files.
3178 # AIX -qlanglvl=ansi
3179 # Ultrix and OSF/1 -std1
3180 # HP-UX 10.20 and later -Ae
3181 # HP-UX older versions -Aa -D_HPUX_SOURCE
3182 # SVR4 -Xc -D__EXTENSIONS__
3183 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3185 CC="$ac_save_CC $ac_arg"
3186 rm -f conftest.$ac_objext
3187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188 (eval $ac_compile) 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag"
3196 || test ! -s conftest.err'
3197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 (eval $ac_try) 2>&5
3199 ac_status=$?
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; } &&
3202 { ac_try='test -s conftest.$ac_objext'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 (eval $ac_try) 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_prog_cc_stdc=$ac_arg
3209 break
3210 else
3211 echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3215 rm -f conftest.err conftest.$ac_objext
3216 done
3217 rm -f conftest.$ac_ext conftest.$ac_objext
3218 CC=$ac_save_CC
3222 case "x$ac_cv_prog_cc_stdc" in
3223 x|xno)
3224 echo "$as_me:$LINENO: result: none needed" >&5
3225 echo "${ECHO_T}none needed" >&6 ;;
3227 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3228 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3229 CC="$CC $ac_cv_prog_cc_stdc" ;;
3230 esac
3232 # Some people use a C++ compiler to compile C. Since we use `exit',
3233 # in C++ we need to declare it. In case someone uses the same compiler
3234 # for both compiling C and C++ we need to have the C++ compiler decide
3235 # the declaration of exit, since it's the most demanding environment.
3236 cat >conftest.$ac_ext <<_ACEOF
3237 #ifndef __cplusplus
3238 choke me
3239 #endif
3240 _ACEOF
3241 rm -f conftest.$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>conftest.er1
3244 ac_status=$?
3245 grep -v '^ *+' conftest.er1 >conftest.err
3246 rm -f conftest.er1
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -z "$ac_c_werror_flag"
3251 || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try='test -s conftest.$ac_objext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 for ac_declaration in \
3264 '' \
3265 'extern "C" void std::exit (int) throw (); using std::exit;' \
3266 'extern "C" void std::exit (int); using std::exit;' \
3267 'extern "C" void exit (int) throw ();' \
3268 'extern "C" void exit (int);' \
3269 'void exit (int);'
3271 cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h. */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 $ac_declaration
3278 #include <stdlib.h>
3280 main ()
3282 exit (42);
3284 return 0;
3286 _ACEOF
3287 rm -f conftest.$ac_objext
3288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 (eval $ac_compile) 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -z "$ac_c_werror_flag"
3297 || test ! -s conftest.err'
3298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 (eval $ac_try) 2>&5
3300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; } &&
3303 { ac_try='test -s conftest.$ac_objext'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3310 else
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3314 continue
3316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3317 cat >conftest.$ac_ext <<_ACEOF
3318 /* confdefs.h. */
3319 _ACEOF
3320 cat confdefs.h >>conftest.$ac_ext
3321 cat >>conftest.$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3323 $ac_declaration
3325 main ()
3327 exit (42);
3329 return 0;
3331 _ACEOF
3332 rm -f conftest.$ac_objext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_c_werror_flag"
3342 || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 break
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3361 done
3362 rm -f conftest*
3363 if test -n "$ac_declaration"; then
3364 echo '#ifdef __cplusplus' >>confdefs.h
3365 echo $ac_declaration >>confdefs.h
3366 echo '#endif' >>confdefs.h
3369 else
3370 echo "$as_me: failed program was:" >&5
3371 sed 's/^/| /' conftest.$ac_ext >&5
3374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381 depcc="$CC" am_compiler_list=
3383 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3384 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3385 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3389 # We make a subdir and do the tests there. Otherwise we can end up
3390 # making bogus files that we don't know about and never remove. For
3391 # instance it was reported that on HP-UX the gcc test will end up
3392 # making a dummy file named `D' -- because `-MD' means `put the output
3393 # in D'.
3394 mkdir conftest.dir
3395 # Copy depcomp to subdir because otherwise we won't find it if we're
3396 # using a relative directory.
3397 cp "$am_depcomp" conftest.dir
3398 cd conftest.dir
3399 # We will build objects and dependencies in a subdirectory because
3400 # it helps to detect inapplicable dependency modes. For instance
3401 # both Tru64's cc and ICC support -MD to output dependencies as a
3402 # side effect of compilation, but ICC will put the dependencies in
3403 # the current directory while Tru64 will put them in the object
3404 # directory.
3405 mkdir sub
3407 am_cv_CC_dependencies_compiler_type=none
3408 if test "$am_compiler_list" = ""; then
3409 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3411 for depmode in $am_compiler_list; do
3412 # Setup a source with many dependencies, because some compilers
3413 # like to wrap large dependency lists on column 80 (with \), and
3414 # we should not choose a depcomp mode which is confused by this.
3416 # We need to recreate these files for each test, as the compiler may
3417 # overwrite some of them when testing with obscure command lines.
3418 # This happens at least with the AIX C compiler.
3419 : > sub/conftest.c
3420 for i in 1 2 3 4 5 6; do
3421 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3422 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3423 # Solaris 8's {/usr,}/bin/sh.
3424 touch sub/conftst$i.h
3425 done
3426 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3428 case $depmode in
3429 nosideeffect)
3430 # after this tag, mechanisms are not by side-effect, so they'll
3431 # only be used when explicitly requested
3432 if test "x$enable_dependency_tracking" = xyes; then
3433 continue
3434 else
3435 break
3438 none) break ;;
3439 esac
3440 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3441 # mode. It turns out that the SunPro C++ compiler does not properly
3442 # handle `-M -o', and we need to detect this.
3443 if depmode=$depmode \
3444 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3446 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3447 >/dev/null 2>conftest.err &&
3448 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3449 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3450 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3451 # icc doesn't choke on unknown options, it will just issue warnings
3452 # or remarks (even with -Werror). So we grep stderr for any message
3453 # that says an option was ignored or not supported.
3454 # When given -MP, icc 7.0 and 7.1 complain thusly:
3455 # icc: Command line warning: ignoring option '-M'; no argument required
3456 # The diagnosis changed in icc 8.0:
3457 # icc: Command line remark: option '-MP' not supported
3458 if (grep 'ignoring option' conftest.err ||
3459 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3460 am_cv_CC_dependencies_compiler_type=$depmode
3461 break
3464 done
3466 cd ..
3467 rm -rf conftest.dir
3468 else
3469 am_cv_CC_dependencies_compiler_type=none
3473 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3474 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3475 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3480 test "x$enable_dependency_tracking" != xno \
3481 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3482 am__fastdepCC_TRUE=
3483 am__fastdepCC_FALSE='#'
3484 else
3485 am__fastdepCC_TRUE='#'
3486 am__fastdepCC_FALSE=
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3497 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3498 # On Suns, sometimes $CPP names a directory.
3499 if test -n "$CPP" && test -d "$CPP"; then
3500 CPP=
3502 if test -z "$CPP"; then
3503 if test "${ac_cv_prog_CPP+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 # Double quotes because CPP needs to be expanded
3507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3509 ac_preproc_ok=false
3510 for ac_c_preproc_warn_flag in '' yes
3512 # Use a header file that comes with gcc, so configuring glibc
3513 # with a fresh cross-compiler works.
3514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3515 # <limits.h> exists even on freestanding compilers.
3516 # On the NeXT, cc -E runs the code through the compiler's parser,
3517 # not just through cpp. "Syntax error" is here to catch this case.
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #ifdef __STDC__
3525 # include <limits.h>
3526 #else
3527 # include <assert.h>
3528 #endif
3529 Syntax error
3530 _ACEOF
3531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev/null; then
3539 if test -s conftest.err; then
3540 ac_cpp_err=$ac_c_preproc_warn_flag
3541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3542 else
3543 ac_cpp_err=
3545 else
3546 ac_cpp_err=yes
3548 if test -z "$ac_cpp_err"; then
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 # Broken: fails on valid input.
3555 continue
3557 rm -f conftest.err conftest.$ac_ext
3559 # OK, works on sane cases. Now check whether non-existent headers
3560 # can be detected and how.
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h. */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3567 #include <ac_nonexistent.h>
3568 _ACEOF
3569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } >/dev/null; then
3577 if test -s conftest.err; then
3578 ac_cpp_err=$ac_c_preproc_warn_flag
3579 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580 else
3581 ac_cpp_err=
3583 else
3584 ac_cpp_err=yes
3586 if test -z "$ac_cpp_err"; then
3587 # Broken: success on invalid input.
3588 continue
3589 else
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Passes both tests.
3594 ac_preproc_ok=:
3595 break
3597 rm -f conftest.err conftest.$ac_ext
3599 done
3600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3601 rm -f conftest.err conftest.$ac_ext
3602 if $ac_preproc_ok; then
3603 break
3606 done
3607 ac_cv_prog_CPP=$CPP
3610 CPP=$ac_cv_prog_CPP
3611 else
3612 ac_cv_prog_CPP=$CPP
3614 echo "$as_me:$LINENO: result: $CPP" >&5
3615 echo "${ECHO_T}$CPP" >&6
3616 ac_preproc_ok=false
3617 for ac_c_preproc_warn_flag in '' yes
3619 # Use a header file that comes with gcc, so configuring glibc
3620 # with a fresh cross-compiler works.
3621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3622 # <limits.h> exists even on freestanding compilers.
3623 # On the NeXT, cc -E runs the code through the compiler's parser,
3624 # not just through cpp. "Syntax error" is here to catch this case.
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h. */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3631 #ifdef __STDC__
3632 # include <limits.h>
3633 #else
3634 # include <assert.h>
3635 #endif
3636 Syntax error
3637 _ACEOF
3638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } >/dev/null; then
3646 if test -s conftest.err; then
3647 ac_cpp_err=$ac_c_preproc_warn_flag
3648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3649 else
3650 ac_cpp_err=
3652 else
3653 ac_cpp_err=yes
3655 if test -z "$ac_cpp_err"; then
3657 else
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 # Broken: fails on valid input.
3662 continue
3664 rm -f conftest.err conftest.$ac_ext
3666 # OK, works on sane cases. Now check whether non-existent headers
3667 # can be detected and how.
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h. */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674 #include <ac_nonexistent.h>
3675 _ACEOF
3676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3678 ac_status=$?
3679 grep -v '^ *+' conftest.er1 >conftest.err
3680 rm -f conftest.er1
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } >/dev/null; then
3684 if test -s conftest.err; then
3685 ac_cpp_err=$ac_c_preproc_warn_flag
3686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3687 else
3688 ac_cpp_err=
3690 else
3691 ac_cpp_err=yes
3693 if test -z "$ac_cpp_err"; then
3694 # Broken: success on invalid input.
3695 continue
3696 else
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 # Passes both tests.
3701 ac_preproc_ok=:
3702 break
3704 rm -f conftest.err conftest.$ac_ext
3706 done
3707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708 rm -f conftest.err conftest.$ac_ext
3709 if $ac_preproc_ok; then
3711 else
3712 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3713 See \`config.log' for more details." >&5
3714 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3715 See \`config.log' for more details." >&2;}
3716 { (exit 1); exit 1; }; }
3719 ac_ext=c
3720 ac_cpp='$CPP $CPPFLAGS'
3721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726 if test "$GCC" = "yes"; then
3727 if test "$kde_use_debug_code" != "no"; then
3728 if test $kde_use_debug_code = "full"; then
3729 CFLAGS="-g3 -fno-inline $CFLAGS"
3730 else
3731 CFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CFLAGS"
3733 else
3734 CFLAGS="-O2 $CFLAGS"
3738 if test "$kde_use_debug_define" = "yes"; then
3739 CFLAGS="-DNDEBUG $CFLAGS"
3743 case "$host" in
3744 *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
3745 *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
3746 esac
3748 if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
3749 LDFLAGS=""
3752 CXXFLAGS=" $CXXFLAGS"
3754 ac_ext=cc
3755 ac_cpp='$CXXCPP $CPPFLAGS'
3756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759 if test -n "$ac_tool_prefix"; then
3760 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_CXX+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 if test -n "$CXX"; then
3770 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3783 done
3784 done
3788 CXX=$ac_cv_prog_CXX
3789 if test -n "$CXX"; then
3790 echo "$as_me:$LINENO: result: $CXX" >&5
3791 echo "${ECHO_T}$CXX" >&6
3792 else
3793 echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3797 test -n "$CXX" && break
3798 done
3800 if test -z "$CXX"; then
3801 ac_ct_CXX=$CXX
3802 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 if test -n "$ac_ct_CXX"; then
3812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_ac_ct_CXX="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3825 done
3826 done
3830 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3831 if test -n "$ac_ct_CXX"; then
3832 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3833 echo "${ECHO_T}$ac_ct_CXX" >&6
3834 else
3835 echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3839 test -n "$ac_ct_CXX" && break
3840 done
3841 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3843 CXX=$ac_ct_CXX
3847 # Provide some information about the compiler.
3848 echo "$as_me:$LINENO:" \
3849 "checking for C++ compiler version" >&5
3850 ac_compiler=`set X $ac_compile; echo $2`
3851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3852 (eval $ac_compiler --version </dev/null >&5) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3857 (eval $ac_compiler -v </dev/null >&5) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }
3861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3862 (eval $ac_compiler -V </dev/null >&5) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }
3867 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3868 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3869 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872 cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h. */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3880 main ()
3882 #ifndef __GNUC__
3883 choke me
3884 #endif
3887 return 0;
3889 _ACEOF
3890 rm -f conftest.$ac_objext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892 (eval $ac_compile) 2>conftest.er1
3893 ac_status=$?
3894 grep -v '^ *+' conftest.er1 >conftest.err
3895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try='test -z "$ac_cxx_werror_flag"
3900 || test ! -s conftest.err'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 ac_compiler_gnu=yes
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 ac_compiler_gnu=no
3919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3923 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3924 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3925 GXX=`test $ac_compiler_gnu = yes && echo yes`
3926 ac_test_CXXFLAGS=${CXXFLAGS+set}
3927 ac_save_CXXFLAGS=$CXXFLAGS
3928 CXXFLAGS="-g"
3929 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3930 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3931 if test "${ac_cv_prog_cxx_g+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934 cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3942 main ()
3946 return 0;
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_cxx_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest.$ac_objext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 ac_cv_prog_cxx_g=yes
3972 else
3973 echo "$as_me: failed program was:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3976 ac_cv_prog_cxx_g=no
3978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3981 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3982 if test "$ac_test_CXXFLAGS" = set; then
3983 CXXFLAGS=$ac_save_CXXFLAGS
3984 elif test $ac_cv_prog_cxx_g = yes; then
3985 if test "$GXX" = yes; then
3986 CXXFLAGS="-g -O2"
3987 else
3988 CXXFLAGS="-g"
3990 else
3991 if test "$GXX" = yes; then
3992 CXXFLAGS="-O2"
3993 else
3994 CXXFLAGS=
3997 for ac_declaration in \
3998 '' \
3999 'extern "C" void std::exit (int) throw (); using std::exit;' \
4000 'extern "C" void std::exit (int); using std::exit;' \
4001 'extern "C" void exit (int) throw ();' \
4002 'extern "C" void exit (int);' \
4003 'void exit (int);'
4005 cat >conftest.$ac_ext <<_ACEOF
4006 /* confdefs.h. */
4007 _ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4011 $ac_declaration
4012 #include <stdlib.h>
4014 main ()
4016 exit (42);
4018 return 0;
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_cxx_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4044 else
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.$ac_ext >&5
4048 continue
4050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057 $ac_declaration
4059 main ()
4061 exit (42);
4063 return 0;
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>conftest.er1
4069 ac_status=$?
4070 grep -v '^ *+' conftest.er1 >conftest.err
4071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_cxx_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4088 break
4089 else
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 done
4096 rm -f conftest*
4097 if test -n "$ac_declaration"; then
4098 echo '#ifdef __cplusplus' >>confdefs.h
4099 echo $ac_declaration >>confdefs.h
4100 echo '#endif' >>confdefs.h
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 depcc="$CXX" am_compiler_list=
4111 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4112 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4113 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4117 # We make a subdir and do the tests there. Otherwise we can end up
4118 # making bogus files that we don't know about and never remove. For
4119 # instance it was reported that on HP-UX the gcc test will end up
4120 # making a dummy file named `D' -- because `-MD' means `put the output
4121 # in D'.
4122 mkdir conftest.dir
4123 # Copy depcomp to subdir because otherwise we won't find it if we're
4124 # using a relative directory.
4125 cp "$am_depcomp" conftest.dir
4126 cd conftest.dir
4127 # We will build objects and dependencies in a subdirectory because
4128 # it helps to detect inapplicable dependency modes. For instance
4129 # both Tru64's cc and ICC support -MD to output dependencies as a
4130 # side effect of compilation, but ICC will put the dependencies in
4131 # the current directory while Tru64 will put them in the object
4132 # directory.
4133 mkdir sub
4135 am_cv_CXX_dependencies_compiler_type=none
4136 if test "$am_compiler_list" = ""; then
4137 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4139 for depmode in $am_compiler_list; do
4140 # Setup a source with many dependencies, because some compilers
4141 # like to wrap large dependency lists on column 80 (with \), and
4142 # we should not choose a depcomp mode which is confused by this.
4144 # We need to recreate these files for each test, as the compiler may
4145 # overwrite some of them when testing with obscure command lines.
4146 # This happens at least with the AIX C compiler.
4147 : > sub/conftest.c
4148 for i in 1 2 3 4 5 6; do
4149 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4150 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4151 # Solaris 8's {/usr,}/bin/sh.
4152 touch sub/conftst$i.h
4153 done
4154 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4156 case $depmode in
4157 nosideeffect)
4158 # after this tag, mechanisms are not by side-effect, so they'll
4159 # only be used when explicitly requested
4160 if test "x$enable_dependency_tracking" = xyes; then
4161 continue
4162 else
4163 break
4166 none) break ;;
4167 esac
4168 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4169 # mode. It turns out that the SunPro C++ compiler does not properly
4170 # handle `-M -o', and we need to detect this.
4171 if depmode=$depmode \
4172 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4173 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4174 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4175 >/dev/null 2>conftest.err &&
4176 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4177 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4178 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4179 # icc doesn't choke on unknown options, it will just issue warnings
4180 # or remarks (even with -Werror). So we grep stderr for any message
4181 # that says an option was ignored or not supported.
4182 # When given -MP, icc 7.0 and 7.1 complain thusly:
4183 # icc: Command line warning: ignoring option '-M'; no argument required
4184 # The diagnosis changed in icc 8.0:
4185 # icc: Command line remark: option '-MP' not supported
4186 if (grep 'ignoring option' conftest.err ||
4187 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4188 am_cv_CXX_dependencies_compiler_type=$depmode
4189 break
4192 done
4194 cd ..
4195 rm -rf conftest.dir
4196 else
4197 am_cv_CXX_dependencies_compiler_type=none
4201 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4202 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4203 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4208 test "x$enable_dependency_tracking" != xno \
4209 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4210 am__fastdepCXX_TRUE=
4211 am__fastdepCXX_FALSE='#'
4212 else
4213 am__fastdepCXX_TRUE='#'
4214 am__fastdepCXX_FALSE=
4220 echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5
4221 echo $ECHO_N "checking whether $CC is blacklisted... $ECHO_C" >&6
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4231 #ifdef __GNUC__
4232 #if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
4233 choke me
4234 #endif
4235 #endif
4238 main ()
4242 return 0;
4244 _ACEOF
4245 rm -f conftest.$ac_objext
4246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4247 (eval $ac_compile) 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try='test -z "$ac_c_werror_flag"
4255 || test ! -s conftest.err'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 (eval $ac_try) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 (eval $ac_try) 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; }; then
4267 kde_bad_compiler=no
4268 else
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4272 kde_bad_compiler=yes
4275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4277 echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5
4278 echo "${ECHO_T}$kde_bad_compiler" >&6
4280 if test "$kde_bad_compiler" = "yes"; then
4281 { { echo "$as_me:$LINENO: error:
4283 This particular compiler version is blacklisted because it
4284 is known to miscompile KDE. Please use a newer version, or
4285 if that is not yet available, choose an older version.
4287 Please do not report a bug or bother us reporting this
4288 configure error. We know about it, and we introduced
4289 it by intention to avoid untraceable bugs or crashes in KDE.
4291 " >&5
4292 echo "$as_me: error:
4294 This particular compiler version is blacklisted because it
4295 is known to miscompile KDE. Please use a newer version, or
4296 if that is not yet available, choose an older version.
4298 Please do not report a bug or bother us reporting this
4299 configure error. We know about it, and we introduced
4300 it by intention to avoid untraceable bugs or crashes in KDE.
4302 " >&2;}
4303 { (exit 1); exit 1; }; }
4308 if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
4309 if test "$kde_use_debug_code" != "no"; then
4310 if test "$CXX" = "KCC"; then
4311 CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
4312 else
4313 if test "$kde_use_debug_code" = "full"; then
4314 CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
4315 else
4316 CXXFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CXXFLAGS"
4320 echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
4321 echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6
4322 kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
4323 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4330 ac_ext=cc
4331 ac_cpp='$CXXCPP $CPPFLAGS'
4332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4336 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4340 save_CXXFLAGS="$CXXFLAGS"
4341 CXXFLAGS="$CXXFLAGS -fno-builtin"
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h. */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4350 main ()
4352 return 0;
4354 return 0;
4356 _ACEOF
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4359 (eval $ac_link) 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try='test -z "$ac_cxx_werror_flag"
4367 || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest$ac_exeext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 eval "kde_cv_prog_cxx_$kde_cache=yes"
4380 else
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4385 rm -f conftest.err conftest.$ac_objext \
4386 conftest$ac_exeext conftest.$ac_ext
4387 CXXFLAGS="$save_CXXFLAGS"
4388 ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4398 echo "$as_me:$LINENO: result: yes" >&5
4399 echo "${ECHO_T}yes" >&6
4401 CXXFLAGS="-fno-builtin $CXXFLAGS"
4402 else
4403 echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4411 echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
4412 echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6
4413 kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
4414 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4420 ac_ext=cc
4421 ac_cpp='$CXXCPP $CPPFLAGS'
4422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4426 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4429 save_CXXFLAGS="$CXXFLAGS"
4430 CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4439 main ()
4441 return 0;
4443 return 0;
4445 _ACEOF
4446 rm -f conftest.$ac_objext conftest$ac_exeext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4448 (eval $ac_link) 2>conftest.er1
4449 ac_status=$?
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -z "$ac_cxx_werror_flag"
4456 || test ! -s conftest.err'
4457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 (eval $ac_try) 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"
4469 else
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4474 rm -f conftest.err conftest.$ac_objext \
4475 conftest$ac_exeext conftest.$ac_ext
4476 CXXFLAGS="$save_CXXFLAGS"
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4487 echo "$as_me:$LINENO: result: yes" >&5
4488 echo "${ECHO_T}yes" >&6
4490 WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
4491 else
4492 echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6
4495 WOVERLOADED_VRITUAL=""
4499 else
4500 if test "$CXX" = "KCC"; then
4501 CXXFLAGS="+K3 $CXXFLAGS"
4502 else
4503 CXXFLAGS="-O2 $CXXFLAGS"
4508 if test "$kde_use_debug_define" = "yes"; then
4509 CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
4512 if test "$kde_use_profiling" = "yes"; then
4514 echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
4515 echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6
4516 kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
4517 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4523 ac_ext=cc
4524 ac_cpp='$CXXCPP $CPPFLAGS'
4525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4529 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4532 save_CXXFLAGS="$CXXFLAGS"
4533 CXXFLAGS="$CXXFLAGS -pg"
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4542 main ()
4544 return 0;
4546 return 0;
4548 _ACEOF
4549 rm -f conftest.$ac_objext conftest$ac_exeext
4550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4551 (eval $ac_link) 2>conftest.er1
4552 ac_status=$?
4553 grep -v '^ *+' conftest.er1 >conftest.err
4554 rm -f conftest.er1
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } &&
4558 { ac_try='test -z "$ac_cxx_werror_flag"
4559 || test ! -s conftest.err'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561 (eval $ac_try) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; } &&
4565 { ac_try='test -s conftest$ac_exeext'
4566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 (eval $ac_try) 2>&5
4568 ac_status=$?
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 eval "kde_cv_prog_cxx_$kde_cache=yes"
4572 else
4573 echo "$as_me: failed program was:" >&5
4574 sed 's/^/| /' conftest.$ac_ext >&5
4577 rm -f conftest.err conftest.$ac_objext \
4578 conftest$ac_exeext conftest.$ac_ext
4579 CXXFLAGS="$save_CXXFLAGS"
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4589 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4590 echo "$as_me:$LINENO: result: yes" >&5
4591 echo "${ECHO_T}yes" >&6
4594 CFLAGS="-pg $CFLAGS"
4595 CXXFLAGS="-pg $CXXFLAGS"
4597 else
4598 echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4606 if test "$kde_use_warnings" = "yes"; then
4607 if test "$GCC" = "yes"; then
4608 CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
4609 case $host in
4610 *-*-linux-gnu)
4611 CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
4612 CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
4614 echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
4615 echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6
4616 kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
4617 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4623 ac_ext=cc
4624 ac_cpp='$CXXCPP $CPPFLAGS'
4625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4629 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4632 save_CXXFLAGS="$CXXFLAGS"
4633 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
4634 cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h. */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4642 main ()
4644 return 0;
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_cxx_werror_flag"
4659 || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 (eval $ac_try) 2>&5
4662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest$ac_exeext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 eval "kde_cv_prog_cxx_$kde_cache=yes"
4672 else
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4677 rm -f conftest.err conftest.$ac_objext \
4678 conftest$ac_exeext conftest.$ac_ext
4679 CXXFLAGS="$save_CXXFLAGS"
4680 ac_ext=c
4681 ac_cpp='$CPP $CPPFLAGS'
4682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4690 echo "$as_me:$LINENO: result: yes" >&5
4691 echo "${ECHO_T}yes" >&6
4693 CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6
4702 echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4703 echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6
4704 kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
4705 if eval "test \"\${kde_cv_prog_cc_$kde_cache+set}\" = set"; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4711 ac_ext=c
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4717 save_CFLAGS="$CFLAGS"
4718 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4727 main ()
4729 return 0;
4731 return 0;
4733 _ACEOF
4734 rm -f conftest.$ac_objext conftest$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736 (eval $ac_link) 2>conftest.er1
4737 ac_status=$?
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } &&
4743 { ac_try='test -z "$ac_c_werror_flag"
4744 || test ! -s conftest.err'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try='test -s conftest$ac_exeext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 (eval $ac_try) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4756 eval "kde_cv_prog_cc_$kde_cache=yes"
4757 else
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4762 rm -f conftest.err conftest.$ac_objext \
4763 conftest$ac_exeext conftest.$ac_ext
4764 CFLAGS="$save_CFLAGS"
4765 ac_ext=c
4766 ac_cpp='$CPP $CPPFLAGS'
4767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774 if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
4775 echo "$as_me:$LINENO: result: yes" >&5
4776 echo "${ECHO_T}yes" >&6
4778 CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
4779 else
4780 echo "$as_me:$LINENO: result: no" >&5
4781 echo "${ECHO_T}no" >&6
4787 esac
4789 echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
4790 echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6
4791 kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
4792 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4798 ac_ext=cc
4799 ac_cpp='$CXXCPP $CPPFLAGS'
4800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4804 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4807 save_CXXFLAGS="$CXXFLAGS"
4808 CXXFLAGS="$CXXFLAGS -Wundef"
4809 cat >conftest.$ac_ext <<_ACEOF
4810 /* confdefs.h. */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4817 main ()
4819 return 0;
4821 return 0;
4823 _ACEOF
4824 rm -f conftest.$ac_objext conftest$ac_exeext
4825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4826 (eval $ac_link) 2>conftest.er1
4827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try='test -z "$ac_cxx_werror_flag"
4834 || test ! -s conftest.err'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 (eval $ac_try) 2>&5
4837 ac_status=$?
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; } &&
4840 { ac_try='test -s conftest$ac_exeext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 (eval $ac_try) 2>&5
4843 ac_status=$?
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 eval "kde_cv_prog_cxx_$kde_cache=yes"
4847 else
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4852 rm -f conftest.err conftest.$ac_objext \
4853 conftest$ac_exeext conftest.$ac_ext
4854 CXXFLAGS="$save_CXXFLAGS"
4855 ac_ext=c
4856 ac_cpp='$CPP $CPPFLAGS'
4857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4865 echo "$as_me:$LINENO: result: yes" >&5
4866 echo "${ECHO_T}yes" >&6
4868 CXXFLAGS="-Wundef $CXXFLAGS"
4869 else
4870 echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4877 echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
4878 echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6
4879 kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
4880 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4886 ac_ext=cc
4887 ac_cpp='$CXXCPP $CPPFLAGS'
4888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4892 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4895 save_CXXFLAGS="$CXXFLAGS"
4896 CXXFLAGS="$CXXFLAGS -Wno-long-long"
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4905 main ()
4907 return 0;
4909 return 0;
4911 _ACEOF
4912 rm -f conftest.$ac_objext conftest$ac_exeext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4914 (eval $ac_link) 2>conftest.er1
4915 ac_status=$?
4916 grep -v '^ *+' conftest.er1 >conftest.err
4917 rm -f conftest.er1
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -z "$ac_cxx_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try='test -s conftest$ac_exeext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 eval "kde_cv_prog_cxx_$kde_cache=yes"
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4940 rm -f conftest.err conftest.$ac_objext \
4941 conftest$ac_exeext conftest.$ac_ext
4942 CXXFLAGS="$save_CXXFLAGS"
4943 ac_ext=c
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4953 echo "$as_me:$LINENO: result: yes" >&5
4954 echo "${ECHO_T}yes" >&6
4956 CXXFLAGS="-Wno-long-long $CXXFLAGS"
4957 else
4958 echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6
4965 echo "$as_me:$LINENO: checking whether $CXX supports -Wno-non-virtual-dtor" >&5
4966 echo $ECHO_N "checking whether $CXX supports -Wno-non-virtual-dtor... $ECHO_C" >&6
4967 kde_cache=`echo Wno-non-virtual-dtor | sed 'y% .=/+-,%____p__%'`
4968 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4974 ac_ext=cc
4975 ac_cpp='$CXXCPP $CPPFLAGS'
4976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4980 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4983 save_CXXFLAGS="$CXXFLAGS"
4984 CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h. */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4993 main ()
4995 return 0;
4997 return 0;
4999 _ACEOF
5000 rm -f conftest.$ac_objext conftest$ac_exeext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5002 (eval $ac_link) 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try='test -z "$ac_cxx_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest$ac_exeext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 eval "kde_cv_prog_cxx_$kde_cache=yes"
5023 else
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5028 rm -f conftest.err conftest.$ac_objext \
5029 conftest$ac_exeext conftest.$ac_ext
5030 CXXFLAGS="$save_CXXFLAGS"
5031 ac_ext=c
5032 ac_cpp='$CPP $CPPFLAGS'
5033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5041 echo "$as_me:$LINENO: result: yes" >&5
5042 echo "${ECHO_T}yes" >&6
5044 CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5045 else
5046 echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6
5055 if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
5056 CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
5059 # Check whether --enable-pch or --disable-pch was given.
5060 if test "${enable_pch+set}" = set; then
5061 enableval="$enable_pch"
5062 kde_use_pch=$enableval
5063 else
5064 kde_use_pch=no
5067 HAVE_GCC_VISIBILITY=0
5070 if test "$GXX" = "yes"; then
5071 gcc_no_reorder_blocks=NO
5073 echo "$as_me:$LINENO: checking whether $CXX supports -fno-reorder-blocks" >&5
5074 echo $ECHO_N "checking whether $CXX supports -fno-reorder-blocks... $ECHO_C" >&6
5075 kde_cache=`echo fno-reorder-blocks | sed 'y% .=/+-,%____p__%'`
5076 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5082 ac_ext=cc
5083 ac_cpp='$CXXCPP $CPPFLAGS'
5084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5088 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5091 save_CXXFLAGS="$CXXFLAGS"
5092 CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5101 main ()
5103 return 0;
5105 return 0;
5107 _ACEOF
5108 rm -f conftest.$ac_objext conftest$ac_exeext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5110 (eval $ac_link) 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_cxx_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest$ac_exeext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 eval "kde_cv_prog_cxx_$kde_cache=yes"
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5136 rm -f conftest.err conftest.$ac_objext \
5137 conftest$ac_exeext conftest.$ac_ext
5138 CXXFLAGS="$save_CXXFLAGS"
5139 ac_ext=c
5140 ac_cpp='$CPP $CPPFLAGS'
5141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5149 echo "$as_me:$LINENO: result: yes" >&5
5150 echo "${ECHO_T}yes" >&6
5152 gcc_no_reorder_blocks=YES
5153 else
5154 echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6
5160 if test $kde_use_debug_code != "no" && \
5161 test $kde_use_debug_code != "full" && \
5162 test "YES" = "$gcc_no_reorder_blocks" ; then
5163 CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5164 CFLAGS="$CFLAGS -fno-reorder-blocks"
5167 echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
5168 echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6
5169 kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
5170 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5176 ac_ext=cc
5177 ac_cpp='$CXXCPP $CPPFLAGS'
5178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5182 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5185 save_CXXFLAGS="$CXXFLAGS"
5186 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5187 cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h. */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5195 main ()
5197 return 0;
5199 return 0;
5201 _ACEOF
5202 rm -f conftest.$ac_objext conftest$ac_exeext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5204 (eval $ac_link) 2>conftest.er1
5205 ac_status=$?
5206 grep -v '^ *+' conftest.er1 >conftest.err
5207 rm -f conftest.er1
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try='test -z "$ac_cxx_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try='test -s conftest$ac_exeext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 eval "kde_cv_prog_cxx_$kde_cache=yes"
5225 else
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5230 rm -f conftest.err conftest.$ac_objext \
5231 conftest$ac_exeext conftest.$ac_ext
5232 CXXFLAGS="$save_CXXFLAGS"
5233 ac_ext=c
5234 ac_cpp='$CPP $CPPFLAGS'
5235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5242 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5243 echo "$as_me:$LINENO: result: yes" >&5
5244 echo "${ECHO_T}yes" >&6
5246 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5247 else
5248 echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5255 echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
5256 echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6
5257 kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
5258 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5264 ac_ext=cc
5265 ac_cpp='$CXXCPP $CPPFLAGS'
5266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5273 save_CXXFLAGS="$CXXFLAGS"
5274 CXXFLAGS="$CXXFLAGS -fno-check-new"
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5283 main ()
5285 return 0;
5287 return 0;
5289 _ACEOF
5290 rm -f conftest.$ac_objext conftest$ac_exeext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292 (eval $ac_link) 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try='test -z "$ac_cxx_werror_flag"
5300 || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try='test -s conftest$ac_exeext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 (eval $ac_try) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 eval "kde_cv_prog_cxx_$kde_cache=yes"
5313 else
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5318 rm -f conftest.err conftest.$ac_objext \
5319 conftest$ac_exeext conftest.$ac_ext
5320 CXXFLAGS="$save_CXXFLAGS"
5321 ac_ext=c
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5331 echo "$as_me:$LINENO: result: yes" >&5
5332 echo "${ECHO_T}yes" >&6
5334 CXXFLAGS="$CXXFLAGS -fno-check-new"
5335 else
5336 echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6
5343 echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
5344 echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6
5345 kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
5346 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5352 ac_ext=cc
5353 ac_cpp='$CXXCPP $CPPFLAGS'
5354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5358 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5361 save_CXXFLAGS="$CXXFLAGS"
5362 CXXFLAGS="$CXXFLAGS -fno-common"
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h. */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h. */
5371 main ()
5373 return 0;
5375 return 0;
5377 _ACEOF
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5380 (eval $ac_link) 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try='test -z "$ac_cxx_werror_flag"
5388 || test ! -s conftest.err'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest$ac_exeext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 (eval $ac_try) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 eval "kde_cv_prog_cxx_$kde_cache=yes"
5401 else
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5406 rm -f conftest.err conftest.$ac_objext \
5407 conftest$ac_exeext conftest.$ac_ext
5408 CXXFLAGS="$save_CXXFLAGS"
5409 ac_ext=c
5410 ac_cpp='$CPP $CPPFLAGS'
5411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5419 echo "$as_me:$LINENO: result: yes" >&5
5420 echo "${ECHO_T}yes" >&6
5422 CXXFLAGS="$CXXFLAGS -fno-common"
5423 else
5424 echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6
5431 echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
5432 echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6
5433 kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
5434 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5440 ac_ext=cc
5441 ac_cpp='$CXXCPP $CPPFLAGS'
5442 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5443 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5444 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5446 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5449 save_CXXFLAGS="$CXXFLAGS"
5450 CXXFLAGS="$CXXFLAGS -fexceptions"
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5459 main ()
5461 return 0;
5463 return 0;
5465 _ACEOF
5466 rm -f conftest.$ac_objext conftest$ac_exeext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5468 (eval $ac_link) 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try='test -z "$ac_cxx_werror_flag"
5476 || test ! -s conftest.err'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; } &&
5482 { ac_try='test -s conftest$ac_exeext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5488 eval "kde_cv_prog_cxx_$kde_cache=yes"
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5494 rm -f conftest.err conftest.$ac_objext \
5495 conftest$ac_exeext conftest.$ac_ext
5496 CXXFLAGS="$save_CXXFLAGS"
5497 ac_ext=c
5498 ac_cpp='$CPP $CPPFLAGS'
5499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5506 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5507 echo "$as_me:$LINENO: result: yes" >&5
5508 echo "${ECHO_T}yes" >&6
5510 USE_EXCEPTIONS="-fexceptions"
5511 else
5512 echo "$as_me:$LINENO: result: no" >&5
5513 echo "${ECHO_T}no" >&6
5515 USE_EXCEPTIONS=
5518 ENABLE_PERMISSIVE_FLAG="-fpermissive"
5520 if test "$kde_use_pch" = "yes"; then
5521 echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
5522 echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6
5523 echo >conftest.h
5524 if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
5525 kde_gcc_supports_pch=yes
5526 echo "$as_me:$LINENO: result: yes" >&5
5527 echo "${ECHO_T}yes" >&6
5528 else
5529 kde_gcc_supports_pch=no
5530 echo "$as_me:$LINENO: result: no" >&5
5531 echo "${ECHO_T}no" >&6
5533 if test "$kde_gcc_supports_pch" = "yes"; then
5534 echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
5535 echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6
5536 if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
5537 kde_gcc_supports_pch=yes
5538 echo "$as_me:$LINENO: result: yes" >&5
5539 echo "${ECHO_T}yes" >&6
5540 else
5541 kde_gcc_supports_pch=no
5542 echo "$as_me:$LINENO: result: no" >&5
5543 echo "${ECHO_T}no" >&6
5546 rm -f conftest.h conftest.h.gch
5550 echo "$as_me:$LINENO: checking whether system headers can cope with -O2 -fno-inline" >&5
5551 echo $ECHO_N "checking whether system headers can cope with -O2 -fno-inline... $ECHO_C" >&6
5552 if test "${kde_cv_opt_noinline_match+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5556 kde_cv_opt_noinline_match=irrelevant
5557 if echo "$CFLAGS" | grep -e -O2 >/dev/null 2>/dev/null \
5558 && echo "$CFLAGS" | grep -e -fno-inline >/dev/null 2>/dev/null ; then
5560 ac_cflags_save="$CFLAGS"
5561 CFLAGS="$CFLAGS -D_USE_GNU"
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5570 #include <string.h>
5573 main ()
5575 const char *pt, *et;
5576 et = __extension__ ({ char __a0, __a1, __a2; (__builtin_constant_p ( ";," ) && ((size_t)(const void *)(( ";," )+ 1) - (size_t)(const void *)( ";," ) == 1) ? ((__a0 =((__const char *) ( ";," ))[0], __a0 == '\0') ? ((void) ( pt ),((void *)0) ) : ((__a1 = ((__const char *) ( ";," ))[1], __a1== '\0') ? (__extension__ (__builtin_constant_p ( __a0 ) && ( __a0 ) == '\0' ? (char *) __rawmemchr ( pt , __a0) : strchr( pt , __a0 ))) : ((__a2 = ((__const char *) ( ";," ))[2], __a2 == '\0') ? __strpbrk_c2 ( pt , __a0, __a1) :(((__const char *) ( ";," ))[3] == '\0' ? __strpbrk_c3 ( pt ,__a0, __a1, __a2): strpbrk ( pt , ";," ))))) : strpbrk ( pt , ";," )); }) ;
5579 return 0;
5581 _ACEOF
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 (eval $ac_link) 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -z "$ac_c_werror_flag"
5592 || test ! -s conftest.err'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; } &&
5598 { ac_try='test -s conftest$ac_exeext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 kde_cv_opt_noinline_match=yes
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 kde_cv_opt_noinline_match=no
5612 rm -f conftest.err conftest.$ac_objext \
5613 conftest$ac_exeext conftest.$ac_ext
5615 CFLAGS="$ac_cflags_save"
5619 echo "$as_me:$LINENO: result: $kde_cv_opt_noinline_match" >&5
5620 echo "${ECHO_T}$kde_cv_opt_noinline_match" >&6
5622 if test "x$kde_cv_opt_noinline_match" = "xno" ; then
5623 CFLAGS="`echo "$CFLAGS" | sed "s/ -fno-inline//"`"
5628 if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
5629 unsermake_enable_pch_TRUE=
5630 unsermake_enable_pch_FALSE='#'
5631 else
5632 unsermake_enable_pch_TRUE='#'
5633 unsermake_enable_pch_FALSE=
5636 if test "$CXX" = "KCC"; then
5638 if test "$kde_use_pch" = "yes"; then
5640 echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
5641 echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6
5642 kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
5643 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5649 ac_ext=cc
5650 ac_cpp='$CXXCPP $CPPFLAGS'
5651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5655 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5658 save_CXXFLAGS="$CXXFLAGS"
5659 CXXFLAGS="$CXXFLAGS --pch"
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5668 main ()
5670 return 0;
5672 return 0;
5674 _ACEOF
5675 rm -f conftest.$ac_objext conftest$ac_exeext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5677 (eval $ac_link) 2>conftest.er1
5678 ac_status=$?
5679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -z "$ac_cxx_werror_flag"
5685 || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 (eval $ac_try) 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest$ac_exeext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 eval "kde_cv_prog_cxx_$kde_cache=yes"
5698 else
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5703 rm -f conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
5705 CXXFLAGS="$save_CXXFLAGS"
5706 ac_ext=c
5707 ac_cpp='$CPP $CPPFLAGS'
5708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5715 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5716 echo "$as_me:$LINENO: result: yes" >&5
5717 echo "${ECHO_T}yes" >&6
5719 CXXFLAGS="$CXXFLAGS --pch"
5720 else
5721 echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6
5729 echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
5730 echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6
5731 kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
5732 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5738 ac_ext=cc
5739 ac_cpp='$CXXCPP $CPPFLAGS'
5740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5744 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5747 save_CXXFLAGS="$CXXFLAGS"
5748 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
5749 cat >conftest.$ac_ext <<_ACEOF
5750 /* confdefs.h. */
5751 _ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5757 main ()
5759 return 0;
5761 return 0;
5763 _ACEOF
5764 rm -f conftest.$ac_objext conftest$ac_exeext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5766 (eval $ac_link) 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_cxx_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest$ac_exeext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 eval "kde_cv_prog_cxx_$kde_cache=yes"
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5792 rm -f conftest.err conftest.$ac_objext \
5793 conftest$ac_exeext conftest.$ac_ext
5794 CXXFLAGS="$save_CXXFLAGS"
5795 ac_ext=c
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5804 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5805 echo "$as_me:$LINENO: result: yes" >&5
5806 echo "${ECHO_T}yes" >&6
5808 CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
5809 else
5810 echo "$as_me:$LINENO: result: no" >&5
5811 echo "${ECHO_T}no" >&6
5817 echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
5818 echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6
5819 kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
5820 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5826 ac_ext=cc
5827 ac_cpp='$CXXCPP $CPPFLAGS'
5828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5832 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5835 save_CXXFLAGS="$CXXFLAGS"
5836 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5845 main ()
5847 return 0;
5849 return 0;
5851 _ACEOF
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854 (eval $ac_link) 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } &&
5861 { ac_try='test -z "$ac_cxx_werror_flag"
5862 || test ! -s conftest.err'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; } &&
5868 { ac_try='test -s conftest$ac_exeext'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5874 eval "kde_cv_prog_cxx_$kde_cache=yes"
5875 else
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5880 rm -f conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5882 CXXFLAGS="$save_CXXFLAGS"
5883 ac_ext=c
5884 ac_cpp='$CPP $CPPFLAGS'
5885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5893 echo "$as_me:$LINENO: result: yes" >&5
5894 echo "${ECHO_T}yes" >&6
5896 CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
5897 else
5898 echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5905 echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
5906 echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6
5907 kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
5908 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5914 ac_ext=cc
5915 ac_cpp='$CXXCPP $CPPFLAGS'
5916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5920 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5923 save_CXXFLAGS="$CXXFLAGS"
5924 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
5925 cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h. */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5933 main ()
5935 return 0;
5937 return 0;
5939 _ACEOF
5940 rm -f conftest.$ac_objext conftest$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942 (eval $ac_link) 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try='test -z "$ac_cxx_werror_flag"
5950 || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest$ac_exeext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 eval "kde_cv_prog_cxx_$kde_cache=yes"
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5968 rm -f conftest.err conftest.$ac_objext \
5969 conftest$ac_exeext conftest.$ac_ext
5970 CXXFLAGS="$save_CXXFLAGS"
5971 ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5980 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5981 echo "$as_me:$LINENO: result: yes" >&5
5982 echo "${ECHO_T}yes" >&6
5984 CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
5985 else
5986 echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5993 echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
5994 echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6
5995 kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
5996 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
6002 ac_ext=cc
6003 ac_cpp='$CXXCPP $CPPFLAGS'
6004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6008 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6011 save_CXXFLAGS="$CXXFLAGS"
6012 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6013 cat >conftest.$ac_ext <<_ACEOF
6014 /* confdefs.h. */
6015 _ACEOF
6016 cat confdefs.h >>conftest.$ac_ext
6017 cat >>conftest.$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6021 main ()
6023 return 0;
6025 return 0;
6027 _ACEOF
6028 rm -f conftest.$ac_objext conftest$ac_exeext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030 (eval $ac_link) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -z "$ac_cxx_werror_flag"
6038 || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 eval "kde_cv_prog_cxx_$kde_cache=yes"
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f conftest.err conftest.$ac_objext \
6057 conftest$ac_exeext conftest.$ac_ext
6058 CXXFLAGS="$save_CXXFLAGS"
6059 ac_ext=c
6060 ac_cpp='$CPP $CPPFLAGS'
6061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6068 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6069 echo "$as_me:$LINENO: result: yes" >&5
6070 echo "${ECHO_T}yes" >&6
6072 CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6073 else
6074 echo "$as_me:$LINENO: result: no" >&5
6075 echo "${ECHO_T}no" >&6
6081 echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
6082 echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6
6083 kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
6084 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6090 ac_ext=cc
6091 ac_cpp='$CXXCPP $CPPFLAGS'
6092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6096 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6099 save_CXXFLAGS="$CXXFLAGS"
6100 CXXFLAGS="$CXXFLAGS --one_per"
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6109 main ()
6111 return 0;
6113 return 0;
6115 _ACEOF
6116 rm -f conftest.$ac_objext conftest$ac_exeext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6118 (eval $ac_link) 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -z "$ac_cxx_werror_flag"
6126 || test ! -s conftest.err'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; } &&
6132 { ac_try='test -s conftest$ac_exeext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 (eval $ac_try) 2>&5
6135 ac_status=$?
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 eval "kde_cv_prog_cxx_$kde_cache=yes"
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6144 rm -f conftest.err conftest.$ac_objext \
6145 conftest$ac_exeext conftest.$ac_ext
6146 CXXFLAGS="$save_CXXFLAGS"
6147 ac_ext=c
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6157 echo "$as_me:$LINENO: result: yes" >&5
6158 echo "${ECHO_T}yes" >&6
6160 CXXFLAGS="$CXXFLAGS --one_per"
6161 else
6162 echo "$as_me:$LINENO: result: no" >&5
6163 echo "${ECHO_T}no" >&6
6170 USE_RTTI=
6173 case "$host" in
6174 *-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
6175 *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
6176 *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
6177 *-*-solaris*)
6178 if test "$GXX" = yes; then
6179 libstdcpp=`$CXX -print-file-name=libstdc++.so`
6180 if test ! -f $libstdcpp; then
6181 { { 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
6182 echo "$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;}
6183 { (exit 1); exit 1; }; }
6187 esac
6189 if test "x$kde_use_qt_emb" != "xyes"; then
6190 __val=$CXX
6191 __forbid=" -fno-rtti -rpath "
6192 if test -n "$__val"; then
6193 __new=""
6194 ac_save_IFS=$IFS
6195 IFS=" "
6196 for i in $__val; do
6197 case "$__forbid" in
6198 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6199 echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6200 *) # Careful to not add spaces, where there were none, because otherwise
6201 # libtool gets confused, if we change e.g. CXX
6202 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6203 esac
6204 done
6205 IFS=$ac_save_IFS
6206 CXX=$__new
6209 __val=$CXXFLAGS
6210 __forbid=" -fno-rtti -rpath "
6211 if test -n "$__val"; then
6212 __new=""
6213 ac_save_IFS=$IFS
6214 IFS=" "
6215 for i in $__val; do
6216 case "$__forbid" in
6217 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6218 echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6219 *) # Careful to not add spaces, where there were none, because otherwise
6220 # libtool gets confused, if we change e.g. CXX
6221 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6222 esac
6223 done
6224 IFS=$ac_save_IFS
6225 CXXFLAGS=$__new
6228 else
6229 __val=$CXX
6230 __forbid=" -rpath "
6231 if test -n "$__val"; then
6232 __new=""
6233 ac_save_IFS=$IFS
6234 IFS=" "
6235 for i in $__val; do
6236 case "$__forbid" in
6237 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6238 echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6239 *) # Careful to not add spaces, where there were none, because otherwise
6240 # libtool gets confused, if we change e.g. CXX
6241 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6242 esac
6243 done
6244 IFS=$ac_save_IFS
6245 CXX=$__new
6248 __val=$CXXFLAGS
6249 __forbid=" -rpath "
6250 if test -n "$__val"; then
6251 __new=""
6252 ac_save_IFS=$IFS
6253 IFS=" "
6254 for i in $__val; do
6255 case "$__forbid" in
6256 *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6257 echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6258 *) # Careful to not add spaces, where there were none, because otherwise
6259 # libtool gets confused, if we change e.g. CXX
6260 if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6261 esac
6262 done
6263 IFS=$ac_save_IFS
6264 CXXFLAGS=$__new
6270 ac_ext=cc
6271 ac_cpp='$CXXCPP $CPPFLAGS'
6272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6275 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6276 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6277 if test -z "$CXXCPP"; then
6278 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 # Double quotes because CXXCPP needs to be expanded
6282 for CXXCPP in "$CXX -E" "/lib/cpp"
6284 ac_preproc_ok=false
6285 for ac_cxx_preproc_warn_flag in '' yes
6287 # Use a header file that comes with gcc, so configuring glibc
6288 # with a fresh cross-compiler works.
6289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6290 # <limits.h> exists even on freestanding compilers.
6291 # On the NeXT, cc -E runs the code through the compiler's parser,
6292 # not just through cpp. "Syntax error" is here to catch this case.
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #ifdef __STDC__
6300 # include <limits.h>
6301 #else
6302 # include <assert.h>
6303 #endif
6304 Syntax error
6305 _ACEOF
6306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6308 ac_status=$?
6309 grep -v '^ *+' conftest.er1 >conftest.err
6310 rm -f conftest.er1
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } >/dev/null; then
6314 if test -s conftest.err; then
6315 ac_cpp_err=$ac_cxx_preproc_warn_flag
6316 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6317 else
6318 ac_cpp_err=
6320 else
6321 ac_cpp_err=yes
6323 if test -z "$ac_cpp_err"; then
6325 else
6326 echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6329 # Broken: fails on valid input.
6330 continue
6332 rm -f conftest.err conftest.$ac_ext
6334 # OK, works on sane cases. Now check whether non-existent headers
6335 # can be detected and how.
6336 cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h. */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 #include <ac_nonexistent.h>
6343 _ACEOF
6344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6346 ac_status=$?
6347 grep -v '^ *+' conftest.er1 >conftest.err
6348 rm -f conftest.er1
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } >/dev/null; then
6352 if test -s conftest.err; then
6353 ac_cpp_err=$ac_cxx_preproc_warn_flag
6354 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6355 else
6356 ac_cpp_err=
6358 else
6359 ac_cpp_err=yes
6361 if test -z "$ac_cpp_err"; then
6362 # Broken: success on invalid input.
6363 continue
6364 else
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6368 # Passes both tests.
6369 ac_preproc_ok=:
6370 break
6372 rm -f conftest.err conftest.$ac_ext
6374 done
6375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6376 rm -f conftest.err conftest.$ac_ext
6377 if $ac_preproc_ok; then
6378 break
6381 done
6382 ac_cv_prog_CXXCPP=$CXXCPP
6385 CXXCPP=$ac_cv_prog_CXXCPP
6386 else
6387 ac_cv_prog_CXXCPP=$CXXCPP
6389 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6390 echo "${ECHO_T}$CXXCPP" >&6
6391 ac_preproc_ok=false
6392 for ac_cxx_preproc_warn_flag in '' yes
6394 # Use a header file that comes with gcc, so configuring glibc
6395 # with a fresh cross-compiler works.
6396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6397 # <limits.h> exists even on freestanding compilers.
6398 # On the NeXT, cc -E runs the code through the compiler's parser,
6399 # not just through cpp. "Syntax error" is here to catch this case.
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 #ifdef __STDC__
6407 # include <limits.h>
6408 #else
6409 # include <assert.h>
6410 #endif
6411 Syntax error
6412 _ACEOF
6413 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6415 ac_status=$?
6416 grep -v '^ *+' conftest.er1 >conftest.err
6417 rm -f conftest.er1
6418 cat conftest.err >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); } >/dev/null; then
6421 if test -s conftest.err; then
6422 ac_cpp_err=$ac_cxx_preproc_warn_flag
6423 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6424 else
6425 ac_cpp_err=
6427 else
6428 ac_cpp_err=yes
6430 if test -z "$ac_cpp_err"; then
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6436 # Broken: fails on valid input.
6437 continue
6439 rm -f conftest.err conftest.$ac_ext
6441 # OK, works on sane cases. Now check whether non-existent headers
6442 # can be detected and how.
6443 cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h. */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449 #include <ac_nonexistent.h>
6450 _ACEOF
6451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } >/dev/null; then
6459 if test -s conftest.err; then
6460 ac_cpp_err=$ac_cxx_preproc_warn_flag
6461 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6462 else
6463 ac_cpp_err=
6465 else
6466 ac_cpp_err=yes
6468 if test -z "$ac_cpp_err"; then
6469 # Broken: success on invalid input.
6470 continue
6471 else
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6475 # Passes both tests.
6476 ac_preproc_ok=:
6477 break
6479 rm -f conftest.err conftest.$ac_ext
6481 done
6482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6483 rm -f conftest.err conftest.$ac_ext
6484 if $ac_preproc_ok; then
6486 else
6487 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6488 See \`config.log' for more details." >&5
6489 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6490 See \`config.log' for more details." >&2;}
6491 { (exit 1); exit 1; }; }
6494 ac_ext=c
6495 ac_cpp='$CPP $CPPFLAGS'
6496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501 if test "$GCC" = yes; then
6502 NOOPT_CFLAGS=-O0
6505 echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
6506 echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6
6507 kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
6508 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6514 ac_ext=cc
6515 ac_cpp='$CXXCPP $CPPFLAGS'
6516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6520 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6523 save_CXXFLAGS="$CXXFLAGS"
6524 CXXFLAGS="$CXXFLAGS -O0"
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6533 main ()
6535 return 0;
6537 return 0;
6539 _ACEOF
6540 rm -f conftest.$ac_objext conftest$ac_exeext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542 (eval $ac_link) 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_cxx_werror_flag"
6550 || test ! -s conftest.err'
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest$ac_exeext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 eval "kde_cv_prog_cxx_$kde_cache=yes"
6563 else
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6568 rm -f conftest.err conftest.$ac_objext \
6569 conftest$ac_exeext conftest.$ac_ext
6570 CXXFLAGS="$save_CXXFLAGS"
6571 ac_ext=c
6572 ac_cpp='$CPP $CPPFLAGS'
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6580 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6581 echo "$as_me:$LINENO: result: yes" >&5
6582 echo "${ECHO_T}yes" >&6
6584 NOOPT_CXXFLAGS=-O0
6585 else
6586 echo "$as_me:$LINENO: result: no" >&5
6587 echo "${ECHO_T}no" >&6
6593 # Check whether --enable-coverage or --disable-coverage was given.
6594 if test "${enable_coverage+set}" = set; then
6595 enableval="$enable_coverage"
6597 if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
6598 ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
6599 ac_coverage_linker="-lgcc"
6600 elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
6601 ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
6602 ac_coverage_linker=""
6603 else
6604 { { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
6605 echo "$as_me: error: coverage with your compiler is not supported" >&2;}
6606 { (exit 1); exit 1; }; }
6608 CFLAGS="$CFLAGS $ac_coverage_compiler"
6609 CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
6610 LDFLAGS="$LDFLAGS $ac_coverage_linker"
6619 # Check whether --enable-new_ldflags or --disable-new_ldflags was given.
6620 if test "${enable_new_ldflags+set}" = set; then
6621 enableval="$enable_new_ldflags"
6622 kde_use_new_ldflags=$enableval
6623 else
6624 kde_use_new_ldflags=no
6627 LDFLAGS_AS_NEEDED=""
6628 LDFLAGS_NEW_DTAGS=""
6629 if test "x$kde_use_new_ldflags" = "xyes"; then
6630 LDFLAGS_NEW_DTAGS=""
6632 echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
6633 echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6
6634 kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
6635 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6641 ac_ext=cc
6642 ac_cpp='$CXXCPP $CPPFLAGS'
6643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6647 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6650 save_CXXFLAGS="$CXXFLAGS"
6651 CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
6652 cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h. */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6660 main ()
6662 return 0;
6664 return 0;
6666 _ACEOF
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_cxx_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest$ac_exeext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 eval "kde_cv_prog_cxx_$kde_cache=yes"
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6695 rm -f conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
6697 CXXFLAGS="$save_CXXFLAGS"
6698 ac_ext=c
6699 ac_cpp='$CPP $CPPFLAGS'
6700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6707 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6708 echo "$as_me:$LINENO: result: yes" >&5
6709 echo "${ECHO_T}yes" >&6
6711 LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
6712 else
6713 echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6
6721 echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
6722 echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6
6723 kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
6724 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6730 ac_ext=cc
6731 ac_cpp='$CXXCPP $CPPFLAGS'
6732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6736 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6739 save_CXXFLAGS="$CXXFLAGS"
6740 CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
6741 cat >conftest.$ac_ext <<_ACEOF
6742 /* confdefs.h. */
6743 _ACEOF
6744 cat confdefs.h >>conftest.$ac_ext
6745 cat >>conftest.$ac_ext <<_ACEOF
6746 /* end confdefs.h. */
6749 main ()
6751 return 0;
6753 return 0;
6755 _ACEOF
6756 rm -f conftest.$ac_objext conftest$ac_exeext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758 (eval $ac_link) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_cxx_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest$ac_exeext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 eval "kde_cv_prog_cxx_$kde_cache=yes"
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6784 rm -f conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
6786 CXXFLAGS="$save_CXXFLAGS"
6787 ac_ext=c
6788 ac_cpp='$CPP $CPPFLAGS'
6789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6796 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6797 echo "$as_me:$LINENO: result: yes" >&5
6798 echo "${ECHO_T}yes" >&6
6800 LDFLAGS_AS_NEEDED="-Wl,--as-needed"
6801 else
6802 echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6
6813 # Check whether --enable-final or --disable-final was given.
6814 if test "${enable_final+set}" = set; then
6815 enableval="$enable_final"
6816 kde_use_final=$enableval
6817 else
6818 kde_use_final=no
6821 if test "x$kde_use_final" = "xyes"; then
6822 KDE_USE_FINAL_TRUE=""
6823 KDE_USE_FINAL_FALSE="#"
6824 else
6825 KDE_USE_FINAL_TRUE="#"
6826 KDE_USE_FINAL_FALSE=""
6832 # Check whether --enable-closure or --disable-closure was given.
6833 if test "${enable_closure+set}" = set; then
6834 enableval="$enable_closure"
6835 kde_use_closure=$enableval
6836 else
6837 kde_use_closure=no
6840 KDE_NO_UNDEFINED=""
6841 if test "x$kde_use_closure" = "xyes"; then
6842 KDE_USE_CLOSURE_TRUE=""
6843 KDE_USE_CLOSURE_FALSE="#"
6844 # CXXFLAGS="$CXXFLAGS $REPO"
6845 else
6846 KDE_USE_CLOSURE_TRUE="#"
6847 KDE_USE_CLOSURE_FALSE=""
6848 KDE_NO_UNDEFINED=""
6849 case $host in
6850 *-*-linux-gnu)
6852 echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
6853 echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6
6854 kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
6855 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6861 ac_ext=cc
6862 ac_cpp='$CXXCPP $CPPFLAGS'
6863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6867 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6870 save_CXXFLAGS="$CXXFLAGS"
6871 CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h. */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6880 main ()
6882 return 0;
6884 return 0;
6886 _ACEOF
6887 rm -f conftest.$ac_objext conftest$ac_exeext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -z "$ac_cxx_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 eval "kde_cv_prog_cxx_$kde_cache=yes"
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 sed 's/^/| /' conftest.$ac_ext >&5
6915 rm -f conftest.err conftest.$ac_objext \
6916 conftest$ac_exeext conftest.$ac_ext
6917 CXXFLAGS="$save_CXXFLAGS"
6918 ac_ext=c
6919 ac_cpp='$CPP $CPPFLAGS'
6920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6928 echo "$as_me:$LINENO: result: yes" >&5
6929 echo "${ECHO_T}yes" >&6
6932 echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
6933 echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6
6934 kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
6935 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6941 ac_ext=cc
6942 ac_cpp='$CXXCPP $CPPFLAGS'
6943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6947 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6950 save_CXXFLAGS="$CXXFLAGS"
6951 CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6960 main ()
6962 return 0;
6964 return 0;
6966 _ACEOF
6967 rm -f conftest.$ac_objext conftest$ac_exeext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6969 (eval $ac_link) 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -z "$ac_cxx_werror_flag"
6977 || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest$ac_exeext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6989 eval "kde_cv_prog_cxx_$kde_cache=yes"
6990 else
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6995 rm -f conftest.err conftest.$ac_objext \
6996 conftest$ac_exeext conftest.$ac_ext
6997 CXXFLAGS="$save_CXXFLAGS"
6998 ac_ext=c
6999 ac_cpp='$CPP $CPPFLAGS'
7000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7007 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7008 echo "$as_me:$LINENO: result: yes" >&5
7009 echo "${ECHO_T}yes" >&6
7011 KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
7012 else
7013 echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6
7016 KDE_NO_UNDEFINED=""
7019 else
7020 echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6
7023 KDE_NO_UNDEFINED=""
7027 esac
7034 # Check whether --enable-nmcheck or --disable-nmcheck was given.
7035 if test "${enable_nmcheck+set}" = set; then
7036 enableval="$enable_nmcheck"
7037 kde_use_nmcheck=$enableval
7038 else
7039 kde_use_nmcheck=no
7042 if test "$kde_use_nmcheck" = "yes"; then
7043 KDE_USE_NMCHECK_TRUE=""
7044 KDE_USE_NMCHECK_FALSE="#"
7045 else
7046 KDE_USE_NMCHECK_TRUE="#"
7047 KDE_USE_NMCHECK_FALSE=""
7055 # Check whether --enable-shared or --disable-shared was given.
7056 if test "${enable_shared+set}" = set; then
7057 enableval="$enable_shared"
7058 p=${PACKAGE-default}
7059 case $enableval in
7060 yes) enable_shared=yes ;;
7061 no) enable_shared=no ;;
7063 enable_shared=no
7064 # Look at the argument we got. We use all the common list separators.
7065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7066 for pkg in $enableval; do
7067 IFS="$lt_save_ifs"
7068 if test "X$pkg" = "X$p"; then
7069 enable_shared=yes
7071 done
7072 IFS="$lt_save_ifs"
7074 esac
7075 else
7076 enable_shared=yes
7079 # Check whether --enable-static or --disable-static was given.
7080 if test "${enable_static+set}" = set; then
7081 enableval="$enable_static"
7082 p=${PACKAGE-default}
7083 case $enableval in
7084 yes) enable_static=yes ;;
7085 no) enable_static=no ;;
7087 enable_static=no
7088 # Look at the argument we got. We use all the common list separators.
7089 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7090 for pkg in $enableval; do
7091 IFS="$lt_save_ifs"
7092 if test "X$pkg" = "X$p"; then
7093 enable_static=yes
7095 done
7096 IFS="$lt_save_ifs"
7098 esac
7099 else
7100 enable_static=no
7106 kdelibsuff="$kde_libs_suffix"
7107 if test -z "$kdelibsuff"; then
7108 kdelibsuff="no"
7110 # Check whether --enable-libsuffix or --disable-libsuffix was given.
7111 if test "${enable_libsuffix+set}" = set; then
7112 enableval="$enable_libsuffix"
7113 kdelibsuff=$enableval
7116 if test "$kdelibsuff" = "auto"; then
7118 cat > conftest.c << EOF
7119 #include <stdio.h>
7120 int main() {
7121 return 0;
7124 kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne '/libc.so/{
7125 s,.*/lib\([^\/]*\)/.*,\1,
7128 rm -rf conftest.*
7131 if test "$kdelibsuff" = "no" || test "$kdelibsuff" = "none"; then
7132 kdelibsuff=
7134 if test -z "$kdelibsuff"; then
7135 echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
7136 echo "${ECHO_T}not using lib directory suffix" >&6
7138 cat >>confdefs.h <<\_ACEOF
7139 #define KDELIBSUFF ""
7140 _ACEOF
7142 else
7143 if test "$libdir" = '${exec_prefix}/lib'; then
7144 libdir="$libdir${kdelibsuff}"
7145 libdir="$libdir"
7148 cat >>confdefs.h <<_ACEOF
7149 #define KDELIBSUFF "${kdelibsuff}"
7150 _ACEOF
7152 echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
7153 echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6
7156 # Check whether --enable-fast-install or --disable-fast-install was given.
7157 if test "${enable_fast_install+set}" = set; then
7158 enableval="$enable_fast_install"
7159 p=${PACKAGE-default}
7160 case $enableval in
7161 yes) enable_fast_install=yes ;;
7162 no) enable_fast_install=no ;;
7164 enable_fast_install=no
7165 # Look at the argument we got. We use all the common list separators.
7166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7167 for pkg in $enableval; do
7168 IFS="$lt_save_ifs"
7169 if test "X$pkg" = "X$p"; then
7170 enable_fast_install=yes
7172 done
7173 IFS="$lt_save_ifs"
7175 esac
7176 else
7177 enable_fast_install=yes
7180 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7181 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
7182 if test "${lt_cv_path_SED+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185 # Loop through the user's path and test for sed and gsed.
7186 # Then use that list of sed's as ones to test for truncation.
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for lt_ac_prog in sed gsed; do
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7195 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7197 done
7198 done
7199 done
7200 lt_ac_max=0
7201 lt_ac_count=0
7202 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7203 # along with /bin/sed that truncates output.
7204 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7205 test ! -f $lt_ac_sed && break
7206 cat /dev/null > conftest.in
7207 lt_ac_count=0
7208 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7209 # Check for GNU sed and select it if it is found.
7210 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7211 lt_cv_path_SED=$lt_ac_sed
7212 break
7214 while true; do
7215 cat conftest.in conftest.in >conftest.tmp
7216 mv conftest.tmp conftest.in
7217 cp conftest.in conftest.nl
7218 echo >>conftest.nl
7219 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7220 cmp -s conftest.out conftest.nl || break
7221 # 10000 chars as input seems more than enough
7222 test $lt_ac_count -gt 10 && break
7223 lt_ac_count=`expr $lt_ac_count + 1`
7224 if test $lt_ac_count -gt $lt_ac_max; then
7225 lt_ac_max=$lt_ac_count
7226 lt_cv_path_SED=$lt_ac_sed
7228 done
7229 done
7233 SED=$lt_cv_path_SED
7234 echo "$as_me:$LINENO: result: $SED" >&5
7235 echo "${ECHO_T}$SED" >&6
7237 echo "$as_me:$LINENO: checking for egrep" >&5
7238 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7239 if test "${ac_cv_prog_egrep+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7243 then ac_cv_prog_egrep='grep -E'
7244 else ac_cv_prog_egrep='egrep'
7247 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7248 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7249 EGREP=$ac_cv_prog_egrep
7253 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7254 if test "${with_gnu_ld+set}" = set; then
7255 withval="$with_gnu_ld"
7256 test "$withval" = no || with_gnu_ld=yes
7257 else
7258 with_gnu_ld=no
7260 ac_prog=ld
7261 if test "$GCC" = yes; then
7262 # Check if gcc -print-prog-name=ld gives a path.
7263 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7264 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7265 case $host in
7266 *-*-mingw*)
7267 # gcc leaves a trailing carriage return which upsets mingw
7268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7271 esac
7272 case $ac_prog in
7273 # Accept absolute paths.
7274 [\\/]* | ?:[\\/]*)
7275 re_direlt='/[^/][^/]*/\.\./'
7276 # Canonicalize the pathname of ld
7277 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7278 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7279 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7280 done
7281 test -z "$LD" && LD="$ac_prog"
7284 # If it fails, then pretend we aren't using GCC.
7285 ac_prog=ld
7288 # If it is relative, then search for the first ld in PATH.
7289 with_gnu_ld=unknown
7291 esac
7292 elif test "$with_gnu_ld" = yes; then
7293 echo "$as_me:$LINENO: checking for GNU ld" >&5
7294 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7295 else
7296 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7297 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7299 if test "${lt_cv_path_LD+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 if test -z "$LD"; then
7303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7304 for ac_dir in $PATH; do
7305 IFS="$lt_save_ifs"
7306 test -z "$ac_dir" && ac_dir=.
7307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7308 lt_cv_path_LD="$ac_dir/$ac_prog"
7309 # Check to see if the program is GNU ld. I'd rather use --version,
7310 # but apparently some GNU ld's only accept -v.
7311 # Break only if it was the GNU/non-GNU ld that we prefer.
7312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7313 *GNU* | *'with BFD'*)
7314 test "$with_gnu_ld" != no && break
7317 test "$with_gnu_ld" != yes && break
7319 esac
7321 done
7322 IFS="$lt_save_ifs"
7323 else
7324 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7328 LD="$lt_cv_path_LD"
7329 if test -n "$LD"; then
7330 echo "$as_me:$LINENO: result: $LD" >&5
7331 echo "${ECHO_T}$LD" >&6
7332 else
7333 echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7336 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7337 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7338 { (exit 1); exit 1; }; }
7339 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7340 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7341 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7345 case `$LD -v 2>&1 </dev/null` in
7346 *GNU* | *'with BFD'*)
7347 lt_cv_prog_gnu_ld=yes
7350 lt_cv_prog_gnu_ld=no
7352 esac
7354 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7355 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7356 with_gnu_ld=$lt_cv_prog_gnu_ld
7359 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7360 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7361 if test "${lt_cv_ld_reload_flag+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364 lt_cv_ld_reload_flag='-r'
7366 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7367 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7368 reload_flag=$lt_cv_ld_reload_flag
7369 case $reload_flag in
7370 "" | " "*) ;;
7371 *) reload_flag=" $reload_flag" ;;
7372 esac
7373 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7375 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7376 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7377 if test "${lt_cv_path_NM+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 if test -n "$NM"; then
7381 # Let the user override the test.
7382 lt_cv_path_NM="$NM"
7383 else
7384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7385 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7386 IFS="$lt_save_ifs"
7387 test -z "$ac_dir" && ac_dir=.
7388 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7389 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7390 # Check to see if the nm accepts a BSD-compat flag.
7391 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7392 # nm: unknown option "B" ignored
7393 # Tru64's nm complains that /dev/null is an invalid object file
7394 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7395 */dev/null* | *'Invalid file or object type'*)
7396 lt_cv_path_NM="$tmp_nm -B"
7397 break
7400 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7401 */dev/null*)
7402 lt_cv_path_NM="$tmp_nm -p"
7403 break
7406 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7407 continue # so that we can try to find one that supports BSD flags
7409 esac
7410 esac
7412 done
7413 IFS="$lt_save_ifs"
7414 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7417 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7418 echo "${ECHO_T}$lt_cv_path_NM" >&6
7419 NM="$lt_cv_path_NM"
7421 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7422 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7423 LN_S=$as_ln_s
7424 if test "$LN_S" = "ln -s"; then
7425 echo "$as_me:$LINENO: result: yes" >&5
7426 echo "${ECHO_T}yes" >&6
7427 else
7428 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7429 echo "${ECHO_T}no, using $LN_S" >&6
7432 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7433 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7434 if test "${lt_cv_deplibs_check_method+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437 lt_cv_file_magic_cmd='$MAGIC_CMD'
7438 lt_cv_file_magic_test_file=
7439 lt_cv_deplibs_check_method='unknown'
7440 # Need to set the preceding variable on all platforms that support
7441 # interlibrary dependencies.
7442 # 'none' -- dependencies not supported.
7443 # `unknown' -- same as none, but documents that we really don't know.
7444 # 'pass_all' -- all dependencies passed with no checks.
7445 # 'test_compile' -- check by making test program.
7446 # 'file_magic [[regex]]' -- check by looking for files in library path
7447 # which responds to the $file_magic_cmd with a given extended regex.
7448 # If you have `file' or equivalent on your system and you're not sure
7449 # whether `pass_all' will *always* work, you probably want this one.
7451 case $host_os in
7452 aix4* | aix5*)
7453 lt_cv_deplibs_check_method=pass_all
7456 beos*)
7457 lt_cv_deplibs_check_method=pass_all
7460 bsdi4*)
7461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7462 lt_cv_file_magic_cmd='/usr/bin/file -L'
7463 lt_cv_file_magic_test_file=/shlib/libc.so
7466 cygwin*)
7467 lt_cv_deplibs_check_method=pass_all
7470 mingw* | pw32*)
7471 # win32_libid is a shell function defined in ltmain.sh
7472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7473 lt_cv_file_magic_cmd='win32_libid'
7476 darwin* | rhapsody*)
7477 # this will be overwritten by pass_all, but leave it in just in case
7478 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
7479 lt_cv_file_magic_cmd='/usr/bin/file -L'
7480 case "$host_os" in
7481 rhapsody* | darwin1.[012])
7482 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
7484 *) # Darwin 1.3 on
7485 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
7487 esac
7488 lt_cv_deplibs_check_method=pass_all
7491 freebsd* | kfreebsd*-gnu)
7492 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7493 case $host_cpu in
7494 i*86 )
7495 # Not sure whether the presence of OpenBSD here was a mistake.
7496 # Let's accept both of them until this is cleared up.
7497 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7498 lt_cv_file_magic_cmd=/usr/bin/file
7499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7501 esac
7502 else
7503 lt_cv_deplibs_check_method=pass_all
7507 gnu*)
7508 lt_cv_deplibs_check_method=pass_all
7511 hpux10.20* | hpux11*)
7512 lt_cv_file_magic_cmd=/usr/bin/file
7513 case "$host_cpu" in
7514 ia64*)
7515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7518 hppa*64*)
7519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7524 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7526 esac
7529 irix5* | irix6* | nonstopux*)
7530 case $host_os in
7531 irix5* | nonstopux*)
7532 # this will be overridden with pass_all, but let us keep it just in case
7533 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
7536 case $LD in
7537 *-32|*"-32 ") libmagic=32-bit;;
7538 *-n32|*"-n32 ") libmagic=N32;;
7539 *-64|*"-64 ") libmagic=64-bit;;
7540 *) libmagic=never-match;;
7541 esac
7542 # this will be overridden with pass_all, but let us keep it just in case
7543 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
7545 esac
7546 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
7547 lt_cv_deplibs_check_method=pass_all
7550 # This must be Linux ELF.
7551 linux*)
7552 case $host_cpu in
7553 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
7554 lt_cv_deplibs_check_method=pass_all ;;
7555 # the debian people say, arm and glibc 2.3.1 works for them with pass_all
7556 arm* )
7557 lt_cv_deplibs_check_method=pass_all ;;
7559 # glibc up to 2.1.1 does not perform some relocations on ARM
7560 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
7561 esac
7562 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
7565 netbsd*)
7566 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7568 else
7569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7573 newos6*)
7574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7575 lt_cv_file_magic_cmd=/usr/bin/file
7576 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7579 nto-qnx*)
7580 lt_cv_deplibs_check_method=unknown
7583 openbsd*)
7584 lt_cv_file_magic_cmd=/usr/bin/file
7585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
7588 else
7589 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
7593 osf3* | osf4* | osf5*)
7594 # this will be overridden with pass_all, but let us keep it just in case
7595 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
7596 lt_cv_file_magic_test_file=/shlib/libc.so
7597 lt_cv_deplibs_check_method=pass_all
7600 sco3.2v5*)
7601 lt_cv_deplibs_check_method=pass_all
7604 solaris*)
7605 lt_cv_deplibs_check_method=pass_all
7606 lt_cv_file_magic_test_file=/lib/libc.so
7609 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7610 case $host_vendor in
7611 motorola)
7612 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]'
7613 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7615 ncr)
7616 lt_cv_deplibs_check_method=pass_all
7618 sequent)
7619 lt_cv_file_magic_cmd='/bin/file'
7620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7622 sni)
7623 lt_cv_file_magic_cmd='/bin/file'
7624 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7625 lt_cv_file_magic_test_file=/lib/libc.so
7627 siemens)
7628 lt_cv_deplibs_check_method=pass_all
7630 esac
7633 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
7634 lt_cv_deplibs_check_method=pass_all
7636 esac
7639 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7640 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7641 file_magic_cmd=$lt_cv_file_magic_cmd
7642 deplibs_check_method=$lt_cv_deplibs_check_method
7643 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7646 # If no C compiler was specified, use CC.
7647 LTCC=${LTCC-"$CC"}
7649 # Allow CC to be a program name with arguments.
7650 compiler=$CC
7652 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7653 if test "${enable_libtool_lock+set}" = set; then
7654 enableval="$enable_libtool_lock"
7657 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7659 # Some flags need to be propagated to the compiler or linker for good
7660 # libtool support.
7661 case $host in
7662 ia64-*-hpux*)
7663 # Find out which ABI we are using.
7664 echo 'int i;' > conftest.$ac_ext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7666 (eval $ac_compile) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; then
7670 case `/usr/bin/file conftest.$ac_objext` in
7671 *ELF-32*)
7672 HPUX_IA64_MODE="32"
7674 *ELF-64*)
7675 HPUX_IA64_MODE="64"
7677 esac
7679 rm -rf conftest*
7681 *-*-irix6*)
7682 # Find out which ABI we are using.
7683 echo '#line 7683 "configure"' > conftest.$ac_ext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7685 (eval $ac_compile) 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; then
7689 if test "$lt_cv_prog_gnu_ld" = yes; then
7690 case `/usr/bin/file conftest.$ac_objext` in
7691 *32-bit*)
7692 LD="${LD-ld} -melf32bsmip"
7694 *N32*)
7695 LD="${LD-ld} -melf32bmipn32"
7697 *64-bit*)
7698 LD="${LD-ld} -melf64bmip"
7700 esac
7701 else
7702 case `/usr/bin/file conftest.$ac_objext` in
7703 *32-bit*)
7704 LD="${LD-ld} -32"
7706 *N32*)
7707 LD="${LD-ld} -n32"
7709 *64-bit*)
7710 LD="${LD-ld} -64"
7712 esac
7715 rm -rf conftest*
7718 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7719 # Find out which ABI we are using.
7720 echo 'int i;' > conftest.$ac_ext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7722 (eval $ac_compile) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; then
7726 case "`/usr/bin/file conftest.o`" in
7727 *32-bit*)
7728 LINUX_64_MODE="32"
7729 case $host in
7730 x86_64-*linux*)
7731 LD="${LD-ld} -m elf_i386"
7733 ppc64-*linux*)
7734 LD="${LD-ld} -m elf32ppclinux"
7736 s390x-*linux*)
7737 LD="${LD-ld} -m elf_s390"
7739 sparc64-*linux*)
7740 LD="${LD-ld} -m elf32_sparc"
7742 esac
7744 *64-bit*)
7745 LINUX_64_MODE="64"
7746 case $host in
7747 x86_64-*linux*)
7748 LD="${LD-ld} -m elf_x86_64"
7750 ppc*-*linux*|powerpc*-*linux*)
7751 LD="${LD-ld} -m elf64ppc"
7753 s390*-*linux*)
7754 LD="${LD-ld} -m elf64_s390"
7756 sparc*-*linux*)
7757 LD="${LD-ld} -m elf64_sparc"
7759 esac
7761 esac
7763 rm -rf conftest*
7766 *-*-sco3.2v5*)
7767 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7768 SAVE_CFLAGS="$CFLAGS"
7769 CFLAGS="$CFLAGS -belf"
7770 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7771 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7772 if test "${lt_cv_cc_needs_belf+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775 ac_ext=c
7776 ac_cpp='$CPP $CPPFLAGS'
7777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7781 cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h. */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7789 main ()
7793 return 0;
7795 _ACEOF
7796 rm -f conftest.$ac_objext conftest$ac_exeext
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } &&
7805 { ac_try='test -z "$ac_c_werror_flag"
7806 || test ! -s conftest.err'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808 (eval $ac_try) 2>&5
7809 ac_status=$?
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; } &&
7812 { ac_try='test -s conftest$ac_exeext'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7814 (eval $ac_try) 2>&5
7815 ac_status=$?
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818 lt_cv_cc_needs_belf=yes
7819 else
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 lt_cv_cc_needs_belf=no
7825 rm -f conftest.err conftest.$ac_objext \
7826 conftest$ac_exeext conftest.$ac_ext
7827 ac_ext=c
7828 ac_cpp='$CPP $CPPFLAGS'
7829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7835 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7836 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7837 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7838 CFLAGS="$SAVE_CFLAGS"
7842 esac
7844 need_locks="$enable_libtool_lock"
7848 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7850 if test "${ac_cv_header_stdc+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 #include <stdlib.h>
7860 #include <stdarg.h>
7861 #include <string.h>
7862 #include <float.h>
7865 main ()
7869 return 0;
7871 _ACEOF
7872 rm -f conftest.$ac_objext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7874 (eval $ac_compile) 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag"
7882 || test ! -s conftest.err'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 (eval $ac_try) 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; } &&
7888 { ac_try='test -s conftest.$ac_objext'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 (eval $ac_try) 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 ac_cv_header_stdc=yes
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 ac_cv_header_stdc=no
7901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7903 if test $ac_cv_header_stdc = yes; then
7904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7905 cat >conftest.$ac_ext <<_ACEOF
7906 /* confdefs.h. */
7907 _ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 #include <string.h>
7913 _ACEOF
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915 $EGREP "memchr" >/dev/null 2>&1; then
7917 else
7918 ac_cv_header_stdc=no
7920 rm -f conftest*
7924 if test $ac_cv_header_stdc = yes; then
7925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h. */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 #include <stdlib.h>
7934 _ACEOF
7935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7936 $EGREP "free" >/dev/null 2>&1; then
7938 else
7939 ac_cv_header_stdc=no
7941 rm -f conftest*
7945 if test $ac_cv_header_stdc = yes; then
7946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7947 if test "$cross_compiling" = yes; then
7949 else
7950 cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h. */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 #include <ctype.h>
7957 #if ((' ' & 0x0FF) == 0x020)
7958 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7959 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7960 #else
7961 # define ISLOWER(c) \
7962 (('a' <= (c) && (c) <= 'i') \
7963 || ('j' <= (c) && (c) <= 'r') \
7964 || ('s' <= (c) && (c) <= 'z'))
7965 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7966 #endif
7968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7970 main ()
7972 int i;
7973 for (i = 0; i < 256; i++)
7974 if (XOR (islower (i), ISLOWER (i))
7975 || toupper (i) != TOUPPER (i))
7976 exit(2);
7977 exit (0);
7979 _ACEOF
7980 rm -f conftest$ac_exeext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7982 (eval $ac_link) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 (eval $ac_try) 2>&5
7988 ac_status=$?
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7992 else
7993 echo "$as_me: program exited with status $ac_status" >&5
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 ( exit $ac_status )
7998 ac_cv_header_stdc=no
8000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8004 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8005 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8006 if test $ac_cv_header_stdc = yes; then
8008 cat >>confdefs.h <<\_ACEOF
8009 #define STDC_HEADERS 1
8010 _ACEOF
8014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8024 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8025 inttypes.h stdint.h unistd.h
8027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8028 echo "$as_me:$LINENO: checking for $ac_header" >&5
8029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8041 #include <$ac_header>
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_c_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 eval "$as_ac_Header=yes"
8066 else
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 eval "$as_ac_Header=no"
8072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8077 cat >>confdefs.h <<_ACEOF
8078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8079 _ACEOF
8083 done
8087 for ac_header in dlfcn.h
8089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8091 echo "$as_me:$LINENO: checking for $ac_header" >&5
8092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8098 else
8099 # Is the header compilable?
8100 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8102 cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h. */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 $ac_includes_default
8109 #include <$ac_header>
8110 _ACEOF
8111 rm -f conftest.$ac_objext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113 (eval $ac_compile) 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag"
8121 || test ! -s conftest.err'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest.$ac_objext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 (eval $ac_try) 2>&5
8130 ac_status=$?
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_header_compiler=yes
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_header_compiler=no
8140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8141 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8142 echo "${ECHO_T}$ac_header_compiler" >&6
8144 # Is the header present?
8145 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8146 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 #include <$ac_header>
8154 _ACEOF
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } >/dev/null; then
8163 if test -s conftest.err; then
8164 ac_cpp_err=$ac_c_preproc_warn_flag
8165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8166 else
8167 ac_cpp_err=
8169 else
8170 ac_cpp_err=yes
8172 if test -z "$ac_cpp_err"; then
8173 ac_header_preproc=yes
8174 else
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_header_preproc=no
8180 rm -f conftest.err conftest.$ac_ext
8181 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8182 echo "${ECHO_T}$ac_header_preproc" >&6
8184 # So? What about this header?
8185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8186 yes:no: )
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8191 ac_header_preproc=yes
8193 no:yes:* )
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8201 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8207 cat <<\_ASBOX
8208 ## ------------------------------------------ ##
8209 ## Report this to the AC_PACKAGE_NAME lists. ##
8210 ## ------------------------------------------ ##
8211 _ASBOX
8213 sed "s/^/$as_me: WARNING: /" >&2
8215 esac
8216 echo "$as_me:$LINENO: checking for $ac_header" >&5
8217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 eval "$as_ac_Header=\$ac_header_preproc"
8223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8230 _ACEOF
8234 done
8236 ac_ext=f
8237 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8238 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8239 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8240 if test -n "$ac_tool_prefix"; then
8241 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8245 echo "$as_me:$LINENO: checking for $ac_word" >&5
8246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8247 if test "${ac_cv_prog_F77+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250 if test -n "$F77"; then
8251 ac_cv_prog_F77="$F77" # Let the user override the test.
8252 else
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8256 IFS=$as_save_IFS
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8260 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 break 2
8264 done
8265 done
8269 F77=$ac_cv_prog_F77
8270 if test -n "$F77"; then
8271 echo "$as_me:$LINENO: result: $F77" >&5
8272 echo "${ECHO_T}$F77" >&6
8273 else
8274 echo "$as_me:$LINENO: result: no" >&5
8275 echo "${ECHO_T}no" >&6
8278 test -n "$F77" && break
8279 done
8281 if test -z "$F77"; then
8282 ac_ct_F77=$F77
8283 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8285 # Extract the first word of "$ac_prog", so it can be a program name with args.
8286 set dummy $ac_prog; ac_word=$2
8287 echo "$as_me:$LINENO: checking for $ac_word" >&5
8288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8289 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292 if test -n "$ac_ct_F77"; then
8293 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302 ac_cv_prog_ac_ct_F77="$ac_prog"
8303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8306 done
8307 done
8311 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8312 if test -n "$ac_ct_F77"; then
8313 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8314 echo "${ECHO_T}$ac_ct_F77" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317 echo "${ECHO_T}no" >&6
8320 test -n "$ac_ct_F77" && break
8321 done
8323 F77=$ac_ct_F77
8327 # Provide some information about the compiler.
8328 echo "$as_me:8328:" \
8329 "checking for Fortran 77 compiler version" >&5
8330 ac_compiler=`set X $ac_compile; echo $2`
8331 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8332 (eval $ac_compiler --version </dev/null >&5) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }
8336 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8337 (eval $ac_compiler -v </dev/null >&5) 2>&5
8338 ac_status=$?
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }
8341 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8342 (eval $ac_compiler -V </dev/null >&5) 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }
8346 rm -f a.out
8348 # If we don't use `.F' as extension, the preprocessor is not run on the
8349 # input file. (Note that this only needs to work for GNU compilers.)
8350 ac_save_ext=$ac_ext
8351 ac_ext=F
8352 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8353 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8354 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 else
8357 cat >conftest.$ac_ext <<_ACEOF
8358 program main
8359 #ifndef __GNUC__
8360 choke me
8361 #endif
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367 (eval $ac_compile) 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_f77_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest.$ac_objext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_compiler_gnu=yes
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 ac_compiler_gnu=no
8394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8395 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8398 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8399 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8400 ac_ext=$ac_save_ext
8401 ac_test_FFLAGS=${FFLAGS+set}
8402 ac_save_FFLAGS=$FFLAGS
8403 FFLAGS=
8404 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8405 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8406 if test "${ac_cv_prog_f77_g+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409 FFLAGS=-g
8410 cat >conftest.$ac_ext <<_ACEOF
8411 program main
8414 _ACEOF
8415 rm -f conftest.$ac_objext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8417 (eval $ac_compile) 2>conftest.er1
8418 ac_status=$?
8419 grep -v '^ *+' conftest.er1 >conftest.err
8420 rm -f conftest.er1
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } &&
8424 { ac_try='test -z "$ac_f77_werror_flag"
8425 || test ! -s conftest.err'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 (eval $ac_try) 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; } &&
8431 { ac_try='test -s conftest.$ac_objext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_cv_prog_f77_g=yes
8438 else
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 ac_cv_prog_f77_g=no
8444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8447 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8448 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8449 if test "$ac_test_FFLAGS" = set; then
8450 FFLAGS=$ac_save_FFLAGS
8451 elif test $ac_cv_prog_f77_g = yes; then
8452 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8453 FFLAGS="-g -O2"
8454 else
8455 FFLAGS="-g"
8457 else
8458 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8459 FFLAGS="-O2"
8460 else
8461 FFLAGS=
8465 G77=`test $ac_compiler_gnu = yes && echo yes`
8466 ac_ext=c
8467 ac_cpp='$CPP $CPPFLAGS'
8468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8474 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8476 # find the maximum length of command line arguments
8477 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8478 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8479 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8483 testring="ABCD"
8485 case $build_os in
8486 msdosdjgpp*)
8487 # On DJGPP, this test can blow up pretty badly due to problems in libc
8488 # (any single argument exceeding 2000 bytes causes a buffer overrun
8489 # during glob expansion). Even if it were fixed, the result of this
8490 # check would be larger than it should be.
8491 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8494 gnu*)
8495 # Under GNU Hurd, this test is not required because there is
8496 # no limit to the length of command line arguments.
8497 # Libtool will interpret -1 as no limit whatsoever
8498 lt_cv_sys_max_cmd_len=-1;
8501 cygwin* | mingw*)
8502 # On Win9x/ME, this test blows up -- it succeeds, but takes
8503 # about 5 minutes as the teststring grows exponentially.
8504 # Worse, since 9x/ME are not pre-emptively multitasking,
8505 # you end up with a "frozen" computer, even though with patience
8506 # the test eventually succeeds (with a max line length of 256k).
8507 # Instead, let's just punt: use the minimum linelength reported by
8508 # all of the supported platforms: 8192 (on NT/2K/XP).
8509 lt_cv_sys_max_cmd_len=8192;
8513 # If test is not a shell built-in, we'll probably end up computing a
8514 # maximum length that is only half of the actual maximum length, but
8515 # we can't tell.
8516 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
8517 = "XX$testring") >/dev/null 2>&1 &&
8518 new_result=`expr "X$testring" : ".*" 2>&1` &&
8519 lt_cv_sys_max_cmd_len=$new_result &&
8520 test $i != 17 # 1/2 MB should be enough
8522 i=`expr $i + 1`
8523 testring=$testring$testring
8524 done
8525 testring=
8526 # Add a significant safety factor because C++ compilers can tack on massive
8527 # amounts of additional arguments before passing them to the linker.
8528 # It appears as though 1/2 is a usable value.
8529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8531 esac
8535 if test -n $lt_cv_sys_max_cmd_len ; then
8536 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8537 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8538 else
8539 echo "$as_me:$LINENO: result: none" >&5
8540 echo "${ECHO_T}none" >&6
8546 # Check for command to grab the raw symbol name followed by C symbol from nm.
8547 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8548 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8549 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8553 # These are sane defaults that work on at least a few old systems.
8554 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8556 # Character class describing NM global symbol codes.
8557 symcode='[BCDEGRST]'
8559 # Regexp to match symbols that can be accessed directly from C.
8560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8562 # Transform the above into a raw symbol and a C symbol.
8563 symxfrm='\1 \2\3 \3'
8565 # Transform an extracted symbol line into a proper C declaration
8566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8568 # Transform an extracted symbol line into symbol name and symbol address
8569 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'"
8571 # Define system-specific variables.
8572 case $host_os in
8573 aix*)
8574 symcode='[BCDT]'
8576 cygwin* | mingw* | pw32*)
8577 symcode='[ABCDGISTW]'
8579 hpux*) # Its linker distinguishes data from code symbols
8580 if test "$host_cpu" = ia64; then
8581 symcode='[ABCDEGRST]'
8583 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8584 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'"
8586 irix* | nonstopux*)
8587 symcode='[BCDEGRST]'
8589 osf*)
8590 symcode='[BCDEGQRST]'
8592 solaris* | sysv5*)
8593 symcode='[BDT]'
8595 sysv4)
8596 symcode='[DFNSTU]'
8598 esac
8600 # Handle CRLF in mingw tool chain
8601 opt_cr=
8602 case $build_os in
8603 mingw*)
8604 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8606 esac
8608 # If we're using GNU nm, then use its standard symbol codes.
8609 case `$NM -V 2>&1` in
8610 *GNU* | *'with BFD'*)
8611 symcode='[ABCDGISTW]' ;;
8612 esac
8614 # Try without a prefix undercore, then with it.
8615 for ac_symprfx in "" "_"; do
8617 # Write the raw and C identifiers.
8618 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
8620 # Check to see that the pipe works correctly.
8621 pipe_works=no
8623 rm -f conftest*
8624 cat > conftest.$ac_ext <<EOF
8625 #ifdef __cplusplus
8626 extern "C" {
8627 #endif
8628 char nm_test_var;
8629 void nm_test_func(){}
8630 #ifdef __cplusplus
8632 #endif
8633 int main(){nm_test_var='a';nm_test_func();return(0);}
8636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8637 (eval $ac_compile) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; then
8641 # Now try to grab the symbols.
8642 nlist=conftest.nm
8643 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8644 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && test -s "$nlist"; then
8648 # Try sorting and uniquifying the output.
8649 if sort "$nlist" | uniq > "$nlist"T; then
8650 mv -f "$nlist"T "$nlist"
8651 else
8652 rm -f "$nlist"T
8655 # Make sure that we snagged all the symbols we need.
8656 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8657 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8658 cat <<EOF > conftest.$ac_ext
8659 #ifdef __cplusplus
8660 extern "C" {
8661 #endif
8664 # Now generate the symbol file.
8665 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8667 cat <<EOF >> conftest.$ac_ext
8668 #if defined (__STDC__) && __STDC__
8669 # define lt_ptr_t void *
8670 #else
8671 # define lt_ptr_t char *
8672 # define const
8673 #endif
8675 /* The mapping between symbol names and symbols. */
8676 const struct {
8677 const char *name;
8678 lt_ptr_t address;
8680 lt_preloaded_symbols[] =
8683 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8684 cat <<\EOF >> conftest.$ac_ext
8685 {0, (lt_ptr_t) 0}
8688 #ifdef __cplusplus
8690 #endif
8692 # Now try linking the two files.
8693 mv conftest.$ac_objext conftstm.$ac_objext
8694 lt_save_LIBS="$LIBS"
8695 lt_save_CFLAGS="$CFLAGS"
8696 LIBS="conftstm.$ac_objext"
8697 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8699 (eval $ac_link) 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8703 pipe_works=yes
8705 LIBS="$lt_save_LIBS"
8706 CFLAGS="$lt_save_CFLAGS"
8707 else
8708 echo "cannot find nm_test_func in $nlist" >&5
8710 else
8711 echo "cannot find nm_test_var in $nlist" >&5
8713 else
8714 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8716 else
8717 echo "$progname: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8720 rm -f conftest* conftst*
8722 # Do not use the global_symbol_pipe unless it works.
8723 if test "$pipe_works" = yes; then
8724 break
8725 else
8726 lt_cv_sys_global_symbol_pipe=
8728 done
8732 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8733 lt_cv_sys_global_symbol_to_cdecl=
8735 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8736 echo "$as_me:$LINENO: result: failed" >&5
8737 echo "${ECHO_T}failed" >&6
8738 else
8739 echo "$as_me:$LINENO: result: ok" >&5
8740 echo "${ECHO_T}ok" >&6
8743 echo "$as_me:$LINENO: checking for objdir" >&5
8744 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8745 if test "${lt_cv_objdir+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748 rm -f .libs 2>/dev/null
8749 mkdir .libs 2>/dev/null
8750 if test -d .libs; then
8751 lt_cv_objdir=.libs
8752 else
8753 # MS-DOS does not allow filenames that begin with a dot.
8754 lt_cv_objdir=_libs
8756 rmdir .libs 2>/dev/null
8758 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8759 echo "${ECHO_T}$lt_cv_objdir" >&6
8760 objdir=$lt_cv_objdir
8766 case $host_os in
8767 aix3*)
8768 # AIX sometimes has problems with the GCC collect2 program. For some
8769 # reason, if we set the COLLECT_NAMES environment variable, the problems
8770 # vanish in a puff of smoke.
8771 if test "X${COLLECT_NAMES+set}" != Xset; then
8772 COLLECT_NAMES=
8773 export COLLECT_NAMES
8776 esac
8778 # Sed substitution that helps us do robust quoting. It backslashifies
8779 # metacharacters that are still active within double-quoted strings.
8780 Xsed='sed -e s/^X//'
8781 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8783 # Same as above, but do not quote variable references.
8784 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8786 # Sed substitution to delay expansion of an escaped shell variable in a
8787 # double_quote_subst'ed string.
8788 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8790 # Sed substitution to avoid accidental globbing in evaled expressions
8791 no_glob_subst='s/\*/\\\*/g'
8793 # Constants:
8794 rm="rm -f"
8796 # Global variables:
8797 default_ofile=libtool
8798 can_build_shared=yes
8800 # All known linkers require a `.a' archive for static linking (except M$VC,
8801 # which needs '.lib').
8802 libext=a
8803 ltmain="$ac_aux_dir/ltmain.sh"
8804 ofile="$default_ofile"
8805 with_gnu_ld="$lt_cv_prog_gnu_ld"
8807 if test -n "$ac_tool_prefix"; then
8808 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8809 set dummy ${ac_tool_prefix}ar; ac_word=$2
8810 echo "$as_me:$LINENO: checking for $ac_word" >&5
8811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8812 if test "${ac_cv_prog_AR+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815 if test -n "$AR"; then
8816 ac_cv_prog_AR="$AR" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8821 IFS=$as_save_IFS
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825 ac_cv_prog_AR="${ac_tool_prefix}ar"
8826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 break 2
8829 done
8830 done
8834 AR=$ac_cv_prog_AR
8835 if test -n "$AR"; then
8836 echo "$as_me:$LINENO: result: $AR" >&5
8837 echo "${ECHO_T}$AR" >&6
8838 else
8839 echo "$as_me:$LINENO: result: no" >&5
8840 echo "${ECHO_T}no" >&6
8844 if test -z "$ac_cv_prog_AR"; then
8845 ac_ct_AR=$AR
8846 # Extract the first word of "ar", so it can be a program name with args.
8847 set dummy ar; ac_word=$2
8848 echo "$as_me:$LINENO: checking for $ac_word" >&5
8849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8850 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 if test -n "$ac_ct_AR"; then
8854 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8855 else
8856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 for as_dir in $PATH
8859 IFS=$as_save_IFS
8860 test -z "$as_dir" && as_dir=.
8861 for ac_exec_ext in '' $ac_executable_extensions; do
8862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8863 ac_cv_prog_ac_ct_AR="ar"
8864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 break 2
8867 done
8868 done
8870 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8873 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8874 if test -n "$ac_ct_AR"; then
8875 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8876 echo "${ECHO_T}$ac_ct_AR" >&6
8877 else
8878 echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6
8882 AR=$ac_ct_AR
8883 else
8884 AR="$ac_cv_prog_AR"
8887 if test -n "$ac_tool_prefix"; then
8888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8890 echo "$as_me:$LINENO: checking for $ac_word" >&5
8891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8892 if test "${ac_cv_prog_RANLIB+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 if test -n "$RANLIB"; then
8896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8897 else
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 for as_dir in $PATH
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 break 2
8909 done
8910 done
8914 RANLIB=$ac_cv_prog_RANLIB
8915 if test -n "$RANLIB"; then
8916 echo "$as_me:$LINENO: result: $RANLIB" >&5
8917 echo "${ECHO_T}$RANLIB" >&6
8918 else
8919 echo "$as_me:$LINENO: result: no" >&5
8920 echo "${ECHO_T}no" >&6
8924 if test -z "$ac_cv_prog_RANLIB"; then
8925 ac_ct_RANLIB=$RANLIB
8926 # Extract the first word of "ranlib", so it can be a program name with args.
8927 set dummy ranlib; ac_word=$2
8928 echo "$as_me:$LINENO: checking for $ac_word" >&5
8929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933 if test -n "$ac_ct_RANLIB"; then
8934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8935 else
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_ac_ct_RANLIB="ranlib"
8944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8947 done
8948 done
8950 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8954 if test -n "$ac_ct_RANLIB"; then
8955 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8956 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8957 else
8958 echo "$as_me:$LINENO: result: no" >&5
8959 echo "${ECHO_T}no" >&6
8962 RANLIB=$ac_ct_RANLIB
8963 else
8964 RANLIB="$ac_cv_prog_RANLIB"
8967 if test -n "$ac_tool_prefix"; then
8968 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8969 set dummy ${ac_tool_prefix}strip; ac_word=$2
8970 echo "$as_me:$LINENO: checking for $ac_word" >&5
8971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8972 if test "${ac_cv_prog_STRIP+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975 if test -n "$STRIP"; then
8976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8977 else
8978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 for as_dir in $PATH
8981 IFS=$as_save_IFS
8982 test -z "$as_dir" && as_dir=.
8983 for ac_exec_ext in '' $ac_executable_extensions; do
8984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8985 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8987 break 2
8989 done
8990 done
8994 STRIP=$ac_cv_prog_STRIP
8995 if test -n "$STRIP"; then
8996 echo "$as_me:$LINENO: result: $STRIP" >&5
8997 echo "${ECHO_T}$STRIP" >&6
8998 else
8999 echo "$as_me:$LINENO: result: no" >&5
9000 echo "${ECHO_T}no" >&6
9004 if test -z "$ac_cv_prog_STRIP"; then
9005 ac_ct_STRIP=$STRIP
9006 # Extract the first word of "strip", so it can be a program name with args.
9007 set dummy strip; ac_word=$2
9008 echo "$as_me:$LINENO: checking for $ac_word" >&5
9009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9010 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 if test -n "$ac_ct_STRIP"; then
9014 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9015 else
9016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9019 IFS=$as_save_IFS
9020 test -z "$as_dir" && as_dir=.
9021 for ac_exec_ext in '' $ac_executable_extensions; do
9022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023 ac_cv_prog_ac_ct_STRIP="strip"
9024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9025 break 2
9027 done
9028 done
9030 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9033 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9034 if test -n "$ac_ct_STRIP"; then
9035 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9036 echo "${ECHO_T}$ac_ct_STRIP" >&6
9037 else
9038 echo "$as_me:$LINENO: result: no" >&5
9039 echo "${ECHO_T}no" >&6
9042 STRIP=$ac_ct_STRIP
9043 else
9044 STRIP="$ac_cv_prog_STRIP"
9048 old_CC="$CC"
9049 old_CFLAGS="$CFLAGS"
9051 # Set sane defaults for various variables
9052 test -z "$AR" && AR=ar
9053 test -z "$AR_FLAGS" && AR_FLAGS=cru
9054 test -z "$AS" && AS=as
9055 test -z "$CC" && CC=cc
9056 test -z "$LTCC" && LTCC=$CC
9057 test -z "$DLLTOOL" && DLLTOOL=dlltool
9058 test -z "$LD" && LD=ld
9059 test -z "$LN_S" && LN_S="ln -s"
9060 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9061 test -z "$NM" && NM=nm
9062 test -z "$SED" && SED=sed
9063 test -z "$OBJDUMP" && OBJDUMP=objdump
9064 test -z "$RANLIB" && RANLIB=:
9065 test -z "$STRIP" && STRIP=:
9066 test -z "$ac_objext" && ac_objext=o
9068 # Determine commands to create old-style static archives.
9069 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9070 old_postinstall_cmds='chmod 644 $oldlib'
9071 old_postuninstall_cmds=
9073 if test -n "$RANLIB"; then
9074 case $host_os in
9075 openbsd*)
9076 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9079 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9081 esac
9082 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9085 # Only perform the check for file, if the check method requires it
9086 case $deplibs_check_method in
9087 file_magic*)
9088 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9089 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9090 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9091 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094 case $MAGIC_CMD in
9095 [\\/*] | ?:[\\/]*)
9096 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9099 lt_save_MAGIC_CMD="$MAGIC_CMD"
9100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9101 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9102 for ac_dir in $ac_dummy; do
9103 IFS="$lt_save_ifs"
9104 test -z "$ac_dir" && ac_dir=.
9105 if test -f $ac_dir/${ac_tool_prefix}file; then
9106 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9107 if test -n "$file_magic_test_file"; then
9108 case $deplibs_check_method in
9109 "file_magic "*)
9110 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9112 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9113 $EGREP "$file_magic_regex" > /dev/null; then
9115 else
9116 cat <<EOF 1>&2
9118 *** Warning: the command libtool uses to detect shared libraries,
9119 *** $file_magic_cmd, produces output that libtool cannot recognize.
9120 *** The result is that libtool may fail to recognize shared libraries
9121 *** as such. This will affect the creation of libtool libraries that
9122 *** depend on shared libraries, but programs linked with such libtool
9123 *** libraries will work regardless of this problem. Nevertheless, you
9124 *** may want to report the problem to your system manager and/or to
9125 *** bug-libtool@gnu.org
9128 fi ;;
9129 esac
9131 break
9133 done
9134 IFS="$lt_save_ifs"
9135 MAGIC_CMD="$lt_save_MAGIC_CMD"
9137 esac
9140 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9141 if test -n "$MAGIC_CMD"; then
9142 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9143 echo "${ECHO_T}$MAGIC_CMD" >&6
9144 else
9145 echo "$as_me:$LINENO: result: no" >&5
9146 echo "${ECHO_T}no" >&6
9149 if test -z "$lt_cv_path_MAGIC_CMD"; then
9150 if test -n "$ac_tool_prefix"; then
9151 echo "$as_me:$LINENO: checking for file" >&5
9152 echo $ECHO_N "checking for file... $ECHO_C" >&6
9153 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156 case $MAGIC_CMD in
9157 [\\/*] | ?:[\\/]*)
9158 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9161 lt_save_MAGIC_CMD="$MAGIC_CMD"
9162 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9163 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9164 for ac_dir in $ac_dummy; do
9165 IFS="$lt_save_ifs"
9166 test -z "$ac_dir" && ac_dir=.
9167 if test -f $ac_dir/file; then
9168 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9169 if test -n "$file_magic_test_file"; then
9170 case $deplibs_check_method in
9171 "file_magic "*)
9172 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9174 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9175 $EGREP "$file_magic_regex" > /dev/null; then
9177 else
9178 cat <<EOF 1>&2
9180 *** Warning: the command libtool uses to detect shared libraries,
9181 *** $file_magic_cmd, produces output that libtool cannot recognize.
9182 *** The result is that libtool may fail to recognize shared libraries
9183 *** as such. This will affect the creation of libtool libraries that
9184 *** depend on shared libraries, but programs linked with such libtool
9185 *** libraries will work regardless of this problem. Nevertheless, you
9186 *** may want to report the problem to your system manager and/or to
9187 *** bug-libtool@gnu.org
9190 fi ;;
9191 esac
9193 break
9195 done
9196 IFS="$lt_save_ifs"
9197 MAGIC_CMD="$lt_save_MAGIC_CMD"
9199 esac
9202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9203 if test -n "$MAGIC_CMD"; then
9204 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9205 echo "${ECHO_T}$MAGIC_CMD" >&6
9206 else
9207 echo "$as_me:$LINENO: result: no" >&5
9208 echo "${ECHO_T}no" >&6
9211 else
9212 MAGIC_CMD=:
9218 esac
9220 enable_dlopen=yes
9221 enable_win32_dll=no
9223 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9224 if test "${enable_libtool_lock+set}" = set; then
9225 enableval="$enable_libtool_lock"
9228 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9231 # Check whether --with-pic or --without-pic was given.
9232 if test "${with_pic+set}" = set; then
9233 withval="$with_pic"
9234 pic_mode="$withval"
9235 else
9236 pic_mode=default
9238 test -z "$pic_mode" && pic_mode=default
9240 # Use C for the default configuration in the libtool script
9241 tagname=
9242 lt_save_CC="$CC"
9243 ac_ext=c
9244 ac_cpp='$CPP $CPPFLAGS'
9245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9250 # Source file extension for C test sources.
9251 ac_ext=c
9253 # Object file extension for compiled C test sources.
9254 objext=o
9255 objext=$objext
9257 # Code to be used in simple compile tests
9258 lt_simple_compile_test_code="int some_variable = 0;\n"
9260 # Code to be used in simple link tests
9261 lt_simple_link_test_code='int main(){return(0);}\n'
9264 # If no C compiler was specified, use CC.
9265 LTCC=${LTCC-"$CC"}
9267 # Allow CC to be a program name with arguments.
9268 compiler=$CC
9272 # Check for any special shared library compilation flags.
9274 lt_prog_cc_shlib=
9275 if test "$GCC" = no; then
9276 case $host_os in
9277 sco3.2v5*)
9278 lt_prog_cc_shlib='-belf'
9280 esac
9282 if test -n "$lt_prog_cc_shlib"; then
9283 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9284 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9285 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
9286 else
9287 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9288 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9289 lt_cv_prog_cc_can_build_shared=no
9295 # Check to make sure the static flag actually works.
9297 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9298 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
9299 if test "${lt_prog_compiler_static_works+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302 lt_prog_compiler_static_works=no
9303 save_LDFLAGS="$LDFLAGS"
9304 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
9305 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9307 # The compiler can only warn and ignore the option if not recognized
9308 # So say no if there are warnings
9309 if test -s conftest.err; then
9310 # Append any errors to the config.log.
9311 cat conftest.err 1>&5
9312 else
9313 lt_prog_compiler_static_works=yes
9316 $rm conftest*
9317 LDFLAGS="$save_LDFLAGS"
9320 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9321 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9323 if test x"$lt_prog_compiler_static_works" = xyes; then
9325 else
9326 lt_prog_compiler_static=
9331 ## CAVEAT EMPTOR:
9332 ## There is no encapsulation within the following macros, do not change
9333 ## the running order or otherwise move them around unless you know exactly
9334 ## what you are doing...
9336 lt_prog_compiler_no_builtin_flag=
9338 if test "$GCC" = yes; then
9339 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9342 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9343 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9344 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347 lt_cv_prog_compiler_rtti_exceptions=no
9348 ac_outfile=conftest.$ac_objext
9349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9350 lt_compiler_flag="-fno-rtti -fno-exceptions"
9351 # Insert the option either (1) after the last *FLAGS variable, or
9352 # (2) before a word containing "conftest.", or (3) at the end.
9353 # Note that $ac_compile itself does not contain backslashes and begins
9354 # with a dollar sign (not a hyphen), so the echo should work correctly.
9355 # The option is referenced via a variable to avoid confusing sed.
9356 lt_compile=`echo "$ac_compile" | $SED \
9357 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9359 -e 's:$: $lt_compiler_flag:'`
9360 (eval echo "\"\$as_me:9360: $lt_compile\"" >&5)
9361 (eval "$lt_compile" 2>conftest.err)
9362 ac_status=$?
9363 cat conftest.err >&5
9364 echo "$as_me:9364: \$? = $ac_status" >&5
9365 if (exit $ac_status) && test -s "$ac_outfile"; then
9366 # The compiler can only warn and ignore the option if not recognized
9367 # So say no if there are warnings
9368 if test ! -s conftest.err; then
9369 lt_cv_prog_compiler_rtti_exceptions=yes
9372 $rm conftest*
9375 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9376 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9378 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9379 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9380 else
9386 lt_prog_compiler_wl=
9387 lt_prog_compiler_pic=
9388 lt_prog_compiler_static=
9390 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9391 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9393 if test "$GCC" = yes; then
9394 lt_prog_compiler_wl='-Wl,'
9395 lt_prog_compiler_static='-static'
9397 case $host_os in
9398 aix*)
9399 # All AIX code is PIC.
9400 if test "$host_cpu" = ia64; then
9401 # AIX 5 now supports IA64 processor
9402 lt_prog_compiler_static='-Bstatic'
9406 amigaos*)
9407 # FIXME: we need at least 68020 code to build shared libraries, but
9408 # adding the `-m68020' flag to GCC prevents building anything better,
9409 # like `-m68040'.
9410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9413 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9414 # PIC is the default for these OSes.
9417 mingw* | pw32* | os2*)
9418 # This hack is so that the source file can tell whether it is being
9419 # built for inclusion in a dll (and should export symbols for example).
9420 lt_prog_compiler_pic='-DDLL_EXPORT'
9423 darwin* | rhapsody*)
9424 # PIC is the default on this platform
9425 # Common symbols not allowed in MH_DYLIB files
9426 lt_prog_compiler_pic='-fno-common'
9429 msdosdjgpp*)
9430 # Just because we use GCC doesn't mean we suddenly get shared libraries
9431 # on systems that don't support them.
9432 lt_prog_compiler_can_build_shared=no
9433 enable_shared=no
9436 sysv4*MP*)
9437 if test -d /usr/nec; then
9438 lt_prog_compiler_pic=-Kconform_pic
9442 hpux*)
9443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9444 # not for PA HP-UX.
9445 case "$host_cpu" in
9446 hppa*64*|ia64*)
9447 # +Z the default
9450 lt_prog_compiler_pic='-fPIC'
9452 esac
9456 lt_prog_compiler_pic='-fPIC'
9458 esac
9459 else
9460 # PORTME Check for flag to pass linker flags through the system compiler.
9461 case $host_os in
9462 aix*)
9463 lt_prog_compiler_wl='-Wl,'
9464 if test "$host_cpu" = ia64; then
9465 # AIX 5 now supports IA64 processor
9466 lt_prog_compiler_static='-Bstatic'
9467 else
9468 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9472 mingw* | pw32* | os2*)
9473 # This hack is so that the source file can tell whether it is being
9474 # built for inclusion in a dll (and should export symbols for example).
9475 lt_prog_compiler_pic='-DDLL_EXPORT'
9478 hpux9* | hpux10* | hpux11*)
9479 lt_prog_compiler_wl='-Wl,'
9480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9481 # not for PA HP-UX.
9482 case "$host_cpu" in
9483 hppa*64*|ia64*)
9484 # +Z the default
9487 lt_prog_compiler_pic='+Z'
9489 esac
9490 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9491 lt_prog_compiler_static='${wl}-a ${wl}archive'
9494 irix5* | irix6* | nonstopux*)
9495 lt_prog_compiler_wl='-Wl,'
9496 # PIC (with -KPIC) is the default.
9497 lt_prog_compiler_static='-non_shared'
9500 newsos6)
9501 lt_prog_compiler_pic='-KPIC'
9502 lt_prog_compiler_static='-Bstatic'
9505 linux*)
9506 case $CC in
9507 icc* | ecc*)
9508 lt_prog_compiler_wl='-Wl,'
9509 lt_prog_compiler_pic='-KPIC'
9510 lt_prog_compiler_static='-static'
9512 ccc*)
9513 lt_prog_compiler_wl='-Wl,'
9514 # All Alpha code is PIC.
9515 lt_prog_compiler_static='-non_shared'
9517 esac
9520 osf3* | osf4* | osf5*)
9521 lt_prog_compiler_wl='-Wl,'
9522 # All OSF/1 code is PIC.
9523 lt_prog_compiler_static='-non_shared'
9526 sco3.2v5*)
9527 lt_prog_compiler_pic='-Kpic'
9528 lt_prog_compiler_static='-dn'
9531 solaris*)
9532 lt_prog_compiler_wl='-Wl,'
9533 lt_prog_compiler_pic='-KPIC'
9534 lt_prog_compiler_static='-Bstatic'
9537 sunos4*)
9538 lt_prog_compiler_wl='-Qoption ld '
9539 lt_prog_compiler_pic='-PIC'
9540 lt_prog_compiler_static='-Bstatic'
9543 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9544 lt_prog_compiler_wl='-Wl,'
9545 lt_prog_compiler_pic='-KPIC'
9546 lt_prog_compiler_static='-Bstatic'
9549 sysv4*MP*)
9550 if test -d /usr/nec ;then
9551 lt_prog_compiler_pic='-Kconform_pic'
9552 lt_prog_compiler_static='-Bstatic'
9556 uts4*)
9557 lt_prog_compiler_pic='-pic'
9558 lt_prog_compiler_static='-Bstatic'
9562 lt_prog_compiler_can_build_shared=no
9564 esac
9567 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9568 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9571 # Check to make sure the PIC flag actually works.
9573 if test -n "$lt_prog_compiler_pic"; then
9575 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9576 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9577 if test "${lt_prog_compiler_pic_works+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580 lt_prog_compiler_pic_works=no
9581 ac_outfile=conftest.$ac_objext
9582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9583 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9584 # Insert the option either (1) after the last *FLAGS variable, or
9585 # (2) before a word containing "conftest.", or (3) at the end.
9586 # Note that $ac_compile itself does not contain backslashes and begins
9587 # with a dollar sign (not a hyphen), so the echo should work correctly.
9588 # The option is referenced via a variable to avoid confusing sed.
9589 lt_compile=`echo "$ac_compile" | $SED \
9590 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9592 -e 's:$: $lt_compiler_flag:'`
9593 (eval echo "\"\$as_me:9593: $lt_compile\"" >&5)
9594 (eval "$lt_compile" 2>conftest.err)
9595 ac_status=$?
9596 cat conftest.err >&5
9597 echo "$as_me:9597: \$? = $ac_status" >&5
9598 if (exit $ac_status) && test -s "$ac_outfile"; then
9599 # The compiler can only warn and ignore the option if not recognized
9600 # So say no if there are warnings
9601 if test ! -s conftest.err; then
9602 lt_prog_compiler_pic_works=yes
9605 $rm conftest*
9608 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9609 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9611 if test x"$lt_prog_compiler_pic_works" = xyes; then
9612 case $lt_prog_compiler_pic in
9613 "" | " "*) ;;
9614 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9615 esac
9616 else
9617 lt_prog_compiler_pic=
9618 lt_prog_compiler_can_build_shared=no
9622 case "$host_os" in
9623 # For platforms which do not support PIC, -DPIC is meaningless:
9624 *djgpp*)
9625 lt_prog_compiler_pic=
9628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9630 esac
9632 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9633 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9634 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 lt_cv_prog_compiler_c_o=no
9638 $rm -r conftest 2>/dev/null
9639 mkdir conftest
9640 cd conftest
9641 mkdir out
9642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9644 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
9645 # that will create temporary files in the current directory regardless of
9646 # the output directory. Thus, making CWD read-only will cause this test
9647 # to fail, enabling locking or at least warning the user not to do parallel
9648 # builds.
9649 chmod -w .
9651 lt_compiler_flag="-o out/conftest2.$ac_objext"
9652 # Insert the option either (1) after the last *FLAGS variable, or
9653 # (2) before a word containing "conftest.", or (3) at the end.
9654 # Note that $ac_compile itself does not contain backslashes and begins
9655 # with a dollar sign (not a hyphen), so the echo should work correctly.
9656 lt_compile=`echo "$ac_compile" | $SED \
9657 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9659 -e 's:$: $lt_compiler_flag:'`
9660 (eval echo "\"\$as_me:9660: $lt_compile\"" >&5)
9661 (eval "$lt_compile" 2>out/conftest.err)
9662 ac_status=$?
9663 cat out/conftest.err >&5
9664 echo "$as_me:9664: \$? = $ac_status" >&5
9665 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9666 then
9667 # The compiler can only warn and ignore the option if not recognized
9668 # So say no if there are warnings
9669 if test ! -s out/conftest.err; then
9670 lt_cv_prog_compiler_c_o=yes
9673 chmod u+w .
9674 $rm conftest* out/*
9675 rmdir out
9676 cd ..
9677 rmdir conftest
9678 $rm conftest*
9681 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9682 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9685 hard_links="nottested"
9686 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9687 # do not overwrite the value of need_locks provided by the user
9688 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9689 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9690 hard_links=yes
9691 $rm conftest*
9692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9693 touch conftest.a
9694 ln conftest.a conftest.b 2>&5 || hard_links=no
9695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9696 echo "$as_me:$LINENO: result: $hard_links" >&5
9697 echo "${ECHO_T}$hard_links" >&6
9698 if test "$hard_links" = no; then
9699 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9700 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9701 need_locks=warn
9703 else
9704 need_locks=no
9707 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9708 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9710 runpath_var=
9711 allow_undefined_flag=
9712 enable_shared_with_static_runtimes=no
9713 archive_cmds=
9714 archive_expsym_cmds=
9715 old_archive_From_new_cmds=
9716 old_archive_from_expsyms_cmds=
9717 export_dynamic_flag_spec=
9718 whole_archive_flag_spec=
9719 thread_safe_flag_spec=
9720 hardcode_libdir_flag_spec=
9721 hardcode_libdir_flag_spec_ld=
9722 hardcode_libdir_separator=
9723 hardcode_direct=no
9724 hardcode_minus_L=no
9725 hardcode_shlibpath_var=unsupported
9726 link_all_deplibs=unknown
9727 hardcode_automatic=no
9728 module_cmds=
9729 module_expsym_cmds=
9730 always_export_symbols=no
9731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9732 # include_expsyms should be a list of space-separated symbols to be *always*
9733 # included in the symbol list
9734 include_expsyms=
9735 # exclude_expsyms can be an extended regexp of symbols to exclude
9736 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9737 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9738 # as well as any symbol that contains `d'.
9739 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9740 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9741 # platforms (ab)use it in PIC code, but their linkers get confused if
9742 # the symbol is explicitly referenced. Since portable code cannot
9743 # rely on this symbol name, it's probably fine to never include it in
9744 # preloaded symbol tables.
9745 extract_expsyms_cmds=
9747 case $host_os in
9748 cygwin* | mingw* | pw32*)
9749 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9750 # When not using gcc, we currently assume that we are using
9751 # Microsoft Visual C++.
9752 if test "$GCC" != yes; then
9753 with_gnu_ld=no
9756 openbsd*)
9757 with_gnu_ld=no
9759 esac
9761 ld_shlibs=yes
9762 if test "$with_gnu_ld" = yes; then
9763 # If archive_cmds runs LD, not CC, wlarc should be empty
9764 wlarc='${wl}'
9766 # See if GNU ld supports shared libraries.
9767 case $host_os in
9768 aix3* | aix4* | aix5*)
9769 # On AIX/PPC, the GNU linker is very broken
9770 if test "$host_cpu" != ia64; then
9771 ld_shlibs=no
9772 cat <<EOF 1>&2
9774 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9775 *** to be unable to reliably create shared libraries on AIX.
9776 *** Therefore, libtool is disabling shared libraries support. If you
9777 *** really care for shared libraries, you may want to modify your PATH
9778 *** so that a non-GNU linker is found, and then restart.
9784 amigaos*)
9785 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)'
9786 hardcode_libdir_flag_spec='-L$libdir'
9787 hardcode_minus_L=yes
9789 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9790 # that the semantics of dynamic libraries on AmigaOS, at least up
9791 # to version 4, is to share data among multiple programs linked
9792 # with the same dynamic library. Since this doesn't match the
9793 # behavior of shared libraries on other platforms, we can't use
9794 # them.
9795 ld_shlibs=no
9798 beos*)
9799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9800 allow_undefined_flag=unsupported
9801 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9802 # support --undefined. This deserves some investigation. FIXME
9803 archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
9804 else
9805 ld_shlibs=no
9809 cygwin* | mingw* | pw32*)
9810 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9811 # as there is no search path for DLLs.
9812 hardcode_libdir_flag_spec='-L$libdir'
9813 allow_undefined_flag=no
9814 always_export_symbols=no
9815 enable_shared_with_static_runtimes=yes
9816 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9818 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9819 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9820 # If the export-symbols file already is a .def file (1st line
9821 # is EXPORTS), use it as is; otherwise, prepend...
9822 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9823 cp $export_symbols $output_objdir/$soname.def;
9824 else
9825 echo EXPORTS > $output_objdir/$soname.def;
9826 cat $export_symbols >> $output_objdir/$soname.def;
9828 $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9829 else
9830 ld_shlibs=no
9834 netbsd*)
9835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9836 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9837 wlarc=
9838 else
9839 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
9840 archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9844 solaris* | sysv5*)
9845 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9846 ld_shlibs=no
9847 cat <<EOF 1>&2
9849 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9850 *** create shared libraries on Solaris systems. Therefore, libtool
9851 *** is disabling shared libraries support. We urge you to upgrade GNU
9852 *** binutils to release 2.9.1 or newer. Another option is to modify
9853 *** your PATH or compiler configuration so that the native linker is
9854 *** used, and then restart.
9857 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9858 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
9859 archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9860 else
9861 ld_shlibs=no
9865 sunos4*)
9866 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9867 wlarc=
9868 hardcode_direct=yes
9869 hardcode_shlibpath_var=no
9873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9874 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
9875 archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9876 else
9877 ld_shlibs=no
9880 esac
9882 if test "$ld_shlibs" = yes; then
9883 runpath_var=LD_RUN_PATH
9884 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9885 export_dynamic_flag_spec='${wl}--export-dynamic'
9886 # ancient GNU ld didn't support --whole-archive et. al.
9887 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9888 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9889 else
9890 whole_archive_flag_spec=
9893 else
9894 # PORTME fill in a description of your system's linker (not GNU ld)
9895 case $host_os in
9896 aix3*)
9897 allow_undefined_flag=unsupported
9898 always_export_symbols=yes
9899 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'
9900 # Note: this linker hardcodes the directories in LIBPATH if there
9901 # are no directories specified by -L.
9902 hardcode_minus_L=yes
9903 if test "$GCC" = yes && test -z "$link_static_flag"; then
9904 # Neither direct hardcoding nor static linking is supported with a
9905 # broken collect2.
9906 hardcode_direct=unsupported
9910 aix4* | aix5*)
9911 if test "$host_cpu" = ia64; then
9912 # On IA64, the linker does run time linking by default, so we don't
9913 # have to do anything special.
9914 aix_use_runtimelinking=no
9915 exp_sym_flag='-Bexport'
9916 no_entry_flag=""
9917 else
9918 # If we're using GNU nm, then we don't want the "-C" option.
9919 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9920 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9921 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'
9922 else
9923 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'
9926 # KDE requires run time linking. Make it the default.
9927 aix_use_runtimelinking=yes
9928 exp_sym_flag='-bexport'
9929 no_entry_flag='-bnoentry'
9932 # When large executables or shared objects are built, AIX ld can
9933 # have problems creating the table of contents. If linking a library
9934 # or program results in "error TOC overflow" add -mminimal-toc to
9935 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9936 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9938 archive_cmds=''
9939 hardcode_direct=yes
9940 hardcode_libdir_separator=':'
9941 link_all_deplibs=yes
9943 if test "$GCC" = yes; then
9944 case $host_os in aix4.012|aix4.012.*)
9945 # We only want to do this on AIX 4.2 and lower, the check
9946 # below for broken collect2 doesn't work under 4.3+
9947 collect2name=`${CC} -print-prog-name=collect2`
9948 if test -f "$collect2name" && \
9949 strings "$collect2name" | grep resolve_lib_name >/dev/null
9950 then
9951 # We have reworked collect2
9952 hardcode_direct=yes
9953 else
9954 # We have old collect2
9955 hardcode_direct=unsupported
9956 # It fails to find uninstalled libraries when the uninstalled
9957 # path is not listed in the libpath. Setting hardcode_minus_L
9958 # to unsupported forces relinking
9959 hardcode_minus_L=yes
9960 hardcode_libdir_flag_spec='-L$libdir'
9961 hardcode_libdir_separator=
9963 esac
9964 shared_flag='-shared'
9965 else
9966 # not using gcc
9967 if test "$host_cpu" = ia64; then
9968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9969 # chokes on -Wl,-G. The following line is correct:
9970 shared_flag='-G'
9971 else
9972 if test "$aix_use_runtimelinking" = yes; then
9973 shared_flag='-qmkshrobj ${wl}-G'
9974 else
9975 shared_flag='-qmkshrobj'
9980 # Let the compiler handle the export list.
9981 always_export_symbols=no
9982 if test "$aix_use_runtimelinking" = yes; then
9983 # Warning - without using the other runtime loading flags (-brtl),
9984 # -berok will link without error, but may produce a broken library.
9985 allow_undefined_flag='-berok'
9986 # Determine the default libpath from the value encoded in an empty executable.
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9995 main ()
9999 return 0;
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -z "$ac_c_werror_flag"
10012 || test ! -s conftest.err'
10013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10015 ac_status=$?
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); }; } &&
10018 { ac_try='test -s conftest$ac_exeext'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10027 # Check for a 64-bit object if we didn't find anything.
10028 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10029 }'`; fi
10030 else
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10035 rm -f conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10039 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10040 archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
10041 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10042 else
10043 if test "$host_cpu" = ia64; then
10044 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10045 allow_undefined_flag="-z nodefs"
10046 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10047 else
10048 # Determine the default libpath from the value encoded in an empty executable.
10049 cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h. */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10057 main ()
10061 return 0;
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066 (eval $ac_link) 2>conftest.er1
10067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try='test -z "$ac_c_werror_flag"
10074 || test ! -s conftest.err'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10077 ac_status=$?
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; } &&
10080 { ac_try='test -s conftest$ac_exeext'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10089 # Check for a 64-bit object if we didn't find anything.
10090 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10091 }'`; fi
10092 else
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10097 rm -f conftest.err conftest.$ac_objext \
10098 conftest$ac_exeext conftest.$ac_ext
10099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10102 # Warning - without using the other run time loading flags,
10103 # -berok will link without error, but may produce a broken library.
10104 no_undefined_flag=' ${wl}-bernotok'
10105 allow_undefined_flag=' ${wl}-berok'
10106 # -bexpall does not export symbols beginning with underscore (_)
10107 always_export_symbols=yes
10108 # Exported symbols can be pulled into shared objects from archives
10109 whole_archive_flag_spec=' '
10110 archive_cmds_need_lc=yes
10111 # This is similar to how AIX traditionally builds it's shared libraries.
10112 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10117 amigaos*)
10118 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)'
10119 hardcode_libdir_flag_spec='-L$libdir'
10120 hardcode_minus_L=yes
10121 # see comment about different semantics on the GNU ld section
10122 ld_shlibs=no
10125 bsdi4*)
10126 export_dynamic_flag_spec=-rdynamic
10129 cygwin* | mingw* | pw32*)
10130 # When not using gcc, we currently assume that we are using
10131 # Microsoft Visual C++.
10132 # hardcode_libdir_flag_spec is actually meaningless, as there is
10133 # no search path for DLLs.
10134 hardcode_libdir_flag_spec=' '
10135 allow_undefined_flag=no
10136 # Tell ltmain to make .lib files, not .a files.
10137 libext=lib
10138 # Tell ltmain to make .dll files, not .so files.
10139 shrext=".dll"
10140 # FIXME: Setting linknames here is a bad hack.
10141 archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10142 # The linker will automatically build a .lib file if we build a DLL.
10143 old_archive_From_new_cmds='true'
10144 # FIXME: Should let the user specify the lib program.
10145 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10146 fix_srcfile_path='`cygpath -w "$srcfile"`'
10147 enable_shared_with_static_runtimes=yes
10150 darwin* | rhapsody*)
10151 if test "$GXX" = yes ; then
10152 archive_cmds_need_lc=no
10153 case "$host_os" in
10154 rhapsody* | darwin1.[012])
10155 allow_undefined_flag='-Wl,-undefined -Wl,suppress'
10157 *) # Darwin 1.3 on
10158 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10159 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10160 else
10161 case ${MACOSX_DEPLOYMENT_TARGET} in
10162 10.012)
10163 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10165 10.*)
10166 allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
10168 esac
10171 esac
10172 lt_int_apple_cc_single_mod=no
10173 output_verbose_link_cmd='echo'
10174 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10175 lt_int_apple_cc_single_mod=yes
10177 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10178 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
10179 else
10180 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
10182 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
10183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10184 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10185 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10186 else
10187 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10189 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10190 hardcode_direct=no
10191 hardcode_automatic=yes
10192 hardcode_shlibpath_var=unsupported
10193 whole_archive_flag_spec='-all_load $convenience'
10194 link_all_deplibs=yes
10195 else
10196 ld_shlibs=no
10200 dgux*)
10201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202 hardcode_libdir_flag_spec='-L$libdir'
10203 hardcode_shlibpath_var=no
10206 freebsd1*)
10207 ld_shlibs=no
10210 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10211 # support. Future versions do this automatically, but an explicit c++rt0.o
10212 # does not break anything, and helps significantly (at the cost of a little
10213 # extra space).
10214 freebsd2.2*)
10215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10216 hardcode_libdir_flag_spec='-R$libdir'
10217 hardcode_direct=yes
10218 hardcode_shlibpath_var=no
10221 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10222 freebsd2*)
10223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_direct=yes
10225 hardcode_minus_L=yes
10226 hardcode_shlibpath_var=no
10229 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10230 freebsd* | kfreebsd*-gnu)
10231 archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
10232 hardcode_libdir_flag_spec='-R$libdir'
10233 hardcode_direct=yes
10234 hardcode_shlibpath_var=no
10237 hpux9*)
10238 if test "$GCC" = yes; then
10239 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10240 else
10241 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'
10243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10244 hardcode_libdir_separator=:
10245 hardcode_direct=yes
10247 # hardcode_minus_L: Not really in the search PATH,
10248 # but as the default location of the library.
10249 hardcode_minus_L=yes
10250 export_dynamic_flag_spec='${wl}-E'
10253 hpux10* | hpux11*)
10254 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10255 case "$host_cpu" in
10256 hppa*64*|ia64*)
10257 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10260 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
10262 esac
10263 else
10264 case "$host_cpu" in
10265 hppa*64*|ia64*)
10266 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10271 esac
10273 if test "$with_gnu_ld" = no; then
10274 case "$host_cpu" in
10275 hppa*64*)
10276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10277 hardcode_libdir_flag_spec_ld='+b $libdir'
10278 hardcode_libdir_separator=:
10279 hardcode_direct=no
10280 hardcode_shlibpath_var=no
10282 ia64*)
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_direct=no
10285 hardcode_shlibpath_var=no
10287 # hardcode_minus_L: Not really in the search PATH,
10288 # but as the default location of the library.
10289 hardcode_minus_L=yes
10292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10293 hardcode_libdir_separator=:
10294 hardcode_direct=yes
10295 export_dynamic_flag_spec='${wl}-E'
10297 # hardcode_minus_L: Not really in the search PATH,
10298 # but as the default location of the library.
10299 hardcode_minus_L=yes
10301 esac
10305 irix5* | irix6* | nonstopux*)
10306 if test "$GCC" = yes; then
10307 archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10308 else
10309 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'
10310 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10313 hardcode_libdir_separator=:
10314 link_all_deplibs=yes
10317 netbsd*)
10318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10320 else
10321 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10323 hardcode_libdir_flag_spec='-R$libdir'
10324 hardcode_direct=yes
10325 hardcode_shlibpath_var=no
10328 newsos6)
10329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330 hardcode_direct=yes
10331 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10332 hardcode_libdir_separator=:
10333 hardcode_shlibpath_var=no
10336 openbsd*)
10337 hardcode_direct=yes
10338 hardcode_shlibpath_var=no
10339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10340 archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10341 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10342 export_dynamic_flag_spec='${wl}-E'
10343 else
10344 case $host_os in
10345 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10347 hardcode_libdir_flag_spec='-R$libdir'
10350 archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10351 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10353 esac
10357 os2*)
10358 hardcode_libdir_flag_spec='-L$libdir'
10359 hardcode_minus_L=yes
10360 allow_undefined_flag=unsupported
10361 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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
10362 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10365 osf3*)
10366 if test "$GCC" = yes; then
10367 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10368 archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10369 else
10370 allow_undefined_flag=' -expect_unresolved \*'
10371 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'
10373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10374 hardcode_libdir_separator=:
10377 osf4* | osf5*) # as osf3* with the addition of -msym flag
10378 if test "$GCC" = yes; then
10379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10380 archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
10381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10382 else
10383 allow_undefined_flag=' -expect_unresolved \*'
10384 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'
10385 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10386 $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'
10388 # Both c and cxx compiler support -rpath directly
10389 hardcode_libdir_flag_spec='-rpath $libdir'
10391 hardcode_libdir_separator=:
10394 sco3.2v5*)
10395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396 hardcode_shlibpath_var=no
10397 export_dynamic_flag_spec='${wl}-Bexport'
10398 runpath_var=LD_RUN_PATH
10399 hardcode_runpath_var=yes
10402 solaris*)
10403 no_undefined_flag=' -z text'
10404 if test "$GCC" = yes; then
10405 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10406 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10407 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
10408 else
10409 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10413 hardcode_libdir_flag_spec='-R$libdir'
10414 hardcode_shlibpath_var=no
10415 case $host_os in
10416 solaris2.[0-5] | solaris2.[0-5].*) ;;
10417 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10418 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10419 esac
10420 link_all_deplibs=yes
10423 sunos4*)
10424 if test "x$host_vendor" = xsequent; then
10425 # Use $CC to link under sequent, because it throws in some extra .o
10426 # files that make .init and .fini sections work.
10427 archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
10428 else
10429 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10431 hardcode_libdir_flag_spec='-L$libdir'
10432 hardcode_direct=yes
10433 hardcode_minus_L=yes
10434 hardcode_shlibpath_var=no
10437 sysv4)
10438 case $host_vendor in
10439 sni)
10440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10441 hardcode_direct=yes # is this really true???
10443 siemens)
10444 ## LD is ld it makes a PLAMLIB
10445 ## CC just makes a GrossModule.
10446 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10447 reload_cmds='$CC -r -o $output$reload_objs'
10448 hardcode_direct=no
10450 motorola)
10451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10452 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10454 esac
10455 runpath_var='LD_RUN_PATH'
10456 hardcode_shlibpath_var=no
10459 sysv4.3*)
10460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10461 hardcode_shlibpath_var=no
10462 export_dynamic_flag_spec='-Bexport'
10465 sysv4*MP*)
10466 if test -d /usr/nec; then
10467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468 hardcode_shlibpath_var=no
10469 runpath_var=LD_RUN_PATH
10470 hardcode_runpath_var=yes
10471 ld_shlibs=yes
10475 sysv4.2uw2*)
10476 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10477 hardcode_direct=yes
10478 hardcode_minus_L=no
10479 hardcode_shlibpath_var=no
10480 hardcode_runpath_var=yes
10481 runpath_var=LD_RUN_PATH
10484 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10485 no_undefined_flag='${wl}-z ${wl}text'
10486 if test "$GCC" = yes; then
10487 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10488 else
10489 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10491 runpath_var='LD_RUN_PATH'
10492 hardcode_shlibpath_var=no
10495 sysv5*)
10496 no_undefined_flag=' -z text'
10497 # $CC -shared without GNU ld will not create a library from C++
10498 # object files and a static libstdc++, better avoid it by now
10499 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10500 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10501 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10502 hardcode_libdir_flag_spec=
10503 hardcode_shlibpath_var=no
10504 runpath_var='LD_RUN_PATH'
10507 uts4*)
10508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10509 hardcode_libdir_flag_spec='-L$libdir'
10510 hardcode_shlibpath_var=no
10514 ld_shlibs=no
10516 esac
10519 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10520 echo "${ECHO_T}$ld_shlibs" >&6
10521 test "$ld_shlibs" = no && can_build_shared=no
10523 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10524 if test "$GCC" = yes; then
10525 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10529 # Do we need to explicitly link libc?
10531 case "x$archive_cmds_need_lc" in
10532 x|xyes)
10533 # Assume -lc should be added
10534 archive_cmds_need_lc=yes
10536 if test "$enable_shared" = yes && test "$GCC" = yes; then
10537 case $archive_cmds in
10538 *'~'*)
10539 # FIXME: we may have to deal with multi-command sequences.
10541 '$CC '*)
10542 # Test whether the compiler implicitly links with -lc since on some
10543 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10544 # to ld, don't add -lc before -lgcc.
10545 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10546 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10547 $rm conftest*
10548 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10551 (eval $ac_compile) 2>&5
10552 ac_status=$?
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } 2>conftest.err; then
10555 soname=conftest
10556 lib=conftest
10557 libobjs=conftest.$ac_objext
10558 deplibs=
10559 wl=$lt_prog_compiler_wl
10560 compiler_flags=-v
10561 linker_flags=-v
10562 verstring=
10563 output_objdir=.
10564 libname=conftest
10565 lt_save_allow_undefined_flag=$allow_undefined_flag
10566 allow_undefined_flag=
10567 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10568 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }
10572 then
10573 archive_cmds_need_lc=no
10574 else
10575 archive_cmds_need_lc=yes
10577 allow_undefined_flag=$lt_save_allow_undefined_flag
10578 else
10579 cat conftest.err 1>&5
10581 $rm conftest*
10582 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10583 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10585 esac
10588 esac
10590 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10591 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10592 library_names_spec=
10593 libname_spec='lib$name'
10594 soname_spec=
10595 shrext=".so"
10596 postinstall_cmds=
10597 postuninstall_cmds=
10598 finish_cmds=
10599 finish_eval=
10600 shlibpath_var=
10601 shlibpath_overrides_runpath=unknown
10602 version_type=none
10603 dynamic_linker="$host_os ld.so"
10604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10605 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10606 need_lib_prefix=unknown
10607 hardcode_into_libs=no
10609 # when you set need_version to no, make sure it does not cause -set_version
10610 # flags to be left without arguments
10611 need_version=unknown
10613 case $host_os in
10614 aix3*)
10615 version_type=linux
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10617 shlibpath_var=LIBPATH
10619 # AIX 3 has no versioning support, so we append a major version to the name.
10620 soname_spec='${libname}${release}${shared_ext}$major'
10623 aix4* | aix5*)
10624 version_type=linux
10625 need_lib_prefix=no
10626 need_version=no
10627 hardcode_into_libs=yes
10628 if test "$host_cpu" = ia64; then
10629 # AIX 5 supports IA64
10630 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 else
10633 # With GCC up to 2.95.x, collect2 would create an import file
10634 # for dependence libraries. The import file would start with
10635 # the line `#! .'. This would cause the generated library to
10636 # depend on `.', always an invalid library. This was fixed in
10637 # development snapshots of GCC prior to 3.0.
10638 case $host_os in
10639 aix4 | aix4.[01] | aix4.[01].*)
10640 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10641 echo ' yes '
10642 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10644 else
10645 can_build_shared=no
10648 esac
10649 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10650 # soname into executable. Probably we can add versioning support to
10651 # collect2, so additional links can be useful in future.
10652 if test "$aix_use_runtimelinking" = yes; then
10653 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10654 # instead of lib<name>.a to let people know that these are not
10655 # typical AIX shared libraries.
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 else
10658 # We preserve .a as extension for shared libraries through AIX4.2
10659 # and later when we are not doing run time linking.
10660 library_names_spec='${libname}${release}.a $libname.a'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10663 shlibpath_var=LIBPATH
10667 amigaos*)
10668 library_names_spec='$libname.ixlibrary $libname.a'
10669 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10670 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'
10673 beos*)
10674 library_names_spec='${libname}${shared_ext}'
10675 dynamic_linker="$host_os ld.so"
10676 shlibpath_var=LIBRARY_PATH
10679 bsdi4*)
10680 version_type=linux
10681 need_version=no
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10685 shlibpath_var=LD_LIBRARY_PATH
10686 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10687 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10688 # the default ld.so.conf also contains /usr/contrib/lib and
10689 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10690 # libtool to hard-code these into programs
10693 cygwin* | mingw* | pw32*)
10694 version_type=windows
10695 shrext=".dll"
10696 need_version=no
10697 need_lib_prefix=no
10699 case $GCC,$host_os in
10700 yes,cygwin* | yes,mingw* | yes,pw32*)
10701 library_names_spec='$libname.dll.a'
10702 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10703 postinstall_cmds='base_file=`basename \${file}`~
10704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10705 dldir=$destdir/`dirname \$dlpath`~
10706 test -d \$dldir || mkdir -p \$dldir~
10707 $install_prog $dir/$dlname \$dldir/$dlname'
10708 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10709 dlpath=$dir/\$dldll~
10710 $rm \$dlpath'
10711 shlibpath_overrides_runpath=yes
10713 case $host_os in
10714 cygwin*)
10715 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10716 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10717 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10719 mingw*)
10720 # MinGW DLLs use traditional 'lib' prefix
10721 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10722 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10723 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10724 # It is most probably a Windows format PATH printed by
10725 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10726 # path with ; separators, and with drive letters. We can handle the
10727 # drive letters (cygwin fileutils understands them), so leave them,
10728 # especially as we might pass files found there to a mingw objdump,
10729 # which wouldn't understand a cygwinified path. Ahh.
10730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10731 else
10732 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10735 pw32*)
10736 # pw32 DLLs use 'pw' prefix rather than 'lib'
10737 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10739 esac
10743 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10745 esac
10746 dynamic_linker='Win32 ld.exe'
10747 # FIXME: first we should search . and the directory the executable is in
10748 shlibpath_var=PATH
10751 darwin* | rhapsody*)
10752 dynamic_linker="$host_os dyld"
10753 version_type=darwin
10754 need_lib_prefix=no
10755 need_version=no
10756 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10757 soname_spec='${libname}${release}${major}$shared_ext'
10758 shlibpath_overrides_runpath=yes
10759 shlibpath_var=DYLD_LIBRARY_PATH
10760 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10761 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10762 if test "$GCC" = yes; then
10763 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10764 else
10765 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10770 dgux*)
10771 version_type=linux
10772 need_lib_prefix=no
10773 need_version=no
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 shlibpath_var=LD_LIBRARY_PATH
10779 freebsd1*)
10780 dynamic_linker=no
10783 kfreebsd*-gnu*)
10784 version_type=linux
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 shlibpath_overrides_runpath=no
10791 hardcode_into_libs=yes
10792 dynamic_linker='GNU ld.so'
10795 freebsd*)
10796 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10797 version_type=freebsd-$objformat
10798 case $version_type in
10799 freebsd-elf*)
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10801 need_version=no
10802 need_lib_prefix=no
10804 freebsd-*)
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10806 need_version=yes
10808 esac
10809 shlibpath_var=LD_LIBRARY_PATH
10810 case $host_os in
10811 freebsd2*)
10812 shlibpath_overrides_runpath=yes
10814 freebsd3.01* | freebsdelf3.01*)
10815 shlibpath_overrides_runpath=yes
10816 hardcode_into_libs=yes
10818 *) # from 3.2 on
10819 shlibpath_overrides_runpath=no
10820 hardcode_into_libs=yes
10822 esac
10825 gnu*)
10826 version_type=linux
10827 need_lib_prefix=no
10828 need_version=no
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 hardcode_into_libs=yes
10835 hpux9* | hpux10* | hpux11*)
10836 # Give a soname corresponding to the major version so that dld.sl refuses to
10837 # link against other versions.
10838 version_type=sunos
10839 need_lib_prefix=no
10840 need_version=no
10841 case "$host_cpu" in
10842 ia64*)
10843 shrext='.so'
10844 hardcode_into_libs=yes
10845 dynamic_linker="$host_os dld.so"
10846 shlibpath_var=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 if test "X$HPUX_IA64_MODE" = X32; then
10851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10852 else
10853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10857 hppa*64*)
10858 shrext='.sl'
10859 hardcode_into_libs=yes
10860 dynamic_linker="$host_os dld.sl"
10861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10869 shrext='.sl'
10870 dynamic_linker="$host_os dld.sl"
10871 shlibpath_var=SHLIB_PATH
10872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10876 esac
10877 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10878 postinstall_cmds='chmod 555 $lib'
10881 irix5* | irix6* | nonstopux*)
10882 case $host_os in
10883 nonstopux*) version_type=nonstopux ;;
10885 if test "$lt_cv_prog_gnu_ld" = yes; then
10886 version_type=linux
10887 else
10888 version_type=irix
10889 fi ;;
10890 esac
10891 need_lib_prefix=no
10892 need_version=no
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10895 case $host_os in
10896 irix5* | nonstopux*)
10897 libsuff= shlibsuff=
10900 case $LD in # libtool.m4 will add one of these switches to LD
10901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10902 libsuff= shlibsuff= libmagic=32-bit;;
10903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10904 libsuff=32 shlibsuff=N32 libmagic=N32;;
10905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10907 *) libsuff= shlibsuff= libmagic=never-match;;
10908 esac
10910 esac
10911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10912 shlibpath_overrides_runpath=no
10913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10915 hardcode_into_libs=yes
10918 # No shared lib support for Linux oldld, aout, or coff.
10919 linux*oldld* | linux*aout* | linux*coff*)
10920 dynamic_linker=no
10923 # This must be Linux ELF.
10924 linux*)
10925 version_type=linux
10926 need_lib_prefix=no
10927 need_version=no
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10931 libsuff=
10932 if test "x$LINUX_64_MODE" = x64; then
10933 # Some platforms are per default 64-bit, so there's no /lib64
10934 if test -d /lib64; then
10935 libsuff=64
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=no
10940 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10941 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
10942 # This implies no fast_install, which is unacceptable.
10943 # Some rework will be needed to allow for fast_install
10944 # before this can be enabled.
10945 hardcode_into_libs=yes
10947 # We used to test for /lib/ld.so.1 and disable shared libraries on
10948 # powerpc, because MkLinux only supported shared libraries with the
10949 # GNU dynamic linker. Since this was broken with cross compilers,
10950 # most powerpc-linux boxes support dynamic linking these days and
10951 # people can always --disable-shared, the test was removed, and we
10952 # assume the GNU/Linux dynamic linker is in use.
10953 dynamic_linker='GNU/Linux ld.so'
10956 netbsd*)
10957 version_type=sunos
10958 need_lib_prefix=no
10959 need_version=no
10960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10963 dynamic_linker='NetBSD (a.out) ld.so'
10964 else
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10967 dynamic_linker='NetBSD ld.elf_so'
10969 shlibpath_var=LD_LIBRARY_PATH
10970 shlibpath_overrides_runpath=yes
10971 hardcode_into_libs=yes
10974 newsos6)
10975 version_type=linux
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 shlibpath_var=LD_LIBRARY_PATH
10978 shlibpath_overrides_runpath=yes
10981 nto-qnx*)
10982 version_type=linux
10983 need_lib_prefix=no
10984 need_version=no
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 soname_spec='${libname}${release}${shared_ext}$major'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=yes
10991 openbsd*)
10992 version_type=sunos
10993 need_lib_prefix=no
10994 need_version=no
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10999 case $host_os in
11000 openbsd2.[89] | openbsd2.[89].*)
11001 shlibpath_overrides_runpath=no
11004 shlibpath_overrides_runpath=yes
11006 esac
11007 else
11008 shlibpath_overrides_runpath=yes
11012 os2*)
11013 libname_spec='$name'
11014 shrext=".dll"
11015 need_lib_prefix=no
11016 library_names_spec='$libname${shared_ext} $libname.a'
11017 dynamic_linker='OS/2 ld.exe'
11018 shlibpath_var=LIBPATH
11021 osf3* | osf4* | osf5*)
11022 version_type=osf
11023 need_lib_prefix=no
11024 need_version=no
11025 soname_spec='${libname}${release}${shared_ext}$major'
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11029 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11032 sco3.2v5*)
11033 version_type=osf
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 shlibpath_var=LD_LIBRARY_PATH
11039 solaris*)
11040 version_type=linux
11041 need_lib_prefix=no
11042 need_version=no
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=yes
11047 hardcode_into_libs=yes
11048 # ldd complains unless libraries are executable
11049 postinstall_cmds='chmod +x $lib'
11052 sunos4*)
11053 version_type=sunos
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=yes
11058 if test "$with_gnu_ld" = yes; then
11059 need_lib_prefix=no
11061 need_version=yes
11064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11065 version_type=linux
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 case $host_vendor in
11070 sni)
11071 shlibpath_overrides_runpath=no
11072 need_lib_prefix=no
11073 export_dynamic_flag_spec='${wl}-Blargedynsym'
11074 runpath_var=LD_RUN_PATH
11076 siemens)
11077 need_lib_prefix=no
11079 motorola)
11080 need_lib_prefix=no
11081 need_version=no
11082 shlibpath_overrides_runpath=no
11083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11085 esac
11088 sysv4*MP*)
11089 if test -d /usr/nec ;then
11090 version_type=linux
11091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11092 soname_spec='$libname${shared_ext}.$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11097 uts4*)
11098 version_type=linux
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 shlibpath_var=LD_LIBRARY_PATH
11105 dynamic_linker=no
11107 esac
11108 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11109 echo "${ECHO_T}$dynamic_linker" >&6
11110 test "$dynamic_linker" = no && can_build_shared=no
11112 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11113 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11114 hardcode_action=
11115 if test -n "$hardcode_libdir_flag_spec" || \
11116 test -n "$runpath_var " || \
11117 test "X$hardcode_automatic"="Xyes" ; then
11119 # We can hardcode non-existant directories.
11120 if test "$hardcode_direct" != no &&
11121 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11122 # have to relink, otherwise we might link with an installed library
11123 # when we should be linking with a yet-to-be-installed one
11124 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11125 test "$hardcode_minus_L" != no; then
11126 # Linking always hardcodes the temporary library directory.
11127 hardcode_action=relink
11128 else
11129 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11130 hardcode_action=immediate
11132 else
11133 # We cannot hardcode anything, or else we can only hardcode existing
11134 # directories.
11135 hardcode_action=unsupported
11137 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11138 echo "${ECHO_T}$hardcode_action" >&6
11140 if test "$hardcode_action" = relink; then
11141 # Fast installation is not supported
11142 enable_fast_install=no
11143 elif test "$shlibpath_overrides_runpath" = yes ||
11144 test "$enable_shared" = no; then
11145 # Fast installation is not necessary
11146 enable_fast_install=needless
11149 striplib=
11150 old_striplib=
11151 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11152 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11153 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11154 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11155 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11156 echo "$as_me:$LINENO: result: yes" >&5
11157 echo "${ECHO_T}yes" >&6
11158 else
11159 # FIXME - insert some real tests, host_os isn't really good enough
11160 case $host_os in
11161 darwin*)
11162 if test -n "$STRIP" ; then
11163 striplib="$STRIP -x"
11164 echo "$as_me:$LINENO: result: yes" >&5
11165 echo "${ECHO_T}yes" >&6
11166 else
11167 echo "$as_me:$LINENO: result: no" >&5
11168 echo "${ECHO_T}no" >&6
11172 echo "$as_me:$LINENO: result: no" >&5
11173 echo "${ECHO_T}no" >&6
11175 esac
11178 if test "x$enable_dlopen" != xyes; then
11179 enable_dlopen=unknown
11180 enable_dlopen_self=unknown
11181 enable_dlopen_self_static=unknown
11182 else
11183 lt_cv_dlopen=no
11184 lt_cv_dlopen_libs=
11186 case $host_os in
11187 beos*)
11188 lt_cv_dlopen="load_add_on"
11189 lt_cv_dlopen_libs=
11190 lt_cv_dlopen_self=yes
11193 mingw* | pw32*)
11194 lt_cv_dlopen="LoadLibrary"
11195 lt_cv_dlopen_libs=
11198 cygwin*)
11199 lt_cv_dlopen="dlopen"
11200 lt_cv_dlopen_libs=
11203 darwin*)
11204 # if libdl is installed we need to link against it
11205 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11206 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11207 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 else
11210 ac_check_lib_save_LIBS=$LIBS
11211 LIBS="-ldl $LIBS"
11212 cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h. */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11219 /* Override any gcc2 internal prototype to avoid an error. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 /* We use char because int might match the return type of a gcc2
11224 builtin and then its argument prototype would still apply. */
11225 char dlopen ();
11227 main ()
11229 dlopen ();
11231 return 0;
11233 _ACEOF
11234 rm -f conftest.$ac_objext conftest$ac_exeext
11235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11236 (eval $ac_link) 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } &&
11243 { ac_try='test -z "$ac_c_werror_flag"
11244 || test ! -s conftest.err'
11245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246 (eval $ac_try) 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; } &&
11250 { ac_try='test -s conftest$ac_exeext'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
11256 ac_cv_lib_dl_dlopen=yes
11257 else
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11261 ac_cv_lib_dl_dlopen=no
11263 rm -f conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265 LIBS=$ac_check_lib_save_LIBS
11267 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11268 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11269 if test $ac_cv_lib_dl_dlopen = yes; then
11270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11271 else
11273 lt_cv_dlopen="dyld"
11274 lt_cv_dlopen_libs=
11275 lt_cv_dlopen_self=yes
11282 echo "$as_me:$LINENO: checking for shl_load" >&5
11283 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11284 if test "${ac_cv_func_shl_load+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 else
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11295 #define shl_load innocuous_shl_load
11297 /* System header to define __stub macros and hopefully few prototypes,
11298 which can conflict with char shl_load (); below.
11299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11300 <limits.h> exists even on freestanding compilers. */
11302 #ifdef __STDC__
11303 # include <limits.h>
11304 #else
11305 # include <assert.h>
11306 #endif
11308 #undef shl_load
11310 /* Override any gcc2 internal prototype to avoid an error. */
11311 #ifdef __cplusplus
11312 extern "C"
11314 #endif
11315 /* We use char because int might match the return type of a gcc2
11316 builtin and then its argument prototype would still apply. */
11317 char shl_load ();
11318 /* The GNU C library defines this for functions which it implements
11319 to always fail with ENOSYS. Some functions are actually named
11320 something starting with __ and the normal name is an alias. */
11321 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11322 choke me
11323 #else
11324 char (*f) () = shl_load;
11325 #endif
11326 #ifdef __cplusplus
11328 #endif
11331 main ()
11333 return f != shl_load;
11335 return 0;
11337 _ACEOF
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11340 (eval $ac_link) 2>conftest.er1
11341 ac_status=$?
11342 grep -v '^ *+' conftest.er1 >conftest.err
11343 rm -f conftest.er1
11344 cat conftest.err >&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } &&
11347 { ac_try='test -z "$ac_c_werror_flag"
11348 || test ! -s conftest.err'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; } &&
11354 { ac_try='test -s conftest$ac_exeext'
11355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11357 ac_status=$?
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
11360 ac_cv_func_shl_load=yes
11361 else
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 ac_cv_func_shl_load=no
11367 rm -f conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11370 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11371 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11372 if test $ac_cv_func_shl_load = yes; then
11373 lt_cv_dlopen="shl_load"
11374 else
11375 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11376 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11377 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-ldld $LIBS"
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h. */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11389 /* Override any gcc2 internal prototype to avoid an error. */
11390 #ifdef __cplusplus
11391 extern "C"
11392 #endif
11393 /* We use char because int might match the return type of a gcc2
11394 builtin and then its argument prototype would still apply. */
11395 char shl_load ();
11397 main ()
11399 shl_load ();
11401 return 0;
11403 _ACEOF
11404 rm -f conftest.$ac_objext conftest$ac_exeext
11405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11406 (eval $ac_link) 2>conftest.er1
11407 ac_status=$?
11408 grep -v '^ *+' conftest.er1 >conftest.err
11409 rm -f conftest.er1
11410 cat conftest.err >&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); } &&
11413 { ac_try='test -z "$ac_c_werror_flag"
11414 || test ! -s conftest.err'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; } &&
11420 { ac_try='test -s conftest$ac_exeext'
11421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11422 (eval $ac_try) 2>&5
11423 ac_status=$?
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); }; }; then
11426 ac_cv_lib_dld_shl_load=yes
11427 else
11428 echo "$as_me: failed program was:" >&5
11429 sed 's/^/| /' conftest.$ac_ext >&5
11431 ac_cv_lib_dld_shl_load=no
11433 rm -f conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11437 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11438 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11439 if test $ac_cv_lib_dld_shl_load = yes; then
11440 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11441 else
11442 echo "$as_me:$LINENO: checking for dlopen" >&5
11443 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11444 if test "${ac_cv_func_dlopen+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 else
11447 cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h. */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11455 #define dlopen innocuous_dlopen
11457 /* System header to define __stub macros and hopefully few prototypes,
11458 which can conflict with char dlopen (); below.
11459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11460 <limits.h> exists even on freestanding compilers. */
11462 #ifdef __STDC__
11463 # include <limits.h>
11464 #else
11465 # include <assert.h>
11466 #endif
11468 #undef dlopen
11470 /* Override any gcc2 internal prototype to avoid an error. */
11471 #ifdef __cplusplus
11472 extern "C"
11474 #endif
11475 /* We use char because int might match the return type of a gcc2
11476 builtin and then its argument prototype would still apply. */
11477 char dlopen ();
11478 /* The GNU C library defines this for functions which it implements
11479 to always fail with ENOSYS. Some functions are actually named
11480 something starting with __ and the normal name is an alias. */
11481 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11482 choke me
11483 #else
11484 char (*f) () = dlopen;
11485 #endif
11486 #ifdef __cplusplus
11488 #endif
11491 main ()
11493 return f != dlopen;
11495 return 0;
11497 _ACEOF
11498 rm -f conftest.$ac_objext conftest$ac_exeext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11500 (eval $ac_link) 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } &&
11507 { ac_try='test -z "$ac_c_werror_flag"
11508 || test ! -s conftest.err'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; } &&
11514 { ac_try='test -s conftest$ac_exeext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 ac_cv_func_dlopen=yes
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 ac_cv_func_dlopen=no
11527 rm -f conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11530 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11531 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11532 if test $ac_cv_func_dlopen = yes; then
11533 lt_cv_dlopen="dlopen"
11534 else
11535 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11536 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11537 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540 ac_check_lib_save_LIBS=$LIBS
11541 LIBS="-ldl $LIBS"
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h. */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11549 /* Override any gcc2 internal prototype to avoid an error. */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 /* We use char because int might match the return type of a gcc2
11554 builtin and then its argument prototype would still apply. */
11555 char dlopen ();
11557 main ()
11559 dlopen ();
11561 return 0;
11563 _ACEOF
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11566 (eval $ac_link) 2>conftest.er1
11567 ac_status=$?
11568 grep -v '^ *+' conftest.er1 >conftest.err
11569 rm -f conftest.er1
11570 cat conftest.err >&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); } &&
11573 { ac_try='test -z "$ac_c_werror_flag"
11574 || test ! -s conftest.err'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11577 ac_status=$?
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; } &&
11580 { ac_try='test -s conftest$ac_exeext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_cv_lib_dl_dlopen=yes
11587 else
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 ac_cv_lib_dl_dlopen=no
11593 rm -f conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11595 LIBS=$ac_check_lib_save_LIBS
11597 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11599 if test $ac_cv_lib_dl_dlopen = yes; then
11600 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11601 else
11602 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11603 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11604 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607 ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-lsvld $LIBS"
11609 cat >conftest.$ac_ext <<_ACEOF
11610 /* confdefs.h. */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11616 /* Override any gcc2 internal prototype to avoid an error. */
11617 #ifdef __cplusplus
11618 extern "C"
11619 #endif
11620 /* We use char because int might match the return type of a gcc2
11621 builtin and then its argument prototype would still apply. */
11622 char dlopen ();
11624 main ()
11626 dlopen ();
11628 return 0;
11630 _ACEOF
11631 rm -f conftest.$ac_objext conftest$ac_exeext
11632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11633 (eval $ac_link) 2>conftest.er1
11634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); } &&
11640 { ac_try='test -z "$ac_c_werror_flag"
11641 || test ! -s conftest.err'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; } &&
11647 { ac_try='test -s conftest$ac_exeext'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; }; then
11653 ac_cv_lib_svld_dlopen=yes
11654 else
11655 echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11658 ac_cv_lib_svld_dlopen=no
11660 rm -f conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662 LIBS=$ac_check_lib_save_LIBS
11664 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11665 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11666 if test $ac_cv_lib_svld_dlopen = yes; then
11667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11668 else
11669 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11670 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11671 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 ac_check_lib_save_LIBS=$LIBS
11675 LIBS="-ldld $LIBS"
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11683 /* Override any gcc2 internal prototype to avoid an error. */
11684 #ifdef __cplusplus
11685 extern "C"
11686 #endif
11687 /* We use char because int might match the return type of a gcc2
11688 builtin and then its argument prototype would still apply. */
11689 char dld_link ();
11691 main ()
11693 dld_link ();
11695 return 0;
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700 (eval $ac_link) 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag"
11708 || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_lib_dld_dld_link=yes
11721 else
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_cv_lib_dld_dld_link=no
11727 rm -f conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 LIBS=$ac_check_lib_save_LIBS
11731 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11732 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11733 if test $ac_cv_lib_dld_dld_link = yes; then
11734 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11753 esac
11755 if test "x$lt_cv_dlopen" != xno; then
11756 enable_dlopen=yes
11757 else
11758 enable_dlopen=no
11761 case $lt_cv_dlopen in
11762 dlopen)
11763 save_CPPFLAGS="$CPPFLAGS"
11764 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11766 save_LDFLAGS="$LDFLAGS"
11767 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11769 save_LIBS="$LIBS"
11770 LIBS="$lt_cv_dlopen_libs $LIBS"
11772 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11773 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11774 if test "${lt_cv_dlopen_self+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 else
11777 if test "$cross_compiling" = yes; then :
11778 lt_cv_dlopen_self=cross
11779 else
11780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11781 lt_status=$lt_dlunknown
11782 cat > conftest.$ac_ext <<EOF
11783 #line 11783 "configure"
11784 #include "confdefs.h"
11786 #if HAVE_DLFCN_H
11787 #include <dlfcn.h>
11788 #endif
11790 #include <stdio.h>
11792 #ifdef RTLD_GLOBAL
11793 # define LT_DLGLOBAL RTLD_GLOBAL
11794 #else
11795 # ifdef DL_GLOBAL
11796 # define LT_DLGLOBAL DL_GLOBAL
11797 # else
11798 # define LT_DLGLOBAL 0
11799 # endif
11800 #endif
11802 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11803 find out it does not work in some platform. */
11804 #ifndef LT_DLLAZY_OR_NOW
11805 # ifdef RTLD_LAZY
11806 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11807 # else
11808 # ifdef DL_LAZY
11809 # define LT_DLLAZY_OR_NOW DL_LAZY
11810 # else
11811 # ifdef RTLD_NOW
11812 # define LT_DLLAZY_OR_NOW RTLD_NOW
11813 # else
11814 # ifdef DL_NOW
11815 # define LT_DLLAZY_OR_NOW DL_NOW
11816 # else
11817 # define LT_DLLAZY_OR_NOW 0
11818 # endif
11819 # endif
11820 # endif
11821 # endif
11822 #endif
11824 #ifdef __cplusplus
11825 extern "C" void exit (int);
11826 #endif
11828 void fnord() { int i=42;}
11829 int main ()
11831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11832 int status = $lt_dlunknown;
11834 if (self)
11836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11837 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11838 /* dlclose (self); */
11841 exit (status);
11844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11845 (eval $ac_link) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11849 (./conftest; exit; ) 2>/dev/null
11850 lt_status=$?
11851 case x$lt_status in
11852 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11853 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11854 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11855 esac
11856 else :
11857 # compilation failed
11858 lt_cv_dlopen_self=no
11861 rm -fr conftest*
11865 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11866 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11868 if test "x$lt_cv_dlopen_self" = xyes; then
11869 LDFLAGS="$LDFLAGS $link_static_flag"
11870 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11871 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11872 if test "${lt_cv_dlopen_self_static+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875 if test "$cross_compiling" = yes; then :
11876 lt_cv_dlopen_self_static=cross
11877 else
11878 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11879 lt_status=$lt_dlunknown
11880 cat > conftest.$ac_ext <<EOF
11881 #line 11881 "configure"
11882 #include "confdefs.h"
11884 #if HAVE_DLFCN_H
11885 #include <dlfcn.h>
11886 #endif
11888 #include <stdio.h>
11890 #ifdef RTLD_GLOBAL
11891 # define LT_DLGLOBAL RTLD_GLOBAL
11892 #else
11893 # ifdef DL_GLOBAL
11894 # define LT_DLGLOBAL DL_GLOBAL
11895 # else
11896 # define LT_DLGLOBAL 0
11897 # endif
11898 #endif
11900 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11901 find out it does not work in some platform. */
11902 #ifndef LT_DLLAZY_OR_NOW
11903 # ifdef RTLD_LAZY
11904 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11905 # else
11906 # ifdef DL_LAZY
11907 # define LT_DLLAZY_OR_NOW DL_LAZY
11908 # else
11909 # ifdef RTLD_NOW
11910 # define LT_DLLAZY_OR_NOW RTLD_NOW
11911 # else
11912 # ifdef DL_NOW
11913 # define LT_DLLAZY_OR_NOW DL_NOW
11914 # else
11915 # define LT_DLLAZY_OR_NOW 0
11916 # endif
11917 # endif
11918 # endif
11919 # endif
11920 #endif
11922 #ifdef __cplusplus
11923 extern "C" void exit (int);
11924 #endif
11926 void fnord() { int i=42;}
11927 int main ()
11929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11930 int status = $lt_dlunknown;
11932 if (self)
11934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11935 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11936 /* dlclose (self); */
11939 exit (status);
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943 (eval $ac_link) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11947 (./conftest; exit; ) 2>/dev/null
11948 lt_status=$?
11949 case x$lt_status in
11950 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11951 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11952 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11953 esac
11954 else :
11955 # compilation failed
11956 lt_cv_dlopen_self_static=no
11959 rm -fr conftest*
11963 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11964 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11967 CPPFLAGS="$save_CPPFLAGS"
11968 LDFLAGS="$save_LDFLAGS"
11969 LIBS="$save_LIBS"
11971 esac
11973 case $lt_cv_dlopen_self in
11974 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11975 *) enable_dlopen_self=unknown ;;
11976 esac
11978 case $lt_cv_dlopen_self_static in
11979 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11980 *) enable_dlopen_self_static=unknown ;;
11981 esac
11985 # Report which librarie types wil actually be built
11986 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11987 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11988 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11989 echo "${ECHO_T}$can_build_shared" >&6
11991 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11992 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11993 test "$can_build_shared" = "no" && enable_shared=no
11995 # On AIX, shared libraries and static libraries use the same namespace, and
11996 # are all built from PIC.
11997 case "$host_os" in
11998 aix3*)
11999 test "$enable_shared" = yes && enable_static=no
12000 if test -n "$RANLIB"; then
12001 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12002 postinstall_cmds='$RANLIB $lib'
12006 aix4*)
12007 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12008 test "$enable_shared" = yes && enable_static=no
12011 darwin* | rhapsody*)
12012 if test "$GCC" = yes; then
12013 archive_cmds_need_lc=no
12014 case "$host_os" in
12015 rhapsody* | darwin1.[012])
12016 allow_undefined_flag='-Wl,-undefined -Wl,suppress'
12018 *) # Darwin 1.3 on
12019 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12020 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12021 else
12022 case ${MACOSX_DEPLOYMENT_TARGET} in
12023 10.012)
12024 allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12026 10.*)
12027 allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
12029 esac
12032 esac
12033 output_verbose_link_cmd='echo'
12034 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
12035 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
12036 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12037 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12038 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12039 hardcode_direct=no
12040 hardcode_automatic=yes
12041 hardcode_shlibpath_var=unsupported
12042 whole_archive_flag_spec='-all_load $convenience'
12043 link_all_deplibs=yes
12044 else
12045 ld_shlibs=no
12048 esac
12049 echo "$as_me:$LINENO: result: $enable_shared" >&5
12050 echo "${ECHO_T}$enable_shared" >&6
12052 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12053 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12054 # Make sure either enable_shared or enable_static is yes.
12055 test "$enable_shared" = yes || enable_static=yes
12056 echo "$as_me:$LINENO: result: $enable_static" >&5
12057 echo "${ECHO_T}$enable_static" >&6
12059 # The else clause should only fire when bootstrapping the
12060 # libtool distribution, otherwise you forgot to ship ltmain.sh
12061 # with your package, and you will get complaints that there are
12062 # no rules to generate ltmain.sh.
12063 if test -f "$ltmain"; then
12064 # See if we are running on zsh, and set the options which allow our commands through
12065 # without removal of \ escapes.
12066 if test -n "${ZSH_VERSION+set}" ; then
12067 setopt NO_GLOB_SUBST
12069 # Now quote all the things that may contain metacharacters while being
12070 # careful not to overquote the AC_SUBSTed values. We take copies of the
12071 # variables and quote the copies for generation of the libtool script.
12072 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12073 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12074 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12075 deplibs_check_method reload_flag reload_cmds need_locks \
12076 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12077 lt_cv_sys_global_symbol_to_c_name_address \
12078 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12079 old_postinstall_cmds old_postuninstall_cmds \
12080 compiler \
12081 CC \
12082 LD \
12083 lt_prog_compiler_wl \
12084 lt_prog_compiler_pic \
12085 lt_prog_compiler_static \
12086 lt_prog_compiler_no_builtin_flag \
12087 export_dynamic_flag_spec \
12088 thread_safe_flag_spec \
12089 whole_archive_flag_spec \
12090 enable_shared_with_static_runtimes \
12091 old_archive_cmds \
12092 old_archive_from_new_cmds \
12093 predep_objects \
12094 postdep_objects \
12095 predeps \
12096 postdeps \
12097 compiler_lib_search_path \
12098 archive_cmds \
12099 archive_expsym_cmds \
12100 postinstall_cmds \
12101 postuninstall_cmds \
12102 old_archive_from_expsyms_cmds \
12103 allow_undefined_flag \
12104 no_undefined_flag \
12105 export_symbols_cmds \
12106 hardcode_libdir_flag_spec \
12107 hardcode_libdir_flag_spec_ld \
12108 hardcode_libdir_separator \
12109 hardcode_automatic \
12110 module_cmds \
12111 module_expsym_cmds \
12112 lt_cv_prog_compiler_c_o \
12113 exclude_expsyms \
12114 include_expsyms; do
12116 case $var in
12117 old_archive_cmds | \
12118 old_archive_from_new_cmds | \
12119 archive_cmds | \
12120 archive_expsym_cmds | \
12121 module_cmds | \
12122 module_expsym_cmds | \
12123 old_archive_from_expsyms_cmds | \
12124 export_symbols_cmds | \
12125 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12126 postinstall_cmds | postuninstall_cmds | \
12127 old_postinstall_cmds | old_postuninstall_cmds | \
12128 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12129 # Double-quote double-evaled strings.
12130 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12133 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12135 esac
12136 done
12138 case $lt_echo in
12139 *'\$0 --fallback-echo"')
12140 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12142 esac
12144 cfgfile="${ofile}T"
12145 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12146 $rm -f "$cfgfile"
12147 { echo "$as_me:$LINENO: creating $ofile" >&5
12148 echo "$as_me: creating $ofile" >&6;}
12150 cat <<__EOF__ >> "$cfgfile"
12151 #! $SHELL
12153 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12154 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12155 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12157 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12158 # Free Software Foundation, Inc.
12160 # This file is part of GNU Libtool:
12161 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12163 # This program is free software; you can redistribute it and/or modify
12164 # it under the terms of the GNU General Public License as published by
12165 # the Free Software Foundation; either version 2 of the License, or
12166 # (at your option) any later version.
12168 # This program is distributed in the hope that it will be useful, but
12169 # WITHOUT ANY WARRANTY; without even the implied warranty of
12170 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12171 # General Public License for more details.
12173 # You should have received a copy of the GNU General Public License
12174 # along with this program; if not, write to the Free Software
12175 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12177 # As a special exception to the GNU General Public License, if you
12178 # distribute this file as part of a program that contains a
12179 # configuration script generated by Autoconf, you may include it under
12180 # the same distribution terms that you use for the rest of that program.
12182 # A sed program that does not truncate output.
12183 SED=$lt_SED
12185 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12186 Xsed="$SED -e s/^X//"
12188 # The HP-UX ksh and POSIX shell print the target directory to stdout
12189 # if CDPATH is set.
12190 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
12192 # The names of the tagged configurations supported by this script.
12193 available_tags=
12195 # ### BEGIN LIBTOOL CONFIG
12197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12199 # Shell to use when invoking shell scripts.
12200 SHELL=$lt_SHELL
12202 # Whether or not to build shared libraries.
12203 build_libtool_libs=$enable_shared
12205 # Whether or not to build static libraries.
12206 build_old_libs=$enable_static
12208 # Whether or not to add -lc for building shared libraries.
12209 build_libtool_need_lc=$archive_cmds_need_lc
12211 # Whether or not to disallow shared libs when runtime libs are static
12212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12214 # Whether or not to optimize for fast installation.
12215 fast_install=$enable_fast_install
12217 # The host system.
12218 host_alias=$host_alias
12219 host=$host
12221 # An echo program that does not interpret backslashes.
12222 echo=$lt_echo
12224 # The archiver.
12225 AR=$lt_AR
12226 AR_FLAGS=$lt_AR_FLAGS
12228 # A C compiler.
12229 LTCC=$lt_LTCC
12231 # A language-specific compiler.
12232 CC=$lt_compiler
12234 # Is the compiler the GNU C compiler?
12235 with_gcc=$GCC
12237 # An ERE matcher.
12238 EGREP=$lt_EGREP
12240 # The linker used to build libraries.
12241 LD=$lt_LD
12243 # Whether we need hard or soft links.
12244 LN_S=$lt_LN_S
12246 # A BSD-compatible nm program.
12247 NM=$lt_NM
12249 # A symbol stripping program
12250 STRIP=$STRIP
12252 # Used to examine libraries when file_magic_cmd begins "file"
12253 MAGIC_CMD=$MAGIC_CMD
12255 # Used on cygwin: DLL creation program.
12256 DLLTOOL="$DLLTOOL"
12258 # Used on cygwin: object dumper.
12259 OBJDUMP="$OBJDUMP"
12261 # Used on cygwin: assembler.
12262 AS="$AS"
12264 # The name of the directory that contains temporary libtool files.
12265 objdir=$objdir
12267 # How to create reloadable object files.
12268 reload_flag=$lt_reload_flag
12269 reload_cmds=$lt_reload_cmds
12271 # How to pass a linker flag through the compiler.
12272 wl=$lt_lt_prog_compiler_wl
12274 # Object file suffix (normally "o").
12275 objext="$ac_objext"
12277 # Old archive suffix (normally "a").
12278 libext="$libext"
12280 # Shared library suffix (normally ".so").
12281 shrext='$shrext'
12283 # Executable file suffix (normally "").
12284 exeext="$exeext"
12286 # Additional compiler flags for building library objects.
12287 pic_flag=$lt_lt_prog_compiler_pic
12288 pic_mode=$pic_mode
12290 # What is the maximum length of a command?
12291 max_cmd_len=$lt_cv_sys_max_cmd_len
12293 # Does compiler simultaneously support -c and -o options?
12294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12296 # Must we lock files when doing compilation ?
12297 need_locks=$lt_need_locks
12299 # Do we need the lib prefix for modules?
12300 need_lib_prefix=$need_lib_prefix
12302 # Do we need a version for libraries?
12303 need_version=$need_version
12305 # Whether dlopen is supported.
12306 dlopen_support=$enable_dlopen
12308 # Whether dlopen of programs is supported.
12309 dlopen_self=$enable_dlopen_self
12311 # Whether dlopen of statically linked programs is supported.
12312 dlopen_self_static=$enable_dlopen_self_static
12314 # Compiler flag to prevent dynamic linking.
12315 link_static_flag=$lt_lt_prog_compiler_static
12317 # Compiler flag to turn off builtin functions.
12318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12320 # Compiler flag to allow reflexive dlopens.
12321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12323 # Compiler flag to generate shared objects directly from archives.
12324 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12326 # Compiler flag to generate thread-safe objects.
12327 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12329 # Library versioning type.
12330 version_type=$version_type
12332 # Format of library name prefix.
12333 libname_spec=$lt_libname_spec
12335 # List of archive names. First name is the real one, the rest are links.
12336 # The last name is the one that the linker finds with -lNAME.
12337 library_names_spec=$lt_library_names_spec
12339 # The coded name of the library, if different from the real name.
12340 soname_spec=$lt_soname_spec
12342 # Commands used to build and install an old-style archive.
12343 RANLIB=$lt_RANLIB
12344 old_archive_cmds=$lt_old_archive_cmds
12345 old_postinstall_cmds=$lt_old_postinstall_cmds
12346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12348 # Create an old-style archive from a shared archive.
12349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12351 # Create a temporary old-style archive to link instead of a shared archive.
12352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12354 # Commands used to build and install a shared archive.
12355 archive_cmds=$lt_archive_cmds
12356 archive_expsym_cmds=$lt_archive_expsym_cmds
12357 postinstall_cmds=$lt_postinstall_cmds
12358 postuninstall_cmds=$lt_postuninstall_cmds
12360 # Commands used to build a loadable module (assumed same as above if empty)
12361 module_cmds=$lt_module_cmds
12362 module_expsym_cmds=$lt_module_expsym_cmds
12364 # Commands to strip libraries.
12365 old_striplib=$lt_old_striplib
12366 striplib=$lt_striplib
12368 # Dependencies to place before the objects being linked to create a
12369 # shared library.
12370 predep_objects=$lt_predep_objects
12372 # Dependencies to place after the objects being linked to create a
12373 # shared library.
12374 postdep_objects=$lt_postdep_objects
12376 # Dependencies to place before the objects being linked to create a
12377 # shared library.
12378 predeps=$lt_predeps
12380 # Dependencies to place after the objects being linked to create a
12381 # shared library.
12382 postdeps=$lt_postdeps
12384 # The library search path used internally by the compiler when linking
12385 # a shared library.
12386 compiler_lib_search_path=$lt_compiler_lib_search_path
12388 # Method to check whether dependent libraries are shared objects.
12389 deplibs_check_method=$lt_deplibs_check_method
12391 # Command to use when deplibs_check_method == file_magic.
12392 file_magic_cmd=$lt_file_magic_cmd
12394 # Flag that allows shared libraries with undefined symbols to be built.
12395 allow_undefined_flag=$lt_allow_undefined_flag
12397 # Flag that forces no undefined symbols.
12398 no_undefined_flag=$lt_no_undefined_flag
12400 # Commands used to finish a libtool library installation in a directory.
12401 finish_cmds=$lt_finish_cmds
12403 # Same as above, but a single script fragment to be evaled but not shown.
12404 finish_eval=$lt_finish_eval
12406 # Take the output of nm and produce a listing of raw symbols and C names.
12407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12409 # Transform the output of nm in a proper C declaration
12410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12412 # Transform the output of nm in a C name address pair
12413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12415 # This is the shared library runtime path variable.
12416 runpath_var=$runpath_var
12418 # This is the shared library path variable.
12419 shlibpath_var=$shlibpath_var
12421 # Is shlibpath searched before the hard-coded library search path?
12422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12424 # How to hardcode a shared library path into an executable.
12425 hardcode_action=$hardcode_action
12427 # Whether we should hardcode library paths into libraries.
12428 hardcode_into_libs=$hardcode_into_libs
12430 # Flag to hardcode \$libdir into a binary during linking.
12431 # This must work even if \$libdir does not exist.
12432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12434 # If ld is used when linking, flag to hardcode \$libdir into
12435 # a binary during linking. This must work even if \$libdir does
12436 # not exist.
12437 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12439 # Whether we need a single -rpath flag with a separated argument.
12440 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12442 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12443 # resulting binary.
12444 hardcode_direct=$hardcode_direct
12446 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12447 # resulting binary.
12448 hardcode_minus_L=$hardcode_minus_L
12450 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12451 # the resulting binary.
12452 hardcode_shlibpath_var=$hardcode_shlibpath_var
12454 # Set to yes if building a shared library automatically hardcodes DIR into the library
12455 # and all subsequent libraries and executables linked against it.
12456 hardcode_automatic=$hardcode_automatic
12458 # Variables whose values should be saved in libtool wrapper scripts and
12459 # restored at relink time.
12460 variables_saved_for_relink="$variables_saved_for_relink"
12462 # Whether libtool must link a program against all its dependency libraries.
12463 link_all_deplibs=$link_all_deplibs
12465 # Compile-time system search path for libraries
12466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12468 # Run-time system search path for libraries
12469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12471 # Fix the shell variable \$srcfile for the compiler.
12472 fix_srcfile_path="$fix_srcfile_path"
12474 # Set to yes if exported symbols are required.
12475 always_export_symbols=$always_export_symbols
12477 # The commands to list exported symbols.
12478 export_symbols_cmds=$lt_export_symbols_cmds
12480 # The commands to extract the exported symbol list from a shared archive.
12481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12483 # Symbols that should not be listed in the preloaded symbols.
12484 exclude_expsyms=$lt_exclude_expsyms
12486 # Symbols that must always be exported.
12487 include_expsyms=$lt_include_expsyms
12489 # ### END LIBTOOL CONFIG
12491 __EOF__
12494 case $host_os in
12495 aix3*)
12496 cat <<\EOF >> "$cfgfile"
12498 # AIX sometimes has problems with the GCC collect2 program. For some
12499 # reason, if we set the COLLECT_NAMES environment variable, the problems
12500 # vanish in a puff of smoke.
12501 if test "X${COLLECT_NAMES+set}" != Xset; then
12502 COLLECT_NAMES=
12503 export COLLECT_NAMES
12507 esac
12509 # We use sed instead of cat because bash on DJGPP gets confused if
12510 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12511 # text mode, it properly converts lines to CR/LF. This bash problem
12512 # is reportedly fixed, but why not run on old versions too?
12513 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12515 mv -f "$cfgfile" "$ofile" || \
12516 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12517 chmod +x "$ofile"
12519 else
12520 # If there is no Makefile yet, we rely on a make rule to execute
12521 # `config.status --recheck' to rerun these tests and create the
12522 # libtool script then.
12523 test -f Makefile && make "$ltmain"
12527 ac_ext=c
12528 ac_cpp='$CPP $CPPFLAGS'
12529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12533 CC="$lt_save_CC"
12536 # Check whether --with-tags or --without-tags was given.
12537 if test "${with_tags+set}" = set; then
12538 withval="$with_tags"
12539 tagnames="$withval"
12542 if test -f "$ltmain" && test -n "$tagnames"; then
12543 if test ! -f "${ofile}"; then
12544 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12545 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12548 if test -z "$LTCC"; then
12549 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12550 if test -z "$LTCC"; then
12551 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12552 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12553 else
12554 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12555 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12559 # Extract list of available tagged configurations in $ofile.
12560 # Note that this assumes the entire list is on one line.
12561 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12563 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12564 for tagname in $tagnames; do
12565 IFS="$lt_save_ifs"
12566 # Check whether tagname contains only valid characters
12567 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12568 "") ;;
12569 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12570 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12571 { (exit 1); exit 1; }; }
12573 esac
12575 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12576 then
12577 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12578 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12579 { (exit 1); exit 1; }; }
12582 # Update the list of available tags.
12583 if test -n "$tagname"; then
12584 echo appending configuration tag \"$tagname\" to $ofile
12586 case $tagname in
12587 CXX)
12588 if test -n "$CXX" && test "X$CXX" != "Xno"; then
12589 ac_ext=cc
12590 ac_cpp='$CXXCPP $CPPFLAGS'
12591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12598 archive_cmds_need_lc_CXX=no
12599 allow_undefined_flag_CXX=
12600 always_export_symbols_CXX=no
12601 archive_expsym_cmds_CXX=
12602 export_dynamic_flag_spec_CXX=
12603 hardcode_direct_CXX=no
12604 hardcode_libdir_flag_spec_CXX=
12605 hardcode_libdir_flag_spec_ld_CXX=
12606 hardcode_libdir_separator_CXX=
12607 hardcode_minus_L_CXX=no
12608 hardcode_automatic_CXX=no
12609 module_cmds_CXX=
12610 module_expsym_cmds_CXX=
12611 link_all_deplibs_CXX=unknown
12612 old_archive_cmds_CXX=$old_archive_cmds
12613 no_undefined_flag_CXX=
12614 whole_archive_flag_spec_CXX=
12615 enable_shared_with_static_runtimes_CXX=no
12617 # Dependencies to place before and after the object being linked:
12618 predep_objects_CXX=
12619 postdep_objects_CXX=
12620 predeps_CXX=
12621 postdeps_CXX=
12622 compiler_lib_search_path_CXX=
12624 # Source file extension for C++ test sources.
12625 ac_ext=cc
12627 # Object file extension for compiled C++ test sources.
12628 objext=o
12629 objext_CXX=$objext
12631 # Code to be used in simple compile tests
12632 lt_simple_compile_test_code="int some_variable = 0;\n"
12634 # Code to be used in simple link tests
12635 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
12637 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12639 # If no C compiler was specified, use CC.
12640 LTCC=${LTCC-"$CC"}
12642 # Allow CC to be a program name with arguments.
12643 compiler=$CC
12646 # Allow CC to be a program name with arguments.
12647 lt_save_CC=$CC
12648 lt_save_LD=$LD
12649 lt_save_GCC=$GCC
12650 GCC=$GXX
12651 lt_save_with_gnu_ld=$with_gnu_ld
12652 lt_save_path_LD=$lt_cv_path_LD
12653 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12654 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12655 else
12656 unset lt_cv_prog_gnu_ld
12658 if test -n "${lt_cv_path_LDCXX+set}"; then
12659 lt_cv_path_LD=$lt_cv_path_LDCXX
12660 else
12661 unset lt_cv_path_LD
12663 test -z "${LDCXX+set}" || LD=$LDCXX
12664 CC=${CXX-"c++"}
12665 compiler=$CC
12666 compiler_CXX=$CC
12667 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12669 # We don't want -fno-exception wen compiling C++ code, so set the
12670 # no_builtin_flag separately
12671 if test "$GXX" = yes; then
12672 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12673 else
12674 lt_prog_compiler_no_builtin_flag_CXX=
12677 if test "$GXX" = yes; then
12678 # Set up default GNU C++ configuration
12681 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12682 if test "${with_gnu_ld+set}" = set; then
12683 withval="$with_gnu_ld"
12684 test "$withval" = no || with_gnu_ld=yes
12685 else
12686 with_gnu_ld=no
12688 ac_prog=ld
12689 if test "$GCC" = yes; then
12690 # Check if gcc -print-prog-name=ld gives a path.
12691 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12692 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12693 case $host in
12694 *-*-mingw*)
12695 # gcc leaves a trailing carriage return which upsets mingw
12696 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12698 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12699 esac
12700 case $ac_prog in
12701 # Accept absolute paths.
12702 [\\/]* | ?:[\\/]*)
12703 re_direlt='/[^/][^/]*/\.\./'
12704 # Canonicalize the pathname of ld
12705 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12706 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12707 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12708 done
12709 test -z "$LD" && LD="$ac_prog"
12712 # If it fails, then pretend we aren't using GCC.
12713 ac_prog=ld
12716 # If it is relative, then search for the first ld in PATH.
12717 with_gnu_ld=unknown
12719 esac
12720 elif test "$with_gnu_ld" = yes; then
12721 echo "$as_me:$LINENO: checking for GNU ld" >&5
12722 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12723 else
12724 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12725 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12727 if test "${lt_cv_path_LD+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730 if test -z "$LD"; then
12731 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12732 for ac_dir in $PATH; do
12733 IFS="$lt_save_ifs"
12734 test -z "$ac_dir" && ac_dir=.
12735 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12736 lt_cv_path_LD="$ac_dir/$ac_prog"
12737 # Check to see if the program is GNU ld. I'd rather use --version,
12738 # but apparently some GNU ld's only accept -v.
12739 # Break only if it was the GNU/non-GNU ld that we prefer.
12740 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12741 *GNU* | *'with BFD'*)
12742 test "$with_gnu_ld" != no && break
12745 test "$with_gnu_ld" != yes && break
12747 esac
12749 done
12750 IFS="$lt_save_ifs"
12751 else
12752 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12756 LD="$lt_cv_path_LD"
12757 if test -n "$LD"; then
12758 echo "$as_me:$LINENO: result: $LD" >&5
12759 echo "${ECHO_T}$LD" >&6
12760 else
12761 echo "$as_me:$LINENO: result: no" >&5
12762 echo "${ECHO_T}no" >&6
12764 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12765 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12766 { (exit 1); exit 1; }; }
12767 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12768 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12769 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 else
12772 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12773 case `$LD -v 2>&1 </dev/null` in
12774 *GNU* | *'with BFD'*)
12775 lt_cv_prog_gnu_ld=yes
12778 lt_cv_prog_gnu_ld=no
12780 esac
12782 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12783 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12784 with_gnu_ld=$lt_cv_prog_gnu_ld
12788 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12789 # archiving commands below assume that GNU ld is being used.
12790 if test "$with_gnu_ld" = yes; then
12791 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
12792 archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12794 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12795 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12797 # If archive_cmds runs LD, not CC, wlarc should be empty
12798 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12799 # investigate it a little bit more. (MM)
12800 wlarc='${wl}'
12802 # ancient GNU ld didn't support --whole-archive et. al.
12803 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12804 grep 'no-whole-archive' > /dev/null; then
12805 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12806 else
12807 whole_archive_flag_spec_CXX=
12809 else
12810 with_gnu_ld=no
12811 wlarc=
12813 # A generic and very simple default shared library creation
12814 # command for GNU C++ for the case where it uses the native
12815 # linker, instead of GNU ld. If possible, this setting should
12816 # overridden to take advantage of the native linker features on
12817 # the platform it is being used on.
12818 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
12821 # Commands to make compiler produce verbose output that lists
12822 # what "hidden" libraries, object files and flags are used when
12823 # linking a shared library.
12824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12826 else
12827 GXX=no
12828 with_gnu_ld=no
12829 wlarc=
12832 # PORTME: fill in a description of your system's C++ link characteristics
12833 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12834 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12835 ld_shlibs_CXX=yes
12836 case $host_os in
12837 aix3*)
12838 # FIXME: insert proper C++ library support
12839 ld_shlibs_CXX=no
12841 aix4* | aix5*)
12842 if test "$host_cpu" = ia64; then
12843 # On IA64, the linker does run time linking by default, so we don't
12844 # have to do anything special.
12845 aix_use_runtimelinking=no
12846 exp_sym_flag='-Bexport'
12847 no_entry_flag=""
12848 else
12849 # KDE requires run time linking. Make it the default.
12850 aix_use_runtimelinking=yes
12851 exp_sym_flag='-bexport'
12852 no_entry_flag='-bnoentry'
12855 # When large executables or shared objects are built, AIX ld can
12856 # have problems creating the table of contents. If linking a library
12857 # or program results in "error TOC overflow" add -mminimal-toc to
12858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12861 archive_cmds_CXX=''
12862 hardcode_direct_CXX=yes
12863 hardcode_libdir_separator_CXX=':'
12864 link_all_deplibs_CXX=yes
12866 if test "$GXX" = yes; then
12867 case $host_os in aix4.012|aix4.012.*)
12868 # We only want to do this on AIX 4.2 and lower, the check
12869 # below for broken collect2 doesn't work under 4.3+
12870 collect2name=`${CC} -print-prog-name=collect2`
12871 if test -f "$collect2name" && \
12872 strings "$collect2name" | grep resolve_lib_name >/dev/null
12873 then
12874 # We have reworked collect2
12875 hardcode_direct_CXX=yes
12876 else
12877 # We have old collect2
12878 hardcode_direct_CXX=unsupported
12879 # It fails to find uninstalled libraries when the uninstalled
12880 # path is not listed in the libpath. Setting hardcode_minus_L
12881 # to unsupported forces relinking
12882 hardcode_minus_L_CXX=yes
12883 hardcode_libdir_flag_spec_CXX='-L$libdir'
12884 hardcode_libdir_separator_CXX=
12886 esac
12887 shared_flag='-shared'
12888 else
12889 # not using gcc
12890 if test "$host_cpu" = ia64; then
12891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12892 # chokes on -Wl,-G. The following line is correct:
12893 shared_flag='-G'
12894 else
12895 if test "$aix_use_runtimelinking" = yes; then
12896 shared_flag='-qmkshrobj ${wl}-G'
12897 else
12898 shared_flag='-qmkshrobj'
12903 # Let the compiler handle the export list.
12904 always_export_symbols_CXX=no
12905 if test "$aix_use_runtimelinking" = yes; then
12906 # Warning - without using the other runtime loading flags (-brtl),
12907 # -berok will link without error, but may produce a broken library.
12908 allow_undefined_flag_CXX='-berok'
12909 # Determine the default libpath from the value encoded in an empty executable.
12910 cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h. */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12918 main ()
12922 return 0;
12924 _ACEOF
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12927 (eval $ac_link) 2>conftest.er1
12928 ac_status=$?
12929 grep -v '^ *+' conftest.er1 >conftest.err
12930 rm -f conftest.er1
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -z "$ac_cxx_werror_flag"
12935 || test ! -s conftest.err'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; } &&
12941 { ac_try='test -s conftest$ac_exeext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12950 # Check for a 64-bit object if we didn't find anything.
12951 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12952 }'`; fi
12953 else
12954 echo "$as_me: failed program was:" >&5
12955 sed 's/^/| /' conftest.$ac_ext >&5
12958 rm -f conftest.err conftest.$ac_objext \
12959 conftest$ac_exeext conftest.$ac_ext
12960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12962 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12964 archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
12965 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12966 else
12967 if test "$host_cpu" = ia64; then
12968 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12969 allow_undefined_flag_CXX="-z nodefs"
12970 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12971 else
12972 # Determine the default libpath from the value encoded in an empty executable.
12973 cat >conftest.$ac_ext <<_ACEOF
12974 /* confdefs.h. */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12981 main ()
12985 return 0;
12987 _ACEOF
12988 rm -f conftest.$ac_objext conftest$ac_exeext
12989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12990 (eval $ac_link) 2>conftest.er1
12991 ac_status=$?
12992 grep -v '^ *+' conftest.er1 >conftest.err
12993 rm -f conftest.er1
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -z "$ac_cxx_werror_flag"
12998 || test ! -s conftest.err'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; } &&
13004 { ac_try='test -s conftest$ac_exeext'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13013 # Check for a 64-bit object if we didn't find anything.
13014 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13015 }'`; fi
13016 else
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13021 rm -f conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
13023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13025 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13026 # Warning - without using the other run time loading flags,
13027 # -berok will link without error, but may produce a broken library.
13028 no_undefined_flag_CXX=' ${wl}-bernotok'
13029 allow_undefined_flag_CXX=' ${wl}-berok'
13030 # -bexpall does not export symbols beginning with underscore (_)
13031 always_export_symbols_CXX=yes
13032 # Exported symbols can be pulled into shared objects from archives
13033 whole_archive_flag_spec_CXX=' '
13034 archive_cmds_need_lc_CXX=yes
13035 # This is similar to how AIX traditionally builds it's shared libraries.
13036 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13040 chorus*)
13041 case $cc_basename in
13043 # FIXME: insert proper C++ library support
13044 ld_shlibs_CXX=no
13046 esac
13049 cygwin* | mingw* | pw32*)
13050 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13051 # as there is no search path for DLLs.
13052 hardcode_libdir_flag_spec_CXX='-L$libdir'
13053 allow_undefined_flag_CXX=no
13054 always_export_symbols_CXX=no
13055 enable_shared_with_static_runtimes_CXX=yes
13057 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13058 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13059 # If the export-symbols file already is a .def file (1st line
13060 # is EXPORTS), use it as is; otherwise, prepend...
13061 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13062 cp $export_symbols $output_objdir/$soname.def;
13063 else
13064 echo EXPORTS > $output_objdir/$soname.def;
13065 cat $export_symbols >> $output_objdir/$soname.def;
13067 $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13068 else
13069 ld_shlibs_CXX=no
13073 darwin* | rhapsody*)
13074 if test "$GXX" = yes; then
13075 archive_cmds_need_lc_CXX=no
13076 case "$host_os" in
13077 rhapsody* | darwin1.[012])
13078 allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress'
13080 *) # Darwin 1.3 on
13081 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13082 allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13083 else
13084 case ${MACOSX_DEPLOYMENT_TARGET} in
13085 10.012)
13086 allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13088 10.*)
13089 allow_undefined_flag_CXX='-Wl,-undefined -Wl,dynamic_lookup'
13091 esac
13094 esac
13095 lt_int_apple_cc_single_mod=no
13096 output_verbose_link_cmd='echo'
13097 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13098 lt_int_apple_cc_single_mod=yes
13100 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13101 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
13102 else
13103 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
13105 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
13107 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13108 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13109 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13110 else
13111 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13113 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13114 hardcode_direct_CXX=no
13115 hardcode_automatic_CXX=yes
13116 hardcode_shlibpath_var_CXX=unsupported
13117 whole_archive_flag_spec_CXX='-all_load $convenience'
13118 link_all_deplibs_CXX=yes
13119 else
13120 ld_shlibs_CXX=no
13124 dgux*)
13125 case $cc_basename in
13126 ec++)
13127 # FIXME: insert proper C++ library support
13128 ld_shlibs_CXX=no
13130 ghcx)
13131 # Green Hills C++ Compiler
13132 # FIXME: insert proper C++ library support
13133 ld_shlibs_CXX=no
13136 # FIXME: insert proper C++ library support
13137 ld_shlibs_CXX=no
13139 esac
13141 freebsd12*)
13142 # C++ shared libraries reported to be fairly broken before switch to ELF
13143 ld_shlibs_CXX=no
13145 freebsd-elf*)
13146 archive_cmds_need_lc_CXX=no
13148 freebsd* | kfreebsd*-gnu)
13149 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13150 # conventions
13151 ld_shlibs_CXX=yes
13153 gnu*)
13155 hpux9*)
13156 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13157 hardcode_libdir_separator_CXX=:
13158 export_dynamic_flag_spec_CXX='${wl}-E'
13159 hardcode_direct_CXX=yes
13160 hardcode_minus_L_CXX=yes # Not in the search PATH,
13161 # but as the default
13162 # location of the library.
13164 case $cc_basename in
13166 # FIXME: insert proper C++ library support
13167 ld_shlibs_CXX=no
13169 aCC)
13170 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13171 # Commands to make compiler produce verbose output that lists
13172 # what "hidden" libraries, object files and flags are used when
13173 # linking a shared library.
13175 # There doesn't appear to be a way to prevent this compiler from
13176 # explicitly linking system object files so we need to strip them
13177 # from the output so that they don't get included in the library
13178 # dependencies.
13179 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'
13182 if test "$GXX" = yes; then
13183 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13184 else
13185 # FIXME: insert proper C++ library support
13186 ld_shlibs_CXX=no
13189 esac
13191 hpux10*|hpux11*)
13192 if test $with_gnu_ld = no; then
13193 case "$host_cpu" in
13194 hppa*64*)
13195 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13196 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13197 hardcode_libdir_separator_CXX=:
13199 ia64*)
13200 hardcode_libdir_flag_spec_CXX='-L$libdir'
13203 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13204 hardcode_libdir_separator_CXX=:
13205 export_dynamic_flag_spec_CXX='${wl}-E'
13207 esac
13209 case "$host_cpu" in
13210 hppa*64*)
13211 hardcode_direct_CXX=no
13212 hardcode_shlibpath_var_CXX=no
13214 ia64*)
13215 hardcode_direct_CXX=no
13216 hardcode_shlibpath_var_CXX=no
13217 hardcode_minus_L_CXX=yes # Not in the search PATH,
13218 # but as the default
13219 # location of the library.
13222 hardcode_direct_CXX=yes
13223 hardcode_minus_L_CXX=yes # Not in the search PATH,
13224 # but as the default
13225 # location of the library.
13227 esac
13229 case $cc_basename in
13231 # FIXME: insert proper C++ library support
13232 ld_shlibs_CXX=no
13234 aCC)
13235 case "$host_cpu" in
13236 hppa*64*|ia64*)
13237 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13240 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13242 esac
13243 # Commands to make compiler produce verbose output that lists
13244 # what "hidden" libraries, object files and flags are used when
13245 # linking a shared library.
13247 # There doesn't appear to be a way to prevent this compiler from
13248 # explicitly linking system object files so we need to strip them
13249 # from the output so that they don't get included in the library
13250 # dependencies.
13251 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13254 if test "$GXX" = yes; then
13255 if test $with_gnu_ld = no; then
13256 case "$host_cpu" in
13257 ia64*|hppa*64*)
13258 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13261 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13263 esac
13265 else
13266 # FIXME: insert proper C++ library support
13267 ld_shlibs_CXX=no
13270 esac
13272 irix5* | irix6*)
13273 case $cc_basename in
13275 # SGI C++
13276 archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13278 # Archives containing C++ object files must be created using
13279 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13280 # necessary to make sure instantiated templates are included
13281 # in the archive.
13282 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13285 if test "$GXX" = yes; then
13286 if test "$with_gnu_ld" = no; then
13287 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13288 else
13289 archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13292 link_all_deplibs_CXX=yes
13294 esac
13295 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13296 hardcode_libdir_separator_CXX=:
13298 linux*)
13299 case $cc_basename in
13300 KCC)
13301 # Kuck and Associates, Inc. (KAI) C++ Compiler
13303 # KCC will only create a shared library if the output file
13304 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13305 # to its proper name (with version) after linking.
13306 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13307 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13308 # Commands to make compiler produce verbose output that lists
13309 # what "hidden" libraries, object files and flags are used when
13310 # linking a shared library.
13312 # There doesn't appear to be a way to prevent this compiler from
13313 # explicitly linking system object files so we need to strip them
13314 # from the output so that they don't get included in the library
13315 # dependencies.
13316 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13318 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13319 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13321 # Archives containing C++ object files must be created using
13322 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13323 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13325 icpc)
13326 # Intel C++
13327 with_gnu_ld=yes
13328 archive_cmds_need_lc_CXX=no
13329 archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13330 archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13331 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13332 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13333 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13335 cxx)
13336 # Compaq C++
13337 archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13338 archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13340 runpath_var=LD_RUN_PATH
13341 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13342 hardcode_libdir_separator_CXX=:
13344 # Commands to make compiler produce verbose output that lists
13345 # what "hidden" libraries, object files and flags are used when
13346 # linking a shared library.
13348 # There doesn't appear to be a way to prevent this compiler from
13349 # explicitly linking system object files so we need to strip them
13350 # from the output so that they don't get included in the library
13351 # dependencies.
13352 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'
13354 esac
13356 lynxos*)
13357 # FIXME: insert proper C++ library support
13358 ld_shlibs_CXX=no
13360 m88k*)
13361 # FIXME: insert proper C++ library support
13362 ld_shlibs_CXX=no
13364 mvs*)
13365 case $cc_basename in
13366 cxx)
13367 # FIXME: insert proper C++ library support
13368 ld_shlibs_CXX=no
13371 # FIXME: insert proper C++ library support
13372 ld_shlibs_CXX=no
13374 esac
13376 netbsd*)
13377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13378 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13379 wlarc=
13380 hardcode_libdir_flag_spec_CXX='-R$libdir'
13381 hardcode_direct_CXX=yes
13382 hardcode_shlibpath_var_CXX=no
13384 # Workaround some broken pre-1.5 toolchains
13385 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13387 osf3*)
13388 case $cc_basename in
13389 KCC)
13390 # Kuck and Associates, Inc. (KAI) C++ Compiler
13392 # KCC will only create a shared library if the output file
13393 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13394 # to its proper name (with version) after linking.
13395 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13397 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13398 hardcode_libdir_separator_CXX=:
13400 # Archives containing C++ object files must be created using
13401 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13402 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13405 RCC)
13406 # Rational C++ 2.4.1
13407 # FIXME: insert proper C++ library support
13408 ld_shlibs_CXX=no
13410 cxx)
13411 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13412 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13414 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13415 hardcode_libdir_separator_CXX=:
13417 # Commands to make compiler produce verbose output that lists
13418 # what "hidden" libraries, object files and flags are used when
13419 # linking a shared library.
13421 # There doesn't appear to be a way to prevent this compiler from
13422 # explicitly linking system object files so we need to strip them
13423 # from the output so that they don't get included in the library
13424 # dependencies.
13425 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'
13428 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13429 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13430 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13432 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13433 hardcode_libdir_separator_CXX=:
13435 # Commands to make compiler produce verbose output that lists
13436 # what "hidden" libraries, object files and flags are used when
13437 # linking a shared library.
13438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13440 else
13441 # FIXME: insert proper C++ library support
13442 ld_shlibs_CXX=no
13445 esac
13447 osf4* | osf5*)
13448 case $cc_basename in
13449 KCC)
13450 # Kuck and Associates, Inc. (KAI) C++ Compiler
13452 # KCC will only create a shared library if the output file
13453 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13454 # to its proper name (with version) after linking.
13455 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13458 hardcode_libdir_separator_CXX=:
13460 # Archives containing C++ object files must be created using
13461 # the KAI C++ compiler.
13462 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13464 RCC)
13465 # Rational C++ 2.4.1
13466 # FIXME: insert proper C++ library support
13467 ld_shlibs_CXX=no
13469 cxx)
13470 allow_undefined_flag_CXX=' -expect_unresolved \*'
13471 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13472 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13473 echo "-hidden">> $lib.exp~
13474 $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
13475 $rm $lib.exp'
13477 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13478 hardcode_libdir_separator_CXX=:
13480 # Commands to make compiler produce verbose output that lists
13481 # what "hidden" libraries, object files and flags are used when
13482 # linking a shared library.
13484 # There doesn't appear to be a way to prevent this compiler from
13485 # explicitly linking system object files so we need to strip them
13486 # from the output so that they don't get included in the library
13487 # dependencies.
13488 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'
13491 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13492 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13493 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13495 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13496 hardcode_libdir_separator_CXX=:
13498 # Commands to make compiler produce verbose output that lists
13499 # what "hidden" libraries, object files and flags are used when
13500 # linking a shared library.
13501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13503 else
13504 # FIXME: insert proper C++ library support
13505 ld_shlibs_CXX=no
13508 esac
13510 psos*)
13511 # FIXME: insert proper C++ library support
13512 ld_shlibs_CXX=no
13514 sco*)
13515 archive_cmds_need_lc_CXX=no
13516 case $cc_basename in
13518 # FIXME: insert proper C++ library support
13519 ld_shlibs_CXX=no
13522 # FIXME: insert proper C++ library support
13523 ld_shlibs_CXX=no
13525 esac
13527 sunos4*)
13528 case $cc_basename in
13530 # Sun C++ 4.x
13531 # FIXME: insert proper C++ library support
13532 ld_shlibs_CXX=no
13534 lcc)
13535 # Lucid
13536 # FIXME: insert proper C++ library support
13537 ld_shlibs_CXX=no
13540 # FIXME: insert proper C++ library support
13541 ld_shlibs_CXX=no
13543 esac
13545 solaris*)
13546 case $cc_basename in
13548 # Sun C++ 4.2, 5.x and Centerline C++
13549 no_undefined_flag_CXX=' -zdefs'
13550 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13551 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13552 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
13554 hardcode_libdir_flag_spec_CXX='-R$libdir'
13555 hardcode_shlibpath_var_CXX=no
13556 case $host_os in
13557 solaris2.0-5 | solaris2.0-5.*) ;;
13559 # The C++ compiler is used as linker so we must use $wl
13560 # flag to pass the commands to the underlying system
13561 # linker.
13562 # Supported since Solaris 2.6 (maybe 2.5.1?)
13563 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13565 esac
13566 link_all_deplibs_CXX=yes
13568 # Commands to make compiler produce verbose output that lists
13569 # what "hidden" libraries, object files and flags are used when
13570 # linking a shared library.
13572 # There doesn't appear to be a way to prevent this compiler from
13573 # explicitly linking system object files so we need to strip them
13574 # from the output so that they don't get included in the library
13575 # dependencies.
13576 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13578 # Archives containing C++ object files must be created using
13579 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13580 # necessary to make sure instantiated templates are included
13581 # in the archive.
13582 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13584 gcx)
13585 # Green Hills C++ Compiler
13586 archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
13588 # The C++ compiler must be used to create the archive.
13589 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13592 # GNU C++ compiler with Solaris linker
13593 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13594 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13595 if $CC --version | grep -v '^2\.7' > /dev/null; then
13596 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
13597 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13598 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
13600 # Commands to make compiler produce verbose output that lists
13601 # what "hidden" libraries, object files and flags are used when
13602 # linking a shared library.
13603 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13604 else
13605 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13606 # platform.
13607 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
13608 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13609 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
13611 # Commands to make compiler produce verbose output that lists
13612 # what "hidden" libraries, object files and flags are used when
13613 # linking a shared library.
13614 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13617 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13620 esac
13622 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13623 archive_cmds_need_lc_CXX=no
13625 tandem*)
13626 case $cc_basename in
13627 NCC)
13628 # NonStop-UX NCC 3.20
13629 # FIXME: insert proper C++ library support
13630 ld_shlibs_CXX=no
13633 # FIXME: insert proper C++ library support
13634 ld_shlibs_CXX=no
13636 esac
13638 vxworks*)
13639 # FIXME: insert proper C++ library support
13640 ld_shlibs_CXX=no
13643 # FIXME: insert proper C++ library support
13644 ld_shlibs_CXX=no
13646 esac
13647 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13648 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13649 test "$ld_shlibs_CXX" = no && can_build_shared=no
13651 GCC_CXX="$GXX"
13652 LD_CXX="$LD"
13654 ## CAVEAT EMPTOR:
13655 ## There is no encapsulation within the following macros, do not change
13656 ## the running order or otherwise move them around unless you know exactly
13657 ## what you are doing...
13659 cat > conftest.$ac_ext <<EOF
13660 class Foo
13662 public:
13663 Foo (void) { a = 0; }
13664 private:
13665 int a;
13669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; then
13674 # Parse the compiler output and extract the necessary
13675 # objects, libraries and library flags.
13677 # Sentinel used to keep track of whether or not we are before
13678 # the conftest object file.
13679 pre_test_object_deps_done=no
13681 # The `*' in the case matches for architectures that use `case' in
13682 # $output_verbose_cmd can trigger glob expansion during the loop
13683 # eval without this substitution.
13684 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13686 for p in `eval $output_verbose_link_cmd`; do
13687 case $p in
13689 -L* | -R* | -l*)
13690 # Some compilers place space between "-{L,R}" and the path.
13691 # Remove the space.
13692 if test $p = "-L" \
13693 || test $p = "-R"; then
13694 prev=$p
13695 continue
13696 else
13697 prev=
13700 if test "$pre_test_object_deps_done" = no; then
13701 case $p in
13702 -L* | -R*)
13703 # Internal compiler library paths should come after those
13704 # provided the user. The postdeps already come after the
13705 # user supplied libs so there is no need to process them.
13706 if test -z "$compiler_lib_search_path_CXX"; then
13707 compiler_lib_search_path_CXX="${prev}${p}"
13708 else
13709 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13712 # The "-l" case would never come before the object being
13713 # linked, so don't bother handling this case.
13714 esac
13715 else
13716 if test -z "$postdeps_CXX"; then
13717 postdeps_CXX="${prev}${p}"
13718 else
13719 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13724 *.$objext|*.$libext)
13725 # This assumes that the test object file only shows up
13726 # once in the compiler output.
13727 if test "$p" = "conftest.$objext"; then
13728 pre_test_object_deps_done=yes
13729 continue
13732 if test "$pre_test_object_deps_done" = no; then
13733 if test -z "$predep_objects_CXX"; then
13734 predep_objects_CXX="$p"
13735 else
13736 predep_objects_CXX="$predep_objects_CXX $p"
13738 else
13739 if test -z "$postdep_objects_CXX"; then
13740 postdep_objects_CXX="$p"
13741 else
13742 postdep_objects_CXX="$postdep_objects_CXX $p"
13747 *) ;; # Ignore the rest.
13749 esac
13750 done
13752 # Clean up.
13753 rm -f a.out a.exe
13754 else
13755 echo "libtool.m4: error: problem compiling CXX test program"
13758 $rm -f confest.$objext
13760 case " $postdeps_CXX " in
13761 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13762 esac
13764 lt_prog_compiler_wl_CXX=
13765 lt_prog_compiler_pic_CXX=
13766 lt_prog_compiler_static_CXX=
13768 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13769 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13771 # C++ specific cases for pic, static, wl, etc.
13772 if test "$GXX" = yes; then
13773 lt_prog_compiler_wl_CXX='-Wl,'
13774 lt_prog_compiler_static_CXX='-static'
13776 case $host_os in
13777 aix*)
13778 # All AIX code is PIC.
13779 if test "$host_cpu" = ia64; then
13780 # AIX 5 now supports IA64 processor
13781 lt_prog_compiler_static_CXX='-Bstatic'
13784 amigaos*)
13785 # FIXME: we need at least 68020 code to build shared libraries, but
13786 # adding the `-m68020' flag to GCC prevents building anything better,
13787 # like `-m68040'.
13788 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13790 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13791 # PIC is the default for these OSes.
13793 mingw* | os2* | pw32*)
13794 # This hack is so that the source file can tell whether it is being
13795 # built for inclusion in a dll (and should export symbols for example).
13796 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13798 darwin* | rhapsody*)
13799 # PIC is the default on this platform
13800 # Common symbols not allowed in MH_DYLIB files
13801 lt_prog_compiler_pic_CXX='-fno-common'
13803 *djgpp*)
13804 # DJGPP does not support shared libraries at all
13805 lt_prog_compiler_pic_CXX=
13807 sysv4*MP*)
13808 if test -d /usr/nec; then
13809 lt_prog_compiler_pic_CXX=-Kconform_pic
13812 hpux*)
13813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13814 # not for PA HP-UX.
13815 case "$host_cpu" in
13816 hppa*64*|ia64*)
13819 lt_prog_compiler_pic_CXX='-fPIC'
13821 esac
13824 lt_prog_compiler_pic_CXX='-fPIC'
13826 esac
13827 else
13828 case $host_os in
13829 aix4* | aix5*)
13830 # All AIX code is PIC.
13831 if test "$host_cpu" = ia64; then
13832 # AIX 5 now supports IA64 processor
13833 lt_prog_compiler_static_CXX='-Bstatic'
13834 else
13835 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13838 chorus*)
13839 case $cc_basename in
13840 cxch68)
13841 # Green Hills C++ Compiler
13842 # _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"
13844 esac
13846 dgux*)
13847 case $cc_basename in
13848 ec++)
13849 lt_prog_compiler_pic_CXX='-KPIC'
13851 ghcx)
13852 # Green Hills C++ Compiler
13853 lt_prog_compiler_pic_CXX='-pic'
13857 esac
13859 freebsd* | kfreebsd*-gnu)
13860 # FreeBSD uses GNU C++
13862 hpux9* | hpux10* | hpux11*)
13863 case $cc_basename in
13865 lt_prog_compiler_wl_CXX='-Wl,'
13866 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13867 if test "$host_cpu" != ia64; then
13868 lt_prog_compiler_pic_CXX='+Z'
13871 aCC)
13872 lt_prog_compiler_wl_CXX='-Wl,'
13873 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13874 case "$host_cpu" in
13875 hppa*64*|ia64*)
13876 # +Z the default
13879 lt_prog_compiler_pic_CXX='+Z'
13881 esac
13885 esac
13887 irix5* | irix6* | nonstopux*)
13888 case $cc_basename in
13890 lt_prog_compiler_wl_CXX='-Wl,'
13891 lt_prog_compiler_static_CXX='-non_shared'
13892 # CC pic flag -KPIC is the default.
13896 esac
13898 linux*)
13899 case $cc_basename in
13900 KCC)
13901 # KAI C++ Compiler
13902 lt_prog_compiler_wl_CXX='--backend -Wl,'
13903 lt_prog_compiler_pic_CXX='-fPIC'
13905 icpc)
13906 # Intel C++
13907 lt_prog_compiler_wl_CXX='-Wl,'
13908 lt_prog_compiler_pic_CXX='-KPIC'
13909 lt_prog_compiler_static_CXX='-static'
13911 cxx)
13912 # Compaq C++
13913 # Make sure the PIC flag is empty. It appears that all Alpha
13914 # Linux and Compaq Tru64 Unix objects are PIC.
13915 lt_prog_compiler_pic_CXX=
13916 lt_prog_compiler_static_CXX='-non_shared'
13920 esac
13922 lynxos*)
13924 m88k*)
13926 mvs*)
13927 case $cc_basename in
13928 cxx)
13929 lt_prog_compiler_pic_CXX='-W c,exportall'
13933 esac
13935 netbsd*)
13937 osf3* | osf4* | osf5*)
13938 case $cc_basename in
13939 KCC)
13940 lt_prog_compiler_wl_CXX='--backend -Wl,'
13942 RCC)
13943 # Rational C++ 2.4.1
13944 lt_prog_compiler_pic_CXX='-pic'
13946 cxx)
13947 # Digital/Compaq C++
13948 lt_prog_compiler_wl_CXX='-Wl,'
13949 # Make sure the PIC flag is empty. It appears that all Alpha
13950 # Linux and Compaq Tru64 Unix objects are PIC.
13951 lt_prog_compiler_pic_CXX=
13952 lt_prog_compiler_static_CXX='-non_shared'
13956 esac
13958 psos*)
13960 sco*)
13961 case $cc_basename in
13963 lt_prog_compiler_pic_CXX='-fPIC'
13967 esac
13969 solaris*)
13970 case $cc_basename in
13972 # Sun C++ 4.2, 5.x and Centerline C++
13973 lt_prog_compiler_pic_CXX='-KPIC'
13974 lt_prog_compiler_static_CXX='-Bstatic'
13975 lt_prog_compiler_wl_CXX='-Qoption ld '
13977 gcx)
13978 # Green Hills C++ Compiler
13979 lt_prog_compiler_pic_CXX='-PIC'
13983 esac
13985 sunos4*)
13986 case $cc_basename in
13988 # Sun C++ 4.x
13989 lt_prog_compiler_pic_CXX='-pic'
13990 lt_prog_compiler_static_CXX='-Bstatic'
13992 lcc)
13993 # Lucid
13994 lt_prog_compiler_pic_CXX='-pic'
13998 esac
14000 tandem*)
14001 case $cc_basename in
14002 NCC)
14003 # NonStop-UX NCC 3.20
14004 lt_prog_compiler_pic_CXX='-KPIC'
14008 esac
14010 unixware*)
14012 vxworks*)
14015 lt_prog_compiler_can_build_shared_CXX=no
14017 esac
14020 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14021 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14024 # Check to make sure the PIC flag actually works.
14026 if test -n "$lt_prog_compiler_pic_CXX"; then
14028 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14029 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14030 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14032 else
14033 lt_prog_compiler_pic_works_CXX=no
14034 ac_outfile=conftest.$ac_objext
14035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14036 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14037 # Insert the option either (1) after the last *FLAGS variable, or
14038 # (2) before a word containing "conftest.", or (3) at the end.
14039 # Note that $ac_compile itself does not contain backslashes and begins
14040 # with a dollar sign (not a hyphen), so the echo should work correctly.
14041 # The option is referenced via a variable to avoid confusing sed.
14042 lt_compile=`echo "$ac_compile" | $SED \
14043 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14045 -e 's:$: $lt_compiler_flag:'`
14046 (eval echo "\"\$as_me:14046: $lt_compile\"" >&5)
14047 (eval "$lt_compile" 2>conftest.err)
14048 ac_status=$?
14049 cat conftest.err >&5
14050 echo "$as_me:14050: \$? = $ac_status" >&5
14051 if (exit $ac_status) && test -s "$ac_outfile"; then
14052 # The compiler can only warn and ignore the option if not recognized
14053 # So say no if there are warnings
14054 if test ! -s conftest.err; then
14055 lt_prog_compiler_pic_works_CXX=yes
14058 $rm conftest*
14061 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14062 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14064 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14065 case $lt_prog_compiler_pic_CXX in
14066 "" | " "*) ;;
14067 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14068 esac
14069 else
14070 lt_prog_compiler_pic_CXX=
14071 lt_prog_compiler_can_build_shared_CXX=no
14075 case "$host_os" in
14076 # For platforms which do not support PIC, -DPIC is meaningless:
14077 *djgpp*)
14078 lt_prog_compiler_pic_CXX=
14081 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14083 esac
14085 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14086 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14087 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090 lt_cv_prog_compiler_c_o_CXX=no
14091 $rm -r conftest 2>/dev/null
14092 mkdir conftest
14093 cd conftest
14094 mkdir out
14095 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14097 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14098 # that will create temporary files in the current directory regardless of
14099 # the output directory. Thus, making CWD read-only will cause this test
14100 # to fail, enabling locking or at least warning the user not to do parallel
14101 # builds.
14102 chmod -w .
14104 lt_compiler_flag="-o out/conftest2.$ac_objext"
14105 # Insert the option either (1) after the last *FLAGS variable, or
14106 # (2) before a word containing "conftest.", or (3) at the end.
14107 # Note that $ac_compile itself does not contain backslashes and begins
14108 # with a dollar sign (not a hyphen), so the echo should work correctly.
14109 lt_compile=`echo "$ac_compile" | $SED \
14110 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14112 -e 's:$: $lt_compiler_flag:'`
14113 (eval echo "\"\$as_me:14113: $lt_compile\"" >&5)
14114 (eval "$lt_compile" 2>out/conftest.err)
14115 ac_status=$?
14116 cat out/conftest.err >&5
14117 echo "$as_me:14117: \$? = $ac_status" >&5
14118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14119 then
14120 # The compiler can only warn and ignore the option if not recognized
14121 # So say no if there are warnings
14122 if test ! -s out/conftest.err; then
14123 lt_cv_prog_compiler_c_o_CXX=yes
14126 chmod u+w .
14127 $rm conftest* out/*
14128 rmdir out
14129 cd ..
14130 rmdir conftest
14131 $rm conftest*
14134 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14135 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14138 hard_links="nottested"
14139 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14140 # do not overwrite the value of need_locks provided by the user
14141 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14142 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14143 hard_links=yes
14144 $rm conftest*
14145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14146 touch conftest.a
14147 ln conftest.a conftest.b 2>&5 || hard_links=no
14148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14149 echo "$as_me:$LINENO: result: $hard_links" >&5
14150 echo "${ECHO_T}$hard_links" >&6
14151 if test "$hard_links" = no; then
14152 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14153 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14154 need_locks=warn
14156 else
14157 need_locks=no
14160 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14161 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14163 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14164 case $host_os in
14165 aix4* | aix5*)
14166 # If we're using GNU nm, then we don't want the "-C" option.
14167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14168 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14169 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'
14170 else
14171 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'
14174 pw32*)
14175 export_symbols_cmds_CXX="$ltdll_cmds"
14177 cygwin* | mingw*)
14178 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14181 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14183 esac
14185 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14186 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14187 test "$ld_shlibs_CXX" = no && can_build_shared=no
14189 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14190 if test "$GCC" = yes; then
14191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14195 # Do we need to explicitly link libc?
14197 case "x$archive_cmds_need_lc_CXX" in
14198 x|xyes)
14199 # Assume -lc should be added
14200 archive_cmds_need_lc_CXX=yes
14202 if test "$enable_shared" = yes && test "$GCC" = yes; then
14203 case $archive_cmds_CXX in
14204 *'~'*)
14205 # FIXME: we may have to deal with multi-command sequences.
14207 '$CC '*)
14208 # Test whether the compiler implicitly links with -lc since on some
14209 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14210 # to ld, don't add -lc before -lgcc.
14211 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14212 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14213 $rm conftest*
14214 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14217 (eval $ac_compile) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } 2>conftest.err; then
14221 soname=conftest
14222 lib=conftest
14223 libobjs=conftest.$ac_objext
14224 deplibs=
14225 wl=$lt_prog_compiler_wl_CXX
14226 compiler_flags=-v
14227 linker_flags=-v
14228 verstring=
14229 output_objdir=.
14230 libname=conftest
14231 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14232 allow_undefined_flag_CXX=
14233 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14234 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14235 ac_status=$?
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); }
14238 then
14239 archive_cmds_need_lc_CXX=no
14240 else
14241 archive_cmds_need_lc_CXX=yes
14243 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14244 else
14245 cat conftest.err 1>&5
14247 $rm conftest*
14248 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14249 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14251 esac
14254 esac
14256 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14257 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14258 library_names_spec=
14259 libname_spec='lib$name'
14260 soname_spec=
14261 shrext=".so"
14262 postinstall_cmds=
14263 postuninstall_cmds=
14264 finish_cmds=
14265 finish_eval=
14266 shlibpath_var=
14267 shlibpath_overrides_runpath=unknown
14268 version_type=none
14269 dynamic_linker="$host_os ld.so"
14270 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14272 need_lib_prefix=unknown
14273 hardcode_into_libs=no
14275 # when you set need_version to no, make sure it does not cause -set_version
14276 # flags to be left without arguments
14277 need_version=unknown
14279 case $host_os in
14280 aix3*)
14281 version_type=linux
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14283 shlibpath_var=LIBPATH
14285 # AIX 3 has no versioning support, so we append a major version to the name.
14286 soname_spec='${libname}${release}${shared_ext}$major'
14289 aix4* | aix5*)
14290 version_type=linux
14291 need_lib_prefix=no
14292 need_version=no
14293 hardcode_into_libs=yes
14294 if test "$host_cpu" = ia64; then
14295 # AIX 5 supports IA64
14296 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14297 shlibpath_var=LD_LIBRARY_PATH
14298 else
14299 # With GCC up to 2.95.x, collect2 would create an import file
14300 # for dependence libraries. The import file would start with
14301 # the line `#! .'. This would cause the generated library to
14302 # depend on `.', always an invalid library. This was fixed in
14303 # development snapshots of GCC prior to 3.0.
14304 case $host_os in
14305 aix4 | aix4.[01] | aix4.[01].*)
14306 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14307 echo ' yes '
14308 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14310 else
14311 can_build_shared=no
14314 esac
14315 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14316 # soname into executable. Probably we can add versioning support to
14317 # collect2, so additional links can be useful in future.
14318 if test "$aix_use_runtimelinking" = yes; then
14319 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14320 # instead of lib<name>.a to let people know that these are not
14321 # typical AIX shared libraries.
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323 else
14324 # We preserve .a as extension for shared libraries through AIX4.2
14325 # and later when we are not doing run time linking.
14326 library_names_spec='${libname}${release}.a $libname.a'
14327 soname_spec='${libname}${release}${shared_ext}$major'
14329 shlibpath_var=LIBPATH
14333 amigaos*)
14334 library_names_spec='$libname.ixlibrary $libname.a'
14335 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14336 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'
14339 beos*)
14340 library_names_spec='${libname}${shared_ext}'
14341 dynamic_linker="$host_os ld.so"
14342 shlibpath_var=LIBRARY_PATH
14345 bsdi4*)
14346 version_type=linux
14347 need_version=no
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14351 shlibpath_var=LD_LIBRARY_PATH
14352 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14353 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14354 # the default ld.so.conf also contains /usr/contrib/lib and
14355 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14356 # libtool to hard-code these into programs
14359 cygwin* | mingw* | pw32*)
14360 version_type=windows
14361 shrext=".dll"
14362 need_version=no
14363 need_lib_prefix=no
14365 case $GCC,$host_os in
14366 yes,cygwin* | yes,mingw* | yes,pw32*)
14367 library_names_spec='$libname.dll.a'
14368 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14369 postinstall_cmds='base_file=`basename \${file}`~
14370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14371 dldir=$destdir/`dirname \$dlpath`~
14372 test -d \$dldir || mkdir -p \$dldir~
14373 $install_prog $dir/$dlname \$dldir/$dlname'
14374 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14375 dlpath=$dir/\$dldll~
14376 $rm \$dlpath'
14377 shlibpath_overrides_runpath=yes
14379 case $host_os in
14380 cygwin*)
14381 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14382 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14383 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14385 mingw*)
14386 # MinGW DLLs use traditional 'lib' prefix
14387 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14388 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14389 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14390 # It is most probably a Windows format PATH printed by
14391 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14392 # path with ; separators, and with drive letters. We can handle the
14393 # drive letters (cygwin fileutils understands them), so leave them,
14394 # especially as we might pass files found there to a mingw objdump,
14395 # which wouldn't understand a cygwinified path. Ahh.
14396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14397 else
14398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14401 pw32*)
14402 # pw32 DLLs use 'pw' prefix rather than 'lib'
14403 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14405 esac
14409 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14411 esac
14412 dynamic_linker='Win32 ld.exe'
14413 # FIXME: first we should search . and the directory the executable is in
14414 shlibpath_var=PATH
14417 darwin* | rhapsody*)
14418 dynamic_linker="$host_os dyld"
14419 version_type=darwin
14420 need_lib_prefix=no
14421 need_version=no
14422 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14423 soname_spec='${libname}${release}${major}$shared_ext'
14424 shlibpath_overrides_runpath=yes
14425 shlibpath_var=DYLD_LIBRARY_PATH
14426 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14427 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14428 if test "$GCC" = yes; then
14429 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14430 else
14431 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14436 dgux*)
14437 version_type=linux
14438 need_lib_prefix=no
14439 need_version=no
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14441 soname_spec='${libname}${release}${shared_ext}$major'
14442 shlibpath_var=LD_LIBRARY_PATH
14445 freebsd1*)
14446 dynamic_linker=no
14449 kfreebsd*-gnu*)
14450 version_type=linux
14451 need_lib_prefix=no
14452 need_version=no
14453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14454 soname_spec='${libname}${release}${shared_ext}$major'
14455 shlibpath_var=LD_LIBRARY_PATH
14456 shlibpath_overrides_runpath=no
14457 hardcode_into_libs=yes
14458 dynamic_linker='GNU ld.so'
14461 freebsd*)
14462 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14463 version_type=freebsd-$objformat
14464 case $version_type in
14465 freebsd-elf*)
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14467 need_version=no
14468 need_lib_prefix=no
14470 freebsd-*)
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14472 need_version=yes
14474 esac
14475 shlibpath_var=LD_LIBRARY_PATH
14476 case $host_os in
14477 freebsd2*)
14478 shlibpath_overrides_runpath=yes
14480 freebsd3.01* | freebsdelf3.01*)
14481 shlibpath_overrides_runpath=yes
14482 hardcode_into_libs=yes
14484 *) # from 3.2 on
14485 shlibpath_overrides_runpath=no
14486 hardcode_into_libs=yes
14488 esac
14491 gnu*)
14492 version_type=linux
14493 need_lib_prefix=no
14494 need_version=no
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 hardcode_into_libs=yes
14501 hpux9* | hpux10* | hpux11*)
14502 # Give a soname corresponding to the major version so that dld.sl refuses to
14503 # link against other versions.
14504 version_type=sunos
14505 need_lib_prefix=no
14506 need_version=no
14507 case "$host_cpu" in
14508 ia64*)
14509 shrext='.so'
14510 hardcode_into_libs=yes
14511 dynamic_linker="$host_os dld.so"
14512 shlibpath_var=LD_LIBRARY_PATH
14513 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14515 soname_spec='${libname}${release}${shared_ext}$major'
14516 if test "X$HPUX_IA64_MODE" = X32; then
14517 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14518 else
14519 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14521 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14523 hppa*64*)
14524 shrext='.sl'
14525 hardcode_into_libs=yes
14526 dynamic_linker="$host_os dld.sl"
14527 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14530 soname_spec='${libname}${release}${shared_ext}$major'
14531 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14532 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14535 shrext='.sl'
14536 dynamic_linker="$host_os dld.sl"
14537 shlibpath_var=SHLIB_PATH
14538 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540 soname_spec='${libname}${release}${shared_ext}$major'
14542 esac
14543 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14544 postinstall_cmds='chmod 555 $lib'
14547 irix5* | irix6* | nonstopux*)
14548 case $host_os in
14549 nonstopux*) version_type=nonstopux ;;
14551 if test "$lt_cv_prog_gnu_ld" = yes; then
14552 version_type=linux
14553 else
14554 version_type=irix
14555 fi ;;
14556 esac
14557 need_lib_prefix=no
14558 need_version=no
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14561 case $host_os in
14562 irix5* | nonstopux*)
14563 libsuff= shlibsuff=
14566 case $LD in # libtool.m4 will add one of these switches to LD
14567 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14568 libsuff= shlibsuff= libmagic=32-bit;;
14569 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14570 libsuff=32 shlibsuff=N32 libmagic=N32;;
14571 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14572 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14573 *) libsuff= shlibsuff= libmagic=never-match;;
14574 esac
14576 esac
14577 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14578 shlibpath_overrides_runpath=no
14579 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14580 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14581 hardcode_into_libs=yes
14584 # No shared lib support for Linux oldld, aout, or coff.
14585 linux*oldld* | linux*aout* | linux*coff*)
14586 dynamic_linker=no
14589 # This must be Linux ELF.
14590 linux*)
14591 version_type=linux
14592 need_lib_prefix=no
14593 need_version=no
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14595 soname_spec='${libname}${release}${shared_ext}$major'
14596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14597 libsuff=
14598 if test "x$LINUX_64_MODE" = x64; then
14599 # Some platforms are per default 64-bit, so there's no /lib64
14600 if test -d /lib64; then
14601 libsuff=64
14604 shlibpath_var=LD_LIBRARY_PATH
14605 shlibpath_overrides_runpath=no
14606 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14607 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14608 # This implies no fast_install, which is unacceptable.
14609 # Some rework will be needed to allow for fast_install
14610 # before this can be enabled.
14611 hardcode_into_libs=yes
14613 # We used to test for /lib/ld.so.1 and disable shared libraries on
14614 # powerpc, because MkLinux only supported shared libraries with the
14615 # GNU dynamic linker. Since this was broken with cross compilers,
14616 # most powerpc-linux boxes support dynamic linking these days and
14617 # people can always --disable-shared, the test was removed, and we
14618 # assume the GNU/Linux dynamic linker is in use.
14619 dynamic_linker='GNU/Linux ld.so'
14622 netbsd*)
14623 version_type=sunos
14624 need_lib_prefix=no
14625 need_version=no
14626 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14629 dynamic_linker='NetBSD (a.out) ld.so'
14630 else
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 dynamic_linker='NetBSD ld.elf_so'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 shlibpath_overrides_runpath=yes
14637 hardcode_into_libs=yes
14640 newsos6)
14641 version_type=linux
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 shlibpath_overrides_runpath=yes
14647 nto-qnx*)
14648 version_type=linux
14649 need_lib_prefix=no
14650 need_version=no
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14652 soname_spec='${libname}${release}${shared_ext}$major'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 shlibpath_overrides_runpath=yes
14657 openbsd*)
14658 version_type=sunos
14659 need_lib_prefix=no
14660 need_version=no
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14665 case $host_os in
14666 openbsd2.[89] | openbsd2.[89].*)
14667 shlibpath_overrides_runpath=no
14670 shlibpath_overrides_runpath=yes
14672 esac
14673 else
14674 shlibpath_overrides_runpath=yes
14678 os2*)
14679 libname_spec='$name'
14680 shrext=".dll"
14681 need_lib_prefix=no
14682 library_names_spec='$libname${shared_ext} $libname.a'
14683 dynamic_linker='OS/2 ld.exe'
14684 shlibpath_var=LIBPATH
14687 osf3* | osf4* | osf5*)
14688 version_type=osf
14689 need_lib_prefix=no
14690 need_version=no
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14695 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14698 sco3.2v5*)
14699 version_type=osf
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702 shlibpath_var=LD_LIBRARY_PATH
14705 solaris*)
14706 version_type=linux
14707 need_lib_prefix=no
14708 need_version=no
14709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710 soname_spec='${libname}${release}${shared_ext}$major'
14711 shlibpath_var=LD_LIBRARY_PATH
14712 shlibpath_overrides_runpath=yes
14713 hardcode_into_libs=yes
14714 # ldd complains unless libraries are executable
14715 postinstall_cmds='chmod +x $lib'
14718 sunos4*)
14719 version_type=sunos
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14721 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 shlibpath_overrides_runpath=yes
14724 if test "$with_gnu_ld" = yes; then
14725 need_lib_prefix=no
14727 need_version=yes
14730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14731 version_type=linux
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733 soname_spec='${libname}${release}${shared_ext}$major'
14734 shlibpath_var=LD_LIBRARY_PATH
14735 case $host_vendor in
14736 sni)
14737 shlibpath_overrides_runpath=no
14738 need_lib_prefix=no
14739 export_dynamic_flag_spec='${wl}-Blargedynsym'
14740 runpath_var=LD_RUN_PATH
14742 siemens)
14743 need_lib_prefix=no
14745 motorola)
14746 need_lib_prefix=no
14747 need_version=no
14748 shlibpath_overrides_runpath=no
14749 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14751 esac
14754 sysv4*MP*)
14755 if test -d /usr/nec ;then
14756 version_type=linux
14757 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14758 soname_spec='$libname${shared_ext}.$major'
14759 shlibpath_var=LD_LIBRARY_PATH
14763 uts4*)
14764 version_type=linux
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766 soname_spec='${libname}${release}${shared_ext}$major'
14767 shlibpath_var=LD_LIBRARY_PATH
14771 dynamic_linker=no
14773 esac
14774 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14775 echo "${ECHO_T}$dynamic_linker" >&6
14776 test "$dynamic_linker" = no && can_build_shared=no
14778 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14779 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14780 hardcode_action_CXX=
14781 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14782 test -n "$runpath_var CXX" || \
14783 test "X$hardcode_automatic_CXX"="Xyes" ; then
14785 # We can hardcode non-existant directories.
14786 if test "$hardcode_direct_CXX" != no &&
14787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14788 # have to relink, otherwise we might link with an installed library
14789 # when we should be linking with a yet-to-be-installed one
14790 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14791 test "$hardcode_minus_L_CXX" != no; then
14792 # Linking always hardcodes the temporary library directory.
14793 hardcode_action_CXX=relink
14794 else
14795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14796 hardcode_action_CXX=immediate
14798 else
14799 # We cannot hardcode anything, or else we can only hardcode existing
14800 # directories.
14801 hardcode_action_CXX=unsupported
14803 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14804 echo "${ECHO_T}$hardcode_action_CXX" >&6
14806 if test "$hardcode_action_CXX" = relink; then
14807 # Fast installation is not supported
14808 enable_fast_install=no
14809 elif test "$shlibpath_overrides_runpath" = yes ||
14810 test "$enable_shared" = no; then
14811 # Fast installation is not necessary
14812 enable_fast_install=needless
14815 striplib=
14816 old_striplib=
14817 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14818 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14819 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14820 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14821 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14822 echo "$as_me:$LINENO: result: yes" >&5
14823 echo "${ECHO_T}yes" >&6
14824 else
14825 # FIXME - insert some real tests, host_os isn't really good enough
14826 case $host_os in
14827 darwin*)
14828 if test -n "$STRIP" ; then
14829 striplib="$STRIP -x"
14830 echo "$as_me:$LINENO: result: yes" >&5
14831 echo "${ECHO_T}yes" >&6
14832 else
14833 echo "$as_me:$LINENO: result: no" >&5
14834 echo "${ECHO_T}no" >&6
14838 echo "$as_me:$LINENO: result: no" >&5
14839 echo "${ECHO_T}no" >&6
14841 esac
14844 if test "x$enable_dlopen" != xyes; then
14845 enable_dlopen=unknown
14846 enable_dlopen_self=unknown
14847 enable_dlopen_self_static=unknown
14848 else
14849 lt_cv_dlopen=no
14850 lt_cv_dlopen_libs=
14852 case $host_os in
14853 beos*)
14854 lt_cv_dlopen="load_add_on"
14855 lt_cv_dlopen_libs=
14856 lt_cv_dlopen_self=yes
14859 mingw* | pw32*)
14860 lt_cv_dlopen="LoadLibrary"
14861 lt_cv_dlopen_libs=
14864 cygwin*)
14865 lt_cv_dlopen="dlopen"
14866 lt_cv_dlopen_libs=
14869 darwin*)
14870 # if libdl is installed we need to link against it
14871 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14872 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876 ac_check_lib_save_LIBS=$LIBS
14877 LIBS="-ldl $LIBS"
14878 cat >conftest.$ac_ext <<_ACEOF
14879 /* confdefs.h. */
14880 _ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h. */
14885 /* Override any gcc2 internal prototype to avoid an error. */
14886 #ifdef __cplusplus
14887 extern "C"
14888 #endif
14889 /* We use char because int might match the return type of a gcc2
14890 builtin and then its argument prototype would still apply. */
14891 char dlopen ();
14893 main ()
14895 dlopen ();
14897 return 0;
14899 _ACEOF
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14902 (eval $ac_link) 2>conftest.er1
14903 ac_status=$?
14904 grep -v '^ *+' conftest.er1 >conftest.err
14905 rm -f conftest.er1
14906 cat conftest.err >&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -z "$ac_cxx_werror_flag"
14910 || test ! -s conftest.err'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest$ac_exeext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_lib_dl_dlopen=yes
14923 else
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_cv_lib_dl_dlopen=no
14929 rm -f conftest.err conftest.$ac_objext \
14930 conftest$ac_exeext conftest.$ac_ext
14931 LIBS=$ac_check_lib_save_LIBS
14933 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14934 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14935 if test $ac_cv_lib_dl_dlopen = yes; then
14936 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14937 else
14939 lt_cv_dlopen="dyld"
14940 lt_cv_dlopen_libs=
14941 lt_cv_dlopen_self=yes
14948 echo "$as_me:$LINENO: checking for shl_load" >&5
14949 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14950 if test "${ac_cv_func_shl_load+set}" = set; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953 cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h. */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14961 #define shl_load innocuous_shl_load
14963 /* System header to define __stub macros and hopefully few prototypes,
14964 which can conflict with char shl_load (); below.
14965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14966 <limits.h> exists even on freestanding compilers. */
14968 #ifdef __STDC__
14969 # include <limits.h>
14970 #else
14971 # include <assert.h>
14972 #endif
14974 #undef shl_load
14976 /* Override any gcc2 internal prototype to avoid an error. */
14977 #ifdef __cplusplus
14978 extern "C"
14980 #endif
14981 /* We use char because int might match the return type of a gcc2
14982 builtin and then its argument prototype would still apply. */
14983 char shl_load ();
14984 /* The GNU C library defines this for functions which it implements
14985 to always fail with ENOSYS. Some functions are actually named
14986 something starting with __ and the normal name is an alias. */
14987 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14988 choke me
14989 #else
14990 char (*f) () = shl_load;
14991 #endif
14992 #ifdef __cplusplus
14994 #endif
14997 main ()
14999 return f != shl_load;
15001 return 0;
15003 _ACEOF
15004 rm -f conftest.$ac_objext conftest$ac_exeext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15006 (eval $ac_link) 2>conftest.er1
15007 ac_status=$?
15008 grep -v '^ *+' conftest.er1 >conftest.err
15009 rm -f conftest.er1
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -z "$ac_cxx_werror_flag"
15014 || test ! -s conftest.err'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; } &&
15020 { ac_try='test -s conftest$ac_exeext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_func_shl_load=yes
15027 else
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_cv_func_shl_load=no
15033 rm -f conftest.err conftest.$ac_objext \
15034 conftest$ac_exeext conftest.$ac_ext
15036 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15037 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15038 if test $ac_cv_func_shl_load = yes; then
15039 lt_cv_dlopen="shl_load"
15040 else
15041 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15042 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15043 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 else
15046 ac_check_lib_save_LIBS=$LIBS
15047 LIBS="-ldld $LIBS"
15048 cat >conftest.$ac_ext <<_ACEOF
15049 /* confdefs.h. */
15050 _ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15055 /* Override any gcc2 internal prototype to avoid an error. */
15056 #ifdef __cplusplus
15057 extern "C"
15058 #endif
15059 /* We use char because int might match the return type of a gcc2
15060 builtin and then its argument prototype would still apply. */
15061 char shl_load ();
15063 main ()
15065 shl_load ();
15067 return 0;
15069 _ACEOF
15070 rm -f conftest.$ac_objext conftest$ac_exeext
15071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15072 (eval $ac_link) 2>conftest.er1
15073 ac_status=$?
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
15079 { ac_try='test -z "$ac_cxx_werror_flag"
15080 || test ! -s conftest.err'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 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_lib_dld_shl_load=yes
15093 else
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_cv_lib_dld_shl_load=no
15099 rm -f conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15101 LIBS=$ac_check_lib_save_LIBS
15103 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15104 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15105 if test $ac_cv_lib_dld_shl_load = yes; then
15106 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15107 else
15108 echo "$as_me:$LINENO: checking for dlopen" >&5
15109 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15110 if test "${ac_cv_func_dlopen+set}" = set; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113 cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h. */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15119 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15121 #define dlopen innocuous_dlopen
15123 /* System header to define __stub macros and hopefully few prototypes,
15124 which can conflict with char dlopen (); below.
15125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15126 <limits.h> exists even on freestanding compilers. */
15128 #ifdef __STDC__
15129 # include <limits.h>
15130 #else
15131 # include <assert.h>
15132 #endif
15134 #undef dlopen
15136 /* Override any gcc2 internal prototype to avoid an error. */
15137 #ifdef __cplusplus
15138 extern "C"
15140 #endif
15141 /* We use char because int might match the return type of a gcc2
15142 builtin and then its argument prototype would still apply. */
15143 char dlopen ();
15144 /* The GNU C library defines this for functions which it implements
15145 to always fail with ENOSYS. Some functions are actually named
15146 something starting with __ and the normal name is an alias. */
15147 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15148 choke me
15149 #else
15150 char (*f) () = dlopen;
15151 #endif
15152 #ifdef __cplusplus
15154 #endif
15157 main ()
15159 return f != dlopen;
15161 return 0;
15163 _ACEOF
15164 rm -f conftest.$ac_objext conftest$ac_exeext
15165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15166 (eval $ac_link) 2>conftest.er1
15167 ac_status=$?
15168 grep -v '^ *+' conftest.er1 >conftest.err
15169 rm -f conftest.er1
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } &&
15173 { ac_try='test -z "$ac_cxx_werror_flag"
15174 || test ! -s conftest.err'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15177 ac_status=$?
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; } &&
15180 { ac_try='test -s conftest$ac_exeext'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; }; then
15186 ac_cv_func_dlopen=yes
15187 else
15188 echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15191 ac_cv_func_dlopen=no
15193 rm -f conftest.err conftest.$ac_objext \
15194 conftest$ac_exeext conftest.$ac_ext
15196 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15197 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15198 if test $ac_cv_func_dlopen = yes; then
15199 lt_cv_dlopen="dlopen"
15200 else
15201 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15202 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15203 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206 ac_check_lib_save_LIBS=$LIBS
15207 LIBS="-ldl $LIBS"
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 /* Override any gcc2 internal prototype to avoid an error. */
15216 #ifdef __cplusplus
15217 extern "C"
15218 #endif
15219 /* We use char because int might match the return type of a gcc2
15220 builtin and then its argument prototype would still apply. */
15221 char dlopen ();
15223 main ()
15225 dlopen ();
15227 return 0;
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232 (eval $ac_link) 2>conftest.er1
15233 ac_status=$?
15234 grep -v '^ *+' conftest.er1 >conftest.err
15235 rm -f conftest.er1
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_cxx_werror_flag"
15240 || test ! -s conftest.err'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; } &&
15246 { ac_try='test -s conftest$ac_exeext'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 ac_cv_lib_dl_dlopen=yes
15253 else
15254 echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 ac_cv_lib_dl_dlopen=no
15259 rm -f conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
15261 LIBS=$ac_check_lib_save_LIBS
15263 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15264 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15265 if test $ac_cv_lib_dl_dlopen = yes; then
15266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15267 else
15268 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15269 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15270 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273 ac_check_lib_save_LIBS=$LIBS
15274 LIBS="-lsvld $LIBS"
15275 cat >conftest.$ac_ext <<_ACEOF
15276 /* confdefs.h. */
15277 _ACEOF
15278 cat confdefs.h >>conftest.$ac_ext
15279 cat >>conftest.$ac_ext <<_ACEOF
15280 /* end confdefs.h. */
15282 /* Override any gcc2 internal prototype to avoid an error. */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 /* We use char because int might match the return type of a gcc2
15287 builtin and then its argument prototype would still apply. */
15288 char dlopen ();
15290 main ()
15292 dlopen ();
15294 return 0;
15296 _ACEOF
15297 rm -f conftest.$ac_objext conftest$ac_exeext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15299 (eval $ac_link) 2>conftest.er1
15300 ac_status=$?
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } &&
15306 { ac_try='test -z "$ac_cxx_werror_flag"
15307 || test ! -s conftest.err'
15308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309 (eval $ac_try) 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; } &&
15313 { ac_try='test -s conftest$ac_exeext'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15319 ac_cv_lib_svld_dlopen=yes
15320 else
15321 echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ac_cv_lib_svld_dlopen=no
15326 rm -f conftest.err conftest.$ac_objext \
15327 conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15330 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15331 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15332 if test $ac_cv_lib_svld_dlopen = yes; then
15333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15334 else
15335 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15336 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15337 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15340 ac_check_lib_save_LIBS=$LIBS
15341 LIBS="-ldld $LIBS"
15342 cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h. */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15349 /* Override any gcc2 internal prototype to avoid an error. */
15350 #ifdef __cplusplus
15351 extern "C"
15352 #endif
15353 /* We use char because int might match the return type of a gcc2
15354 builtin and then its argument prototype would still apply. */
15355 char dld_link ();
15357 main ()
15359 dld_link ();
15361 return 0;
15363 _ACEOF
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15366 (eval $ac_link) 2>conftest.er1
15367 ac_status=$?
15368 grep -v '^ *+' conftest.er1 >conftest.err
15369 rm -f conftest.er1
15370 cat conftest.err >&5
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); } &&
15373 { ac_try='test -z "$ac_cxx_werror_flag"
15374 || test ! -s conftest.err'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; } &&
15380 { ac_try='test -s conftest$ac_exeext'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 ac_cv_lib_dld_dld_link=yes
15387 else
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15391 ac_cv_lib_dld_dld_link=no
15393 rm -f conftest.err conftest.$ac_objext \
15394 conftest$ac_exeext conftest.$ac_ext
15395 LIBS=$ac_check_lib_save_LIBS
15397 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15398 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15399 if test $ac_cv_lib_dld_dld_link = yes; then
15400 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15419 esac
15421 if test "x$lt_cv_dlopen" != xno; then
15422 enable_dlopen=yes
15423 else
15424 enable_dlopen=no
15427 case $lt_cv_dlopen in
15428 dlopen)
15429 save_CPPFLAGS="$CPPFLAGS"
15430 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15432 save_LDFLAGS="$LDFLAGS"
15433 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15435 save_LIBS="$LIBS"
15436 LIBS="$lt_cv_dlopen_libs $LIBS"
15438 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15439 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15440 if test "${lt_cv_dlopen_self+set}" = set; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 else
15443 if test "$cross_compiling" = yes; then :
15444 lt_cv_dlopen_self=cross
15445 else
15446 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15447 lt_status=$lt_dlunknown
15448 cat > conftest.$ac_ext <<EOF
15449 #line 15449 "configure"
15450 #include "confdefs.h"
15452 #if HAVE_DLFCN_H
15453 #include <dlfcn.h>
15454 #endif
15456 #include <stdio.h>
15458 #ifdef RTLD_GLOBAL
15459 # define LT_DLGLOBAL RTLD_GLOBAL
15460 #else
15461 # ifdef DL_GLOBAL
15462 # define LT_DLGLOBAL DL_GLOBAL
15463 # else
15464 # define LT_DLGLOBAL 0
15465 # endif
15466 #endif
15468 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15469 find out it does not work in some platform. */
15470 #ifndef LT_DLLAZY_OR_NOW
15471 # ifdef RTLD_LAZY
15472 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15473 # else
15474 # ifdef DL_LAZY
15475 # define LT_DLLAZY_OR_NOW DL_LAZY
15476 # else
15477 # ifdef RTLD_NOW
15478 # define LT_DLLAZY_OR_NOW RTLD_NOW
15479 # else
15480 # ifdef DL_NOW
15481 # define LT_DLLAZY_OR_NOW DL_NOW
15482 # else
15483 # define LT_DLLAZY_OR_NOW 0
15484 # endif
15485 # endif
15486 # endif
15487 # endif
15488 #endif
15490 #ifdef __cplusplus
15491 extern "C" void exit (int);
15492 #endif
15494 void fnord() { int i=42;}
15495 int main ()
15497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15498 int status = $lt_dlunknown;
15500 if (self)
15502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15503 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15504 /* dlclose (self); */
15507 exit (status);
15510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15511 (eval $ac_link) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15515 (./conftest; exit; ) 2>/dev/null
15516 lt_status=$?
15517 case x$lt_status in
15518 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15519 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15520 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15521 esac
15522 else :
15523 # compilation failed
15524 lt_cv_dlopen_self=no
15527 rm -fr conftest*
15531 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15532 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15534 if test "x$lt_cv_dlopen_self" = xyes; then
15535 LDFLAGS="$LDFLAGS $link_static_flag"
15536 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15537 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15538 if test "${lt_cv_dlopen_self_static+set}" = set; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541 if test "$cross_compiling" = yes; then :
15542 lt_cv_dlopen_self_static=cross
15543 else
15544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15545 lt_status=$lt_dlunknown
15546 cat > conftest.$ac_ext <<EOF
15547 #line 15547 "configure"
15548 #include "confdefs.h"
15550 #if HAVE_DLFCN_H
15551 #include <dlfcn.h>
15552 #endif
15554 #include <stdio.h>
15556 #ifdef RTLD_GLOBAL
15557 # define LT_DLGLOBAL RTLD_GLOBAL
15558 #else
15559 # ifdef DL_GLOBAL
15560 # define LT_DLGLOBAL DL_GLOBAL
15561 # else
15562 # define LT_DLGLOBAL 0
15563 # endif
15564 #endif
15566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15567 find out it does not work in some platform. */
15568 #ifndef LT_DLLAZY_OR_NOW
15569 # ifdef RTLD_LAZY
15570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15571 # else
15572 # ifdef DL_LAZY
15573 # define LT_DLLAZY_OR_NOW DL_LAZY
15574 # else
15575 # ifdef RTLD_NOW
15576 # define LT_DLLAZY_OR_NOW RTLD_NOW
15577 # else
15578 # ifdef DL_NOW
15579 # define LT_DLLAZY_OR_NOW DL_NOW
15580 # else
15581 # define LT_DLLAZY_OR_NOW 0
15582 # endif
15583 # endif
15584 # endif
15585 # endif
15586 #endif
15588 #ifdef __cplusplus
15589 extern "C" void exit (int);
15590 #endif
15592 void fnord() { int i=42;}
15593 int main ()
15595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15596 int status = $lt_dlunknown;
15598 if (self)
15600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15602 /* dlclose (self); */
15605 exit (status);
15608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15609 (eval $ac_link) 2>&5
15610 ac_status=$?
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15613 (./conftest; exit; ) 2>/dev/null
15614 lt_status=$?
15615 case x$lt_status in
15616 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15617 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15618 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15619 esac
15620 else :
15621 # compilation failed
15622 lt_cv_dlopen_self_static=no
15625 rm -fr conftest*
15629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15630 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15633 CPPFLAGS="$save_CPPFLAGS"
15634 LDFLAGS="$save_LDFLAGS"
15635 LIBS="$save_LIBS"
15637 esac
15639 case $lt_cv_dlopen_self in
15640 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15641 *) enable_dlopen_self=unknown ;;
15642 esac
15644 case $lt_cv_dlopen_self_static in
15645 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15646 *) enable_dlopen_self_static=unknown ;;
15647 esac
15651 # The else clause should only fire when bootstrapping the
15652 # libtool distribution, otherwise you forgot to ship ltmain.sh
15653 # with your package, and you will get complaints that there are
15654 # no rules to generate ltmain.sh.
15655 if test -f "$ltmain"; then
15656 # See if we are running on zsh, and set the options which allow our commands through
15657 # without removal of \ escapes.
15658 if test -n "${ZSH_VERSION+set}" ; then
15659 setopt NO_GLOB_SUBST
15661 # Now quote all the things that may contain metacharacters while being
15662 # careful not to overquote the AC_SUBSTed values. We take copies of the
15663 # variables and quote the copies for generation of the libtool script.
15664 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15665 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15666 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15667 deplibs_check_method reload_flag reload_cmds need_locks \
15668 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15669 lt_cv_sys_global_symbol_to_c_name_address \
15670 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15671 old_postinstall_cmds old_postuninstall_cmds \
15672 compiler_CXX \
15673 CC_CXX \
15674 LD_CXX \
15675 lt_prog_compiler_wl_CXX \
15676 lt_prog_compiler_pic_CXX \
15677 lt_prog_compiler_static_CXX \
15678 lt_prog_compiler_no_builtin_flag_CXX \
15679 export_dynamic_flag_spec_CXX \
15680 thread_safe_flag_spec_CXX \
15681 whole_archive_flag_spec_CXX \
15682 enable_shared_with_static_runtimes_CXX \
15683 old_archive_cmds_CXX \
15684 old_archive_from_new_cmds_CXX \
15685 predep_objects_CXX \
15686 postdep_objects_CXX \
15687 predeps_CXX \
15688 postdeps_CXX \
15689 compiler_lib_search_path_CXX \
15690 archive_cmds_CXX \
15691 archive_expsym_cmds_CXX \
15692 postinstall_cmds_CXX \
15693 postuninstall_cmds_CXX \
15694 old_archive_from_expsyms_cmds_CXX \
15695 allow_undefined_flag_CXX \
15696 no_undefined_flag_CXX \
15697 export_symbols_cmds_CXX \
15698 hardcode_libdir_flag_spec_CXX \
15699 hardcode_libdir_flag_spec_ld_CXX \
15700 hardcode_libdir_separator_CXX \
15701 hardcode_automatic_CXX \
15702 module_cmds_CXX \
15703 module_expsym_cmds_CXX \
15704 lt_cv_prog_compiler_c_o_CXX \
15705 exclude_expsyms_CXX \
15706 include_expsyms_CXX; do
15708 case $var in
15709 old_archive_cmds_CXX | \
15710 old_archive_from_new_cmds_CXX | \
15711 archive_cmds_CXX | \
15712 archive_expsym_cmds_CXX | \
15713 module_cmds_CXX | \
15714 module_expsym_cmds_CXX | \
15715 old_archive_from_expsyms_cmds_CXX | \
15716 export_symbols_cmds_CXX | \
15717 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15718 postinstall_cmds | postuninstall_cmds | \
15719 old_postinstall_cmds | old_postuninstall_cmds | \
15720 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15721 # Double-quote double-evaled strings.
15722 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15727 esac
15728 done
15730 case $lt_echo in
15731 *'\$0 --fallback-echo"')
15732 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15734 esac
15736 cfgfile="$ofile"
15738 cat <<__EOF__ >> "$cfgfile"
15739 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15741 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15743 # Shell to use when invoking shell scripts.
15744 SHELL=$lt_SHELL
15746 # Whether or not to build shared libraries.
15747 build_libtool_libs=$enable_shared
15749 # Whether or not to build static libraries.
15750 build_old_libs=$enable_static
15752 # Whether or not to add -lc for building shared libraries.
15753 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15755 # Whether or not to disallow shared libs when runtime libs are static
15756 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15758 # Whether or not to optimize for fast installation.
15759 fast_install=$enable_fast_install
15761 # The host system.
15762 host_alias=$host_alias
15763 host=$host
15765 # An echo program that does not interpret backslashes.
15766 echo=$lt_echo
15768 # The archiver.
15769 AR=$lt_AR
15770 AR_FLAGS=$lt_AR_FLAGS
15772 # A C compiler.
15773 LTCC=$lt_LTCC
15775 # A language-specific compiler.
15776 CC=$lt_compiler_CXX
15778 # Is the compiler the GNU C compiler?
15779 with_gcc=$GCC_CXX
15781 # An ERE matcher.
15782 EGREP=$lt_EGREP
15784 # The linker used to build libraries.
15785 LD=$lt_LD_CXX
15787 # Whether we need hard or soft links.
15788 LN_S=$lt_LN_S
15790 # A BSD-compatible nm program.
15791 NM=$lt_NM
15793 # A symbol stripping program
15794 STRIP=$STRIP
15796 # Used to examine libraries when file_magic_cmd begins "file"
15797 MAGIC_CMD=$MAGIC_CMD
15799 # Used on cygwin: DLL creation program.
15800 DLLTOOL="$DLLTOOL"
15802 # Used on cygwin: object dumper.
15803 OBJDUMP="$OBJDUMP"
15805 # Used on cygwin: assembler.
15806 AS="$AS"
15808 # The name of the directory that contains temporary libtool files.
15809 objdir=$objdir
15811 # How to create reloadable object files.
15812 reload_flag=$lt_reload_flag
15813 reload_cmds=$lt_reload_cmds
15815 # How to pass a linker flag through the compiler.
15816 wl=$lt_lt_prog_compiler_wl_CXX
15818 # Object file suffix (normally "o").
15819 objext="$ac_objext"
15821 # Old archive suffix (normally "a").
15822 libext="$libext"
15824 # Shared library suffix (normally ".so").
15825 shrext='$shrext'
15827 # Executable file suffix (normally "").
15828 exeext="$exeext"
15830 # Additional compiler flags for building library objects.
15831 pic_flag=$lt_lt_prog_compiler_pic_CXX
15832 pic_mode=$pic_mode
15834 # What is the maximum length of a command?
15835 max_cmd_len=$lt_cv_sys_max_cmd_len
15837 # Does compiler simultaneously support -c and -o options?
15838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15840 # Must we lock files when doing compilation ?
15841 need_locks=$lt_need_locks
15843 # Do we need the lib prefix for modules?
15844 need_lib_prefix=$need_lib_prefix
15846 # Do we need a version for libraries?
15847 need_version=$need_version
15849 # Whether dlopen is supported.
15850 dlopen_support=$enable_dlopen
15852 # Whether dlopen of programs is supported.
15853 dlopen_self=$enable_dlopen_self
15855 # Whether dlopen of statically linked programs is supported.
15856 dlopen_self_static=$enable_dlopen_self_static
15858 # Compiler flag to prevent dynamic linking.
15859 link_static_flag=$lt_lt_prog_compiler_static_CXX
15861 # Compiler flag to turn off builtin functions.
15862 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15864 # Compiler flag to allow reflexive dlopens.
15865 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15867 # Compiler flag to generate shared objects directly from archives.
15868 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15870 # Compiler flag to generate thread-safe objects.
15871 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15873 # Library versioning type.
15874 version_type=$version_type
15876 # Format of library name prefix.
15877 libname_spec=$lt_libname_spec
15879 # List of archive names. First name is the real one, the rest are links.
15880 # The last name is the one that the linker finds with -lNAME.
15881 library_names_spec=$lt_library_names_spec
15883 # The coded name of the library, if different from the real name.
15884 soname_spec=$lt_soname_spec
15886 # Commands used to build and install an old-style archive.
15887 RANLIB=$lt_RANLIB
15888 old_archive_cmds=$lt_old_archive_cmds_CXX
15889 old_postinstall_cmds=$lt_old_postinstall_cmds
15890 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15892 # Create an old-style archive from a shared archive.
15893 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15895 # Create a temporary old-style archive to link instead of a shared archive.
15896 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15898 # Commands used to build and install a shared archive.
15899 archive_cmds=$lt_archive_cmds_CXX
15900 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15901 postinstall_cmds=$lt_postinstall_cmds
15902 postuninstall_cmds=$lt_postuninstall_cmds
15904 # Commands used to build a loadable module (assumed same as above if empty)
15905 module_cmds=$lt_module_cmds_CXX
15906 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15908 # Commands to strip libraries.
15909 old_striplib=$lt_old_striplib
15910 striplib=$lt_striplib
15912 # Dependencies to place before the objects being linked to create a
15913 # shared library.
15914 predep_objects=$lt_predep_objects_CXX
15916 # Dependencies to place after the objects being linked to create a
15917 # shared library.
15918 postdep_objects=$lt_postdep_objects_CXX
15920 # Dependencies to place before the objects being linked to create a
15921 # shared library.
15922 predeps=$lt_predeps_CXX
15924 # Dependencies to place after the objects being linked to create a
15925 # shared library.
15926 postdeps=$lt_postdeps_CXX
15928 # The library search path used internally by the compiler when linking
15929 # a shared library.
15930 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15932 # Method to check whether dependent libraries are shared objects.
15933 deplibs_check_method=$lt_deplibs_check_method
15935 # Command to use when deplibs_check_method == file_magic.
15936 file_magic_cmd=$lt_file_magic_cmd
15938 # Flag that allows shared libraries with undefined symbols to be built.
15939 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15941 # Flag that forces no undefined symbols.
15942 no_undefined_flag=$lt_no_undefined_flag_CXX
15944 # Commands used to finish a libtool library installation in a directory.
15945 finish_cmds=$lt_finish_cmds
15947 # Same as above, but a single script fragment to be evaled but not shown.
15948 finish_eval=$lt_finish_eval
15950 # Take the output of nm and produce a listing of raw symbols and C names.
15951 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15953 # Transform the output of nm in a proper C declaration
15954 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15956 # Transform the output of nm in a C name address pair
15957 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15959 # This is the shared library runtime path variable.
15960 runpath_var=$runpath_var
15962 # This is the shared library path variable.
15963 shlibpath_var=$shlibpath_var
15965 # Is shlibpath searched before the hard-coded library search path?
15966 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15968 # How to hardcode a shared library path into an executable.
15969 hardcode_action=$hardcode_action_CXX
15971 # Whether we should hardcode library paths into libraries.
15972 hardcode_into_libs=$hardcode_into_libs
15974 # Flag to hardcode \$libdir into a binary during linking.
15975 # This must work even if \$libdir does not exist.
15976 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15978 # If ld is used when linking, flag to hardcode \$libdir into
15979 # a binary during linking. This must work even if \$libdir does
15980 # not exist.
15981 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15983 # Whether we need a single -rpath flag with a separated argument.
15984 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15986 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15987 # resulting binary.
15988 hardcode_direct=$hardcode_direct_CXX
15990 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15991 # resulting binary.
15992 hardcode_minus_L=$hardcode_minus_L_CXX
15994 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15995 # the resulting binary.
15996 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15998 # Set to yes if building a shared library automatically hardcodes DIR into the library
15999 # and all subsequent libraries and executables linked against it.
16000 hardcode_automatic=$hardcode_automatic_CXX
16002 # Variables whose values should be saved in libtool wrapper scripts and
16003 # restored at relink time.
16004 variables_saved_for_relink="$variables_saved_for_relink"
16006 # Whether libtool must link a program against all its dependency libraries.
16007 link_all_deplibs=$link_all_deplibs_CXX
16009 # Compile-time system search path for libraries
16010 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16012 # Run-time system search path for libraries
16013 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16015 # Fix the shell variable \$srcfile for the compiler.
16016 fix_srcfile_path="$fix_srcfile_path_CXX"
16018 # Set to yes if exported symbols are required.
16019 always_export_symbols=$always_export_symbols_CXX
16021 # The commands to list exported symbols.
16022 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16024 # The commands to extract the exported symbol list from a shared archive.
16025 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16027 # Symbols that should not be listed in the preloaded symbols.
16028 exclude_expsyms=$lt_exclude_expsyms_CXX
16030 # Symbols that must always be exported.
16031 include_expsyms=$lt_include_expsyms_CXX
16033 # ### END LIBTOOL TAG CONFIG: $tagname
16035 __EOF__
16038 else
16039 # If there is no Makefile yet, we rely on a make rule to execute
16040 # `config.status --recheck' to rerun these tests and create the
16041 # libtool script then.
16042 test -f Makefile && make "$ltmain"
16046 ac_ext=c
16047 ac_cpp='$CPP $CPPFLAGS'
16048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16052 CC=$lt_save_CC
16053 LDCXX=$LD
16054 LD=$lt_save_LD
16055 GCC=$lt_save_GCC
16056 with_gnu_ldcxx=$with_gnu_ld
16057 with_gnu_ld=$lt_save_with_gnu_ld
16058 lt_cv_path_LDCXX=$lt_cv_path_LD
16059 lt_cv_path_LD=$lt_save_path_LD
16060 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16061 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16063 else
16064 tagname=""
16068 F77)
16069 if test -n "$F77" && test "X$F77" != "Xno"; then
16071 ac_ext=f
16072 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16073 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16074 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16077 archive_cmds_need_lc_F77=no
16078 allow_undefined_flag_F77=
16079 always_export_symbols_F77=no
16080 archive_expsym_cmds_F77=
16081 export_dynamic_flag_spec_F77=
16082 hardcode_direct_F77=no
16083 hardcode_libdir_flag_spec_F77=
16084 hardcode_libdir_flag_spec_ld_F77=
16085 hardcode_libdir_separator_F77=
16086 hardcode_minus_L_F77=no
16087 hardcode_automatic_F77=no
16088 module_cmds_F77=
16089 module_expsym_cmds_F77=
16090 link_all_deplibs_F77=unknown
16091 old_archive_cmds_F77=$old_archive_cmds
16092 no_undefined_flag_F77=
16093 whole_archive_flag_spec_F77=
16094 enable_shared_with_static_runtimes_F77=no
16096 # Source file extension for f77 test sources.
16097 ac_ext=f
16099 # Object file extension for compiled f77 test sources.
16100 objext=o
16101 objext_F77=$objext
16103 # Code to be used in simple compile tests
16104 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
16106 # Code to be used in simple link tests
16107 lt_simple_link_test_code=" program t\n end\n"
16109 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16111 # If no C compiler was specified, use CC.
16112 LTCC=${LTCC-"$CC"}
16114 # Allow CC to be a program name with arguments.
16115 compiler=$CC
16118 # Allow CC to be a program name with arguments.
16119 lt_save_CC="$CC"
16120 CC=${F77-"f77"}
16121 compiler=$CC
16122 compiler_F77=$CC
16123 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16125 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16126 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16127 echo "$as_me:$LINENO: result: $can_build_shared" >&5
16128 echo "${ECHO_T}$can_build_shared" >&6
16130 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16131 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16132 test "$can_build_shared" = "no" && enable_shared=no
16134 # On AIX, shared libraries and static libraries use the same namespace, and
16135 # are all built from PIC.
16136 case "$host_os" in
16137 aix3*)
16138 test "$enable_shared" = yes && enable_static=no
16139 if test -n "$RANLIB"; then
16140 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16141 postinstall_cmds='$RANLIB $lib'
16144 aix4*)
16145 test "$enable_shared" = yes && enable_static=no
16147 esac
16148 echo "$as_me:$LINENO: result: $enable_shared" >&5
16149 echo "${ECHO_T}$enable_shared" >&6
16151 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16152 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16153 # Make sure either enable_shared or enable_static is yes.
16154 test "$enable_shared" = yes || enable_static=yes
16155 echo "$as_me:$LINENO: result: $enable_static" >&5
16156 echo "${ECHO_T}$enable_static" >&6
16158 test "$ld_shlibs_F77" = no && can_build_shared=no
16160 GCC_F77="$G77"
16161 LD_F77="$LD"
16163 lt_prog_compiler_wl_F77=
16164 lt_prog_compiler_pic_F77=
16165 lt_prog_compiler_static_F77=
16167 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16168 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16170 if test "$GCC" = yes; then
16171 lt_prog_compiler_wl_F77='-Wl,'
16172 lt_prog_compiler_static_F77='-static'
16174 case $host_os in
16175 aix*)
16176 # All AIX code is PIC.
16177 if test "$host_cpu" = ia64; then
16178 # AIX 5 now supports IA64 processor
16179 lt_prog_compiler_static_F77='-Bstatic'
16183 amigaos*)
16184 # FIXME: we need at least 68020 code to build shared libraries, but
16185 # adding the `-m68020' flag to GCC prevents building anything better,
16186 # like `-m68040'.
16187 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16190 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16191 # PIC is the default for these OSes.
16194 mingw* | pw32* | os2*)
16195 # This hack is so that the source file can tell whether it is being
16196 # built for inclusion in a dll (and should export symbols for example).
16197 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16200 darwin* | rhapsody*)
16201 # PIC is the default on this platform
16202 # Common symbols not allowed in MH_DYLIB files
16203 lt_prog_compiler_pic_F77='-fno-common'
16206 msdosdjgpp*)
16207 # Just because we use GCC doesn't mean we suddenly get shared libraries
16208 # on systems that don't support them.
16209 lt_prog_compiler_can_build_shared_F77=no
16210 enable_shared=no
16213 sysv4*MP*)
16214 if test -d /usr/nec; then
16215 lt_prog_compiler_pic_F77=-Kconform_pic
16219 hpux*)
16220 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16221 # not for PA HP-UX.
16222 case "$host_cpu" in
16223 hppa*64*|ia64*)
16224 # +Z the default
16227 lt_prog_compiler_pic_F77='-fPIC'
16229 esac
16233 lt_prog_compiler_pic_F77='-fPIC'
16235 esac
16236 else
16237 # PORTME Check for flag to pass linker flags through the system compiler.
16238 case $host_os in
16239 aix*)
16240 lt_prog_compiler_wl_F77='-Wl,'
16241 if test "$host_cpu" = ia64; then
16242 # AIX 5 now supports IA64 processor
16243 lt_prog_compiler_static_F77='-Bstatic'
16244 else
16245 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16249 mingw* | pw32* | os2*)
16250 # This hack is so that the source file can tell whether it is being
16251 # built for inclusion in a dll (and should export symbols for example).
16252 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16255 hpux9* | hpux10* | hpux11*)
16256 lt_prog_compiler_wl_F77='-Wl,'
16257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16258 # not for PA HP-UX.
16259 case "$host_cpu" in
16260 hppa*64*|ia64*)
16261 # +Z the default
16264 lt_prog_compiler_pic_F77='+Z'
16266 esac
16267 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16268 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16271 irix5* | irix6* | nonstopux*)
16272 lt_prog_compiler_wl_F77='-Wl,'
16273 # PIC (with -KPIC) is the default.
16274 lt_prog_compiler_static_F77='-non_shared'
16277 newsos6)
16278 lt_prog_compiler_pic_F77='-KPIC'
16279 lt_prog_compiler_static_F77='-Bstatic'
16282 linux*)
16283 case $CC in
16284 icc* | ecc*)
16285 lt_prog_compiler_wl_F77='-Wl,'
16286 lt_prog_compiler_pic_F77='-KPIC'
16287 lt_prog_compiler_static_F77='-static'
16289 ccc*)
16290 lt_prog_compiler_wl_F77='-Wl,'
16291 # All Alpha code is PIC.
16292 lt_prog_compiler_static_F77='-non_shared'
16294 esac
16297 osf3* | osf4* | osf5*)
16298 lt_prog_compiler_wl_F77='-Wl,'
16299 # All OSF/1 code is PIC.
16300 lt_prog_compiler_static_F77='-non_shared'
16303 sco3.2v5*)
16304 lt_prog_compiler_pic_F77='-Kpic'
16305 lt_prog_compiler_static_F77='-dn'
16308 solaris*)
16309 lt_prog_compiler_wl_F77='-Wl,'
16310 lt_prog_compiler_pic_F77='-KPIC'
16311 lt_prog_compiler_static_F77='-Bstatic'
16314 sunos4*)
16315 lt_prog_compiler_wl_F77='-Qoption ld '
16316 lt_prog_compiler_pic_F77='-PIC'
16317 lt_prog_compiler_static_F77='-Bstatic'
16320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16321 lt_prog_compiler_wl_F77='-Wl,'
16322 lt_prog_compiler_pic_F77='-KPIC'
16323 lt_prog_compiler_static_F77='-Bstatic'
16326 sysv4*MP*)
16327 if test -d /usr/nec ;then
16328 lt_prog_compiler_pic_F77='-Kconform_pic'
16329 lt_prog_compiler_static_F77='-Bstatic'
16333 uts4*)
16334 lt_prog_compiler_pic_F77='-pic'
16335 lt_prog_compiler_static_F77='-Bstatic'
16339 lt_prog_compiler_can_build_shared_F77=no
16341 esac
16344 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16345 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16348 # Check to make sure the PIC flag actually works.
16350 if test -n "$lt_prog_compiler_pic_F77"; then
16352 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16353 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16354 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357 lt_prog_compiler_pic_works_F77=no
16358 ac_outfile=conftest.$ac_objext
16359 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16360 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16361 # Insert the option either (1) after the last *FLAGS variable, or
16362 # (2) before a word containing "conftest.", or (3) at the end.
16363 # Note that $ac_compile itself does not contain backslashes and begins
16364 # with a dollar sign (not a hyphen), so the echo should work correctly.
16365 # The option is referenced via a variable to avoid confusing sed.
16366 lt_compile=`echo "$ac_compile" | $SED \
16367 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16369 -e 's:$: $lt_compiler_flag:'`
16370 (eval echo "\"\$as_me:16370: $lt_compile\"" >&5)
16371 (eval "$lt_compile" 2>conftest.err)
16372 ac_status=$?
16373 cat conftest.err >&5
16374 echo "$as_me:16374: \$? = $ac_status" >&5
16375 if (exit $ac_status) && test -s "$ac_outfile"; then
16376 # The compiler can only warn and ignore the option if not recognized
16377 # So say no if there are warnings
16378 if test ! -s conftest.err; then
16379 lt_prog_compiler_pic_works_F77=yes
16382 $rm conftest*
16385 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16386 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16388 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16389 case $lt_prog_compiler_pic_F77 in
16390 "" | " "*) ;;
16391 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16392 esac
16393 else
16394 lt_prog_compiler_pic_F77=
16395 lt_prog_compiler_can_build_shared_F77=no
16399 case "$host_os" in
16400 # For platforms which do not support PIC, -DPIC is meaningless:
16401 *djgpp*)
16402 lt_prog_compiler_pic_F77=
16405 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16407 esac
16409 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16410 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16411 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16412 echo $ECHO_N "(cached) $ECHO_C" >&6
16413 else
16414 lt_cv_prog_compiler_c_o_F77=no
16415 $rm -r conftest 2>/dev/null
16416 mkdir conftest
16417 cd conftest
16418 mkdir out
16419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16421 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16422 # that will create temporary files in the current directory regardless of
16423 # the output directory. Thus, making CWD read-only will cause this test
16424 # to fail, enabling locking or at least warning the user not to do parallel
16425 # builds.
16426 chmod -w .
16428 lt_compiler_flag="-o out/conftest2.$ac_objext"
16429 # Insert the option either (1) after the last *FLAGS variable, or
16430 # (2) before a word containing "conftest.", or (3) at the end.
16431 # Note that $ac_compile itself does not contain backslashes and begins
16432 # with a dollar sign (not a hyphen), so the echo should work correctly.
16433 lt_compile=`echo "$ac_compile" | $SED \
16434 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16436 -e 's:$: $lt_compiler_flag:'`
16437 (eval echo "\"\$as_me:16437: $lt_compile\"" >&5)
16438 (eval "$lt_compile" 2>out/conftest.err)
16439 ac_status=$?
16440 cat out/conftest.err >&5
16441 echo "$as_me:16441: \$? = $ac_status" >&5
16442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16443 then
16444 # The compiler can only warn and ignore the option if not recognized
16445 # So say no if there are warnings
16446 if test ! -s out/conftest.err; then
16447 lt_cv_prog_compiler_c_o_F77=yes
16450 chmod u+w .
16451 $rm conftest* out/*
16452 rmdir out
16453 cd ..
16454 rmdir conftest
16455 $rm conftest*
16458 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16459 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16462 hard_links="nottested"
16463 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16464 # do not overwrite the value of need_locks provided by the user
16465 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16466 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16467 hard_links=yes
16468 $rm conftest*
16469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16470 touch conftest.a
16471 ln conftest.a conftest.b 2>&5 || hard_links=no
16472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16473 echo "$as_me:$LINENO: result: $hard_links" >&5
16474 echo "${ECHO_T}$hard_links" >&6
16475 if test "$hard_links" = no; then
16476 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16477 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16478 need_locks=warn
16480 else
16481 need_locks=no
16484 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16485 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16487 runpath_var=
16488 allow_undefined_flag_F77=
16489 enable_shared_with_static_runtimes_F77=no
16490 archive_cmds_F77=
16491 archive_expsym_cmds_F77=
16492 old_archive_From_new_cmds_F77=
16493 old_archive_from_expsyms_cmds_F77=
16494 export_dynamic_flag_spec_F77=
16495 whole_archive_flag_spec_F77=
16496 thread_safe_flag_spec_F77=
16497 hardcode_libdir_flag_spec_F77=
16498 hardcode_libdir_flag_spec_ld_F77=
16499 hardcode_libdir_separator_F77=
16500 hardcode_direct_F77=no
16501 hardcode_minus_L_F77=no
16502 hardcode_shlibpath_var_F77=unsupported
16503 link_all_deplibs_F77=unknown
16504 hardcode_automatic_F77=no
16505 module_cmds_F77=
16506 module_expsym_cmds_F77=
16507 always_export_symbols_F77=no
16508 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16509 # include_expsyms should be a list of space-separated symbols to be *always*
16510 # included in the symbol list
16511 include_expsyms_F77=
16512 # exclude_expsyms can be an extended regexp of symbols to exclude
16513 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16514 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16515 # as well as any symbol that contains `d'.
16516 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16517 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16518 # platforms (ab)use it in PIC code, but their linkers get confused if
16519 # the symbol is explicitly referenced. Since portable code cannot
16520 # rely on this symbol name, it's probably fine to never include it in
16521 # preloaded symbol tables.
16522 extract_expsyms_cmds=
16524 case $host_os in
16525 cygwin* | mingw* | pw32*)
16526 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16527 # When not using gcc, we currently assume that we are using
16528 # Microsoft Visual C++.
16529 if test "$GCC" != yes; then
16530 with_gnu_ld=no
16533 openbsd*)
16534 with_gnu_ld=no
16536 esac
16538 ld_shlibs_F77=yes
16539 if test "$with_gnu_ld" = yes; then
16540 # If archive_cmds runs LD, not CC, wlarc should be empty
16541 wlarc='${wl}'
16543 # See if GNU ld supports shared libraries.
16544 case $host_os in
16545 aix3* | aix4* | aix5*)
16546 # On AIX/PPC, the GNU linker is very broken
16547 if test "$host_cpu" != ia64; then
16548 ld_shlibs_F77=no
16549 cat <<EOF 1>&2
16551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16552 *** to be unable to reliably create shared libraries on AIX.
16553 *** Therefore, libtool is disabling shared libraries support. If you
16554 *** really care for shared libraries, you may want to modify your PATH
16555 *** so that a non-GNU linker is found, and then restart.
16561 amigaos*)
16562 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16563 hardcode_libdir_flag_spec_F77='-L$libdir'
16564 hardcode_minus_L_F77=yes
16566 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16567 # that the semantics of dynamic libraries on AmigaOS, at least up
16568 # to version 4, is to share data among multiple programs linked
16569 # with the same dynamic library. Since this doesn't match the
16570 # behavior of shared libraries on other platforms, we can't use
16571 # them.
16572 ld_shlibs_F77=no
16575 beos*)
16576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16577 allow_undefined_flag_F77=unsupported
16578 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16579 # support --undefined. This deserves some investigation. FIXME
16580 archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
16581 else
16582 ld_shlibs_F77=no
16586 cygwin* | mingw* | pw32*)
16587 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16588 # as there is no search path for DLLs.
16589 hardcode_libdir_flag_spec_F77='-L$libdir'
16590 allow_undefined_flag_F77=no
16591 always_export_symbols_F77=no
16592 enable_shared_with_static_runtimes_F77=yes
16593 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16595 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16596 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16597 # If the export-symbols file already is a .def file (1st line
16598 # is EXPORTS), use it as is; otherwise, prepend...
16599 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16600 cp $export_symbols $output_objdir/$soname.def;
16601 else
16602 echo EXPORTS > $output_objdir/$soname.def;
16603 cat $export_symbols >> $output_objdir/$soname.def;
16605 $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16606 else
16607 ld_shlibs=no
16611 netbsd*)
16612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16613 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16614 wlarc=
16615 else
16616 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
16617 archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16621 solaris* | sysv5*)
16622 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16623 ld_shlibs_F77=no
16624 cat <<EOF 1>&2
16626 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16627 *** create shared libraries on Solaris systems. Therefore, libtool
16628 *** is disabling shared libraries support. We urge you to upgrade GNU
16629 *** binutils to release 2.9.1 or newer. Another option is to modify
16630 *** your PATH or compiler configuration so that the native linker is
16631 *** used, and then restart.
16634 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16635 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
16636 archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16637 else
16638 ld_shlibs_F77=no
16642 sunos4*)
16643 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16644 wlarc=
16645 hardcode_direct_F77=yes
16646 hardcode_shlibpath_var_F77=no
16650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16651 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
16652 archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16653 else
16654 ld_shlibs_F77=no
16657 esac
16659 if test "$ld_shlibs_F77" = yes; then
16660 runpath_var=LD_RUN_PATH
16661 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16662 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16663 # ancient GNU ld didn't support --whole-archive et. al.
16664 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16665 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16666 else
16667 whole_archive_flag_spec_F77=
16670 else
16671 # PORTME fill in a description of your system's linker (not GNU ld)
16672 case $host_os in
16673 aix3*)
16674 allow_undefined_flag_F77=unsupported
16675 always_export_symbols_F77=yes
16676 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16677 # Note: this linker hardcodes the directories in LIBPATH if there
16678 # are no directories specified by -L.
16679 hardcode_minus_L_F77=yes
16680 if test "$GCC" = yes && test -z "$link_static_flag"; then
16681 # Neither direct hardcoding nor static linking is supported with a
16682 # broken collect2.
16683 hardcode_direct_F77=unsupported
16687 aix4* | aix5*)
16688 if test "$host_cpu" = ia64; then
16689 # On IA64, the linker does run time linking by default, so we don't
16690 # have to do anything special.
16691 aix_use_runtimelinking=no
16692 exp_sym_flag='-Bexport'
16693 no_entry_flag=""
16694 else
16695 # If we're using GNU nm, then we don't want the "-C" option.
16696 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16697 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16698 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16699 else
16700 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16703 # KDE requires run time linking. Make it the default.
16704 aix_use_runtimelinking=yes
16705 exp_sym_flag='-bexport'
16706 no_entry_flag='-bnoentry'
16709 # When large executables or shared objects are built, AIX ld can
16710 # have problems creating the table of contents. If linking a library
16711 # or program results in "error TOC overflow" add -mminimal-toc to
16712 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16713 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16715 archive_cmds_F77=''
16716 hardcode_direct_F77=yes
16717 hardcode_libdir_separator_F77=':'
16718 link_all_deplibs_F77=yes
16720 if test "$GCC" = yes; then
16721 case $host_os in aix4.012|aix4.012.*)
16722 # We only want to do this on AIX 4.2 and lower, the check
16723 # below for broken collect2 doesn't work under 4.3+
16724 collect2name=`${CC} -print-prog-name=collect2`
16725 if test -f "$collect2name" && \
16726 strings "$collect2name" | grep resolve_lib_name >/dev/null
16727 then
16728 # We have reworked collect2
16729 hardcode_direct_F77=yes
16730 else
16731 # We have old collect2
16732 hardcode_direct_F77=unsupported
16733 # It fails to find uninstalled libraries when the uninstalled
16734 # path is not listed in the libpath. Setting hardcode_minus_L
16735 # to unsupported forces relinking
16736 hardcode_minus_L_F77=yes
16737 hardcode_libdir_flag_spec_F77='-L$libdir'
16738 hardcode_libdir_separator_F77=
16740 esac
16741 shared_flag='-shared'
16742 else
16743 # not using gcc
16744 if test "$host_cpu" = ia64; then
16745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16746 # chokes on -Wl,-G. The following line is correct:
16747 shared_flag='-G'
16748 else
16749 if test "$aix_use_runtimelinking" = yes; then
16750 shared_flag='-qmkshrobj ${wl}-G'
16751 else
16752 shared_flag='-qmkshrobj'
16757 # Let the compiler handle the export list.
16758 always_export_symbols_F77=no
16759 if test "$aix_use_runtimelinking" = yes; then
16760 # Warning - without using the other runtime loading flags (-brtl),
16761 # -berok will link without error, but may produce a broken library.
16762 allow_undefined_flag_F77='-berok'
16763 # Determine the default libpath from the value encoded in an empty executable.
16764 cat >conftest.$ac_ext <<_ACEOF
16765 program main
16768 _ACEOF
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16771 (eval $ac_link) 2>conftest.er1
16772 ac_status=$?
16773 grep -v '^ *+' conftest.er1 >conftest.err
16774 rm -f conftest.er1
16775 cat conftest.err >&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } &&
16778 { ac_try='test -z "$ac_f77_werror_flag"
16779 || test ! -s conftest.err'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; } &&
16785 { ac_try='test -s conftest$ac_exeext'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16794 # Check for a 64-bit object if we didn't find anything.
16795 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16796 }'`; fi
16797 else
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16802 rm -f conftest.err conftest.$ac_objext \
16803 conftest$ac_exeext conftest.$ac_ext
16804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16806 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16807 archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
16808 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16809 else
16810 if test "$host_cpu" = ia64; then
16811 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16812 allow_undefined_flag_F77="-z nodefs"
16813 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16814 else
16815 # Determine the default libpath from the value encoded in an empty executable.
16816 cat >conftest.$ac_ext <<_ACEOF
16817 program main
16820 _ACEOF
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16823 (eval $ac_link) 2>conftest.er1
16824 ac_status=$?
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_f77_werror_flag"
16831 || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest$ac_exeext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16844 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16846 # Check for a 64-bit object if we didn't find anything.
16847 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16848 }'`; fi
16849 else
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16854 rm -f conftest.err conftest.$ac_objext \
16855 conftest$ac_exeext conftest.$ac_ext
16856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16858 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16859 # Warning - without using the other run time loading flags,
16860 # -berok will link without error, but may produce a broken library.
16861 no_undefined_flag_F77=' ${wl}-bernotok'
16862 allow_undefined_flag_F77=' ${wl}-berok'
16863 # -bexpall does not export symbols beginning with underscore (_)
16864 always_export_symbols_F77=yes
16865 # Exported symbols can be pulled into shared objects from archives
16866 whole_archive_flag_spec_F77=' '
16867 archive_cmds_need_lc_F77=yes
16868 # This is similar to how AIX traditionally builds it's shared libraries.
16869 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16874 amigaos*)
16875 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16876 hardcode_libdir_flag_spec_F77='-L$libdir'
16877 hardcode_minus_L_F77=yes
16878 # see comment about different semantics on the GNU ld section
16879 ld_shlibs_F77=no
16882 bsdi4*)
16883 export_dynamic_flag_spec_F77=-rdynamic
16886 cygwin* | mingw* | pw32*)
16887 # When not using gcc, we currently assume that we are using
16888 # Microsoft Visual C++.
16889 # hardcode_libdir_flag_spec is actually meaningless, as there is
16890 # no search path for DLLs.
16891 hardcode_libdir_flag_spec_F77=' '
16892 allow_undefined_flag_F77=no
16893 # Tell ltmain to make .lib files, not .a files.
16894 libext=lib
16895 # Tell ltmain to make .dll files, not .so files.
16896 shrext=".dll"
16897 # FIXME: Setting linknames here is a bad hack.
16898 archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16899 # The linker will automatically build a .lib file if we build a DLL.
16900 old_archive_From_new_cmds_F77='true'
16901 # FIXME: Should let the user specify the lib program.
16902 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16903 fix_srcfile_path='`cygpath -w "$srcfile"`'
16904 enable_shared_with_static_runtimes_F77=yes
16907 darwin* | rhapsody*)
16908 if test "$GXX" = yes ; then
16909 archive_cmds_need_lc_F77=no
16910 case "$host_os" in
16911 rhapsody* | darwin1.[012])
16912 allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress'
16914 *) # Darwin 1.3 on
16915 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16916 allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
16917 else
16918 case ${MACOSX_DEPLOYMENT_TARGET} in
16919 10.012)
16920 allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
16922 10.*)
16923 allow_undefined_flag_F77='-Wl,-undefined -Wl,dynamic_lookup'
16925 esac
16928 esac
16929 lt_int_apple_cc_single_mod=no
16930 output_verbose_link_cmd='echo'
16931 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16932 lt_int_apple_cc_single_mod=yes
16934 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16935 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
16936 else
16937 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
16939 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
16940 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16941 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16942 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16943 else
16944 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16946 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16947 hardcode_direct_F77=no
16948 hardcode_automatic_F77=yes
16949 hardcode_shlibpath_var_F77=unsupported
16950 whole_archive_flag_spec_F77='-all_load $convenience'
16951 link_all_deplibs_F77=yes
16952 else
16953 ld_shlibs_F77=no
16957 dgux*)
16958 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16959 hardcode_libdir_flag_spec_F77='-L$libdir'
16960 hardcode_shlibpath_var_F77=no
16963 freebsd1*)
16964 ld_shlibs_F77=no
16967 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16968 # support. Future versions do this automatically, but an explicit c++rt0.o
16969 # does not break anything, and helps significantly (at the cost of a little
16970 # extra space).
16971 freebsd2.2*)
16972 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16973 hardcode_libdir_flag_spec_F77='-R$libdir'
16974 hardcode_direct_F77=yes
16975 hardcode_shlibpath_var_F77=no
16978 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16979 freebsd2*)
16980 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16981 hardcode_direct_F77=yes
16982 hardcode_minus_L_F77=yes
16983 hardcode_shlibpath_var_F77=no
16986 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16987 freebsd* | kfreebsd*-gnu)
16988 archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
16989 hardcode_libdir_flag_spec_F77='-R$libdir'
16990 hardcode_direct_F77=yes
16991 hardcode_shlibpath_var_F77=no
16994 hpux9*)
16995 if test "$GCC" = yes; then
16996 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16997 else
16998 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17000 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17001 hardcode_libdir_separator_F77=:
17002 hardcode_direct_F77=yes
17004 # hardcode_minus_L: Not really in the search PATH,
17005 # but as the default location of the library.
17006 hardcode_minus_L_F77=yes
17007 export_dynamic_flag_spec_F77='${wl}-E'
17010 hpux10* | hpux11*)
17011 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17012 case "$host_cpu" in
17013 hppa*64*|ia64*)
17014 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17017 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
17019 esac
17020 else
17021 case "$host_cpu" in
17022 hppa*64*|ia64*)
17023 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17026 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17028 esac
17030 if test "$with_gnu_ld" = no; then
17031 case "$host_cpu" in
17032 hppa*64*)
17033 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17034 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17035 hardcode_libdir_separator_F77=:
17036 hardcode_direct_F77=no
17037 hardcode_shlibpath_var_F77=no
17039 ia64*)
17040 hardcode_libdir_flag_spec_F77='-L$libdir'
17041 hardcode_direct_F77=no
17042 hardcode_shlibpath_var_F77=no
17044 # hardcode_minus_L: Not really in the search PATH,
17045 # but as the default location of the library.
17046 hardcode_minus_L_F77=yes
17049 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17050 hardcode_libdir_separator_F77=:
17051 hardcode_direct_F77=yes
17052 export_dynamic_flag_spec_F77='${wl}-E'
17054 # hardcode_minus_L: Not really in the search PATH,
17055 # but as the default location of the library.
17056 hardcode_minus_L_F77=yes
17058 esac
17062 irix5* | irix6* | nonstopux*)
17063 if test "$GCC" = yes; then
17064 archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17065 else
17066 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17067 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17069 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17070 hardcode_libdir_separator_F77=:
17071 link_all_deplibs_F77=yes
17074 netbsd*)
17075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17076 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17077 else
17078 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17080 hardcode_libdir_flag_spec_F77='-R$libdir'
17081 hardcode_direct_F77=yes
17082 hardcode_shlibpath_var_F77=no
17085 newsos6)
17086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17087 hardcode_direct_F77=yes
17088 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17089 hardcode_libdir_separator_F77=:
17090 hardcode_shlibpath_var_F77=no
17093 openbsd*)
17094 hardcode_direct_F77=yes
17095 hardcode_shlibpath_var_F77=no
17096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17097 archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
17098 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17099 export_dynamic_flag_spec_F77='${wl}-E'
17100 else
17101 case $host_os in
17102 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17103 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17104 hardcode_libdir_flag_spec_F77='-R$libdir'
17107 archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
17108 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17110 esac
17114 os2*)
17115 hardcode_libdir_flag_spec_F77='-L$libdir'
17116 hardcode_minus_L_F77=yes
17117 allow_undefined_flag_F77=unsupported
17118 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
17119 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17122 osf3*)
17123 if test "$GCC" = yes; then
17124 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17125 archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17126 else
17127 allow_undefined_flag_F77=' -expect_unresolved \*'
17128 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17130 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17131 hardcode_libdir_separator_F77=:
17134 osf4* | osf5*) # as osf3* with the addition of -msym flag
17135 if test "$GCC" = yes; then
17136 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17137 archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
17138 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17139 else
17140 allow_undefined_flag_F77=' -expect_unresolved \*'
17141 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17142 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17143 $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'
17145 # Both c and cxx compiler support -rpath directly
17146 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17148 hardcode_libdir_separator_F77=:
17151 sco3.2v5*)
17152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17153 hardcode_shlibpath_var_F77=no
17154 export_dynamic_flag_spec_F77='${wl}-Bexport'
17155 runpath_var=LD_RUN_PATH
17156 hardcode_runpath_var=yes
17159 solaris*)
17160 no_undefined_flag_F77=' -z text'
17161 if test "$GCC" = yes; then
17162 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17163 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17164 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
17165 else
17166 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17167 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17168 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17170 hardcode_libdir_flag_spec_F77='-R$libdir'
17171 hardcode_shlibpath_var_F77=no
17172 case $host_os in
17173 solaris2.[0-5] | solaris2.[0-5].*) ;;
17174 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17175 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17176 esac
17177 link_all_deplibs_F77=yes
17180 sunos4*)
17181 if test "x$host_vendor" = xsequent; then
17182 # Use $CC to link under sequent, because it throws in some extra .o
17183 # files that make .init and .fini sections work.
17184 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
17185 else
17186 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17188 hardcode_libdir_flag_spec_F77='-L$libdir'
17189 hardcode_direct_F77=yes
17190 hardcode_minus_L_F77=yes
17191 hardcode_shlibpath_var_F77=no
17194 sysv4)
17195 case $host_vendor in
17196 sni)
17197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17198 hardcode_direct_F77=yes # is this really true???
17200 siemens)
17201 ## LD is ld it makes a PLAMLIB
17202 ## CC just makes a GrossModule.
17203 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17204 reload_cmds_F77='$CC -r -o $output$reload_objs'
17205 hardcode_direct_F77=no
17207 motorola)
17208 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17209 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17211 esac
17212 runpath_var='LD_RUN_PATH'
17213 hardcode_shlibpath_var_F77=no
17216 sysv4.3*)
17217 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17218 hardcode_shlibpath_var_F77=no
17219 export_dynamic_flag_spec_F77='-Bexport'
17222 sysv4*MP*)
17223 if test -d /usr/nec; then
17224 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17225 hardcode_shlibpath_var_F77=no
17226 runpath_var=LD_RUN_PATH
17227 hardcode_runpath_var=yes
17228 ld_shlibs_F77=yes
17232 sysv4.2uw2*)
17233 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17234 hardcode_direct_F77=yes
17235 hardcode_minus_L_F77=no
17236 hardcode_shlibpath_var_F77=no
17237 hardcode_runpath_var=yes
17238 runpath_var=LD_RUN_PATH
17241 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17242 no_undefined_flag_F77='${wl}-z ${wl}text'
17243 if test "$GCC" = yes; then
17244 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17245 else
17246 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17248 runpath_var='LD_RUN_PATH'
17249 hardcode_shlibpath_var_F77=no
17252 sysv5*)
17253 no_undefined_flag_F77=' -z text'
17254 # $CC -shared without GNU ld will not create a library from C++
17255 # object files and a static libstdc++, better avoid it by now
17256 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17257 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17258 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17259 hardcode_libdir_flag_spec_F77=
17260 hardcode_shlibpath_var_F77=no
17261 runpath_var='LD_RUN_PATH'
17264 uts4*)
17265 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17266 hardcode_libdir_flag_spec_F77='-L$libdir'
17267 hardcode_shlibpath_var_F77=no
17271 ld_shlibs_F77=no
17273 esac
17276 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17277 echo "${ECHO_T}$ld_shlibs_F77" >&6
17278 test "$ld_shlibs_F77" = no && can_build_shared=no
17280 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17281 if test "$GCC" = yes; then
17282 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17286 # Do we need to explicitly link libc?
17288 case "x$archive_cmds_need_lc_F77" in
17289 x|xyes)
17290 # Assume -lc should be added
17291 archive_cmds_need_lc_F77=yes
17293 if test "$enable_shared" = yes && test "$GCC" = yes; then
17294 case $archive_cmds_F77 in
17295 *'~'*)
17296 # FIXME: we may have to deal with multi-command sequences.
17298 '$CC '*)
17299 # Test whether the compiler implicitly links with -lc since on some
17300 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17301 # to ld, don't add -lc before -lgcc.
17302 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17303 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17304 $rm conftest*
17305 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308 (eval $ac_compile) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } 2>conftest.err; then
17312 soname=conftest
17313 lib=conftest
17314 libobjs=conftest.$ac_objext
17315 deplibs=
17316 wl=$lt_prog_compiler_wl_F77
17317 compiler_flags=-v
17318 linker_flags=-v
17319 verstring=
17320 output_objdir=.
17321 libname=conftest
17322 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17323 allow_undefined_flag_F77=
17324 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17325 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }
17329 then
17330 archive_cmds_need_lc_F77=no
17331 else
17332 archive_cmds_need_lc_F77=yes
17334 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17335 else
17336 cat conftest.err 1>&5
17338 $rm conftest*
17339 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17340 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17342 esac
17345 esac
17347 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17348 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17349 library_names_spec=
17350 libname_spec='lib$name'
17351 soname_spec=
17352 shrext=".so"
17353 postinstall_cmds=
17354 postuninstall_cmds=
17355 finish_cmds=
17356 finish_eval=
17357 shlibpath_var=
17358 shlibpath_overrides_runpath=unknown
17359 version_type=none
17360 dynamic_linker="$host_os ld.so"
17361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17362 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17363 need_lib_prefix=unknown
17364 hardcode_into_libs=no
17366 # when you set need_version to no, make sure it does not cause -set_version
17367 # flags to be left without arguments
17368 need_version=unknown
17370 case $host_os in
17371 aix3*)
17372 version_type=linux
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17374 shlibpath_var=LIBPATH
17376 # AIX 3 has no versioning support, so we append a major version to the name.
17377 soname_spec='${libname}${release}${shared_ext}$major'
17380 aix4* | aix5*)
17381 version_type=linux
17382 need_lib_prefix=no
17383 need_version=no
17384 hardcode_into_libs=yes
17385 if test "$host_cpu" = ia64; then
17386 # AIX 5 supports IA64
17387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 else
17390 # With GCC up to 2.95.x, collect2 would create an import file
17391 # for dependence libraries. The import file would start with
17392 # the line `#! .'. This would cause the generated library to
17393 # depend on `.', always an invalid library. This was fixed in
17394 # development snapshots of GCC prior to 3.0.
17395 case $host_os in
17396 aix4 | aix4.[01] | aix4.[01].*)
17397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17398 echo ' yes '
17399 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17401 else
17402 can_build_shared=no
17405 esac
17406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17407 # soname into executable. Probably we can add versioning support to
17408 # collect2, so additional links can be useful in future.
17409 if test "$aix_use_runtimelinking" = yes; then
17410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17411 # instead of lib<name>.a to let people know that these are not
17412 # typical AIX shared libraries.
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414 else
17415 # We preserve .a as extension for shared libraries through AIX4.2
17416 # and later when we are not doing run time linking.
17417 library_names_spec='${libname}${release}.a $libname.a'
17418 soname_spec='${libname}${release}${shared_ext}$major'
17420 shlibpath_var=LIBPATH
17424 amigaos*)
17425 library_names_spec='$libname.ixlibrary $libname.a'
17426 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17427 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'
17430 beos*)
17431 library_names_spec='${libname}${shared_ext}'
17432 dynamic_linker="$host_os ld.so"
17433 shlibpath_var=LIBRARY_PATH
17436 bsdi4*)
17437 version_type=linux
17438 need_version=no
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17445 # the default ld.so.conf also contains /usr/contrib/lib and
17446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17447 # libtool to hard-code these into programs
17450 cygwin* | mingw* | pw32*)
17451 version_type=windows
17452 shrext=".dll"
17453 need_version=no
17454 need_lib_prefix=no
17456 case $GCC,$host_os in
17457 yes,cygwin* | yes,mingw* | yes,pw32*)
17458 library_names_spec='$libname.dll.a'
17459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17460 postinstall_cmds='base_file=`basename \${file}`~
17461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17462 dldir=$destdir/`dirname \$dlpath`~
17463 test -d \$dldir || mkdir -p \$dldir~
17464 $install_prog $dir/$dlname \$dldir/$dlname'
17465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17466 dlpath=$dir/\$dldll~
17467 $rm \$dlpath'
17468 shlibpath_overrides_runpath=yes
17470 case $host_os in
17471 cygwin*)
17472 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17473 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17474 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17476 mingw*)
17477 # MinGW DLLs use traditional 'lib' prefix
17478 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17479 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17480 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17481 # It is most probably a Windows format PATH printed by
17482 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17483 # path with ; separators, and with drive letters. We can handle the
17484 # drive letters (cygwin fileutils understands them), so leave them,
17485 # especially as we might pass files found there to a mingw objdump,
17486 # which wouldn't understand a cygwinified path. Ahh.
17487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17488 else
17489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17492 pw32*)
17493 # pw32 DLLs use 'pw' prefix rather than 'lib'
17494 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17496 esac
17500 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17502 esac
17503 dynamic_linker='Win32 ld.exe'
17504 # FIXME: first we should search . and the directory the executable is in
17505 shlibpath_var=PATH
17508 darwin* | rhapsody*)
17509 dynamic_linker="$host_os dyld"
17510 version_type=darwin
17511 need_lib_prefix=no
17512 need_version=no
17513 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17514 soname_spec='${libname}${release}${major}$shared_ext'
17515 shlibpath_overrides_runpath=yes
17516 shlibpath_var=DYLD_LIBRARY_PATH
17517 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17518 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17519 if test "$GCC" = yes; then
17520 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17521 else
17522 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17527 dgux*)
17528 version_type=linux
17529 need_lib_prefix=no
17530 need_version=no
17531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17532 soname_spec='${libname}${release}${shared_ext}$major'
17533 shlibpath_var=LD_LIBRARY_PATH
17536 freebsd1*)
17537 dynamic_linker=no
17540 kfreebsd*-gnu*)
17541 version_type=linux
17542 need_lib_prefix=no
17543 need_version=no
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17545 soname_spec='${libname}${release}${shared_ext}$major'
17546 shlibpath_var=LD_LIBRARY_PATH
17547 shlibpath_overrides_runpath=no
17548 hardcode_into_libs=yes
17549 dynamic_linker='GNU ld.so'
17552 freebsd*)
17553 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17554 version_type=freebsd-$objformat
17555 case $version_type in
17556 freebsd-elf*)
17557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17558 need_version=no
17559 need_lib_prefix=no
17561 freebsd-*)
17562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17563 need_version=yes
17565 esac
17566 shlibpath_var=LD_LIBRARY_PATH
17567 case $host_os in
17568 freebsd2*)
17569 shlibpath_overrides_runpath=yes
17571 freebsd3.01* | freebsdelf3.01*)
17572 shlibpath_overrides_runpath=yes
17573 hardcode_into_libs=yes
17575 *) # from 3.2 on
17576 shlibpath_overrides_runpath=no
17577 hardcode_into_libs=yes
17579 esac
17582 gnu*)
17583 version_type=linux
17584 need_lib_prefix=no
17585 need_version=no
17586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17587 soname_spec='${libname}${release}${shared_ext}$major'
17588 shlibpath_var=LD_LIBRARY_PATH
17589 hardcode_into_libs=yes
17592 hpux9* | hpux10* | hpux11*)
17593 # Give a soname corresponding to the major version so that dld.sl refuses to
17594 # link against other versions.
17595 version_type=sunos
17596 need_lib_prefix=no
17597 need_version=no
17598 case "$host_cpu" in
17599 ia64*)
17600 shrext='.so'
17601 hardcode_into_libs=yes
17602 dynamic_linker="$host_os dld.so"
17603 shlibpath_var=LD_LIBRARY_PATH
17604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17606 soname_spec='${libname}${release}${shared_ext}$major'
17607 if test "X$HPUX_IA64_MODE" = X32; then
17608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17609 else
17610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17614 hppa*64*)
17615 shrext='.sl'
17616 hardcode_into_libs=yes
17617 dynamic_linker="$host_os dld.sl"
17618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17621 soname_spec='${libname}${release}${shared_ext}$major'
17622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17626 shrext='.sl'
17627 dynamic_linker="$host_os dld.sl"
17628 shlibpath_var=SHLIB_PATH
17629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17631 soname_spec='${libname}${release}${shared_ext}$major'
17633 esac
17634 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17635 postinstall_cmds='chmod 555 $lib'
17638 irix5* | irix6* | nonstopux*)
17639 case $host_os in
17640 nonstopux*) version_type=nonstopux ;;
17642 if test "$lt_cv_prog_gnu_ld" = yes; then
17643 version_type=linux
17644 else
17645 version_type=irix
17646 fi ;;
17647 esac
17648 need_lib_prefix=no
17649 need_version=no
17650 soname_spec='${libname}${release}${shared_ext}$major'
17651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17652 case $host_os in
17653 irix5* | nonstopux*)
17654 libsuff= shlibsuff=
17657 case $LD in # libtool.m4 will add one of these switches to LD
17658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17659 libsuff= shlibsuff= libmagic=32-bit;;
17660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17661 libsuff=32 shlibsuff=N32 libmagic=N32;;
17662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17664 *) libsuff= shlibsuff= libmagic=never-match;;
17665 esac
17667 esac
17668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17669 shlibpath_overrides_runpath=no
17670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17672 hardcode_into_libs=yes
17675 # No shared lib support for Linux oldld, aout, or coff.
17676 linux*oldld* | linux*aout* | linux*coff*)
17677 dynamic_linker=no
17680 # This must be Linux ELF.
17681 linux*)
17682 version_type=linux
17683 need_lib_prefix=no
17684 need_version=no
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686 soname_spec='${libname}${release}${shared_ext}$major'
17687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17688 libsuff=
17689 if test "x$LINUX_64_MODE" = x64; then
17690 # Some platforms are per default 64-bit, so there's no /lib64
17691 if test -d /lib64; then
17692 libsuff=64
17695 shlibpath_var=LD_LIBRARY_PATH
17696 shlibpath_overrides_runpath=no
17697 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17698 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17699 # This implies no fast_install, which is unacceptable.
17700 # Some rework will be needed to allow for fast_install
17701 # before this can be enabled.
17702 hardcode_into_libs=yes
17704 # We used to test for /lib/ld.so.1 and disable shared libraries on
17705 # powerpc, because MkLinux only supported shared libraries with the
17706 # GNU dynamic linker. Since this was broken with cross compilers,
17707 # most powerpc-linux boxes support dynamic linking these days and
17708 # people can always --disable-shared, the test was removed, and we
17709 # assume the GNU/Linux dynamic linker is in use.
17710 dynamic_linker='GNU/Linux ld.so'
17713 netbsd*)
17714 version_type=sunos
17715 need_lib_prefix=no
17716 need_version=no
17717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17720 dynamic_linker='NetBSD (a.out) ld.so'
17721 else
17722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17723 soname_spec='${libname}${release}${shared_ext}$major'
17724 dynamic_linker='NetBSD ld.elf_so'
17726 shlibpath_var=LD_LIBRARY_PATH
17727 shlibpath_overrides_runpath=yes
17728 hardcode_into_libs=yes
17731 newsos6)
17732 version_type=linux
17733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17734 shlibpath_var=LD_LIBRARY_PATH
17735 shlibpath_overrides_runpath=yes
17738 nto-qnx*)
17739 version_type=linux
17740 need_lib_prefix=no
17741 need_version=no
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743 soname_spec='${libname}${release}${shared_ext}$major'
17744 shlibpath_var=LD_LIBRARY_PATH
17745 shlibpath_overrides_runpath=yes
17748 openbsd*)
17749 version_type=sunos
17750 need_lib_prefix=no
17751 need_version=no
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17754 shlibpath_var=LD_LIBRARY_PATH
17755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17756 case $host_os in
17757 openbsd2.[89] | openbsd2.[89].*)
17758 shlibpath_overrides_runpath=no
17761 shlibpath_overrides_runpath=yes
17763 esac
17764 else
17765 shlibpath_overrides_runpath=yes
17769 os2*)
17770 libname_spec='$name'
17771 shrext=".dll"
17772 need_lib_prefix=no
17773 library_names_spec='$libname${shared_ext} $libname.a'
17774 dynamic_linker='OS/2 ld.exe'
17775 shlibpath_var=LIBPATH
17778 osf3* | osf4* | osf5*)
17779 version_type=osf
17780 need_lib_prefix=no
17781 need_version=no
17782 soname_spec='${libname}${release}${shared_ext}$major'
17783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17789 sco3.2v5*)
17790 version_type=osf
17791 soname_spec='${libname}${release}${shared_ext}$major'
17792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17793 shlibpath_var=LD_LIBRARY_PATH
17796 solaris*)
17797 version_type=linux
17798 need_lib_prefix=no
17799 need_version=no
17800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17801 soname_spec='${libname}${release}${shared_ext}$major'
17802 shlibpath_var=LD_LIBRARY_PATH
17803 shlibpath_overrides_runpath=yes
17804 hardcode_into_libs=yes
17805 # ldd complains unless libraries are executable
17806 postinstall_cmds='chmod +x $lib'
17809 sunos4*)
17810 version_type=sunos
17811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17812 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17813 shlibpath_var=LD_LIBRARY_PATH
17814 shlibpath_overrides_runpath=yes
17815 if test "$with_gnu_ld" = yes; then
17816 need_lib_prefix=no
17818 need_version=yes
17821 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17822 version_type=linux
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17824 soname_spec='${libname}${release}${shared_ext}$major'
17825 shlibpath_var=LD_LIBRARY_PATH
17826 case $host_vendor in
17827 sni)
17828 shlibpath_overrides_runpath=no
17829 need_lib_prefix=no
17830 export_dynamic_flag_spec='${wl}-Blargedynsym'
17831 runpath_var=LD_RUN_PATH
17833 siemens)
17834 need_lib_prefix=no
17836 motorola)
17837 need_lib_prefix=no
17838 need_version=no
17839 shlibpath_overrides_runpath=no
17840 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17842 esac
17845 sysv4*MP*)
17846 if test -d /usr/nec ;then
17847 version_type=linux
17848 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17849 soname_spec='$libname${shared_ext}.$major'
17850 shlibpath_var=LD_LIBRARY_PATH
17854 uts4*)
17855 version_type=linux
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 shlibpath_var=LD_LIBRARY_PATH
17862 dynamic_linker=no
17864 esac
17865 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17866 echo "${ECHO_T}$dynamic_linker" >&6
17867 test "$dynamic_linker" = no && can_build_shared=no
17869 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17870 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17871 hardcode_action_F77=
17872 if test -n "$hardcode_libdir_flag_spec_F77" || \
17873 test -n "$runpath_var F77" || \
17874 test "X$hardcode_automatic_F77"="Xyes" ; then
17876 # We can hardcode non-existant directories.
17877 if test "$hardcode_direct_F77" != no &&
17878 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17879 # have to relink, otherwise we might link with an installed library
17880 # when we should be linking with a yet-to-be-installed one
17881 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17882 test "$hardcode_minus_L_F77" != no; then
17883 # Linking always hardcodes the temporary library directory.
17884 hardcode_action_F77=relink
17885 else
17886 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17887 hardcode_action_F77=immediate
17889 else
17890 # We cannot hardcode anything, or else we can only hardcode existing
17891 # directories.
17892 hardcode_action_F77=unsupported
17894 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17895 echo "${ECHO_T}$hardcode_action_F77" >&6
17897 if test "$hardcode_action_F77" = relink; then
17898 # Fast installation is not supported
17899 enable_fast_install=no
17900 elif test "$shlibpath_overrides_runpath" = yes ||
17901 test "$enable_shared" = no; then
17902 # Fast installation is not necessary
17903 enable_fast_install=needless
17906 striplib=
17907 old_striplib=
17908 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17909 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17910 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17911 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17912 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17913 echo "$as_me:$LINENO: result: yes" >&5
17914 echo "${ECHO_T}yes" >&6
17915 else
17916 # FIXME - insert some real tests, host_os isn't really good enough
17917 case $host_os in
17918 darwin*)
17919 if test -n "$STRIP" ; then
17920 striplib="$STRIP -x"
17921 echo "$as_me:$LINENO: result: yes" >&5
17922 echo "${ECHO_T}yes" >&6
17923 else
17924 echo "$as_me:$LINENO: result: no" >&5
17925 echo "${ECHO_T}no" >&6
17929 echo "$as_me:$LINENO: result: no" >&5
17930 echo "${ECHO_T}no" >&6
17932 esac
17937 # The else clause should only fire when bootstrapping the
17938 # libtool distribution, otherwise you forgot to ship ltmain.sh
17939 # with your package, and you will get complaints that there are
17940 # no rules to generate ltmain.sh.
17941 if test -f "$ltmain"; then
17942 # See if we are running on zsh, and set the options which allow our commands through
17943 # without removal of \ escapes.
17944 if test -n "${ZSH_VERSION+set}" ; then
17945 setopt NO_GLOB_SUBST
17947 # Now quote all the things that may contain metacharacters while being
17948 # careful not to overquote the AC_SUBSTed values. We take copies of the
17949 # variables and quote the copies for generation of the libtool script.
17950 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17951 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17952 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17953 deplibs_check_method reload_flag reload_cmds need_locks \
17954 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17955 lt_cv_sys_global_symbol_to_c_name_address \
17956 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17957 old_postinstall_cmds old_postuninstall_cmds \
17958 compiler_F77 \
17959 CC_F77 \
17960 LD_F77 \
17961 lt_prog_compiler_wl_F77 \
17962 lt_prog_compiler_pic_F77 \
17963 lt_prog_compiler_static_F77 \
17964 lt_prog_compiler_no_builtin_flag_F77 \
17965 export_dynamic_flag_spec_F77 \
17966 thread_safe_flag_spec_F77 \
17967 whole_archive_flag_spec_F77 \
17968 enable_shared_with_static_runtimes_F77 \
17969 old_archive_cmds_F77 \
17970 old_archive_from_new_cmds_F77 \
17971 predep_objects_F77 \
17972 postdep_objects_F77 \
17973 predeps_F77 \
17974 postdeps_F77 \
17975 compiler_lib_search_path_F77 \
17976 archive_cmds_F77 \
17977 archive_expsym_cmds_F77 \
17978 postinstall_cmds_F77 \
17979 postuninstall_cmds_F77 \
17980 old_archive_from_expsyms_cmds_F77 \
17981 allow_undefined_flag_F77 \
17982 no_undefined_flag_F77 \
17983 export_symbols_cmds_F77 \
17984 hardcode_libdir_flag_spec_F77 \
17985 hardcode_libdir_flag_spec_ld_F77 \
17986 hardcode_libdir_separator_F77 \
17987 hardcode_automatic_F77 \
17988 module_cmds_F77 \
17989 module_expsym_cmds_F77 \
17990 lt_cv_prog_compiler_c_o_F77 \
17991 exclude_expsyms_F77 \
17992 include_expsyms_F77; do
17994 case $var in
17995 old_archive_cmds_F77 | \
17996 old_archive_from_new_cmds_F77 | \
17997 archive_cmds_F77 | \
17998 archive_expsym_cmds_F77 | \
17999 module_cmds_F77 | \
18000 module_expsym_cmds_F77 | \
18001 old_archive_from_expsyms_cmds_F77 | \
18002 export_symbols_cmds_F77 | \
18003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18004 postinstall_cmds | postuninstall_cmds | \
18005 old_postinstall_cmds | old_postuninstall_cmds | \
18006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18007 # Double-quote double-evaled strings.
18008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18013 esac
18014 done
18016 case $lt_echo in
18017 *'\$0 --fallback-echo"')
18018 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18020 esac
18022 cfgfile="$ofile"
18024 cat <<__EOF__ >> "$cfgfile"
18025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18029 # Shell to use when invoking shell scripts.
18030 SHELL=$lt_SHELL
18032 # Whether or not to build shared libraries.
18033 build_libtool_libs=$enable_shared
18035 # Whether or not to build static libraries.
18036 build_old_libs=$enable_static
18038 # Whether or not to add -lc for building shared libraries.
18039 build_libtool_need_lc=$archive_cmds_need_lc_F77
18041 # Whether or not to disallow shared libs when runtime libs are static
18042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18044 # Whether or not to optimize for fast installation.
18045 fast_install=$enable_fast_install
18047 # The host system.
18048 host_alias=$host_alias
18049 host=$host
18051 # An echo program that does not interpret backslashes.
18052 echo=$lt_echo
18054 # The archiver.
18055 AR=$lt_AR
18056 AR_FLAGS=$lt_AR_FLAGS
18058 # A C compiler.
18059 LTCC=$lt_LTCC
18061 # A language-specific compiler.
18062 CC=$lt_compiler_F77
18064 # Is the compiler the GNU C compiler?
18065 with_gcc=$GCC_F77
18067 # An ERE matcher.
18068 EGREP=$lt_EGREP
18070 # The linker used to build libraries.
18071 LD=$lt_LD_F77
18073 # Whether we need hard or soft links.
18074 LN_S=$lt_LN_S
18076 # A BSD-compatible nm program.
18077 NM=$lt_NM
18079 # A symbol stripping program
18080 STRIP=$STRIP
18082 # Used to examine libraries when file_magic_cmd begins "file"
18083 MAGIC_CMD=$MAGIC_CMD
18085 # Used on cygwin: DLL creation program.
18086 DLLTOOL="$DLLTOOL"
18088 # Used on cygwin: object dumper.
18089 OBJDUMP="$OBJDUMP"
18091 # Used on cygwin: assembler.
18092 AS="$AS"
18094 # The name of the directory that contains temporary libtool files.
18095 objdir=$objdir
18097 # How to create reloadable object files.
18098 reload_flag=$lt_reload_flag
18099 reload_cmds=$lt_reload_cmds
18101 # How to pass a linker flag through the compiler.
18102 wl=$lt_lt_prog_compiler_wl_F77
18104 # Object file suffix (normally "o").
18105 objext="$ac_objext"
18107 # Old archive suffix (normally "a").
18108 libext="$libext"
18110 # Shared library suffix (normally ".so").
18111 shrext='$shrext'
18113 # Executable file suffix (normally "").
18114 exeext="$exeext"
18116 # Additional compiler flags for building library objects.
18117 pic_flag=$lt_lt_prog_compiler_pic_F77
18118 pic_mode=$pic_mode
18120 # What is the maximum length of a command?
18121 max_cmd_len=$lt_cv_sys_max_cmd_len
18123 # Does compiler simultaneously support -c and -o options?
18124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18126 # Must we lock files when doing compilation ?
18127 need_locks=$lt_need_locks
18129 # Do we need the lib prefix for modules?
18130 need_lib_prefix=$need_lib_prefix
18132 # Do we need a version for libraries?
18133 need_version=$need_version
18135 # Whether dlopen is supported.
18136 dlopen_support=$enable_dlopen
18138 # Whether dlopen of programs is supported.
18139 dlopen_self=$enable_dlopen_self
18141 # Whether dlopen of statically linked programs is supported.
18142 dlopen_self_static=$enable_dlopen_self_static
18144 # Compiler flag to prevent dynamic linking.
18145 link_static_flag=$lt_lt_prog_compiler_static_F77
18147 # Compiler flag to turn off builtin functions.
18148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18150 # Compiler flag to allow reflexive dlopens.
18151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18153 # Compiler flag to generate shared objects directly from archives.
18154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18156 # Compiler flag to generate thread-safe objects.
18157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18159 # Library versioning type.
18160 version_type=$version_type
18162 # Format of library name prefix.
18163 libname_spec=$lt_libname_spec
18165 # List of archive names. First name is the real one, the rest are links.
18166 # The last name is the one that the linker finds with -lNAME.
18167 library_names_spec=$lt_library_names_spec
18169 # The coded name of the library, if different from the real name.
18170 soname_spec=$lt_soname_spec
18172 # Commands used to build and install an old-style archive.
18173 RANLIB=$lt_RANLIB
18174 old_archive_cmds=$lt_old_archive_cmds_F77
18175 old_postinstall_cmds=$lt_old_postinstall_cmds
18176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18178 # Create an old-style archive from a shared archive.
18179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18181 # Create a temporary old-style archive to link instead of a shared archive.
18182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18184 # Commands used to build and install a shared archive.
18185 archive_cmds=$lt_archive_cmds_F77
18186 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18187 postinstall_cmds=$lt_postinstall_cmds
18188 postuninstall_cmds=$lt_postuninstall_cmds
18190 # Commands used to build a loadable module (assumed same as above if empty)
18191 module_cmds=$lt_module_cmds_F77
18192 module_expsym_cmds=$lt_module_expsym_cmds_F77
18194 # Commands to strip libraries.
18195 old_striplib=$lt_old_striplib
18196 striplib=$lt_striplib
18198 # Dependencies to place before the objects being linked to create a
18199 # shared library.
18200 predep_objects=$lt_predep_objects_F77
18202 # Dependencies to place after the objects being linked to create a
18203 # shared library.
18204 postdep_objects=$lt_postdep_objects_F77
18206 # Dependencies to place before the objects being linked to create a
18207 # shared library.
18208 predeps=$lt_predeps_F77
18210 # Dependencies to place after the objects being linked to create a
18211 # shared library.
18212 postdeps=$lt_postdeps_F77
18214 # The library search path used internally by the compiler when linking
18215 # a shared library.
18216 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18218 # Method to check whether dependent libraries are shared objects.
18219 deplibs_check_method=$lt_deplibs_check_method
18221 # Command to use when deplibs_check_method == file_magic.
18222 file_magic_cmd=$lt_file_magic_cmd
18224 # Flag that allows shared libraries with undefined symbols to be built.
18225 allow_undefined_flag=$lt_allow_undefined_flag_F77
18227 # Flag that forces no undefined symbols.
18228 no_undefined_flag=$lt_no_undefined_flag_F77
18230 # Commands used to finish a libtool library installation in a directory.
18231 finish_cmds=$lt_finish_cmds
18233 # Same as above, but a single script fragment to be evaled but not shown.
18234 finish_eval=$lt_finish_eval
18236 # Take the output of nm and produce a listing of raw symbols and C names.
18237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18239 # Transform the output of nm in a proper C declaration
18240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18242 # Transform the output of nm in a C name address pair
18243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18245 # This is the shared library runtime path variable.
18246 runpath_var=$runpath_var
18248 # This is the shared library path variable.
18249 shlibpath_var=$shlibpath_var
18251 # Is shlibpath searched before the hard-coded library search path?
18252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18254 # How to hardcode a shared library path into an executable.
18255 hardcode_action=$hardcode_action_F77
18257 # Whether we should hardcode library paths into libraries.
18258 hardcode_into_libs=$hardcode_into_libs
18260 # Flag to hardcode \$libdir into a binary during linking.
18261 # This must work even if \$libdir does not exist.
18262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18264 # If ld is used when linking, flag to hardcode \$libdir into
18265 # a binary during linking. This must work even if \$libdir does
18266 # not exist.
18267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18269 # Whether we need a single -rpath flag with a separated argument.
18270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18273 # resulting binary.
18274 hardcode_direct=$hardcode_direct_F77
18276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18277 # resulting binary.
18278 hardcode_minus_L=$hardcode_minus_L_F77
18280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18281 # the resulting binary.
18282 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18284 # Set to yes if building a shared library automatically hardcodes DIR into the library
18285 # and all subsequent libraries and executables linked against it.
18286 hardcode_automatic=$hardcode_automatic_F77
18288 # Variables whose values should be saved in libtool wrapper scripts and
18289 # restored at relink time.
18290 variables_saved_for_relink="$variables_saved_for_relink"
18292 # Whether libtool must link a program against all its dependency libraries.
18293 link_all_deplibs=$link_all_deplibs_F77
18295 # Compile-time system search path for libraries
18296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18298 # Run-time system search path for libraries
18299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18301 # Fix the shell variable \$srcfile for the compiler.
18302 fix_srcfile_path="$fix_srcfile_path_F77"
18304 # Set to yes if exported symbols are required.
18305 always_export_symbols=$always_export_symbols_F77
18307 # The commands to list exported symbols.
18308 export_symbols_cmds=$lt_export_symbols_cmds_F77
18310 # The commands to extract the exported symbol list from a shared archive.
18311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18313 # Symbols that should not be listed in the preloaded symbols.
18314 exclude_expsyms=$lt_exclude_expsyms_F77
18316 # Symbols that must always be exported.
18317 include_expsyms=$lt_include_expsyms_F77
18319 # ### END LIBTOOL TAG CONFIG: $tagname
18321 __EOF__
18324 else
18325 # If there is no Makefile yet, we rely on a make rule to execute
18326 # `config.status --recheck' to rerun these tests and create the
18327 # libtool script then.
18328 test -f Makefile && make "$ltmain"
18332 ac_ext=c
18333 ac_cpp='$CPP $CPPFLAGS'
18334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18338 CC="$lt_save_CC"
18340 else
18341 tagname=""
18345 GCJ)
18346 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18350 # Source file extension for Java test sources.
18351 ac_ext=java
18353 # Object file extension for compiled Java test sources.
18354 objext=o
18355 objext_GCJ=$objext
18357 # Code to be used in simple compile tests
18358 lt_simple_compile_test_code="class foo {}\n"
18360 # Code to be used in simple link tests
18361 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
18363 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18365 # If no C compiler was specified, use CC.
18366 LTCC=${LTCC-"$CC"}
18368 # Allow CC to be a program name with arguments.
18369 compiler=$CC
18372 # Allow CC to be a program name with arguments.
18373 lt_save_CC="$CC"
18374 CC=${GCJ-"gcj"}
18375 compiler=$CC
18376 compiler_GCJ=$CC
18378 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18379 archive_cmds_need_lc_GCJ=no
18381 ## CAVEAT EMPTOR:
18382 ## There is no encapsulation within the following macros, do not change
18383 ## the running order or otherwise move them around unless you know exactly
18384 ## what you are doing...
18386 lt_prog_compiler_no_builtin_flag_GCJ=
18388 if test "$GCC" = yes; then
18389 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18392 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18393 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18394 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396 else
18397 lt_cv_prog_compiler_rtti_exceptions=no
18398 ac_outfile=conftest.$ac_objext
18399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18400 lt_compiler_flag="-fno-rtti -fno-exceptions"
18401 # Insert the option either (1) after the last *FLAGS variable, or
18402 # (2) before a word containing "conftest.", or (3) at the end.
18403 # Note that $ac_compile itself does not contain backslashes and begins
18404 # with a dollar sign (not a hyphen), so the echo should work correctly.
18405 # The option is referenced via a variable to avoid confusing sed.
18406 lt_compile=`echo "$ac_compile" | $SED \
18407 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18409 -e 's:$: $lt_compiler_flag:'`
18410 (eval echo "\"\$as_me:18410: $lt_compile\"" >&5)
18411 (eval "$lt_compile" 2>conftest.err)
18412 ac_status=$?
18413 cat conftest.err >&5
18414 echo "$as_me:18414: \$? = $ac_status" >&5
18415 if (exit $ac_status) && test -s "$ac_outfile"; then
18416 # The compiler can only warn and ignore the option if not recognized
18417 # So say no if there are warnings
18418 if test ! -s conftest.err; then
18419 lt_cv_prog_compiler_rtti_exceptions=yes
18422 $rm conftest*
18425 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18426 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18428 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18429 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18430 else
18436 lt_prog_compiler_wl_GCJ=
18437 lt_prog_compiler_pic_GCJ=
18438 lt_prog_compiler_static_GCJ=
18440 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18441 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18443 if test "$GCC" = yes; then
18444 lt_prog_compiler_wl_GCJ='-Wl,'
18445 lt_prog_compiler_static_GCJ='-static'
18447 case $host_os in
18448 aix*)
18449 # All AIX code is PIC.
18450 if test "$host_cpu" = ia64; then
18451 # AIX 5 now supports IA64 processor
18452 lt_prog_compiler_static_GCJ='-Bstatic'
18456 amigaos*)
18457 # FIXME: we need at least 68020 code to build shared libraries, but
18458 # adding the `-m68020' flag to GCC prevents building anything better,
18459 # like `-m68040'.
18460 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18463 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18464 # PIC is the default for these OSes.
18467 mingw* | pw32* | os2*)
18468 # This hack is so that the source file can tell whether it is being
18469 # built for inclusion in a dll (and should export symbols for example).
18470 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18473 darwin* | rhapsody*)
18474 # PIC is the default on this platform
18475 # Common symbols not allowed in MH_DYLIB files
18476 lt_prog_compiler_pic_GCJ='-fno-common'
18479 msdosdjgpp*)
18480 # Just because we use GCC doesn't mean we suddenly get shared libraries
18481 # on systems that don't support them.
18482 lt_prog_compiler_can_build_shared_GCJ=no
18483 enable_shared=no
18486 sysv4*MP*)
18487 if test -d /usr/nec; then
18488 lt_prog_compiler_pic_GCJ=-Kconform_pic
18492 hpux*)
18493 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18494 # not for PA HP-UX.
18495 case "$host_cpu" in
18496 hppa*64*|ia64*)
18497 # +Z the default
18500 lt_prog_compiler_pic_GCJ='-fPIC'
18502 esac
18506 lt_prog_compiler_pic_GCJ='-fPIC'
18508 esac
18509 else
18510 # PORTME Check for flag to pass linker flags through the system compiler.
18511 case $host_os in
18512 aix*)
18513 lt_prog_compiler_wl_GCJ='-Wl,'
18514 if test "$host_cpu" = ia64; then
18515 # AIX 5 now supports IA64 processor
18516 lt_prog_compiler_static_GCJ='-Bstatic'
18517 else
18518 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18522 mingw* | pw32* | os2*)
18523 # This hack is so that the source file can tell whether it is being
18524 # built for inclusion in a dll (and should export symbols for example).
18525 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18528 hpux9* | hpux10* | hpux11*)
18529 lt_prog_compiler_wl_GCJ='-Wl,'
18530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18531 # not for PA HP-UX.
18532 case "$host_cpu" in
18533 hppa*64*|ia64*)
18534 # +Z the default
18537 lt_prog_compiler_pic_GCJ='+Z'
18539 esac
18540 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18541 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18544 irix5* | irix6* | nonstopux*)
18545 lt_prog_compiler_wl_GCJ='-Wl,'
18546 # PIC (with -KPIC) is the default.
18547 lt_prog_compiler_static_GCJ='-non_shared'
18550 newsos6)
18551 lt_prog_compiler_pic_GCJ='-KPIC'
18552 lt_prog_compiler_static_GCJ='-Bstatic'
18555 linux*)
18556 case $CC in
18557 icc* | ecc*)
18558 lt_prog_compiler_wl_GCJ='-Wl,'
18559 lt_prog_compiler_pic_GCJ='-KPIC'
18560 lt_prog_compiler_static_GCJ='-static'
18562 ccc*)
18563 lt_prog_compiler_wl_GCJ='-Wl,'
18564 # All Alpha code is PIC.
18565 lt_prog_compiler_static_GCJ='-non_shared'
18567 esac
18570 osf3* | osf4* | osf5*)
18571 lt_prog_compiler_wl_GCJ='-Wl,'
18572 # All OSF/1 code is PIC.
18573 lt_prog_compiler_static_GCJ='-non_shared'
18576 sco3.2v5*)
18577 lt_prog_compiler_pic_GCJ='-Kpic'
18578 lt_prog_compiler_static_GCJ='-dn'
18581 solaris*)
18582 lt_prog_compiler_wl_GCJ='-Wl,'
18583 lt_prog_compiler_pic_GCJ='-KPIC'
18584 lt_prog_compiler_static_GCJ='-Bstatic'
18587 sunos4*)
18588 lt_prog_compiler_wl_GCJ='-Qoption ld '
18589 lt_prog_compiler_pic_GCJ='-PIC'
18590 lt_prog_compiler_static_GCJ='-Bstatic'
18593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18594 lt_prog_compiler_wl_GCJ='-Wl,'
18595 lt_prog_compiler_pic_GCJ='-KPIC'
18596 lt_prog_compiler_static_GCJ='-Bstatic'
18599 sysv4*MP*)
18600 if test -d /usr/nec ;then
18601 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18602 lt_prog_compiler_static_GCJ='-Bstatic'
18606 uts4*)
18607 lt_prog_compiler_pic_GCJ='-pic'
18608 lt_prog_compiler_static_GCJ='-Bstatic'
18612 lt_prog_compiler_can_build_shared_GCJ=no
18614 esac
18617 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18618 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18621 # Check to make sure the PIC flag actually works.
18623 if test -n "$lt_prog_compiler_pic_GCJ"; then
18625 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18626 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18627 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 else
18630 lt_prog_compiler_pic_works_GCJ=no
18631 ac_outfile=conftest.$ac_objext
18632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18633 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18634 # Insert the option either (1) after the last *FLAGS variable, or
18635 # (2) before a word containing "conftest.", or (3) at the end.
18636 # Note that $ac_compile itself does not contain backslashes and begins
18637 # with a dollar sign (not a hyphen), so the echo should work correctly.
18638 # The option is referenced via a variable to avoid confusing sed.
18639 lt_compile=`echo "$ac_compile" | $SED \
18640 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18642 -e 's:$: $lt_compiler_flag:'`
18643 (eval echo "\"\$as_me:18643: $lt_compile\"" >&5)
18644 (eval "$lt_compile" 2>conftest.err)
18645 ac_status=$?
18646 cat conftest.err >&5
18647 echo "$as_me:18647: \$? = $ac_status" >&5
18648 if (exit $ac_status) && test -s "$ac_outfile"; then
18649 # The compiler can only warn and ignore the option if not recognized
18650 # So say no if there are warnings
18651 if test ! -s conftest.err; then
18652 lt_prog_compiler_pic_works_GCJ=yes
18655 $rm conftest*
18658 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18659 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18661 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18662 case $lt_prog_compiler_pic_GCJ in
18663 "" | " "*) ;;
18664 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18665 esac
18666 else
18667 lt_prog_compiler_pic_GCJ=
18668 lt_prog_compiler_can_build_shared_GCJ=no
18672 case "$host_os" in
18673 # For platforms which do not support PIC, -DPIC is meaningless:
18674 *djgpp*)
18675 lt_prog_compiler_pic_GCJ=
18678 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18680 esac
18682 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18683 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18684 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18685 echo $ECHO_N "(cached) $ECHO_C" >&6
18686 else
18687 lt_cv_prog_compiler_c_o_GCJ=no
18688 $rm -r conftest 2>/dev/null
18689 mkdir conftest
18690 cd conftest
18691 mkdir out
18692 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18694 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
18695 # that will create temporary files in the current directory regardless of
18696 # the output directory. Thus, making CWD read-only will cause this test
18697 # to fail, enabling locking or at least warning the user not to do parallel
18698 # builds.
18699 chmod -w .
18701 lt_compiler_flag="-o out/conftest2.$ac_objext"
18702 # Insert the option either (1) after the last *FLAGS variable, or
18703 # (2) before a word containing "conftest.", or (3) at the end.
18704 # Note that $ac_compile itself does not contain backslashes and begins
18705 # with a dollar sign (not a hyphen), so the echo should work correctly.
18706 lt_compile=`echo "$ac_compile" | $SED \
18707 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18709 -e 's:$: $lt_compiler_flag:'`
18710 (eval echo "\"\$as_me:18710: $lt_compile\"" >&5)
18711 (eval "$lt_compile" 2>out/conftest.err)
18712 ac_status=$?
18713 cat out/conftest.err >&5
18714 echo "$as_me:18714: \$? = $ac_status" >&5
18715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18716 then
18717 # The compiler can only warn and ignore the option if not recognized
18718 # So say no if there are warnings
18719 if test ! -s out/conftest.err; then
18720 lt_cv_prog_compiler_c_o_GCJ=yes
18723 chmod u+w .
18724 $rm conftest* out/*
18725 rmdir out
18726 cd ..
18727 rmdir conftest
18728 $rm conftest*
18731 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18732 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18735 hard_links="nottested"
18736 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18737 # do not overwrite the value of need_locks provided by the user
18738 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18739 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18740 hard_links=yes
18741 $rm conftest*
18742 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18743 touch conftest.a
18744 ln conftest.a conftest.b 2>&5 || hard_links=no
18745 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18746 echo "$as_me:$LINENO: result: $hard_links" >&5
18747 echo "${ECHO_T}$hard_links" >&6
18748 if test "$hard_links" = no; then
18749 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18750 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18751 need_locks=warn
18753 else
18754 need_locks=no
18757 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18758 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18760 runpath_var=
18761 allow_undefined_flag_GCJ=
18762 enable_shared_with_static_runtimes_GCJ=no
18763 archive_cmds_GCJ=
18764 archive_expsym_cmds_GCJ=
18765 old_archive_From_new_cmds_GCJ=
18766 old_archive_from_expsyms_cmds_GCJ=
18767 export_dynamic_flag_spec_GCJ=
18768 whole_archive_flag_spec_GCJ=
18769 thread_safe_flag_spec_GCJ=
18770 hardcode_libdir_flag_spec_GCJ=
18771 hardcode_libdir_flag_spec_ld_GCJ=
18772 hardcode_libdir_separator_GCJ=
18773 hardcode_direct_GCJ=no
18774 hardcode_minus_L_GCJ=no
18775 hardcode_shlibpath_var_GCJ=unsupported
18776 link_all_deplibs_GCJ=unknown
18777 hardcode_automatic_GCJ=no
18778 module_cmds_GCJ=
18779 module_expsym_cmds_GCJ=
18780 always_export_symbols_GCJ=no
18781 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18782 # include_expsyms should be a list of space-separated symbols to be *always*
18783 # included in the symbol list
18784 include_expsyms_GCJ=
18785 # exclude_expsyms can be an extended regexp of symbols to exclude
18786 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18787 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18788 # as well as any symbol that contains `d'.
18789 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18790 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18791 # platforms (ab)use it in PIC code, but their linkers get confused if
18792 # the symbol is explicitly referenced. Since portable code cannot
18793 # rely on this symbol name, it's probably fine to never include it in
18794 # preloaded symbol tables.
18795 extract_expsyms_cmds=
18797 case $host_os in
18798 cygwin* | mingw* | pw32*)
18799 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18800 # When not using gcc, we currently assume that we are using
18801 # Microsoft Visual C++.
18802 if test "$GCC" != yes; then
18803 with_gnu_ld=no
18806 openbsd*)
18807 with_gnu_ld=no
18809 esac
18811 ld_shlibs_GCJ=yes
18812 if test "$with_gnu_ld" = yes; then
18813 # If archive_cmds runs LD, not CC, wlarc should be empty
18814 wlarc='${wl}'
18816 # See if GNU ld supports shared libraries.
18817 case $host_os in
18818 aix3* | aix4* | aix5*)
18819 # On AIX/PPC, the GNU linker is very broken
18820 if test "$host_cpu" != ia64; then
18821 ld_shlibs_GCJ=no
18822 cat <<EOF 1>&2
18824 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18825 *** to be unable to reliably create shared libraries on AIX.
18826 *** Therefore, libtool is disabling shared libraries support. If you
18827 *** really care for shared libraries, you may want to modify your PATH
18828 *** so that a non-GNU linker is found, and then restart.
18834 amigaos*)
18835 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)'
18836 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18837 hardcode_minus_L_GCJ=yes
18839 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18840 # that the semantics of dynamic libraries on AmigaOS, at least up
18841 # to version 4, is to share data among multiple programs linked
18842 # with the same dynamic library. Since this doesn't match the
18843 # behavior of shared libraries on other platforms, we can't use
18844 # them.
18845 ld_shlibs_GCJ=no
18848 beos*)
18849 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18850 allow_undefined_flag_GCJ=unsupported
18851 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18852 # support --undefined. This deserves some investigation. FIXME
18853 archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
18854 else
18855 ld_shlibs_GCJ=no
18859 cygwin* | mingw* | pw32*)
18860 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18861 # as there is no search path for DLLs.
18862 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18863 allow_undefined_flag_GCJ=no
18864 always_export_symbols_GCJ=no
18865 enable_shared_with_static_runtimes_GCJ=yes
18866 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18868 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18869 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18870 # If the export-symbols file already is a .def file (1st line
18871 # is EXPORTS), use it as is; otherwise, prepend...
18872 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18873 cp $export_symbols $output_objdir/$soname.def;
18874 else
18875 echo EXPORTS > $output_objdir/$soname.def;
18876 cat $export_symbols >> $output_objdir/$soname.def;
18878 $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18879 else
18880 ld_shlibs=no
18884 netbsd*)
18885 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18886 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18887 wlarc=
18888 else
18889 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
18890 archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18894 solaris* | sysv5*)
18895 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18896 ld_shlibs_GCJ=no
18897 cat <<EOF 1>&2
18899 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18900 *** create shared libraries on Solaris systems. Therefore, libtool
18901 *** is disabling shared libraries support. We urge you to upgrade GNU
18902 *** binutils to release 2.9.1 or newer. Another option is to modify
18903 *** your PATH or compiler configuration so that the native linker is
18904 *** used, and then restart.
18907 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18908 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
18909 archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18910 else
18911 ld_shlibs_GCJ=no
18915 sunos4*)
18916 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18917 wlarc=
18918 hardcode_direct_GCJ=yes
18919 hardcode_shlibpath_var_GCJ=no
18923 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18924 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
18925 archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18926 else
18927 ld_shlibs_GCJ=no
18930 esac
18932 if test "$ld_shlibs_GCJ" = yes; then
18933 runpath_var=LD_RUN_PATH
18934 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18935 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18936 # ancient GNU ld didn't support --whole-archive et. al.
18937 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18938 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18939 else
18940 whole_archive_flag_spec_GCJ=
18943 else
18944 # PORTME fill in a description of your system's linker (not GNU ld)
18945 case $host_os in
18946 aix3*)
18947 allow_undefined_flag_GCJ=unsupported
18948 always_export_symbols_GCJ=yes
18949 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'
18950 # Note: this linker hardcodes the directories in LIBPATH if there
18951 # are no directories specified by -L.
18952 hardcode_minus_L_GCJ=yes
18953 if test "$GCC" = yes && test -z "$link_static_flag"; then
18954 # Neither direct hardcoding nor static linking is supported with a
18955 # broken collect2.
18956 hardcode_direct_GCJ=unsupported
18960 aix4* | aix5*)
18961 if test "$host_cpu" = ia64; then
18962 # On IA64, the linker does run time linking by default, so we don't
18963 # have to do anything special.
18964 aix_use_runtimelinking=no
18965 exp_sym_flag='-Bexport'
18966 no_entry_flag=""
18967 else
18968 # If we're using GNU nm, then we don't want the "-C" option.
18969 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18970 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18971 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'
18972 else
18973 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'
18976 # KDE requires run time linking. Make it the default.
18977 aix_use_runtimelinking=yes
18978 exp_sym_flag='-bexport'
18979 no_entry_flag='-bnoentry'
18982 # When large executables or shared objects are built, AIX ld can
18983 # have problems creating the table of contents. If linking a library
18984 # or program results in "error TOC overflow" add -mminimal-toc to
18985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18988 archive_cmds_GCJ=''
18989 hardcode_direct_GCJ=yes
18990 hardcode_libdir_separator_GCJ=':'
18991 link_all_deplibs_GCJ=yes
18993 if test "$GCC" = yes; then
18994 case $host_os in aix4.012|aix4.012.*)
18995 # We only want to do this on AIX 4.2 and lower, the check
18996 # below for broken collect2 doesn't work under 4.3+
18997 collect2name=`${CC} -print-prog-name=collect2`
18998 if test -f "$collect2name" && \
18999 strings "$collect2name" | grep resolve_lib_name >/dev/null
19000 then
19001 # We have reworked collect2
19002 hardcode_direct_GCJ=yes
19003 else
19004 # We have old collect2
19005 hardcode_direct_GCJ=unsupported
19006 # It fails to find uninstalled libraries when the uninstalled
19007 # path is not listed in the libpath. Setting hardcode_minus_L
19008 # to unsupported forces relinking
19009 hardcode_minus_L_GCJ=yes
19010 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19011 hardcode_libdir_separator_GCJ=
19013 esac
19014 shared_flag='-shared'
19015 else
19016 # not using gcc
19017 if test "$host_cpu" = ia64; then
19018 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19019 # chokes on -Wl,-G. The following line is correct:
19020 shared_flag='-G'
19021 else
19022 if test "$aix_use_runtimelinking" = yes; then
19023 shared_flag='-qmkshrobj ${wl}-G'
19024 else
19025 shared_flag='-qmkshrobj'
19030 # Let the compiler handle the export list.
19031 always_export_symbols_GCJ=no
19032 if test "$aix_use_runtimelinking" = yes; then
19033 # Warning - without using the other runtime loading flags (-brtl),
19034 # -berok will link without error, but may produce a broken library.
19035 allow_undefined_flag_GCJ='-berok'
19036 # Determine the default libpath from the value encoded in an empty executable.
19037 cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h. */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19045 main ()
19049 return 0;
19051 _ACEOF
19052 rm -f conftest.$ac_objext conftest$ac_exeext
19053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19054 (eval $ac_link) 2>conftest.er1
19055 ac_status=$?
19056 grep -v '^ *+' conftest.er1 >conftest.err
19057 rm -f conftest.er1
19058 cat conftest.err >&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } &&
19061 { ac_try='test -z "$ac_c_werror_flag"
19062 || test ! -s conftest.err'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; } &&
19068 { ac_try='test -s conftest$ac_exeext'
19069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19075 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19077 # Check for a 64-bit object if we didn't find anything.
19078 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19079 }'`; fi
19080 else
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19085 rm -f conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19089 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19090 archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
19091 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19092 else
19093 if test "$host_cpu" = ia64; then
19094 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19095 allow_undefined_flag_GCJ="-z nodefs"
19096 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19097 else
19098 # Determine the default libpath from the value encoded in an empty executable.
19099 cat >conftest.$ac_ext <<_ACEOF
19100 /* confdefs.h. */
19101 _ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19107 main ()
19111 return 0;
19113 _ACEOF
19114 rm -f conftest.$ac_objext conftest$ac_exeext
19115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19116 (eval $ac_link) 2>conftest.er1
19117 ac_status=$?
19118 grep -v '^ *+' conftest.er1 >conftest.err
19119 rm -f conftest.er1
19120 cat conftest.err >&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } &&
19123 { ac_try='test -z "$ac_c_werror_flag"
19124 || test ! -s conftest.err'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; } &&
19130 { ac_try='test -s conftest$ac_exeext'
19131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 (eval $ac_try) 2>&5
19133 ac_status=$?
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; }; then
19137 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19139 # Check for a 64-bit object if we didn't find anything.
19140 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19141 }'`; fi
19142 else
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19147 rm -f conftest.err conftest.$ac_objext \
19148 conftest$ac_exeext conftest.$ac_ext
19149 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19151 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19152 # Warning - without using the other run time loading flags,
19153 # -berok will link without error, but may produce a broken library.
19154 no_undefined_flag_GCJ=' ${wl}-bernotok'
19155 allow_undefined_flag_GCJ=' ${wl}-berok'
19156 # -bexpall does not export symbols beginning with underscore (_)
19157 always_export_symbols_GCJ=yes
19158 # Exported symbols can be pulled into shared objects from archives
19159 whole_archive_flag_spec_GCJ=' '
19160 archive_cmds_need_lc_GCJ=yes
19161 # This is similar to how AIX traditionally builds it's shared libraries.
19162 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19167 amigaos*)
19168 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)'
19169 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19170 hardcode_minus_L_GCJ=yes
19171 # see comment about different semantics on the GNU ld section
19172 ld_shlibs_GCJ=no
19175 bsdi4*)
19176 export_dynamic_flag_spec_GCJ=-rdynamic
19179 cygwin* | mingw* | pw32*)
19180 # When not using gcc, we currently assume that we are using
19181 # Microsoft Visual C++.
19182 # hardcode_libdir_flag_spec is actually meaningless, as there is
19183 # no search path for DLLs.
19184 hardcode_libdir_flag_spec_GCJ=' '
19185 allow_undefined_flag_GCJ=no
19186 # Tell ltmain to make .lib files, not .a files.
19187 libext=lib
19188 # Tell ltmain to make .dll files, not .so files.
19189 shrext=".dll"
19190 # FIXME: Setting linknames here is a bad hack.
19191 archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19192 # The linker will automatically build a .lib file if we build a DLL.
19193 old_archive_From_new_cmds_GCJ='true'
19194 # FIXME: Should let the user specify the lib program.
19195 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19196 fix_srcfile_path='`cygpath -w "$srcfile"`'
19197 enable_shared_with_static_runtimes_GCJ=yes
19200 darwin* | rhapsody*)
19201 if test "$GXX" = yes ; then
19202 archive_cmds_need_lc_GCJ=no
19203 case "$host_os" in
19204 rhapsody* | darwin1.[012])
19205 allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress'
19207 *) # Darwin 1.3 on
19208 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19209 allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
19210 else
19211 case ${MACOSX_DEPLOYMENT_TARGET} in
19212 10.012)
19213 allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
19215 10.*)
19216 allow_undefined_flag_GCJ='-Wl,-undefined -Wl,dynamic_lookup'
19218 esac
19221 esac
19222 lt_int_apple_cc_single_mod=no
19223 output_verbose_link_cmd='echo'
19224 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19225 lt_int_apple_cc_single_mod=yes
19227 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19228 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
19229 else
19230 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
19232 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
19233 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19234 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19235 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19236 else
19237 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19239 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19240 hardcode_direct_GCJ=no
19241 hardcode_automatic_GCJ=yes
19242 hardcode_shlibpath_var_GCJ=unsupported
19243 whole_archive_flag_spec_GCJ='-all_load $convenience'
19244 link_all_deplibs_GCJ=yes
19245 else
19246 ld_shlibs_GCJ=no
19250 dgux*)
19251 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19252 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19253 hardcode_shlibpath_var_GCJ=no
19256 freebsd1*)
19257 ld_shlibs_GCJ=no
19260 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19261 # support. Future versions do this automatically, but an explicit c++rt0.o
19262 # does not break anything, and helps significantly (at the cost of a little
19263 # extra space).
19264 freebsd2.2*)
19265 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19266 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19267 hardcode_direct_GCJ=yes
19268 hardcode_shlibpath_var_GCJ=no
19271 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19272 freebsd2*)
19273 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19274 hardcode_direct_GCJ=yes
19275 hardcode_minus_L_GCJ=yes
19276 hardcode_shlibpath_var_GCJ=no
19279 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19280 freebsd* | kfreebsd*-gnu)
19281 archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
19282 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19283 hardcode_direct_GCJ=yes
19284 hardcode_shlibpath_var_GCJ=no
19287 hpux9*)
19288 if test "$GCC" = yes; then
19289 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19290 else
19291 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'
19293 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19294 hardcode_libdir_separator_GCJ=:
19295 hardcode_direct_GCJ=yes
19297 # hardcode_minus_L: Not really in the search PATH,
19298 # but as the default location of the library.
19299 hardcode_minus_L_GCJ=yes
19300 export_dynamic_flag_spec_GCJ='${wl}-E'
19303 hpux10* | hpux11*)
19304 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19305 case "$host_cpu" in
19306 hppa*64*|ia64*)
19307 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19310 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
19312 esac
19313 else
19314 case "$host_cpu" in
19315 hppa*64*|ia64*)
19316 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19319 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19321 esac
19323 if test "$with_gnu_ld" = no; then
19324 case "$host_cpu" in
19325 hppa*64*)
19326 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19327 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19328 hardcode_libdir_separator_GCJ=:
19329 hardcode_direct_GCJ=no
19330 hardcode_shlibpath_var_GCJ=no
19332 ia64*)
19333 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19334 hardcode_direct_GCJ=no
19335 hardcode_shlibpath_var_GCJ=no
19337 # hardcode_minus_L: Not really in the search PATH,
19338 # but as the default location of the library.
19339 hardcode_minus_L_GCJ=yes
19342 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19343 hardcode_libdir_separator_GCJ=:
19344 hardcode_direct_GCJ=yes
19345 export_dynamic_flag_spec_GCJ='${wl}-E'
19347 # hardcode_minus_L: Not really in the search PATH,
19348 # but as the default location of the library.
19349 hardcode_minus_L_GCJ=yes
19351 esac
19355 irix5* | irix6* | nonstopux*)
19356 if test "$GCC" = yes; then
19357 archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19358 else
19359 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'
19360 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19362 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19363 hardcode_libdir_separator_GCJ=:
19364 link_all_deplibs_GCJ=yes
19367 netbsd*)
19368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19369 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19370 else
19371 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19373 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19374 hardcode_direct_GCJ=yes
19375 hardcode_shlibpath_var_GCJ=no
19378 newsos6)
19379 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19380 hardcode_direct_GCJ=yes
19381 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19382 hardcode_libdir_separator_GCJ=:
19383 hardcode_shlibpath_var_GCJ=no
19386 openbsd*)
19387 hardcode_direct_GCJ=yes
19388 hardcode_shlibpath_var_GCJ=no
19389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19390 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
19391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19392 export_dynamic_flag_spec_GCJ='${wl}-E'
19393 else
19394 case $host_os in
19395 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19396 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19397 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19400 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
19401 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19403 esac
19407 os2*)
19408 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19409 hardcode_minus_L_GCJ=yes
19410 allow_undefined_flag_GCJ=unsupported
19411 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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
19412 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19415 osf3*)
19416 if test "$GCC" = yes; then
19417 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19418 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19419 else
19420 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19421 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'
19423 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19424 hardcode_libdir_separator_GCJ=:
19427 osf4* | osf5*) # as osf3* with the addition of -msym flag
19428 if test "$GCC" = yes; then
19429 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19430 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
19431 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19432 else
19433 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19434 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'
19435 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19436 $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'
19438 # Both c and cxx compiler support -rpath directly
19439 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19441 hardcode_libdir_separator_GCJ=:
19444 sco3.2v5*)
19445 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19446 hardcode_shlibpath_var_GCJ=no
19447 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19448 runpath_var=LD_RUN_PATH
19449 hardcode_runpath_var=yes
19452 solaris*)
19453 no_undefined_flag_GCJ=' -z text'
19454 if test "$GCC" = yes; then
19455 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19456 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19457 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
19458 else
19459 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19460 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19461 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19463 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19464 hardcode_shlibpath_var_GCJ=no
19465 case $host_os in
19466 solaris2.[0-5] | solaris2.[0-5].*) ;;
19467 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19468 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19469 esac
19470 link_all_deplibs_GCJ=yes
19473 sunos4*)
19474 if test "x$host_vendor" = xsequent; then
19475 # Use $CC to link under sequent, because it throws in some extra .o
19476 # files that make .init and .fini sections work.
19477 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
19478 else
19479 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19481 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19482 hardcode_direct_GCJ=yes
19483 hardcode_minus_L_GCJ=yes
19484 hardcode_shlibpath_var_GCJ=no
19487 sysv4)
19488 case $host_vendor in
19489 sni)
19490 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19491 hardcode_direct_GCJ=yes # is this really true???
19493 siemens)
19494 ## LD is ld it makes a PLAMLIB
19495 ## CC just makes a GrossModule.
19496 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19497 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19498 hardcode_direct_GCJ=no
19500 motorola)
19501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19502 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19504 esac
19505 runpath_var='LD_RUN_PATH'
19506 hardcode_shlibpath_var_GCJ=no
19509 sysv4.3*)
19510 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19511 hardcode_shlibpath_var_GCJ=no
19512 export_dynamic_flag_spec_GCJ='-Bexport'
19515 sysv4*MP*)
19516 if test -d /usr/nec; then
19517 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19518 hardcode_shlibpath_var_GCJ=no
19519 runpath_var=LD_RUN_PATH
19520 hardcode_runpath_var=yes
19521 ld_shlibs_GCJ=yes
19525 sysv4.2uw2*)
19526 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19527 hardcode_direct_GCJ=yes
19528 hardcode_minus_L_GCJ=no
19529 hardcode_shlibpath_var_GCJ=no
19530 hardcode_runpath_var=yes
19531 runpath_var=LD_RUN_PATH
19534 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19535 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19536 if test "$GCC" = yes; then
19537 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19538 else
19539 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19541 runpath_var='LD_RUN_PATH'
19542 hardcode_shlibpath_var_GCJ=no
19545 sysv5*)
19546 no_undefined_flag_GCJ=' -z text'
19547 # $CC -shared without GNU ld will not create a library from C++
19548 # object files and a static libstdc++, better avoid it by now
19549 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19550 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19552 hardcode_libdir_flag_spec_GCJ=
19553 hardcode_shlibpath_var_GCJ=no
19554 runpath_var='LD_RUN_PATH'
19557 uts4*)
19558 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19559 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19560 hardcode_shlibpath_var_GCJ=no
19564 ld_shlibs_GCJ=no
19566 esac
19569 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19570 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19571 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19574 if test "$GCC" = yes; then
19575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19579 # Do we need to explicitly link libc?
19581 case "x$archive_cmds_need_lc_GCJ" in
19582 x|xyes)
19583 # Assume -lc should be added
19584 archive_cmds_need_lc_GCJ=yes
19586 if test "$enable_shared" = yes && test "$GCC" = yes; then
19587 case $archive_cmds_GCJ in
19588 *'~'*)
19589 # FIXME: we may have to deal with multi-command sequences.
19591 '$CC '*)
19592 # Test whether the compiler implicitly links with -lc since on some
19593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19594 # to ld, don't add -lc before -lgcc.
19595 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19597 $rm conftest*
19598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19601 (eval $ac_compile) 2>&5
19602 ac_status=$?
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } 2>conftest.err; then
19605 soname=conftest
19606 lib=conftest
19607 libobjs=conftest.$ac_objext
19608 deplibs=
19609 wl=$lt_prog_compiler_wl_GCJ
19610 compiler_flags=-v
19611 linker_flags=-v
19612 verstring=
19613 output_objdir=.
19614 libname=conftest
19615 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19616 allow_undefined_flag_GCJ=
19617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19618 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }
19622 then
19623 archive_cmds_need_lc_GCJ=no
19624 else
19625 archive_cmds_need_lc_GCJ=yes
19627 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19628 else
19629 cat conftest.err 1>&5
19631 $rm conftest*
19632 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19633 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19635 esac
19638 esac
19640 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19641 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19642 library_names_spec=
19643 libname_spec='lib$name'
19644 soname_spec=
19645 shrext=".so"
19646 postinstall_cmds=
19647 postuninstall_cmds=
19648 finish_cmds=
19649 finish_eval=
19650 shlibpath_var=
19651 shlibpath_overrides_runpath=unknown
19652 version_type=none
19653 dynamic_linker="$host_os ld.so"
19654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19655 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19656 need_lib_prefix=unknown
19657 hardcode_into_libs=no
19659 # when you set need_version to no, make sure it does not cause -set_version
19660 # flags to be left without arguments
19661 need_version=unknown
19663 case $host_os in
19664 aix3*)
19665 version_type=linux
19666 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19667 shlibpath_var=LIBPATH
19669 # AIX 3 has no versioning support, so we append a major version to the name.
19670 soname_spec='${libname}${release}${shared_ext}$major'
19673 aix4* | aix5*)
19674 version_type=linux
19675 need_lib_prefix=no
19676 need_version=no
19677 hardcode_into_libs=yes
19678 if test "$host_cpu" = ia64; then
19679 # AIX 5 supports IA64
19680 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19681 shlibpath_var=LD_LIBRARY_PATH
19682 else
19683 # With GCC up to 2.95.x, collect2 would create an import file
19684 # for dependence libraries. The import file would start with
19685 # the line `#! .'. This would cause the generated library to
19686 # depend on `.', always an invalid library. This was fixed in
19687 # development snapshots of GCC prior to 3.0.
19688 case $host_os in
19689 aix4 | aix4.[01] | aix4.[01].*)
19690 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19691 echo ' yes '
19692 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19694 else
19695 can_build_shared=no
19698 esac
19699 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19700 # soname into executable. Probably we can add versioning support to
19701 # collect2, so additional links can be useful in future.
19702 if test "$aix_use_runtimelinking" = yes; then
19703 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19704 # instead of lib<name>.a to let people know that these are not
19705 # typical AIX shared libraries.
19706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19707 else
19708 # We preserve .a as extension for shared libraries through AIX4.2
19709 # and later when we are not doing run time linking.
19710 library_names_spec='${libname}${release}.a $libname.a'
19711 soname_spec='${libname}${release}${shared_ext}$major'
19713 shlibpath_var=LIBPATH
19717 amigaos*)
19718 library_names_spec='$libname.ixlibrary $libname.a'
19719 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19720 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'
19723 beos*)
19724 library_names_spec='${libname}${shared_ext}'
19725 dynamic_linker="$host_os ld.so"
19726 shlibpath_var=LIBRARY_PATH
19729 bsdi4*)
19730 version_type=linux
19731 need_version=no
19732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19733 soname_spec='${libname}${release}${shared_ext}$major'
19734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19735 shlibpath_var=LD_LIBRARY_PATH
19736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19738 # the default ld.so.conf also contains /usr/contrib/lib and
19739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19740 # libtool to hard-code these into programs
19743 cygwin* | mingw* | pw32*)
19744 version_type=windows
19745 shrext=".dll"
19746 need_version=no
19747 need_lib_prefix=no
19749 case $GCC,$host_os in
19750 yes,cygwin* | yes,mingw* | yes,pw32*)
19751 library_names_spec='$libname.dll.a'
19752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19753 postinstall_cmds='base_file=`basename \${file}`~
19754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19755 dldir=$destdir/`dirname \$dlpath`~
19756 test -d \$dldir || mkdir -p \$dldir~
19757 $install_prog $dir/$dlname \$dldir/$dlname'
19758 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19759 dlpath=$dir/\$dldll~
19760 $rm \$dlpath'
19761 shlibpath_overrides_runpath=yes
19763 case $host_os in
19764 cygwin*)
19765 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19766 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19767 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19769 mingw*)
19770 # MinGW DLLs use traditional 'lib' prefix
19771 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19772 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19773 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19774 # It is most probably a Windows format PATH printed by
19775 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19776 # path with ; separators, and with drive letters. We can handle the
19777 # drive letters (cygwin fileutils understands them), so leave them,
19778 # especially as we might pass files found there to a mingw objdump,
19779 # which wouldn't understand a cygwinified path. Ahh.
19780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19781 else
19782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19785 pw32*)
19786 # pw32 DLLs use 'pw' prefix rather than 'lib'
19787 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19789 esac
19793 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19795 esac
19796 dynamic_linker='Win32 ld.exe'
19797 # FIXME: first we should search . and the directory the executable is in
19798 shlibpath_var=PATH
19801 darwin* | rhapsody*)
19802 dynamic_linker="$host_os dyld"
19803 version_type=darwin
19804 need_lib_prefix=no
19805 need_version=no
19806 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19807 soname_spec='${libname}${release}${major}$shared_ext'
19808 shlibpath_overrides_runpath=yes
19809 shlibpath_var=DYLD_LIBRARY_PATH
19810 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
19811 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19812 if test "$GCC" = yes; then
19813 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19814 else
19815 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19817 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19820 dgux*)
19821 version_type=linux
19822 need_lib_prefix=no
19823 need_version=no
19824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19825 soname_spec='${libname}${release}${shared_ext}$major'
19826 shlibpath_var=LD_LIBRARY_PATH
19829 freebsd1*)
19830 dynamic_linker=no
19833 kfreebsd*-gnu*)
19834 version_type=linux
19835 need_lib_prefix=no
19836 need_version=no
19837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19838 soname_spec='${libname}${release}${shared_ext}$major'
19839 shlibpath_var=LD_LIBRARY_PATH
19840 shlibpath_overrides_runpath=no
19841 hardcode_into_libs=yes
19842 dynamic_linker='GNU ld.so'
19845 freebsd*)
19846 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19847 version_type=freebsd-$objformat
19848 case $version_type in
19849 freebsd-elf*)
19850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19851 need_version=no
19852 need_lib_prefix=no
19854 freebsd-*)
19855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19856 need_version=yes
19858 esac
19859 shlibpath_var=LD_LIBRARY_PATH
19860 case $host_os in
19861 freebsd2*)
19862 shlibpath_overrides_runpath=yes
19864 freebsd3.01* | freebsdelf3.01*)
19865 shlibpath_overrides_runpath=yes
19866 hardcode_into_libs=yes
19868 *) # from 3.2 on
19869 shlibpath_overrides_runpath=no
19870 hardcode_into_libs=yes
19872 esac
19875 gnu*)
19876 version_type=linux
19877 need_lib_prefix=no
19878 need_version=no
19879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19880 soname_spec='${libname}${release}${shared_ext}$major'
19881 shlibpath_var=LD_LIBRARY_PATH
19882 hardcode_into_libs=yes
19885 hpux9* | hpux10* | hpux11*)
19886 # Give a soname corresponding to the major version so that dld.sl refuses to
19887 # link against other versions.
19888 version_type=sunos
19889 need_lib_prefix=no
19890 need_version=no
19891 case "$host_cpu" in
19892 ia64*)
19893 shrext='.so'
19894 hardcode_into_libs=yes
19895 dynamic_linker="$host_os dld.so"
19896 shlibpath_var=LD_LIBRARY_PATH
19897 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19899 soname_spec='${libname}${release}${shared_ext}$major'
19900 if test "X$HPUX_IA64_MODE" = X32; then
19901 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19902 else
19903 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19905 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19907 hppa*64*)
19908 shrext='.sl'
19909 hardcode_into_libs=yes
19910 dynamic_linker="$host_os dld.sl"
19911 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19912 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19914 soname_spec='${libname}${release}${shared_ext}$major'
19915 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19919 shrext='.sl'
19920 dynamic_linker="$host_os dld.sl"
19921 shlibpath_var=SHLIB_PATH
19922 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19924 soname_spec='${libname}${release}${shared_ext}$major'
19926 esac
19927 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19928 postinstall_cmds='chmod 555 $lib'
19931 irix5* | irix6* | nonstopux*)
19932 case $host_os in
19933 nonstopux*) version_type=nonstopux ;;
19935 if test "$lt_cv_prog_gnu_ld" = yes; then
19936 version_type=linux
19937 else
19938 version_type=irix
19939 fi ;;
19940 esac
19941 need_lib_prefix=no
19942 need_version=no
19943 soname_spec='${libname}${release}${shared_ext}$major'
19944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19945 case $host_os in
19946 irix5* | nonstopux*)
19947 libsuff= shlibsuff=
19950 case $LD in # libtool.m4 will add one of these switches to LD
19951 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19952 libsuff= shlibsuff= libmagic=32-bit;;
19953 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19954 libsuff=32 shlibsuff=N32 libmagic=N32;;
19955 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19956 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19957 *) libsuff= shlibsuff= libmagic=never-match;;
19958 esac
19960 esac
19961 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19962 shlibpath_overrides_runpath=no
19963 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19964 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19965 hardcode_into_libs=yes
19968 # No shared lib support for Linux oldld, aout, or coff.
19969 linux*oldld* | linux*aout* | linux*coff*)
19970 dynamic_linker=no
19973 # This must be Linux ELF.
19974 linux*)
19975 version_type=linux
19976 need_lib_prefix=no
19977 need_version=no
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19979 soname_spec='${libname}${release}${shared_ext}$major'
19980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19981 libsuff=
19982 if test "x$LINUX_64_MODE" = x64; then
19983 # Some platforms are per default 64-bit, so there's no /lib64
19984 if test -d /lib64; then
19985 libsuff=64
19988 shlibpath_var=LD_LIBRARY_PATH
19989 shlibpath_overrides_runpath=no
19990 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
19991 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19992 # This implies no fast_install, which is unacceptable.
19993 # Some rework will be needed to allow for fast_install
19994 # before this can be enabled.
19995 hardcode_into_libs=yes
19997 # We used to test for /lib/ld.so.1 and disable shared libraries on
19998 # powerpc, because MkLinux only supported shared libraries with the
19999 # GNU dynamic linker. Since this was broken with cross compilers,
20000 # most powerpc-linux boxes support dynamic linking these days and
20001 # people can always --disable-shared, the test was removed, and we
20002 # assume the GNU/Linux dynamic linker is in use.
20003 dynamic_linker='GNU/Linux ld.so'
20006 netbsd*)
20007 version_type=sunos
20008 need_lib_prefix=no
20009 need_version=no
20010 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20013 dynamic_linker='NetBSD (a.out) ld.so'
20014 else
20015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
20016 soname_spec='${libname}${release}${shared_ext}$major'
20017 dynamic_linker='NetBSD ld.elf_so'
20019 shlibpath_var=LD_LIBRARY_PATH
20020 shlibpath_overrides_runpath=yes
20021 hardcode_into_libs=yes
20024 newsos6)
20025 version_type=linux
20026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20027 shlibpath_var=LD_LIBRARY_PATH
20028 shlibpath_overrides_runpath=yes
20031 nto-qnx*)
20032 version_type=linux
20033 need_lib_prefix=no
20034 need_version=no
20035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20036 soname_spec='${libname}${release}${shared_ext}$major'
20037 shlibpath_var=LD_LIBRARY_PATH
20038 shlibpath_overrides_runpath=yes
20041 openbsd*)
20042 version_type=sunos
20043 need_lib_prefix=no
20044 need_version=no
20045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20047 shlibpath_var=LD_LIBRARY_PATH
20048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20049 case $host_os in
20050 openbsd2.[89] | openbsd2.[89].*)
20051 shlibpath_overrides_runpath=no
20054 shlibpath_overrides_runpath=yes
20056 esac
20057 else
20058 shlibpath_overrides_runpath=yes
20062 os2*)
20063 libname_spec='$name'
20064 shrext=".dll"
20065 need_lib_prefix=no
20066 library_names_spec='$libname${shared_ext} $libname.a'
20067 dynamic_linker='OS/2 ld.exe'
20068 shlibpath_var=LIBPATH
20071 osf3* | osf4* | osf5*)
20072 version_type=osf
20073 need_lib_prefix=no
20074 need_version=no
20075 soname_spec='${libname}${release}${shared_ext}$major'
20076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20077 shlibpath_var=LD_LIBRARY_PATH
20078 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20079 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20082 sco3.2v5*)
20083 version_type=osf
20084 soname_spec='${libname}${release}${shared_ext}$major'
20085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20086 shlibpath_var=LD_LIBRARY_PATH
20089 solaris*)
20090 version_type=linux
20091 need_lib_prefix=no
20092 need_version=no
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20094 soname_spec='${libname}${release}${shared_ext}$major'
20095 shlibpath_var=LD_LIBRARY_PATH
20096 shlibpath_overrides_runpath=yes
20097 hardcode_into_libs=yes
20098 # ldd complains unless libraries are executable
20099 postinstall_cmds='chmod +x $lib'
20102 sunos4*)
20103 version_type=sunos
20104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20105 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20106 shlibpath_var=LD_LIBRARY_PATH
20107 shlibpath_overrides_runpath=yes
20108 if test "$with_gnu_ld" = yes; then
20109 need_lib_prefix=no
20111 need_version=yes
20114 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20115 version_type=linux
20116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20117 soname_spec='${libname}${release}${shared_ext}$major'
20118 shlibpath_var=LD_LIBRARY_PATH
20119 case $host_vendor in
20120 sni)
20121 shlibpath_overrides_runpath=no
20122 need_lib_prefix=no
20123 export_dynamic_flag_spec='${wl}-Blargedynsym'
20124 runpath_var=LD_RUN_PATH
20126 siemens)
20127 need_lib_prefix=no
20129 motorola)
20130 need_lib_prefix=no
20131 need_version=no
20132 shlibpath_overrides_runpath=no
20133 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20135 esac
20138 sysv4*MP*)
20139 if test -d /usr/nec ;then
20140 version_type=linux
20141 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20142 soname_spec='$libname${shared_ext}.$major'
20143 shlibpath_var=LD_LIBRARY_PATH
20147 uts4*)
20148 version_type=linux
20149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20150 soname_spec='${libname}${release}${shared_ext}$major'
20151 shlibpath_var=LD_LIBRARY_PATH
20155 dynamic_linker=no
20157 esac
20158 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20159 echo "${ECHO_T}$dynamic_linker" >&6
20160 test "$dynamic_linker" = no && can_build_shared=no
20162 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20163 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20164 hardcode_action_GCJ=
20165 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20166 test -n "$runpath_var GCJ" || \
20167 test "X$hardcode_automatic_GCJ"="Xyes" ; then
20169 # We can hardcode non-existant directories.
20170 if test "$hardcode_direct_GCJ" != no &&
20171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20172 # have to relink, otherwise we might link with an installed library
20173 # when we should be linking with a yet-to-be-installed one
20174 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20175 test "$hardcode_minus_L_GCJ" != no; then
20176 # Linking always hardcodes the temporary library directory.
20177 hardcode_action_GCJ=relink
20178 else
20179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20180 hardcode_action_GCJ=immediate
20182 else
20183 # We cannot hardcode anything, or else we can only hardcode existing
20184 # directories.
20185 hardcode_action_GCJ=unsupported
20187 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20188 echo "${ECHO_T}$hardcode_action_GCJ" >&6
20190 if test "$hardcode_action_GCJ" = relink; then
20191 # Fast installation is not supported
20192 enable_fast_install=no
20193 elif test "$shlibpath_overrides_runpath" = yes ||
20194 test "$enable_shared" = no; then
20195 # Fast installation is not necessary
20196 enable_fast_install=needless
20199 striplib=
20200 old_striplib=
20201 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20202 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20203 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20204 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20205 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20206 echo "$as_me:$LINENO: result: yes" >&5
20207 echo "${ECHO_T}yes" >&6
20208 else
20209 # FIXME - insert some real tests, host_os isn't really good enough
20210 case $host_os in
20211 darwin*)
20212 if test -n "$STRIP" ; then
20213 striplib="$STRIP -x"
20214 echo "$as_me:$LINENO: result: yes" >&5
20215 echo "${ECHO_T}yes" >&6
20216 else
20217 echo "$as_me:$LINENO: result: no" >&5
20218 echo "${ECHO_T}no" >&6
20222 echo "$as_me:$LINENO: result: no" >&5
20223 echo "${ECHO_T}no" >&6
20225 esac
20228 if test "x$enable_dlopen" != xyes; then
20229 enable_dlopen=unknown
20230 enable_dlopen_self=unknown
20231 enable_dlopen_self_static=unknown
20232 else
20233 lt_cv_dlopen=no
20234 lt_cv_dlopen_libs=
20236 case $host_os in
20237 beos*)
20238 lt_cv_dlopen="load_add_on"
20239 lt_cv_dlopen_libs=
20240 lt_cv_dlopen_self=yes
20243 mingw* | pw32*)
20244 lt_cv_dlopen="LoadLibrary"
20245 lt_cv_dlopen_libs=
20248 cygwin*)
20249 lt_cv_dlopen="dlopen"
20250 lt_cv_dlopen_libs=
20253 darwin*)
20254 # if libdl is installed we need to link against it
20255 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20256 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20257 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 else
20260 ac_check_lib_save_LIBS=$LIBS
20261 LIBS="-ldl $LIBS"
20262 cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h. */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20269 /* Override any gcc2 internal prototype to avoid an error. */
20270 #ifdef __cplusplus
20271 extern "C"
20272 #endif
20273 /* We use char because int might match the return type of a gcc2
20274 builtin and then its argument prototype would still apply. */
20275 char dlopen ();
20277 main ()
20279 dlopen ();
20281 return 0;
20283 _ACEOF
20284 rm -f conftest.$ac_objext conftest$ac_exeext
20285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20286 (eval $ac_link) 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } &&
20293 { ac_try='test -z "$ac_c_werror_flag"
20294 || test ! -s conftest.err'
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; } &&
20300 { ac_try='test -s conftest$ac_exeext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 ac_cv_lib_dl_dlopen=yes
20307 else
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20311 ac_cv_lib_dl_dlopen=no
20313 rm -f conftest.err conftest.$ac_objext \
20314 conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20317 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20318 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20319 if test $ac_cv_lib_dl_dlopen = yes; then
20320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20321 else
20323 lt_cv_dlopen="dyld"
20324 lt_cv_dlopen_libs=
20325 lt_cv_dlopen_self=yes
20332 echo "$as_me:$LINENO: checking for shl_load" >&5
20333 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20334 if test "${ac_cv_func_shl_load+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337 cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h. */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20345 #define shl_load innocuous_shl_load
20347 /* System header to define __stub macros and hopefully few prototypes,
20348 which can conflict with char shl_load (); below.
20349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20350 <limits.h> exists even on freestanding compilers. */
20352 #ifdef __STDC__
20353 # include <limits.h>
20354 #else
20355 # include <assert.h>
20356 #endif
20358 #undef shl_load
20360 /* Override any gcc2 internal prototype to avoid an error. */
20361 #ifdef __cplusplus
20362 extern "C"
20364 #endif
20365 /* We use char because int might match the return type of a gcc2
20366 builtin and then its argument prototype would still apply. */
20367 char shl_load ();
20368 /* The GNU C library defines this for functions which it implements
20369 to always fail with ENOSYS. Some functions are actually named
20370 something starting with __ and the normal name is an alias. */
20371 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20372 choke me
20373 #else
20374 char (*f) () = shl_load;
20375 #endif
20376 #ifdef __cplusplus
20378 #endif
20381 main ()
20383 return f != shl_load;
20385 return 0;
20387 _ACEOF
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20390 (eval $ac_link) 2>conftest.er1
20391 ac_status=$?
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } &&
20397 { ac_try='test -z "$ac_c_werror_flag"
20398 || test ! -s conftest.err'
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest$ac_exeext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 ac_cv_func_shl_load=yes
20411 else
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20415 ac_cv_func_shl_load=no
20417 rm -f conftest.err conftest.$ac_objext \
20418 conftest$ac_exeext conftest.$ac_ext
20420 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20421 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20422 if test $ac_cv_func_shl_load = yes; then
20423 lt_cv_dlopen="shl_load"
20424 else
20425 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20426 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20427 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429 else
20430 ac_check_lib_save_LIBS=$LIBS
20431 LIBS="-ldld $LIBS"
20432 cat >conftest.$ac_ext <<_ACEOF
20433 /* confdefs.h. */
20434 _ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h. */
20439 /* Override any gcc2 internal prototype to avoid an error. */
20440 #ifdef __cplusplus
20441 extern "C"
20442 #endif
20443 /* We use char because int might match the return type of a gcc2
20444 builtin and then its argument prototype would still apply. */
20445 char shl_load ();
20447 main ()
20449 shl_load ();
20451 return 0;
20453 _ACEOF
20454 rm -f conftest.$ac_objext conftest$ac_exeext
20455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20456 (eval $ac_link) 2>conftest.er1
20457 ac_status=$?
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } &&
20463 { ac_try='test -z "$ac_c_werror_flag"
20464 || test ! -s conftest.err'
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; } &&
20470 { ac_try='test -s conftest$ac_exeext'
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
20476 ac_cv_lib_dld_shl_load=yes
20477 else
20478 echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 ac_cv_lib_dld_shl_load=no
20483 rm -f conftest.err conftest.$ac_objext \
20484 conftest$ac_exeext conftest.$ac_ext
20485 LIBS=$ac_check_lib_save_LIBS
20487 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20488 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20489 if test $ac_cv_lib_dld_shl_load = yes; then
20490 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20491 else
20492 echo "$as_me:$LINENO: checking for dlopen" >&5
20493 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20494 if test "${ac_cv_func_dlopen+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497 cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h. */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20503 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20505 #define dlopen innocuous_dlopen
20507 /* System header to define __stub macros and hopefully few prototypes,
20508 which can conflict with char dlopen (); below.
20509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20510 <limits.h> exists even on freestanding compilers. */
20512 #ifdef __STDC__
20513 # include <limits.h>
20514 #else
20515 # include <assert.h>
20516 #endif
20518 #undef dlopen
20520 /* Override any gcc2 internal prototype to avoid an error. */
20521 #ifdef __cplusplus
20522 extern "C"
20524 #endif
20525 /* We use char because int might match the return type of a gcc2
20526 builtin and then its argument prototype would still apply. */
20527 char dlopen ();
20528 /* The GNU C library defines this for functions which it implements
20529 to always fail with ENOSYS. Some functions are actually named
20530 something starting with __ and the normal name is an alias. */
20531 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20532 choke me
20533 #else
20534 char (*f) () = dlopen;
20535 #endif
20536 #ifdef __cplusplus
20538 #endif
20541 main ()
20543 return f != dlopen;
20545 return 0;
20547 _ACEOF
20548 rm -f conftest.$ac_objext conftest$ac_exeext
20549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20550 (eval $ac_link) 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } &&
20557 { ac_try='test -z "$ac_c_werror_flag"
20558 || test ! -s conftest.err'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; } &&
20564 { ac_try='test -s conftest$ac_exeext'
20565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566 (eval $ac_try) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; }; then
20570 ac_cv_func_dlopen=yes
20571 else
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 ac_cv_func_dlopen=no
20577 rm -f conftest.err conftest.$ac_objext \
20578 conftest$ac_exeext conftest.$ac_ext
20580 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20581 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20582 if test $ac_cv_func_dlopen = yes; then
20583 lt_cv_dlopen="dlopen"
20584 else
20585 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20586 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20587 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590 ac_check_lib_save_LIBS=$LIBS
20591 LIBS="-ldl $LIBS"
20592 cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h. */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20599 /* Override any gcc2 internal prototype to avoid an error. */
20600 #ifdef __cplusplus
20601 extern "C"
20602 #endif
20603 /* We use char because int might match the return type of a gcc2
20604 builtin and then its argument prototype would still apply. */
20605 char dlopen ();
20607 main ()
20609 dlopen ();
20611 return 0;
20613 _ACEOF
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20616 (eval $ac_link) 2>conftest.er1
20617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -z "$ac_c_werror_flag"
20624 || test ! -s conftest.err'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20627 ac_status=$?
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } &&
20630 { ac_try='test -s conftest$ac_exeext'
20631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632 (eval $ac_try) 2>&5
20633 ac_status=$?
20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635 (exit $ac_status); }; }; then
20636 ac_cv_lib_dl_dlopen=yes
20637 else
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20641 ac_cv_lib_dl_dlopen=no
20643 rm -f conftest.err conftest.$ac_objext \
20644 conftest$ac_exeext conftest.$ac_ext
20645 LIBS=$ac_check_lib_save_LIBS
20647 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20648 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20649 if test $ac_cv_lib_dl_dlopen = yes; then
20650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20651 else
20652 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20653 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20654 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20655 echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20657 ac_check_lib_save_LIBS=$LIBS
20658 LIBS="-lsvld $LIBS"
20659 cat >conftest.$ac_ext <<_ACEOF
20660 /* confdefs.h. */
20661 _ACEOF
20662 cat confdefs.h >>conftest.$ac_ext
20663 cat >>conftest.$ac_ext <<_ACEOF
20664 /* end confdefs.h. */
20666 /* Override any gcc2 internal prototype to avoid an error. */
20667 #ifdef __cplusplus
20668 extern "C"
20669 #endif
20670 /* We use char because int might match the return type of a gcc2
20671 builtin and then its argument prototype would still apply. */
20672 char dlopen ();
20674 main ()
20676 dlopen ();
20678 return 0;
20680 _ACEOF
20681 rm -f conftest.$ac_objext conftest$ac_exeext
20682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20683 (eval $ac_link) 2>conftest.er1
20684 ac_status=$?
20685 grep -v '^ *+' conftest.er1 >conftest.err
20686 rm -f conftest.er1
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } &&
20690 { ac_try='test -z "$ac_c_werror_flag"
20691 || test ! -s conftest.err'
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; } &&
20697 { ac_try='test -s conftest$ac_exeext'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; }; then
20703 ac_cv_lib_svld_dlopen=yes
20704 else
20705 echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20708 ac_cv_lib_svld_dlopen=no
20710 rm -f conftest.err conftest.$ac_objext \
20711 conftest$ac_exeext conftest.$ac_ext
20712 LIBS=$ac_check_lib_save_LIBS
20714 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20715 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20716 if test $ac_cv_lib_svld_dlopen = yes; then
20717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20718 else
20719 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20720 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20721 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 else
20724 ac_check_lib_save_LIBS=$LIBS
20725 LIBS="-ldld $LIBS"
20726 cat >conftest.$ac_ext <<_ACEOF
20727 /* confdefs.h. */
20728 _ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20733 /* Override any gcc2 internal prototype to avoid an error. */
20734 #ifdef __cplusplus
20735 extern "C"
20736 #endif
20737 /* We use char because int might match the return type of a gcc2
20738 builtin and then its argument prototype would still apply. */
20739 char dld_link ();
20741 main ()
20743 dld_link ();
20745 return 0;
20747 _ACEOF
20748 rm -f conftest.$ac_objext conftest$ac_exeext
20749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20750 (eval $ac_link) 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } &&
20757 { ac_try='test -z "$ac_c_werror_flag"
20758 || test ! -s conftest.err'
20759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20760 (eval $ac_try) 2>&5
20761 ac_status=$?
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); }; } &&
20764 { ac_try='test -s conftest$ac_exeext'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 ac_cv_lib_dld_dld_link=yes
20771 else
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 ac_cv_lib_dld_dld_link=no
20777 rm -f conftest.err conftest.$ac_objext \
20778 conftest$ac_exeext conftest.$ac_ext
20779 LIBS=$ac_check_lib_save_LIBS
20781 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20782 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20783 if test $ac_cv_lib_dld_dld_link = yes; then
20784 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20803 esac
20805 if test "x$lt_cv_dlopen" != xno; then
20806 enable_dlopen=yes
20807 else
20808 enable_dlopen=no
20811 case $lt_cv_dlopen in
20812 dlopen)
20813 save_CPPFLAGS="$CPPFLAGS"
20814 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20816 save_LDFLAGS="$LDFLAGS"
20817 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20819 save_LIBS="$LIBS"
20820 LIBS="$lt_cv_dlopen_libs $LIBS"
20822 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20823 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20824 if test "${lt_cv_dlopen_self+set}" = set; then
20825 echo $ECHO_N "(cached) $ECHO_C" >&6
20826 else
20827 if test "$cross_compiling" = yes; then :
20828 lt_cv_dlopen_self=cross
20829 else
20830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20831 lt_status=$lt_dlunknown
20832 cat > conftest.$ac_ext <<EOF
20833 #line 20833 "configure"
20834 #include "confdefs.h"
20836 #if HAVE_DLFCN_H
20837 #include <dlfcn.h>
20838 #endif
20840 #include <stdio.h>
20842 #ifdef RTLD_GLOBAL
20843 # define LT_DLGLOBAL RTLD_GLOBAL
20844 #else
20845 # ifdef DL_GLOBAL
20846 # define LT_DLGLOBAL DL_GLOBAL
20847 # else
20848 # define LT_DLGLOBAL 0
20849 # endif
20850 #endif
20852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20853 find out it does not work in some platform. */
20854 #ifndef LT_DLLAZY_OR_NOW
20855 # ifdef RTLD_LAZY
20856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20857 # else
20858 # ifdef DL_LAZY
20859 # define LT_DLLAZY_OR_NOW DL_LAZY
20860 # else
20861 # ifdef RTLD_NOW
20862 # define LT_DLLAZY_OR_NOW RTLD_NOW
20863 # else
20864 # ifdef DL_NOW
20865 # define LT_DLLAZY_OR_NOW DL_NOW
20866 # else
20867 # define LT_DLLAZY_OR_NOW 0
20868 # endif
20869 # endif
20870 # endif
20871 # endif
20872 #endif
20874 #ifdef __cplusplus
20875 extern "C" void exit (int);
20876 #endif
20878 void fnord() { int i=42;}
20879 int main ()
20881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20882 int status = $lt_dlunknown;
20884 if (self)
20886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20887 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20888 /* dlclose (self); */
20891 exit (status);
20894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895 (eval $ac_link) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20899 (./conftest; exit; ) 2>/dev/null
20900 lt_status=$?
20901 case x$lt_status in
20902 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20903 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20904 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20905 esac
20906 else :
20907 # compilation failed
20908 lt_cv_dlopen_self=no
20911 rm -fr conftest*
20915 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20916 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20918 if test "x$lt_cv_dlopen_self" = xyes; then
20919 LDFLAGS="$LDFLAGS $link_static_flag"
20920 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20921 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20922 if test "${lt_cv_dlopen_self_static+set}" = set; then
20923 echo $ECHO_N "(cached) $ECHO_C" >&6
20924 else
20925 if test "$cross_compiling" = yes; then :
20926 lt_cv_dlopen_self_static=cross
20927 else
20928 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20929 lt_status=$lt_dlunknown
20930 cat > conftest.$ac_ext <<EOF
20931 #line 20931 "configure"
20932 #include "confdefs.h"
20934 #if HAVE_DLFCN_H
20935 #include <dlfcn.h>
20936 #endif
20938 #include <stdio.h>
20940 #ifdef RTLD_GLOBAL
20941 # define LT_DLGLOBAL RTLD_GLOBAL
20942 #else
20943 # ifdef DL_GLOBAL
20944 # define LT_DLGLOBAL DL_GLOBAL
20945 # else
20946 # define LT_DLGLOBAL 0
20947 # endif
20948 #endif
20950 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20951 find out it does not work in some platform. */
20952 #ifndef LT_DLLAZY_OR_NOW
20953 # ifdef RTLD_LAZY
20954 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20955 # else
20956 # ifdef DL_LAZY
20957 # define LT_DLLAZY_OR_NOW DL_LAZY
20958 # else
20959 # ifdef RTLD_NOW
20960 # define LT_DLLAZY_OR_NOW RTLD_NOW
20961 # else
20962 # ifdef DL_NOW
20963 # define LT_DLLAZY_OR_NOW DL_NOW
20964 # else
20965 # define LT_DLLAZY_OR_NOW 0
20966 # endif
20967 # endif
20968 # endif
20969 # endif
20970 #endif
20972 #ifdef __cplusplus
20973 extern "C" void exit (int);
20974 #endif
20976 void fnord() { int i=42;}
20977 int main ()
20979 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20980 int status = $lt_dlunknown;
20982 if (self)
20984 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20985 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20986 /* dlclose (self); */
20989 exit (status);
20992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20993 (eval $ac_link) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20997 (./conftest; exit; ) 2>/dev/null
20998 lt_status=$?
20999 case x$lt_status in
21000 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21001 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21002 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21003 esac
21004 else :
21005 # compilation failed
21006 lt_cv_dlopen_self_static=no
21009 rm -fr conftest*
21013 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21014 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21017 CPPFLAGS="$save_CPPFLAGS"
21018 LDFLAGS="$save_LDFLAGS"
21019 LIBS="$save_LIBS"
21021 esac
21023 case $lt_cv_dlopen_self in
21024 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21025 *) enable_dlopen_self=unknown ;;
21026 esac
21028 case $lt_cv_dlopen_self_static in
21029 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21030 *) enable_dlopen_self_static=unknown ;;
21031 esac
21035 # The else clause should only fire when bootstrapping the
21036 # libtool distribution, otherwise you forgot to ship ltmain.sh
21037 # with your package, and you will get complaints that there are
21038 # no rules to generate ltmain.sh.
21039 if test -f "$ltmain"; then
21040 # See if we are running on zsh, and set the options which allow our commands through
21041 # without removal of \ escapes.
21042 if test -n "${ZSH_VERSION+set}" ; then
21043 setopt NO_GLOB_SUBST
21045 # Now quote all the things that may contain metacharacters while being
21046 # careful not to overquote the AC_SUBSTed values. We take copies of the
21047 # variables and quote the copies for generation of the libtool script.
21048 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21049 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21050 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21051 deplibs_check_method reload_flag reload_cmds need_locks \
21052 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21053 lt_cv_sys_global_symbol_to_c_name_address \
21054 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21055 old_postinstall_cmds old_postuninstall_cmds \
21056 compiler_GCJ \
21057 CC_GCJ \
21058 LD_GCJ \
21059 lt_prog_compiler_wl_GCJ \
21060 lt_prog_compiler_pic_GCJ \
21061 lt_prog_compiler_static_GCJ \
21062 lt_prog_compiler_no_builtin_flag_GCJ \
21063 export_dynamic_flag_spec_GCJ \
21064 thread_safe_flag_spec_GCJ \
21065 whole_archive_flag_spec_GCJ \
21066 enable_shared_with_static_runtimes_GCJ \
21067 old_archive_cmds_GCJ \
21068 old_archive_from_new_cmds_GCJ \
21069 predep_objects_GCJ \
21070 postdep_objects_GCJ \
21071 predeps_GCJ \
21072 postdeps_GCJ \
21073 compiler_lib_search_path_GCJ \
21074 archive_cmds_GCJ \
21075 archive_expsym_cmds_GCJ \
21076 postinstall_cmds_GCJ \
21077 postuninstall_cmds_GCJ \
21078 old_archive_from_expsyms_cmds_GCJ \
21079 allow_undefined_flag_GCJ \
21080 no_undefined_flag_GCJ \
21081 export_symbols_cmds_GCJ \
21082 hardcode_libdir_flag_spec_GCJ \
21083 hardcode_libdir_flag_spec_ld_GCJ \
21084 hardcode_libdir_separator_GCJ \
21085 hardcode_automatic_GCJ \
21086 module_cmds_GCJ \
21087 module_expsym_cmds_GCJ \
21088 lt_cv_prog_compiler_c_o_GCJ \
21089 exclude_expsyms_GCJ \
21090 include_expsyms_GCJ; do
21092 case $var in
21093 old_archive_cmds_GCJ | \
21094 old_archive_from_new_cmds_GCJ | \
21095 archive_cmds_GCJ | \
21096 archive_expsym_cmds_GCJ | \
21097 module_cmds_GCJ | \
21098 module_expsym_cmds_GCJ | \
21099 old_archive_from_expsyms_cmds_GCJ | \
21100 export_symbols_cmds_GCJ | \
21101 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21102 postinstall_cmds | postuninstall_cmds | \
21103 old_postinstall_cmds | old_postuninstall_cmds | \
21104 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21105 # Double-quote double-evaled strings.
21106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21111 esac
21112 done
21114 case $lt_echo in
21115 *'\$0 --fallback-echo"')
21116 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21118 esac
21120 cfgfile="$ofile"
21122 cat <<__EOF__ >> "$cfgfile"
21123 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21125 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21127 # Shell to use when invoking shell scripts.
21128 SHELL=$lt_SHELL
21130 # Whether or not to build shared libraries.
21131 build_libtool_libs=$enable_shared
21133 # Whether or not to build static libraries.
21134 build_old_libs=$enable_static
21136 # Whether or not to add -lc for building shared libraries.
21137 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21139 # Whether or not to disallow shared libs when runtime libs are static
21140 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21142 # Whether or not to optimize for fast installation.
21143 fast_install=$enable_fast_install
21145 # The host system.
21146 host_alias=$host_alias
21147 host=$host
21149 # An echo program that does not interpret backslashes.
21150 echo=$lt_echo
21152 # The archiver.
21153 AR=$lt_AR
21154 AR_FLAGS=$lt_AR_FLAGS
21156 # A C compiler.
21157 LTCC=$lt_LTCC
21159 # A language-specific compiler.
21160 CC=$lt_compiler_GCJ
21162 # Is the compiler the GNU C compiler?
21163 with_gcc=$GCC_GCJ
21165 # An ERE matcher.
21166 EGREP=$lt_EGREP
21168 # The linker used to build libraries.
21169 LD=$lt_LD_GCJ
21171 # Whether we need hard or soft links.
21172 LN_S=$lt_LN_S
21174 # A BSD-compatible nm program.
21175 NM=$lt_NM
21177 # A symbol stripping program
21178 STRIP=$STRIP
21180 # Used to examine libraries when file_magic_cmd begins "file"
21181 MAGIC_CMD=$MAGIC_CMD
21183 # Used on cygwin: DLL creation program.
21184 DLLTOOL="$DLLTOOL"
21186 # Used on cygwin: object dumper.
21187 OBJDUMP="$OBJDUMP"
21189 # Used on cygwin: assembler.
21190 AS="$AS"
21192 # The name of the directory that contains temporary libtool files.
21193 objdir=$objdir
21195 # How to create reloadable object files.
21196 reload_flag=$lt_reload_flag
21197 reload_cmds=$lt_reload_cmds
21199 # How to pass a linker flag through the compiler.
21200 wl=$lt_lt_prog_compiler_wl_GCJ
21202 # Object file suffix (normally "o").
21203 objext="$ac_objext"
21205 # Old archive suffix (normally "a").
21206 libext="$libext"
21208 # Shared library suffix (normally ".so").
21209 shrext='$shrext'
21211 # Executable file suffix (normally "").
21212 exeext="$exeext"
21214 # Additional compiler flags for building library objects.
21215 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21216 pic_mode=$pic_mode
21218 # What is the maximum length of a command?
21219 max_cmd_len=$lt_cv_sys_max_cmd_len
21221 # Does compiler simultaneously support -c and -o options?
21222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21224 # Must we lock files when doing compilation ?
21225 need_locks=$lt_need_locks
21227 # Do we need the lib prefix for modules?
21228 need_lib_prefix=$need_lib_prefix
21230 # Do we need a version for libraries?
21231 need_version=$need_version
21233 # Whether dlopen is supported.
21234 dlopen_support=$enable_dlopen
21236 # Whether dlopen of programs is supported.
21237 dlopen_self=$enable_dlopen_self
21239 # Whether dlopen of statically linked programs is supported.
21240 dlopen_self_static=$enable_dlopen_self_static
21242 # Compiler flag to prevent dynamic linking.
21243 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21245 # Compiler flag to turn off builtin functions.
21246 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21248 # Compiler flag to allow reflexive dlopens.
21249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21251 # Compiler flag to generate shared objects directly from archives.
21252 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21254 # Compiler flag to generate thread-safe objects.
21255 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21257 # Library versioning type.
21258 version_type=$version_type
21260 # Format of library name prefix.
21261 libname_spec=$lt_libname_spec
21263 # List of archive names. First name is the real one, the rest are links.
21264 # The last name is the one that the linker finds with -lNAME.
21265 library_names_spec=$lt_library_names_spec
21267 # The coded name of the library, if different from the real name.
21268 soname_spec=$lt_soname_spec
21270 # Commands used to build and install an old-style archive.
21271 RANLIB=$lt_RANLIB
21272 old_archive_cmds=$lt_old_archive_cmds_GCJ
21273 old_postinstall_cmds=$lt_old_postinstall_cmds
21274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21276 # Create an old-style archive from a shared archive.
21277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21279 # Create a temporary old-style archive to link instead of a shared archive.
21280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21282 # Commands used to build and install a shared archive.
21283 archive_cmds=$lt_archive_cmds_GCJ
21284 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21285 postinstall_cmds=$lt_postinstall_cmds
21286 postuninstall_cmds=$lt_postuninstall_cmds
21288 # Commands used to build a loadable module (assumed same as above if empty)
21289 module_cmds=$lt_module_cmds_GCJ
21290 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21292 # Commands to strip libraries.
21293 old_striplib=$lt_old_striplib
21294 striplib=$lt_striplib
21296 # Dependencies to place before the objects being linked to create a
21297 # shared library.
21298 predep_objects=$lt_predep_objects_GCJ
21300 # Dependencies to place after the objects being linked to create a
21301 # shared library.
21302 postdep_objects=$lt_postdep_objects_GCJ
21304 # Dependencies to place before the objects being linked to create a
21305 # shared library.
21306 predeps=$lt_predeps_GCJ
21308 # Dependencies to place after the objects being linked to create a
21309 # shared library.
21310 postdeps=$lt_postdeps_GCJ
21312 # The library search path used internally by the compiler when linking
21313 # a shared library.
21314 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21316 # Method to check whether dependent libraries are shared objects.
21317 deplibs_check_method=$lt_deplibs_check_method
21319 # Command to use when deplibs_check_method == file_magic.
21320 file_magic_cmd=$lt_file_magic_cmd
21322 # Flag that allows shared libraries with undefined symbols to be built.
21323 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21325 # Flag that forces no undefined symbols.
21326 no_undefined_flag=$lt_no_undefined_flag_GCJ
21328 # Commands used to finish a libtool library installation in a directory.
21329 finish_cmds=$lt_finish_cmds
21331 # Same as above, but a single script fragment to be evaled but not shown.
21332 finish_eval=$lt_finish_eval
21334 # Take the output of nm and produce a listing of raw symbols and C names.
21335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21337 # Transform the output of nm in a proper C declaration
21338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21340 # Transform the output of nm in a C name address pair
21341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21343 # This is the shared library runtime path variable.
21344 runpath_var=$runpath_var
21346 # This is the shared library path variable.
21347 shlibpath_var=$shlibpath_var
21349 # Is shlibpath searched before the hard-coded library search path?
21350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21352 # How to hardcode a shared library path into an executable.
21353 hardcode_action=$hardcode_action_GCJ
21355 # Whether we should hardcode library paths into libraries.
21356 hardcode_into_libs=$hardcode_into_libs
21358 # Flag to hardcode \$libdir into a binary during linking.
21359 # This must work even if \$libdir does not exist.
21360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21362 # If ld is used when linking, flag to hardcode \$libdir into
21363 # a binary during linking. This must work even if \$libdir does
21364 # not exist.
21365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21367 # Whether we need a single -rpath flag with a separated argument.
21368 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21370 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21371 # resulting binary.
21372 hardcode_direct=$hardcode_direct_GCJ
21374 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21375 # resulting binary.
21376 hardcode_minus_L=$hardcode_minus_L_GCJ
21378 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21379 # the resulting binary.
21380 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21382 # Set to yes if building a shared library automatically hardcodes DIR into the library
21383 # and all subsequent libraries and executables linked against it.
21384 hardcode_automatic=$hardcode_automatic_GCJ
21386 # Variables whose values should be saved in libtool wrapper scripts and
21387 # restored at relink time.
21388 variables_saved_for_relink="$variables_saved_for_relink"
21390 # Whether libtool must link a program against all its dependency libraries.
21391 link_all_deplibs=$link_all_deplibs_GCJ
21393 # Compile-time system search path for libraries
21394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21396 # Run-time system search path for libraries
21397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21399 # Fix the shell variable \$srcfile for the compiler.
21400 fix_srcfile_path="$fix_srcfile_path_GCJ"
21402 # Set to yes if exported symbols are required.
21403 always_export_symbols=$always_export_symbols_GCJ
21405 # The commands to list exported symbols.
21406 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21408 # The commands to extract the exported symbol list from a shared archive.
21409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21411 # Symbols that should not be listed in the preloaded symbols.
21412 exclude_expsyms=$lt_exclude_expsyms_GCJ
21414 # Symbols that must always be exported.
21415 include_expsyms=$lt_include_expsyms_GCJ
21417 # ### END LIBTOOL TAG CONFIG: $tagname
21419 __EOF__
21422 else
21423 # If there is no Makefile yet, we rely on a make rule to execute
21424 # `config.status --recheck' to rerun these tests and create the
21425 # libtool script then.
21426 test -f Makefile && make "$ltmain"
21430 ac_ext=c
21431 ac_cpp='$CPP $CPPFLAGS'
21432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21436 CC="$lt_save_CC"
21438 else
21439 tagname=""
21447 # Source file extension for RC test sources.
21448 ac_ext=rc
21450 # Object file extension for compiled RC test sources.
21451 objext=o
21452 objext_RC=$objext
21454 # Code to be used in simple compile tests
21455 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21457 # Code to be used in simple link tests
21458 lt_simple_link_test_code="$lt_simple_compile_test_code"
21460 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21462 # If no C compiler was specified, use CC.
21463 LTCC=${LTCC-"$CC"}
21465 # Allow CC to be a program name with arguments.
21466 compiler=$CC
21469 # Allow CC to be a program name with arguments.
21470 lt_save_CC="$CC"
21471 CC=${RC-"windres"}
21472 compiler=$CC
21473 compiler_RC=$CC
21474 lt_cv_prog_compiler_c_o_RC=yes
21476 # The else clause should only fire when bootstrapping the
21477 # libtool distribution, otherwise you forgot to ship ltmain.sh
21478 # with your package, and you will get complaints that there are
21479 # no rules to generate ltmain.sh.
21480 if test -f "$ltmain"; then
21481 # See if we are running on zsh, and set the options which allow our commands through
21482 # without removal of \ escapes.
21483 if test -n "${ZSH_VERSION+set}" ; then
21484 setopt NO_GLOB_SUBST
21486 # Now quote all the things that may contain metacharacters while being
21487 # careful not to overquote the AC_SUBSTed values. We take copies of the
21488 # variables and quote the copies for generation of the libtool script.
21489 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21490 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21491 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21492 deplibs_check_method reload_flag reload_cmds need_locks \
21493 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21494 lt_cv_sys_global_symbol_to_c_name_address \
21495 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21496 old_postinstall_cmds old_postuninstall_cmds \
21497 compiler_RC \
21498 CC_RC \
21499 LD_RC \
21500 lt_prog_compiler_wl_RC \
21501 lt_prog_compiler_pic_RC \
21502 lt_prog_compiler_static_RC \
21503 lt_prog_compiler_no_builtin_flag_RC \
21504 export_dynamic_flag_spec_RC \
21505 thread_safe_flag_spec_RC \
21506 whole_archive_flag_spec_RC \
21507 enable_shared_with_static_runtimes_RC \
21508 old_archive_cmds_RC \
21509 old_archive_from_new_cmds_RC \
21510 predep_objects_RC \
21511 postdep_objects_RC \
21512 predeps_RC \
21513 postdeps_RC \
21514 compiler_lib_search_path_RC \
21515 archive_cmds_RC \
21516 archive_expsym_cmds_RC \
21517 postinstall_cmds_RC \
21518 postuninstall_cmds_RC \
21519 old_archive_from_expsyms_cmds_RC \
21520 allow_undefined_flag_RC \
21521 no_undefined_flag_RC \
21522 export_symbols_cmds_RC \
21523 hardcode_libdir_flag_spec_RC \
21524 hardcode_libdir_flag_spec_ld_RC \
21525 hardcode_libdir_separator_RC \
21526 hardcode_automatic_RC \
21527 module_cmds_RC \
21528 module_expsym_cmds_RC \
21529 lt_cv_prog_compiler_c_o_RC \
21530 exclude_expsyms_RC \
21531 include_expsyms_RC; do
21533 case $var in
21534 old_archive_cmds_RC | \
21535 old_archive_from_new_cmds_RC | \
21536 archive_cmds_RC | \
21537 archive_expsym_cmds_RC | \
21538 module_cmds_RC | \
21539 module_expsym_cmds_RC | \
21540 old_archive_from_expsyms_cmds_RC | \
21541 export_symbols_cmds_RC | \
21542 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21543 postinstall_cmds | postuninstall_cmds | \
21544 old_postinstall_cmds | old_postuninstall_cmds | \
21545 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21546 # Double-quote double-evaled strings.
21547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21552 esac
21553 done
21555 case $lt_echo in
21556 *'\$0 --fallback-echo"')
21557 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21559 esac
21561 cfgfile="$ofile"
21563 cat <<__EOF__ >> "$cfgfile"
21564 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21566 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21568 # Shell to use when invoking shell scripts.
21569 SHELL=$lt_SHELL
21571 # Whether or not to build shared libraries.
21572 build_libtool_libs=$enable_shared
21574 # Whether or not to build static libraries.
21575 build_old_libs=$enable_static
21577 # Whether or not to add -lc for building shared libraries.
21578 build_libtool_need_lc=$archive_cmds_need_lc_RC
21580 # Whether or not to disallow shared libs when runtime libs are static
21581 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21583 # Whether or not to optimize for fast installation.
21584 fast_install=$enable_fast_install
21586 # The host system.
21587 host_alias=$host_alias
21588 host=$host
21590 # An echo program that does not interpret backslashes.
21591 echo=$lt_echo
21593 # The archiver.
21594 AR=$lt_AR
21595 AR_FLAGS=$lt_AR_FLAGS
21597 # A C compiler.
21598 LTCC=$lt_LTCC
21600 # A language-specific compiler.
21601 CC=$lt_compiler_RC
21603 # Is the compiler the GNU C compiler?
21604 with_gcc=$GCC_RC
21606 # An ERE matcher.
21607 EGREP=$lt_EGREP
21609 # The linker used to build libraries.
21610 LD=$lt_LD_RC
21612 # Whether we need hard or soft links.
21613 LN_S=$lt_LN_S
21615 # A BSD-compatible nm program.
21616 NM=$lt_NM
21618 # A symbol stripping program
21619 STRIP=$STRIP
21621 # Used to examine libraries when file_magic_cmd begins "file"
21622 MAGIC_CMD=$MAGIC_CMD
21624 # Used on cygwin: DLL creation program.
21625 DLLTOOL="$DLLTOOL"
21627 # Used on cygwin: object dumper.
21628 OBJDUMP="$OBJDUMP"
21630 # Used on cygwin: assembler.
21631 AS="$AS"
21633 # The name of the directory that contains temporary libtool files.
21634 objdir=$objdir
21636 # How to create reloadable object files.
21637 reload_flag=$lt_reload_flag
21638 reload_cmds=$lt_reload_cmds
21640 # How to pass a linker flag through the compiler.
21641 wl=$lt_lt_prog_compiler_wl_RC
21643 # Object file suffix (normally "o").
21644 objext="$ac_objext"
21646 # Old archive suffix (normally "a").
21647 libext="$libext"
21649 # Shared library suffix (normally ".so").
21650 shrext='$shrext'
21652 # Executable file suffix (normally "").
21653 exeext="$exeext"
21655 # Additional compiler flags for building library objects.
21656 pic_flag=$lt_lt_prog_compiler_pic_RC
21657 pic_mode=$pic_mode
21659 # What is the maximum length of a command?
21660 max_cmd_len=$lt_cv_sys_max_cmd_len
21662 # Does compiler simultaneously support -c and -o options?
21663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21665 # Must we lock files when doing compilation ?
21666 need_locks=$lt_need_locks
21668 # Do we need the lib prefix for modules?
21669 need_lib_prefix=$need_lib_prefix
21671 # Do we need a version for libraries?
21672 need_version=$need_version
21674 # Whether dlopen is supported.
21675 dlopen_support=$enable_dlopen
21677 # Whether dlopen of programs is supported.
21678 dlopen_self=$enable_dlopen_self
21680 # Whether dlopen of statically linked programs is supported.
21681 dlopen_self_static=$enable_dlopen_self_static
21683 # Compiler flag to prevent dynamic linking.
21684 link_static_flag=$lt_lt_prog_compiler_static_RC
21686 # Compiler flag to turn off builtin functions.
21687 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21689 # Compiler flag to allow reflexive dlopens.
21690 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21692 # Compiler flag to generate shared objects directly from archives.
21693 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21695 # Compiler flag to generate thread-safe objects.
21696 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21698 # Library versioning type.
21699 version_type=$version_type
21701 # Format of library name prefix.
21702 libname_spec=$lt_libname_spec
21704 # List of archive names. First name is the real one, the rest are links.
21705 # The last name is the one that the linker finds with -lNAME.
21706 library_names_spec=$lt_library_names_spec
21708 # The coded name of the library, if different from the real name.
21709 soname_spec=$lt_soname_spec
21711 # Commands used to build and install an old-style archive.
21712 RANLIB=$lt_RANLIB
21713 old_archive_cmds=$lt_old_archive_cmds_RC
21714 old_postinstall_cmds=$lt_old_postinstall_cmds
21715 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21717 # Create an old-style archive from a shared archive.
21718 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21720 # Create a temporary old-style archive to link instead of a shared archive.
21721 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21723 # Commands used to build and install a shared archive.
21724 archive_cmds=$lt_archive_cmds_RC
21725 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21726 postinstall_cmds=$lt_postinstall_cmds
21727 postuninstall_cmds=$lt_postuninstall_cmds
21729 # Commands used to build a loadable module (assumed same as above if empty)
21730 module_cmds=$lt_module_cmds_RC
21731 module_expsym_cmds=$lt_module_expsym_cmds_RC
21733 # Commands to strip libraries.
21734 old_striplib=$lt_old_striplib
21735 striplib=$lt_striplib
21737 # Dependencies to place before the objects being linked to create a
21738 # shared library.
21739 predep_objects=$lt_predep_objects_RC
21741 # Dependencies to place after the objects being linked to create a
21742 # shared library.
21743 postdep_objects=$lt_postdep_objects_RC
21745 # Dependencies to place before the objects being linked to create a
21746 # shared library.
21747 predeps=$lt_predeps_RC
21749 # Dependencies to place after the objects being linked to create a
21750 # shared library.
21751 postdeps=$lt_postdeps_RC
21753 # The library search path used internally by the compiler when linking
21754 # a shared library.
21755 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21757 # Method to check whether dependent libraries are shared objects.
21758 deplibs_check_method=$lt_deplibs_check_method
21760 # Command to use when deplibs_check_method == file_magic.
21761 file_magic_cmd=$lt_file_magic_cmd
21763 # Flag that allows shared libraries with undefined symbols to be built.
21764 allow_undefined_flag=$lt_allow_undefined_flag_RC
21766 # Flag that forces no undefined symbols.
21767 no_undefined_flag=$lt_no_undefined_flag_RC
21769 # Commands used to finish a libtool library installation in a directory.
21770 finish_cmds=$lt_finish_cmds
21772 # Same as above, but a single script fragment to be evaled but not shown.
21773 finish_eval=$lt_finish_eval
21775 # Take the output of nm and produce a listing of raw symbols and C names.
21776 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21778 # Transform the output of nm in a proper C declaration
21779 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21781 # Transform the output of nm in a C name address pair
21782 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21784 # This is the shared library runtime path variable.
21785 runpath_var=$runpath_var
21787 # This is the shared library path variable.
21788 shlibpath_var=$shlibpath_var
21790 # Is shlibpath searched before the hard-coded library search path?
21791 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21793 # How to hardcode a shared library path into an executable.
21794 hardcode_action=$hardcode_action_RC
21796 # Whether we should hardcode library paths into libraries.
21797 hardcode_into_libs=$hardcode_into_libs
21799 # Flag to hardcode \$libdir into a binary during linking.
21800 # This must work even if \$libdir does not exist.
21801 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21803 # If ld is used when linking, flag to hardcode \$libdir into
21804 # a binary during linking. This must work even if \$libdir does
21805 # not exist.
21806 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21808 # Whether we need a single -rpath flag with a separated argument.
21809 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21811 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21812 # resulting binary.
21813 hardcode_direct=$hardcode_direct_RC
21815 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21816 # resulting binary.
21817 hardcode_minus_L=$hardcode_minus_L_RC
21819 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21820 # the resulting binary.
21821 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21823 # Set to yes if building a shared library automatically hardcodes DIR into the library
21824 # and all subsequent libraries and executables linked against it.
21825 hardcode_automatic=$hardcode_automatic_RC
21827 # Variables whose values should be saved in libtool wrapper scripts and
21828 # restored at relink time.
21829 variables_saved_for_relink="$variables_saved_for_relink"
21831 # Whether libtool must link a program against all its dependency libraries.
21832 link_all_deplibs=$link_all_deplibs_RC
21834 # Compile-time system search path for libraries
21835 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21837 # Run-time system search path for libraries
21838 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21840 # Fix the shell variable \$srcfile for the compiler.
21841 fix_srcfile_path="$fix_srcfile_path_RC"
21843 # Set to yes if exported symbols are required.
21844 always_export_symbols=$always_export_symbols_RC
21846 # The commands to list exported symbols.
21847 export_symbols_cmds=$lt_export_symbols_cmds_RC
21849 # The commands to extract the exported symbol list from a shared archive.
21850 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21852 # Symbols that should not be listed in the preloaded symbols.
21853 exclude_expsyms=$lt_exclude_expsyms_RC
21855 # Symbols that must always be exported.
21856 include_expsyms=$lt_include_expsyms_RC
21858 # ### END LIBTOOL TAG CONFIG: $tagname
21860 __EOF__
21863 else
21864 # If there is no Makefile yet, we rely on a make rule to execute
21865 # `config.status --recheck' to rerun these tests and create the
21866 # libtool script then.
21867 test -f Makefile && make "$ltmain"
21871 ac_ext=c
21872 ac_cpp='$CPP $CPPFLAGS'
21873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21877 CC="$lt_save_CC"
21882 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21883 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21884 { (exit 1); exit 1; }; }
21886 esac
21888 # Append the new tag name to the list of available tags.
21889 if test -n "$tagname" ; then
21890 available_tags="$available_tags $tagname"
21893 done
21894 IFS="$lt_save_ifs"
21896 # Now substitute the updated list of available tags.
21897 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21898 mv "${ofile}T" "$ofile"
21899 chmod +x "$ofile"
21900 else
21901 rm -f "${ofile}T"
21902 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21903 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21904 { (exit 1); exit 1; }; }
21910 # This can be used to rebuild libtool when needed
21911 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21913 # Always use our own libtool.
21914 LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
21916 # Prevent multiple expansion
21951 LIBTOOL_SHELL="/bin/sh ./libtool"
21952 # LIBTOOL="$LIBTOOL --silent"
21953 KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
21956 # This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs.
21957 KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)"
21960 # we patch configure quite some so we better keep that consistent for incremental runs
21961 AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
21967 # Extract the first word of "msgfmt", so it can be a program name with args.
21968 set dummy msgfmt; ac_word=$2
21969 echo "$as_me:$LINENO: checking for $ac_word" >&5
21970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21971 if test "${ac_cv_path_MSGFMT+set}" = set; then
21972 echo $ECHO_N "(cached) $ECHO_C" >&6
21973 else
21974 case "$MSGFMT" in
21976 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21980 for ac_dir in $PATH; do
21981 test -z "$ac_dir" && ac_dir=.
21982 if test -f $ac_dir/$ac_word; then
21983 if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
21984 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
21985 break
21988 done
21989 IFS="$ac_save_ifs"
21990 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
21992 esac
21994 MSGFMT="$ac_cv_path_MSGFMT"
21995 if test -n "$MSGFMT"; then
21996 echo "$as_me:$LINENO: result: $MSGFMT" >&5
21997 echo "${ECHO_T}$MSGFMT" >&6
21998 else
21999 echo "$as_me:$LINENO: result: no" >&5
22000 echo "${ECHO_T}no" >&6
22003 # Extract the first word of "gmsgfmt", so it can be a program name with args.
22004 set dummy gmsgfmt; ac_word=$2
22005 echo "$as_me:$LINENO: checking for $ac_word" >&5
22006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22007 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 else
22010 case $GMSGFMT in
22011 [\\/]* | ?:[\\/]*)
22012 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22016 for as_dir in $PATH
22018 IFS=$as_save_IFS
22019 test -z "$as_dir" && as_dir=.
22020 for ac_exec_ext in '' $ac_executable_extensions; do
22021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22022 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22024 break 2
22026 done
22027 done
22029 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22031 esac
22033 GMSGFMT=$ac_cv_path_GMSGFMT
22035 if test -n "$GMSGFMT"; then
22036 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22037 echo "${ECHO_T}$GMSGFMT" >&6
22038 else
22039 echo "$as_me:$LINENO: result: no" >&5
22040 echo "${ECHO_T}no" >&6
22044 if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
22045 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
22046 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
22047 GMSGFMT=":"
22049 MSGFMT=$GMSGFMT
22053 # Extract the first word of "xgettext", so it can be a program name with args.
22054 set dummy xgettext; ac_word=$2
22055 echo "$as_me:$LINENO: checking for $ac_word" >&5
22056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22057 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22058 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 else
22060 case "$XGETTEXT" in
22062 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22066 for ac_dir in $PATH; do
22067 test -z "$ac_dir" && ac_dir=.
22068 if test -f $ac_dir/$ac_word; then
22069 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22070 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22071 break
22074 done
22075 IFS="$ac_save_ifs"
22076 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22078 esac
22080 XGETTEXT="$ac_cv_path_XGETTEXT"
22081 if test -n "$XGETTEXT"; then
22082 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22083 echo "${ECHO_T}$XGETTEXT" >&6
22084 else
22085 echo "$as_me:$LINENO: result: no" >&5
22086 echo "${ECHO_T}no" >&6
22090 if test "$XGETTEXT" != ":"; then
22091 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
22093 else
22094 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
22095 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
22096 XGETTEXT=":"
22104 if test -z "3.2.0"; then
22105 # Current default Qt version: 3.3
22106 kde_qtver=3
22107 kde_qtsubver=3
22108 else
22109 kde_qtsubver=`echo "3.2.0" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
22110 # following is the check if subversion isnt found in passed argument
22111 if test "$kde_qtsubver" = "3.2.0"; then
22112 kde_qtsubver=1
22114 kde_qtver=`echo "3.2.0" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
22115 if test "$kde_qtver" = "1"; then
22116 kde_qtsubver=42
22120 if test -z ""; then
22121 if test "$kde_qtver" = "2"; then
22122 if test $kde_qtsubver -gt 0; then
22123 kde_qt_minversion=">= Qt 2.2.2"
22124 else
22125 kde_qt_minversion=">= Qt 2.0.2"
22128 if test "$kde_qtver" = "3"; then
22129 if test $kde_qtsubver -gt 0; then
22130 if test $kde_qtsubver -gt 1; then
22131 if test $kde_qtsubver -gt 2; then
22132 kde_qt_minversion=">= Qt 3.3 and < 4.0"
22133 else
22134 kde_qt_minversion=">= Qt 3.2 and < 4.0"
22136 else
22137 kde_qt_minversion=">= Qt 3.1 (20021021) and < 4.0"
22139 else
22140 kde_qt_minversion=">= Qt 3.0 and < 4.0"
22143 if test "$kde_qtver" = "1"; then
22144 kde_qt_minversion=">= 1.42 and < 2.0"
22146 else
22147 kde_qt_minversion=""
22150 if test -z ""; then
22151 if test $kde_qtver = 3; then
22152 if test $kde_qtsubver -gt 0; then
22153 kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
22154 qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
22155 kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
22156 else
22157 kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
22160 if test $kde_qtver = 2; then
22161 if test $kde_qtsubver -gt 0; then
22162 kde_qt_verstring="QT_VERSION >= 222"
22163 else
22164 kde_qt_verstring="QT_VERSION >= 200"
22167 if test $kde_qtver = 1; then
22168 kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
22170 else
22171 kde_qt_verstring=""
22174 if test $kde_qtver = 4; then
22175 kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
22177 if test $kde_qtver = 3; then
22178 kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
22180 if test $kde_qtver = 2; then
22181 kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
22183 if test $kde_qtver = 1; then
22184 kde_qt_dirs="$QTDIR /usr/lib/qt"
22190 ac_ext=cc
22191 ac_cpp='$CXXCPP $CPPFLAGS'
22192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22196 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22199 ac_save_CXXFLAGS="$CXXFLAGS"
22200 CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
22202 echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
22203 echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6
22204 if test "${kde_cv_stl_works+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 else
22208 cat >conftest.$ac_ext <<_ACEOF
22209 /* confdefs.h. */
22210 _ACEOF
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h. */
22215 #include <string>
22216 using namespace std;
22219 main ()
22222 string astring="Hallo Welt.";
22223 astring.erase(0, 6); // now astring is "Welt"
22224 return 0;
22227 return 0;
22229 _ACEOF
22230 rm -f conftest.$ac_objext
22231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22232 (eval $ac_compile) 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } &&
22239 { ac_try='test -z "$ac_cxx_werror_flag"
22240 || test ! -s conftest.err'
22241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242 (eval $ac_try) 2>&5
22243 ac_status=$?
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); }; } &&
22246 { ac_try='test -s conftest.$ac_objext'
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; }; then
22252 kde_cv_stl_works=yes
22253 else
22254 echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22257 kde_cv_stl_works=no
22259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22264 echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
22265 echo "${ECHO_T}$kde_cv_stl_works" >&6
22267 if test "$kde_cv_stl_works" = "yes"; then
22268 # back compatible
22270 cat >>confdefs.h <<_ACEOF
22271 #define HAVE_SGI_STL 1
22272 _ACEOF
22274 else
22275 { { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
22276 Check config.log for details - if you're using a Linux distribution you might miss
22277 a package named similar to libstdc++-dev." >&5
22278 echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
22279 Check config.log for details - if you're using a Linux distribution you might miss
22280 a package named similar to libstdc++-dev." >&2;}
22281 { (exit 1); exit 1; }; }
22284 CXXFLAGS="$ac_save_CXXFLAGS"
22285 ac_ext=c
22286 ac_cpp='$CPP $CPPFLAGS'
22287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22294 echo "$as_me:$LINENO: checking for strlcat" >&5
22295 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
22296 if test "${kde_cv_func_strlcat+set}" = set; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22298 else
22302 ac_ext=cc
22303 ac_cpp='$CXXCPP $CPPFLAGS'
22304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22308 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22311 save_CXXFLAGS="$CXXFLAGS"
22312 kde_safe_LIBS="$LIBS"
22313 LIBS="$LIBS $X_EXTRA_LIBS"
22314 if test "$GXX" = "yes"; then
22315 CXXFLAGS="$CXXFLAGS -pedantic-errors"
22317 cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h. */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22325 #include <string.h>
22329 main ()
22332 char buf[20];
22333 buf[0]='\0';
22334 strlcat(buf, "KDE function test", sizeof(buf));
22338 return 0;
22340 _ACEOF
22341 rm -f conftest.$ac_objext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22343 (eval $ac_compile) 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
22350 { ac_try='test -z "$ac_cxx_werror_flag"
22351 || test ! -s conftest.err'
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22354 ac_status=$?
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; } &&
22357 { ac_try='test -s conftest.$ac_objext'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22360 ac_status=$?
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; }; then
22363 kde_cv_func_strlcat=yes
22364 else
22365 echo "$as_me: failed program was:" >&5
22366 sed 's/^/| /' conftest.$ac_ext >&5
22368 kde_cv_func_strlcat=no
22370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22371 CXXFLAGS="$save_CXXFLAGS"
22372 LIBS="$kde_safe_LIBS"
22373 ac_ext=c
22374 ac_cpp='$CPP $CPPFLAGS'
22375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22383 echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
22384 echo "${ECHO_T}$kde_cv_func_strlcat" >&6
22386 echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
22387 echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6
22388 if test "${kde_cv_proto_strlcat+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22390 else
22392 if test "x$kde_cv_func_strlcat" = xyes; then
22393 kde_cv_proto_strlcat=no
22394 else
22395 case "strlcat" in
22396 setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
22397 kde_cv_proto_strlcat="yes - in libkdefakes"
22400 kde_cv_proto_strlcat=unknown
22402 esac
22405 if test "x$kde_cv_proto_strlcat" = xunknown; then
22409 ac_ext=cc
22410 ac_cpp='$CXXCPP $CPPFLAGS'
22411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22415 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22418 kde_safe_libs=$LIBS
22419 LIBS="$LIBS $X_EXTRA_LIBS"
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22428 #include <string.h>
22431 extern "C" unsigned long strlcat(char*, const char*, unsigned long);
22434 main ()
22437 char buf[20];
22438 buf[0]='\0';
22439 strlcat(buf, "KDE function test", sizeof(buf));
22443 return 0;
22445 _ACEOF
22446 rm -f conftest.$ac_objext conftest$ac_exeext
22447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22448 (eval $ac_link) 2>conftest.er1
22449 ac_status=$?
22450 grep -v '^ *+' conftest.er1 >conftest.err
22451 rm -f conftest.er1
22452 cat conftest.err >&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } &&
22455 { ac_try='test -z "$ac_cxx_werror_flag"
22456 || test ! -s conftest.err'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; } &&
22462 { ac_try='test -s conftest$ac_exeext'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; }; then
22468 kde_cv_func_strlcat=yes
22469 kde_cv_proto_strlcat=yes
22470 else
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22474 kde_cv_proto_strlcat="strlcat unavailable"
22477 rm -f conftest.err conftest.$ac_objext \
22478 conftest$ac_exeext conftest.$ac_ext
22479 LIBS=$kde_safe_libs
22480 ac_ext=c
22481 ac_cpp='$CPP $CPPFLAGS'
22482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22490 echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
22491 echo "${ECHO_T}$kde_cv_proto_strlcat" >&6
22493 if test "x$kde_cv_func_strlcat" = xyes; then
22495 cat >>confdefs.h <<\_ACEOF
22496 #define HAVE_STRLCAT 1
22497 _ACEOF
22501 if test "x$kde_cv_proto_strlcat" = xno; then
22503 cat >>confdefs.h <<\_ACEOF
22504 #define HAVE_STRLCAT_PROTO 1
22505 _ACEOF
22515 echo "$as_me:$LINENO: checking for strlcpy" >&5
22516 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
22517 if test "${kde_cv_func_strlcpy+set}" = set; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22523 ac_ext=cc
22524 ac_cpp='$CXXCPP $CPPFLAGS'
22525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22529 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22532 save_CXXFLAGS="$CXXFLAGS"
22533 kde_safe_LIBS="$LIBS"
22534 LIBS="$LIBS $X_EXTRA_LIBS"
22535 if test "$GXX" = "yes"; then
22536 CXXFLAGS="$CXXFLAGS -pedantic-errors"
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h. */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22546 #include <string.h>
22550 main ()
22553 char buf[20];
22554 strlcpy(buf, "KDE function test", sizeof(buf));
22558 return 0;
22560 _ACEOF
22561 rm -f conftest.$ac_objext
22562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22563 (eval $ac_compile) 2>conftest.er1
22564 ac_status=$?
22565 grep -v '^ *+' conftest.er1 >conftest.err
22566 rm -f conftest.er1
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } &&
22570 { ac_try='test -z "$ac_cxx_werror_flag"
22571 || test ! -s conftest.err'
22572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); }; } &&
22577 { ac_try='test -s conftest.$ac_objext'
22578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579 (eval $ac_try) 2>&5
22580 ac_status=$?
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 kde_cv_func_strlcpy=yes
22584 else
22585 echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22588 kde_cv_func_strlcpy=no
22590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22591 CXXFLAGS="$save_CXXFLAGS"
22592 LIBS="$kde_safe_LIBS"
22593 ac_ext=c
22594 ac_cpp='$CPP $CPPFLAGS'
22595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22603 echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
22604 echo "${ECHO_T}$kde_cv_func_strlcpy" >&6
22606 echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
22607 echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6
22608 if test "${kde_cv_proto_strlcpy+set}" = set; then
22609 echo $ECHO_N "(cached) $ECHO_C" >&6
22610 else
22612 if test "x$kde_cv_func_strlcpy" = xyes; then
22613 kde_cv_proto_strlcpy=no
22614 else
22615 case "strlcpy" in
22616 setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
22617 kde_cv_proto_strlcpy="yes - in libkdefakes"
22620 kde_cv_proto_strlcpy=unknown
22622 esac
22625 if test "x$kde_cv_proto_strlcpy" = xunknown; then
22629 ac_ext=cc
22630 ac_cpp='$CXXCPP $CPPFLAGS'
22631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22635 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22638 kde_safe_libs=$LIBS
22639 LIBS="$LIBS $X_EXTRA_LIBS"
22640 cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h. */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22648 #include <string.h>
22651 extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
22654 main ()
22657 char buf[20];
22658 strlcpy(buf, "KDE function test", sizeof(buf));
22662 return 0;
22664 _ACEOF
22665 rm -f conftest.$ac_objext conftest$ac_exeext
22666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22667 (eval $ac_link) 2>conftest.er1
22668 ac_status=$?
22669 grep -v '^ *+' conftest.er1 >conftest.err
22670 rm -f conftest.er1
22671 cat conftest.err >&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); } &&
22674 { ac_try='test -z "$ac_cxx_werror_flag"
22675 || test ! -s conftest.err'
22676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22678 ac_status=$?
22679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680 (exit $ac_status); }; } &&
22681 { ac_try='test -s conftest$ac_exeext'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22684 ac_status=$?
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 kde_cv_func_strlcpy=yes
22688 kde_cv_proto_strlcpy=yes
22689 else
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22693 kde_cv_proto_strlcpy="strlcpy unavailable"
22696 rm -f conftest.err conftest.$ac_objext \
22697 conftest$ac_exeext conftest.$ac_ext
22698 LIBS=$kde_safe_libs
22699 ac_ext=c
22700 ac_cpp='$CPP $CPPFLAGS'
22701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22709 echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
22710 echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6
22712 if test "x$kde_cv_func_strlcpy" = xyes; then
22714 cat >>confdefs.h <<\_ACEOF
22715 #define HAVE_STRLCPY 1
22716 _ACEOF
22720 if test "x$kde_cv_proto_strlcpy" = xno; then
22722 cat >>confdefs.h <<\_ACEOF
22723 #define HAVE_STRLCPY_PROTO 1
22724 _ACEOF
22733 echo "$as_me:$LINENO: checking for main in -lutil" >&5
22734 echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
22735 if test "${ac_cv_lib_util_main+set}" = set; then
22736 echo $ECHO_N "(cached) $ECHO_C" >&6
22737 else
22738 ac_check_lib_save_LIBS=$LIBS
22739 LIBS="-lutil $LIBS"
22740 cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h. */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22749 main ()
22751 main ();
22753 return 0;
22755 _ACEOF
22756 rm -f conftest.$ac_objext conftest$ac_exeext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22758 (eval $ac_link) 2>conftest.er1
22759 ac_status=$?
22760 grep -v '^ *+' conftest.er1 >conftest.err
22761 rm -f conftest.er1
22762 cat conftest.err >&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); } &&
22765 { ac_try='test -z "$ac_c_werror_flag"
22766 || test ! -s conftest.err'
22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768 (eval $ac_try) 2>&5
22769 ac_status=$?
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; } &&
22772 { ac_try='test -s conftest$ac_exeext'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }; then
22778 ac_cv_lib_util_main=yes
22779 else
22780 echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 ac_cv_lib_util_main=no
22785 rm -f conftest.err conftest.$ac_objext \
22786 conftest$ac_exeext conftest.$ac_ext
22787 LIBS=$ac_check_lib_save_LIBS
22789 echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
22790 echo "${ECHO_T}$ac_cv_lib_util_main" >&6
22791 if test $ac_cv_lib_util_main = yes; then
22792 LIBUTIL="-lutil"
22795 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
22796 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
22797 if test "${ac_cv_lib_compat_main+set}" = set; then
22798 echo $ECHO_N "(cached) $ECHO_C" >&6
22799 else
22800 ac_check_lib_save_LIBS=$LIBS
22801 LIBS="-lcompat $LIBS"
22802 cat >conftest.$ac_ext <<_ACEOF
22803 /* confdefs.h. */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22811 main ()
22813 main ();
22815 return 0;
22817 _ACEOF
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22820 (eval $ac_link) 2>conftest.er1
22821 ac_status=$?
22822 grep -v '^ *+' conftest.er1 >conftest.err
22823 rm -f conftest.er1
22824 cat conftest.err >&5
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } &&
22827 { ac_try='test -z "$ac_c_werror_flag"
22828 || test ! -s conftest.err'
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; } &&
22834 { ac_try='test -s conftest$ac_exeext'
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22837 ac_status=$?
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 ac_cv_lib_compat_main=yes
22841 else
22842 echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22845 ac_cv_lib_compat_main=no
22847 rm -f conftest.err conftest.$ac_objext \
22848 conftest$ac_exeext conftest.$ac_ext
22849 LIBS=$ac_check_lib_save_LIBS
22851 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
22852 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
22853 if test $ac_cv_lib_compat_main = yes; then
22854 LIBCOMPAT="-lcompat"
22857 kde_have_crypt=
22858 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22859 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22860 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863 ac_check_lib_save_LIBS=$LIBS
22864 LIBS="-lcrypt $LIBS"
22865 cat >conftest.$ac_ext <<_ACEOF
22866 /* confdefs.h. */
22867 _ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22872 /* Override any gcc2 internal prototype to avoid an error. */
22873 #ifdef __cplusplus
22874 extern "C"
22875 #endif
22876 /* We use char because int might match the return type of a gcc2
22877 builtin and then its argument prototype would still apply. */
22878 char crypt ();
22880 main ()
22882 crypt ();
22884 return 0;
22886 _ACEOF
22887 rm -f conftest.$ac_objext conftest$ac_exeext
22888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22889 (eval $ac_link) 2>conftest.er1
22890 ac_status=$?
22891 grep -v '^ *+' conftest.er1 >conftest.err
22892 rm -f conftest.er1
22893 cat conftest.err >&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } &&
22896 { ac_try='test -z "$ac_c_werror_flag"
22897 || test ! -s conftest.err'
22898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899 (eval $ac_try) 2>&5
22900 ac_status=$?
22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902 (exit $ac_status); }; } &&
22903 { ac_try='test -s conftest$ac_exeext'
22904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905 (eval $ac_try) 2>&5
22906 ac_status=$?
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }; }; then
22909 ac_cv_lib_crypt_crypt=yes
22910 else
22911 echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22914 ac_cv_lib_crypt_crypt=no
22916 rm -f conftest.err conftest.$ac_objext \
22917 conftest$ac_exeext conftest.$ac_ext
22918 LIBS=$ac_check_lib_save_LIBS
22920 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22921 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22922 if test $ac_cv_lib_crypt_crypt = yes; then
22923 LIBCRYPT="-lcrypt"; kde_have_crypt=yes
22924 else
22925 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
22926 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
22927 if test "${ac_cv_lib_c_crypt+set}" = set; then
22928 echo $ECHO_N "(cached) $ECHO_C" >&6
22929 else
22930 ac_check_lib_save_LIBS=$LIBS
22931 LIBS="-lc $LIBS"
22932 cat >conftest.$ac_ext <<_ACEOF
22933 /* confdefs.h. */
22934 _ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h. */
22939 /* Override any gcc2 internal prototype to avoid an error. */
22940 #ifdef __cplusplus
22941 extern "C"
22942 #endif
22943 /* We use char because int might match the return type of a gcc2
22944 builtin and then its argument prototype would still apply. */
22945 char crypt ();
22947 main ()
22949 crypt ();
22951 return 0;
22953 _ACEOF
22954 rm -f conftest.$ac_objext conftest$ac_exeext
22955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22956 (eval $ac_link) 2>conftest.er1
22957 ac_status=$?
22958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } &&
22963 { ac_try='test -z "$ac_c_werror_flag"
22964 || test ! -s conftest.err'
22965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); }; } &&
22970 { ac_try='test -s conftest$ac_exeext'
22971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; }; then
22976 ac_cv_lib_c_crypt=yes
22977 else
22978 echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22981 ac_cv_lib_c_crypt=no
22983 rm -f conftest.err conftest.$ac_objext \
22984 conftest$ac_exeext conftest.$ac_ext
22985 LIBS=$ac_check_lib_save_LIBS
22987 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
22988 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
22989 if test $ac_cv_lib_c_crypt = yes; then
22990 kde_have_crypt=yes
22991 else
22993 { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
22994 You should install libcrypt from another source or configure with PAM
22995 support" >&5
22996 echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
22997 You should install libcrypt from another source or configure with PAM
22998 support" >&2;}
22999 kde_have_crypt=no
23006 if test $kde_have_crypt = yes; then
23008 cat >>confdefs.h <<_ACEOF
23009 #define HAVE_CRYPT 1
23010 _ACEOF
23014 echo "$as_me:$LINENO: checking for socklen_t" >&5
23015 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23016 if test "${kde_cv_socklen_t+set}" = set; then
23017 echo $ECHO_N "(cached) $ECHO_C" >&6
23018 else
23020 ac_ext=cc
23021 ac_cpp='$CXXCPP $CPPFLAGS'
23022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23026 kde_cv_socklen_t=no
23027 cat >conftest.$ac_ext <<_ACEOF
23028 /* confdefs.h. */
23029 _ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h. */
23034 #include <sys/types.h>
23035 #include <sys/socket.h>
23038 main ()
23041 socklen_t len;
23042 getpeername(0,0,&len);
23045 return 0;
23047 _ACEOF
23048 rm -f conftest.$ac_objext
23049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23050 (eval $ac_compile) 2>conftest.er1
23051 ac_status=$?
23052 grep -v '^ *+' conftest.er1 >conftest.err
23053 rm -f conftest.er1
23054 cat conftest.err >&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } &&
23057 { ac_try='test -z "$ac_cxx_werror_flag"
23058 || test ! -s conftest.err'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; } &&
23064 { ac_try='test -s conftest.$ac_objext'
23065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23067 ac_status=$?
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; }; then
23071 kde_cv_socklen_t=yes
23072 kde_cv_socklen_t_equiv=socklen_t
23074 else
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23080 ac_ext=c
23081 ac_cpp='$CPP $CPPFLAGS'
23082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23089 echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
23090 echo "${ECHO_T}$kde_cv_socklen_t" >&6
23091 if test $kde_cv_socklen_t = no; then
23092 echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
23093 echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6
23094 if test "${kde_cv_socklen_t_equiv+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23096 else
23098 kde_cv_socklen_t_equiv=int
23099 ac_ext=cc
23100 ac_cpp='$CXXCPP $CPPFLAGS'
23101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23105 for t in int size_t unsigned long "unsigned long"; do
23106 cat >conftest.$ac_ext <<_ACEOF
23107 /* confdefs.h. */
23108 _ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23113 #include <sys/types.h>
23114 #include <sys/socket.h>
23117 main ()
23120 $t len;
23121 getpeername(0,0,&len);
23124 return 0;
23126 _ACEOF
23127 rm -f conftest.$ac_objext
23128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23129 (eval $ac_compile) 2>conftest.er1
23130 ac_status=$?
23131 grep -v '^ *+' conftest.er1 >conftest.err
23132 rm -f conftest.er1
23133 cat conftest.err >&5
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); } &&
23136 { ac_try='test -z "$ac_cxx_werror_flag"
23137 || test ! -s conftest.err'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23140 ac_status=$?
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; } &&
23143 { ac_try='test -s conftest.$ac_objext'
23144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23145 (eval $ac_try) 2>&5
23146 ac_status=$?
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); }; }; then
23150 kde_cv_socklen_t_equiv="$t"
23151 break
23153 else
23154 echo "$as_me: failed program was:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23159 done
23160 ac_ext=c
23161 ac_cpp='$CPP $CPPFLAGS'
23162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23169 echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
23170 echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6
23173 cat >>confdefs.h <<_ACEOF
23174 #define kde_socklen_t $kde_cv_socklen_t_equiv
23175 _ACEOF
23178 cat >>confdefs.h <<_ACEOF
23179 #define ksize_t $kde_cv_socklen_t_equiv
23180 _ACEOF
23183 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23184 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23185 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188 ac_check_lib_save_LIBS=$LIBS
23189 LIBS="-ldnet $LIBS"
23190 cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h. */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23197 /* Override any gcc2 internal prototype to avoid an error. */
23198 #ifdef __cplusplus
23199 extern "C"
23200 #endif
23201 /* We use char because int might match the return type of a gcc2
23202 builtin and then its argument prototype would still apply. */
23203 char dnet_ntoa ();
23205 main ()
23207 dnet_ntoa ();
23209 return 0;
23211 _ACEOF
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23214 (eval $ac_link) 2>conftest.er1
23215 ac_status=$?
23216 grep -v '^ *+' conftest.er1 >conftest.err
23217 rm -f conftest.er1
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } &&
23221 { ac_try='test -z "$ac_c_werror_flag"
23222 || test ! -s conftest.err'
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; } &&
23228 { ac_try='test -s conftest$ac_exeext'
23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23231 ac_status=$?
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); }; }; then
23234 ac_cv_lib_dnet_dnet_ntoa=yes
23235 else
23236 echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23239 ac_cv_lib_dnet_dnet_ntoa=no
23241 rm -f conftest.err conftest.$ac_objext \
23242 conftest$ac_exeext conftest.$ac_ext
23243 LIBS=$ac_check_lib_save_LIBS
23245 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23246 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23247 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23248 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23251 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23252 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23253 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23254 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23255 echo $ECHO_N "(cached) $ECHO_C" >&6
23256 else
23257 ac_check_lib_save_LIBS=$LIBS
23258 LIBS="-ldnet_stub $LIBS"
23259 cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h. */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23266 /* Override any gcc2 internal prototype to avoid an error. */
23267 #ifdef __cplusplus
23268 extern "C"
23269 #endif
23270 /* We use char because int might match the return type of a gcc2
23271 builtin and then its argument prototype would still apply. */
23272 char dnet_ntoa ();
23274 main ()
23276 dnet_ntoa ();
23278 return 0;
23280 _ACEOF
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23283 (eval $ac_link) 2>conftest.er1
23284 ac_status=$?
23285 grep -v '^ *+' conftest.er1 >conftest.err
23286 rm -f conftest.er1
23287 cat conftest.err >&5
23288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289 (exit $ac_status); } &&
23290 { ac_try='test -z "$ac_c_werror_flag"
23291 || test ! -s conftest.err'
23292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23293 (eval $ac_try) 2>&5
23294 ac_status=$?
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; } &&
23297 { ac_try='test -s conftest$ac_exeext'
23298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23300 ac_status=$?
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; }; then
23303 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23304 else
23305 echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 ac_cv_lib_dnet_stub_dnet_ntoa=no
23310 rm -f conftest.err conftest.$ac_objext \
23311 conftest$ac_exeext conftest.$ac_ext
23312 LIBS=$ac_check_lib_save_LIBS
23314 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23315 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23316 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23317 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23321 echo "$as_me:$LINENO: checking for inet_ntoa" >&5
23322 echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6
23323 if test "${ac_cv_func_inet_ntoa+set}" = set; then
23324 echo $ECHO_N "(cached) $ECHO_C" >&6
23325 else
23326 cat >conftest.$ac_ext <<_ACEOF
23327 /* confdefs.h. */
23328 _ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 /* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
23333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23334 #define inet_ntoa innocuous_inet_ntoa
23336 /* System header to define __stub macros and hopefully few prototypes,
23337 which can conflict with char inet_ntoa (); below.
23338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23339 <limits.h> exists even on freestanding compilers. */
23341 #ifdef __STDC__
23342 # include <limits.h>
23343 #else
23344 # include <assert.h>
23345 #endif
23347 #undef inet_ntoa
23349 /* Override any gcc2 internal prototype to avoid an error. */
23350 #ifdef __cplusplus
23351 extern "C"
23353 #endif
23354 /* We use char because int might match the return type of a gcc2
23355 builtin and then its argument prototype would still apply. */
23356 char inet_ntoa ();
23357 /* The GNU C library defines this for functions which it implements
23358 to always fail with ENOSYS. Some functions are actually named
23359 something starting with __ and the normal name is an alias. */
23360 #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
23361 choke me
23362 #else
23363 char (*f) () = inet_ntoa;
23364 #endif
23365 #ifdef __cplusplus
23367 #endif
23370 main ()
23372 return f != inet_ntoa;
23374 return 0;
23376 _ACEOF
23377 rm -f conftest.$ac_objext conftest$ac_exeext
23378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23379 (eval $ac_link) 2>conftest.er1
23380 ac_status=$?
23381 grep -v '^ *+' conftest.er1 >conftest.err
23382 rm -f conftest.er1
23383 cat conftest.err >&5
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); } &&
23386 { ac_try='test -z "$ac_c_werror_flag"
23387 || test ! -s conftest.err'
23388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389 (eval $ac_try) 2>&5
23390 ac_status=$?
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; } &&
23393 { ac_try='test -s conftest$ac_exeext'
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; }; then
23399 ac_cv_func_inet_ntoa=yes
23400 else
23401 echo "$as_me: failed program was:" >&5
23402 sed 's/^/| /' conftest.$ac_ext >&5
23404 ac_cv_func_inet_ntoa=no
23406 rm -f conftest.err conftest.$ac_objext \
23407 conftest$ac_exeext conftest.$ac_ext
23409 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
23410 echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6
23412 if test $ac_cv_func_inet_ntoa = no; then
23413 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
23414 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
23415 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23417 else
23418 ac_check_lib_save_LIBS=$LIBS
23419 LIBS="-lnsl $LIBS"
23420 cat >conftest.$ac_ext <<_ACEOF
23421 /* confdefs.h. */
23422 _ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h. */
23427 /* Override any gcc2 internal prototype to avoid an error. */
23428 #ifdef __cplusplus
23429 extern "C"
23430 #endif
23431 /* We use char because int might match the return type of a gcc2
23432 builtin and then its argument prototype would still apply. */
23433 char inet_ntoa ();
23435 main ()
23437 inet_ntoa ();
23439 return 0;
23441 _ACEOF
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23444 (eval $ac_link) 2>conftest.er1
23445 ac_status=$?
23446 grep -v '^ *+' conftest.er1 >conftest.err
23447 rm -f conftest.er1
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
23451 { ac_try='test -z "$ac_c_werror_flag"
23452 || test ! -s conftest.err'
23453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23454 (eval $ac_try) 2>&5
23455 ac_status=$?
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); }; } &&
23458 { ac_try='test -s conftest$ac_exeext'
23459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460 (eval $ac_try) 2>&5
23461 ac_status=$?
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 ac_cv_lib_nsl_inet_ntoa=yes
23465 else
23466 echo "$as_me: failed program was:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23469 ac_cv_lib_nsl_inet_ntoa=no
23471 rm -f conftest.err conftest.$ac_objext \
23472 conftest$ac_exeext conftest.$ac_ext
23473 LIBS=$ac_check_lib_save_LIBS
23475 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
23476 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
23477 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
23478 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23482 echo "$as_me:$LINENO: checking for connect" >&5
23483 echo $ECHO_N "checking for connect... $ECHO_C" >&6
23484 if test "${ac_cv_func_connect+set}" = set; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23486 else
23487 cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h. */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23493 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23495 #define connect innocuous_connect
23497 /* System header to define __stub macros and hopefully few prototypes,
23498 which can conflict with char connect (); below.
23499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23500 <limits.h> exists even on freestanding compilers. */
23502 #ifdef __STDC__
23503 # include <limits.h>
23504 #else
23505 # include <assert.h>
23506 #endif
23508 #undef connect
23510 /* Override any gcc2 internal prototype to avoid an error. */
23511 #ifdef __cplusplus
23512 extern "C"
23514 #endif
23515 /* We use char because int might match the return type of a gcc2
23516 builtin and then its argument prototype would still apply. */
23517 char connect ();
23518 /* The GNU C library defines this for functions which it implements
23519 to always fail with ENOSYS. Some functions are actually named
23520 something starting with __ and the normal name is an alias. */
23521 #if defined (__stub_connect) || defined (__stub___connect)
23522 choke me
23523 #else
23524 char (*f) () = connect;
23525 #endif
23526 #ifdef __cplusplus
23528 #endif
23531 main ()
23533 return f != connect;
23535 return 0;
23537 _ACEOF
23538 rm -f conftest.$ac_objext conftest$ac_exeext
23539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23540 (eval $ac_link) 2>conftest.er1
23541 ac_status=$?
23542 grep -v '^ *+' conftest.er1 >conftest.err
23543 rm -f conftest.er1
23544 cat conftest.err >&5
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); } &&
23547 { ac_try='test -z "$ac_c_werror_flag"
23548 || test ! -s conftest.err'
23549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23550 (eval $ac_try) 2>&5
23551 ac_status=$?
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); }; } &&
23554 { ac_try='test -s conftest$ac_exeext'
23555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556 (eval $ac_try) 2>&5
23557 ac_status=$?
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); }; }; then
23560 ac_cv_func_connect=yes
23561 else
23562 echo "$as_me: failed program was:" >&5
23563 sed 's/^/| /' conftest.$ac_ext >&5
23565 ac_cv_func_connect=no
23567 rm -f conftest.err conftest.$ac_objext \
23568 conftest$ac_exeext conftest.$ac_ext
23570 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23571 echo "${ECHO_T}$ac_cv_func_connect" >&6
23573 if test $ac_cv_func_connect = no; then
23574 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23575 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23576 if test "${ac_cv_lib_socket_connect+set}" = set; then
23577 echo $ECHO_N "(cached) $ECHO_C" >&6
23578 else
23579 ac_check_lib_save_LIBS=$LIBS
23580 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23581 cat >conftest.$ac_ext <<_ACEOF
23582 /* confdefs.h. */
23583 _ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23588 /* Override any gcc2 internal prototype to avoid an error. */
23589 #ifdef __cplusplus
23590 extern "C"
23591 #endif
23592 /* We use char because int might match the return type of a gcc2
23593 builtin and then its argument prototype would still apply. */
23594 char connect ();
23596 main ()
23598 connect ();
23600 return 0;
23602 _ACEOF
23603 rm -f conftest.$ac_objext conftest$ac_exeext
23604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23605 (eval $ac_link) 2>conftest.er1
23606 ac_status=$?
23607 grep -v '^ *+' conftest.er1 >conftest.err
23608 rm -f conftest.er1
23609 cat conftest.err >&5
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); } &&
23612 { ac_try='test -z "$ac_c_werror_flag"
23613 || test ! -s conftest.err'
23614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615 (eval $ac_try) 2>&5
23616 ac_status=$?
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; } &&
23619 { ac_try='test -s conftest$ac_exeext'
23620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23621 (eval $ac_try) 2>&5
23622 ac_status=$?
23623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624 (exit $ac_status); }; }; then
23625 ac_cv_lib_socket_connect=yes
23626 else
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23630 ac_cv_lib_socket_connect=no
23632 rm -f conftest.err conftest.$ac_objext \
23633 conftest$ac_exeext conftest.$ac_ext
23634 LIBS=$ac_check_lib_save_LIBS
23636 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23637 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23638 if test $ac_cv_lib_socket_connect = yes; then
23639 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23644 echo "$as_me:$LINENO: checking for remove" >&5
23645 echo $ECHO_N "checking for remove... $ECHO_C" >&6
23646 if test "${ac_cv_func_remove+set}" = set; then
23647 echo $ECHO_N "(cached) $ECHO_C" >&6
23648 else
23649 cat >conftest.$ac_ext <<_ACEOF
23650 /* confdefs.h. */
23651 _ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h. */
23655 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23657 #define remove innocuous_remove
23659 /* System header to define __stub macros and hopefully few prototypes,
23660 which can conflict with char remove (); below.
23661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23662 <limits.h> exists even on freestanding compilers. */
23664 #ifdef __STDC__
23665 # include <limits.h>
23666 #else
23667 # include <assert.h>
23668 #endif
23670 #undef remove
23672 /* Override any gcc2 internal prototype to avoid an error. */
23673 #ifdef __cplusplus
23674 extern "C"
23676 #endif
23677 /* We use char because int might match the return type of a gcc2
23678 builtin and then its argument prototype would still apply. */
23679 char remove ();
23680 /* The GNU C library defines this for functions which it implements
23681 to always fail with ENOSYS. Some functions are actually named
23682 something starting with __ and the normal name is an alias. */
23683 #if defined (__stub_remove) || defined (__stub___remove)
23684 choke me
23685 #else
23686 char (*f) () = remove;
23687 #endif
23688 #ifdef __cplusplus
23690 #endif
23693 main ()
23695 return f != remove;
23697 return 0;
23699 _ACEOF
23700 rm -f conftest.$ac_objext conftest$ac_exeext
23701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23702 (eval $ac_link) 2>conftest.er1
23703 ac_status=$?
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } &&
23709 { ac_try='test -z "$ac_c_werror_flag"
23710 || test ! -s conftest.err'
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23713 ac_status=$?
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; } &&
23716 { ac_try='test -s conftest$ac_exeext'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23719 ac_status=$?
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; }; then
23722 ac_cv_func_remove=yes
23723 else
23724 echo "$as_me: failed program was:" >&5
23725 sed 's/^/| /' conftest.$ac_ext >&5
23727 ac_cv_func_remove=no
23729 rm -f conftest.err conftest.$ac_objext \
23730 conftest$ac_exeext conftest.$ac_ext
23732 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23733 echo "${ECHO_T}$ac_cv_func_remove" >&6
23735 if test $ac_cv_func_remove = no; then
23736 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23737 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23738 if test "${ac_cv_lib_posix_remove+set}" = set; then
23739 echo $ECHO_N "(cached) $ECHO_C" >&6
23740 else
23741 ac_check_lib_save_LIBS=$LIBS
23742 LIBS="-lposix $LIBS"
23743 cat >conftest.$ac_ext <<_ACEOF
23744 /* confdefs.h. */
23745 _ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h. */
23750 /* Override any gcc2 internal prototype to avoid an error. */
23751 #ifdef __cplusplus
23752 extern "C"
23753 #endif
23754 /* We use char because int might match the return type of a gcc2
23755 builtin and then its argument prototype would still apply. */
23756 char remove ();
23758 main ()
23760 remove ();
23762 return 0;
23764 _ACEOF
23765 rm -f conftest.$ac_objext conftest$ac_exeext
23766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23767 (eval $ac_link) 2>conftest.er1
23768 ac_status=$?
23769 grep -v '^ *+' conftest.er1 >conftest.err
23770 rm -f conftest.er1
23771 cat conftest.err >&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } &&
23774 { ac_try='test -z "$ac_c_werror_flag"
23775 || test ! -s conftest.err'
23776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23777 (eval $ac_try) 2>&5
23778 ac_status=$?
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; } &&
23781 { ac_try='test -s conftest$ac_exeext'
23782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23783 (eval $ac_try) 2>&5
23784 ac_status=$?
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); }; }; then
23787 ac_cv_lib_posix_remove=yes
23788 else
23789 echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23792 ac_cv_lib_posix_remove=no
23794 rm -f conftest.err conftest.$ac_objext \
23795 conftest$ac_exeext conftest.$ac_ext
23796 LIBS=$ac_check_lib_save_LIBS
23798 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23799 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23800 if test $ac_cv_lib_posix_remove = yes; then
23801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23806 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23807 echo "$as_me:$LINENO: checking for shmat" >&5
23808 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23809 if test "${ac_cv_func_shmat+set}" = set; then
23810 echo $ECHO_N "(cached) $ECHO_C" >&6
23811 else
23812 cat >conftest.$ac_ext <<_ACEOF
23813 /* confdefs.h. */
23814 _ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h. */
23818 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23820 #define shmat innocuous_shmat
23822 /* System header to define __stub macros and hopefully few prototypes,
23823 which can conflict with char shmat (); below.
23824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23825 <limits.h> exists even on freestanding compilers. */
23827 #ifdef __STDC__
23828 # include <limits.h>
23829 #else
23830 # include <assert.h>
23831 #endif
23833 #undef shmat
23835 /* Override any gcc2 internal prototype to avoid an error. */
23836 #ifdef __cplusplus
23837 extern "C"
23839 #endif
23840 /* We use char because int might match the return type of a gcc2
23841 builtin and then its argument prototype would still apply. */
23842 char shmat ();
23843 /* The GNU C library defines this for functions which it implements
23844 to always fail with ENOSYS. Some functions are actually named
23845 something starting with __ and the normal name is an alias. */
23846 #if defined (__stub_shmat) || defined (__stub___shmat)
23847 choke me
23848 #else
23849 char (*f) () = shmat;
23850 #endif
23851 #ifdef __cplusplus
23853 #endif
23856 main ()
23858 return f != shmat;
23860 return 0;
23862 _ACEOF
23863 rm -f conftest.$ac_objext conftest$ac_exeext
23864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23865 (eval $ac_link) 2>conftest.er1
23866 ac_status=$?
23867 grep -v '^ *+' conftest.er1 >conftest.err
23868 rm -f conftest.er1
23869 cat conftest.err >&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } &&
23872 { ac_try='test -z "$ac_c_werror_flag"
23873 || test ! -s conftest.err'
23874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23875 (eval $ac_try) 2>&5
23876 ac_status=$?
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); }; } &&
23879 { ac_try='test -s conftest$ac_exeext'
23880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23881 (eval $ac_try) 2>&5
23882 ac_status=$?
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); }; }; then
23885 ac_cv_func_shmat=yes
23886 else
23887 echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23890 ac_cv_func_shmat=no
23892 rm -f conftest.err conftest.$ac_objext \
23893 conftest$ac_exeext conftest.$ac_ext
23895 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23896 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23897 if test $ac_cv_func_shmat = yes; then
23899 else
23900 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23901 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23902 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23903 echo $ECHO_N "(cached) $ECHO_C" >&6
23904 else
23905 ac_check_lib_save_LIBS=$LIBS
23906 LIBS="-lipc $LIBS"
23907 cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h. */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23914 /* Override any gcc2 internal prototype to avoid an error. */
23915 #ifdef __cplusplus
23916 extern "C"
23917 #endif
23918 /* We use char because int might match the return type of a gcc2
23919 builtin and then its argument prototype would still apply. */
23920 char shmat ();
23922 main ()
23924 shmat ();
23926 return 0;
23928 _ACEOF
23929 rm -f conftest.$ac_objext conftest$ac_exeext
23930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23931 (eval $ac_link) 2>conftest.er1
23932 ac_status=$?
23933 grep -v '^ *+' conftest.er1 >conftest.err
23934 rm -f conftest.er1
23935 cat conftest.err >&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); } &&
23938 { ac_try='test -z "$ac_c_werror_flag"
23939 || test ! -s conftest.err'
23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; } &&
23945 { ac_try='test -s conftest$ac_exeext'
23946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947 (eval $ac_try) 2>&5
23948 ac_status=$?
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); }; }; then
23951 ac_cv_lib_ipc_shmat=yes
23952 else
23953 echo "$as_me: failed program was:" >&5
23954 sed 's/^/| /' conftest.$ac_ext >&5
23956 ac_cv_lib_ipc_shmat=no
23958 rm -f conftest.err conftest.$ac_objext \
23959 conftest$ac_exeext conftest.$ac_ext
23960 LIBS=$ac_check_lib_save_LIBS
23962 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23963 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23964 if test $ac_cv_lib_ipc_shmat = yes; then
23965 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23971 # more headers that need to be explicitly included on darwin
23974 for ac_header in sys/types.h stdint.h
23976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23978 echo "$as_me:$LINENO: checking for $ac_header" >&5
23979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23985 else
23986 # Is the header compilable?
23987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23989 cat >conftest.$ac_ext <<_ACEOF
23990 /* confdefs.h. */
23991 _ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23995 $ac_includes_default
23996 #include <$ac_header>
23997 _ACEOF
23998 rm -f conftest.$ac_objext
23999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24000 (eval $ac_compile) 2>conftest.er1
24001 ac_status=$?
24002 grep -v '^ *+' conftest.er1 >conftest.err
24003 rm -f conftest.er1
24004 cat conftest.err >&5
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } &&
24007 { ac_try='test -z "$ac_c_werror_flag"
24008 || test ! -s conftest.err'
24009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24010 (eval $ac_try) 2>&5
24011 ac_status=$?
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); }; } &&
24014 { ac_try='test -s conftest.$ac_objext'
24015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24016 (eval $ac_try) 2>&5
24017 ac_status=$?
24018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019 (exit $ac_status); }; }; then
24020 ac_header_compiler=yes
24021 else
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24025 ac_header_compiler=no
24027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24029 echo "${ECHO_T}$ac_header_compiler" >&6
24031 # Is the header present?
24032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24034 cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h. */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24040 #include <$ac_header>
24041 _ACEOF
24042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24044 ac_status=$?
24045 grep -v '^ *+' conftest.er1 >conftest.err
24046 rm -f conftest.er1
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } >/dev/null; then
24050 if test -s conftest.err; then
24051 ac_cpp_err=$ac_c_preproc_warn_flag
24052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24053 else
24054 ac_cpp_err=
24056 else
24057 ac_cpp_err=yes
24059 if test -z "$ac_cpp_err"; then
24060 ac_header_preproc=yes
24061 else
24062 echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24065 ac_header_preproc=no
24067 rm -f conftest.err conftest.$ac_ext
24068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24069 echo "${ECHO_T}$ac_header_preproc" >&6
24071 # So? What about this header?
24072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24073 yes:no: )
24074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24078 ac_header_preproc=yes
24080 no:yes:* )
24081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24094 cat <<\_ASBOX
24095 ## ------------------------------------------ ##
24096 ## Report this to the AC_PACKAGE_NAME lists. ##
24097 ## ------------------------------------------ ##
24098 _ASBOX
24100 sed "s/^/$as_me: WARNING: /" >&2
24102 esac
24103 echo "$as_me:$LINENO: checking for $ac_header" >&5
24104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24106 echo $ECHO_N "(cached) $ECHO_C" >&6
24107 else
24108 eval "$as_ac_Header=\$ac_header_preproc"
24110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24115 cat >>confdefs.h <<_ACEOF
24116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24117 _ACEOF
24121 done
24124 # sys/bitypes.h is needed for uint32_t and friends on Tru64
24126 for ac_header in sys/bitypes.h
24128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24130 echo "$as_me:$LINENO: checking for $ac_header" >&5
24131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24137 else
24138 # Is the header compilable?
24139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24141 cat >conftest.$ac_ext <<_ACEOF
24142 /* confdefs.h. */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24147 $ac_includes_default
24148 #include <$ac_header>
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24152 (eval $ac_compile) 2>conftest.er1
24153 ac_status=$?
24154 grep -v '^ *+' conftest.er1 >conftest.err
24155 rm -f conftest.er1
24156 cat conftest.err >&5
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); } &&
24159 { ac_try='test -z "$ac_c_werror_flag"
24160 || test ! -s conftest.err'
24161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162 (eval $ac_try) 2>&5
24163 ac_status=$?
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; } &&
24166 { ac_try='test -s conftest.$ac_objext'
24167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171 (exit $ac_status); }; }; then
24172 ac_header_compiler=yes
24173 else
24174 echo "$as_me: failed program was:" >&5
24175 sed 's/^/| /' conftest.$ac_ext >&5
24177 ac_header_compiler=no
24179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24181 echo "${ECHO_T}$ac_header_compiler" >&6
24183 # Is the header present?
24184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24186 cat >conftest.$ac_ext <<_ACEOF
24187 /* confdefs.h. */
24188 _ACEOF
24189 cat confdefs.h >>conftest.$ac_ext
24190 cat >>conftest.$ac_ext <<_ACEOF
24191 /* end confdefs.h. */
24192 #include <$ac_header>
24193 _ACEOF
24194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24196 ac_status=$?
24197 grep -v '^ *+' conftest.er1 >conftest.err
24198 rm -f conftest.er1
24199 cat conftest.err >&5
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); } >/dev/null; then
24202 if test -s conftest.err; then
24203 ac_cpp_err=$ac_c_preproc_warn_flag
24204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24205 else
24206 ac_cpp_err=
24208 else
24209 ac_cpp_err=yes
24211 if test -z "$ac_cpp_err"; then
24212 ac_header_preproc=yes
24213 else
24214 echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24217 ac_header_preproc=no
24219 rm -f conftest.err conftest.$ac_ext
24220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24221 echo "${ECHO_T}$ac_header_preproc" >&6
24223 # So? What about this header?
24224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24225 yes:no: )
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24230 ac_header_preproc=yes
24232 no:yes:* )
24233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24246 cat <<\_ASBOX
24247 ## ------------------------------------------ ##
24248 ## Report this to the AC_PACKAGE_NAME lists. ##
24249 ## ------------------------------------------ ##
24250 _ASBOX
24252 sed "s/^/$as_me: WARNING: /" >&2
24254 esac
24255 echo "$as_me:$LINENO: checking for $ac_header" >&5
24256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24258 echo $ECHO_N "(cached) $ECHO_C" >&6
24259 else
24260 eval "$as_ac_Header=\$ac_header_preproc"
24262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24267 cat >>confdefs.h <<_ACEOF
24268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24269 _ACEOF
24273 done
24276 # darwin requires a poll emulation library
24277 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
24278 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
24279 if test "${ac_cv_lib_poll_poll+set}" = set; then
24280 echo $ECHO_N "(cached) $ECHO_C" >&6
24281 else
24282 ac_check_lib_save_LIBS=$LIBS
24283 LIBS="-lpoll $LIBS"
24284 cat >conftest.$ac_ext <<_ACEOF
24285 /* confdefs.h. */
24286 _ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h. */
24291 /* Override any gcc2 internal prototype to avoid an error. */
24292 #ifdef __cplusplus
24293 extern "C"
24294 #endif
24295 /* We use char because int might match the return type of a gcc2
24296 builtin and then its argument prototype would still apply. */
24297 char poll ();
24299 main ()
24301 poll ();
24303 return 0;
24305 _ACEOF
24306 rm -f conftest.$ac_objext conftest$ac_exeext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24308 (eval $ac_link) 2>conftest.er1
24309 ac_status=$?
24310 grep -v '^ *+' conftest.er1 >conftest.err
24311 rm -f conftest.er1
24312 cat conftest.err >&5
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); } &&
24315 { ac_try='test -z "$ac_c_werror_flag"
24316 || test ! -s conftest.err'
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24319 ac_status=$?
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; } &&
24322 { ac_try='test -s conftest$ac_exeext'
24323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324 (eval $ac_try) 2>&5
24325 ac_status=$?
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; }; then
24328 ac_cv_lib_poll_poll=yes
24329 else
24330 echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24333 ac_cv_lib_poll_poll=no
24335 rm -f conftest.err conftest.$ac_objext \
24336 conftest$ac_exeext conftest.$ac_ext
24337 LIBS=$ac_check_lib_save_LIBS
24339 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
24340 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
24341 if test $ac_cv_lib_poll_poll = yes; then
24342 LIB_POLL="-lpoll"
24346 # for some image handling on Mac OS X
24348 for ac_header in Carbon/Carbon.h
24350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24352 echo "$as_me:$LINENO: checking for $ac_header" >&5
24353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24355 echo $ECHO_N "(cached) $ECHO_C" >&6
24357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24359 else
24360 # Is the header compilable?
24361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24363 cat >conftest.$ac_ext <<_ACEOF
24364 /* confdefs.h. */
24365 _ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>conftest.$ac_ext <<_ACEOF
24368 /* end confdefs.h. */
24369 $ac_includes_default
24370 #include <$ac_header>
24371 _ACEOF
24372 rm -f conftest.$ac_objext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24374 (eval $ac_compile) 2>conftest.er1
24375 ac_status=$?
24376 grep -v '^ *+' conftest.er1 >conftest.err
24377 rm -f conftest.er1
24378 cat conftest.err >&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } &&
24381 { ac_try='test -z "$ac_c_werror_flag"
24382 || test ! -s conftest.err'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; } &&
24388 { ac_try='test -s conftest.$ac_objext'
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24391 ac_status=$?
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; }; then
24394 ac_header_compiler=yes
24395 else
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24399 ac_header_compiler=no
24401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24403 echo "${ECHO_T}$ac_header_compiler" >&6
24405 # Is the header present?
24406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24408 cat >conftest.$ac_ext <<_ACEOF
24409 /* confdefs.h. */
24410 _ACEOF
24411 cat confdefs.h >>conftest.$ac_ext
24412 cat >>conftest.$ac_ext <<_ACEOF
24413 /* end confdefs.h. */
24414 #include <$ac_header>
24415 _ACEOF
24416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24418 ac_status=$?
24419 grep -v '^ *+' conftest.er1 >conftest.err
24420 rm -f conftest.er1
24421 cat conftest.err >&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } >/dev/null; then
24424 if test -s conftest.err; then
24425 ac_cpp_err=$ac_c_preproc_warn_flag
24426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24427 else
24428 ac_cpp_err=
24430 else
24431 ac_cpp_err=yes
24433 if test -z "$ac_cpp_err"; then
24434 ac_header_preproc=yes
24435 else
24436 echo "$as_me: failed program was:" >&5
24437 sed 's/^/| /' conftest.$ac_ext >&5
24439 ac_header_preproc=no
24441 rm -f conftest.err conftest.$ac_ext
24442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24443 echo "${ECHO_T}$ac_header_preproc" >&6
24445 # So? What about this header?
24446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24447 yes:no: )
24448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24452 ac_header_preproc=yes
24454 no:yes:* )
24455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24468 cat <<\_ASBOX
24469 ## ------------------------------------------ ##
24470 ## Report this to the AC_PACKAGE_NAME lists. ##
24471 ## ------------------------------------------ ##
24472 _ASBOX
24474 sed "s/^/$as_me: WARNING: /" >&2
24476 esac
24477 echo "$as_me:$LINENO: checking for $ac_header" >&5
24478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24480 echo $ECHO_N "(cached) $ECHO_C" >&6
24481 else
24482 eval "$as_ac_Header=\$ac_header_preproc"
24484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24489 cat >>confdefs.h <<_ACEOF
24490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24491 _ACEOF
24495 done
24498 # CoreAudio framework
24499 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24500 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
24501 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
24502 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24503 echo $ECHO_N "(cached) $ECHO_C" >&6
24505 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
24506 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
24507 else
24508 # Is the header compilable?
24509 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
24510 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6
24511 cat >conftest.$ac_ext <<_ACEOF
24512 /* confdefs.h. */
24513 _ACEOF
24514 cat confdefs.h >>conftest.$ac_ext
24515 cat >>conftest.$ac_ext <<_ACEOF
24516 /* end confdefs.h. */
24517 $ac_includes_default
24518 #include <CoreAudio/CoreAudio.h>
24519 _ACEOF
24520 rm -f conftest.$ac_objext
24521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24522 (eval $ac_compile) 2>conftest.er1
24523 ac_status=$?
24524 grep -v '^ *+' conftest.er1 >conftest.err
24525 rm -f conftest.er1
24526 cat conftest.err >&5
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } &&
24529 { ac_try='test -z "$ac_c_werror_flag"
24530 || test ! -s conftest.err'
24531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24532 (eval $ac_try) 2>&5
24533 ac_status=$?
24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535 (exit $ac_status); }; } &&
24536 { ac_try='test -s conftest.$ac_objext'
24537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24539 ac_status=$?
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; }; then
24542 ac_header_compiler=yes
24543 else
24544 echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24547 ac_header_compiler=no
24549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24551 echo "${ECHO_T}$ac_header_compiler" >&6
24553 # Is the header present?
24554 echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
24555 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6
24556 cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h. */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24562 #include <CoreAudio/CoreAudio.h>
24563 _ACEOF
24564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24566 ac_status=$?
24567 grep -v '^ *+' conftest.er1 >conftest.err
24568 rm -f conftest.er1
24569 cat conftest.err >&5
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); } >/dev/null; then
24572 if test -s conftest.err; then
24573 ac_cpp_err=$ac_c_preproc_warn_flag
24574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24575 else
24576 ac_cpp_err=
24578 else
24579 ac_cpp_err=yes
24581 if test -z "$ac_cpp_err"; then
24582 ac_header_preproc=yes
24583 else
24584 echo "$as_me: failed program was:" >&5
24585 sed 's/^/| /' conftest.$ac_ext >&5
24587 ac_header_preproc=no
24589 rm -f conftest.err conftest.$ac_ext
24590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24591 echo "${ECHO_T}$ac_header_preproc" >&6
24593 # So? What about this header?
24594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24595 yes:no: )
24596 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24597 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24598 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
24599 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
24600 ac_header_preproc=yes
24602 no:yes:* )
24603 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
24604 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
24605 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
24606 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
24607 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
24608 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
24609 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
24610 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
24611 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
24612 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
24613 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
24614 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
24616 cat <<\_ASBOX
24617 ## ------------------------------------------ ##
24618 ## Report this to the AC_PACKAGE_NAME lists. ##
24619 ## ------------------------------------------ ##
24620 _ASBOX
24622 sed "s/^/$as_me: WARNING: /" >&2
24624 esac
24625 echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
24626 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6
24627 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24628 echo $ECHO_N "(cached) $ECHO_C" >&6
24629 else
24630 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
24632 echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
24633 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6
24636 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
24639 cat >>confdefs.h <<\_ACEOF
24640 #define HAVE_COREAUDIO 1
24641 _ACEOF
24643 FRAMEWORK_COREAUDIO="-Wl,-framework,CoreAudio"
24650 echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
24651 echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6
24652 kde_libs_safe="$LIBS"
24653 LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
24654 cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h. */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24661 #include <sys/types.h>
24662 #include <netinet/in.h>
24663 #include <arpa/nameser.h>
24664 #include <resolv.h>
24667 main ()
24670 res_init();
24673 return 0;
24675 _ACEOF
24676 rm -f conftest.$ac_objext conftest$ac_exeext
24677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24678 (eval $ac_link) 2>conftest.er1
24679 ac_status=$?
24680 grep -v '^ *+' conftest.er1 >conftest.err
24681 rm -f conftest.er1
24682 cat conftest.err >&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); } &&
24685 { ac_try='test -z "$ac_c_werror_flag"
24686 || test ! -s conftest.err'
24687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688 (eval $ac_try) 2>&5
24689 ac_status=$?
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; } &&
24692 { ac_try='test -s conftest$ac_exeext'
24693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694 (eval $ac_try) 2>&5
24695 ac_status=$?
24696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697 (exit $ac_status); }; }; then
24699 LIBRESOLV="-lresolv"
24700 echo "$as_me:$LINENO: result: yes" >&5
24701 echo "${ECHO_T}yes" >&6
24703 cat >>confdefs.h <<\_ACEOF
24704 #define HAVE_RES_INIT 1
24705 _ACEOF
24708 else
24709 echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24712 echo "$as_me:$LINENO: result: no" >&5
24713 echo "${ECHO_T}no" >&6
24716 rm -f conftest.err conftest.$ac_objext \
24717 conftest$ac_exeext conftest.$ac_ext
24718 LIBS=$kde_libs_safe
24722 echo "$as_me:$LINENO: checking for res_init" >&5
24723 echo $ECHO_N "checking for res_init... $ECHO_C" >&6
24724 if test "${kde_cv_func_res_init+set}" = set; then
24725 echo $ECHO_N "(cached) $ECHO_C" >&6
24726 else
24730 ac_ext=cc
24731 ac_cpp='$CXXCPP $CPPFLAGS'
24732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24736 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
24739 save_CXXFLAGS="$CXXFLAGS"
24740 kde_safe_LIBS="$LIBS"
24741 LIBS="$LIBS $X_EXTRA_LIBS"
24742 if test "$GXX" = "yes"; then
24743 CXXFLAGS="$CXXFLAGS -pedantic-errors"
24745 cat >conftest.$ac_ext <<_ACEOF
24746 /* confdefs.h. */
24747 _ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h. */
24753 #include <sys/types.h>
24754 #include <netinet/in.h>
24755 #include <arpa/nameser.h>
24756 #include <resolv.h>
24760 main ()
24763 res_init()
24766 return 0;
24768 _ACEOF
24769 rm -f conftest.$ac_objext
24770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24771 (eval $ac_compile) 2>conftest.er1
24772 ac_status=$?
24773 grep -v '^ *+' conftest.er1 >conftest.err
24774 rm -f conftest.er1
24775 cat conftest.err >&5
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); } &&
24778 { ac_try='test -z "$ac_cxx_werror_flag"
24779 || test ! -s conftest.err'
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; } &&
24785 { ac_try='test -s conftest.$ac_objext'
24786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24788 ac_status=$?
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; }; then
24791 kde_cv_func_res_init=yes
24792 else
24793 echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24796 kde_cv_func_res_init=no
24798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24799 CXXFLAGS="$save_CXXFLAGS"
24800 LIBS="$kde_safe_LIBS"
24801 ac_ext=c
24802 ac_cpp='$CPP $CPPFLAGS'
24803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24811 echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
24812 echo "${ECHO_T}$kde_cv_func_res_init" >&6
24814 echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
24815 echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6
24816 if test "${kde_cv_proto_res_init+set}" = set; then
24817 echo $ECHO_N "(cached) $ECHO_C" >&6
24818 else
24820 if test "x$kde_cv_func_res_init" = xyes; then
24821 kde_cv_proto_res_init=no
24822 else
24823 case "res_init" in
24824 setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
24825 kde_cv_proto_res_init="yes - in libkdefakes"
24828 kde_cv_proto_res_init=unknown
24830 esac
24833 if test "x$kde_cv_proto_res_init" = xunknown; then
24837 ac_ext=cc
24838 ac_cpp='$CXXCPP $CPPFLAGS'
24839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24843 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
24846 kde_safe_libs=$LIBS
24847 LIBS="$LIBS $X_EXTRA_LIBS"
24848 cat >conftest.$ac_ext <<_ACEOF
24849 /* confdefs.h. */
24850 _ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24856 #include <sys/types.h>
24857 #include <netinet/in.h>
24858 #include <arpa/nameser.h>
24859 #include <resolv.h>
24862 extern "C" int res_init(void);
24865 main ()
24868 res_init()
24871 return 0;
24873 _ACEOF
24874 rm -f conftest.$ac_objext conftest$ac_exeext
24875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24876 (eval $ac_link) 2>conftest.er1
24877 ac_status=$?
24878 grep -v '^ *+' conftest.er1 >conftest.err
24879 rm -f conftest.er1
24880 cat conftest.err >&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } &&
24883 { ac_try='test -z "$ac_cxx_werror_flag"
24884 || test ! -s conftest.err'
24885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886 (eval $ac_try) 2>&5
24887 ac_status=$?
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; } &&
24890 { ac_try='test -s conftest$ac_exeext'
24891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892 (eval $ac_try) 2>&5
24893 ac_status=$?
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); }; }; then
24896 kde_cv_func_res_init=yes
24897 kde_cv_proto_res_init=yes
24898 else
24899 echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24902 kde_cv_proto_res_init="res_init unavailable"
24905 rm -f conftest.err conftest.$ac_objext \
24906 conftest$ac_exeext conftest.$ac_ext
24907 LIBS=$kde_safe_libs
24908 ac_ext=c
24909 ac_cpp='$CPP $CPPFLAGS'
24910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24918 echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
24919 echo "${ECHO_T}$kde_cv_proto_res_init" >&6
24921 if test "x$kde_cv_func_res_init" = xyes; then
24923 cat >>confdefs.h <<\_ACEOF
24924 #define HAVE_RES_INIT 1
24925 _ACEOF
24929 if test "x$kde_cv_proto_res_init" = xno; then
24931 cat >>confdefs.h <<\_ACEOF
24932 #define HAVE_RES_INIT_PROTO 1
24933 _ACEOF
24943 LIBSOCKET="$X_EXTRA_LIBS"
24946 echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
24947 echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6
24948 if test "${ac_cv_lib_ucb_killpg+set}" = set; then
24949 echo $ECHO_N "(cached) $ECHO_C" >&6
24950 else
24951 ac_check_lib_save_LIBS=$LIBS
24952 LIBS="-lucb $LIBS"
24953 cat >conftest.$ac_ext <<_ACEOF
24954 /* confdefs.h. */
24955 _ACEOF
24956 cat confdefs.h >>conftest.$ac_ext
24957 cat >>conftest.$ac_ext <<_ACEOF
24958 /* end confdefs.h. */
24960 /* Override any gcc2 internal prototype to avoid an error. */
24961 #ifdef __cplusplus
24962 extern "C"
24963 #endif
24964 /* We use char because int might match the return type of a gcc2
24965 builtin and then its argument prototype would still apply. */
24966 char killpg ();
24968 main ()
24970 killpg ();
24972 return 0;
24974 _ACEOF
24975 rm -f conftest.$ac_objext conftest$ac_exeext
24976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24977 (eval $ac_link) 2>conftest.er1
24978 ac_status=$?
24979 grep -v '^ *+' conftest.er1 >conftest.err
24980 rm -f conftest.er1
24981 cat conftest.err >&5
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); } &&
24984 { ac_try='test -z "$ac_c_werror_flag"
24985 || test ! -s conftest.err'
24986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24987 (eval $ac_try) 2>&5
24988 ac_status=$?
24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); }; } &&
24991 { ac_try='test -s conftest$ac_exeext'
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; }; then
24997 ac_cv_lib_ucb_killpg=yes
24998 else
24999 echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25002 ac_cv_lib_ucb_killpg=no
25004 rm -f conftest.err conftest.$ac_objext \
25005 conftest$ac_exeext conftest.$ac_ext
25006 LIBS=$ac_check_lib_save_LIBS
25008 echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
25009 echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6
25010 if test $ac_cv_lib_ucb_killpg = yes; then
25011 LIBUCB="-lucb"
25015 case $host in *-*-lynxos* )
25016 echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
25017 echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6
25018 CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
25019 echo "$as_me:$LINENO: result: disabled" >&5
25020 echo "${ECHO_T}disabled" >&6
25021 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25022 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25023 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 else
25026 ac_check_lib_save_LIBS=$LIBS
25027 LIBS="-lbsd $LIBS"
25028 cat >conftest.$ac_ext <<_ACEOF
25029 /* confdefs.h. */
25030 _ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h. */
25035 /* Override any gcc2 internal prototype to avoid an error. */
25036 #ifdef __cplusplus
25037 extern "C"
25038 #endif
25039 /* We use char because int might match the return type of a gcc2
25040 builtin and then its argument prototype would still apply. */
25041 char gethostbyname ();
25043 main ()
25045 gethostbyname ();
25047 return 0;
25049 _ACEOF
25050 rm -f conftest.$ac_objext conftest$ac_exeext
25051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25052 (eval $ac_link) 2>conftest.er1
25053 ac_status=$?
25054 grep -v '^ *+' conftest.er1 >conftest.err
25055 rm -f conftest.er1
25056 cat conftest.err >&5
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); } &&
25059 { ac_try='test -z "$ac_c_werror_flag"
25060 || test ! -s conftest.err'
25061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25062 (eval $ac_try) 2>&5
25063 ac_status=$?
25064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065 (exit $ac_status); }; } &&
25066 { ac_try='test -s conftest$ac_exeext'
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; }; then
25072 ac_cv_lib_bsd_gethostbyname=yes
25073 else
25074 echo "$as_me: failed program was:" >&5
25075 sed 's/^/| /' conftest.$ac_ext >&5
25077 ac_cv_lib_bsd_gethostbyname=no
25079 rm -f conftest.err conftest.$ac_objext \
25080 conftest$ac_exeext conftest.$ac_ext
25081 LIBS=$ac_check_lib_save_LIBS
25083 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25084 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25085 if test $ac_cv_lib_bsd_gethostbyname = yes; then
25086 LIBSOCKET="-lbsd"
25089 esac
25091 echo "$as_me:$LINENO: checking for int" >&5
25092 echo $ECHO_N "checking for int... $ECHO_C" >&6
25093 if test "${ac_cv_type_int+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25095 else
25096 cat >conftest.$ac_ext <<_ACEOF
25097 /* confdefs.h. */
25098 _ACEOF
25099 cat confdefs.h >>conftest.$ac_ext
25100 cat >>conftest.$ac_ext <<_ACEOF
25101 /* end confdefs.h. */
25102 $ac_includes_default
25104 main ()
25106 if ((int *) 0)
25107 return 0;
25108 if (sizeof (int))
25109 return 0;
25111 return 0;
25113 _ACEOF
25114 rm -f conftest.$ac_objext
25115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25116 (eval $ac_compile) 2>conftest.er1
25117 ac_status=$?
25118 grep -v '^ *+' conftest.er1 >conftest.err
25119 rm -f conftest.er1
25120 cat conftest.err >&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); } &&
25123 { ac_try='test -z "$ac_c_werror_flag"
25124 || test ! -s conftest.err'
25125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25127 ac_status=$?
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; } &&
25130 { ac_try='test -s conftest.$ac_objext'
25131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25132 (eval $ac_try) 2>&5
25133 ac_status=$?
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); }; }; then
25136 ac_cv_type_int=yes
25137 else
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25141 ac_cv_type_int=no
25143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25145 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
25146 echo "${ECHO_T}$ac_cv_type_int" >&6
25148 echo "$as_me:$LINENO: checking size of int" >&5
25149 echo $ECHO_N "checking size of int... $ECHO_C" >&6
25150 if test "${ac_cv_sizeof_int+set}" = set; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25152 else
25153 if test "$ac_cv_type_int" = yes; then
25154 # The cast to unsigned long works around a bug in the HP C Compiler
25155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25157 # This bug is HP SR number 8606223364.
25158 if test "$cross_compiling" = yes; then
25159 # Depending upon the size, compute the lo and hi bounds.
25160 cat >conftest.$ac_ext <<_ACEOF
25161 /* confdefs.h. */
25162 _ACEOF
25163 cat confdefs.h >>conftest.$ac_ext
25164 cat >>conftest.$ac_ext <<_ACEOF
25165 /* end confdefs.h. */
25166 $ac_includes_default
25168 main ()
25170 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
25171 test_array [0] = 0
25174 return 0;
25176 _ACEOF
25177 rm -f conftest.$ac_objext
25178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25179 (eval $ac_compile) 2>conftest.er1
25180 ac_status=$?
25181 grep -v '^ *+' conftest.er1 >conftest.err
25182 rm -f conftest.er1
25183 cat conftest.err >&5
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } &&
25186 { ac_try='test -z "$ac_c_werror_flag"
25187 || test ! -s conftest.err'
25188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25189 (eval $ac_try) 2>&5
25190 ac_status=$?
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); }; } &&
25193 { ac_try='test -s conftest.$ac_objext'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; }; then
25199 ac_lo=0 ac_mid=0
25200 while :; do
25201 cat >conftest.$ac_ext <<_ACEOF
25202 /* confdefs.h. */
25203 _ACEOF
25204 cat confdefs.h >>conftest.$ac_ext
25205 cat >>conftest.$ac_ext <<_ACEOF
25206 /* end confdefs.h. */
25207 $ac_includes_default
25209 main ()
25211 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
25212 test_array [0] = 0
25215 return 0;
25217 _ACEOF
25218 rm -f conftest.$ac_objext
25219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25220 (eval $ac_compile) 2>conftest.er1
25221 ac_status=$?
25222 grep -v '^ *+' conftest.er1 >conftest.err
25223 rm -f conftest.er1
25224 cat conftest.err >&5
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } &&
25227 { ac_try='test -z "$ac_c_werror_flag"
25228 || test ! -s conftest.err'
25229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); }; } &&
25234 { ac_try='test -s conftest.$ac_objext'
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240 ac_hi=$ac_mid; break
25241 else
25242 echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25245 ac_lo=`expr $ac_mid + 1`
25246 if test $ac_lo -le $ac_mid; then
25247 ac_lo= ac_hi=
25248 break
25250 ac_mid=`expr 2 '*' $ac_mid + 1`
25252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25253 done
25254 else
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25258 cat >conftest.$ac_ext <<_ACEOF
25259 /* confdefs.h. */
25260 _ACEOF
25261 cat confdefs.h >>conftest.$ac_ext
25262 cat >>conftest.$ac_ext <<_ACEOF
25263 /* end confdefs.h. */
25264 $ac_includes_default
25266 main ()
25268 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
25269 test_array [0] = 0
25272 return 0;
25274 _ACEOF
25275 rm -f conftest.$ac_objext
25276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25277 (eval $ac_compile) 2>conftest.er1
25278 ac_status=$?
25279 grep -v '^ *+' conftest.er1 >conftest.err
25280 rm -f conftest.er1
25281 cat conftest.err >&5
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); } &&
25284 { ac_try='test -z "$ac_c_werror_flag"
25285 || test ! -s conftest.err'
25286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287 (eval $ac_try) 2>&5
25288 ac_status=$?
25289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); }; } &&
25291 { ac_try='test -s conftest.$ac_objext'
25292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25293 (eval $ac_try) 2>&5
25294 ac_status=$?
25295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296 (exit $ac_status); }; }; then
25297 ac_hi=-1 ac_mid=-1
25298 while :; do
25299 cat >conftest.$ac_ext <<_ACEOF
25300 /* confdefs.h. */
25301 _ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h. */
25305 $ac_includes_default
25307 main ()
25309 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
25310 test_array [0] = 0
25313 return 0;
25315 _ACEOF
25316 rm -f conftest.$ac_objext
25317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25318 (eval $ac_compile) 2>conftest.er1
25319 ac_status=$?
25320 grep -v '^ *+' conftest.er1 >conftest.err
25321 rm -f conftest.er1
25322 cat conftest.err >&5
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } &&
25325 { ac_try='test -z "$ac_c_werror_flag"
25326 || test ! -s conftest.err'
25327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328 (eval $ac_try) 2>&5
25329 ac_status=$?
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); }; } &&
25332 { ac_try='test -s conftest.$ac_objext'
25333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334 (eval $ac_try) 2>&5
25335 ac_status=$?
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); }; }; then
25338 ac_lo=$ac_mid; break
25339 else
25340 echo "$as_me: failed program was:" >&5
25341 sed 's/^/| /' conftest.$ac_ext >&5
25343 ac_hi=`expr '(' $ac_mid ')' - 1`
25344 if test $ac_mid -le $ac_hi; then
25345 ac_lo= ac_hi=
25346 break
25348 ac_mid=`expr 2 '*' $ac_mid`
25350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25351 done
25352 else
25353 echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25356 ac_lo= ac_hi=
25358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25361 # Binary search between lo and hi bounds.
25362 while test "x$ac_lo" != "x$ac_hi"; do
25363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25364 cat >conftest.$ac_ext <<_ACEOF
25365 /* confdefs.h. */
25366 _ACEOF
25367 cat confdefs.h >>conftest.$ac_ext
25368 cat >>conftest.$ac_ext <<_ACEOF
25369 /* end confdefs.h. */
25370 $ac_includes_default
25372 main ()
25374 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
25375 test_array [0] = 0
25378 return 0;
25380 _ACEOF
25381 rm -f conftest.$ac_objext
25382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25383 (eval $ac_compile) 2>conftest.er1
25384 ac_status=$?
25385 grep -v '^ *+' conftest.er1 >conftest.err
25386 rm -f conftest.er1
25387 cat conftest.err >&5
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); } &&
25390 { ac_try='test -z "$ac_c_werror_flag"
25391 || test ! -s conftest.err'
25392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25393 (eval $ac_try) 2>&5
25394 ac_status=$?
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); }; } &&
25397 { ac_try='test -s conftest.$ac_objext'
25398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399 (eval $ac_try) 2>&5
25400 ac_status=$?
25401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402 (exit $ac_status); }; }; then
25403 ac_hi=$ac_mid
25404 else
25405 echo "$as_me: failed program was:" >&5
25406 sed 's/^/| /' conftest.$ac_ext >&5
25408 ac_lo=`expr '(' $ac_mid ')' + 1`
25410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25411 done
25412 case $ac_lo in
25413 ?*) ac_cv_sizeof_int=$ac_lo;;
25414 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
25415 See \`config.log' for more details." >&5
25416 echo "$as_me: error: cannot compute sizeof (int), 77
25417 See \`config.log' for more details." >&2;}
25418 { (exit 1); exit 1; }; } ;;
25419 esac
25420 else
25421 if test "$cross_compiling" = yes; then
25422 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25423 See \`config.log' for more details." >&5
25424 echo "$as_me: error: cannot run test program while cross compiling
25425 See \`config.log' for more details." >&2;}
25426 { (exit 1); exit 1; }; }
25427 else
25428 cat >conftest.$ac_ext <<_ACEOF
25429 /* confdefs.h. */
25430 _ACEOF
25431 cat confdefs.h >>conftest.$ac_ext
25432 cat >>conftest.$ac_ext <<_ACEOF
25433 /* end confdefs.h. */
25434 $ac_includes_default
25435 long longval () { return (long) (sizeof (int)); }
25436 unsigned long ulongval () { return (long) (sizeof (int)); }
25437 #include <stdio.h>
25438 #include <stdlib.h>
25440 main ()
25443 FILE *f = fopen ("conftest.val", "w");
25444 if (! f)
25445 exit (1);
25446 if (((long) (sizeof (int))) < 0)
25448 long i = longval ();
25449 if (i != ((long) (sizeof (int))))
25450 exit (1);
25451 fprintf (f, "%ld\n", i);
25453 else
25455 unsigned long i = ulongval ();
25456 if (i != ((long) (sizeof (int))))
25457 exit (1);
25458 fprintf (f, "%lu\n", i);
25460 exit (ferror (f) || fclose (f) != 0);
25463 return 0;
25465 _ACEOF
25466 rm -f conftest$ac_exeext
25467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25468 (eval $ac_link) 2>&5
25469 ac_status=$?
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); }; }; then
25477 ac_cv_sizeof_int=`cat conftest.val`
25478 else
25479 echo "$as_me: program exited with status $ac_status" >&5
25480 echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25483 ( exit $ac_status )
25484 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
25485 See \`config.log' for more details." >&5
25486 echo "$as_me: error: cannot compute sizeof (int), 77
25487 See \`config.log' for more details." >&2;}
25488 { (exit 1); exit 1; }; }
25490 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25493 rm -f conftest.val
25494 else
25495 ac_cv_sizeof_int=0
25498 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25499 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
25500 cat >>confdefs.h <<_ACEOF
25501 #define SIZEOF_INT $ac_cv_sizeof_int
25502 _ACEOF
25504 echo "$as_me:$LINENO: checking for short" >&5
25505 echo $ECHO_N "checking for short... $ECHO_C" >&6
25506 if test "${ac_cv_type_short+set}" = set; then
25507 echo $ECHO_N "(cached) $ECHO_C" >&6
25508 else
25509 cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h. */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25515 $ac_includes_default
25517 main ()
25519 if ((short *) 0)
25520 return 0;
25521 if (sizeof (short))
25522 return 0;
25524 return 0;
25526 _ACEOF
25527 rm -f conftest.$ac_objext
25528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25529 (eval $ac_compile) 2>conftest.er1
25530 ac_status=$?
25531 grep -v '^ *+' conftest.er1 >conftest.err
25532 rm -f conftest.er1
25533 cat conftest.err >&5
25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535 (exit $ac_status); } &&
25536 { ac_try='test -z "$ac_c_werror_flag"
25537 || test ! -s conftest.err'
25538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25540 ac_status=$?
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; } &&
25543 { ac_try='test -s conftest.$ac_objext'
25544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25545 (eval $ac_try) 2>&5
25546 ac_status=$?
25547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548 (exit $ac_status); }; }; then
25549 ac_cv_type_short=yes
25550 else
25551 echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25554 ac_cv_type_short=no
25556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25558 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25559 echo "${ECHO_T}$ac_cv_type_short" >&6
25561 echo "$as_me:$LINENO: checking size of short" >&5
25562 echo $ECHO_N "checking size of short... $ECHO_C" >&6
25563 if test "${ac_cv_sizeof_short+set}" = set; then
25564 echo $ECHO_N "(cached) $ECHO_C" >&6
25565 else
25566 if test "$ac_cv_type_short" = yes; then
25567 # The cast to unsigned long works around a bug in the HP C Compiler
25568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25570 # This bug is HP SR number 8606223364.
25571 if test "$cross_compiling" = yes; then
25572 # Depending upon the size, compute the lo and hi bounds.
25573 cat >conftest.$ac_ext <<_ACEOF
25574 /* confdefs.h. */
25575 _ACEOF
25576 cat confdefs.h >>conftest.$ac_ext
25577 cat >>conftest.$ac_ext <<_ACEOF
25578 /* end confdefs.h. */
25579 $ac_includes_default
25581 main ()
25583 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
25584 test_array [0] = 0
25587 return 0;
25589 _ACEOF
25590 rm -f conftest.$ac_objext
25591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25592 (eval $ac_compile) 2>conftest.er1
25593 ac_status=$?
25594 grep -v '^ *+' conftest.er1 >conftest.err
25595 rm -f conftest.er1
25596 cat conftest.err >&5
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); } &&
25599 { ac_try='test -z "$ac_c_werror_flag"
25600 || test ! -s conftest.err'
25601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25602 (eval $ac_try) 2>&5
25603 ac_status=$?
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); }; } &&
25606 { ac_try='test -s conftest.$ac_objext'
25607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25608 (eval $ac_try) 2>&5
25609 ac_status=$?
25610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25611 (exit $ac_status); }; }; then
25612 ac_lo=0 ac_mid=0
25613 while :; do
25614 cat >conftest.$ac_ext <<_ACEOF
25615 /* confdefs.h. */
25616 _ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h. */
25620 $ac_includes_default
25622 main ()
25624 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25625 test_array [0] = 0
25628 return 0;
25630 _ACEOF
25631 rm -f conftest.$ac_objext
25632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25633 (eval $ac_compile) 2>conftest.er1
25634 ac_status=$?
25635 grep -v '^ *+' conftest.er1 >conftest.err
25636 rm -f conftest.er1
25637 cat conftest.err >&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); } &&
25640 { ac_try='test -z "$ac_c_werror_flag"
25641 || test ! -s conftest.err'
25642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25643 (eval $ac_try) 2>&5
25644 ac_status=$?
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); }; } &&
25647 { ac_try='test -s conftest.$ac_objext'
25648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25649 (eval $ac_try) 2>&5
25650 ac_status=$?
25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); }; }; then
25653 ac_hi=$ac_mid; break
25654 else
25655 echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25658 ac_lo=`expr $ac_mid + 1`
25659 if test $ac_lo -le $ac_mid; then
25660 ac_lo= ac_hi=
25661 break
25663 ac_mid=`expr 2 '*' $ac_mid + 1`
25665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25666 done
25667 else
25668 echo "$as_me: failed program was:" >&5
25669 sed 's/^/| /' conftest.$ac_ext >&5
25671 cat >conftest.$ac_ext <<_ACEOF
25672 /* confdefs.h. */
25673 _ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25677 $ac_includes_default
25679 main ()
25681 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
25682 test_array [0] = 0
25685 return 0;
25687 _ACEOF
25688 rm -f conftest.$ac_objext
25689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25690 (eval $ac_compile) 2>conftest.er1
25691 ac_status=$?
25692 grep -v '^ *+' conftest.er1 >conftest.err
25693 rm -f conftest.er1
25694 cat conftest.err >&5
25695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696 (exit $ac_status); } &&
25697 { ac_try='test -z "$ac_c_werror_flag"
25698 || test ! -s conftest.err'
25699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25700 (eval $ac_try) 2>&5
25701 ac_status=$?
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); }; } &&
25704 { ac_try='test -s conftest.$ac_objext'
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25707 ac_status=$?
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; }; then
25710 ac_hi=-1 ac_mid=-1
25711 while :; do
25712 cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h. */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 $ac_includes_default
25720 main ()
25722 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
25723 test_array [0] = 0
25726 return 0;
25728 _ACEOF
25729 rm -f conftest.$ac_objext
25730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25731 (eval $ac_compile) 2>conftest.er1
25732 ac_status=$?
25733 grep -v '^ *+' conftest.er1 >conftest.err
25734 rm -f conftest.er1
25735 cat conftest.err >&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); } &&
25738 { ac_try='test -z "$ac_c_werror_flag"
25739 || test ! -s conftest.err'
25740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741 (eval $ac_try) 2>&5
25742 ac_status=$?
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); }; } &&
25745 { ac_try='test -s conftest.$ac_objext'
25746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25747 (eval $ac_try) 2>&5
25748 ac_status=$?
25749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750 (exit $ac_status); }; }; then
25751 ac_lo=$ac_mid; break
25752 else
25753 echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25756 ac_hi=`expr '(' $ac_mid ')' - 1`
25757 if test $ac_mid -le $ac_hi; then
25758 ac_lo= ac_hi=
25759 break
25761 ac_mid=`expr 2 '*' $ac_mid`
25763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25764 done
25765 else
25766 echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25769 ac_lo= ac_hi=
25771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25774 # Binary search between lo and hi bounds.
25775 while test "x$ac_lo" != "x$ac_hi"; do
25776 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25777 cat >conftest.$ac_ext <<_ACEOF
25778 /* confdefs.h. */
25779 _ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h. */
25783 $ac_includes_default
25785 main ()
25787 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
25788 test_array [0] = 0
25791 return 0;
25793 _ACEOF
25794 rm -f conftest.$ac_objext
25795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25796 (eval $ac_compile) 2>conftest.er1
25797 ac_status=$?
25798 grep -v '^ *+' conftest.er1 >conftest.err
25799 rm -f conftest.er1
25800 cat conftest.err >&5
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); } &&
25803 { ac_try='test -z "$ac_c_werror_flag"
25804 || test ! -s conftest.err'
25805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806 (eval $ac_try) 2>&5
25807 ac_status=$?
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); }; } &&
25810 { ac_try='test -s conftest.$ac_objext'
25811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25812 (eval $ac_try) 2>&5
25813 ac_status=$?
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); }; }; then
25816 ac_hi=$ac_mid
25817 else
25818 echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25821 ac_lo=`expr '(' $ac_mid ')' + 1`
25823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25824 done
25825 case $ac_lo in
25826 ?*) ac_cv_sizeof_short=$ac_lo;;
25827 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25828 See \`config.log' for more details." >&5
25829 echo "$as_me: error: cannot compute sizeof (short), 77
25830 See \`config.log' for more details." >&2;}
25831 { (exit 1); exit 1; }; } ;;
25832 esac
25833 else
25834 if test "$cross_compiling" = yes; then
25835 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25836 See \`config.log' for more details." >&5
25837 echo "$as_me: error: cannot run test program while cross compiling
25838 See \`config.log' for more details." >&2;}
25839 { (exit 1); exit 1; }; }
25840 else
25841 cat >conftest.$ac_ext <<_ACEOF
25842 /* confdefs.h. */
25843 _ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h. */
25847 $ac_includes_default
25848 long longval () { return (long) (sizeof (short)); }
25849 unsigned long ulongval () { return (long) (sizeof (short)); }
25850 #include <stdio.h>
25851 #include <stdlib.h>
25853 main ()
25856 FILE *f = fopen ("conftest.val", "w");
25857 if (! f)
25858 exit (1);
25859 if (((long) (sizeof (short))) < 0)
25861 long i = longval ();
25862 if (i != ((long) (sizeof (short))))
25863 exit (1);
25864 fprintf (f, "%ld\n", i);
25866 else
25868 unsigned long i = ulongval ();
25869 if (i != ((long) (sizeof (short))))
25870 exit (1);
25871 fprintf (f, "%lu\n", i);
25873 exit (ferror (f) || fclose (f) != 0);
25876 return 0;
25878 _ACEOF
25879 rm -f conftest$ac_exeext
25880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25881 (eval $ac_link) 2>&5
25882 ac_status=$?
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; }; then
25890 ac_cv_sizeof_short=`cat conftest.val`
25891 else
25892 echo "$as_me: program exited with status $ac_status" >&5
25893 echo "$as_me: failed program was:" >&5
25894 sed 's/^/| /' conftest.$ac_ext >&5
25896 ( exit $ac_status )
25897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
25898 See \`config.log' for more details." >&5
25899 echo "$as_me: error: cannot compute sizeof (short), 77
25900 See \`config.log' for more details." >&2;}
25901 { (exit 1); exit 1; }; }
25903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25906 rm -f conftest.val
25907 else
25908 ac_cv_sizeof_short=0
25911 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
25912 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
25913 cat >>confdefs.h <<_ACEOF
25914 #define SIZEOF_SHORT $ac_cv_sizeof_short
25915 _ACEOF
25917 echo "$as_me:$LINENO: checking for long" >&5
25918 echo $ECHO_N "checking for long... $ECHO_C" >&6
25919 if test "${ac_cv_type_long+set}" = set; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25921 else
25922 cat >conftest.$ac_ext <<_ACEOF
25923 /* confdefs.h. */
25924 _ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 $ac_includes_default
25930 main ()
25932 if ((long *) 0)
25933 return 0;
25934 if (sizeof (long))
25935 return 0;
25937 return 0;
25939 _ACEOF
25940 rm -f conftest.$ac_objext
25941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25942 (eval $ac_compile) 2>conftest.er1
25943 ac_status=$?
25944 grep -v '^ *+' conftest.er1 >conftest.err
25945 rm -f conftest.er1
25946 cat conftest.err >&5
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } &&
25949 { ac_try='test -z "$ac_c_werror_flag"
25950 || test ! -s conftest.err'
25951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952 (eval $ac_try) 2>&5
25953 ac_status=$?
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; } &&
25956 { ac_try='test -s conftest.$ac_objext'
25957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958 (eval $ac_try) 2>&5
25959 ac_status=$?
25960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961 (exit $ac_status); }; }; then
25962 ac_cv_type_long=yes
25963 else
25964 echo "$as_me: failed program was:" >&5
25965 sed 's/^/| /' conftest.$ac_ext >&5
25967 ac_cv_type_long=no
25969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25971 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
25972 echo "${ECHO_T}$ac_cv_type_long" >&6
25974 echo "$as_me:$LINENO: checking size of long" >&5
25975 echo $ECHO_N "checking size of long... $ECHO_C" >&6
25976 if test "${ac_cv_sizeof_long+set}" = set; then
25977 echo $ECHO_N "(cached) $ECHO_C" >&6
25978 else
25979 if test "$ac_cv_type_long" = yes; then
25980 # The cast to unsigned long works around a bug in the HP C Compiler
25981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25983 # This bug is HP SR number 8606223364.
25984 if test "$cross_compiling" = yes; then
25985 # Depending upon the size, compute the lo and hi bounds.
25986 cat >conftest.$ac_ext <<_ACEOF
25987 /* confdefs.h. */
25988 _ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h. */
25992 $ac_includes_default
25994 main ()
25996 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
25997 test_array [0] = 0
26000 return 0;
26002 _ACEOF
26003 rm -f conftest.$ac_objext
26004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26005 (eval $ac_compile) 2>conftest.er1
26006 ac_status=$?
26007 grep -v '^ *+' conftest.er1 >conftest.err
26008 rm -f conftest.er1
26009 cat conftest.err >&5
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); } &&
26012 { ac_try='test -z "$ac_c_werror_flag"
26013 || test ! -s conftest.err'
26014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015 (eval $ac_try) 2>&5
26016 ac_status=$?
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); }; } &&
26019 { ac_try='test -s conftest.$ac_objext'
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; }; then
26025 ac_lo=0 ac_mid=0
26026 while :; do
26027 cat >conftest.$ac_ext <<_ACEOF
26028 /* confdefs.h. */
26029 _ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h. */
26033 $ac_includes_default
26035 main ()
26037 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26038 test_array [0] = 0
26041 return 0;
26043 _ACEOF
26044 rm -f conftest.$ac_objext
26045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26046 (eval $ac_compile) 2>conftest.er1
26047 ac_status=$?
26048 grep -v '^ *+' conftest.er1 >conftest.err
26049 rm -f conftest.er1
26050 cat conftest.err >&5
26051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052 (exit $ac_status); } &&
26053 { ac_try='test -z "$ac_c_werror_flag"
26054 || test ! -s conftest.err'
26055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26056 (eval $ac_try) 2>&5
26057 ac_status=$?
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); }; } &&
26060 { ac_try='test -s conftest.$ac_objext'
26061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26062 (eval $ac_try) 2>&5
26063 ac_status=$?
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); }; }; then
26066 ac_hi=$ac_mid; break
26067 else
26068 echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26071 ac_lo=`expr $ac_mid + 1`
26072 if test $ac_lo -le $ac_mid; then
26073 ac_lo= ac_hi=
26074 break
26076 ac_mid=`expr 2 '*' $ac_mid + 1`
26078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26079 done
26080 else
26081 echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26084 cat >conftest.$ac_ext <<_ACEOF
26085 /* confdefs.h. */
26086 _ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h. */
26090 $ac_includes_default
26092 main ()
26094 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26095 test_array [0] = 0
26098 return 0;
26100 _ACEOF
26101 rm -f conftest.$ac_objext
26102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26103 (eval $ac_compile) 2>conftest.er1
26104 ac_status=$?
26105 grep -v '^ *+' conftest.er1 >conftest.err
26106 rm -f conftest.er1
26107 cat conftest.err >&5
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); } &&
26110 { ac_try='test -z "$ac_c_werror_flag"
26111 || test ! -s conftest.err'
26112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); }; } &&
26117 { ac_try='test -s conftest.$ac_objext'
26118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26119 (eval $ac_try) 2>&5
26120 ac_status=$?
26121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26122 (exit $ac_status); }; }; then
26123 ac_hi=-1 ac_mid=-1
26124 while :; do
26125 cat >conftest.$ac_ext <<_ACEOF
26126 /* confdefs.h. */
26127 _ACEOF
26128 cat confdefs.h >>conftest.$ac_ext
26129 cat >>conftest.$ac_ext <<_ACEOF
26130 /* end confdefs.h. */
26131 $ac_includes_default
26133 main ()
26135 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26136 test_array [0] = 0
26139 return 0;
26141 _ACEOF
26142 rm -f conftest.$ac_objext
26143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26144 (eval $ac_compile) 2>conftest.er1
26145 ac_status=$?
26146 grep -v '^ *+' conftest.er1 >conftest.err
26147 rm -f conftest.er1
26148 cat conftest.err >&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } &&
26151 { ac_try='test -z "$ac_c_werror_flag"
26152 || test ! -s conftest.err'
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26155 ac_status=$?
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; } &&
26158 { ac_try='test -s conftest.$ac_objext'
26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160 (eval $ac_try) 2>&5
26161 ac_status=$?
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); }; }; then
26164 ac_lo=$ac_mid; break
26165 else
26166 echo "$as_me: failed program was:" >&5
26167 sed 's/^/| /' conftest.$ac_ext >&5
26169 ac_hi=`expr '(' $ac_mid ')' - 1`
26170 if test $ac_mid -le $ac_hi; then
26171 ac_lo= ac_hi=
26172 break
26174 ac_mid=`expr 2 '*' $ac_mid`
26176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26177 done
26178 else
26179 echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26182 ac_lo= ac_hi=
26184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26187 # Binary search between lo and hi bounds.
26188 while test "x$ac_lo" != "x$ac_hi"; do
26189 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26190 cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h. */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h. */
26196 $ac_includes_default
26198 main ()
26200 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26201 test_array [0] = 0
26204 return 0;
26206 _ACEOF
26207 rm -f conftest.$ac_objext
26208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26209 (eval $ac_compile) 2>conftest.er1
26210 ac_status=$?
26211 grep -v '^ *+' conftest.er1 >conftest.err
26212 rm -f conftest.er1
26213 cat conftest.err >&5
26214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215 (exit $ac_status); } &&
26216 { ac_try='test -z "$ac_c_werror_flag"
26217 || test ! -s conftest.err'
26218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26219 (eval $ac_try) 2>&5
26220 ac_status=$?
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); }; } &&
26223 { ac_try='test -s conftest.$ac_objext'
26224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26225 (eval $ac_try) 2>&5
26226 ac_status=$?
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); }; }; then
26229 ac_hi=$ac_mid
26230 else
26231 echo "$as_me: failed program was:" >&5
26232 sed 's/^/| /' conftest.$ac_ext >&5
26234 ac_lo=`expr '(' $ac_mid ')' + 1`
26236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26237 done
26238 case $ac_lo in
26239 ?*) ac_cv_sizeof_long=$ac_lo;;
26240 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26241 See \`config.log' for more details." >&5
26242 echo "$as_me: error: cannot compute sizeof (long), 77
26243 See \`config.log' for more details." >&2;}
26244 { (exit 1); exit 1; }; } ;;
26245 esac
26246 else
26247 if test "$cross_compiling" = yes; then
26248 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26249 See \`config.log' for more details." >&5
26250 echo "$as_me: error: cannot run test program while cross compiling
26251 See \`config.log' for more details." >&2;}
26252 { (exit 1); exit 1; }; }
26253 else
26254 cat >conftest.$ac_ext <<_ACEOF
26255 /* confdefs.h. */
26256 _ACEOF
26257 cat confdefs.h >>conftest.$ac_ext
26258 cat >>conftest.$ac_ext <<_ACEOF
26259 /* end confdefs.h. */
26260 $ac_includes_default
26261 long longval () { return (long) (sizeof (long)); }
26262 unsigned long ulongval () { return (long) (sizeof (long)); }
26263 #include <stdio.h>
26264 #include <stdlib.h>
26266 main ()
26269 FILE *f = fopen ("conftest.val", "w");
26270 if (! f)
26271 exit (1);
26272 if (((long) (sizeof (long))) < 0)
26274 long i = longval ();
26275 if (i != ((long) (sizeof (long))))
26276 exit (1);
26277 fprintf (f, "%ld\n", i);
26279 else
26281 unsigned long i = ulongval ();
26282 if (i != ((long) (sizeof (long))))
26283 exit (1);
26284 fprintf (f, "%lu\n", i);
26286 exit (ferror (f) || fclose (f) != 0);
26289 return 0;
26291 _ACEOF
26292 rm -f conftest$ac_exeext
26293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26294 (eval $ac_link) 2>&5
26295 ac_status=$?
26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26299 (eval $ac_try) 2>&5
26300 ac_status=$?
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); }; }; then
26303 ac_cv_sizeof_long=`cat conftest.val`
26304 else
26305 echo "$as_me: program exited with status $ac_status" >&5
26306 echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26309 ( exit $ac_status )
26310 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26311 See \`config.log' for more details." >&5
26312 echo "$as_me: error: cannot compute sizeof (long), 77
26313 See \`config.log' for more details." >&2;}
26314 { (exit 1); exit 1; }; }
26316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26319 rm -f conftest.val
26320 else
26321 ac_cv_sizeof_long=0
26324 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26325 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
26326 cat >>confdefs.h <<_ACEOF
26327 #define SIZEOF_LONG $ac_cv_sizeof_long
26328 _ACEOF
26330 echo "$as_me:$LINENO: checking for char *" >&5
26331 echo $ECHO_N "checking for char *... $ECHO_C" >&6
26332 if test "${ac_cv_type_char_p+set}" = set; then
26333 echo $ECHO_N "(cached) $ECHO_C" >&6
26334 else
26335 cat >conftest.$ac_ext <<_ACEOF
26336 /* confdefs.h. */
26337 _ACEOF
26338 cat confdefs.h >>conftest.$ac_ext
26339 cat >>conftest.$ac_ext <<_ACEOF
26340 /* end confdefs.h. */
26341 $ac_includes_default
26343 main ()
26345 if ((char * *) 0)
26346 return 0;
26347 if (sizeof (char *))
26348 return 0;
26350 return 0;
26352 _ACEOF
26353 rm -f conftest.$ac_objext
26354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26355 (eval $ac_compile) 2>conftest.er1
26356 ac_status=$?
26357 grep -v '^ *+' conftest.er1 >conftest.err
26358 rm -f conftest.er1
26359 cat conftest.err >&5
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); } &&
26362 { ac_try='test -z "$ac_c_werror_flag"
26363 || test ! -s conftest.err'
26364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365 (eval $ac_try) 2>&5
26366 ac_status=$?
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; } &&
26369 { ac_try='test -s conftest.$ac_objext'
26370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26371 (eval $ac_try) 2>&5
26372 ac_status=$?
26373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); }; }; then
26375 ac_cv_type_char_p=yes
26376 else
26377 echo "$as_me: failed program was:" >&5
26378 sed 's/^/| /' conftest.$ac_ext >&5
26380 ac_cv_type_char_p=no
26382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26384 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
26385 echo "${ECHO_T}$ac_cv_type_char_p" >&6
26387 echo "$as_me:$LINENO: checking size of char *" >&5
26388 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
26389 if test "${ac_cv_sizeof_char_p+set}" = set; then
26390 echo $ECHO_N "(cached) $ECHO_C" >&6
26391 else
26392 if test "$ac_cv_type_char_p" = yes; then
26393 # The cast to unsigned long works around a bug in the HP C Compiler
26394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26396 # This bug is HP SR number 8606223364.
26397 if test "$cross_compiling" = yes; then
26398 # Depending upon the size, compute the lo and hi bounds.
26399 cat >conftest.$ac_ext <<_ACEOF
26400 /* confdefs.h. */
26401 _ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h. */
26405 $ac_includes_default
26407 main ()
26409 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= 0)];
26410 test_array [0] = 0
26413 return 0;
26415 _ACEOF
26416 rm -f conftest.$ac_objext
26417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26418 (eval $ac_compile) 2>conftest.er1
26419 ac_status=$?
26420 grep -v '^ *+' conftest.er1 >conftest.err
26421 rm -f conftest.er1
26422 cat conftest.err >&5
26423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26424 (exit $ac_status); } &&
26425 { ac_try='test -z "$ac_c_werror_flag"
26426 || test ! -s conftest.err'
26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26428 (eval $ac_try) 2>&5
26429 ac_status=$?
26430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26431 (exit $ac_status); }; } &&
26432 { ac_try='test -s conftest.$ac_objext'
26433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26434 (eval $ac_try) 2>&5
26435 ac_status=$?
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); }; }; then
26438 ac_lo=0 ac_mid=0
26439 while :; do
26440 cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h. */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h. */
26446 $ac_includes_default
26448 main ()
26450 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
26451 test_array [0] = 0
26454 return 0;
26456 _ACEOF
26457 rm -f conftest.$ac_objext
26458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26459 (eval $ac_compile) 2>conftest.er1
26460 ac_status=$?
26461 grep -v '^ *+' conftest.er1 >conftest.err
26462 rm -f conftest.er1
26463 cat conftest.err >&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } &&
26466 { ac_try='test -z "$ac_c_werror_flag"
26467 || test ! -s conftest.err'
26468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469 (eval $ac_try) 2>&5
26470 ac_status=$?
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); }; } &&
26473 { ac_try='test -s conftest.$ac_objext'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; }; then
26479 ac_hi=$ac_mid; break
26480 else
26481 echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26484 ac_lo=`expr $ac_mid + 1`
26485 if test $ac_lo -le $ac_mid; then
26486 ac_lo= ac_hi=
26487 break
26489 ac_mid=`expr 2 '*' $ac_mid + 1`
26491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26492 done
26493 else
26494 echo "$as_me: failed program was:" >&5
26495 sed 's/^/| /' conftest.$ac_ext >&5
26497 cat >conftest.$ac_ext <<_ACEOF
26498 /* confdefs.h. */
26499 _ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h. */
26503 $ac_includes_default
26505 main ()
26507 static int test_array [1 - 2 * !(((long) (sizeof (char *))) < 0)];
26508 test_array [0] = 0
26511 return 0;
26513 _ACEOF
26514 rm -f conftest.$ac_objext
26515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26516 (eval $ac_compile) 2>conftest.er1
26517 ac_status=$?
26518 grep -v '^ *+' conftest.er1 >conftest.err
26519 rm -f conftest.er1
26520 cat conftest.err >&5
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); } &&
26523 { ac_try='test -z "$ac_c_werror_flag"
26524 || test ! -s conftest.err'
26525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26526 (eval $ac_try) 2>&5
26527 ac_status=$?
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); }; } &&
26530 { ac_try='test -s conftest.$ac_objext'
26531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26532 (eval $ac_try) 2>&5
26533 ac_status=$?
26534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535 (exit $ac_status); }; }; then
26536 ac_hi=-1 ac_mid=-1
26537 while :; do
26538 cat >conftest.$ac_ext <<_ACEOF
26539 /* confdefs.h. */
26540 _ACEOF
26541 cat confdefs.h >>conftest.$ac_ext
26542 cat >>conftest.$ac_ext <<_ACEOF
26543 /* end confdefs.h. */
26544 $ac_includes_default
26546 main ()
26548 static int test_array [1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)];
26549 test_array [0] = 0
26552 return 0;
26554 _ACEOF
26555 rm -f conftest.$ac_objext
26556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26557 (eval $ac_compile) 2>conftest.er1
26558 ac_status=$?
26559 grep -v '^ *+' conftest.er1 >conftest.err
26560 rm -f conftest.er1
26561 cat conftest.err >&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); } &&
26564 { ac_try='test -z "$ac_c_werror_flag"
26565 || test ! -s conftest.err'
26566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26567 (eval $ac_try) 2>&5
26568 ac_status=$?
26569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570 (exit $ac_status); }; } &&
26571 { ac_try='test -s conftest.$ac_objext'
26572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26573 (eval $ac_try) 2>&5
26574 ac_status=$?
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); }; }; then
26577 ac_lo=$ac_mid; break
26578 else
26579 echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26582 ac_hi=`expr '(' $ac_mid ')' - 1`
26583 if test $ac_mid -le $ac_hi; then
26584 ac_lo= ac_hi=
26585 break
26587 ac_mid=`expr 2 '*' $ac_mid`
26589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26590 done
26591 else
26592 echo "$as_me: failed program was:" >&5
26593 sed 's/^/| /' conftest.$ac_ext >&5
26595 ac_lo= ac_hi=
26597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26600 # Binary search between lo and hi bounds.
26601 while test "x$ac_lo" != "x$ac_hi"; do
26602 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26603 cat >conftest.$ac_ext <<_ACEOF
26604 /* confdefs.h. */
26605 _ACEOF
26606 cat confdefs.h >>conftest.$ac_ext
26607 cat >>conftest.$ac_ext <<_ACEOF
26608 /* end confdefs.h. */
26609 $ac_includes_default
26611 main ()
26613 static int test_array [1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)];
26614 test_array [0] = 0
26617 return 0;
26619 _ACEOF
26620 rm -f conftest.$ac_objext
26621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26622 (eval $ac_compile) 2>conftest.er1
26623 ac_status=$?
26624 grep -v '^ *+' conftest.er1 >conftest.err
26625 rm -f conftest.er1
26626 cat conftest.err >&5
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); } &&
26629 { ac_try='test -z "$ac_c_werror_flag"
26630 || test ! -s conftest.err'
26631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26632 (eval $ac_try) 2>&5
26633 ac_status=$?
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); }; } &&
26636 { ac_try='test -s conftest.$ac_objext'
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; }; then
26642 ac_hi=$ac_mid
26643 else
26644 echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26647 ac_lo=`expr '(' $ac_mid ')' + 1`
26649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26650 done
26651 case $ac_lo in
26652 ?*) ac_cv_sizeof_char_p=$ac_lo;;
26653 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
26654 See \`config.log' for more details." >&5
26655 echo "$as_me: error: cannot compute sizeof (char *), 77
26656 See \`config.log' for more details." >&2;}
26657 { (exit 1); exit 1; }; } ;;
26658 esac
26659 else
26660 if test "$cross_compiling" = yes; then
26661 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26662 See \`config.log' for more details." >&5
26663 echo "$as_me: error: cannot run test program while cross compiling
26664 See \`config.log' for more details." >&2;}
26665 { (exit 1); exit 1; }; }
26666 else
26667 cat >conftest.$ac_ext <<_ACEOF
26668 /* confdefs.h. */
26669 _ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h. */
26673 $ac_includes_default
26674 long longval () { return (long) (sizeof (char *)); }
26675 unsigned long ulongval () { return (long) (sizeof (char *)); }
26676 #include <stdio.h>
26677 #include <stdlib.h>
26679 main ()
26682 FILE *f = fopen ("conftest.val", "w");
26683 if (! f)
26684 exit (1);
26685 if (((long) (sizeof (char *))) < 0)
26687 long i = longval ();
26688 if (i != ((long) (sizeof (char *))))
26689 exit (1);
26690 fprintf (f, "%ld\n", i);
26692 else
26694 unsigned long i = ulongval ();
26695 if (i != ((long) (sizeof (char *))))
26696 exit (1);
26697 fprintf (f, "%lu\n", i);
26699 exit (ferror (f) || fclose (f) != 0);
26702 return 0;
26704 _ACEOF
26705 rm -f conftest$ac_exeext
26706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26707 (eval $ac_link) 2>&5
26708 ac_status=$?
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26712 (eval $ac_try) 2>&5
26713 ac_status=$?
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); }; }; then
26716 ac_cv_sizeof_char_p=`cat conftest.val`
26717 else
26718 echo "$as_me: program exited with status $ac_status" >&5
26719 echo "$as_me: failed program was:" >&5
26720 sed 's/^/| /' conftest.$ac_ext >&5
26722 ( exit $ac_status )
26723 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
26724 See \`config.log' for more details." >&5
26725 echo "$as_me: error: cannot compute sizeof (char *), 77
26726 See \`config.log' for more details." >&2;}
26727 { (exit 1); exit 1; }; }
26729 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26732 rm -f conftest.val
26733 else
26734 ac_cv_sizeof_char_p=0
26737 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
26738 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
26739 cat >>confdefs.h <<_ACEOF
26740 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
26741 _ACEOF
26745 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26746 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26747 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26749 else
26750 ac_check_lib_save_LIBS=$LIBS
26751 LIBS="-ldl $LIBS"
26752 cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h. */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26759 /* Override any gcc2 internal prototype to avoid an error. */
26760 #ifdef __cplusplus
26761 extern "C"
26762 #endif
26763 /* We use char because int might match the return type of a gcc2
26764 builtin and then its argument prototype would still apply. */
26765 char dlopen ();
26767 main ()
26769 dlopen ();
26771 return 0;
26773 _ACEOF
26774 rm -f conftest.$ac_objext conftest$ac_exeext
26775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26776 (eval $ac_link) 2>conftest.er1
26777 ac_status=$?
26778 grep -v '^ *+' conftest.er1 >conftest.err
26779 rm -f conftest.er1
26780 cat conftest.err >&5
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); } &&
26783 { ac_try='test -z "$ac_c_werror_flag"
26784 || test ! -s conftest.err'
26785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26786 (eval $ac_try) 2>&5
26787 ac_status=$?
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); }; } &&
26790 { ac_try='test -s conftest$ac_exeext'
26791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792 (eval $ac_try) 2>&5
26793 ac_status=$?
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); }; }; then
26796 ac_cv_lib_dl_dlopen=yes
26797 else
26798 echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26801 ac_cv_lib_dl_dlopen=no
26803 rm -f conftest.err conftest.$ac_objext \
26804 conftest$ac_exeext conftest.$ac_ext
26805 LIBS=$ac_check_lib_save_LIBS
26807 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26808 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
26809 if test $ac_cv_lib_dl_dlopen = yes; then
26811 LIBDL="-ldl"
26812 ac_cv_have_dlfcn=yes
26817 echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
26818 echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6
26819 if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
26820 echo $ECHO_N "(cached) $ECHO_C" >&6
26821 else
26822 ac_check_lib_save_LIBS=$LIBS
26823 LIBS="-ldld $LIBS"
26824 cat >conftest.$ac_ext <<_ACEOF
26825 /* confdefs.h. */
26826 _ACEOF
26827 cat confdefs.h >>conftest.$ac_ext
26828 cat >>conftest.$ac_ext <<_ACEOF
26829 /* end confdefs.h. */
26831 /* Override any gcc2 internal prototype to avoid an error. */
26832 #ifdef __cplusplus
26833 extern "C"
26834 #endif
26835 /* We use char because int might match the return type of a gcc2
26836 builtin and then its argument prototype would still apply. */
26837 char shl_unload ();
26839 main ()
26841 shl_unload ();
26843 return 0;
26845 _ACEOF
26846 rm -f conftest.$ac_objext conftest$ac_exeext
26847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26848 (eval $ac_link) 2>conftest.er1
26849 ac_status=$?
26850 grep -v '^ *+' conftest.er1 >conftest.err
26851 rm -f conftest.er1
26852 cat conftest.err >&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); } &&
26855 { ac_try='test -z "$ac_c_werror_flag"
26856 || test ! -s conftest.err'
26857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26858 (eval $ac_try) 2>&5
26859 ac_status=$?
26860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861 (exit $ac_status); }; } &&
26862 { ac_try='test -s conftest$ac_exeext'
26863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864 (eval $ac_try) 2>&5
26865 ac_status=$?
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; }; then
26868 ac_cv_lib_dld_shl_unload=yes
26869 else
26870 echo "$as_me: failed program was:" >&5
26871 sed 's/^/| /' conftest.$ac_ext >&5
26873 ac_cv_lib_dld_shl_unload=no
26875 rm -f conftest.err conftest.$ac_objext \
26876 conftest$ac_exeext conftest.$ac_ext
26877 LIBS=$ac_check_lib_save_LIBS
26879 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
26880 echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6
26881 if test $ac_cv_lib_dld_shl_unload = yes; then
26883 LIBDL="-ldld"
26884 ac_cv_have_shload=yes
26894 echo "$as_me:$LINENO: checking for size_t" >&5
26895 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26896 if test "${ac_cv_type_size_t+set}" = set; then
26897 echo $ECHO_N "(cached) $ECHO_C" >&6
26898 else
26899 cat >conftest.$ac_ext <<_ACEOF
26900 /* confdefs.h. */
26901 _ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26905 $ac_includes_default
26907 main ()
26909 if ((size_t *) 0)
26910 return 0;
26911 if (sizeof (size_t))
26912 return 0;
26914 return 0;
26916 _ACEOF
26917 rm -f conftest.$ac_objext
26918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26919 (eval $ac_compile) 2>conftest.er1
26920 ac_status=$?
26921 grep -v '^ *+' conftest.er1 >conftest.err
26922 rm -f conftest.er1
26923 cat conftest.err >&5
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); } &&
26926 { ac_try='test -z "$ac_c_werror_flag"
26927 || test ! -s conftest.err'
26928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26929 (eval $ac_try) 2>&5
26930 ac_status=$?
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); }; } &&
26933 { ac_try='test -s conftest.$ac_objext'
26934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935 (eval $ac_try) 2>&5
26936 ac_status=$?
26937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); }; }; then
26939 ac_cv_type_size_t=yes
26940 else
26941 echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26944 ac_cv_type_size_t=no
26946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26948 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26949 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26951 echo "$as_me:$LINENO: checking size of size_t" >&5
26952 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
26953 if test "${ac_cv_sizeof_size_t+set}" = set; then
26954 echo $ECHO_N "(cached) $ECHO_C" >&6
26955 else
26956 if test "$ac_cv_type_size_t" = yes; then
26957 # The cast to unsigned long works around a bug in the HP C Compiler
26958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26960 # This bug is HP SR number 8606223364.
26961 if test "$cross_compiling" = yes; then
26962 # Depending upon the size, compute the lo and hi bounds.
26963 cat >conftest.$ac_ext <<_ACEOF
26964 /* confdefs.h. */
26965 _ACEOF
26966 cat confdefs.h >>conftest.$ac_ext
26967 cat >>conftest.$ac_ext <<_ACEOF
26968 /* end confdefs.h. */
26969 $ac_includes_default
26971 main ()
26973 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
26974 test_array [0] = 0
26977 return 0;
26979 _ACEOF
26980 rm -f conftest.$ac_objext
26981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26982 (eval $ac_compile) 2>conftest.er1
26983 ac_status=$?
26984 grep -v '^ *+' conftest.er1 >conftest.err
26985 rm -f conftest.er1
26986 cat conftest.err >&5
26987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988 (exit $ac_status); } &&
26989 { ac_try='test -z "$ac_c_werror_flag"
26990 || test ! -s conftest.err'
26991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26992 (eval $ac_try) 2>&5
26993 ac_status=$?
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); }; } &&
26996 { ac_try='test -s conftest.$ac_objext'
26997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26998 (eval $ac_try) 2>&5
26999 ac_status=$?
27000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27001 (exit $ac_status); }; }; then
27002 ac_lo=0 ac_mid=0
27003 while :; do
27004 cat >conftest.$ac_ext <<_ACEOF
27005 /* confdefs.h. */
27006 _ACEOF
27007 cat confdefs.h >>conftest.$ac_ext
27008 cat >>conftest.$ac_ext <<_ACEOF
27009 /* end confdefs.h. */
27010 $ac_includes_default
27012 main ()
27014 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27015 test_array [0] = 0
27018 return 0;
27020 _ACEOF
27021 rm -f conftest.$ac_objext
27022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27023 (eval $ac_compile) 2>conftest.er1
27024 ac_status=$?
27025 grep -v '^ *+' conftest.er1 >conftest.err
27026 rm -f conftest.er1
27027 cat conftest.err >&5
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); } &&
27030 { ac_try='test -z "$ac_c_werror_flag"
27031 || test ! -s conftest.err'
27032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27033 (eval $ac_try) 2>&5
27034 ac_status=$?
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); }; } &&
27037 { ac_try='test -s conftest.$ac_objext'
27038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039 (eval $ac_try) 2>&5
27040 ac_status=$?
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); }; }; then
27043 ac_hi=$ac_mid; break
27044 else
27045 echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27048 ac_lo=`expr $ac_mid + 1`
27049 if test $ac_lo -le $ac_mid; then
27050 ac_lo= ac_hi=
27051 break
27053 ac_mid=`expr 2 '*' $ac_mid + 1`
27055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27056 done
27057 else
27058 echo "$as_me: failed program was:" >&5
27059 sed 's/^/| /' conftest.$ac_ext >&5
27061 cat >conftest.$ac_ext <<_ACEOF
27062 /* confdefs.h. */
27063 _ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h. */
27067 $ac_includes_default
27069 main ()
27071 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
27072 test_array [0] = 0
27075 return 0;
27077 _ACEOF
27078 rm -f conftest.$ac_objext
27079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27080 (eval $ac_compile) 2>conftest.er1
27081 ac_status=$?
27082 grep -v '^ *+' conftest.er1 >conftest.err
27083 rm -f conftest.er1
27084 cat conftest.err >&5
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); } &&
27087 { ac_try='test -z "$ac_c_werror_flag"
27088 || test ! -s conftest.err'
27089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27090 (eval $ac_try) 2>&5
27091 ac_status=$?
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); }; } &&
27094 { ac_try='test -s conftest.$ac_objext'
27095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27096 (eval $ac_try) 2>&5
27097 ac_status=$?
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); }; }; then
27100 ac_hi=-1 ac_mid=-1
27101 while :; do
27102 cat >conftest.$ac_ext <<_ACEOF
27103 /* confdefs.h. */
27104 _ACEOF
27105 cat confdefs.h >>conftest.$ac_ext
27106 cat >>conftest.$ac_ext <<_ACEOF
27107 /* end confdefs.h. */
27108 $ac_includes_default
27110 main ()
27112 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
27113 test_array [0] = 0
27116 return 0;
27118 _ACEOF
27119 rm -f conftest.$ac_objext
27120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27121 (eval $ac_compile) 2>conftest.er1
27122 ac_status=$?
27123 grep -v '^ *+' conftest.er1 >conftest.err
27124 rm -f conftest.er1
27125 cat conftest.err >&5
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); } &&
27128 { ac_try='test -z "$ac_c_werror_flag"
27129 || test ! -s conftest.err'
27130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131 (eval $ac_try) 2>&5
27132 ac_status=$?
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; } &&
27135 { ac_try='test -s conftest.$ac_objext'
27136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27137 (eval $ac_try) 2>&5
27138 ac_status=$?
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; }; then
27141 ac_lo=$ac_mid; break
27142 else
27143 echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27146 ac_hi=`expr '(' $ac_mid ')' - 1`
27147 if test $ac_mid -le $ac_hi; then
27148 ac_lo= ac_hi=
27149 break
27151 ac_mid=`expr 2 '*' $ac_mid`
27153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27154 done
27155 else
27156 echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27159 ac_lo= ac_hi=
27161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27164 # Binary search between lo and hi bounds.
27165 while test "x$ac_lo" != "x$ac_hi"; do
27166 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27167 cat >conftest.$ac_ext <<_ACEOF
27168 /* confdefs.h. */
27169 _ACEOF
27170 cat confdefs.h >>conftest.$ac_ext
27171 cat >>conftest.$ac_ext <<_ACEOF
27172 /* end confdefs.h. */
27173 $ac_includes_default
27175 main ()
27177 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
27178 test_array [0] = 0
27181 return 0;
27183 _ACEOF
27184 rm -f conftest.$ac_objext
27185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27186 (eval $ac_compile) 2>conftest.er1
27187 ac_status=$?
27188 grep -v '^ *+' conftest.er1 >conftest.err
27189 rm -f conftest.er1
27190 cat conftest.err >&5
27191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); } &&
27193 { ac_try='test -z "$ac_c_werror_flag"
27194 || test ! -s conftest.err'
27195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27196 (eval $ac_try) 2>&5
27197 ac_status=$?
27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199 (exit $ac_status); }; } &&
27200 { ac_try='test -s conftest.$ac_objext'
27201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27202 (eval $ac_try) 2>&5
27203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; }; then
27206 ac_hi=$ac_mid
27207 else
27208 echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27211 ac_lo=`expr '(' $ac_mid ')' + 1`
27213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27214 done
27215 case $ac_lo in
27216 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27217 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27218 See \`config.log' for more details." >&5
27219 echo "$as_me: error: cannot compute sizeof (size_t), 77
27220 See \`config.log' for more details." >&2;}
27221 { (exit 1); exit 1; }; } ;;
27222 esac
27223 else
27224 if test "$cross_compiling" = yes; then
27225 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27226 See \`config.log' for more details." >&5
27227 echo "$as_me: error: cannot run test program while cross compiling
27228 See \`config.log' for more details." >&2;}
27229 { (exit 1); exit 1; }; }
27230 else
27231 cat >conftest.$ac_ext <<_ACEOF
27232 /* confdefs.h. */
27233 _ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h. */
27237 $ac_includes_default
27238 long longval () { return (long) (sizeof (size_t)); }
27239 unsigned long ulongval () { return (long) (sizeof (size_t)); }
27240 #include <stdio.h>
27241 #include <stdlib.h>
27243 main ()
27246 FILE *f = fopen ("conftest.val", "w");
27247 if (! f)
27248 exit (1);
27249 if (((long) (sizeof (size_t))) < 0)
27251 long i = longval ();
27252 if (i != ((long) (sizeof (size_t))))
27253 exit (1);
27254 fprintf (f, "%ld\n", i);
27256 else
27258 unsigned long i = ulongval ();
27259 if (i != ((long) (sizeof (size_t))))
27260 exit (1);
27261 fprintf (f, "%lu\n", i);
27263 exit (ferror (f) || fclose (f) != 0);
27266 return 0;
27268 _ACEOF
27269 rm -f conftest$ac_exeext
27270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27271 (eval $ac_link) 2>&5
27272 ac_status=$?
27273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27276 (eval $ac_try) 2>&5
27277 ac_status=$?
27278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27279 (exit $ac_status); }; }; then
27280 ac_cv_sizeof_size_t=`cat conftest.val`
27281 else
27282 echo "$as_me: program exited with status $ac_status" >&5
27283 echo "$as_me: failed program was:" >&5
27284 sed 's/^/| /' conftest.$ac_ext >&5
27286 ( exit $ac_status )
27287 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
27288 See \`config.log' for more details." >&5
27289 echo "$as_me: error: cannot compute sizeof (size_t), 77
27290 See \`config.log' for more details." >&2;}
27291 { (exit 1); exit 1; }; }
27293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27296 rm -f conftest.val
27297 else
27298 ac_cv_sizeof_size_t=0
27301 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27302 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
27303 cat >>confdefs.h <<_ACEOF
27304 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27305 _ACEOF
27308 echo "$as_me:$LINENO: checking for unsigned long" >&5
27309 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
27310 if test "${ac_cv_type_unsigned_long+set}" = set; then
27311 echo $ECHO_N "(cached) $ECHO_C" >&6
27312 else
27313 cat >conftest.$ac_ext <<_ACEOF
27314 /* confdefs.h. */
27315 _ACEOF
27316 cat confdefs.h >>conftest.$ac_ext
27317 cat >>conftest.$ac_ext <<_ACEOF
27318 /* end confdefs.h. */
27319 $ac_includes_default
27321 main ()
27323 if ((unsigned long *) 0)
27324 return 0;
27325 if (sizeof (unsigned long))
27326 return 0;
27328 return 0;
27330 _ACEOF
27331 rm -f conftest.$ac_objext
27332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27333 (eval $ac_compile) 2>conftest.er1
27334 ac_status=$?
27335 grep -v '^ *+' conftest.er1 >conftest.err
27336 rm -f conftest.er1
27337 cat conftest.err >&5
27338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339 (exit $ac_status); } &&
27340 { ac_try='test -z "$ac_c_werror_flag"
27341 || test ! -s conftest.err'
27342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343 (eval $ac_try) 2>&5
27344 ac_status=$?
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; } &&
27347 { ac_try='test -s conftest.$ac_objext'
27348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349 (eval $ac_try) 2>&5
27350 ac_status=$?
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; }; then
27353 ac_cv_type_unsigned_long=yes
27354 else
27355 echo "$as_me: failed program was:" >&5
27356 sed 's/^/| /' conftest.$ac_ext >&5
27358 ac_cv_type_unsigned_long=no
27360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27362 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
27363 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
27365 echo "$as_me:$LINENO: checking size of unsigned long" >&5
27366 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
27367 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
27368 echo $ECHO_N "(cached) $ECHO_C" >&6
27369 else
27370 if test "$ac_cv_type_unsigned_long" = yes; then
27371 # The cast to unsigned long works around a bug in the HP C Compiler
27372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27374 # This bug is HP SR number 8606223364.
27375 if test "$cross_compiling" = yes; then
27376 # Depending upon the size, compute the lo and hi bounds.
27377 cat >conftest.$ac_ext <<_ACEOF
27378 /* confdefs.h. */
27379 _ACEOF
27380 cat confdefs.h >>conftest.$ac_ext
27381 cat >>conftest.$ac_ext <<_ACEOF
27382 /* end confdefs.h. */
27383 $ac_includes_default
27385 main ()
27387 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
27388 test_array [0] = 0
27391 return 0;
27393 _ACEOF
27394 rm -f conftest.$ac_objext
27395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27396 (eval $ac_compile) 2>conftest.er1
27397 ac_status=$?
27398 grep -v '^ *+' conftest.er1 >conftest.err
27399 rm -f conftest.er1
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } &&
27403 { ac_try='test -z "$ac_c_werror_flag"
27404 || test ! -s conftest.err'
27405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27406 (eval $ac_try) 2>&5
27407 ac_status=$?
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); }; } &&
27410 { ac_try='test -s conftest.$ac_objext'
27411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27412 (eval $ac_try) 2>&5
27413 ac_status=$?
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); }; }; then
27416 ac_lo=0 ac_mid=0
27417 while :; do
27418 cat >conftest.$ac_ext <<_ACEOF
27419 /* confdefs.h. */
27420 _ACEOF
27421 cat confdefs.h >>conftest.$ac_ext
27422 cat >>conftest.$ac_ext <<_ACEOF
27423 /* end confdefs.h. */
27424 $ac_includes_default
27426 main ()
27428 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
27429 test_array [0] = 0
27432 return 0;
27434 _ACEOF
27435 rm -f conftest.$ac_objext
27436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27437 (eval $ac_compile) 2>conftest.er1
27438 ac_status=$?
27439 grep -v '^ *+' conftest.er1 >conftest.err
27440 rm -f conftest.er1
27441 cat conftest.err >&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); } &&
27444 { ac_try='test -z "$ac_c_werror_flag"
27445 || test ! -s conftest.err'
27446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447 (eval $ac_try) 2>&5
27448 ac_status=$?
27449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); }; } &&
27451 { ac_try='test -s conftest.$ac_objext'
27452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27453 (eval $ac_try) 2>&5
27454 ac_status=$?
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); }; }; then
27457 ac_hi=$ac_mid; break
27458 else
27459 echo "$as_me: failed program was:" >&5
27460 sed 's/^/| /' conftest.$ac_ext >&5
27462 ac_lo=`expr $ac_mid + 1`
27463 if test $ac_lo -le $ac_mid; then
27464 ac_lo= ac_hi=
27465 break
27467 ac_mid=`expr 2 '*' $ac_mid + 1`
27469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27470 done
27471 else
27472 echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.$ac_ext >&5
27475 cat >conftest.$ac_ext <<_ACEOF
27476 /* confdefs.h. */
27477 _ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27481 $ac_includes_default
27483 main ()
27485 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
27486 test_array [0] = 0
27489 return 0;
27491 _ACEOF
27492 rm -f conftest.$ac_objext
27493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27494 (eval $ac_compile) 2>conftest.er1
27495 ac_status=$?
27496 grep -v '^ *+' conftest.er1 >conftest.err
27497 rm -f conftest.er1
27498 cat conftest.err >&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } &&
27501 { ac_try='test -z "$ac_c_werror_flag"
27502 || test ! -s conftest.err'
27503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27504 (eval $ac_try) 2>&5
27505 ac_status=$?
27506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); }; } &&
27508 { ac_try='test -s conftest.$ac_objext'
27509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27510 (eval $ac_try) 2>&5
27511 ac_status=$?
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); }; }; then
27514 ac_hi=-1 ac_mid=-1
27515 while :; do
27516 cat >conftest.$ac_ext <<_ACEOF
27517 /* confdefs.h. */
27518 _ACEOF
27519 cat confdefs.h >>conftest.$ac_ext
27520 cat >>conftest.$ac_ext <<_ACEOF
27521 /* end confdefs.h. */
27522 $ac_includes_default
27524 main ()
27526 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
27527 test_array [0] = 0
27530 return 0;
27532 _ACEOF
27533 rm -f conftest.$ac_objext
27534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27535 (eval $ac_compile) 2>conftest.er1
27536 ac_status=$?
27537 grep -v '^ *+' conftest.er1 >conftest.err
27538 rm -f conftest.er1
27539 cat conftest.err >&5
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); } &&
27542 { ac_try='test -z "$ac_c_werror_flag"
27543 || test ! -s conftest.err'
27544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545 (eval $ac_try) 2>&5
27546 ac_status=$?
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); }; } &&
27549 { ac_try='test -s conftest.$ac_objext'
27550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27551 (eval $ac_try) 2>&5
27552 ac_status=$?
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; }; then
27555 ac_lo=$ac_mid; break
27556 else
27557 echo "$as_me: failed program was:" >&5
27558 sed 's/^/| /' conftest.$ac_ext >&5
27560 ac_hi=`expr '(' $ac_mid ')' - 1`
27561 if test $ac_mid -le $ac_hi; then
27562 ac_lo= ac_hi=
27563 break
27565 ac_mid=`expr 2 '*' $ac_mid`
27567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27568 done
27569 else
27570 echo "$as_me: failed program was:" >&5
27571 sed 's/^/| /' conftest.$ac_ext >&5
27573 ac_lo= ac_hi=
27575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27578 # Binary search between lo and hi bounds.
27579 while test "x$ac_lo" != "x$ac_hi"; do
27580 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27581 cat >conftest.$ac_ext <<_ACEOF
27582 /* confdefs.h. */
27583 _ACEOF
27584 cat confdefs.h >>conftest.$ac_ext
27585 cat >>conftest.$ac_ext <<_ACEOF
27586 /* end confdefs.h. */
27587 $ac_includes_default
27589 main ()
27591 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
27592 test_array [0] = 0
27595 return 0;
27597 _ACEOF
27598 rm -f conftest.$ac_objext
27599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27600 (eval $ac_compile) 2>conftest.er1
27601 ac_status=$?
27602 grep -v '^ *+' conftest.er1 >conftest.err
27603 rm -f conftest.er1
27604 cat conftest.err >&5
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); } &&
27607 { ac_try='test -z "$ac_c_werror_flag"
27608 || test ! -s conftest.err'
27609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610 (eval $ac_try) 2>&5
27611 ac_status=$?
27612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; } &&
27614 { ac_try='test -s conftest.$ac_objext'
27615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27616 (eval $ac_try) 2>&5
27617 ac_status=$?
27618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619 (exit $ac_status); }; }; then
27620 ac_hi=$ac_mid
27621 else
27622 echo "$as_me: failed program was:" >&5
27623 sed 's/^/| /' conftest.$ac_ext >&5
27625 ac_lo=`expr '(' $ac_mid ')' + 1`
27627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27628 done
27629 case $ac_lo in
27630 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
27631 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
27632 See \`config.log' for more details." >&5
27633 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
27634 See \`config.log' for more details." >&2;}
27635 { (exit 1); exit 1; }; } ;;
27636 esac
27637 else
27638 if test "$cross_compiling" = yes; then
27639 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27640 See \`config.log' for more details." >&5
27641 echo "$as_me: error: cannot run test program while cross compiling
27642 See \`config.log' for more details." >&2;}
27643 { (exit 1); exit 1; }; }
27644 else
27645 cat >conftest.$ac_ext <<_ACEOF
27646 /* confdefs.h. */
27647 _ACEOF
27648 cat confdefs.h >>conftest.$ac_ext
27649 cat >>conftest.$ac_ext <<_ACEOF
27650 /* end confdefs.h. */
27651 $ac_includes_default
27652 long longval () { return (long) (sizeof (unsigned long)); }
27653 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
27654 #include <stdio.h>
27655 #include <stdlib.h>
27657 main ()
27660 FILE *f = fopen ("conftest.val", "w");
27661 if (! f)
27662 exit (1);
27663 if (((long) (sizeof (unsigned long))) < 0)
27665 long i = longval ();
27666 if (i != ((long) (sizeof (unsigned long))))
27667 exit (1);
27668 fprintf (f, "%ld\n", i);
27670 else
27672 unsigned long i = ulongval ();
27673 if (i != ((long) (sizeof (unsigned long))))
27674 exit (1);
27675 fprintf (f, "%lu\n", i);
27677 exit (ferror (f) || fclose (f) != 0);
27680 return 0;
27682 _ACEOF
27683 rm -f conftest$ac_exeext
27684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27685 (eval $ac_link) 2>&5
27686 ac_status=$?
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27690 (eval $ac_try) 2>&5
27691 ac_status=$?
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); }; }; then
27694 ac_cv_sizeof_unsigned_long=`cat conftest.val`
27695 else
27696 echo "$as_me: program exited with status $ac_status" >&5
27697 echo "$as_me: failed program was:" >&5
27698 sed 's/^/| /' conftest.$ac_ext >&5
27700 ( exit $ac_status )
27701 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
27702 See \`config.log' for more details." >&5
27703 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
27704 See \`config.log' for more details." >&2;}
27705 { (exit 1); exit 1; }; }
27707 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27710 rm -f conftest.val
27711 else
27712 ac_cv_sizeof_unsigned_long=0
27715 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
27716 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
27717 cat >>confdefs.h <<_ACEOF
27718 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27719 _ACEOF
27723 echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
27724 echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6
27725 cat >conftest.$ac_ext <<_ACEOF
27726 /* confdefs.h. */
27727 _ACEOF
27728 cat confdefs.h >>conftest.$ac_ext
27729 cat >>conftest.$ac_ext <<_ACEOF
27730 /* end confdefs.h. */
27733 main ()
27736 #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
27737 choke me
27738 #endif
27741 return 0;
27743 _ACEOF
27744 rm -f conftest.$ac_objext
27745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27746 (eval $ac_compile) 2>conftest.er1
27747 ac_status=$?
27748 grep -v '^ *+' conftest.er1 >conftest.err
27749 rm -f conftest.er1
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } &&
27753 { ac_try='test -z "$ac_c_werror_flag"
27754 || test ! -s conftest.err'
27755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27757 ac_status=$?
27758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759 (exit $ac_status); }; } &&
27760 { ac_try='test -s conftest.$ac_objext'
27761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27762 (eval $ac_try) 2>&5
27763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; }; then
27766 echo "$as_me:$LINENO: result: yes" >&5
27767 echo "${ECHO_T}yes" >&6
27768 else
27769 echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27773 echo "$as_me:$LINENO: result: no" >&5
27774 echo "${ECHO_T}no" >&6
27775 { { echo "$as_me:$LINENO: error:
27776 Apparently on your system our assumption sizeof size_t == sizeof unsigned long
27777 does not apply. Please mail kde-devel@kde.org with a description of your system!
27778 " >&5
27779 echo "$as_me: error:
27780 Apparently on your system our assumption sizeof size_t == sizeof unsigned long
27781 does not apply. Please mail kde-devel@kde.org with a description of your system!
27782 " >&2;}
27783 { (exit 1); exit 1; }; }
27786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27789 echo "$as_me:$LINENO: checking for PIE support" >&5
27790 echo $ECHO_N "checking for PIE support... $ECHO_C" >&6
27791 if test "${kde_cv_val_pie_support+set}" = set; then
27792 echo $ECHO_N "(cached) $ECHO_C" >&6
27793 else
27797 ac_ext=cc
27798 ac_cpp='$CXXCPP $CPPFLAGS'
27799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27803 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
27806 safe_CXXFLAGS=$CXXFLAGS
27807 safe_LDFLAGS=$LDFLAGS
27808 CXXFLAGS="$CXXFLAGS -fPIE"
27809 LDFLAGS="$LDFLAGS -pie"
27811 cat >conftest.$ac_ext <<_ACEOF
27812 /* confdefs.h. */
27813 _ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h. */
27817 int foo;
27819 main ()
27823 return 0;
27825 _ACEOF
27826 rm -f conftest.$ac_objext conftest$ac_exeext
27827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27828 (eval $ac_link) 2>conftest.er1
27829 ac_status=$?
27830 grep -v '^ *+' conftest.er1 >conftest.err
27831 rm -f conftest.er1
27832 cat conftest.err >&5
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); } &&
27835 { ac_try='test -z "$ac_cxx_werror_flag"
27836 || test ! -s conftest.err'
27837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27838 (eval $ac_try) 2>&5
27839 ac_status=$?
27840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841 (exit $ac_status); }; } &&
27842 { ac_try='test -s conftest$ac_exeext'
27843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27844 (eval $ac_try) 2>&5
27845 ac_status=$?
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); }; }; then
27848 kde_cv_val_pie_support=yes
27849 else
27850 echo "$as_me: failed program was:" >&5
27851 sed 's/^/| /' conftest.$ac_ext >&5
27853 kde_cv_val_pie_support=no
27855 rm -f conftest.err conftest.$ac_objext \
27856 conftest$ac_exeext conftest.$ac_ext
27858 CXXFLAGS=$safe_CXXFLAGS
27859 LDFLAGS=$safe_LDFLAGS
27860 ac_ext=c
27861 ac_cpp='$CPP $CPPFLAGS'
27862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27868 echo "$as_me:$LINENO: result: $kde_cv_val_pie_support" >&5
27869 echo "${ECHO_T}$kde_cv_val_pie_support" >&6
27871 echo "$as_me:$LINENO: checking if enabling -pie/fPIE support" >&5
27872 echo $ECHO_N "checking if enabling -pie/fPIE support... $ECHO_C" >&6
27874 # Check whether --enable-pie or --disable-pie was given.
27875 if test "${enable_pie+set}" = set; then
27876 enableval="$enable_pie"
27877 kde_has_pie_support=$enableval
27878 else
27879 kde_has_pie_support=detect
27882 if test "$kde_has_pie_support" = "detect"; then
27883 kde_has_pie_support=$kde_cv_val_pie_support
27886 echo "$as_me:$LINENO: result: $kde_has_pie_support" >&5
27887 echo "${ECHO_T}$kde_has_pie_support" >&6
27889 KDE_USE_FPIE=""
27890 KDE_USE_PIE=""
27895 if test "$kde_has_pie_support" = "yes"; then
27896 KDE_USE_FPIE="-fPIE"
27897 KDE_USE_PIE="-pie"
27901 # darwin needs this to initialize the environment
27903 for ac_header in crt_externs.h
27905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27907 echo "$as_me:$LINENO: checking for $ac_header" >&5
27908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27914 else
27915 # Is the header compilable?
27916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27918 cat >conftest.$ac_ext <<_ACEOF
27919 /* confdefs.h. */
27920 _ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h. */
27924 $ac_includes_default
27925 #include <$ac_header>
27926 _ACEOF
27927 rm -f conftest.$ac_objext
27928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27929 (eval $ac_compile) 2>conftest.er1
27930 ac_status=$?
27931 grep -v '^ *+' conftest.er1 >conftest.err
27932 rm -f conftest.er1
27933 cat conftest.err >&5
27934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935 (exit $ac_status); } &&
27936 { ac_try='test -z "$ac_c_werror_flag"
27937 || test ! -s conftest.err'
27938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939 (eval $ac_try) 2>&5
27940 ac_status=$?
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); }; } &&
27943 { ac_try='test -s conftest.$ac_objext'
27944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27945 (eval $ac_try) 2>&5
27946 ac_status=$?
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); }; }; then
27949 ac_header_compiler=yes
27950 else
27951 echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27954 ac_header_compiler=no
27956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27958 echo "${ECHO_T}$ac_header_compiler" >&6
27960 # Is the header present?
27961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27963 cat >conftest.$ac_ext <<_ACEOF
27964 /* confdefs.h. */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h. */
27969 #include <$ac_header>
27970 _ACEOF
27971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27973 ac_status=$?
27974 grep -v '^ *+' conftest.er1 >conftest.err
27975 rm -f conftest.er1
27976 cat conftest.err >&5
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); } >/dev/null; then
27979 if test -s conftest.err; then
27980 ac_cpp_err=$ac_c_preproc_warn_flag
27981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27982 else
27983 ac_cpp_err=
27985 else
27986 ac_cpp_err=yes
27988 if test -z "$ac_cpp_err"; then
27989 ac_header_preproc=yes
27990 else
27991 echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27994 ac_header_preproc=no
27996 rm -f conftest.err conftest.$ac_ext
27997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27998 echo "${ECHO_T}$ac_header_preproc" >&6
28000 # So? What about this header?
28001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28002 yes:no: )
28003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28007 ac_header_preproc=yes
28009 no:yes:* )
28010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28023 cat <<\_ASBOX
28024 ## ------------------------------------------ ##
28025 ## Report this to the AC_PACKAGE_NAME lists. ##
28026 ## ------------------------------------------ ##
28027 _ASBOX
28029 sed "s/^/$as_me: WARNING: /" >&2
28031 esac
28032 echo "$as_me:$LINENO: checking for $ac_header" >&5
28033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28035 echo $ECHO_N "(cached) $ECHO_C" >&6
28036 else
28037 eval "$as_ac_Header=\$ac_header_preproc"
28039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28044 cat >>confdefs.h <<_ACEOF
28045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28046 _ACEOF
28050 done
28052 echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
28053 echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
28054 if test "${ac_cv_func__NSGetEnviron+set}" = set; then
28055 echo $ECHO_N "(cached) $ECHO_C" >&6
28056 else
28057 cat >conftest.$ac_ext <<_ACEOF
28058 /* confdefs.h. */
28059 _ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h. */
28063 /* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
28064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28065 #define _NSGetEnviron innocuous__NSGetEnviron
28067 /* System header to define __stub macros and hopefully few prototypes,
28068 which can conflict with char _NSGetEnviron (); below.
28069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28070 <limits.h> exists even on freestanding compilers. */
28072 #ifdef __STDC__
28073 # include <limits.h>
28074 #else
28075 # include <assert.h>
28076 #endif
28078 #undef _NSGetEnviron
28080 /* Override any gcc2 internal prototype to avoid an error. */
28081 #ifdef __cplusplus
28082 extern "C"
28084 #endif
28085 /* We use char because int might match the return type of a gcc2
28086 builtin and then its argument prototype would still apply. */
28087 char _NSGetEnviron ();
28088 /* The GNU C library defines this for functions which it implements
28089 to always fail with ENOSYS. Some functions are actually named
28090 something starting with __ and the normal name is an alias. */
28091 #if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
28092 choke me
28093 #else
28094 char (*f) () = _NSGetEnviron;
28095 #endif
28096 #ifdef __cplusplus
28098 #endif
28101 main ()
28103 return f != _NSGetEnviron;
28105 return 0;
28107 _ACEOF
28108 rm -f conftest.$ac_objext conftest$ac_exeext
28109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28110 (eval $ac_link) 2>conftest.er1
28111 ac_status=$?
28112 grep -v '^ *+' conftest.er1 >conftest.err
28113 rm -f conftest.er1
28114 cat conftest.err >&5
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); } &&
28117 { ac_try='test -z "$ac_c_werror_flag"
28118 || test ! -s conftest.err'
28119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120 (eval $ac_try) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); }; } &&
28124 { ac_try='test -s conftest$ac_exeext'
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; }; then
28130 ac_cv_func__NSGetEnviron=yes
28131 else
28132 echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28135 ac_cv_func__NSGetEnviron=no
28137 rm -f conftest.err conftest.$ac_objext \
28138 conftest$ac_exeext conftest.$ac_ext
28140 echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
28141 echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
28142 if test $ac_cv_func__NSGetEnviron = yes; then
28144 cat >>confdefs.h <<\_ACEOF
28145 #define HAVE_NSGETENVIRON 1
28146 _ACEOF
28159 for ac_func in vsnprintf snprintf
28161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28162 echo "$as_me:$LINENO: checking for $ac_func" >&5
28163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28164 if eval "test \"\${$as_ac_var+set}\" = set"; then
28165 echo $ECHO_N "(cached) $ECHO_C" >&6
28166 else
28167 cat >conftest.$ac_ext <<_ACEOF
28168 /* confdefs.h. */
28169 _ACEOF
28170 cat confdefs.h >>conftest.$ac_ext
28171 cat >>conftest.$ac_ext <<_ACEOF
28172 /* end confdefs.h. */
28173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28175 #define $ac_func innocuous_$ac_func
28177 /* System header to define __stub macros and hopefully few prototypes,
28178 which can conflict with char $ac_func (); below.
28179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28180 <limits.h> exists even on freestanding compilers. */
28182 #ifdef __STDC__
28183 # include <limits.h>
28184 #else
28185 # include <assert.h>
28186 #endif
28188 #undef $ac_func
28190 /* Override any gcc2 internal prototype to avoid an error. */
28191 #ifdef __cplusplus
28192 extern "C"
28194 #endif
28195 /* We use char because int might match the return type of a gcc2
28196 builtin and then its argument prototype would still apply. */
28197 char $ac_func ();
28198 /* The GNU C library defines this for functions which it implements
28199 to always fail with ENOSYS. Some functions are actually named
28200 something starting with __ and the normal name is an alias. */
28201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28202 choke me
28203 #else
28204 char (*f) () = $ac_func;
28205 #endif
28206 #ifdef __cplusplus
28208 #endif
28211 main ()
28213 return f != $ac_func;
28215 return 0;
28217 _ACEOF
28218 rm -f conftest.$ac_objext conftest$ac_exeext
28219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28220 (eval $ac_link) 2>conftest.er1
28221 ac_status=$?
28222 grep -v '^ *+' conftest.er1 >conftest.err
28223 rm -f conftest.er1
28224 cat conftest.err >&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } &&
28227 { ac_try='test -z "$ac_c_werror_flag"
28228 || test ! -s conftest.err'
28229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230 (eval $ac_try) 2>&5
28231 ac_status=$?
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; } &&
28234 { ac_try='test -s conftest$ac_exeext'
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; }; then
28240 eval "$as_ac_var=yes"
28241 else
28242 echo "$as_me: failed program was:" >&5
28243 sed 's/^/| /' conftest.$ac_ext >&5
28245 eval "$as_ac_var=no"
28247 rm -f conftest.err conftest.$ac_objext \
28248 conftest$ac_exeext conftest.$ac_ext
28250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28252 if test `eval echo '${'$as_ac_var'}'` = yes; then
28253 cat >>confdefs.h <<_ACEOF
28254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28255 _ACEOF
28258 done
28268 # Check whether --enable-embedded or --disable-embedded was given.
28269 if test "${enable_embedded+set}" = set; then
28270 enableval="$enable_embedded"
28271 kde_use_qt_emb=$enableval
28272 else
28273 kde_use_qt_emb=no
28277 # Check whether --enable-qtopia or --disable-qtopia was given.
28278 if test "${enable_qtopia+set}" = set; then
28279 enableval="$enable_qtopia"
28280 kde_use_qt_emb_palm=$enableval
28281 else
28282 kde_use_qt_emb_palm=no
28286 # Check whether --enable-mac or --disable-mac was given.
28287 if test "${enable_mac+set}" = set; then
28288 enableval="$enable_mac"
28289 kde_use_qt_mac=$enableval
28290 else
28291 kde_use_qt_mac=no
28295 # used to disable x11-specific stuff on special platforms
28298 if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28299 include_x11_TRUE=
28300 include_x11_FALSE='#'
28301 else
28302 include_x11_TRUE='#'
28303 include_x11_FALSE=
28307 if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28309 echo "$as_me:$LINENO: checking for X" >&5
28310 echo $ECHO_N "checking for X... $ECHO_C" >&6
28312 if test "${kde_cv_have_x+set}" = set; then
28313 echo $ECHO_N "(cached) $ECHO_C" >&6
28314 else
28315 # One or both of the vars are not set, and there is no cached value.
28316 if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
28317 kde_x_includes=NO
28318 else
28319 kde_x_includes=$x_includes
28321 if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
28322 kde_x_libraries=NO
28323 else
28324 kde_x_libraries=$x_libraries
28327 # below we use the standard autoconf calls
28328 ac_x_libraries=$kde_x_libraries
28329 ac_x_includes=$kde_x_includes
28334 if test "$ac_x_includes" = NO; then
28335 # Guess where to find include files, by looking for this one X11 .h file.
28336 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
28338 # First, try using that file with no special directory specified.
28339 cat >conftest.$ac_ext <<_ACEOF
28340 /* confdefs.h. */
28341 _ACEOF
28342 cat confdefs.h >>conftest.$ac_ext
28343 cat >>conftest.$ac_ext <<_ACEOF
28344 /* end confdefs.h. */
28345 #include <$x_direct_test_include>
28346 _ACEOF
28347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28349 ac_status=$?
28350 grep -v '^ *+' conftest.er1 >conftest.err
28351 rm -f conftest.er1
28352 cat conftest.err >&5
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); } >/dev/null; then
28355 if test -s conftest.err; then
28356 ac_cpp_err=$ac_c_preproc_warn_flag
28357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28358 else
28359 ac_cpp_err=
28361 else
28362 ac_cpp_err=yes
28364 if test -z "$ac_cpp_err"; then
28365 # We can compile using X headers with no special include directory.
28366 ac_x_includes=
28367 else
28368 echo "$as_me: failed program was:" >&5
28369 sed 's/^/| /' conftest.$ac_ext >&5
28371 # Look for the header file in a standard set of common directories.
28372 # Check X11 before X11Rn because it is often a symlink to the current release.
28373 for ac_dir in \
28374 /usr/X11/include \
28375 /usr/X11R6/include \
28376 /usr/X11R5/include \
28377 /usr/X11R4/include \
28379 /usr/include/X11 \
28380 /usr/include/X11R6 \
28381 /usr/include/X11R5 \
28382 /usr/include/X11R4 \
28384 /usr/local/X11/include \
28385 /usr/local/X11R6/include \
28386 /usr/local/X11R5/include \
28387 /usr/local/X11R4/include \
28389 /usr/local/include/X11 \
28390 /usr/local/include/X11R6 \
28391 /usr/local/include/X11R5 \
28392 /usr/local/include/X11R4 \
28394 /usr/X386/include \
28395 /usr/x386/include \
28396 /usr/XFree86/include/X11 \
28398 /usr/include \
28399 /usr/local/include \
28400 /usr/unsupported/include \
28401 /usr/athena/include \
28402 /usr/local/x11r5/include \
28403 /usr/lpp/Xamples/include \
28405 /usr/openwin/include \
28406 /usr/openwin/share/include \
28409 if test -r "$ac_dir/$x_direct_test_include"; then
28410 ac_x_includes=$ac_dir
28411 break
28413 done
28415 rm -f conftest.err conftest.$ac_ext
28416 fi # $ac_x_includes = NO
28418 if test "$ac_x_libraries" = NO; then
28419 # Check for the libraries.
28421 test -z "$x_direct_test_library" && x_direct_test_library=Xt
28422 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
28424 # See if we find them without any special options.
28425 # Don't add to $LIBS permanently.
28426 ac_save_LIBS="$LIBS"
28427 LIBS="-l$x_direct_test_library $LIBS"
28428 cat >conftest.$ac_ext <<_ACEOF
28429 /* confdefs.h. */
28430 _ACEOF
28431 cat confdefs.h >>conftest.$ac_ext
28432 cat >>conftest.$ac_ext <<_ACEOF
28433 /* end confdefs.h. */
28434 #include <X11/Intrinsic.h>
28436 main ()
28438 ${x_direct_test_function}(1)
28440 return 0;
28442 _ACEOF
28443 rm -f conftest.$ac_objext conftest$ac_exeext
28444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28445 (eval $ac_link) 2>conftest.er1
28446 ac_status=$?
28447 grep -v '^ *+' conftest.er1 >conftest.err
28448 rm -f conftest.er1
28449 cat conftest.err >&5
28450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451 (exit $ac_status); } &&
28452 { ac_try='test -z "$ac_c_werror_flag"
28453 || test ! -s conftest.err'
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; } &&
28459 { ac_try='test -s conftest$ac_exeext'
28460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28461 (eval $ac_try) 2>&5
28462 ac_status=$?
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); }; }; then
28465 LIBS="$ac_save_LIBS"
28466 # We can link X programs with no special library path.
28467 ac_x_libraries=
28468 else
28469 echo "$as_me: failed program was:" >&5
28470 sed 's/^/| /' conftest.$ac_ext >&5
28472 LIBS="$ac_save_LIBS"
28473 # First see if replacing the include by lib works.
28474 # Check X11 before X11Rn because it is often a symlink to the current release.
28475 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
28476 /usr/X11/lib${kdelibsuff} \
28477 /usr/X11R6/lib${kdelibsuff} \
28478 /usr/X11R5/lib${kdelibsuff} \
28479 /usr/X11R4/lib${kdelibsuff} \
28481 /usr/lib${kdelibsuff}/X11 \
28482 /usr/lib${kdelibsuff}/X11R6 \
28483 /usr/lib${kdelibsuff}/X11R5 \
28484 /usr/lib${kdelibsuff}/X11R4 \
28486 /usr/local/X11/lib${kdelibsuff} \
28487 /usr/local/X11R6/lib${kdelibsuff} \
28488 /usr/local/X11R5/lib${kdelibsuff} \
28489 /usr/local/X11R4/lib${kdelibsuff} \
28491 /usr/local/lib${kdelibsuff}/X11 \
28492 /usr/local/lib${kdelibsuff}/X11R6 \
28493 /usr/local/lib${kdelibsuff}/X11R5 \
28494 /usr/local/lib${kdelibsuff}/X11R4 \
28496 /usr/X386/lib${kdelibsuff} \
28497 /usr/x386/lib${kdelibsuff} \
28498 /usr/XFree86/lib${kdelibsuff}/X11 \
28500 /usr/lib${kdelibsuff} \
28501 /usr/local/lib${kdelibsuff} \
28502 /usr/unsupported/lib${kdelibsuff} \
28503 /usr/athena/lib${kdelibsuff} \
28504 /usr/local/x11r5/lib${kdelibsuff} \
28505 /usr/lpp/Xamples/lib${kdelibsuff} \
28506 /lib/usr/lib${kdelibsuff}/X11 \
28508 /usr/openwin/lib${kdelibsuff} \
28509 /usr/openwin/share/lib${kdelibsuff} \
28512 for ac_extension in a so sl; do
28513 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
28514 ac_x_libraries=$ac_dir
28515 break 2
28517 done
28518 done
28520 rm -f conftest.err conftest.$ac_objext \
28521 conftest$ac_exeext conftest.$ac_ext
28522 fi # $ac_x_libraries = NO
28524 case "$host" in
28525 mips-sgi-irix6*)
28527 *-*-solaris*)
28530 rm -fr conftest.dir
28531 if mkdir conftest.dir; then
28532 cd conftest.dir
28533 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28534 cat >Imakefile <<'_ACEOF'
28535 acfindx:
28536 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28537 _ACEOF
28538 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28539 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28540 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28541 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28542 for ac_extension in a so sl; do
28543 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
28544 test -f $ac_im_libdir/libX11.$ac_extension; then
28545 ac_im_usrlibdir=$ac_im_libdir; break
28547 done
28548 # Screen out bogus values from the imake configuration. They are
28549 # bogus both because they are the default anyway, and because
28550 # using them would break gcc on systems where it needs fixed includes.
28551 case $ac_im_incroot in
28552 /usr/include) ;;
28553 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28554 esac
28555 case $ac_im_usrlibdir in
28556 /usr/lib | /lib) ;;
28557 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28558 esac
28560 cd ..
28561 rm -fr conftest.dir
28564 if test -z "$ac_x_includes"; then
28565 ac_x_includes="."
28567 if test -z "$ac_x_libraries"; then
28568 ac_x_libraries="/usr/lib${kdelibsuff}"
28570 esac
28571 #from now on we use our own again
28573 # when the user already gave --x-includes, we ignore
28574 # what the standard autoconf macros told us.
28575 if test "$kde_x_includes" = NO; then
28576 kde_x_includes=$ac_x_includes
28579 # for --x-libraries too
28580 if test "$kde_x_libraries" = NO; then
28581 kde_x_libraries=$ac_x_libraries
28584 if test "$kde_x_includes" = NO; then
28585 { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
28586 echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
28587 { (exit 1); exit 1; }; }
28590 if test "$kde_x_libraries" = NO; then
28591 { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
28592 echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
28593 { (exit 1); exit 1; }; }
28596 # Record where we found X for the cache.
28597 kde_cv_have_x="have_x=yes \
28598 kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
28602 eval "$kde_cv_have_x"
28604 if test "$have_x" != yes; then
28605 echo "$as_me:$LINENO: result: $have_x" >&5
28606 echo "${ECHO_T}$have_x" >&6
28607 no_x=yes
28608 else
28609 echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
28610 echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6
28613 if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
28614 X_INCLUDES=""
28615 x_includes="."; else
28616 x_includes=$kde_x_includes
28617 X_INCLUDES="-I$x_includes"
28620 if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
28621 X_LDFLAGS=""
28622 x_libraries="/usr/lib"; else
28623 x_libraries=$kde_x_libraries
28624 X_LDFLAGS="-L$x_libraries"
28626 all_includes="$X_INCLUDES"
28627 all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
28629 # Check for libraries that X11R6 Xt/Xaw programs need.
28630 ac_save_LDFLAGS="$LDFLAGS"
28631 LDFLAGS="$LDFLAGS $X_LDFLAGS"
28632 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28633 # check for ICE first), but we must link in the order -lSM -lICE or
28634 # we get undefined symbols. So assume we have SM if we have ICE.
28635 # These have to be linked with before -lX11, unlike the other
28636 # libraries we check for below, so use a different variable.
28637 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
28638 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28639 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28640 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28641 echo $ECHO_N "(cached) $ECHO_C" >&6
28642 else
28643 ac_check_lib_save_LIBS=$LIBS
28644 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28645 cat >conftest.$ac_ext <<_ACEOF
28646 /* confdefs.h. */
28647 _ACEOF
28648 cat confdefs.h >>conftest.$ac_ext
28649 cat >>conftest.$ac_ext <<_ACEOF
28650 /* end confdefs.h. */
28652 /* Override any gcc2 internal prototype to avoid an error. */
28653 #ifdef __cplusplus
28654 extern "C"
28655 #endif
28656 /* We use char because int might match the return type of a gcc2
28657 builtin and then its argument prototype would still apply. */
28658 char IceConnectionNumber ();
28660 main ()
28662 IceConnectionNumber ();
28664 return 0;
28666 _ACEOF
28667 rm -f conftest.$ac_objext conftest$ac_exeext
28668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28669 (eval $ac_link) 2>conftest.er1
28670 ac_status=$?
28671 grep -v '^ *+' conftest.er1 >conftest.err
28672 rm -f conftest.er1
28673 cat conftest.err >&5
28674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28675 (exit $ac_status); } &&
28676 { ac_try='test -z "$ac_c_werror_flag"
28677 || test ! -s conftest.err'
28678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28679 (eval $ac_try) 2>&5
28680 ac_status=$?
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); }; } &&
28683 { ac_try='test -s conftest$ac_exeext'
28684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685 (eval $ac_try) 2>&5
28686 ac_status=$?
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; }; then
28689 ac_cv_lib_ICE_IceConnectionNumber=yes
28690 else
28691 echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.$ac_ext >&5
28694 ac_cv_lib_ICE_IceConnectionNumber=no
28696 rm -f conftest.err conftest.$ac_objext \
28697 conftest$ac_exeext conftest.$ac_ext
28698 LIBS=$ac_check_lib_save_LIBS
28700 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28701 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28702 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28703 LIBSM="-lSM -lICE"
28706 LDFLAGS="$ac_save_LDFLAGS"
28708 LIB_X11='-lX11 $(LIBSOCKET)'
28710 echo "$as_me:$LINENO: checking for libXext" >&5
28711 echo $ECHO_N "checking for libXext... $ECHO_C" >&6
28712 if test "${kde_cv_have_libXext+set}" = set; then
28713 echo $ECHO_N "(cached) $ECHO_C" >&6
28714 else
28716 kde_ldflags_safe="$LDFLAGS"
28717 kde_libs_safe="$LIBS"
28719 LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
28720 LIBS="-lXext -lX11 $LIBSOCKET"
28722 cat >conftest.$ac_ext <<_ACEOF
28723 /* confdefs.h. */
28724 _ACEOF
28725 cat confdefs.h >>conftest.$ac_ext
28726 cat >>conftest.$ac_ext <<_ACEOF
28727 /* end confdefs.h. */
28729 #include <stdio.h>
28730 #ifdef STDC_HEADERS
28731 # include <stdlib.h>
28732 #endif
28735 main ()
28738 printf("hello Xext\n");
28741 return 0;
28743 _ACEOF
28744 rm -f conftest.$ac_objext conftest$ac_exeext
28745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28746 (eval $ac_link) 2>conftest.er1
28747 ac_status=$?
28748 grep -v '^ *+' conftest.er1 >conftest.err
28749 rm -f conftest.er1
28750 cat conftest.err >&5
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); } &&
28753 { ac_try='test -z "$ac_c_werror_flag"
28754 || test ! -s conftest.err'
28755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28756 (eval $ac_try) 2>&5
28757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; } &&
28760 { ac_try='test -s conftest$ac_exeext'
28761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28762 (eval $ac_try) 2>&5
28763 ac_status=$?
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); }; }; then
28766 kde_cv_have_libXext=yes
28767 else
28768 echo "$as_me: failed program was:" >&5
28769 sed 's/^/| /' conftest.$ac_ext >&5
28771 kde_cv_have_libXext=no
28774 rm -f conftest.err conftest.$ac_objext \
28775 conftest$ac_exeext conftest.$ac_ext
28777 LDFLAGS=$kde_ldflags_safe
28778 LIBS=$kde_libs_safe
28783 echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
28784 echo "${ECHO_T}$kde_cv_have_libXext" >&6
28786 if test "$kde_cv_have_libXext" = "no"; then
28787 { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
28788 can't find it itself, we stop here assuming that make wouldn't find
28789 them either." >&5
28790 echo "$as_me: error: We need a working libXext to proceed. Since configure
28791 can't find it itself, we stop here assuming that make wouldn't find
28792 them either." >&2;}
28793 { (exit 1); exit 1; }; }
28796 LIB_XEXT="-lXext"
28797 QTE_NORTTI=""
28799 elif test "$kde_use_qt_emb" = "yes"; then
28800 CPPFLAGS=-DQWS
28801 CXXFLAGS="$CXXFLAGS -fno-rtti"
28802 QTE_NORTTI="-fno-rtti -DQWS"
28803 X_PRE_LIBS=""
28804 LIB_X11=""
28805 LIB_XEXT=""
28806 LIB_XRENDER=""
28807 LIBSM=""
28808 X_INCLUDES=""
28809 X_LDFLAGS=""
28810 x_includes=""
28811 x_libraries=""
28812 elif test "$kde_use_qt_mac" = "yes"; then
28813 CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
28814 CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
28815 X_PRE_LIBS=""
28816 LIB_X11=""
28817 LIB_XEXT=""
28818 LIB_XRENDER=""
28819 LIBSM=""
28820 X_INCLUDES=""
28821 X_LDFLAGS=""
28822 x_includes=""
28823 x_libraries=""
28838 LIBPTHREAD=""
28840 if test -n "$PTHREAD_LIBS"; then
28841 if test "x$PTHREAD_LIBS" = "x-pthread" ; then
28842 LIBPTHREAD="PTHREAD"
28843 else
28844 PTHREAD_LIBS_save="$PTHREAD_LIBS"
28845 PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
28846 echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
28847 echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6
28849 kde_save_LDFLAGS="$LDFLAGS"
28850 kde_save_LIBS="$LIBS"
28851 LDFLAGS="$LDFLAGS $all_libraries"
28852 case $host_os in
28853 aix*) LDFLAGS="-brtl $LDFLAGS"
28854 test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
28856 esac
28857 as_ac_Lib=`echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
28858 echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
28859 echo $ECHO_N "checking for pthread_create in -l$PTHREAD_LIBS... $ECHO_C" >&6
28860 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28861 echo $ECHO_N "(cached) $ECHO_C" >&6
28862 else
28863 ac_check_lib_save_LIBS=$LIBS
28864 LIBS="-l$PTHREAD_LIBS $LIBS"
28865 cat >conftest.$ac_ext <<_ACEOF
28866 /* confdefs.h. */
28867 _ACEOF
28868 cat confdefs.h >>conftest.$ac_ext
28869 cat >>conftest.$ac_ext <<_ACEOF
28870 /* end confdefs.h. */
28872 /* Override any gcc2 internal prototype to avoid an error. */
28873 #ifdef __cplusplus
28874 extern "C"
28875 #endif
28876 /* We use char because int might match the return type of a gcc2
28877 builtin and then its argument prototype would still apply. */
28878 char pthread_create ();
28880 main ()
28882 pthread_create ();
28884 return 0;
28886 _ACEOF
28887 rm -f conftest.$ac_objext conftest$ac_exeext
28888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28889 (eval $ac_link) 2>conftest.er1
28890 ac_status=$?
28891 grep -v '^ *+' conftest.er1 >conftest.err
28892 rm -f conftest.er1
28893 cat conftest.err >&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } &&
28896 { ac_try='test -z "$ac_c_werror_flag"
28897 || test ! -s conftest.err'
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28900 ac_status=$?
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; } &&
28903 { ac_try='test -s conftest$ac_exeext'
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
28909 eval "$as_ac_Lib=yes"
28910 else
28911 echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28914 eval "$as_ac_Lib=no"
28916 rm -f conftest.err conftest.$ac_objext \
28917 conftest$ac_exeext conftest.$ac_ext
28918 LIBS=$ac_check_lib_save_LIBS
28920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28921 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28922 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28923 LIBPTHREAD="$PTHREAD_LIBS_save"
28926 LDFLAGS="$kde_save_LDFLAGS"
28927 LIBS="$kde_save_LIBS"
28929 PTHREAD_LIBS="$PTHREAD_LIBS_save"
28933 if test -z "$LIBPTHREAD"; then
28934 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
28935 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
28936 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
28937 echo $ECHO_N "(cached) $ECHO_C" >&6
28938 else
28939 ac_check_lib_save_LIBS=$LIBS
28940 LIBS="-lpthread $LIBS"
28941 cat >conftest.$ac_ext <<_ACEOF
28942 /* confdefs.h. */
28943 _ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h. */
28948 /* Override any gcc2 internal prototype to avoid an error. */
28949 #ifdef __cplusplus
28950 extern "C"
28951 #endif
28952 /* We use char because int might match the return type of a gcc2
28953 builtin and then its argument prototype would still apply. */
28954 char pthread_create ();
28956 main ()
28958 pthread_create ();
28960 return 0;
28962 _ACEOF
28963 rm -f conftest.$ac_objext conftest$ac_exeext
28964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28965 (eval $ac_link) 2>conftest.er1
28966 ac_status=$?
28967 grep -v '^ *+' conftest.er1 >conftest.err
28968 rm -f conftest.er1
28969 cat conftest.err >&5
28970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971 (exit $ac_status); } &&
28972 { ac_try='test -z "$ac_c_werror_flag"
28973 || test ! -s conftest.err'
28974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28975 (eval $ac_try) 2>&5
28976 ac_status=$?
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); }; } &&
28979 { ac_try='test -s conftest$ac_exeext'
28980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28981 (eval $ac_try) 2>&5
28982 ac_status=$?
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); }; }; then
28985 ac_cv_lib_pthread_pthread_create=yes
28986 else
28987 echo "$as_me: failed program was:" >&5
28988 sed 's/^/| /' conftest.$ac_ext >&5
28990 ac_cv_lib_pthread_pthread_create=no
28992 rm -f conftest.err conftest.$ac_objext \
28993 conftest$ac_exeext conftest.$ac_ext
28994 LIBS=$ac_check_lib_save_LIBS
28996 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
28997 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
28998 if test $ac_cv_lib_pthread_pthread_create = yes; then
28999 LIBPTHREAD="-lpthread"
29004 if test -z "$LIBPTHREAD" ; then
29005 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29006 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29007 kde_safe_libs=$LIBS
29008 LIBS="$LIBS -lpthread"
29009 cat >conftest.$ac_ext <<_ACEOF
29010 /* confdefs.h. */
29011 _ACEOF
29012 cat confdefs.h >>conftest.$ac_ext
29013 cat >>conftest.$ac_ext <<_ACEOF
29014 /* end confdefs.h. */
29015 #include <pthread.h>
29017 main ()
29019 (void)pthread_create(0,0,0,0);
29021 return 0;
29023 _ACEOF
29024 rm -f conftest.$ac_objext conftest$ac_exeext
29025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29026 (eval $ac_link) 2>conftest.er1
29027 ac_status=$?
29028 grep -v '^ *+' conftest.er1 >conftest.err
29029 rm -f conftest.er1
29030 cat conftest.err >&5
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); } &&
29033 { ac_try='test -z "$ac_c_werror_flag"
29034 || test ! -s conftest.err'
29035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036 (eval $ac_try) 2>&5
29037 ac_status=$?
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); }; } &&
29040 { ac_try='test -s conftest$ac_exeext'
29041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; }; then
29047 echo "$as_me:$LINENO: result: yes" >&5
29048 echo "${ECHO_T}yes" >&6
29049 LIBPTHREAD="-lpthread"
29050 else
29051 echo "$as_me: failed program was:" >&5
29052 sed 's/^/| /' conftest.$ac_ext >&5
29055 echo "$as_me:$LINENO: result: no" >&5
29056 echo "${ECHO_T}no" >&6
29058 rm -f conftest.err conftest.$ac_objext \
29059 conftest$ac_exeext conftest.$ac_ext
29060 LIBS=$kde_safe_libs
29063 if test "x$LIBPTHREAD" = "xPTHREAD" ; then
29064 LIBPTHREAD=""
29070 USE_THREADS=""
29071 if test -z "$LIBPTHREAD"; then
29073 echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
29074 echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6
29075 kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
29076 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
29077 echo $ECHO_N "(cached) $ECHO_C" >&6
29078 else
29082 ac_ext=cc
29083 ac_cpp='$CXXCPP $CPPFLAGS'
29084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29088 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29091 save_CXXFLAGS="$CXXFLAGS"
29092 CXXFLAGS="$CXXFLAGS -pthread"
29093 cat >conftest.$ac_ext <<_ACEOF
29094 /* confdefs.h. */
29095 _ACEOF
29096 cat confdefs.h >>conftest.$ac_ext
29097 cat >>conftest.$ac_ext <<_ACEOF
29098 /* end confdefs.h. */
29101 main ()
29103 return 0;
29105 return 0;
29107 _ACEOF
29108 rm -f conftest.$ac_objext conftest$ac_exeext
29109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29110 (eval $ac_link) 2>conftest.er1
29111 ac_status=$?
29112 grep -v '^ *+' conftest.er1 >conftest.err
29113 rm -f conftest.er1
29114 cat conftest.err >&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); } &&
29117 { ac_try='test -z "$ac_cxx_werror_flag"
29118 || test ! -s conftest.err'
29119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29120 (eval $ac_try) 2>&5
29121 ac_status=$?
29122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29123 (exit $ac_status); }; } &&
29124 { ac_try='test -s conftest$ac_exeext'
29125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29126 (eval $ac_try) 2>&5
29127 ac_status=$?
29128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29129 (exit $ac_status); }; }; then
29130 eval "kde_cv_prog_cxx_$kde_cache=yes"
29131 else
29132 echo "$as_me: failed program was:" >&5
29133 sed 's/^/| /' conftest.$ac_ext >&5
29136 rm -f conftest.err conftest.$ac_objext \
29137 conftest$ac_exeext conftest.$ac_ext
29138 CXXFLAGS="$save_CXXFLAGS"
29139 ac_ext=c
29140 ac_cpp='$CPP $CPPFLAGS'
29141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29148 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29149 echo "$as_me:$LINENO: result: yes" >&5
29150 echo "${ECHO_T}yes" >&6
29152 USE_THREADS="-D_THREAD_SAFE -pthread"
29153 else
29154 echo "$as_me:$LINENO: result: no" >&5
29155 echo "${ECHO_T}no" >&6
29164 case $host_os in
29165 solaris*)
29167 echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
29168 echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6
29169 kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
29170 if eval "test \"\${kde_cv_prog_cxx_$kde_cache+set}\" = set"; then
29171 echo $ECHO_N "(cached) $ECHO_C" >&6
29172 else
29176 ac_ext=cc
29177 ac_cpp='$CXXCPP $CPPFLAGS'
29178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29182 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29185 save_CXXFLAGS="$CXXFLAGS"
29186 CXXFLAGS="$CXXFLAGS -mt"
29187 cat >conftest.$ac_ext <<_ACEOF
29188 /* confdefs.h. */
29189 _ACEOF
29190 cat confdefs.h >>conftest.$ac_ext
29191 cat >>conftest.$ac_ext <<_ACEOF
29192 /* end confdefs.h. */
29195 main ()
29197 return 0;
29199 return 0;
29201 _ACEOF
29202 rm -f conftest.$ac_objext conftest$ac_exeext
29203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29204 (eval $ac_link) 2>conftest.er1
29205 ac_status=$?
29206 grep -v '^ *+' conftest.er1 >conftest.err
29207 rm -f conftest.er1
29208 cat conftest.err >&5
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); } &&
29211 { ac_try='test -z "$ac_cxx_werror_flag"
29212 || test ! -s conftest.err'
29213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214 (eval $ac_try) 2>&5
29215 ac_status=$?
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); }; } &&
29218 { ac_try='test -s conftest$ac_exeext'
29219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220 (eval $ac_try) 2>&5
29221 ac_status=$?
29222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223 (exit $ac_status); }; }; then
29224 eval "kde_cv_prog_cxx_$kde_cache=yes"
29225 else
29226 echo "$as_me: failed program was:" >&5
29227 sed 's/^/| /' conftest.$ac_ext >&5
29230 rm -f conftest.err conftest.$ac_objext \
29231 conftest$ac_exeext conftest.$ac_ext
29232 CXXFLAGS="$save_CXXFLAGS"
29233 ac_ext=c
29234 ac_cpp='$CPP $CPPFLAGS'
29235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29242 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29243 echo "$as_me:$LINENO: result: yes" >&5
29244 echo "${ECHO_T}yes" >&6
29246 USE_THREADS="-mt"
29247 else
29248 echo "$as_me:$LINENO: result: no" >&5
29249 echo "${ECHO_T}no" >&6
29254 CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
29256 freebsd*)
29257 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
29259 aix*)
29260 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
29261 LIBPTHREAD="$LIBPTHREAD -lc_r"
29263 linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
29264 if test "$CXX" = "KCC"; then
29265 CXXFLAGS="$CXXFLAGS --thread_safe"
29266 NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
29271 esac
29276 echo "$as_me:$LINENO: checking for extra includes" >&5
29277 echo $ECHO_N "checking for extra includes... $ECHO_C" >&6
29279 # Check whether --with-extra-includes or --without-extra-includes was given.
29280 if test "${with_extra_includes+set}" = set; then
29281 withval="$with_extra_includes"
29282 kde_use_extra_includes="$withval"
29283 else
29284 kde_use_extra_includes=NONE
29287 kde_extra_includes=
29288 if test -n "$kde_use_extra_includes" && \
29289 test "$kde_use_extra_includes" != "NONE"; then
29291 ac_save_ifs=$IFS
29292 IFS=':'
29293 for dir in $kde_use_extra_includes; do
29294 kde_extra_includes="$kde_extra_includes $dir"
29295 USER_INCLUDES="$USER_INCLUDES -I$dir"
29296 done
29297 IFS=$ac_save_ifs
29298 kde_use_extra_includes="added"
29299 else
29300 kde_use_extra_includes="no"
29304 echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
29305 echo "${ECHO_T}$kde_use_extra_includes" >&6
29307 kde_extra_libs=
29308 echo "$as_me:$LINENO: checking for extra libs" >&5
29309 echo $ECHO_N "checking for extra libs... $ECHO_C" >&6
29311 # Check whether --with-extra-libs or --without-extra-libs was given.
29312 if test "${with_extra_libs+set}" = set; then
29313 withval="$with_extra_libs"
29314 kde_use_extra_libs=$withval
29315 else
29316 kde_use_extra_libs=NONE
29319 if test -n "$kde_use_extra_libs" && \
29320 test "$kde_use_extra_libs" != "NONE"; then
29322 ac_save_ifs=$IFS
29323 IFS=':'
29324 for dir in $kde_use_extra_libs; do
29325 kde_extra_libs="$kde_extra_libs $dir"
29326 KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
29327 USER_LDFLAGS="$USER_LDFLAGS -L$dir"
29328 done
29329 IFS=$ac_save_ifs
29330 kde_use_extra_libs="added"
29331 else
29332 kde_use_extra_libs="no"
29337 echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
29338 echo "${ECHO_T}$kde_use_extra_libs" >&6
29343 echo "$as_me:$LINENO: checking for libz" >&5
29344 echo $ECHO_N "checking for libz... $ECHO_C" >&6
29345 if test "${ac_cv_lib_z+set}" = set; then
29346 echo $ECHO_N "(cached) $ECHO_C" >&6
29347 else
29349 kde_save_LIBS="$LIBS"
29350 LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
29351 kde_save_CFLAGS="$CFLAGS"
29352 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29353 cat >conftest.$ac_ext <<_ACEOF
29354 /* confdefs.h. */
29355 _ACEOF
29356 cat confdefs.h >>conftest.$ac_ext
29357 cat >>conftest.$ac_ext <<_ACEOF
29358 /* end confdefs.h. */
29360 #include<zlib.h>
29363 main ()
29366 char buf[42];
29367 gzFile f = (gzFile) 0;
29368 /* this would segfault.. but we only link, don't run */
29369 (void) gzgets(f, buf, sizeof(buf));
29371 return (zlibVersion() == ZLIB_VERSION);
29374 return 0;
29376 _ACEOF
29377 rm -f conftest.$ac_objext conftest$ac_exeext
29378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29379 (eval $ac_link) 2>conftest.er1
29380 ac_status=$?
29381 grep -v '^ *+' conftest.er1 >conftest.err
29382 rm -f conftest.er1
29383 cat conftest.err >&5
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); } &&
29386 { ac_try='test -z "$ac_c_werror_flag"
29387 || test ! -s conftest.err'
29388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29389 (eval $ac_try) 2>&5
29390 ac_status=$?
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); }; } &&
29393 { ac_try='test -s conftest$ac_exeext'
29394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29395 (eval $ac_try) 2>&5
29396 ac_status=$?
29397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398 (exit $ac_status); }; }; then
29399 eval "ac_cv_lib_z='-lz'"
29400 else
29401 echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29404 eval "ac_cv_lib_z=no"
29406 rm -f conftest.err conftest.$ac_objext \
29407 conftest$ac_exeext conftest.$ac_ext
29408 LIBS="$kde_save_LIBS"
29409 CFLAGS="$kde_save_CFLAGS"
29412 if test ! "$ac_cv_lib_z" = no; then
29414 cat >>confdefs.h <<_ACEOF
29415 #define HAVE_LIBZ 1
29416 _ACEOF
29418 LIBZ="$ac_cv_lib_z"
29419 echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
29420 echo "${ECHO_T}$ac_cv_lib_z" >&6
29421 else
29422 { { echo "$as_me:$LINENO: error: not found.
29423 Possibly configure picks up an outdated version
29424 installed by XFree86. Remove it from your system.
29426 Check your installation and look into config.log" >&5
29427 echo "$as_me: error: not found.
29428 Possibly configure picks up an outdated version
29429 installed by XFree86. Remove it from your system.
29431 Check your installation and look into config.log" >&2;}
29432 { (exit 1); exit 1; }; }
29433 LIBZ=""
29440 echo "$as_me:$LINENO: checking for libpng" >&5
29441 echo $ECHO_N "checking for libpng... $ECHO_C" >&6
29442 if test "${ac_cv_lib_png+set}" = set; then
29443 echo $ECHO_N "(cached) $ECHO_C" >&6
29444 else
29446 kde_save_LIBS="$LIBS"
29447 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
29448 LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
29449 else
29450 LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
29452 kde_save_CFLAGS="$CFLAGS"
29453 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29455 cat >conftest.$ac_ext <<_ACEOF
29456 /* confdefs.h. */
29457 _ACEOF
29458 cat confdefs.h >>conftest.$ac_ext
29459 cat >>conftest.$ac_ext <<_ACEOF
29460 /* end confdefs.h. */
29462 #include<png.h>
29465 main ()
29468 png_structp png_ptr = png_create_read_struct( /* image ptr */
29469 PNG_LIBPNG_VER_STRING, 0, 0, 0 );
29470 return( png_ptr != 0 );
29473 return 0;
29475 _ACEOF
29476 rm -f conftest.$ac_objext conftest$ac_exeext
29477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29478 (eval $ac_link) 2>conftest.er1
29479 ac_status=$?
29480 grep -v '^ *+' conftest.er1 >conftest.err
29481 rm -f conftest.er1
29482 cat conftest.err >&5
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); } &&
29485 { ac_try='test -z "$ac_c_werror_flag"
29486 || test ! -s conftest.err'
29487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29488 (eval $ac_try) 2>&5
29489 ac_status=$?
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); }; } &&
29492 { ac_try='test -s conftest$ac_exeext'
29493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29494 (eval $ac_try) 2>&5
29495 ac_status=$?
29496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29497 (exit $ac_status); }; }; then
29498 eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
29499 else
29500 echo "$as_me: failed program was:" >&5
29501 sed 's/^/| /' conftest.$ac_ext >&5
29503 eval "ac_cv_lib_png=no"
29506 rm -f conftest.err conftest.$ac_objext \
29507 conftest$ac_exeext conftest.$ac_ext
29508 LIBS="$kde_save_LIBS"
29509 CFLAGS="$kde_save_CFLAGS"
29512 if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
29514 cat >>confdefs.h <<_ACEOF
29515 #define HAVE_LIBPNG 1
29516 _ACEOF
29518 LIBPNG="$ac_cv_lib_png"
29520 echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
29521 echo "${ECHO_T}$ac_cv_lib_png" >&6
29522 else
29523 echo "$as_me:$LINENO: result: no" >&5
29524 echo "${ECHO_T}no" >&6
29525 LIBPNG=""
29531 echo "$as_me:$LINENO: checking for libjpeg6b" >&5
29532 echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6
29533 if test "${ac_cv_lib_jpeg_6b+set}" = set; then
29534 echo $ECHO_N "(cached) $ECHO_C" >&6
29535 else
29537 ac_save_LIBS="$LIBS"
29538 LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
29539 ac_save_CFLAGS="$CFLAGS"
29540 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29541 cat >conftest.$ac_ext <<_ACEOF
29542 /* confdefs.h. */
29543 _ACEOF
29544 cat confdefs.h >>conftest.$ac_ext
29545 cat >>conftest.$ac_ext <<_ACEOF
29546 /* end confdefs.h. */
29548 #ifdef __cplusplus
29549 extern "C" {
29550 #endif
29551 void jpeg_CreateDecompress();
29552 #ifdef __cplusplus
29554 #endif
29557 main ()
29559 jpeg_CreateDecompress();
29561 return 0;
29563 _ACEOF
29564 rm -f conftest.$ac_objext conftest$ac_exeext
29565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29566 (eval $ac_link) 2>conftest.er1
29567 ac_status=$?
29568 grep -v '^ *+' conftest.er1 >conftest.err
29569 rm -f conftest.er1
29570 cat conftest.err >&5
29571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572 (exit $ac_status); } &&
29573 { ac_try='test -z "$ac_c_werror_flag"
29574 || test ! -s conftest.err'
29575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29576 (eval $ac_try) 2>&5
29577 ac_status=$?
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); }; } &&
29580 { ac_try='test -s conftest$ac_exeext'
29581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29582 (eval $ac_try) 2>&5
29583 ac_status=$?
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); }; }; then
29586 eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
29587 else
29588 echo "$as_me: failed program was:" >&5
29589 sed 's/^/| /' conftest.$ac_ext >&5
29591 eval "ac_cv_lib_jpeg_6b=no"
29593 rm -f conftest.err conftest.$ac_objext \
29594 conftest$ac_exeext conftest.$ac_ext
29595 LIBS="$ac_save_LIBS"
29596 CFLAGS="$ac_save_CFLAGS"
29601 if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
29602 LIBJPEG="$ac_cv_lib_jpeg_6b"
29603 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
29604 echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6
29605 else
29606 echo "$as_me:$LINENO: result: no" >&5
29607 echo "${ECHO_T}no" >&6
29609 echo "$as_me:$LINENO: checking for libjpeg" >&5
29610 echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6
29611 if test "${ac_cv_lib_jpeg_normal+set}" = set; then
29612 echo $ECHO_N "(cached) $ECHO_C" >&6
29613 else
29615 ac_save_LIBS="$LIBS"
29616 LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
29617 ac_save_CFLAGS="$CFLAGS"
29618 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29619 cat >conftest.$ac_ext <<_ACEOF
29620 /* confdefs.h. */
29621 _ACEOF
29622 cat confdefs.h >>conftest.$ac_ext
29623 cat >>conftest.$ac_ext <<_ACEOF
29624 /* end confdefs.h. */
29626 #ifdef __cplusplus
29627 extern "C" {
29628 #endif
29629 void jpeg_CreateDecompress();
29630 #ifdef __cplusplus
29632 #endif
29635 main ()
29637 jpeg_CreateDecompress();
29639 return 0;
29641 _ACEOF
29642 rm -f conftest.$ac_objext conftest$ac_exeext
29643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29644 (eval $ac_link) 2>conftest.er1
29645 ac_status=$?
29646 grep -v '^ *+' conftest.er1 >conftest.err
29647 rm -f conftest.er1
29648 cat conftest.err >&5
29649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650 (exit $ac_status); } &&
29651 { ac_try='test -z "$ac_c_werror_flag"
29652 || test ! -s conftest.err'
29653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654 (eval $ac_try) 2>&5
29655 ac_status=$?
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; } &&
29658 { ac_try='test -s conftest$ac_exeext'
29659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29660 (eval $ac_try) 2>&5
29661 ac_status=$?
29662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); }; }; then
29664 eval "ac_cv_lib_jpeg_normal=-ljpeg"
29665 else
29666 echo "$as_me: failed program was:" >&5
29667 sed 's/^/| /' conftest.$ac_ext >&5
29669 eval "ac_cv_lib_jpeg_normal=no"
29671 rm -f conftest.err conftest.$ac_objext \
29672 conftest$ac_exeext conftest.$ac_ext
29673 LIBS="$ac_save_LIBS"
29674 CFLAGS="$ac_save_CFLAGS"
29679 if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
29680 LIBJPEG="$ac_cv_lib_jpeg_normal"
29681 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
29682 echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6
29683 else
29684 echo "$as_me:$LINENO: result: no" >&5
29685 echo "${ECHO_T}no" >&6
29687 LIBJPEG=
29698 jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
29700 jpeg_incdir=NO
29701 for i in $jpeg_incdirs;
29703 for j in jpeglib.h;
29705 echo "configure: 29705: $i/$j" >&5
29706 if test -r "$i/$j"; then
29707 echo "taking that" >&5
29708 jpeg_incdir=$i
29709 break 2
29711 done
29712 done
29714 test "x$jpeg_incdir" = xNO && jpeg_incdir=
29716 if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
29718 cat >>confdefs.h <<_ACEOF
29719 #define HAVE_LIBJPEG 1
29720 _ACEOF
29722 else
29723 if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
29724 { echo "$as_me:$LINENO: WARNING:
29725 There is an installation error in jpeg support. You seem to have only one
29726 of either the headers _or_ the libraries installed. You may need to either
29727 provide correct --with-extra-... options, or the development package of
29728 libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
29729 Disabling JPEG support.
29730 " >&5
29731 echo "$as_me: WARNING:
29732 There is an installation error in jpeg support. You seem to have only one
29733 of either the headers _or_ the libraries installed. You may need to either
29734 provide correct --with-extra-... options, or the development package of
29735 libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
29736 Disabling JPEG support.
29737 " >&2;}
29738 else
29739 { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
29740 echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
29742 jpeg_incdir=
29743 LIBJPEG=
29752 echo "$as_me:$LINENO: checking for perl" >&5
29753 echo $ECHO_N "checking for perl... $ECHO_C" >&6
29754 if test -n "$PERL"; then
29755 kde_cv_path="$PERL";
29756 else
29757 kde_cache=`echo perl | sed 'y%./+-%__p_%'`
29759 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29761 else
29763 kde_cv_path="NONE"
29764 kde_save_IFS=$IFS
29765 IFS=':'
29766 dirs=""
29767 for dir in $PATH; do
29768 dirs="$dirs $dir"
29769 done
29770 if test -z ""; then dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
29771 else dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
29773 IFS=$kde_save_IFS
29775 for dir in $dirs; do
29776 if test -x "$dir/perl"; then
29777 if test -n ""
29778 then
29779 evalstr="$dir/perl 2>&1 "
29780 if eval $evalstr; then
29781 kde_cv_path="$dir/perl"
29782 break
29784 else
29785 kde_cv_path="$dir/perl"
29786 break
29789 done
29791 eval "kde_cv_path_$kde_cache=$kde_cv_path"
29797 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
29801 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
29802 echo "$as_me:$LINENO: result: not found" >&5
29803 echo "${ECHO_T}not found" >&6
29805 { { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
29806 We need perl to generate some code." >&5
29807 echo "$as_me: error: No Perl found in your $PATH.
29808 We need perl to generate some code." >&2;}
29809 { (exit 1); exit 1; }; }
29811 else
29812 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
29813 echo "${ECHO_T}$kde_cv_path" >&6
29814 PERL=$kde_cv_path
29827 # Check whether --enable-mt or --disable-mt was given.
29828 if test "${enable_mt+set}" = set; then
29829 enableval="$enable_mt"
29830 kde_use_qt_mt=$enableval
29831 else
29833 if test $kde_qtver = 3; then
29834 kde_use_qt_mt=yes
29835 else
29836 kde_use_qt_mt=no
29842 USING_QT_MT=""
29845 KDE_MT_LDFLAGS=
29846 KDE_MT_LIBS=
29847 if test "x$kde_use_qt_mt" = "xyes"; then
29851 if test -z "$LIBPTHREAD"; then
29852 if test -z "$USE_THREADS"; then
29853 kde_check_threading_default=no
29854 else
29855 kde_check_threading_default=yes
29857 else
29858 kde_check_threading_default=yes
29860 # Check whether --enable-threading or --disable-threading was given.
29861 if test "${enable_threading+set}" = set; then
29862 enableval="$enable_threading"
29863 kde_use_threading=$enableval
29864 else
29865 kde_use_threading=$kde_check_threading_default
29867 if test "x$kde_use_threading" = "xyes"; then
29869 cat >>confdefs.h <<\_ACEOF
29870 #define HAVE_LIBPTHREAD 1
29871 _ACEOF
29875 if test "x$kde_use_threading" = "xyes"; then
29876 CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
29877 KDE_MT_LDFLAGS="$USE_THREADS"
29878 KDE_MT_LIBS="$LIBPTHREAD"
29879 else
29880 kde_use_qt_mt=no
29886 kde_qt_was_given=yes
29888 if test -z "$LIBQT_GLOB"; then
29889 if test "x$kde_use_qt_emb" = "xyes"; then
29890 LIBQT_GLOB="libqte.*"
29891 else
29892 LIBQT_GLOB="libqt.*"
29896 if test "x$kde_use_qt_emb" = "xyes"; then
29897 qtlib="qte"
29898 else
29899 qtlib="qt"
29902 kde_int_qt="-l$qtlib"
29904 if test -z "$LIBQPE"; then
29905 if test "x$kde_use_qt_emb" = "xyes"; then
29906 if test "x$kde_use_qt_emb_palm" = "xyes"; then
29907 LIB_QPE="-lqpe"
29908 else
29909 LIB_QPE=""
29911 else
29912 LIB_QPE=""
29917 if test "x$kde_use_qt_mt" = "xyes"; then
29918 LIBQT="-l$qtlib-mt"
29919 kde_int_qt="-l$qtlib-mt"
29920 LIBQT_GLOB="lib$qtlib-mt.*"
29921 USING_QT_MT="using -mt"
29922 else
29923 LIBQT="-l$qtlib"
29926 if test $kde_qtver != 1; then
29930 LIBQT="$LIBQT $LIBPNG $LIBJPEG"
29933 if test $kde_qtver = 3; then
29935 LIBQT="$LIBQT $LIBDL"
29938 echo "$as_me:$LINENO: checking for Qt" >&5
29939 echo $ECHO_N "checking for Qt... $ECHO_C" >&6
29941 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
29942 LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
29944 ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
29945 qt_libraries=""
29946 qt_includes=""
29948 # Check whether --with-qt-dir or --without-qt-dir was given.
29949 if test "${with_qt_dir+set}" = set; then
29950 withval="$with_qt_dir"
29951 ac_qt_includes="$withval"/include
29952 ac_qt_libraries="$withval"/lib${kdelibsuff}
29953 ac_qt_bindir="$withval"/bin
29958 # Check whether --with-qt-includes or --without-qt-includes was given.
29959 if test "${with_qt_includes+set}" = set; then
29960 withval="$with_qt_includes"
29962 ac_qt_includes="$withval"
29966 kde_qt_libs_given=no
29969 # Check whether --with-qt-libraries or --without-qt-libraries was given.
29970 if test "${with_qt_libraries+set}" = set; then
29971 withval="$with_qt_libraries"
29972 ac_qt_libraries="$withval"
29973 kde_qt_libs_given=yes
29977 if test "${ac_cv_have_qt+set}" = set; then
29978 echo $ECHO_N "(cached) $ECHO_C" >&6
29979 else
29980 #try to guess Qt locations
29982 qt_incdirs=""
29983 for dir in $kde_qt_dirs; do
29984 qt_incdirs="$qt_incdirs $dir/include $dir"
29985 done
29986 qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
29987 if test ! "$ac_qt_includes" = "NO"; then
29988 qt_incdirs="$ac_qt_includes $qt_incdirs"
29991 if test "$kde_qtver" != "1"; then
29992 kde_qt_header=qstyle.h
29993 else
29994 kde_qt_header=qglobal.h
29998 qt_incdir=NO
29999 for i in $qt_incdirs;
30001 for j in $kde_qt_header;
30003 echo "configure: 30003: $i/$j" >&5
30004 if test -r "$i/$j"; then
30005 echo "taking that" >&5
30006 qt_incdir=$i
30007 break 2
30009 done
30010 done
30012 ac_qt_includes="$qt_incdir"
30014 qt_libdirs=""
30015 for dir in $kde_qt_dirs; do
30016 qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
30017 done
30018 qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
30019 if test ! "$ac_qt_libraries" = "NO"; then
30020 qt_libdir=$ac_qt_libraries
30021 else
30022 qt_libdirs="$ac_qt_libraries $qt_libdirs"
30023 # if the Qt was given, the chance is too big that libqt.* doesn't exist
30024 qt_libdir=NONE
30025 for dir in $qt_libdirs; do
30026 try="ls -1 $dir/${LIBQT_GLOB}"
30027 if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
30028 done
30030 for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30031 if test -e "$a"; then
30032 LIBQT="$LIBQT ${kde_int_qt}_incremental"
30033 break
30035 done
30037 ac_qt_libraries="$qt_libdir"
30041 ac_ext=cc
30042 ac_cpp='$CXXCPP $CPPFLAGS'
30043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30047 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30051 ac_cxxflags_safe="$CXXFLAGS"
30052 ac_ldflags_safe="$LDFLAGS"
30053 ac_libs_safe="$LIBS"
30055 CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
30056 LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
30057 LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
30061 cat > conftest.$ac_ext <<EOF
30062 #include "confdefs.h"
30063 #include <qglobal.h>
30064 #include <qapplication.h>
30066 if test "$kde_qtver" = "2"; then
30067 cat >> conftest.$ac_ext <<EOF
30068 #include <qevent.h>
30069 #include <qstring.h>
30070 #include <qstyle.h>
30073 if test $kde_qtsubver -gt 0; then
30074 cat >> conftest.$ac_ext <<EOF
30075 #if QT_VERSION < 210
30076 #error 1
30077 #endif
30082 if test "$kde_qtver" = "3"; then
30083 cat >> conftest.$ac_ext <<EOF
30084 #include <qcursor.h>
30085 #include <qstylefactory.h>
30086 #include <private/qucomextra_p.h>
30090 echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30091 cat >> conftest.$ac_ext <<EOF
30092 #error 1
30093 #endif
30095 int main() {
30097 if test "$kde_qtver" = "2"; then
30098 cat >> conftest.$ac_ext <<EOF
30099 QStringList *t = new QStringList();
30100 Q_UNUSED(t);
30102 if test $kde_qtsubver -gt 0; then
30103 cat >> conftest.$ac_ext <<EOF
30104 QString s;
30105 s.setLatin1("Elvis is alive", 14);
30109 if test "$kde_qtver" = "3"; then
30110 cat >> conftest.$ac_ext <<EOF
30111 (void)QStyleFactory::create(QString::null);
30112 QCursor c(Qt::WhatsThisCursor);
30115 cat >> conftest.$ac_ext <<EOF
30116 return 0;
30121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30122 (eval $ac_link) 2>&5
30123 ac_status=$?
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } && test -s conftest; then
30126 rm -f conftest*
30127 else
30128 echo "configure: failed program was:" >&5
30129 cat conftest.$ac_ext >&5
30130 ac_qt_libraries="NO"
30132 rm -f conftest*
30133 CXXFLAGS="$ac_cxxflags_safe"
30134 LDFLAGS="$ac_ldflags_safe"
30135 LIBS="$ac_libs_safe"
30137 ac_ext=c
30138 ac_cpp='$CPP $CPPFLAGS'
30139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30143 if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
30144 ac_cv_have_qt="have_qt=no"
30145 ac_qt_notfound=""
30146 missing_qt_mt=""
30147 if test "$ac_qt_includes" = NO; then
30148 if test "$ac_qt_libraries" = NO; then
30149 ac_qt_notfound="(headers and libraries)";
30150 else
30151 ac_qt_notfound="(headers)";
30153 else
30154 if test "x$kde_use_qt_mt" = "xyes"; then
30155 missing_qt_mt="
30156 Make sure that you have compiled Qt with thread support!"
30157 ac_qt_notfound="(library $qtlib-mt)";
30158 else
30159 ac_qt_notfound="(library $qtlib)";
30163 { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30164 For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
30165 echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30166 For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
30167 { (exit 1); exit 1; }; }
30168 else
30169 have_qt="yes"
30175 eval "$ac_cv_have_qt"
30177 if test "$have_qt" != yes; then
30178 echo "$as_me:$LINENO: result: $have_qt" >&5
30179 echo "${ECHO_T}$have_qt" >&6;
30180 else
30181 ac_cv_have_qt="have_qt=yes \
30182 ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
30183 echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
30184 echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6
30186 qt_libraries="$ac_qt_libraries"
30187 qt_includes="$ac_qt_includes"
30190 if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
30193 echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
30194 echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6
30195 if test "${kde_cv_qt_direct+set}" = set; then
30196 echo $ECHO_N "(cached) $ECHO_C" >&6
30197 else
30201 ac_ext=cc
30202 ac_cpp='$CXXCPP $CPPFLAGS'
30203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30207 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30210 ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
30211 ac_LIBRARY_PATH="$LIBRARY_PATH"
30212 ac_cxxflags_safe="$CXXFLAGS"
30213 ac_ldflags_safe="$LDFLAGS"
30214 ac_libs_safe="$LIBS"
30216 CXXFLAGS="$CXXFLAGS -I$qt_includes"
30217 LDFLAGS="$LDFLAGS $X_LDFLAGS"
30218 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30219 LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
30220 else
30221 LIBS="$LIBQT $LIBSOCKET"
30223 LD_LIBRARY_PATH=
30224 export LD_LIBRARY_PATH
30225 LIBRARY_PATH=
30226 export LIBRARY_PATH
30230 cat > conftest.$ac_ext <<EOF
30231 #include "confdefs.h"
30232 #include <qglobal.h>
30233 #include <qapplication.h>
30235 if test "$kde_qtver" = "2"; then
30236 cat >> conftest.$ac_ext <<EOF
30237 #include <qevent.h>
30238 #include <qstring.h>
30239 #include <qstyle.h>
30242 if test $kde_qtsubver -gt 0; then
30243 cat >> conftest.$ac_ext <<EOF
30244 #if QT_VERSION < 210
30245 #error 1
30246 #endif
30251 if test "$kde_qtver" = "3"; then
30252 cat >> conftest.$ac_ext <<EOF
30253 #include <qcursor.h>
30254 #include <qstylefactory.h>
30255 #include <private/qucomextra_p.h>
30259 echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30260 cat >> conftest.$ac_ext <<EOF
30261 #error 1
30262 #endif
30264 int main() {
30266 if test "$kde_qtver" = "2"; then
30267 cat >> conftest.$ac_ext <<EOF
30268 QStringList *t = new QStringList();
30269 Q_UNUSED(t);
30271 if test $kde_qtsubver -gt 0; then
30272 cat >> conftest.$ac_ext <<EOF
30273 QString s;
30274 s.setLatin1("Elvis is alive", 14);
30278 if test "$kde_qtver" = "3"; then
30279 cat >> conftest.$ac_ext <<EOF
30280 (void)QStyleFactory::create(QString::null);
30281 QCursor c(Qt::WhatsThisCursor);
30284 cat >> conftest.$ac_ext <<EOF
30285 return 0;
30290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30291 (eval $ac_link) 2>&5
30292 ac_status=$?
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); } && test -s conftest; then
30295 kde_cv_qt_direct="yes"
30296 else
30297 kde_cv_qt_direct="no"
30298 echo "configure: failed program was:" >&5
30299 cat conftest.$ac_ext >&5
30302 rm -f conftest*
30303 CXXFLAGS="$ac_cxxflags_safe"
30304 LDFLAGS="$ac_ldflags_safe"
30305 LIBS="$ac_libs_safe"
30307 LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
30308 export LD_LIBRARY_PATH
30309 LIBRARY_PATH="$ac_LIBRARY_PATH"
30310 export LIBRARY_PATH
30311 ac_ext=c
30312 ac_cpp='$CPP $CPPFLAGS'
30313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30321 if test "$kde_cv_qt_direct" = "yes"; then
30322 echo "$as_me:$LINENO: result: yes" >&5
30323 echo "${ECHO_T}yes" >&6
30324 qt_libraries=
30325 else
30326 echo "$as_me:$LINENO: result: no" >&5
30327 echo "${ECHO_T}no" >&6
30336 if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
30337 QT_INCLUDES=""
30338 else
30339 QT_INCLUDES="-I$qt_includes"
30340 all_includes="$QT_INCLUDES $all_includes"
30343 if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
30344 QT_LDFLAGS=""
30345 else
30346 QT_LDFLAGS="-L$qt_libraries"
30347 all_libraries="$QT_LDFLAGS $all_libraries"
30349 test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
30355 qt_bindirs=""
30356 for dir in $kde_qt_dirs; do
30357 qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
30358 done
30359 qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
30360 if test ! "$ac_qt_bindir" = "NO"; then
30361 qt_bindirs="$ac_qt_bindir $qt_bindirs"
30365 echo "$as_me:$LINENO: checking for moc" >&5
30366 echo $ECHO_N "checking for moc... $ECHO_C" >&6
30367 if test -n "$MOC"; then
30368 kde_cv_path="$MOC";
30369 else
30370 kde_cache=`echo moc | sed 'y%./+-%__p_%'`
30372 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
30373 echo $ECHO_N "(cached) $ECHO_C" >&6
30374 else
30376 kde_cv_path="NONE"
30377 kde_save_IFS=$IFS
30378 IFS=':'
30379 dirs=""
30380 for dir in $PATH; do
30381 dirs="$dirs $dir"
30382 done
30383 if test -z ""; then dirs="$qt_bindirs $dirs"
30384 else dirs="$dirs $qt_bindirs"
30386 IFS=$kde_save_IFS
30388 for dir in $dirs; do
30389 if test -x "$dir/moc"; then
30390 if test -n ""
30391 then
30392 evalstr="$dir/moc 2>&1 "
30393 if eval $evalstr; then
30394 kde_cv_path="$dir/moc"
30395 break
30397 else
30398 kde_cv_path="$dir/moc"
30399 break
30402 done
30404 eval "kde_cv_path_$kde_cache=$kde_cv_path"
30410 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30414 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30415 echo "$as_me:$LINENO: result: not found" >&5
30416 echo "${ECHO_T}not found" >&6
30418 { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
30419 Please check whether you installed Qt correctly.
30420 You need to have a running moc binary.
30421 configure tried to run $ac_cv_path_moc and the test didn't
30422 succeed. If configure shouldn't have tried this one, set
30423 the environment variable MOC to the right one before running
30424 configure.
30425 " >&5
30426 echo "$as_me: error: No Qt meta object compiler (moc) found!
30427 Please check whether you installed Qt correctly.
30428 You need to have a running moc binary.
30429 configure tried to run $ac_cv_path_moc and the test didn't
30430 succeed. If configure shouldn't have tried this one, set
30431 the environment variable MOC to the right one before running
30432 configure.
30433 " >&2;}
30434 { (exit 1); exit 1; }; }
30436 else
30437 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30438 echo "${ECHO_T}$kde_cv_path" >&6
30439 MOC=$kde_cv_path
30443 if test -z "$UIC_NOT_NEEDED"; then
30445 echo "$as_me:$LINENO: checking for uic" >&5
30446 echo $ECHO_N "checking for uic... $ECHO_C" >&6
30447 if test -n "$UIC_PATH"; then
30448 kde_cv_path="$UIC_PATH";
30449 else
30450 kde_cache=`echo uic | sed 'y%./+-%__p_%'`
30452 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
30453 echo $ECHO_N "(cached) $ECHO_C" >&6
30454 else
30456 kde_cv_path="NONE"
30457 kde_save_IFS=$IFS
30458 IFS=':'
30459 dirs=""
30460 for dir in $PATH; do
30461 dirs="$dirs $dir"
30462 done
30463 if test -z ""; then dirs="$qt_bindirs $dirs"
30464 else dirs="$dirs $qt_bindirs"
30466 IFS=$kde_save_IFS
30468 for dir in $dirs; do
30469 if test -x "$dir/uic"; then
30470 if test -n ""
30471 then
30472 evalstr="$dir/uic 2>&1 "
30473 if eval $evalstr; then
30474 kde_cv_path="$dir/uic"
30475 break
30477 else
30478 kde_cv_path="$dir/uic"
30479 break
30482 done
30484 eval "kde_cv_path_$kde_cache=$kde_cv_path"
30490 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30494 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30495 echo "$as_me:$LINENO: result: not found" >&5
30496 echo "${ECHO_T}not found" >&6
30497 UIC_PATH=""
30498 else
30499 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30500 echo "${ECHO_T}$kde_cv_path" >&6
30501 UIC_PATH=$kde_cv_path
30505 if test -z "$UIC_PATH" ; then
30507 { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
30508 Please check whether you installed Qt correctly.
30509 You need to have a running uic binary.
30510 configure tried to run $ac_cv_path_uic and the test didn't
30511 succeed. If configure shouldn't have tried this one, set
30512 the environment variable UIC to the right one before running
30513 configure.
30514 " >&5
30515 echo "$as_me: WARNING: No Qt ui compiler (uic) found!
30516 Please check whether you installed Qt correctly.
30517 You need to have a running uic binary.
30518 configure tried to run $ac_cv_path_uic and the test didn't
30519 succeed. If configure shouldn't have tried this one, set
30520 the environment variable UIC to the right one before running
30521 configure.
30522 " >&2;}
30524 exit 1
30525 else
30526 UIC=$UIC_PATH
30528 if test $kde_qtver = 3; then
30530 echo "$as_me:$LINENO: checking whether uic supports -L " >&5
30531 echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6
30532 kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
30533 if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
30534 echo $ECHO_N "(cached) $ECHO_C" >&6
30535 else
30537 cat >conftest.ui <<EOT
30538 <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
30540 ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
30541 if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
30542 (eval $ac_uic_testrun) 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; then
30546 eval "kde_cv_prog_uic_$kde_cache=yes"
30547 else
30548 eval "kde_cv_prog_uic_$kde_cache=no"
30550 rm -f conftest*
30555 if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
30556 echo "$as_me:$LINENO: result: yes" >&5
30557 echo "${ECHO_T}yes" >&6
30559 ac_uic_supports_libpath=yes
30560 else
30561 echo "$as_me:$LINENO: result: no" >&5
30562 echo "${ECHO_T}no" >&6
30564 ac_uic_supports_libpath=no
30568 echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
30569 echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6
30570 kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
30571 if eval "test \"\${kde_cv_prog_uic_$kde_cache+set}\" = set"; then
30572 echo $ECHO_N "(cached) $ECHO_C" >&6
30573 else
30575 cat >conftest.ui <<EOT
30576 <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
30578 ac_uic_testrun="$UIC_PATH -nounload conftest.ui >/dev/null"
30579 if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
30580 (eval $ac_uic_testrun) 2>&5
30581 ac_status=$?
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; then
30584 eval "kde_cv_prog_uic_$kde_cache=yes"
30585 else
30586 eval "kde_cv_prog_uic_$kde_cache=no"
30588 rm -f conftest*
30593 if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
30594 echo "$as_me:$LINENO: result: yes" >&5
30595 echo "${ECHO_T}yes" >&6
30597 ac_uic_supports_nounload=yes
30598 else
30599 echo "$as_me:$LINENO: result: no" >&5
30600 echo "${ECHO_T}no" >&6
30602 ac_uic_supports_nounload=no
30606 if test x$ac_uic_supports_libpath = xyes; then
30607 UIC="$UIC -L \$(kde_widgetdir)"
30609 if test x$ac_uic_supports_nounload = xyes; then
30610 UIC="$UIC -nounload"
30614 else
30615 UIC="echo uic not available: "
30621 UIC_TR="i18n"
30622 if test $kde_qtver = 3; then
30623 UIC_TR="tr2i18n"
30630 if test -n "$LIBJPEG"; then
30631 echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
30632 echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6
30633 if test "${kde_cv_qt_jpeg+set}" = set; then
30634 echo $ECHO_N "(cached) $ECHO_C" >&6
30635 else
30639 ac_ext=cc
30640 ac_cpp='$CXXCPP $CPPFLAGS'
30641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30645 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30648 ac_save_LIBS="$LIBS"
30649 LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
30650 LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
30651 ac_save_CXXFLAGS="$CXXFLAGS"
30652 CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
30653 cat >conftest.$ac_ext <<_ACEOF
30654 /* confdefs.h. */
30655 _ACEOF
30656 cat confdefs.h >>conftest.$ac_ext
30657 cat >>conftest.$ac_ext <<_ACEOF
30658 /* end confdefs.h. */
30659 #include <qapplication.h>
30661 main ()
30664 int argc;
30665 char** argv;
30666 QApplication app(argc, argv);
30668 return 0;
30670 _ACEOF
30671 rm -f conftest.$ac_objext conftest$ac_exeext
30672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30673 (eval $ac_link) 2>conftest.er1
30674 ac_status=$?
30675 grep -v '^ *+' conftest.er1 >conftest.err
30676 rm -f conftest.er1
30677 cat conftest.err >&5
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); } &&
30680 { ac_try='test -z "$ac_cxx_werror_flag"
30681 || test ! -s conftest.err'
30682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683 (eval $ac_try) 2>&5
30684 ac_status=$?
30685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 (exit $ac_status); }; } &&
30687 { ac_try='test -s conftest$ac_exeext'
30688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30689 (eval $ac_try) 2>&5
30690 ac_status=$?
30691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30692 (exit $ac_status); }; }; then
30693 eval "kde_cv_qt_jpeg=no"
30694 else
30695 echo "$as_me: failed program was:" >&5
30696 sed 's/^/| /' conftest.$ac_ext >&5
30698 eval "kde_cv_qt_jpeg=yes"
30700 rm -f conftest.err conftest.$ac_objext \
30701 conftest$ac_exeext conftest.$ac_ext
30702 LIBS="$ac_save_LIBS"
30703 CXXFLAGS="$ac_save_CXXFLAGS"
30704 ac_ext=c
30705 ac_cpp='$CPP $CPPFLAGS'
30706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30715 if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
30716 echo "$as_me:$LINENO: result: yes" >&5
30717 echo "${ECHO_T}yes" >&6
30718 LIBJPEG_QT='$(LIBJPEG)'
30719 else
30720 echo "$as_me:$LINENO: result: no" >&5
30721 echo "${ECHO_T}no" >&6
30722 LIBJPEG_QT=
30727 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30728 LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
30729 else
30730 LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
30732 test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
30733 for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30734 if test -e "$a"; then
30735 LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
30736 break
30738 done
30752 echo "$as_me:$LINENO: checking for rpath" >&5
30753 echo $ECHO_N "checking for rpath... $ECHO_C" >&6
30754 # Check whether --enable-rpath or --disable-rpath was given.
30755 if test "${enable_rpath+set}" = set; then
30756 enableval="$enable_rpath"
30757 USE_RPATH=$enableval
30758 else
30759 USE_RPATH=yes
30762 if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
30764 KDE_RPATH="-R \$(libdir)"
30766 if test "$kde_libraries" != "$libdir"; then
30767 KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
30770 if test -n "$qt_libraries"; then
30771 KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
30773 if test -n "$X_LDFLAGS"; then
30774 X_RPATH="-R \$(x_libraries)"
30775 KDE_RPATH="$KDE_RPATH $X_RPATH"
30777 if test -n "$KDE_EXTRA_RPATH"; then
30778 KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
30784 echo "$as_me:$LINENO: result: $USE_RPATH" >&5
30785 echo "${ECHO_T}$USE_RPATH" >&6
30787 echo "$as_me:$LINENO: checking for KDE" >&5
30788 echo $ECHO_N "checking for KDE... $ECHO_C" >&6
30790 if test "${prefix}" != NONE; then
30791 kde_includes=${includedir}
30793 savex=$exec_prefix
30794 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
30795 tmp=$includedir
30796 while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
30797 exec_prefix=$savex
30800 kde_libraries=${libdir}
30802 savex=$exec_prefix
30803 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
30804 tmp=$libdir
30805 while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
30806 exec_prefix=$savex
30809 else
30810 ac_kde_includes=
30811 ac_kde_libraries=
30812 kde_libraries=""
30813 kde_includes=""
30816 if test "${ac_cv_have_kde+set}" = set; then
30817 echo $ECHO_N "(cached) $ECHO_C" >&6
30818 else
30819 #try to guess kde locations
30821 if test "$kde_qtver" = 1; then
30822 kde_check_header="ksock.h"
30823 kde_check_lib="libkdecore.la"
30824 else
30825 kde_check_header="ksharedptr.h"
30826 kde_check_lib="libkio.la"
30829 if test -z ""; then
30831 kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
30832 test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
30833 kde_incdirs="$ac_kde_includes $kde_incdirs"
30835 kde_incdir=NO
30836 for i in $kde_incdirs;
30838 for j in $kde_check_header;
30840 echo "configure: 30840: $i/$j" >&5
30841 if test -r "$i/$j"; then
30842 echo "taking that" >&5
30843 kde_incdir=$i
30844 break 2
30846 done
30847 done
30849 ac_kde_includes="$kde_incdir"
30851 if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
30852 { { echo "$as_me:$LINENO: error:
30853 in the prefix, you've chosen, are no KDE headers installed. This will fail.
30854 So, check this please and use another prefix!" >&5
30855 echo "$as_me: error:
30856 in the prefix, you've chosen, are no KDE headers installed. This will fail.
30857 So, check this please and use another prefix!" >&2;}
30858 { (exit 1); exit 1; }; }
30861 kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
30862 test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
30863 kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
30865 kde_libdir=NO
30866 for i in $kde_libdirs;
30868 for j in $kde_check_lib;
30870 echo "configure: 30870: $i/$j" >&5
30871 if test -r "$i/$j"; then
30872 echo "taking that" >&5
30873 kde_libdir=$i
30874 break 2
30876 done
30877 done
30879 ac_kde_libraries="$kde_libdir"
30881 kde_widgetdir=NO
30883 kde_widgetdir=NO
30884 for i in $kde_libdirs;
30886 for j in "kde3/plugins/designer/kdewidgets.la";
30888 echo "configure: 30888: $i/$j" >&5
30889 if test -r "$i/$j"; then
30890 echo "taking that" >&5
30891 kde_widgetdir=$i
30892 break 2
30894 done
30895 done
30898 if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
30899 { { echo "$as_me:$LINENO: error:
30900 in the prefix, you've chosen, are no KDE libraries installed. This will fail.
30901 So, check this please and use another prefix!" >&5
30902 echo "$as_me: error:
30903 in the prefix, you've chosen, are no KDE libraries installed. This will fail.
30904 So, check this please and use another prefix!" >&2;}
30905 { (exit 1); exit 1; }; }
30908 if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
30909 { { echo "$as_me:$LINENO: error:
30910 I can't find the designer plugins. These are required and should have been installed
30911 by kdelibs" >&5
30912 echo "$as_me: error:
30913 I can't find the designer plugins. These are required and should have been installed
30914 by kdelibs" >&2;}
30915 { (exit 1); exit 1; }; }
30918 if test -n "$kde_widgetdir"; then
30919 kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
30923 if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
30924 ac_cv_have_kde="have_kde=no"
30925 else
30926 ac_cv_have_kde="have_kde=yes \
30927 ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
30930 else
30931 ac_cv_have_kde="have_kde=no"
30937 eval "$ac_cv_have_kde"
30939 if test "$have_kde" != "yes"; then
30940 if test "${prefix}" = NONE; then
30941 ac_kde_prefix="$ac_default_prefix"
30942 else
30943 ac_kde_prefix="$prefix"
30945 if test "$exec_prefix" = NONE; then
30946 ac_kde_exec_prefix="$ac_kde_prefix"
30947 echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
30948 echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6
30949 else
30950 ac_kde_exec_prefix="$exec_prefix"
30951 echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
30952 echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6
30955 kde_libraries="${libdir}"
30956 kde_includes="${includedir}"
30958 else
30959 ac_cv_have_kde="have_kde=yes \
30960 ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
30961 echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
30962 echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6
30964 kde_libraries="$ac_kde_libraries"
30965 kde_includes="$ac_kde_includes"
30970 if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" || test "$kde_includes" = "/usr/include"; then
30971 KDE_INCLUDES=""
30972 else
30973 KDE_INCLUDES="-I$kde_includes"
30974 all_includes="$KDE_INCLUDES $all_includes"
30977 KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
30979 KDE_LDFLAGS="-L$kde_libraries"
30980 if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
30981 all_libraries="$KDE_LDFLAGS $all_libraries"
30989 all_libraries="$all_libraries $USER_LDFLAGS"
30990 all_includes="$all_includes $USER_INCLUDES"
30994 if test -z ""; then
30998 if test x$ac_uic_supports_libpath = xyes; then
31000 echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
31001 echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6
31002 if test "${kde_cv_uic_plugins+set}" = set; then
31003 echo $ECHO_N "(cached) $ECHO_C" >&6
31004 else
31006 cat > actest.ui << EOF
31007 <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
31008 <class>NewConnectionDialog</class>
31009 <widget class="QDialog">
31010 <widget class="KLineEdit">
31011 <property name="name">
31012 <cstring>testInput</cstring>
31013 </property>
31014 </widget>
31015 </widget>
31016 </UI>
31021 kde_cv_uic_plugins=no
31022 kde_line="$UIC_PATH -L $kde_widgetdir"
31023 if test x$ac_uic_supports_nounload = xyes; then
31024 kde_line="$kde_line -nounload"
31026 kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
31027 if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
31028 (eval $kde_line) 2>&5
31029 ac_status=$?
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); }; then
31032 # if you're trying to debug this check and think it's incorrect,
31033 # better check your installation. The check _is_ correct - your
31034 # installation is not.
31035 if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
31036 kde_cv_uic_plugins=yes
31039 rm -f actest.ui actest.cpp
31044 echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
31045 echo "${ECHO_T}$kde_cv_uic_plugins" >&6
31046 if test "$kde_cv_uic_plugins" != yes; then
31047 { { echo "$as_me:$LINENO: error:
31048 you need to install kdelibs first.
31050 If you did install kdelibs, then the Qt version that is picked up by
31051 this configure is not the same version you used to compile kdelibs.
31052 The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
31053 _same Qt version_, compiled with the _same compiler_ and the same Qt
31054 configuration settings.
31055 " >&5
31056 echo "$as_me: error:
31057 you need to install kdelibs first.
31059 If you did install kdelibs, then the Qt version that is picked up by
31060 this configure is not the same version you used to compile kdelibs.
31061 The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
31062 _same Qt version_, compiled with the _same compiler_ and the same Qt
31063 configuration settings.
31064 " >&2;}
31065 { (exit 1); exit 1; }; }
31071 ac_kde_libraries="$kde_libdir"
31077 # Check whether --enable-path-check or --disable-path-check was given.
31078 if test "${enable_path_check+set}" = set; then
31079 enableval="$enable_path_check"
31081 if test "$enableval" = "no";
31082 then ac_use_path_checking="default"
31083 else ac_use_path_checking=""
31086 else
31088 if test "$kde_qtver" = 1;
31089 then ac_use_path_checking=""
31090 else ac_use_path_checking="default"
31099 echo "$as_me:$LINENO: checking for KDE paths" >&5
31100 echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6
31101 kde_result=""
31102 kde_cached_paths=yes
31103 if test "${kde_cv_all_paths+set}" = set; then
31104 echo $ECHO_N "(cached) $ECHO_C" >&6
31105 else
31108 if test "$ac_use_path_checking" = "default"; then
31110 if test -z "$kde_htmldir"; then
31111 kde_htmldir='\${datadir}/doc/HTML'
31113 if test -z "$kde_appsdir"; then
31114 kde_appsdir='\${datadir}/applnk'
31116 if test -z "$kde_icondir"; then
31117 kde_icondir='\${datadir}/icons'
31119 if test -z "$kde_sounddir"; then
31120 kde_sounddir='\${datadir}/sounds'
31122 if test -z "$kde_datadir"; then
31123 kde_datadir='\${datadir}/apps'
31125 if test -z "$kde_locale"; then
31126 kde_locale='\${datadir}/locale'
31128 if test -z "$kde_cgidir"; then
31129 kde_cgidir='\${exec_prefix}/cgi-bin'
31131 if test -z "$kde_confdir"; then
31132 kde_confdir='\${datadir}/config'
31134 if test -z "$kde_kcfgdir"; then
31135 kde_kcfgdir='\${datadir}/config.kcfg'
31137 if test -z "$kde_mimedir"; then
31138 kde_mimedir='\${datadir}/mimelnk'
31140 if test -z "$kde_toolbardir"; then
31141 kde_toolbardir='\${datadir}/toolbar'
31143 if test -z "$kde_wallpaperdir"; then
31144 kde_wallpaperdir='\${datadir}/wallpapers'
31146 if test -z "$kde_templatesdir"; then
31147 kde_templatesdir='\${datadir}/templates'
31149 if test -z "$kde_bindir"; then
31150 kde_bindir='\${exec_prefix}/bin'
31152 if test -z "$kde_servicesdir"; then
31153 kde_servicesdir='\${datadir}/services'
31155 if test -z "$kde_servicetypesdir"; then
31156 kde_servicetypesdir='\${datadir}/servicetypes'
31158 if test -z "$kde_moduledir"; then
31159 if test "$kde_qtver" = "2"; then
31160 kde_moduledir='\${libdir}/kde2'
31161 else
31162 kde_moduledir='\${libdir}/kde3'
31165 if test -z "$kde_styledir"; then
31166 kde_styledir='\${libdir}/kde3/plugins/styles'
31168 if test -z "$kde_widgetdir"; then
31169 kde_widgetdir='\${libdir}/kde3/plugins/designer'
31171 if test -z "$xdg_appsdir"; then
31172 xdg_appsdir='\${datadir}/applications/kde'
31174 if test -z "$xdg_menudir"; then
31175 xdg_menudir='\${sysconfdir}/xdg/menus'
31177 if test -z "$xdg_directorydir"; then
31178 xdg_directorydir='\${datadir}/desktop-directories'
31182 kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31183 kde_htmldir=\"$kde_htmldir\" \
31184 kde_appsdir=\"$kde_appsdir\" \
31185 kde_icondir=\"$kde_icondir\" \
31186 kde_sounddir=\"$kde_sounddir\" \
31187 kde_datadir=\"$kde_datadir\" \
31188 kde_locale=\"$kde_locale\" \
31189 kde_cgidir=\"$kde_cgidir\" \
31190 kde_confdir=\"$kde_confdir\" \
31191 kde_kcfgdir=\"$kde_kcfgdir\" \
31192 kde_mimedir=\"$kde_mimedir\" \
31193 kde_toolbardir=\"$kde_toolbardir\" \
31194 kde_wallpaperdir=\"$kde_wallpaperdir\" \
31195 kde_templatesdir=\"$kde_templatesdir\" \
31196 kde_bindir=\"$kde_bindir\" \
31197 kde_servicesdir=\"$kde_servicesdir\" \
31198 kde_servicetypesdir=\"$kde_servicetypesdir\" \
31199 kde_moduledir=\"$kde_moduledir\" \
31200 kde_styledir=\"$kde_styledir\" \
31201 kde_widgetdir=\"$kde_widgetdir\" \
31202 xdg_appsdir=\"$xdg_appsdir\" \
31203 xdg_menudir=\"$xdg_menudir\" \
31204 xdg_directorydir=\"$xdg_directorydir\" \
31205 kde_result=defaults"
31208 else
31210 if test $kde_qtver = 1; then
31211 echo "$as_me:$LINENO: result: compiling" >&5
31212 echo "${ECHO_T}compiling" >&6
31215 echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31216 echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
31219 ac_ext=cc
31220 ac_cpp='$CXXCPP $CPPFLAGS'
31221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31225 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31228 cat > conftest.$ac_ext <<EOF
31229 #ifdef STDC_HEADERS
31230 # include <stdlib.h>
31231 #endif
31232 #include <stdio.h>
31233 #include "confdefs.h"
31234 #include <kapp.h>
31236 int main() {
31237 printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31238 printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31239 printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31240 printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31241 printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31242 printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31243 printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31244 printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31245 printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31246 printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31247 printf("kde_wallpaperdir=\\"%s\\"\n",
31248 KApplication::kde_wallpaperdir().data());
31249 printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31250 printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31251 printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31252 printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31253 printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31254 printf("kde_styledir=\\"/tmp/dummy\\"\n");
31255 printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31256 printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31257 printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31258 printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31259 printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31260 return 0;
31264 ac_save_CPPFLAGS=$CPPFLAGS
31265 CPPFLAGS="$all_includes $CPPFLAGS"
31266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31267 (eval $ac_compile) 2>&5
31268 ac_status=$?
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); }; then
31271 echo "$as_me:$LINENO: result: yes" >&5
31272 echo "${ECHO_T}yes" >&6
31273 else
31274 { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31275 Check, if you installed the KDE header files correctly.
31276 For more details about this problem, look at the end of config.log." >&5
31277 echo "$as_me: error: your system is not able to compile a small KDE application!
31278 Check, if you installed the KDE header files correctly.
31279 For more details about this problem, look at the end of config.log." >&2;}
31280 { (exit 1); exit 1; }; }
31282 CPPFLAGS=$ac_save_CPPFLAGS
31284 ac_ext=c
31285 ac_cpp='$CPP $CPPFLAGS'
31286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31292 KDE_TEST_RPATH=
31294 if test -n "$USE_RPATH"; then
31296 if test -n "$kde_libraries"; then
31297 KDE_TEST_RPATH="-R $kde_libraries"
31300 if test -n "$qt_libraries"; then
31301 KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31304 if test -n "$x_libraries"; then
31305 KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31308 KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31311 echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31312 echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
31313 ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
31315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31316 (eval $ac_link) 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); } && test -s conftest; then
31320 echo "$as_me:$LINENO: result: yes" >&5
31321 echo "${ECHO_T}yes" >&6
31322 else
31323 { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
31324 Check, if your compiler is installed correctly and if you have used the
31325 same compiler to compile Qt and kdelibs as you did use now.
31326 For more details about this problem, look at the end of config.log." >&5
31327 echo "$as_me: error: your system fails at linking a small KDE application!
31328 Check, if your compiler is installed correctly and if you have used the
31329 same compiler to compile Qt and kdelibs as you did use now.
31330 For more details about this problem, look at the end of config.log." >&2;}
31331 { (exit 1); exit 1; }; }
31334 if eval `KDEDIR= ./conftest 2>&5`; then
31335 kde_result=done
31336 else
31337 kde_result=problems
31340 KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
31341 kde_have_all_paths=yes
31344 kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31345 kde_htmldir=\"$kde_htmldir\" \
31346 kde_appsdir=\"$kde_appsdir\" \
31347 kde_icondir=\"$kde_icondir\" \
31348 kde_sounddir=\"$kde_sounddir\" \
31349 kde_datadir=\"$kde_datadir\" \
31350 kde_locale=\"$kde_locale\" \
31351 kde_cgidir=\"$kde_cgidir\" \
31352 kde_confdir=\"$kde_confdir\" \
31353 kde_kcfgdir=\"$kde_kcfgdir\" \
31354 kde_mimedir=\"$kde_mimedir\" \
31355 kde_toolbardir=\"$kde_toolbardir\" \
31356 kde_wallpaperdir=\"$kde_wallpaperdir\" \
31357 kde_templatesdir=\"$kde_templatesdir\" \
31358 kde_bindir=\"$kde_bindir\" \
31359 kde_servicesdir=\"$kde_servicesdir\" \
31360 kde_servicetypesdir=\"$kde_servicetypesdir\" \
31361 kde_moduledir=\"$kde_moduledir\" \
31362 kde_styledir=\"$kde_styledir\" \
31363 kde_widgetdir=\"$kde_widgetdir\" \
31364 xdg_appsdir=\"$xdg_appsdir\" \
31365 xdg_menudir=\"$xdg_menudir\" \
31366 xdg_directorydir=\"$xdg_directorydir\" \
31367 kde_result=$kde_result"
31371 else
31372 { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
31373 echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
31374 { (exit 1); exit 1; }; }
31379 kde_cached_paths=no
31383 eval "$kde_cv_all_paths"
31384 if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
31385 test -z "$kde_icondir" || test -z "$kde_sounddir" ||
31386 test -z "$kde_datadir" || test -z "$kde_locale" ||
31387 test -z "$kde_cgidir" || test -z "$kde_confdir" ||
31388 test -z "$kde_kcfgdir" ||
31389 test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
31390 test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
31391 test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
31392 test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
31393 test -z "$kde_styledir" || test -z "kde_widgetdir" ||
31394 test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
31395 test "x$kde_have_all_paths" != "xyes"; then
31396 kde_have_all_paths=no
31399 if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
31400 # wrong values were cached, may be, we can set better ones
31401 kde_result=
31402 kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
31403 kde_datadir= kde_locale= kde_cgidir= kde_confdir= kde_kcfgdir=
31404 kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
31405 kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
31406 kde_have_all_paths=
31407 kde_styledir=
31408 kde_widgetdir=
31409 xdg_appsdir = xdg_menudir= xdg_directorydir=
31411 if test "$ac_use_path_checking" = "default"; then
31413 if test -z "$kde_htmldir"; then
31414 kde_htmldir='\${datadir}/doc/HTML'
31416 if test -z "$kde_appsdir"; then
31417 kde_appsdir='\${datadir}/applnk'
31419 if test -z "$kde_icondir"; then
31420 kde_icondir='\${datadir}/icons'
31422 if test -z "$kde_sounddir"; then
31423 kde_sounddir='\${datadir}/sounds'
31425 if test -z "$kde_datadir"; then
31426 kde_datadir='\${datadir}/apps'
31428 if test -z "$kde_locale"; then
31429 kde_locale='\${datadir}/locale'
31431 if test -z "$kde_cgidir"; then
31432 kde_cgidir='\${exec_prefix}/cgi-bin'
31434 if test -z "$kde_confdir"; then
31435 kde_confdir='\${datadir}/config'
31437 if test -z "$kde_kcfgdir"; then
31438 kde_kcfgdir='\${datadir}/config.kcfg'
31440 if test -z "$kde_mimedir"; then
31441 kde_mimedir='\${datadir}/mimelnk'
31443 if test -z "$kde_toolbardir"; then
31444 kde_toolbardir='\${datadir}/toolbar'
31446 if test -z "$kde_wallpaperdir"; then
31447 kde_wallpaperdir='\${datadir}/wallpapers'
31449 if test -z "$kde_templatesdir"; then
31450 kde_templatesdir='\${datadir}/templates'
31452 if test -z "$kde_bindir"; then
31453 kde_bindir='\${exec_prefix}/bin'
31455 if test -z "$kde_servicesdir"; then
31456 kde_servicesdir='\${datadir}/services'
31458 if test -z "$kde_servicetypesdir"; then
31459 kde_servicetypesdir='\${datadir}/servicetypes'
31461 if test -z "$kde_moduledir"; then
31462 if test "$kde_qtver" = "2"; then
31463 kde_moduledir='\${libdir}/kde2'
31464 else
31465 kde_moduledir='\${libdir}/kde3'
31468 if test -z "$kde_styledir"; then
31469 kde_styledir='\${libdir}/kde3/plugins/styles'
31471 if test -z "$kde_widgetdir"; then
31472 kde_widgetdir='\${libdir}/kde3/plugins/designer'
31474 if test -z "$xdg_appsdir"; then
31475 xdg_appsdir='\${datadir}/applications/kde'
31477 if test -z "$xdg_menudir"; then
31478 xdg_menudir='\${sysconfdir}/xdg/menus'
31480 if test -z "$xdg_directorydir"; then
31481 xdg_directorydir='\${datadir}/desktop-directories'
31485 kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31486 kde_htmldir=\"$kde_htmldir\" \
31487 kde_appsdir=\"$kde_appsdir\" \
31488 kde_icondir=\"$kde_icondir\" \
31489 kde_sounddir=\"$kde_sounddir\" \
31490 kde_datadir=\"$kde_datadir\" \
31491 kde_locale=\"$kde_locale\" \
31492 kde_cgidir=\"$kde_cgidir\" \
31493 kde_confdir=\"$kde_confdir\" \
31494 kde_kcfgdir=\"$kde_kcfgdir\" \
31495 kde_mimedir=\"$kde_mimedir\" \
31496 kde_toolbardir=\"$kde_toolbardir\" \
31497 kde_wallpaperdir=\"$kde_wallpaperdir\" \
31498 kde_templatesdir=\"$kde_templatesdir\" \
31499 kde_bindir=\"$kde_bindir\" \
31500 kde_servicesdir=\"$kde_servicesdir\" \
31501 kde_servicetypesdir=\"$kde_servicetypesdir\" \
31502 kde_moduledir=\"$kde_moduledir\" \
31503 kde_styledir=\"$kde_styledir\" \
31504 kde_widgetdir=\"$kde_widgetdir\" \
31505 xdg_appsdir=\"$xdg_appsdir\" \
31506 xdg_menudir=\"$xdg_menudir\" \
31507 xdg_directorydir=\"$xdg_directorydir\" \
31508 kde_result=defaults"
31511 else
31513 if test $kde_qtver = 1; then
31514 echo "$as_me:$LINENO: result: compiling" >&5
31515 echo "${ECHO_T}compiling" >&6
31518 echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31519 echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6
31522 ac_ext=cc
31523 ac_cpp='$CXXCPP $CPPFLAGS'
31524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31528 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31531 cat > conftest.$ac_ext <<EOF
31532 #ifdef STDC_HEADERS
31533 # include <stdlib.h>
31534 #endif
31535 #include <stdio.h>
31536 #include "confdefs.h"
31537 #include <kapp.h>
31539 int main() {
31540 printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31541 printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31542 printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31543 printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31544 printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31545 printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31546 printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31547 printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31548 printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31549 printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31550 printf("kde_wallpaperdir=\\"%s\\"\n",
31551 KApplication::kde_wallpaperdir().data());
31552 printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31553 printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31554 printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31555 printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31556 printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31557 printf("kde_styledir=\\"/tmp/dummy\\"\n");
31558 printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31559 printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31560 printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31561 printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31562 printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31563 return 0;
31567 ac_save_CPPFLAGS=$CPPFLAGS
31568 CPPFLAGS="$all_includes $CPPFLAGS"
31569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31570 (eval $ac_compile) 2>&5
31571 ac_status=$?
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); }; then
31574 echo "$as_me:$LINENO: result: yes" >&5
31575 echo "${ECHO_T}yes" >&6
31576 else
31577 { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31578 Check, if you installed the KDE header files correctly.
31579 For more details about this problem, look at the end of config.log." >&5
31580 echo "$as_me: error: your system is not able to compile a small KDE application!
31581 Check, if you installed the KDE header files correctly.
31582 For more details about this problem, look at the end of config.log." >&2;}
31583 { (exit 1); exit 1; }; }
31585 CPPFLAGS=$ac_save_CPPFLAGS
31587 ac_ext=c
31588 ac_cpp='$CPP $CPPFLAGS'
31589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31595 KDE_TEST_RPATH=
31597 if test -n "$USE_RPATH"; then
31599 if test -n "$kde_libraries"; then
31600 KDE_TEST_RPATH="-R $kde_libraries"
31603 if test -n "$qt_libraries"; then
31604 KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31607 if test -n "$x_libraries"; then
31608 KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31611 KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31614 echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31615 echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6
31616 ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
31618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31619 (eval $ac_link) 2>&5
31620 ac_status=$?
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); } && test -s conftest; then
31623 echo "$as_me:$LINENO: result: yes" >&5
31624 echo "${ECHO_T}yes" >&6
31625 else
31626 { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
31627 Check, if your compiler is installed correctly and if you have used the
31628 same compiler to compile Qt and kdelibs as you did use now.
31629 For more details about this problem, look at the end of config.log." >&5
31630 echo "$as_me: error: your system fails at linking a small KDE application!
31631 Check, if your compiler is installed correctly and if you have used the
31632 same compiler to compile Qt and kdelibs as you did use now.
31633 For more details about this problem, look at the end of config.log." >&2;}
31634 { (exit 1); exit 1; }; }
31637 if eval `KDEDIR= ./conftest 2>&5`; then
31638 kde_result=done
31639 else
31640 kde_result=problems
31643 KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
31644 kde_have_all_paths=yes
31647 kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31648 kde_htmldir=\"$kde_htmldir\" \
31649 kde_appsdir=\"$kde_appsdir\" \
31650 kde_icondir=\"$kde_icondir\" \
31651 kde_sounddir=\"$kde_sounddir\" \
31652 kde_datadir=\"$kde_datadir\" \
31653 kde_locale=\"$kde_locale\" \
31654 kde_cgidir=\"$kde_cgidir\" \
31655 kde_confdir=\"$kde_confdir\" \
31656 kde_kcfgdir=\"$kde_kcfgdir\" \
31657 kde_mimedir=\"$kde_mimedir\" \
31658 kde_toolbardir=\"$kde_toolbardir\" \
31659 kde_wallpaperdir=\"$kde_wallpaperdir\" \
31660 kde_templatesdir=\"$kde_templatesdir\" \
31661 kde_bindir=\"$kde_bindir\" \
31662 kde_servicesdir=\"$kde_servicesdir\" \
31663 kde_servicetypesdir=\"$kde_servicetypesdir\" \
31664 kde_moduledir=\"$kde_moduledir\" \
31665 kde_styledir=\"$kde_styledir\" \
31666 kde_widgetdir=\"$kde_widgetdir\" \
31667 xdg_appsdir=\"$xdg_appsdir\" \
31668 xdg_menudir=\"$xdg_menudir\" \
31669 xdg_directorydir=\"$xdg_directorydir\" \
31670 kde_result=$kde_result"
31674 else
31675 { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
31676 echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
31677 { (exit 1); exit 1; }; }
31682 eval "$kde_cv_all_paths"
31683 if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
31684 test -z "$kde_icondir" || test -z "$kde_sounddir" ||
31685 test -z "$kde_datadir" || test -z "$kde_locale" ||
31686 test -z "$kde_cgidir" || test -z "$kde_confdir" ||
31687 test -z "$kde_kcfgdir" ||
31688 test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
31689 test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
31690 test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
31691 test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
31692 test -z "$kde_styledir" || test -z "kde_widgetdir" ||
31693 test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
31694 test "x$kde_have_all_paths" != "xyes"; then
31695 kde_have_all_paths=no
31698 kde_result="$kde_result (cache overridden)"
31700 if test "$kde_have_all_paths" = "no"; then
31701 { { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
31702 Since it had compiled and linked before, it must be a strange problem on your system.
31703 Look at config.log for details. If you are not able to fix this, look at
31704 http://www.kde.org/faq/installation.html or any www.kde.org mirror.
31705 (If you're using an egcs version on Linux, you may update binutils!)
31706 " >&5
31707 echo "$as_me: error: configure could not run a little KDE program to test the environment.
31708 Since it had compiled and linked before, it must be a strange problem on your system.
31709 Look at config.log for details. If you are not able to fix this, look at
31710 http://www.kde.org/faq/installation.html or any www.kde.org mirror.
31711 (If you're using an egcs version on Linux, you may update binutils!)
31712 " >&2;}
31713 { (exit 1); exit 1; }; }
31714 else
31715 rm -f conftest*
31716 echo "$as_me:$LINENO: result: $kde_result" >&5
31717 echo "${ECHO_T}$kde_result" >&6
31720 bindir=$kde_bindir
31724 # Check whether --with-arts or --without-arts was given.
31725 if test "${with_arts+set}" = set; then
31726 withval="$with_arts"
31727 build_arts=$withval
31728 else
31729 build_arts=yes
31734 if test "$build_arts" '!=' "no"; then
31735 include_ARTS_TRUE=
31736 include_ARTS_FALSE='#'
31737 else
31738 include_ARTS_TRUE='#'
31739 include_ARTS_FALSE=
31742 if test "$build_arts" = "no"; then
31744 cat >>confdefs.h <<\_ACEOF
31745 #define WITHOUT_ARTS 1
31746 _ACEOF
31751 kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
31752 test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
31753 if test -n "$KDEDIRS"; then
31754 kde_save_IFS=$IFS
31755 IFS=:
31756 for dir in $KDEDIRS; do
31757 kde_default_bindirs="$dir/bin $kde_default_bindirs "
31758 done
31759 IFS=$kde_save_IFS
31762 kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
31764 echo "$as_me:$LINENO: checking for dcopidl" >&5
31765 echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6
31766 if test -n "$DCOPIDL"; then
31767 kde_cv_path="$DCOPIDL";
31768 else
31769 kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
31771 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
31772 echo $ECHO_N "(cached) $ECHO_C" >&6
31773 else
31775 kde_cv_path="NONE"
31776 kde_save_IFS=$IFS
31777 IFS=':'
31778 dirs=""
31779 for dir in $PATH; do
31780 dirs="$dirs $dir"
31781 done
31782 if test -z ""; then dirs="$kde_default_bindirs $dirs"
31783 else dirs="$dirs $kde_default_bindirs"
31785 IFS=$kde_save_IFS
31787 for dir in $dirs; do
31788 if test -x "$dir/dcopidl"; then
31789 if test -n ""
31790 then
31791 evalstr="$dir/dcopidl 2>&1 "
31792 if eval $evalstr; then
31793 kde_cv_path="$dir/dcopidl"
31794 break
31796 else
31797 kde_cv_path="$dir/dcopidl"
31798 break
31801 done
31803 eval "kde_cv_path_$kde_cache=$kde_cv_path"
31809 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31813 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
31814 echo "$as_me:$LINENO: result: not found" >&5
31815 echo "${ECHO_T}not found" >&6
31817 { { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
31818 Please check whether you installed KDE correctly.
31819 " >&5
31820 echo "$as_me: error: The important program dcopidl was not found!
31821 Please check whether you installed KDE correctly.
31822 " >&2;}
31823 { (exit 1); exit 1; }; }
31825 else
31826 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31827 echo "${ECHO_T}$kde_cv_path" >&6
31828 DCOPIDL=$kde_cv_path
31833 echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
31834 echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6
31835 if test -n "$DCOPIDL2CPP"; then
31836 kde_cv_path="$DCOPIDL2CPP";
31837 else
31838 kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
31840 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
31841 echo $ECHO_N "(cached) $ECHO_C" >&6
31842 else
31844 kde_cv_path="NONE"
31845 kde_save_IFS=$IFS
31846 IFS=':'
31847 dirs=""
31848 for dir in $PATH; do
31849 dirs="$dirs $dir"
31850 done
31851 if test -z ""; then dirs="$kde_default_bindirs $dirs"
31852 else dirs="$dirs $kde_default_bindirs"
31854 IFS=$kde_save_IFS
31856 for dir in $dirs; do
31857 if test -x "$dir/dcopidl2cpp"; then
31858 if test -n ""
31859 then
31860 evalstr="$dir/dcopidl2cpp 2>&1 "
31861 if eval $evalstr; then
31862 kde_cv_path="$dir/dcopidl2cpp"
31863 break
31865 else
31866 kde_cv_path="$dir/dcopidl2cpp"
31867 break
31870 done
31872 eval "kde_cv_path_$kde_cache=$kde_cv_path"
31878 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31882 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
31883 echo "$as_me:$LINENO: result: not found" >&5
31884 echo "${ECHO_T}not found" >&6
31886 { { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
31887 Please check whether you installed KDE correctly.
31888 " >&5
31889 echo "$as_me: error: The important program dcopidl2cpp was not found!
31890 Please check whether you installed KDE correctly.
31891 " >&2;}
31892 { (exit 1); exit 1; }; }
31894 else
31895 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31896 echo "${ECHO_T}$kde_cv_path" >&6
31897 DCOPIDL2CPP=$kde_cv_path
31901 if test "$build_arts" '!=' "no"; then
31903 echo "$as_me:$LINENO: checking for mcopidl" >&5
31904 echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6
31905 if test -n "$MCOPIDL"; then
31906 kde_cv_path="$MCOPIDL";
31907 else
31908 kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
31910 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
31911 echo $ECHO_N "(cached) $ECHO_C" >&6
31912 else
31914 kde_cv_path="NONE"
31915 kde_save_IFS=$IFS
31916 IFS=':'
31917 dirs=""
31918 for dir in $PATH; do
31919 dirs="$dirs $dir"
31920 done
31921 if test -z ""; then dirs="$kde_default_bindirs $dirs"
31922 else dirs="$dirs $kde_default_bindirs"
31924 IFS=$kde_save_IFS
31926 for dir in $dirs; do
31927 if test -x "$dir/mcopidl"; then
31928 if test -n ""
31929 then
31930 evalstr="$dir/mcopidl 2>&1 "
31931 if eval $evalstr; then
31932 kde_cv_path="$dir/mcopidl"
31933 break
31935 else
31936 kde_cv_path="$dir/mcopidl"
31937 break
31940 done
31942 eval "kde_cv_path_$kde_cache=$kde_cv_path"
31948 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31952 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
31953 echo "$as_me:$LINENO: result: not found" >&5
31954 echo "${ECHO_T}not found" >&6
31956 { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
31957 Please check whether you installed aRts correctly or use
31958 --without-arts to compile without aRts support (this will remove functionality).
31959 " >&5
31960 echo "$as_me: error: The important program mcopidl was not found!
31961 Please check whether you installed aRts correctly or use
31962 --without-arts to compile without aRts support (this will remove functionality).
31963 " >&2;}
31964 { (exit 1); exit 1; }; }
31966 else
31967 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31968 echo "${ECHO_T}$kde_cv_path" >&6
31969 MCOPIDL=$kde_cv_path
31974 echo "$as_me:$LINENO: checking for artsc-config" >&5
31975 echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6
31976 if test -n "$ARTSCCONFIG"; then
31977 kde_cv_path="$ARTSCCONFIG";
31978 else
31979 kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
31981 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
31982 echo $ECHO_N "(cached) $ECHO_C" >&6
31983 else
31985 kde_cv_path="NONE"
31986 kde_save_IFS=$IFS
31987 IFS=':'
31988 dirs=""
31989 for dir in $PATH; do
31990 dirs="$dirs $dir"
31991 done
31992 if test -z ""; then dirs="$kde_default_bindirs $dirs"
31993 else dirs="$dirs $kde_default_bindirs"
31995 IFS=$kde_save_IFS
31997 for dir in $dirs; do
31998 if test -x "$dir/artsc-config"; then
31999 if test -n ""
32000 then
32001 evalstr="$dir/artsc-config 2>&1 "
32002 if eval $evalstr; then
32003 kde_cv_path="$dir/artsc-config"
32004 break
32006 else
32007 kde_cv_path="$dir/artsc-config"
32008 break
32011 done
32013 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32019 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32023 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32024 echo "$as_me:$LINENO: result: not found" >&5
32025 echo "${ECHO_T}not found" >&6
32027 { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
32028 Please check whether you installed aRts correctly or use
32029 --without-arts to compile without aRts support (this will remove functionality).
32030 " >&5
32031 echo "$as_me: error: The important program artsc-config was not found!
32032 Please check whether you installed aRts correctly or use
32033 --without-arts to compile without aRts support (this will remove functionality).
32034 " >&2;}
32035 { (exit 1); exit 1; }; }
32037 else
32038 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32039 echo "${ECHO_T}$kde_cv_path" >&6
32040 ARTSCCONFIG=$kde_cv_path
32046 echo "$as_me:$LINENO: checking for meinproc" >&5
32047 echo $ECHO_N "checking for meinproc... $ECHO_C" >&6
32048 if test -n "$MEINPROC"; then
32049 kde_cv_path="$MEINPROC";
32050 else
32051 kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
32053 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
32054 echo $ECHO_N "(cached) $ECHO_C" >&6
32055 else
32057 kde_cv_path="NONE"
32058 kde_save_IFS=$IFS
32059 IFS=':'
32060 dirs=""
32061 for dir in $PATH; do
32062 dirs="$dirs $dir"
32063 done
32064 if test -z ""; then dirs="$kde_default_bindirs $dirs"
32065 else dirs="$dirs $kde_default_bindirs"
32067 IFS=$kde_save_IFS
32069 for dir in $dirs; do
32070 if test -x "$dir/meinproc"; then
32071 if test -n ""
32072 then
32073 evalstr="$dir/meinproc 2>&1 "
32074 if eval $evalstr; then
32075 kde_cv_path="$dir/meinproc"
32076 break
32078 else
32079 kde_cv_path="$dir/meinproc"
32080 break
32083 done
32085 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32091 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32095 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32096 echo "$as_me:$LINENO: result: not found" >&5
32097 echo "${ECHO_T}not found" >&6
32099 else
32100 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32101 echo "${ECHO_T}$kde_cv_path" >&6
32102 MEINPROC=$kde_cv_path
32107 kde32ornewer=1
32108 kde33ornewer=1
32109 if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
32110 kde32ornewer=
32111 kde33ornewer=
32112 else
32113 if test "$kde_qtver" = "3"; then
32114 if test "$kde_qtsubver" -le 1; then
32115 kde32ornewer=
32117 if test "$kde_qtsubver" -le 2; then
32118 kde33ornewer=
32120 if test "$KDECONFIG" != "compiled"; then
32121 if test `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then
32122 kde33ornewer=
32128 if test -n "$kde32ornewer"; then
32130 echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
32131 echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6
32132 if test -n "$KCONFIG_COMPILER"; then
32133 kde_cv_path="$KCONFIG_COMPILER";
32134 else
32135 kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
32137 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
32138 echo $ECHO_N "(cached) $ECHO_C" >&6
32139 else
32141 kde_cv_path="NONE"
32142 kde_save_IFS=$IFS
32143 IFS=':'
32144 dirs=""
32145 for dir in $PATH; do
32146 dirs="$dirs $dir"
32147 done
32148 if test -z ""; then dirs="$kde_default_bindirs $dirs"
32149 else dirs="$dirs $kde_default_bindirs"
32151 IFS=$kde_save_IFS
32153 for dir in $dirs; do
32154 if test -x "$dir/kconfig_compiler"; then
32155 if test -n ""
32156 then
32157 evalstr="$dir/kconfig_compiler 2>&1 "
32158 if eval $evalstr; then
32159 kde_cv_path="$dir/kconfig_compiler"
32160 break
32162 else
32163 kde_cv_path="$dir/kconfig_compiler"
32164 break
32167 done
32169 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32175 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32179 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32180 echo "$as_me:$LINENO: result: not found" >&5
32181 echo "${ECHO_T}not found" >&6
32183 { { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
32184 Please check whether you installed KDE correctly.
32185 " >&5
32186 echo "$as_me: error: The important program kconfig_compiler was not found!
32187 Please check whether you installed KDE correctly.
32188 " >&2;}
32189 { (exit 1); exit 1; }; }
32191 else
32192 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32193 echo "${ECHO_T}$kde_cv_path" >&6
32194 KCONFIG_COMPILER=$kde_cv_path
32199 echo "$as_me:$LINENO: checking for dcopidlng" >&5
32200 echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6
32201 if test -n "$DCOPIDLNG"; then
32202 kde_cv_path="$DCOPIDLNG";
32203 else
32204 kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
32206 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
32207 echo $ECHO_N "(cached) $ECHO_C" >&6
32208 else
32210 kde_cv_path="NONE"
32211 kde_save_IFS=$IFS
32212 IFS=':'
32213 dirs=""
32214 for dir in $PATH; do
32215 dirs="$dirs $dir"
32216 done
32217 if test -z ""; then dirs="$kde_default_bindirs $dirs"
32218 else dirs="$dirs $kde_default_bindirs"
32220 IFS=$kde_save_IFS
32222 for dir in $dirs; do
32223 if test -x "$dir/dcopidlng"; then
32224 if test -n ""
32225 then
32226 evalstr="$dir/dcopidlng 2>&1 "
32227 if eval $evalstr; then
32228 kde_cv_path="$dir/dcopidlng"
32229 break
32231 else
32232 kde_cv_path="$dir/dcopidlng"
32233 break
32236 done
32238 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32244 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32248 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32249 echo "$as_me:$LINENO: result: not found" >&5
32250 echo "${ECHO_T}not found" >&6
32252 { { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
32253 Please check whether you installed KDE correctly.
32254 " >&5
32255 echo "$as_me: error: The important program dcopidlng was not found!
32256 Please check whether you installed KDE correctly.
32257 " >&2;}
32258 { (exit 1); exit 1; }; }
32260 else
32261 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32262 echo "${ECHO_T}$kde_cv_path" >&6
32263 DCOPIDLNG=$kde_cv_path
32268 if test -n "$kde33ornewer"; then
32270 echo "$as_me:$LINENO: checking for makekdewidgets" >&5
32271 echo $ECHO_N "checking for makekdewidgets... $ECHO_C" >&6
32272 if test -n "$MAKEKDEWIDGETS"; then
32273 kde_cv_path="$MAKEKDEWIDGETS";
32274 else
32275 kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
32277 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
32278 echo $ECHO_N "(cached) $ECHO_C" >&6
32279 else
32281 kde_cv_path="NONE"
32282 kde_save_IFS=$IFS
32283 IFS=':'
32284 dirs=""
32285 for dir in $PATH; do
32286 dirs="$dirs $dir"
32287 done
32288 if test -z ""; then dirs="$kde_default_bindirs $dirs"
32289 else dirs="$dirs $kde_default_bindirs"
32291 IFS=$kde_save_IFS
32293 for dir in $dirs; do
32294 if test -x "$dir/makekdewidgets"; then
32295 if test -n ""
32296 then
32297 evalstr="$dir/makekdewidgets 2>&1 "
32298 if eval $evalstr; then
32299 kde_cv_path="$dir/makekdewidgets"
32300 break
32302 else
32303 kde_cv_path="$dir/makekdewidgets"
32304 break
32307 done
32309 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32315 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32319 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32320 echo "$as_me:$LINENO: result: not found" >&5
32321 echo "${ECHO_T}not found" >&6
32323 { { echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
32324 Please check whether you installed KDE correctly.
32325 " >&5
32326 echo "$as_me: error: The important program makekdewidgets was not found!
32327 Please check whether you installed KDE correctly.
32328 " >&2;}
32329 { (exit 1); exit 1; }; }
32331 else
32332 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32333 echo "${ECHO_T}$kde_cv_path" >&6
32334 MAKEKDEWIDGETS=$kde_cv_path
32341 echo "$as_me:$LINENO: checking for xmllint" >&5
32342 echo $ECHO_N "checking for xmllint... $ECHO_C" >&6
32343 if test -n "$XMLLINT"; then
32344 kde_cv_path="$XMLLINT";
32345 else
32346 kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
32348 if eval "test \"\${kde_cv_path_$kde_cache+set}\" = set"; then
32349 echo $ECHO_N "(cached) $ECHO_C" >&6
32350 else
32352 kde_cv_path="NONE"
32353 kde_save_IFS=$IFS
32354 IFS=':'
32355 dirs=""
32356 for dir in $PATH; do
32357 dirs="$dirs $dir"
32358 done
32359 if test -z ""; then dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
32360 else dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
32362 IFS=$kde_save_IFS
32364 for dir in $dirs; do
32365 if test -x "$dir/xmllint"; then
32366 if test -n ""
32367 then
32368 evalstr="$dir/xmllint 2>&1 "
32369 if eval $evalstr; then
32370 kde_cv_path="$dir/xmllint"
32371 break
32373 else
32374 kde_cv_path="$dir/xmllint"
32375 break
32378 done
32380 eval "kde_cv_path_$kde_cache=$kde_cv_path"
32386 eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32390 if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32391 echo "$as_me:$LINENO: result: not found" >&5
32392 echo "${ECHO_T}not found" >&6
32393 XMLLINT=""
32394 else
32395 echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32396 echo "${ECHO_T}$kde_cv_path" >&6
32397 XMLLINT=$kde_cv_path
32402 if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then
32403 kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
32404 test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
32406 KDE_XSL_STYLESHEET=NO
32407 for i in $kde_sharedirs;
32409 for j in apps/ksgmltools2/customization/kde-chunk.xsl;
32411 echo "configure: 32411: $i/$j" >&5
32412 if test -r "$i/$j"; then
32413 echo "taking that" >&5
32414 KDE_XSL_STYLESHEET=$i
32415 break 2
32417 done
32418 done
32420 if test "$KDE_XSL_STYLESHEET" = "NO"; then
32421 KDE_XSL_STYLESHEET=""
32422 else
32423 KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
32427 DCOP_DEPENDENCIES='$(DCOPIDL)'
32428 if test -n "$kde32ornewer"; then
32429 KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
32430 DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
32466 kdeinitdir='$(kde_moduledir)'
32470 if test "$kde_qtver" = 1; then
32471 kde_minidir="$kde_icondir/mini"
32472 else
32473 # for KDE 1 - this breaks KDE2 apps using minidir, but
32474 # that's the plan ;-/
32475 kde_minidir="/dev/null"
32483 if test $kde_qtver = 3; then
32484 case $host in
32485 *cygwin*) lib_kded="-lkdeinit_kded" ;;
32486 *) lib_kded="" ;;
32487 esac
32488 LIB_KDED=$lib_kded
32490 LIB_KDECORE="-lkdecore"
32492 LIB_KDEUI="-lkdeui"
32494 LIB_KIO="-lkio"
32496 LIB_KJS="-lkjs"
32498 LIB_SMB="-lsmb"
32500 LIB_KAB="-lkab"
32502 LIB_KABC="-lkabc"
32504 LIB_KHTML="-lkhtml"
32506 LIB_KSPELL="-lkspell"
32508 LIB_KPARTS="-lkparts"
32510 LIB_KDEPRINT="-lkdeprint"
32512 LIB_KUTILS="-lkutils"
32514 LIB_KDEPIM="-lkdepim"
32516 LIB_KIMPROXY="-lkimproxy"
32518 LIB_KNEWSTUFF="-lknewstuff"
32520 LIB_KDNSSD="-lkdnssd"
32522 LIB_KUNITTEST="-lkunittest"
32524 # these are for backward compatibility
32525 LIB_KSYCOCA="-lkio"
32527 LIB_KFILE="-lkio"
32529 elif test $kde_qtver = 2; then
32530 LIB_KDECORE="-lkdecore"
32532 LIB_KDEUI="-lkdeui"
32534 LIB_KIO="-lkio"
32536 LIB_KSYCOCA="-lksycoca"
32538 LIB_SMB="-lsmb"
32540 LIB_KFILE="-lkfile"
32542 LIB_KAB="-lkab"
32544 LIB_KHTML="-lkhtml"
32546 LIB_KSPELL="-lkspell"
32548 LIB_KPARTS="-lkparts"
32550 LIB_KDEPRINT="-lkdeprint"
32552 else
32553 LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
32555 LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
32557 LIB_KFM="-lkfm $(LIB_KDECORE)"
32559 LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
32561 LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
32567 #MIN_CONFIG(3.2.0)
32569 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32570 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
32571 if test "${ac_cv_c_bigendian+set}" = set; then
32572 echo $ECHO_N "(cached) $ECHO_C" >&6
32573 else
32574 # See if sys/param.h defines the BYTE_ORDER macro.
32575 cat >conftest.$ac_ext <<_ACEOF
32576 /* confdefs.h. */
32577 _ACEOF
32578 cat confdefs.h >>conftest.$ac_ext
32579 cat >>conftest.$ac_ext <<_ACEOF
32580 /* end confdefs.h. */
32581 #include <sys/types.h>
32582 #include <sys/param.h>
32585 main ()
32587 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
32588 bogus endian macros
32589 #endif
32592 return 0;
32594 _ACEOF
32595 rm -f conftest.$ac_objext
32596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32597 (eval $ac_compile) 2>conftest.er1
32598 ac_status=$?
32599 grep -v '^ *+' conftest.er1 >conftest.err
32600 rm -f conftest.er1
32601 cat conftest.err >&5
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); } &&
32604 { ac_try='test -z "$ac_c_werror_flag"
32605 || test ! -s conftest.err'
32606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32607 (eval $ac_try) 2>&5
32608 ac_status=$?
32609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32610 (exit $ac_status); }; } &&
32611 { ac_try='test -s conftest.$ac_objext'
32612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32613 (eval $ac_try) 2>&5
32614 ac_status=$?
32615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616 (exit $ac_status); }; }; then
32617 # It does; now see whether it defined to BIG_ENDIAN or not.
32618 cat >conftest.$ac_ext <<_ACEOF
32619 /* confdefs.h. */
32620 _ACEOF
32621 cat confdefs.h >>conftest.$ac_ext
32622 cat >>conftest.$ac_ext <<_ACEOF
32623 /* end confdefs.h. */
32624 #include <sys/types.h>
32625 #include <sys/param.h>
32628 main ()
32630 #if BYTE_ORDER != BIG_ENDIAN
32631 not big endian
32632 #endif
32635 return 0;
32637 _ACEOF
32638 rm -f conftest.$ac_objext
32639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32640 (eval $ac_compile) 2>conftest.er1
32641 ac_status=$?
32642 grep -v '^ *+' conftest.er1 >conftest.err
32643 rm -f conftest.er1
32644 cat conftest.err >&5
32645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646 (exit $ac_status); } &&
32647 { ac_try='test -z "$ac_c_werror_flag"
32648 || test ! -s conftest.err'
32649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32650 (eval $ac_try) 2>&5
32651 ac_status=$?
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); }; } &&
32654 { ac_try='test -s conftest.$ac_objext'
32655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32656 (eval $ac_try) 2>&5
32657 ac_status=$?
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; }; then
32660 ac_cv_c_bigendian=yes
32661 else
32662 echo "$as_me: failed program was:" >&5
32663 sed 's/^/| /' conftest.$ac_ext >&5
32665 ac_cv_c_bigendian=no
32667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32668 else
32669 echo "$as_me: failed program was:" >&5
32670 sed 's/^/| /' conftest.$ac_ext >&5
32672 # It does not; compile a test program.
32673 if test "$cross_compiling" = yes; then
32674 # try to guess the endianness by grepping values into an object file
32675 ac_cv_c_bigendian=unknown
32676 cat >conftest.$ac_ext <<_ACEOF
32677 /* confdefs.h. */
32678 _ACEOF
32679 cat confdefs.h >>conftest.$ac_ext
32680 cat >>conftest.$ac_ext <<_ACEOF
32681 /* end confdefs.h. */
32682 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
32683 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
32684 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
32685 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
32686 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
32687 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
32689 main ()
32691 _ascii (); _ebcdic ();
32693 return 0;
32695 _ACEOF
32696 rm -f conftest.$ac_objext
32697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32698 (eval $ac_compile) 2>conftest.er1
32699 ac_status=$?
32700 grep -v '^ *+' conftest.er1 >conftest.err
32701 rm -f conftest.er1
32702 cat conftest.err >&5
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); } &&
32705 { ac_try='test -z "$ac_c_werror_flag"
32706 || test ! -s conftest.err'
32707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32708 (eval $ac_try) 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; } &&
32712 { ac_try='test -s conftest.$ac_objext'
32713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714 (eval $ac_try) 2>&5
32715 ac_status=$?
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); }; }; then
32718 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
32719 ac_cv_c_bigendian=yes
32721 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
32722 if test "$ac_cv_c_bigendian" = unknown; then
32723 ac_cv_c_bigendian=no
32724 else
32725 # finding both strings is unlikely to happen, but who knows?
32726 ac_cv_c_bigendian=unknown
32729 else
32730 echo "$as_me: failed program was:" >&5
32731 sed 's/^/| /' conftest.$ac_ext >&5
32734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32735 else
32736 cat >conftest.$ac_ext <<_ACEOF
32737 /* confdefs.h. */
32738 _ACEOF
32739 cat confdefs.h >>conftest.$ac_ext
32740 cat >>conftest.$ac_ext <<_ACEOF
32741 /* end confdefs.h. */
32743 main ()
32745 /* Are we little or big endian? From Harbison&Steele. */
32746 union
32748 long l;
32749 char c[sizeof (long)];
32750 } u;
32751 u.l = 1;
32752 exit (u.c[sizeof (long) - 1] == 1);
32754 _ACEOF
32755 rm -f conftest$ac_exeext
32756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32757 (eval $ac_link) 2>&5
32758 ac_status=$?
32759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32762 (eval $ac_try) 2>&5
32763 ac_status=$?
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; }; then
32766 ac_cv_c_bigendian=no
32767 else
32768 echo "$as_me: program exited with status $ac_status" >&5
32769 echo "$as_me: failed program was:" >&5
32770 sed 's/^/| /' conftest.$ac_ext >&5
32772 ( exit $ac_status )
32773 ac_cv_c_bigendian=yes
32775 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32780 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
32781 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
32782 case $ac_cv_c_bigendian in
32783 yes)
32785 cat >>confdefs.h <<\_ACEOF
32786 #define WORDS_BIGENDIAN 1
32787 _ACEOF
32792 { { echo "$as_me:$LINENO: error: unknown endianness
32793 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
32794 echo "$as_me: error: unknown endianness
32795 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
32796 { (exit 1); exit 1; }; } ;;
32797 esac
32800 echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
32801 echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6
32802 if test "${ac_cv_maxpathlen+set}" = set; then
32803 echo $ECHO_N "(cached) $ECHO_C" >&6
32804 else
32806 cat > conftest.$ac_ext <<EOF
32807 #ifdef STDC_HEADERS
32808 # include <stdlib.h>
32809 #endif
32810 #include <stdio.h>
32811 #include <sys/param.h>
32812 #ifndef MAXPATHLEN
32813 #define MAXPATHLEN 1024
32814 #endif
32816 KDE_HELLO MAXPATHLEN
32820 ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
32822 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32823 (eval $ac_try) 2>&5
32824 ac_status=$?
32825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); } && test -s conftest.out; then
32827 ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
32828 else
32829 ac_cv_maxpathlen=1024
32832 rm conftest.*
32837 echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
32838 echo "${ECHO_T}$ac_cv_maxpathlen" >&6
32840 cat >>confdefs.h <<_ACEOF
32841 #define KDEMAXPATHLEN $ac_cv_maxpathlen
32842 _ACEOF
32848 DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
32849 TOPSUBDIRS=""
32851 if test ! -s $srcdir/subdirs; then
32852 files=`cd $srcdir && ls -1`
32853 dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
32854 for i in $dirs; do
32855 echo $i >> $srcdir/subdirs
32856 done
32859 ac_topsubdirs=
32860 if test -s $srcdir/inst-apps; then
32861 ac_topsubdirs="`cat $srcdir/inst-apps`"
32862 elif test -s $srcdir/subdirs; then
32863 ac_topsubdirs="`cat $srcdir/subdirs`"
32866 for i in $ac_topsubdirs; do
32867 echo "$as_me:$LINENO: checking if $i should be compiled" >&5
32868 echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6
32869 if test -d $srcdir/$i; then
32870 install_it="yes"
32871 for j in $DO_NOT_COMPILE; do
32872 if test $i = $j; then
32873 install_it="no"
32875 done
32876 else
32877 install_it="no"
32879 echo "$as_me:$LINENO: result: $install_it" >&5
32880 echo "${ECHO_T}$install_it" >&6
32881 vari=`echo $i | sed -e 's,[-+.@],_,g'`
32882 if test $install_it = "yes"; then
32883 TOPSUBDIRS="$TOPSUBDIRS $i"
32884 eval "$vari""_SUBDIR_included=yes"
32885 else
32886 eval "$vari""_SUBDIR_included=no"
32888 done
32892 ac_config_files="$ac_config_files Makefile"
32894 ac_config_files="$ac_config_files doc/Makefile"
32896 ac_config_files="$ac_config_files doc/en/Makefile"
32898 ac_config_files="$ac_config_files po/Makefile"
32900 ac_config_files="$ac_config_files src/Makefile"
32902 cat >confcache <<\_ACEOF
32903 # This file is a shell script that caches the results of configure
32904 # tests run on this system so they can be shared between configure
32905 # scripts and configure runs, see configure's option --config-cache.
32906 # It is not useful on other systems. If it contains results you don't
32907 # want to keep, you may remove or edit it.
32909 # config.status only pays attention to the cache file if you give it
32910 # the --recheck option to rerun configure.
32912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32914 # following values.
32916 _ACEOF
32918 # The following way of writing the cache mishandles newlines in values,
32919 # but we know of no workaround that is simple, portable, and efficient.
32920 # So, don't put newlines in cache variables' values.
32921 # Ultrix sh set writes to stderr and can't be redirected directly,
32922 # and sets the high bit in the cache file unless we assign to the vars.
32924 (set) 2>&1 |
32925 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32926 *ac_space=\ *)
32927 # `set' does not quote correctly, so add quotes (double-quote
32928 # substitution turns \\\\ into \\, and sed turns \\ into \).
32929 sed -n \
32930 "s/'/'\\\\''/g;
32931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32934 # `set' quotes correctly as required by POSIX, so do not add quotes.
32935 sed -n \
32936 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32938 esac;
32940 sed '
32941 t clear
32942 : clear
32943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32944 t end
32945 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32946 : end' >>confcache
32947 if diff $cache_file confcache >/dev/null 2>&1; then :; else
32948 if test -w $cache_file; then
32949 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32950 cat confcache >$cache_file
32951 else
32952 echo "not updating unwritable cache $cache_file"
32955 rm -f confcache
32957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32958 # Let make expand exec_prefix.
32959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32963 # trailing colons and then remove the whole line if VPATH becomes empty
32964 # (actually we leave an empty line to preserve line numbers).
32965 if test "x$srcdir" = x.; then
32966 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32967 s/:*\$(srcdir):*/:/;
32968 s/:*\${srcdir}:*/:/;
32969 s/:*@srcdir@:*/:/;
32970 s/^\([^=]*=[ ]*\):*/\1/;
32971 s/:*$//;
32972 s/^[^=]*=[ ]*$//;
32976 DEFS=-DHAVE_CONFIG_H
32978 ac_libobjs=
32979 ac_ltlibobjs=
32980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32981 # 1. Remove the extension, and $U if already installed.
32982 ac_i=`echo "$ac_i" |
32983 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
32984 # 2. Add them.
32985 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
32986 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
32987 done
32988 LIBOBJS=$ac_libobjs
32990 LTLIBOBJS=$ac_ltlibobjs
32993 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32994 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32995 Usually this means the macro was only invoked conditionally." >&5
32996 echo "$as_me: error: conditional \"AMDEP\" was never defined.
32997 Usually this means the macro was only invoked conditionally." >&2;}
32998 { (exit 1); exit 1; }; }
33000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33001 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
33002 Usually this means the macro was only invoked conditionally." >&5
33003 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
33004 Usually this means the macro was only invoked conditionally." >&2;}
33005 { (exit 1); exit 1; }; }
33007 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33008 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
33009 Usually this means the macro was only invoked conditionally." >&5
33010 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
33011 Usually this means the macro was only invoked conditionally." >&2;}
33012 { (exit 1); exit 1; }; }
33014 if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
33015 { { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
33016 Usually this means the macro was only invoked conditionally." >&5
33017 echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
33018 Usually this means the macro was only invoked conditionally." >&2;}
33019 { (exit 1); exit 1; }; }
33021 if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then
33022 { { echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined.
33023 Usually this means the macro was only invoked conditionally." >&5
33024 echo "$as_me: error: conditional \"include_x11\" was never defined.
33025 Usually this means the macro was only invoked conditionally." >&2;}
33026 { (exit 1); exit 1; }; }
33028 if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
33029 { { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
33030 Usually this means the macro was only invoked conditionally." >&5
33031 echo "$as_me: error: conditional \"include_ARTS\" was never defined.
33032 Usually this means the macro was only invoked conditionally." >&2;}
33033 { (exit 1); exit 1; }; }
33036 : ${CONFIG_STATUS=./config.status}
33037 ac_clean_files_save=$ac_clean_files
33038 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33039 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33040 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33041 cat >$CONFIG_STATUS <<_ACEOF
33042 #! $SHELL
33043 # Generated by $as_me.
33044 # Run this file to recreate the current configuration.
33045 # Compiler output produced by configure, useful for debugging
33046 # configure, is in config.log if it exists.
33048 debug=false
33049 ac_cs_recheck=false
33050 ac_cs_silent=false
33051 SHELL=\${CONFIG_SHELL-$SHELL}
33052 _ACEOF
33054 cat >>$CONFIG_STATUS <<\_ACEOF
33055 ## --------------------- ##
33056 ## M4sh Initialization. ##
33057 ## --------------------- ##
33059 # Be Bourne compatible
33060 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33061 emulate sh
33062 NULLCMD=:
33063 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33064 # is contrary to our usage. Disable this feature.
33065 alias -g '${1+"$@"}'='"$@"'
33066 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33067 set -o posix
33069 DUALCASE=1; export DUALCASE # for MKS sh
33071 # Support unset when possible.
33072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33073 as_unset=unset
33074 else
33075 as_unset=false
33079 # Work around bugs in pre-3.0 UWIN ksh.
33080 $as_unset ENV MAIL MAILPATH
33081 PS1='$ '
33082 PS2='> '
33083 PS4='+ '
33085 # NLS nuisances.
33086 for as_var in \
33087 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33088 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33089 LC_TELEPHONE LC_TIME
33091 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33092 eval $as_var=C; export $as_var
33093 else
33094 $as_unset $as_var
33096 done
33098 # Required to use basename.
33099 if expr a : '\(a\)' >/dev/null 2>&1; then
33100 as_expr=expr
33101 else
33102 as_expr=false
33105 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
33106 as_basename=basename
33107 else
33108 as_basename=false
33112 # Name of the executable.
33113 as_me=`$as_basename "$0" ||
33114 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33115 X"$0" : 'X\(//\)$' \| \
33116 X"$0" : 'X\(/\)$' \| \
33117 . : '\(.\)' 2>/dev/null ||
33118 echo X/"$0" |
33119 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
33120 /^X\/\(\/\/\)$/{ s//\1/; q; }
33121 /^X\/\(\/\).*/{ s//\1/; q; }
33122 s/.*/./; q'`
33125 # PATH needs CR, and LINENO needs CR and PATH.
33126 # Avoid depending upon Character Ranges.
33127 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33128 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33129 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33130 as_cr_digits='0123456789'
33131 as_cr_alnum=$as_cr_Letters$as_cr_digits
33133 # The user is always right.
33134 if test "${PATH_SEPARATOR+set}" != set; then
33135 echo "#! /bin/sh" >conf$$.sh
33136 echo "exit 0" >>conf$$.sh
33137 chmod +x conf$$.sh
33138 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33139 PATH_SEPARATOR=';'
33140 else
33141 PATH_SEPARATOR=:
33143 rm -f conf$$.sh
33147 as_lineno_1=$LINENO
33148 as_lineno_2=$LINENO
33149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33150 test "x$as_lineno_1" != "x$as_lineno_2" &&
33151 test "x$as_lineno_3" = "x$as_lineno_2" || {
33152 # Find who we are. Look in the path if we contain no path at all
33153 # relative or not.
33154 case $0 in
33155 *[\\/]* ) as_myself=$0 ;;
33156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33157 for as_dir in $PATH
33159 IFS=$as_save_IFS
33160 test -z "$as_dir" && as_dir=.
33161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33162 done
33165 esac
33166 # We did not find ourselves, most probably we were run as `sh COMMAND'
33167 # in which case we are not to be found in the path.
33168 if test "x$as_myself" = x; then
33169 as_myself=$0
33171 if test ! -f "$as_myself"; then
33172 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
33173 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
33174 { (exit 1); exit 1; }; }
33176 case $CONFIG_SHELL in
33178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33179 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
33181 IFS=$as_save_IFS
33182 test -z "$as_dir" && as_dir=.
33183 for as_base in sh bash ksh sh5; do
33184 case $as_dir in
33186 if ("$as_dir/$as_base" -c '
33187 as_lineno_1=$LINENO
33188 as_lineno_2=$LINENO
33189 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33190 test "x$as_lineno_1" != "x$as_lineno_2" &&
33191 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
33192 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
33193 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
33194 CONFIG_SHELL=$as_dir/$as_base
33195 export CONFIG_SHELL
33196 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
33197 fi;;
33198 esac
33199 done
33200 done
33202 esac
33204 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33205 # uniformly replaced by the line number. The first 'sed' inserts a
33206 # line-number line before each line; the second 'sed' does the real
33207 # work. The second script uses 'N' to pair each line-number line
33208 # with the numbered line, and appends trailing '-' during
33209 # substitution so that $LINENO is not a special case at line end.
33210 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33211 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
33212 sed '=' <$as_myself |
33213 sed '
33215 s,$,-,
33216 : loop
33217 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
33218 t loop
33219 s,-$,,
33220 s,^['$as_cr_digits']*\n,,
33221 ' >$as_me.lineno &&
33222 chmod +x $as_me.lineno ||
33223 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
33224 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
33225 { (exit 1); exit 1; }; }
33227 # Don't try to exec as it changes $[0], causing all sort of problems
33228 # (the dirname of $[0] is not the place where we might find the
33229 # original and so on. Autoconf is especially sensible to this).
33230 . ./$as_me.lineno
33231 # Exit status is that of the last command.
33232 exit
33236 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
33237 *c*,-n*) ECHO_N= ECHO_C='
33238 ' ECHO_T=' ' ;;
33239 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
33240 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
33241 esac
33243 if expr a : '\(a\)' >/dev/null 2>&1; then
33244 as_expr=expr
33245 else
33246 as_expr=false
33249 rm -f conf$$ conf$$.exe conf$$.file
33250 echo >conf$$.file
33251 if ln -s conf$$.file conf$$ 2>/dev/null; then
33252 # We could just check for DJGPP; but this test a) works b) is more generic
33253 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
33254 if test -f conf$$.exe; then
33255 # Don't use ln at all; we don't have any links
33256 as_ln_s='cp -p'
33257 else
33258 as_ln_s='ln -s'
33260 elif ln conf$$.file conf$$ 2>/dev/null; then
33261 as_ln_s=ln
33262 else
33263 as_ln_s='cp -p'
33265 rm -f conf$$ conf$$.exe conf$$.file
33267 if mkdir -p . 2>/dev/null; then
33268 as_mkdir_p=:
33269 else
33270 test -d ./-p && rmdir ./-p
33271 as_mkdir_p=false
33274 as_executable_p="test -f"
33276 # Sed expression to map a string onto a valid CPP name.
33277 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33279 # Sed expression to map a string onto a valid variable name.
33280 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33283 # IFS
33284 # We need space, tab and new line, in precisely that order.
33285 as_nl='
33287 IFS=" $as_nl"
33289 # CDPATH.
33290 $as_unset CDPATH
33292 exec 6>&1
33294 # Open the log real soon, to keep \$[0] and so on meaningful, and to
33295 # report actual input values of CONFIG_FILES etc. instead of their
33296 # values after options handling. Logging --version etc. is OK.
33297 exec 5>>config.log
33299 echo
33300 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33301 ## Running $as_me. ##
33302 _ASBOX
33303 } >&5
33304 cat >&5 <<_CSEOF
33306 This file was extended by $as_me, which was
33307 generated by GNU Autoconf 2.59. Invocation command line was
33309 CONFIG_FILES = $CONFIG_FILES
33310 CONFIG_HEADERS = $CONFIG_HEADERS
33311 CONFIG_LINKS = $CONFIG_LINKS
33312 CONFIG_COMMANDS = $CONFIG_COMMANDS
33313 $ $0 $@
33315 _CSEOF
33316 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
33317 echo >&5
33318 _ACEOF
33320 # Files that config.status was made for.
33321 if test -n "$ac_config_files"; then
33322 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
33325 if test -n "$ac_config_headers"; then
33326 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
33329 if test -n "$ac_config_links"; then
33330 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
33333 if test -n "$ac_config_commands"; then
33334 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
33337 cat >>$CONFIG_STATUS <<\_ACEOF
33339 ac_cs_usage="\
33340 \`$as_me' instantiates files from templates according to the
33341 current configuration.
33343 Usage: $0 [OPTIONS] [FILE]...
33345 -h, --help print this help, then exit
33346 -V, --version print version number, then exit
33347 -q, --quiet do not print progress messages
33348 -d, --debug don't remove temporary files
33349 --recheck update $as_me by reconfiguring in the same conditions
33350 --file=FILE[:TEMPLATE]
33351 instantiate the configuration file FILE
33352 --header=FILE[:TEMPLATE]
33353 instantiate the configuration header FILE
33355 Configuration files:
33356 $config_files
33358 Configuration headers:
33359 $config_headers
33361 Configuration commands:
33362 $config_commands
33364 Report bugs to <bug-autoconf@gnu.org>."
33365 _ACEOF
33367 cat >>$CONFIG_STATUS <<_ACEOF
33368 ac_cs_version="\\
33369 config.status
33370 configured by $0, generated by GNU Autoconf 2.59,
33371 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
33373 Copyright (C) 2003 Free Software Foundation, Inc.
33374 This config.status script is free software; the Free Software Foundation
33375 gives unlimited permission to copy, distribute and modify it."
33376 srcdir=$srcdir
33377 INSTALL="$INSTALL"
33378 _ACEOF
33380 cat >>$CONFIG_STATUS <<\_ACEOF
33381 # If no file are specified by the user, then we need to provide default
33382 # value. By we need to know if files were specified by the user.
33383 ac_need_defaults=:
33384 while test $# != 0
33386 case $1 in
33387 --*=*)
33388 ac_option=`expr "x$1" : 'x\([^=]*\)='`
33389 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
33390 ac_shift=:
33393 ac_option=$1
33394 ac_optarg=$2
33395 ac_shift=shift
33397 *) # This is not an option, so the user has probably given explicit
33398 # arguments.
33399 ac_option=$1
33400 ac_need_defaults=false;;
33401 esac
33403 case $ac_option in
33404 # Handling of the options.
33405 _ACEOF
33406 cat >>$CONFIG_STATUS <<\_ACEOF
33407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33408 ac_cs_recheck=: ;;
33409 --version | --vers* | -V )
33410 echo "$ac_cs_version"; exit 0 ;;
33411 --he | --h)
33412 # Conflict between --help and --header
33413 { { echo "$as_me:$LINENO: error: ambiguous option: $1
33414 Try \`$0 --help' for more information." >&5
33415 echo "$as_me: error: ambiguous option: $1
33416 Try \`$0 --help' for more information." >&2;}
33417 { (exit 1); exit 1; }; };;
33418 --help | --hel | -h )
33419 echo "$ac_cs_usage"; exit 0 ;;
33420 --debug | --d* | -d )
33421 debug=: ;;
33422 --file | --fil | --fi | --f )
33423 $ac_shift
33424 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33425 ac_need_defaults=false;;
33426 --header | --heade | --head | --hea )
33427 $ac_shift
33428 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33429 ac_need_defaults=false;;
33430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33431 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33432 ac_cs_silent=: ;;
33434 # This is an error.
33435 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
33436 Try \`$0 --help' for more information." >&5
33437 echo "$as_me: error: unrecognized option: $1
33438 Try \`$0 --help' for more information." >&2;}
33439 { (exit 1); exit 1; }; } ;;
33441 *) ac_config_targets="$ac_config_targets $1" ;;
33443 esac
33444 shift
33445 done
33447 ac_configure_extra_args=
33449 if $ac_cs_silent; then
33450 exec 6>/dev/null
33451 ac_configure_extra_args="$ac_configure_extra_args --silent"
33454 _ACEOF
33455 cat >>$CONFIG_STATUS <<_ACEOF
33456 if \$ac_cs_recheck; then
33457 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33458 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33461 _ACEOF
33463 cat >>$CONFIG_STATUS <<_ACEOF
33465 # INIT-COMMANDS section.
33468 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33470 _ACEOF
33474 cat >>$CONFIG_STATUS <<\_ACEOF
33475 for ac_config_target in $ac_config_targets
33477 case "$ac_config_target" in
33478 # Handling of arguments.
33479 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33480 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33481 "doc/en/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/en/Makefile" ;;
33482 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
33483 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33484 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33485 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33486 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33487 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33488 { (exit 1); exit 1; }; };;
33489 esac
33490 done
33492 # If the user did not use the arguments to specify the items to instantiate,
33493 # then the envvar interface is used. Set only those that are not.
33494 # We use the long form for the default assignment because of an extremely
33495 # bizarre bug on SunOS 4.1.3.
33496 if $ac_need_defaults; then
33497 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33498 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33499 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33502 # Have a temporary directory for convenience. Make it in the build tree
33503 # simply because there is no reason to put it here, and in addition,
33504 # creating and moving files from /tmp can sometimes cause problems.
33505 # Create a temporary directory, and hook for its removal unless debugging.
33506 $debug ||
33508 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
33509 trap '{ (exit 1); exit 1; }' 1 2 13 15
33512 # Create a (secure) tmp directory for tmp files.
33515 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
33516 test -n "$tmp" && test -d "$tmp"
33517 } ||
33519 tmp=./confstat$$-$RANDOM
33520 (umask 077 && mkdir $tmp)
33521 } ||
33523 echo "$me: cannot create a temporary directory in ." >&2
33524 { (exit 1); exit 1; }
33527 _ACEOF
33529 cat >>$CONFIG_STATUS <<_ACEOF
33532 # CONFIG_FILES section.
33535 # No need to generate the scripts if there are no CONFIG_FILES.
33536 # This happens for instance when ./config.status config.h
33537 if test -n "\$CONFIG_FILES"; then
33538 # Protect against being on the right side of a sed subst in config.status.
33539 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
33540 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
33541 s,@SHELL@,$SHELL,;t t
33542 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
33543 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
33544 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
33545 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
33546 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
33547 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
33548 s,@exec_prefix@,$exec_prefix,;t t
33549 s,@prefix@,$prefix,;t t
33550 s,@program_transform_name@,$program_transform_name,;t t
33551 s,@bindir@,$bindir,;t t
33552 s,@sbindir@,$sbindir,;t t
33553 s,@libexecdir@,$libexecdir,;t t
33554 s,@datadir@,$datadir,;t t
33555 s,@sysconfdir@,$sysconfdir,;t t
33556 s,@sharedstatedir@,$sharedstatedir,;t t
33557 s,@localstatedir@,$localstatedir,;t t
33558 s,@libdir@,$libdir,;t t
33559 s,@includedir@,$includedir,;t t
33560 s,@oldincludedir@,$oldincludedir,;t t
33561 s,@infodir@,$infodir,;t t
33562 s,@mandir@,$mandir,;t t
33563 s,@build_alias@,$build_alias,;t t
33564 s,@host_alias@,$host_alias,;t t
33565 s,@target_alias@,$target_alias,;t t
33566 s,@DEFS@,$DEFS,;t t
33567 s,@ECHO_C@,$ECHO_C,;t t
33568 s,@ECHO_N@,$ECHO_N,;t t
33569 s,@ECHO_T@,$ECHO_T,;t t
33570 s,@LIBS@,$LIBS,;t t
33571 s,@build@,$build,;t t
33572 s,@build_cpu@,$build_cpu,;t t
33573 s,@build_vendor@,$build_vendor,;t t
33574 s,@build_os@,$build_os,;t t
33575 s,@host@,$host,;t t
33576 s,@host_cpu@,$host_cpu,;t t
33577 s,@host_vendor@,$host_vendor,;t t
33578 s,@host_os@,$host_os,;t t
33579 s,@target@,$target,;t t
33580 s,@target_cpu@,$target_cpu,;t t
33581 s,@target_vendor@,$target_vendor,;t t
33582 s,@target_os@,$target_os,;t t
33583 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
33584 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
33585 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
33586 s,@CYGPATH_W@,$CYGPATH_W,;t t
33587 s,@PACKAGE@,$PACKAGE,;t t
33588 s,@VERSION@,$VERSION,;t t
33589 s,@ACLOCAL@,$ACLOCAL,;t t
33590 s,@AUTOCONF@,$AUTOCONF,;t t
33591 s,@AUTOMAKE@,$AUTOMAKE,;t t
33592 s,@AUTOHEADER@,$AUTOHEADER,;t t
33593 s,@MAKEINFO@,$MAKEINFO,;t t
33594 s,@install_sh@,$install_sh,;t t
33595 s,@STRIP@,$STRIP,;t t
33596 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
33597 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
33598 s,@mkdir_p@,$mkdir_p,;t t
33599 s,@AWK@,$AWK,;t t
33600 s,@SET_MAKE@,$SET_MAKE,;t t
33601 s,@am__leading_dot@,$am__leading_dot,;t t
33602 s,@AMTAR@,$AMTAR,;t t
33603 s,@am__tar@,$am__tar,;t t
33604 s,@am__untar@,$am__untar,;t t
33605 s,@KDECONFIG@,$KDECONFIG,;t t
33606 s,@kde_libs_prefix@,$kde_libs_prefix,;t t
33607 s,@kde_libs_htmldir@,$kde_libs_htmldir,;t t
33608 s,@CONF_FILES@,$CONF_FILES,;t t
33609 s,@CC@,$CC,;t t
33610 s,@CFLAGS@,$CFLAGS,;t t
33611 s,@LDFLAGS@,$LDFLAGS,;t t
33612 s,@CPPFLAGS@,$CPPFLAGS,;t t
33613 s,@ac_ct_CC@,$ac_ct_CC,;t t
33614 s,@EXEEXT@,$EXEEXT,;t t
33615 s,@OBJEXT@,$OBJEXT,;t t
33616 s,@DEPDIR@,$DEPDIR,;t t
33617 s,@am__include@,$am__include,;t t
33618 s,@am__quote@,$am__quote,;t t
33619 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
33620 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
33621 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
33622 s,@CCDEPMODE@,$CCDEPMODE,;t t
33623 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
33624 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
33625 s,@CPP@,$CPP,;t t
33626 s,@CXX@,$CXX,;t t
33627 s,@CXXFLAGS@,$CXXFLAGS,;t t
33628 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
33629 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
33630 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
33631 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
33632 s,@WOVERLOADED_VIRTUAL@,$WOVERLOADED_VIRTUAL,;t t
33633 s,@HAVE_GCC_VISIBILITY@,$HAVE_GCC_VISIBILITY,;t t
33634 s,@unsermake_enable_pch_TRUE@,$unsermake_enable_pch_TRUE,;t t
33635 s,@unsermake_enable_pch_FALSE@,$unsermake_enable_pch_FALSE,;t t
33636 s,@USE_EXCEPTIONS@,$USE_EXCEPTIONS,;t t
33637 s,@USE_RTTI@,$USE_RTTI,;t t
33638 s,@CXXCPP@,$CXXCPP,;t t
33639 s,@NOOPT_CXXFLAGS@,$NOOPT_CXXFLAGS,;t t
33640 s,@NOOPT_CFLAGS@,$NOOPT_CFLAGS,;t t
33641 s,@ENABLE_PERMISSIVE_FLAG@,$ENABLE_PERMISSIVE_FLAG,;t t
33642 s,@LDFLAGS_AS_NEEDED@,$LDFLAGS_AS_NEEDED,;t t
33643 s,@LDFLAGS_NEW_DTAGS@,$LDFLAGS_NEW_DTAGS,;t t
33644 s,@KDE_USE_FINAL_TRUE@,$KDE_USE_FINAL_TRUE,;t t
33645 s,@KDE_USE_FINAL_FALSE@,$KDE_USE_FINAL_FALSE,;t t
33646 s,@KDE_USE_CLOSURE_TRUE@,$KDE_USE_CLOSURE_TRUE,;t t
33647 s,@KDE_USE_CLOSURE_FALSE@,$KDE_USE_CLOSURE_FALSE,;t t
33648 s,@KDE_NO_UNDEFINED@,$KDE_NO_UNDEFINED,;t t
33649 s,@KDE_USE_NMCHECK_TRUE@,$KDE_USE_NMCHECK_TRUE,;t t
33650 s,@KDE_USE_NMCHECK_FALSE@,$KDE_USE_NMCHECK_FALSE,;t t
33651 s,@EGREP@,$EGREP,;t t
33652 s,@LN_S@,$LN_S,;t t
33653 s,@ECHO@,$ECHO,;t t
33654 s,@AR@,$AR,;t t
33655 s,@ac_ct_AR@,$ac_ct_AR,;t t
33656 s,@RANLIB@,$RANLIB,;t t
33657 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
33658 s,@F77@,$F77,;t t
33659 s,@FFLAGS@,$FFLAGS,;t t
33660 s,@ac_ct_F77@,$ac_ct_F77,;t t
33661 s,@LIBTOOL@,$LIBTOOL,;t t
33662 s,@KDE_PLUGIN@,$KDE_PLUGIN,;t t
33663 s,@KDE_CHECK_PLUGIN@,$KDE_CHECK_PLUGIN,;t t
33664 s,@MSGFMT@,$MSGFMT,;t t
33665 s,@GMSGFMT@,$GMSGFMT,;t t
33666 s,@XGETTEXT@,$XGETTEXT,;t t
33667 s,@LIBUTIL@,$LIBUTIL,;t t
33668 s,@LIBCOMPAT@,$LIBCOMPAT,;t t
33669 s,@LIBCRYPT@,$LIBCRYPT,;t t
33670 s,@LIBRESOLV@,$LIBRESOLV,;t t
33671 s,@LIB_POLL@,$LIB_POLL,;t t
33672 s,@FRAMEWORK_COREAUDIO@,$FRAMEWORK_COREAUDIO,;t t
33673 s,@LIBSOCKET@,$LIBSOCKET,;t t
33674 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
33675 s,@LIBUCB@,$LIBUCB,;t t
33676 s,@LIBDL@,$LIBDL,;t t
33677 s,@KDE_USE_FPIE@,$KDE_USE_FPIE,;t t
33678 s,@KDE_USE_PIE@,$KDE_USE_PIE,;t t
33679 s,@include_x11_TRUE@,$include_x11_TRUE,;t t
33680 s,@include_x11_FALSE@,$include_x11_FALSE,;t t
33681 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
33682 s,@LIB_X11@,$LIB_X11,;t t
33683 s,@LIB_XRENDER@,$LIB_XRENDER,;t t
33684 s,@LIBSM@,$LIBSM,;t t
33685 s,@X_INCLUDES@,$X_INCLUDES,;t t
33686 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
33687 s,@x_includes@,$x_includes,;t t
33688 s,@x_libraries@,$x_libraries,;t t
33689 s,@QTE_NORTTI@,$QTE_NORTTI,;t t
33690 s,@LIB_XEXT@,$LIB_XEXT,;t t
33691 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
33692 s,@USE_THREADS@,$USE_THREADS,;t t
33693 s,@KDE_MT_LDFLAGS@,$KDE_MT_LDFLAGS,;t t
33694 s,@KDE_MT_LIBS@,$KDE_MT_LIBS,;t t
33695 s,@USER_INCLUDES@,$USER_INCLUDES,;t t
33696 s,@USER_LDFLAGS@,$USER_LDFLAGS,;t t
33697 s,@LIBZ@,$LIBZ,;t t
33698 s,@LIBPNG@,$LIBPNG,;t t
33699 s,@LIBJPEG@,$LIBJPEG,;t t
33700 s,@qt_libraries@,$qt_libraries,;t t
33701 s,@qt_includes@,$qt_includes,;t t
33702 s,@QT_INCLUDES@,$QT_INCLUDES,;t t
33703 s,@QT_LDFLAGS@,$QT_LDFLAGS,;t t
33704 s,@PERL@,$PERL,;t t
33705 s,@MOC@,$MOC,;t t
33706 s,@UIC@,$UIC,;t t
33707 s,@UIC_TR@,$UIC_TR,;t t
33708 s,@LIB_QT@,$LIB_QT,;t t
33709 s,@LIB_QPE@,$LIB_QPE,;t t
33710 s,@kde_qtver@,$kde_qtver,;t t
33711 s,@KDE_EXTRA_RPATH@,$KDE_EXTRA_RPATH,;t t
33712 s,@KDE_RPATH@,$KDE_RPATH,;t t
33713 s,@X_RPATH@,$X_RPATH,;t t
33714 s,@kde_libraries@,$kde_libraries,;t t
33715 s,@kde_includes@,$kde_includes,;t t
33716 s,@KDE_LDFLAGS@,$KDE_LDFLAGS,;t t
33717 s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t
33718 s,@all_includes@,$all_includes,;t t
33719 s,@all_libraries@,$all_libraries,;t t
33720 s,@AUTODIRS@,$AUTODIRS,;t t
33721 s,@include_ARTS_TRUE@,$include_ARTS_TRUE,;t t
33722 s,@include_ARTS_FALSE@,$include_ARTS_FALSE,;t t
33723 s,@MAKEKDEWIDGETS@,$MAKEKDEWIDGETS,;t t
33724 s,@KCONFIG_COMPILER@,$KCONFIG_COMPILER,;t t
33725 s,@KCFG_DEPENDENCIES@,$KCFG_DEPENDENCIES,;t t
33726 s,@DCOPIDLNG@,$DCOPIDLNG,;t t
33727 s,@DCOPIDL@,$DCOPIDL,;t t
33728 s,@DCOPIDL2CPP@,$DCOPIDL2CPP,;t t
33729 s,@DCOP_DEPENDENCIES@,$DCOP_DEPENDENCIES,;t t
33730 s,@MCOPIDL@,$MCOPIDL,;t t
33731 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
33732 s,@MEINPROC@,$MEINPROC,;t t
33733 s,@KDE_XSL_STYLESHEET@,$KDE_XSL_STYLESHEET,;t t
33734 s,@XMLLINT@,$XMLLINT,;t t
33735 s,@kde_htmldir@,$kde_htmldir,;t t
33736 s,@kde_appsdir@,$kde_appsdir,;t t
33737 s,@kde_icondir@,$kde_icondir,;t t
33738 s,@kde_sounddir@,$kde_sounddir,;t t
33739 s,@kde_datadir@,$kde_datadir,;t t
33740 s,@kde_locale@,$kde_locale,;t t
33741 s,@kde_confdir@,$kde_confdir,;t t
33742 s,@kde_kcfgdir@,$kde_kcfgdir,;t t
33743 s,@kde_mimedir@,$kde_mimedir,;t t
33744 s,@kde_wallpaperdir@,$kde_wallpaperdir,;t t
33745 s,@kde_bindir@,$kde_bindir,;t t
33746 s,@xdg_appsdir@,$xdg_appsdir,;t t
33747 s,@xdg_menudir@,$xdg_menudir,;t t
33748 s,@xdg_directorydir@,$xdg_directorydir,;t t
33749 s,@kde_templatesdir@,$kde_templatesdir,;t t
33750 s,@kde_servicesdir@,$kde_servicesdir,;t t
33751 s,@kde_servicetypesdir@,$kde_servicetypesdir,;t t
33752 s,@kde_moduledir@,$kde_moduledir,;t t
33753 s,@kdeinitdir@,$kdeinitdir,;t t
33754 s,@kde_styledir@,$kde_styledir,;t t
33755 s,@kde_widgetdir@,$kde_widgetdir,;t t
33756 s,@LIB_KDED@,$LIB_KDED,;t t
33757 s,@LIB_KDECORE@,$LIB_KDECORE,;t t
33758 s,@LIB_KDEUI@,$LIB_KDEUI,;t t
33759 s,@LIB_KIO@,$LIB_KIO,;t t
33760 s,@LIB_KJS@,$LIB_KJS,;t t
33761 s,@LIB_SMB@,$LIB_SMB,;t t
33762 s,@LIB_KAB@,$LIB_KAB,;t t
33763 s,@LIB_KABC@,$LIB_KABC,;t t
33764 s,@LIB_KHTML@,$LIB_KHTML,;t t
33765 s,@LIB_KSPELL@,$LIB_KSPELL,;t t
33766 s,@LIB_KPARTS@,$LIB_KPARTS,;t t
33767 s,@LIB_KDEPRINT@,$LIB_KDEPRINT,;t t
33768 s,@LIB_KUTILS@,$LIB_KUTILS,;t t
33769 s,@LIB_KDEPIM@,$LIB_KDEPIM,;t t
33770 s,@LIB_KIMPROXY@,$LIB_KIMPROXY,;t t
33771 s,@LIB_KNEWSTUFF@,$LIB_KNEWSTUFF,;t t
33772 s,@LIB_KDNSSD@,$LIB_KDNSSD,;t t
33773 s,@LIB_KUNITTEST@,$LIB_KUNITTEST,;t t
33774 s,@LIB_KSYCOCA@,$LIB_KSYCOCA,;t t
33775 s,@LIB_KFILE@,$LIB_KFILE,;t t
33776 s,@LIB_KFM@,$LIB_KFM,;t t
33777 s,@TOPSUBDIRS@,$TOPSUBDIRS,;t t
33778 s,@LIBOBJS@,$LIBOBJS,;t t
33779 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
33780 CEOF
33782 _ACEOF
33784 cat >>$CONFIG_STATUS <<\_ACEOF
33785 # Split the substitutions into bite-sized pieces for seds with
33786 # small command number limits, like on Digital OSF/1 and HP-UX.
33787 ac_max_sed_lines=48
33788 ac_sed_frag=1 # Number of current file.
33789 ac_beg=1 # First line for current file.
33790 ac_end=$ac_max_sed_lines # Line after last line for current file.
33791 ac_more_lines=:
33792 ac_sed_cmds=
33793 while $ac_more_lines; do
33794 if test $ac_beg -gt 1; then
33795 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33796 else
33797 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33799 if test ! -s $tmp/subs.frag; then
33800 ac_more_lines=false
33801 else
33802 # The purpose of the label and of the branching condition is to
33803 # speed up the sed processing (if there are no `@' at all, there
33804 # is no need to browse any of the substitutions).
33805 # These are the two extra sed commands mentioned above.
33806 (echo ':t
33807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
33808 if test -z "$ac_sed_cmds"; then
33809 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
33810 else
33811 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
33813 ac_sed_frag=`expr $ac_sed_frag + 1`
33814 ac_beg=$ac_end
33815 ac_end=`expr $ac_end + $ac_max_sed_lines`
33817 done
33818 if test -z "$ac_sed_cmds"; then
33819 ac_sed_cmds=cat
33821 fi # test -n "$CONFIG_FILES"
33823 _ACEOF
33824 cat >>$CONFIG_STATUS <<\_ACEOF
33825 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
33826 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33827 case $ac_file in
33828 - | *:- | *:-:* ) # input from stdin
33829 cat >$tmp/stdin
33830 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33831 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33832 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33833 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33834 * ) ac_file_in=$ac_file.in ;;
33835 esac
33837 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
33838 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33840 X"$ac_file" : 'X\(//\)[^/]' \| \
33841 X"$ac_file" : 'X\(//\)$' \| \
33842 X"$ac_file" : 'X\(/\)' \| \
33843 . : '\(.\)' 2>/dev/null ||
33844 echo X"$ac_file" |
33845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33847 /^X\(\/\/\)$/{ s//\1/; q; }
33848 /^X\(\/\).*/{ s//\1/; q; }
33849 s/.*/./; q'`
33850 { if $as_mkdir_p; then
33851 mkdir -p "$ac_dir"
33852 else
33853 as_dir="$ac_dir"
33854 as_dirs=
33855 while test ! -d "$as_dir"; do
33856 as_dirs="$as_dir $as_dirs"
33857 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33859 X"$as_dir" : 'X\(//\)[^/]' \| \
33860 X"$as_dir" : 'X\(//\)$' \| \
33861 X"$as_dir" : 'X\(/\)' \| \
33862 . : '\(.\)' 2>/dev/null ||
33863 echo X"$as_dir" |
33864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33866 /^X\(\/\/\)$/{ s//\1/; q; }
33867 /^X\(\/\).*/{ s//\1/; q; }
33868 s/.*/./; q'`
33869 done
33870 test ! -n "$as_dirs" || mkdir $as_dirs
33871 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33872 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33873 { (exit 1); exit 1; }; }; }
33875 ac_builddir=.
33877 if test "$ac_dir" != .; then
33878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33879 # A "../" for each directory in $ac_dir_suffix.
33880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33881 else
33882 ac_dir_suffix= ac_top_builddir=
33885 case $srcdir in
33886 .) # No --srcdir option. We are building in place.
33887 ac_srcdir=.
33888 if test -z "$ac_top_builddir"; then
33889 ac_top_srcdir=.
33890 else
33891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33892 fi ;;
33893 [\\/]* | ?:[\\/]* ) # Absolute path.
33894 ac_srcdir=$srcdir$ac_dir_suffix;
33895 ac_top_srcdir=$srcdir ;;
33896 *) # Relative path.
33897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
33899 esac
33901 # Do not use `cd foo && pwd` to compute absolute paths, because
33902 # the directories may not exist.
33903 case `pwd` in
33904 .) ac_abs_builddir="$ac_dir";;
33906 case "$ac_dir" in
33907 .) ac_abs_builddir=`pwd`;;
33908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
33910 esac;;
33911 esac
33912 case $ac_abs_builddir in
33913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33915 case ${ac_top_builddir}. in
33916 .) ac_abs_top_builddir=$ac_abs_builddir;;
33917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33919 esac;;
33920 esac
33921 case $ac_abs_builddir in
33922 .) ac_abs_srcdir=$ac_srcdir;;
33924 case $ac_srcdir in
33925 .) ac_abs_srcdir=$ac_abs_builddir;;
33926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33928 esac;;
33929 esac
33930 case $ac_abs_builddir in
33931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33933 case $ac_top_srcdir in
33934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
33935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33937 esac;;
33938 esac
33941 case $INSTALL in
33942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33943 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
33944 esac
33946 if test x"$ac_file" != x-; then
33947 { echo "$as_me:$LINENO: creating $ac_file" >&5
33948 echo "$as_me: creating $ac_file" >&6;}
33949 rm -f "$ac_file"
33951 # Let's still pretend it is `configure' which instantiates (i.e., don't
33952 # use $as_me), people would be surprised to read:
33953 # /* config.h. Generated by config.status. */
33954 if test x"$ac_file" = x-; then
33955 configure_input=
33956 else
33957 configure_input="$ac_file. "
33959 configure_input=$configure_input"Generated from `echo $ac_file_in |
33960 sed 's,.*/,,'` by configure."
33962 # First look for the input files in the build tree, otherwise in the
33963 # src tree.
33964 ac_file_inputs=`IFS=:
33965 for f in $ac_file_in; do
33966 case $f in
33967 -) echo $tmp/stdin ;;
33968 [\\/$]*)
33969 # Absolute (can't be DOS-style, as IFS=:)
33970 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33971 echo "$as_me: error: cannot find input file: $f" >&2;}
33972 { (exit 1); exit 1; }; }
33973 echo "$f";;
33974 *) # Relative
33975 if test -f "$f"; then
33976 # Build tree
33977 echo "$f"
33978 elif test -f "$srcdir/$f"; then
33979 # Source tree
33980 echo "$srcdir/$f"
33981 else
33982 # /dev/null tree
33983 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33984 echo "$as_me: error: cannot find input file: $f" >&2;}
33985 { (exit 1); exit 1; }; }
33986 fi;;
33987 esac
33988 done` || { (exit 1); exit 1; }
33989 _ACEOF
33990 cat >>$CONFIG_STATUS <<_ACEOF
33991 sed "$ac_vpsub
33992 $extrasub
33993 _ACEOF
33994 cat >>$CONFIG_STATUS <<\_ACEOF
33996 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33997 s,@configure_input@,$configure_input,;t t
33998 s,@srcdir@,$ac_srcdir,;t t
33999 s,@abs_srcdir@,$ac_abs_srcdir,;t t
34000 s,@top_srcdir@,$ac_top_srcdir,;t t
34001 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
34002 s,@builddir@,$ac_builddir,;t t
34003 s,@abs_builddir@,$ac_abs_builddir,;t t
34004 s,@top_builddir@,$ac_top_builddir,;t t
34005 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
34006 s,@INSTALL@,$ac_INSTALL,;t t
34007 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
34008 rm -f $tmp/stdin
34009 if test x"$ac_file" != x-; then
34010 mv $tmp/out $ac_file
34011 else
34012 cat $tmp/out
34013 rm -f $tmp/out
34016 done
34017 _ACEOF
34018 cat >>$CONFIG_STATUS <<\_ACEOF
34021 # CONFIG_HEADER section.
34024 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
34025 # NAME is the cpp macro being defined and VALUE is the value it is being given.
34027 # ac_d sets the value in "#define NAME VALUE" lines.
34028 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
34029 ac_dB='[ ].*$,\1#\2'
34030 ac_dC=' '
34031 ac_dD=',;t'
34032 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
34033 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
34034 ac_uB='$,\1#\2define\3'
34035 ac_uC=' '
34036 ac_uD=',;t'
34038 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
34039 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34040 case $ac_file in
34041 - | *:- | *:-:* ) # input from stdin
34042 cat >$tmp/stdin
34043 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34045 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34046 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34047 * ) ac_file_in=$ac_file.in ;;
34048 esac
34050 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
34051 echo "$as_me: creating $ac_file" >&6;}
34053 # First look for the input files in the build tree, otherwise in the
34054 # src tree.
34055 ac_file_inputs=`IFS=:
34056 for f in $ac_file_in; do
34057 case $f in
34058 -) echo $tmp/stdin ;;
34059 [\\/$]*)
34060 # Absolute (can't be DOS-style, as IFS=:)
34061 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34062 echo "$as_me: error: cannot find input file: $f" >&2;}
34063 { (exit 1); exit 1; }; }
34064 # Do quote $f, to prevent DOS paths from being IFS'd.
34065 echo "$f";;
34066 *) # Relative
34067 if test -f "$f"; then
34068 # Build tree
34069 echo "$f"
34070 elif test -f "$srcdir/$f"; then
34071 # Source tree
34072 echo "$srcdir/$f"
34073 else
34074 # /dev/null tree
34075 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34076 echo "$as_me: error: cannot find input file: $f" >&2;}
34077 { (exit 1); exit 1; }; }
34078 fi;;
34079 esac
34080 done` || { (exit 1); exit 1; }
34081 # Remove the trailing spaces.
34082 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
34084 _ACEOF
34086 # Transform confdefs.h into two sed scripts, `conftest.defines' and
34087 # `conftest.undefs', that substitutes the proper values into
34088 # config.h.in to produce config.h. The first handles `#define'
34089 # templates, and the second `#undef' templates.
34090 # And first: Protect against being on the right side of a sed subst in
34091 # config.status. Protect against being in an unquoted here document
34092 # in config.status.
34093 rm -f conftest.defines conftest.undefs
34094 # Using a here document instead of a string reduces the quoting nightmare.
34095 # Putting comments in sed scripts is not portable.
34097 # `end' is used to avoid that the second main sed command (meant for
34098 # 0-ary CPP macros) applies to n-ary macro definitions.
34099 # See the Autoconf documentation for `clear'.
34100 cat >confdef2sed.sed <<\_ACEOF
34101 s/[\\&,]/\\&/g
34102 s,[\\$`],\\&,g
34103 t clear
34104 : clear
34105 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
34106 t end
34107 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
34108 : end
34109 _ACEOF
34110 # If some macros were called several times there might be several times
34111 # the same #defines, which is useless. Nevertheless, we may not want to
34112 # sort them, since we want the *last* AC-DEFINE to be honored.
34113 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
34114 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
34115 rm -f confdef2sed.sed
34117 # This sed command replaces #undef with comments. This is necessary, for
34118 # example, in the case of _POSIX_SOURCE, which is predefined and required
34119 # on some systems where configure will not decide to define it.
34120 cat >>conftest.undefs <<\_ACEOF
34121 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
34122 _ACEOF
34124 # Break up conftest.defines because some shells have a limit on the size
34125 # of here documents, and old seds have small limits too (100 cmds).
34126 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
34127 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
34128 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
34129 echo ' :' >>$CONFIG_STATUS
34130 rm -f conftest.tail
34131 while grep . conftest.defines >/dev/null
34133 # Write a limited-size here document to $tmp/defines.sed.
34134 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
34135 # Speed up: don't consider the non `#define' lines.
34136 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
34137 # Work around the forget-to-reset-the-flag bug.
34138 echo 't clr' >>$CONFIG_STATUS
34139 echo ': clr' >>$CONFIG_STATUS
34140 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
34141 echo 'CEOF
34142 sed -f $tmp/defines.sed $tmp/in >$tmp/out
34143 rm -f $tmp/in
34144 mv $tmp/out $tmp/in
34145 ' >>$CONFIG_STATUS
34146 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
34147 rm -f conftest.defines
34148 mv conftest.tail conftest.defines
34149 done
34150 rm -f conftest.defines
34151 echo ' fi # grep' >>$CONFIG_STATUS
34152 echo >>$CONFIG_STATUS
34154 # Break up conftest.undefs because some shells have a limit on the size
34155 # of here documents, and old seds have small limits too (100 cmds).
34156 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
34157 rm -f conftest.tail
34158 while grep . conftest.undefs >/dev/null
34160 # Write a limited-size here document to $tmp/undefs.sed.
34161 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
34162 # Speed up: don't consider the non `#undef'
34163 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
34164 # Work around the forget-to-reset-the-flag bug.
34165 echo 't clr' >>$CONFIG_STATUS
34166 echo ': clr' >>$CONFIG_STATUS
34167 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
34168 echo 'CEOF
34169 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
34170 rm -f $tmp/in
34171 mv $tmp/out $tmp/in
34172 ' >>$CONFIG_STATUS
34173 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
34174 rm -f conftest.undefs
34175 mv conftest.tail conftest.undefs
34176 done
34177 rm -f conftest.undefs
34179 cat >>$CONFIG_STATUS <<\_ACEOF
34180 # Let's still pretend it is `configure' which instantiates (i.e., don't
34181 # use $as_me), people would be surprised to read:
34182 # /* config.h. Generated by config.status. */
34183 if test x"$ac_file" = x-; then
34184 echo "/* Generated by configure. */" >$tmp/config.h
34185 else
34186 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
34188 cat $tmp/in >>$tmp/config.h
34189 rm -f $tmp/in
34190 if test x"$ac_file" != x-; then
34191 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
34192 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34193 echo "$as_me: $ac_file is unchanged" >&6;}
34194 else
34195 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
34196 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34197 X"$ac_file" : 'X\(//\)[^/]' \| \
34198 X"$ac_file" : 'X\(//\)$' \| \
34199 X"$ac_file" : 'X\(/\)' \| \
34200 . : '\(.\)' 2>/dev/null ||
34201 echo X"$ac_file" |
34202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34204 /^X\(\/\/\)$/{ s//\1/; q; }
34205 /^X\(\/\).*/{ s//\1/; q; }
34206 s/.*/./; q'`
34207 { if $as_mkdir_p; then
34208 mkdir -p "$ac_dir"
34209 else
34210 as_dir="$ac_dir"
34211 as_dirs=
34212 while test ! -d "$as_dir"; do
34213 as_dirs="$as_dir $as_dirs"
34214 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34215 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34216 X"$as_dir" : 'X\(//\)[^/]' \| \
34217 X"$as_dir" : 'X\(//\)$' \| \
34218 X"$as_dir" : 'X\(/\)' \| \
34219 . : '\(.\)' 2>/dev/null ||
34220 echo X"$as_dir" |
34221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34223 /^X\(\/\/\)$/{ s//\1/; q; }
34224 /^X\(\/\).*/{ s//\1/; q; }
34225 s/.*/./; q'`
34226 done
34227 test ! -n "$as_dirs" || mkdir $as_dirs
34228 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34229 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34230 { (exit 1); exit 1; }; }; }
34232 rm -f $ac_file
34233 mv $tmp/config.h $ac_file
34235 else
34236 cat $tmp/config.h
34237 rm -f $tmp/config.h
34239 # Compute $ac_file's index in $config_headers.
34240 _am_stamp_count=1
34241 for _am_header in $config_headers :; do
34242 case $_am_header in
34243 $ac_file | $ac_file:* )
34244 break ;;
34246 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34247 esac
34248 done
34249 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
34250 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34251 X$ac_file : 'X\(//\)[^/]' \| \
34252 X$ac_file : 'X\(//\)$' \| \
34253 X$ac_file : 'X\(/\)' \| \
34254 . : '\(.\)' 2>/dev/null ||
34255 echo X$ac_file |
34256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34257 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34258 /^X\(\/\/\)$/{ s//\1/; q; }
34259 /^X\(\/\).*/{ s//\1/; q; }
34260 s/.*/./; q'`/stamp-h$_am_stamp_count
34261 done
34262 _ACEOF
34263 cat >>$CONFIG_STATUS <<\_ACEOF
34266 # CONFIG_COMMANDS section.
34268 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
34269 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
34270 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
34271 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
34272 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34273 X"$ac_dest" : 'X\(//\)[^/]' \| \
34274 X"$ac_dest" : 'X\(//\)$' \| \
34275 X"$ac_dest" : 'X\(/\)' \| \
34276 . : '\(.\)' 2>/dev/null ||
34277 echo X"$ac_dest" |
34278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34280 /^X\(\/\/\)$/{ s//\1/; q; }
34281 /^X\(\/\).*/{ s//\1/; q; }
34282 s/.*/./; q'`
34283 { if $as_mkdir_p; then
34284 mkdir -p "$ac_dir"
34285 else
34286 as_dir="$ac_dir"
34287 as_dirs=
34288 while test ! -d "$as_dir"; do
34289 as_dirs="$as_dir $as_dirs"
34290 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34291 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34292 X"$as_dir" : 'X\(//\)[^/]' \| \
34293 X"$as_dir" : 'X\(//\)$' \| \
34294 X"$as_dir" : 'X\(/\)' \| \
34295 . : '\(.\)' 2>/dev/null ||
34296 echo X"$as_dir" |
34297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34299 /^X\(\/\/\)$/{ s//\1/; q; }
34300 /^X\(\/\).*/{ s//\1/; q; }
34301 s/.*/./; q'`
34302 done
34303 test ! -n "$as_dirs" || mkdir $as_dirs
34304 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34305 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34306 { (exit 1); exit 1; }; }; }
34308 ac_builddir=.
34310 if test "$ac_dir" != .; then
34311 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34312 # A "../" for each directory in $ac_dir_suffix.
34313 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34314 else
34315 ac_dir_suffix= ac_top_builddir=
34318 case $srcdir in
34319 .) # No --srcdir option. We are building in place.
34320 ac_srcdir=.
34321 if test -z "$ac_top_builddir"; then
34322 ac_top_srcdir=.
34323 else
34324 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34325 fi ;;
34326 [\\/]* | ?:[\\/]* ) # Absolute path.
34327 ac_srcdir=$srcdir$ac_dir_suffix;
34328 ac_top_srcdir=$srcdir ;;
34329 *) # Relative path.
34330 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34331 ac_top_srcdir=$ac_top_builddir$srcdir ;;
34332 esac
34334 # Do not use `cd foo && pwd` to compute absolute paths, because
34335 # the directories may not exist.
34336 case `pwd` in
34337 .) ac_abs_builddir="$ac_dir";;
34339 case "$ac_dir" in
34340 .) ac_abs_builddir=`pwd`;;
34341 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
34342 *) ac_abs_builddir=`pwd`/"$ac_dir";;
34343 esac;;
34344 esac
34345 case $ac_abs_builddir in
34346 .) ac_abs_top_builddir=${ac_top_builddir}.;;
34348 case ${ac_top_builddir}. in
34349 .) ac_abs_top_builddir=$ac_abs_builddir;;
34350 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
34351 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
34352 esac;;
34353 esac
34354 case $ac_abs_builddir in
34355 .) ac_abs_srcdir=$ac_srcdir;;
34357 case $ac_srcdir in
34358 .) ac_abs_srcdir=$ac_abs_builddir;;
34359 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34360 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34361 esac;;
34362 esac
34363 case $ac_abs_builddir in
34364 .) ac_abs_top_srcdir=$ac_top_srcdir;;
34366 case $ac_top_srcdir in
34367 .) ac_abs_top_srcdir=$ac_abs_builddir;;
34368 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34369 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
34370 esac;;
34371 esac
34374 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
34375 echo "$as_me: executing $ac_dest commands" >&6;}
34376 case $ac_dest in
34377 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
34378 # Strip MF so we end up with the name of the file.
34379 mf=`echo "$mf" | sed -e 's/:.*$//'`
34380 # Check whether this is an Automake generated Makefile or not.
34381 # We used to match only the files named `Makefile.in', but
34382 # some people rename them; so instead we look at the file content.
34383 # Grep'ing the first line is not enough: some people post-process
34384 # each Makefile.in and add a new line on top of each file to say so.
34385 # So let's grep whole file.
34386 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
34387 dirpart=`(dirname "$mf") 2>/dev/null ||
34388 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34389 X"$mf" : 'X\(//\)[^/]' \| \
34390 X"$mf" : 'X\(//\)$' \| \
34391 X"$mf" : 'X\(/\)' \| \
34392 . : '\(.\)' 2>/dev/null ||
34393 echo X"$mf" |
34394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34396 /^X\(\/\/\)$/{ s//\1/; q; }
34397 /^X\(\/\).*/{ s//\1/; q; }
34398 s/.*/./; q'`
34399 else
34400 continue
34402 # Extract the definition of DEPDIR, am__include, and am__quote
34403 # from the Makefile without running `make'.
34404 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34405 test -z "$DEPDIR" && continue
34406 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34407 test -z "am__include" && continue
34408 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34409 # When using ansi2knr, U may be empty or an underscore; expand it
34410 U=`sed -n 's/^U = //p' < "$mf"`
34411 # Find all dependency output files, they are included files with
34412 # $(DEPDIR) in their names. We invoke sed twice because it is the
34413 # simplest approach to changing $(DEPDIR) to its actual value in the
34414 # expansion.
34415 for file in `sed -n "
34416 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34417 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34418 # Make sure the directory exists.
34419 test -f "$dirpart/$file" && continue
34420 fdir=`(dirname "$file") 2>/dev/null ||
34421 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34422 X"$file" : 'X\(//\)[^/]' \| \
34423 X"$file" : 'X\(//\)$' \| \
34424 X"$file" : 'X\(/\)' \| \
34425 . : '\(.\)' 2>/dev/null ||
34426 echo X"$file" |
34427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34429 /^X\(\/\/\)$/{ s//\1/; q; }
34430 /^X\(\/\).*/{ s//\1/; q; }
34431 s/.*/./; q'`
34432 { if $as_mkdir_p; then
34433 mkdir -p $dirpart/$fdir
34434 else
34435 as_dir=$dirpart/$fdir
34436 as_dirs=
34437 while test ! -d "$as_dir"; do
34438 as_dirs="$as_dir $as_dirs"
34439 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34441 X"$as_dir" : 'X\(//\)[^/]' \| \
34442 X"$as_dir" : 'X\(//\)$' \| \
34443 X"$as_dir" : 'X\(/\)' \| \
34444 . : '\(.\)' 2>/dev/null ||
34445 echo X"$as_dir" |
34446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34448 /^X\(\/\/\)$/{ s//\1/; q; }
34449 /^X\(\/\).*/{ s//\1/; q; }
34450 s/.*/./; q'`
34451 done
34452 test ! -n "$as_dirs" || mkdir $as_dirs
34453 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
34454 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
34455 { (exit 1); exit 1; }; }; }
34457 # echo "creating $dirpart/$file"
34458 echo '# dummy' > "$dirpart/$file"
34459 done
34460 done
34462 esac
34463 done
34464 _ACEOF
34466 cat >>$CONFIG_STATUS <<\_ACEOF
34468 { (exit 0); exit 0; }
34469 _ACEOF
34470 if test "x$with_fast_perl" = "xyes"; then
34471 perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \
34472 || mv $CONFIG_STATUS.bak $CONFIG_STATUS
34473 rm -f $CONFIG_STATUS.bak
34475 chmod +x $CONFIG_STATUS
34476 ac_clean_files=$ac_clean_files_save
34479 # configure is writing to config.log, and then calls config.status.
34480 # config.status does its own redirection, appending to config.log.
34481 # Unfortunately, on DOS this fails, as config.log is still kept open
34482 # by configure, so config.status won't be able to write to it; its
34483 # output is simply discarded. So we exec the FD to /dev/null,
34484 # effectively closing config.log, so it can be properly (re)opened and
34485 # appended to by config.status. When coming back to configure, we
34486 # need to make the FD available again.
34487 if test "$no_create" != yes; then
34488 ac_cs_success=:
34489 ac_config_status_args=
34490 test "$silent" = yes &&
34491 ac_config_status_args="$ac_config_status_args --quiet"
34492 exec 5>/dev/null
34493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34494 exec 5>>config.log
34495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34496 # would make configure fail if this is the last instruction.
34497 $ac_cs_success || { (exit 1); exit 1; }
34500 # Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
34501 if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
34502 # And if so, warn when they don't match
34503 if test "$kde_libs_prefix" != "$given_prefix"; then
34504 # And if kde doesn't know about the prefix yet
34505 echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
34506 if test $? -ne 0; then
34507 echo ""
34508 echo "Warning: you chose to install this package in $given_prefix,"
34509 echo "but KDE was found in $kde_libs_prefix."
34510 echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
34511 echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
34512 echo "Then restart KDE."
34513 echo ""
34518 if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
34519 echo ""
34520 echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
34521 echo "was not included. Therefore, GCC symbol visibility support remains disabled."
34522 echo ""
34523 echo "For better performance, consider including the Qt visibility supporting patch"
34524 echo "located at:"
34525 echo ""
34526 echo "http://bugs.kde.org/show_bug.cgi?id=109386"
34527 echo ""
34528 echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
34529 echo "everything will continue to work just fine without it."
34530 echo ""
34533 if test "$all_tests" = "bad"; then
34534 if test ! "$cache_file" = "/dev/null"; then
34535 echo ""
34536 echo "Please remove the file $cache_file after changing your setup"
34537 echo "so that configure will find the changes next time."
34538 echo ""
34540 else
34541 echo ""
34542 echo "Good - your configure finished. Start make now"
34543 echo ""