Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for blackbox 0.70.1.
4 #
5 # Report bugs to <http://blackboxwm.sourceforge.net>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
266 :
267 else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
276 $*
277 EOF
278 exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303 else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
312 IFS="$lt_save_ifs"
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
321 IFS="$lt_save_ifs"
322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='blackbox'
425 PACKAGE_TARNAME='blackbox'
426 PACKAGE_VERSION='0.70.1'
427 PACKAGE_STRING='blackbox 0.70.1'
428 PACKAGE_BUGREPORT='http://blackboxwm.sourceforge.net'
429
430 ac_unique_file="src/blackbox.cc"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 # include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 # include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 # include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 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 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 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 EGREP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS regex_cmd gencat_cmd ICONV LOCALE SHAPE MITSHM PKG_CONFIG ac_pt_PKG_CONFIG xft_CFLAGS xft_LIBS XFT XFT_PKGCONFIG DEBUG NLS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
515 ac_prev=
516 continue
517 fi
518
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521 # Accept the important Cygnus configure options, so we can diagnose typos.
522
523 case $ac_option in
524
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 ac_prev=bindir ;;
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528 bindir=$ac_optarg ;;
529
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
534
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
541
542 --config-cache | -C)
543 cache_file=config.cache ;;
544
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 ac_prev=datadir ;;
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 | --da=*)
549 datadir=$ac_optarg ;;
550
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
559
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 case $ac_option in
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569 *) ac_optarg=yes ;;
570 esac
571 eval "enable_$ac_feature='$ac_optarg'" ;;
572
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
581
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
584 with_gas=yes ;;
585
586 -help | --help | --hel | --he | -h)
587 ac_init_help=long ;;
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
592
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
597
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
604
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 ac_prev=infodir ;;
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
609
610 -libdir | --libdir | --libdi | --libd)
611 ac_prev=libdir ;;
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
613 libdir=$ac_optarg ;;
614
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
621
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
630
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 ac_prev=mandir ;;
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634 mandir=$ac_optarg ;;
635
636 -nfp | --nfp | --nf)
637 # Obsolete; use --without-fp.
638 with_fp=no ;;
639
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
642 no_create=yes ;;
643
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646 no_recursion=yes ;;
647
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
656
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 ac_prev=prefix ;;
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660 prefix=$ac_optarg ;;
661
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
668
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
675
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
692
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
695 silent=yes ;;
696
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 ac_prev=sbindir ;;
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 | --sbi=* | --sb=*)
701 sbindir=$ac_optarg ;;
702
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
706 | --sha | --sh)
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 | --sha=* | --sh=*)
712 sharedstatedir=$ac_optarg ;;
713
714 -site | --site | --sit)
715 ac_prev=site ;;
716 -site=* | --site=* | --sit=*)
717 site=$ac_optarg ;;
718
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 ac_prev=srcdir ;;
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722 srcdir=$ac_optarg ;;
723
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
730
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
735
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
737 verbose=yes ;;
738
739 -version | --version | --versio | --versi | --vers | -V)
740 ac_init_version=: ;;
741
742 -with-* | --with-*)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 case $ac_option in
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751 *) ac_optarg=yes ;;
752 esac
753 eval "with_$ac_package='$ac_optarg'" ;;
754
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
781
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
785 ;;
786
787 *=*)
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
795 export $ac_envvar ;;
796
797 *)
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 ;;
804
805 esac
806 done
807
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
828 do
829 eval ac_val=$`echo $ac_var`
830 case $ac_val in
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
834 esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
851 cross_compiling=yes
852 fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
876 s/.*/./; q'`
877 srcdir=$ac_confdir
878 if test ! -r $srcdir/$ac_unique_file; then
879 srcdir=..
880 fi
881 else
882 ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
888 else
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
891 fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950 ac_env_PKG_CONFIG_value=$PKG_CONFIG
951 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
952 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
953 ac_env_xft_CFLAGS_set=${xft_CFLAGS+set}
954 ac_env_xft_CFLAGS_value=$xft_CFLAGS
955 ac_cv_env_xft_CFLAGS_set=${xft_CFLAGS+set}
956 ac_cv_env_xft_CFLAGS_value=$xft_CFLAGS
957 ac_env_xft_LIBS_set=${xft_LIBS+set}
958 ac_env_xft_LIBS_value=$xft_LIBS
959 ac_cv_env_xft_LIBS_set=${xft_LIBS+set}
960 ac_cv_env_xft_LIBS_value=$xft_LIBS
961
962 #
963 # Report the --help message.
964 #
965 if test "$ac_init_help" = "long"; then
966 # Omit some internal or obsolete options to make the list less imposing.
967 # This message is too long to be a string in the A/UX 3.1 sh.
968 cat <<_ACEOF
969 \`configure' configures blackbox 0.70.1 to adapt to many kinds of systems.
970
971 Usage: $0 [OPTION]... [VAR=VALUE]...
972
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE. See below for descriptions of some of the useful variables.
975
976 Defaults for the options are specified in brackets.
977
978 Configuration:
979 -h, --help display this help and exit
980 --help=short display options specific to this package
981 --help=recursive display the short help of all the included packages
982 -V, --version display version information and exit
983 -q, --quiet, --silent do not print \`checking...' messages
984 --cache-file=FILE cache test results in FILE [disabled]
985 -C, --config-cache alias for \`--cache-file=config.cache'
986 -n, --no-create do not create output files
987 --srcdir=DIR find the sources in DIR [configure dir or \`..']
988
989 _ACEOF
990
991 cat <<_ACEOF
992 Installation directories:
993 --prefix=PREFIX install architecture-independent files in PREFIX
994 [$ac_default_prefix]
995 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
996 [PREFIX]
997
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1002
1003 For better control, use the options below.
1004
1005 Fine tuning of the installation directories:
1006 --bindir=DIR user executables [EPREFIX/bin]
1007 --sbindir=DIR system admin executables [EPREFIX/sbin]
1008 --libexecdir=DIR program executables [EPREFIX/libexec]
1009 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1010 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1011 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1012 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1013 --libdir=DIR object code libraries [EPREFIX/lib]
1014 --includedir=DIR C header files [PREFIX/include]
1015 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1016 --infodir=DIR info documentation [PREFIX/info]
1017 --mandir=DIR man documentation [PREFIX/man]
1018 _ACEOF
1019
1020 cat <<\_ACEOF
1021
1022 Program names:
1023 --program-prefix=PREFIX prepend PREFIX to installed program names
1024 --program-suffix=SUFFIX append SUFFIX to installed program names
1025 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1026
1027 X features:
1028 --x-includes=DIR X include files are in DIR
1029 --x-libraries=DIR X library files are in DIR
1030
1031 System types:
1032 --build=BUILD configure for building on BUILD [guessed]
1033 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1034 _ACEOF
1035 fi
1036
1037 if test -n "$ac_init_help"; then
1038 case $ac_init_help in
1039 short | recursive ) echo "Configuration of blackbox 0.70.1:";;
1040 esac
1041 cat <<\_ACEOF
1042
1043 Optional Features:
1044 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1045 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1046 --disable-dependency-tracking speeds up one-time build
1047 --enable-dependency-tracking do not reject slow dependency extractors
1048 --enable-shared[=PKGS]
1049 build shared libraries [default=no]
1050 --enable-static[=PKGS]
1051 build static libraries [default=yes]
1052 --enable-fast-install[=PKGS]
1053 optimize for fast installation [default=yes]
1054 --disable-libtool-lock avoid locking (might break parallel builds)
1055 --enable-shape enable support of the SHAPE extension
1056 [default=yes]
1057 --enable-mitshm enable support of the MIT-SHM extension
1058 [default=yes]
1059 --enable-xft enable support for the Xft library
1060 [default=yes]
1061 --enable-debug include verbose debugging code [default=no]
1062 --enable-nls include natural language support [default=yes]
1063 --enable-maintainer-mode enable make rules and dependencies not useful
1064 (and sometimes confusing) to the casual installer
1065
1066 Optional Packages:
1067 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1068 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1069 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1070 --with-pic try to use only PIC/non-PIC objects [default=use
1071 both]
1072 --with-tags[=TAGS]
1073 include additional configurations [automatic]
1074 --with-x use the X Window System
1075
1076 Some influential environment variables:
1077 CC C compiler command
1078 CFLAGS C compiler flags
1079 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1080 nonstandard directory <lib dir>
1081 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082 headers in a nonstandard directory <include dir>
1083 CPP C preprocessor
1084 CXX C++ compiler command
1085 CXXFLAGS C++ compiler flags
1086 CXXCPP C++ preprocessor
1087 F77 Fortran 77 compiler command
1088 FFLAGS Fortran 77 compiler flags
1089 PKG_CONFIG path to pkg-config utility
1090 xft_CFLAGS C compiler flags for xft, overriding pkg-config
1091 xft_LIBS linker flags for xft, overriding pkg-config
1092
1093 Use these variables to override the choices made by `configure' or to help
1094 it to find libraries and programs with nonstandard names/locations.
1095
1096 Report bugs to <http://blackboxwm.sourceforge.net>.
1097 _ACEOF
1098 fi
1099
1100 if test "$ac_init_help" = "recursive"; then
1101 # If there are subdirs, report their specific --help.
1102 ac_popdir=`pwd`
1103 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1104 test -d $ac_dir || continue
1105 ac_builddir=.
1106
1107 if test "$ac_dir" != .; then
1108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1109 # A "../" for each directory in $ac_dir_suffix.
1110 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1111 else
1112 ac_dir_suffix= ac_top_builddir=
1113 fi
1114
1115 case $srcdir in
1116 .) # No --srcdir option. We are building in place.
1117 ac_srcdir=.
1118 if test -z "$ac_top_builddir"; then
1119 ac_top_srcdir=.
1120 else
1121 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1122 fi ;;
1123 [\\/]* | ?:[\\/]* ) # Absolute path.
1124 ac_srcdir=$srcdir$ac_dir_suffix;
1125 ac_top_srcdir=$srcdir ;;
1126 *) # Relative path.
1127 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1128 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1129 esac
1130
1131 # Do not use `cd foo && pwd` to compute absolute paths, because
1132 # the directories may not exist.
1133 case `pwd` in
1134 .) ac_abs_builddir="$ac_dir";;
1135 *)
1136 case "$ac_dir" in
1137 .) ac_abs_builddir=`pwd`;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1139 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1140 esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1144 *)
1145 case ${ac_top_builddir}. in
1146 .) ac_abs_top_builddir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1148 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1149 esac;;
1150 esac
1151 case $ac_abs_builddir in
1152 .) ac_abs_srcdir=$ac_srcdir;;
1153 *)
1154 case $ac_srcdir in
1155 .) ac_abs_srcdir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1157 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1158 esac;;
1159 esac
1160 case $ac_abs_builddir in
1161 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1162 *)
1163 case $ac_top_srcdir in
1164 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1166 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1167 esac;;
1168 esac
1169
1170 cd $ac_dir
1171 # Check for guested configure; otherwise get Cygnus style configure.
1172 if test -f $ac_srcdir/configure.gnu; then
1173 echo
1174 $SHELL $ac_srcdir/configure.gnu --help=recursive
1175 elif test -f $ac_srcdir/configure; then
1176 echo
1177 $SHELL $ac_srcdir/configure --help=recursive
1178 elif test -f $ac_srcdir/configure.ac ||
1179 test -f $ac_srcdir/configure.in; then
1180 echo
1181 $ac_configure --help
1182 else
1183 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1184 fi
1185 cd $ac_popdir
1186 done
1187 fi
1188
1189 test -n "$ac_init_help" && exit 0
1190 if $ac_init_version; then
1191 cat <<\_ACEOF
1192 blackbox configure 0.70.1
1193 generated by GNU Autoconf 2.59
1194
1195 Copyright (C) 2003 Free Software Foundation, Inc.
1196 This configure script is free software; the Free Software Foundation
1197 gives unlimited permission to copy, distribute and modify it.
1198 _ACEOF
1199 exit 0
1200 fi
1201 exec 5>config.log
1202 cat >&5 <<_ACEOF
1203 This file contains any messages produced by compilers while
1204 running configure, to aid debugging if configure makes a mistake.
1205
1206 It was created by blackbox $as_me 0.70.1, which was
1207 generated by GNU Autoconf 2.59. Invocation command line was
1208
1209 $ $0 $@
1210
1211 _ACEOF
1212 {
1213 cat <<_ASUNAME
1214 ## --------- ##
1215 ## Platform. ##
1216 ## --------- ##
1217
1218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1223
1224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1225 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1226
1227 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1228 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1230 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1231 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1232 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1233 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1234
1235 _ASUNAME
1236
1237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1238 for as_dir in $PATH
1239 do
1240 IFS=$as_save_IFS
1241 test -z "$as_dir" && as_dir=.
1242 echo "PATH: $as_dir"
1243 done
1244
1245 } >&5
1246
1247 cat >&5 <<_ACEOF
1248
1249
1250 ## ----------- ##
1251 ## Core tests. ##
1252 ## ----------- ##
1253
1254 _ACEOF
1255
1256
1257 # Keep a trace of the command line.
1258 # Strip out --no-create and --no-recursion so they do not pile up.
1259 # Strip out --silent because we don't want to record it for future runs.
1260 # Also quote any args containing shell meta-characters.
1261 # Make two passes to allow for proper duplicate-argument suppression.
1262 ac_configure_args=
1263 ac_configure_args0=
1264 ac_configure_args1=
1265 ac_sep=
1266 ac_must_keep_next=false
1267 for ac_pass in 1 2
1268 do
1269 for ac_arg
1270 do
1271 case $ac_arg in
1272 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 continue ;;
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 esac
1279 case $ac_pass in
1280 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1281 2)
1282 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1283 if test $ac_must_keep_next = true; then
1284 ac_must_keep_next=false # Got value, back to normal.
1285 else
1286 case $ac_arg in
1287 *=* | --config-cache | -C | -disable-* | --disable-* \
1288 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1289 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1290 | -with-* | --with-* | -without-* | --without-* | --x)
1291 case "$ac_configure_args0 " in
1292 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1293 esac
1294 ;;
1295 -* ) ac_must_keep_next=true ;;
1296 esac
1297 fi
1298 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1299 # Get rid of the leading space.
1300 ac_sep=" "
1301 ;;
1302 esac
1303 done
1304 done
1305 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1306 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1307
1308 # When interrupted or exit'd, cleanup temporary files, and complete
1309 # config.log. We remove comments because anyway the quotes in there
1310 # would cause problems or look ugly.
1311 # WARNING: Be sure not to use single quotes in there, as some shells,
1312 # such as our DU 5.0 friend, will then `close' the trap.
1313 trap 'exit_status=$?
1314 # Save into config.log some information that might help in debugging.
1315 {
1316 echo
1317
1318 cat <<\_ASBOX
1319 ## ---------------- ##
1320 ## Cache variables. ##
1321 ## ---------------- ##
1322 _ASBOX
1323 echo
1324 # The following way of writing the cache mishandles newlines in values,
1325 {
1326 (set) 2>&1 |
1327 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1328 *ac_space=\ *)
1329 sed -n \
1330 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1332 ;;
1333 *)
1334 sed -n \
1335 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1336 ;;
1337 esac;
1338 }
1339 echo
1340
1341 cat <<\_ASBOX
1342 ## ----------------- ##
1343 ## Output variables. ##
1344 ## ----------------- ##
1345 _ASBOX
1346 echo
1347 for ac_var in $ac_subst_vars
1348 do
1349 eval ac_val=$`echo $ac_var`
1350 echo "$ac_var='"'"'$ac_val'"'"'"
1351 done | sort
1352 echo
1353
1354 if test -n "$ac_subst_files"; then
1355 cat <<\_ASBOX
1356 ## ------------- ##
1357 ## Output files. ##
1358 ## ------------- ##
1359 _ASBOX
1360 echo
1361 for ac_var in $ac_subst_files
1362 do
1363 eval ac_val=$`echo $ac_var`
1364 echo "$ac_var='"'"'$ac_val'"'"'"
1365 done | sort
1366 echo
1367 fi
1368
1369 if test -s confdefs.h; then
1370 cat <<\_ASBOX
1371 ## ----------- ##
1372 ## confdefs.h. ##
1373 ## ----------- ##
1374 _ASBOX
1375 echo
1376 sed "/^$/d" confdefs.h | sort
1377 echo
1378 fi
1379 test "$ac_signal" != 0 &&
1380 echo "$as_me: caught signal $ac_signal"
1381 echo "$as_me: exit $exit_status"
1382 } >&5
1383 rm -f core *.core &&
1384 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1385 exit $exit_status
1386 ' 0
1387 for ac_signal in 1 2 13 15; do
1388 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1389 done
1390 ac_signal=0
1391
1392 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1393 rm -rf conftest* confdefs.h
1394 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1395 echo >confdefs.h
1396
1397 # Predefined preprocessor variables.
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_NAME "$PACKAGE_NAME"
1401 _ACEOF
1402
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1406 _ACEOF
1407
1408
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1411 _ACEOF
1412
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_STRING "$PACKAGE_STRING"
1416 _ACEOF
1417
1418
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1421 _ACEOF
1422
1423
1424 # Let the site file select an alternate cache file if it wants to.
1425 # Prefer explicitly selected file to automatically selected ones.
1426 if test -z "$CONFIG_SITE"; then
1427 if test "x$prefix" != xNONE; then
1428 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1429 else
1430 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1431 fi
1432 fi
1433 for ac_site_file in $CONFIG_SITE; do
1434 if test -r "$ac_site_file"; then
1435 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1436 echo "$as_me: loading site script $ac_site_file" >&6;}
1437 sed 's/^/| /' "$ac_site_file" >&5
1438 . "$ac_site_file"
1439 fi
1440 done
1441
1442 if test -r "$cache_file"; then
1443 # Some versions of bash will fail to source /dev/null (special
1444 # files actually), so we avoid doing that.
1445 if test -f "$cache_file"; then
1446 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1447 echo "$as_me: loading cache $cache_file" >&6;}
1448 case $cache_file in
1449 [\\/]* | ?:[\\/]* ) . $cache_file;;
1450 *) . ./$cache_file;;
1451 esac
1452 fi
1453 else
1454 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1455 echo "$as_me: creating cache $cache_file" >&6;}
1456 >$cache_file
1457 fi
1458
1459 # Check that the precious variables saved in the cache have kept the same
1460 # value.
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465 eval ac_new_set=\$ac_env_${ac_var}_set
1466 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467 eval ac_new_val="\$ac_env_${ac_var}_value"
1468 case $ac_old_set,$ac_new_set in
1469 set,)
1470 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472 ac_cache_corrupted=: ;;
1473 ,set)
1474 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476 ac_cache_corrupted=: ;;
1477 ,);;
1478 *)
1479 if test "x$ac_old_val" != "x$ac_new_val"; then
1480 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1483 echo "$as_me: former value: $ac_old_val" >&2;}
1484 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1485 echo "$as_me: current value: $ac_new_val" >&2;}
1486 ac_cache_corrupted=:
1487 fi;;
1488 esac
1489 # Pass precious variables to config.status.
1490 if test "$ac_new_set" = set; then
1491 case $ac_new_val in
1492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494 *) ac_arg=$ac_var=$ac_new_val ;;
1495 esac
1496 case " $ac_configure_args " in
1497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1498 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499 esac
1500 fi
1501 done
1502 if $ac_cache_corrupted; then
1503 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507 { (exit 1); exit 1; }; }
1508 fi
1509
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542 am__api_version="1.9"
1543 ac_aux_dir=
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1557 fi
1558 done
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1563 fi
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567
1568 # Find a good install program. We prefer a C program (faster),
1569 # so one script is as good as another. But avoid the broken or
1570 # incompatible versions:
1571 # SysV /etc/install, /usr/sbin/install
1572 # SunOS /usr/etc/install
1573 # IRIX /sbin/install
1574 # AIX /bin/install
1575 # AmigaOS /C/install, which installs bootblocks on floppy discs
1576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579 # OS/2's system install, which has a completely different semantic
1580 # ./install, which can be erroneously created by make from ./install.sh.
1581 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1582 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1583 if test -z "$INSTALL"; then
1584 if test "${ac_cv_path_install+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 else
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
1590 IFS=$as_save_IFS
1591 test -z "$as_dir" && as_dir=.
1592 # Account for people who put trailing slashes in PATH elements.
1593 case $as_dir/ in
1594 ./ | .// | /cC/* | \
1595 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1596 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1597 /usr/ucb/* ) ;;
1598 *)
1599 # OSF1 and SCO ODT 3.0 have their own names for install.
1600 # Don't use installbsd from OSF since it installs stuff as root
1601 # by default.
1602 for ac_prog in ginstall scoinst install; do
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1605 if test $ac_prog = install &&
1606 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1607 # AIX install. It has an incompatible calling convention.
1608 :
1609 elif test $ac_prog = install &&
1610 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1611 # program-specific install script used by HP pwplus--don't use.
1612 :
1613 else
1614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1615 break 3
1616 fi
1617 fi
1618 done
1619 done
1620 ;;
1621 esac
1622 done
1623
1624
1625 fi
1626 if test "${ac_cv_path_install+set}" = set; then
1627 INSTALL=$ac_cv_path_install
1628 else
1629 # As a last resort, use the slow shell script. We don't cache a
1630 # path for INSTALL within a source directory, because that will
1631 # break other packages using the cache if that directory is
1632 # removed, or if the path is relative.
1633 INSTALL=$ac_install_sh
1634 fi
1635 fi
1636 echo "$as_me:$LINENO: result: $INSTALL" >&5
1637 echo "${ECHO_T}$INSTALL" >&6
1638
1639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1640 # It thinks the first close brace ends the variable substitution.
1641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1642
1643 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1644
1645 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1646
1647 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1648 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1649 # Just in case
1650 sleep 1
1651 echo timestamp > conftest.file
1652 # Do `set' in a subshell so we don't clobber the current shell's
1653 # arguments. Must try -L first in case configure is actually a
1654 # symlink; some systems play weird games with the mod time of symlinks
1655 # (eg FreeBSD returns the mod time of the symlink's containing
1656 # directory).
1657 if (
1658 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1659 if test "$*" = "X"; then
1660 # -L didn't work.
1661 set X `ls -t $srcdir/configure conftest.file`
1662 fi
1663 rm -f conftest.file
1664 if test "$*" != "X $srcdir/configure conftest.file" \
1665 && test "$*" != "X conftest.file $srcdir/configure"; then
1666
1667 # If neither matched, then we have a broken ls. This can happen
1668 # if, for instance, CONFIG_SHELL is bash and it inherits a
1669 # broken ls alias from the environment. This has actually
1670 # happened. Such a system could not be considered "sane".
1671 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1672 alias in your environment" >&5
1673 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1674 alias in your environment" >&2;}
1675 { (exit 1); exit 1; }; }
1676 fi
1677
1678 test "$2" = conftest.file
1679 )
1680 then
1681 # Ok.
1682 :
1683 else
1684 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1685 Check your system clock" >&5
1686 echo "$as_me: error: newly created file is older than distributed files!
1687 Check your system clock" >&2;}
1688 { (exit 1); exit 1; }; }
1689 fi
1690 echo "$as_me:$LINENO: result: yes" >&5
1691 echo "${ECHO_T}yes" >&6
1692 test "$program_prefix" != NONE &&
1693 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1694 # Use a double $ so make ignores it.
1695 test "$program_suffix" != NONE &&
1696 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1697 # Double any \ or $. echo might interpret backslashes.
1698 # By default was `s,x,x', remove it if useless.
1699 cat <<\_ACEOF >conftest.sed
1700 s/[\\$]/&&/g;s/;s,x,x,$//
1701 _ACEOF
1702 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1703 rm conftest.sed
1704
1705 # expand $ac_aux_dir to an absolute path
1706 am_aux_dir=`cd $ac_aux_dir && pwd`
1707
1708 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1709 # Use eval to expand $SHELL
1710 if eval "$MISSING --run true"; then
1711 am_missing_run="$MISSING --run "
1712 else
1713 am_missing_run=
1714 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1715 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1716 fi
1717
1718 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1719 # We used to keeping the `.' as first argument, in order to
1720 # allow $(mkdir_p) to be used without argument. As in
1721 # $(mkdir_p) $(somedir)
1722 # where $(somedir) is conditionally defined. However this is wrong
1723 # for two reasons:
1724 # 1. if the package is installed by a user who cannot write `.'
1725 # make install will fail,
1726 # 2. the above comment should most certainly read
1727 # $(mkdir_p) $(DESTDIR)$(somedir)
1728 # so it does not work when $(somedir) is undefined and
1729 # $(DESTDIR) is not.
1730 # To support the latter case, we have to write
1731 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1732 # so the `.' trick is pointless.
1733 mkdir_p='mkdir -p --'
1734 else
1735 # On NextStep and OpenStep, the `mkdir' command does not
1736 # recognize any option. It will interpret all options as
1737 # directories to create, and then abort because `.' already
1738 # exists.
1739 for d in ./-p ./--version;
1740 do
1741 test -d $d && rmdir $d
1742 done
1743 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1744 if test -f "$ac_aux_dir/mkinstalldirs"; then
1745 mkdir_p='$(mkinstalldirs)'
1746 else
1747 mkdir_p='$(install_sh) -d'
1748 fi
1749 fi
1750
1751 for ac_prog in gawk mawk nawk awk
1752 do
1753 # Extract the first word of "$ac_prog", so it can be a program name with args.
1754 set dummy $ac_prog; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_AWK+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760 if test -n "$AWK"; then
1761 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766 IFS=$as_save_IFS
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_AWK="$ac_prog"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772 break 2
1773 fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 AWK=$ac_cv_prog_AWK
1780 if test -n "$AWK"; then
1781 echo "$as_me:$LINENO: result: $AWK" >&5
1782 echo "${ECHO_T}$AWK" >&6
1783 else
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788 test -n "$AWK" && break
1789 done
1790
1791 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1792 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1793 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1794 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 cat >conftest.make <<\_ACEOF
1798 all:
1799 @echo 'ac_maketemp="$(MAKE)"'
1800 _ACEOF
1801 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1802 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1803 if test -n "$ac_maketemp"; then
1804 eval ac_cv_prog_make_${ac_make}_set=yes
1805 else
1806 eval ac_cv_prog_make_${ac_make}_set=no
1807 fi
1808 rm -f conftest.make
1809 fi
1810 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1811 echo "$as_me:$LINENO: result: yes" >&5
1812 echo "${ECHO_T}yes" >&6
1813 SET_MAKE=
1814 else
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1817 SET_MAKE="MAKE=${MAKE-make}"
1818 fi
1819
1820 rm -rf .tst 2>/dev/null
1821 mkdir .tst 2>/dev/null
1822 if test -d .tst; then
1823 am__leading_dot=.
1824 else
1825 am__leading_dot=_
1826 fi
1827 rmdir .tst 2>/dev/null
1828
1829 # test to see if srcdir already configured
1830 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1831 test -f $srcdir/config.status; then
1832 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1833 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1834 { (exit 1); exit 1; }; }
1835 fi
1836
1837 # test whether we have cygpath
1838 if test -z "$CYGPATH_W"; then
1839 if (cygpath --version) >/dev/null 2>/dev/null; then
1840 CYGPATH_W='cygpath -w'
1841 else
1842 CYGPATH_W=echo
1843 fi
1844 fi
1845
1846
1847 # Define the identity of the package.
1848 PACKAGE=blackbox
1849 VERSION=0.70.1
1850
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE "$PACKAGE"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define VERSION "$VERSION"
1859 _ACEOF
1860
1861 # Some tools Automake needs.
1862
1863 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1864
1865
1866 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1867
1868
1869 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1870
1871
1872 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1873
1874
1875 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1876
1877 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1878
1879 # Installed binaries are usually stripped using `strip' when the user
1880 # run `make install-strip'. However `strip' might not be the right
1881 # tool to use in cross-compilation environments, therefore Automake
1882 # will honor the `STRIP' environment variable to overrule this program.
1883 if test "$cross_compiling" != no; then
1884 if test -n "$ac_tool_prefix"; then
1885 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1886 set dummy ${ac_tool_prefix}strip; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_STRIP+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892 if test -n "$STRIP"; then
1893 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1894 else
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 for as_dir in $PATH
1897 do
1898 IFS=$as_save_IFS
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 break 2
1905 fi
1906 done
1907 done
1908
1909 fi
1910 fi
1911 STRIP=$ac_cv_prog_STRIP
1912 if test -n "$STRIP"; then
1913 echo "$as_me:$LINENO: result: $STRIP" >&5
1914 echo "${ECHO_T}$STRIP" >&6
1915 else
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920 fi
1921 if test -z "$ac_cv_prog_STRIP"; then
1922 ac_ct_STRIP=$STRIP
1923 # Extract the first word of "strip", so it can be a program name with args.
1924 set dummy strip; ac_word=$2
1925 echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 else
1930 if test -n "$ac_ct_STRIP"; then
1931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1932 else
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 ac_cv_prog_ac_ct_STRIP="strip"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 break 2
1943 fi
1944 done
1945 done
1946
1947 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1948 fi
1949 fi
1950 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1951 if test -n "$ac_ct_STRIP"; then
1952 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1953 echo "${ECHO_T}$ac_ct_STRIP" >&6
1954 else
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1957 fi
1958
1959 STRIP=$ac_ct_STRIP
1960 else
1961 STRIP="$ac_cv_prog_STRIP"
1962 fi
1963
1964 fi
1965 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1966
1967 # We need awk for the "check" target. The system "awk" is bad on
1968 # some platforms.
1969 # Always define AMTAR for backward compatibility.
1970
1971 AMTAR=${AMTAR-"${am_missing_run}tar"}
1972
1973 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1974
1975
1976
1977
1978
1979
1980
1981 test "x$prefix" = "xNONE" && prefix="$ac_default_prefix"
1982
1983 CPPFLAGS="$CPPFLAGS -I$prefix/include"
1984 LDFLAGS="$LDFLAGS -L$prefix/lib"
1985 if test "x$prefix" != "x/usr/local"; then
1986 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
1987 LDFLAGS="$LDFLAGS -L/usr/local/lib"
1988 fi
1989
1990 ac_ext=c
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 for as_dir in $PATH
2008 do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 break 2
2016 fi
2017 done
2018 done
2019
2020 fi
2021 fi
2022 CC=$ac_cv_prog_CC
2023 if test -n "$CC"; then
2024 echo "$as_me:$LINENO: result: $CC" >&5
2025 echo "${ECHO_T}$CC" >&6
2026 else
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2029 fi
2030
2031 fi
2032 if test -z "$ac_cv_prog_CC"; then
2033 ac_ct_CC=$CC
2034 # Extract the first word of "gcc", so it can be a program name with args.
2035 set dummy gcc; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 if test -n "$ac_ct_CC"; then
2042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047 IFS=$as_save_IFS
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_ac_ct_CC="gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 break 2
2054 fi
2055 done
2056 done
2057
2058 fi
2059 fi
2060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2061 if test -n "$ac_ct_CC"; then
2062 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2063 echo "${ECHO_T}$ac_ct_CC" >&6
2064 else
2065 echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2067 fi
2068
2069 CC=$ac_ct_CC
2070 else
2071 CC="$ac_cv_prog_CC"
2072 fi
2073
2074 if test -z "$CC"; then
2075 if test -n "$ac_tool_prefix"; then
2076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2077 set dummy ${ac_tool_prefix}cc; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083 if test -n "$CC"; then
2084 ac_cv_prog_CC="$CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089 IFS=$as_save_IFS
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093 ac_cv_prog_CC="${ac_tool_prefix}cc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095 break 2
2096 fi
2097 done
2098 done
2099
2100 fi
2101 fi
2102 CC=$ac_cv_prog_CC
2103 if test -n "$CC"; then
2104 echo "$as_me:$LINENO: result: $CC" >&5
2105 echo "${ECHO_T}$CC" >&6
2106 else
2107 echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2109 fi
2110
2111 fi
2112 if test -z "$ac_cv_prog_CC"; then
2113 ac_ct_CC=$CC
2114 # Extract the first word of "cc", so it can be a program name with args.
2115 set dummy cc; ac_word=$2
2116 echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 if test -n "$ac_ct_CC"; then
2122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2123 else
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH
2126 do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_ac_ct_CC="cc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 break 2
2134 fi
2135 done
2136 done
2137
2138 fi
2139 fi
2140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2141 if test -n "$ac_ct_CC"; then
2142 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2143 echo "${ECHO_T}$ac_ct_CC" >&6
2144 else
2145 echo "$as_me:$LINENO: result: no" >&5
2146 echo "${ECHO_T}no" >&6
2147 fi
2148
2149 CC=$ac_ct_CC
2150 else
2151 CC="$ac_cv_prog_CC"
2152 fi
2153
2154 fi
2155 if test -z "$CC"; then
2156 # Extract the first word of "cc", so it can be a program name with args.
2157 set dummy cc; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 if test -n "$CC"; then
2164 ac_cv_prog_CC="$CC" # Let the user override the test.
2165 else
2166 ac_prog_rejected=no
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2169 do
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2175 ac_prog_rejected=yes
2176 continue
2177 fi
2178 ac_cv_prog_CC="cc"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2181 fi
2182 done
2183 done
2184
2185 if test $ac_prog_rejected = yes; then
2186 # We found a bogon in the path, so make sure we never use it.
2187 set dummy $ac_cv_prog_CC
2188 shift
2189 if test $# != 0; then
2190 # We chose a different compiler from the bogus one.
2191 # However, it has the same basename, so the bogon will be chosen
2192 # first if we set CC to just the basename; use the full file name.
2193 shift
2194 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2195 fi
2196 fi
2197 fi
2198 fi
2199 CC=$ac_cv_prog_CC
2200 if test -n "$CC"; then
2201 echo "$as_me:$LINENO: result: $CC" >&5
2202 echo "${ECHO_T}$CC" >&6
2203 else
2204 echo "$as_me:$LINENO: result: no" >&5
2205 echo "${ECHO_T}no" >&6
2206 fi
2207
2208 fi
2209 if test -z "$CC"; then
2210 if test -n "$ac_tool_prefix"; then
2211 for ac_prog in cl
2212 do
2213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_CC+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220 if test -n "$CC"; then
2221 ac_cv_prog_CC="$CC" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2233 fi
2234 done
2235 done
2236
2237 fi
2238 fi
2239 CC=$ac_cv_prog_CC
2240 if test -n "$CC"; then
2241 echo "$as_me:$LINENO: result: $CC" >&5
2242 echo "${ECHO_T}$CC" >&6
2243 else
2244 echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2246 fi
2247
2248 test -n "$CC" && break
2249 done
2250 fi
2251 if test -z "$CC"; then
2252 ac_ct_CC=$CC
2253 for ac_prog in cl
2254 do
2255 # Extract the first word of "$ac_prog", so it can be a program name with args.
2256 set dummy $ac_prog; ac_word=$2
2257 echo "$as_me:$LINENO: checking for $ac_word" >&5
2258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262 if test -n "$ac_ct_CC"; then
2263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 for ac_exec_ext in '' $ac_executable_extensions; do
2271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272 ac_cv_prog_ac_ct_CC="$ac_prog"
2273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 break 2
2275 fi
2276 done
2277 done
2278
2279 fi
2280 fi
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6
2285 else
2286 echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6
2288 fi
2289
2290 test -n "$ac_ct_CC" && break
2291 done
2292
2293 CC=$ac_ct_CC
2294 fi
2295
2296 fi
2297
2298
2299 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: no acceptable C compiler found in \$PATH
2302 See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2304
2305 # Provide some information about the compiler.
2306 echo "$as_me:$LINENO:" \
2307 "checking for C compiler version" >&5
2308 ac_compiler=`set X $ac_compile; echo $2`
2309 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2310 (eval $ac_compiler --version </dev/null >&5) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }
2314 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2315 (eval $ac_compiler -v </dev/null >&5) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2320 (eval $ac_compiler -V </dev/null >&5) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }
2324
2325 cat >conftest.$ac_ext <<_ACEOF
2326 /* confdefs.h. */
2327 _ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h. */
2331
2332 int
2333 main ()
2334 {
2335
2336 ;
2337 return 0;
2338 }
2339 _ACEOF
2340 ac_clean_files_save=$ac_clean_files
2341 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2342 # Try to create an executable without -o first, disregard a.out.
2343 # It will help us diagnose broken compilers, and finding out an intuition
2344 # of exeext.
2345 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2346 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2347 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2348 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2349 (eval $ac_link_default) 2>&5
2350 ac_status=$?
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; then
2353 # Find the output, starting from the most likely. This scheme is
2354 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2355 # resort.
2356
2357 # Be careful to initialize this variable, since it used to be cached.
2358 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2359 ac_cv_exeext=
2360 # b.out is created by i960 compilers.
2361 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2362 do
2363 test -f "$ac_file" || continue
2364 case $ac_file in
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2366 ;;
2367 conftest.$ac_ext )
2368 # This is the source file.
2369 ;;
2370 [ab].out )
2371 # We found the default executable, but exeext='' is most
2372 # certainly right.
2373 break;;
2374 *.* )
2375 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2376 # FIXME: I believe we export ac_cv_exeext for Libtool,
2377 # but it would be cool to find out if it's true. Does anybody
2378 # maintain Libtool? --akim.
2379 export ac_cv_exeext
2380 break;;
2381 * )
2382 break;;
2383 esac
2384 done
2385 else
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393 { (exit 77); exit 77; }; }
2394 fi
2395
2396 ac_exeext=$ac_cv_exeext
2397 echo "$as_me:$LINENO: result: $ac_file" >&5
2398 echo "${ECHO_T}$ac_file" >&6
2399
2400 # Check the compiler produces executables we can run. If not, either
2401 # the compiler is broken, or we cross compile.
2402 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2403 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2404 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2405 # If not cross compiling, check that we can run a simple program.
2406 if test "$cross_compiling" != yes; then
2407 if { ac_try='./$ac_file'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 cross_compiling=no
2414 else
2415 if test "$cross_compiling" = maybe; then
2416 cross_compiling=yes
2417 else
2418 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2419 If you meant to cross compile, use \`--host'.
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&2;}
2424 { (exit 1); exit 1; }; }
2425 fi
2426 fi
2427 fi
2428 echo "$as_me:$LINENO: result: yes" >&5
2429 echo "${ECHO_T}yes" >&6
2430
2431 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2432 ac_clean_files=$ac_clean_files_save
2433 # Check the compiler produces executables we can run. If not, either
2434 # the compiler is broken, or we cross compile.
2435 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2436 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2437 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2438 echo "${ECHO_T}$cross_compiling" >&6
2439
2440 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2441 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2443 (eval $ac_link) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }; then
2447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2448 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2449 # work properly (i.e., refer to `conftest.exe'), while it won't with
2450 # `rm'.
2451 for ac_file in conftest.exe conftest conftest.*; do
2452 test -f "$ac_file" || continue
2453 case $ac_file in
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 export ac_cv_exeext
2457 break;;
2458 * ) break;;
2459 esac
2460 done
2461 else
2462 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2465 See \`config.log' for more details." >&2;}
2466 { (exit 1); exit 1; }; }
2467 fi
2468
2469 rm -f conftest$ac_cv_exeext
2470 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2471 echo "${ECHO_T}$ac_cv_exeext" >&6
2472
2473 rm -f conftest.$ac_ext
2474 EXEEXT=$ac_cv_exeext
2475 ac_exeext=$EXEEXT
2476 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2477 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2478 if test "${ac_cv_objext+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2487
2488 int
2489 main ()
2490 {
2491
2492 ;
2493 return 0;
2494 }
2495 _ACEOF
2496 rm -f conftest.o conftest.obj
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; then
2502 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2503 case $ac_file in
2504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2506 break;;
2507 esac
2508 done
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2514 See \`config.log' for more details." >&5
2515 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2516 See \`config.log' for more details." >&2;}
2517 { (exit 1); exit 1; }; }
2518 fi
2519
2520 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2521 fi
2522 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2523 echo "${ECHO_T}$ac_cv_objext" >&6
2524 OBJEXT=$ac_cv_objext
2525 ac_objext=$OBJEXT
2526 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2527 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2528 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531 cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h. */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2537
2538 int
2539 main ()
2540 {
2541 #ifndef __GNUC__
2542 choke me
2543 #endif
2544
2545 ;
2546 return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2552 ac_status=$?
2553 grep -v '^ *+' conftest.er1 >conftest.err
2554 rm -f conftest.er1
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 (eval $ac_try) 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 (eval $ac_try) 2>&5
2568 ac_status=$?
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_compiler_gnu=yes
2572 else
2573 echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2575
2576 ac_compiler_gnu=no
2577 fi
2578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2580
2581 fi
2582 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2583 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2584 GCC=`test $ac_compiler_gnu = yes && echo yes`
2585 ac_test_CFLAGS=${CFLAGS+set}
2586 ac_save_CFLAGS=$CFLAGS
2587 CFLAGS="-g"
2588 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2589 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2590 if test "${ac_cv_prog_cc_g+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593 cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h. */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2599
2600 int
2601 main ()
2602 {
2603
2604 ;
2605 return 0;
2606 }
2607 _ACEOF
2608 rm -f conftest.$ac_objext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610 (eval $ac_compile) 2>conftest.er1
2611 ac_status=$?
2612 grep -v '^ *+' conftest.er1 >conftest.err
2613 rm -f conftest.er1
2614 cat conftest.err >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); } &&
2617 { ac_try='test -z "$ac_c_werror_flag"
2618 || test ! -s conftest.err'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; } &&
2624 { ac_try='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 ac_cv_prog_cc_g=yes
2631 else
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 ac_cv_prog_cc_g=no
2636 fi
2637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2641 if test "$ac_test_CFLAGS" = set; then
2642 CFLAGS=$ac_save_CFLAGS
2643 elif test $ac_cv_prog_cc_g = yes; then
2644 if test "$GCC" = yes; then
2645 CFLAGS="-g -O2"
2646 else
2647 CFLAGS="-g"
2648 fi
2649 else
2650 if test "$GCC" = yes; then
2651 CFLAGS="-O2"
2652 else
2653 CFLAGS=
2654 fi
2655 fi
2656 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2657 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2658 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 ac_cv_prog_cc_stdc=no
2662 ac_save_CC=$CC
2663 cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h. */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2669 #include <stdarg.h>
2670 #include <stdio.h>
2671 #include <sys/types.h>
2672 #include <sys/stat.h>
2673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2674 struct buf { int x; };
2675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2676 static char *e (p, i)
2677 char **p;
2678 int i;
2679 {
2680 return p[i];
2681 }
2682 static char *f (char * (*g) (char **, int), char **p, ...)
2683 {
2684 char *s;
2685 va_list v;
2686 va_start (v,p);
2687 s = g (p, va_arg (v,int));
2688 va_end (v);
2689 return s;
2690 }
2691
2692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2693 function prototypes and stuff, but not '\xHH' hex character constants.
2694 These don't provoke an error unfortunately, instead are silently treated
2695 as 'x'. The following induces an error, until -std1 is added to get
2696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2697 array size at least. It's necessary to write '\x00'==0 to get something
2698 that's true only with -std1. */
2699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2700
2701 int test (int i, double x);
2702 struct s1 {int (*f) (int a);};
2703 struct s2 {int (*f) (double a);};
2704 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2705 int argc;
2706 char **argv;
2707 int
2708 main ()
2709 {
2710 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2711 ;
2712 return 0;
2713 }
2714 _ACEOF
2715 # Don't try gcc -ansi; that turns off useful extensions and
2716 # breaks some systems' header files.
2717 # AIX -qlanglvl=ansi
2718 # Ultrix and OSF/1 -std1
2719 # HP-UX 10.20 and later -Ae
2720 # HP-UX older versions -Aa -D_HPUX_SOURCE
2721 # SVR4 -Xc -D__EXTENSIONS__
2722 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2723 do
2724 CC="$ac_save_CC $ac_arg"
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2728 ac_status=$?
2729 grep -v '^ *+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 (eval $ac_try) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2747 ac_cv_prog_cc_stdc=$ac_arg
2748 break
2749 else
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 fi
2754 rm -f conftest.err conftest.$ac_objext
2755 done
2756 rm -f conftest.$ac_ext conftest.$ac_objext
2757 CC=$ac_save_CC
2758
2759 fi
2760
2761 case "x$ac_cv_prog_cc_stdc" in
2762 x|xno)
2763 echo "$as_me:$LINENO: result: none needed" >&5
2764 echo "${ECHO_T}none needed" >&6 ;;
2765 *)
2766 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2767 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2768 CC="$CC $ac_cv_prog_cc_stdc" ;;
2769 esac
2770
2771 # Some people use a C++ compiler to compile C. Since we use `exit',
2772 # in C++ we need to declare it. In case someone uses the same compiler
2773 # for both compiling C and C++ we need to have the C++ compiler decide
2774 # the declaration of exit, since it's the most demanding environment.
2775 cat >conftest.$ac_ext <<_ACEOF
2776 #ifndef __cplusplus
2777 choke me
2778 #endif
2779 _ACEOF
2780 rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>conftest.er1
2783 ac_status=$?
2784 grep -v '^ *+' conftest.er1 >conftest.err
2785 rm -f conftest.er1
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } &&
2789 { ac_try='test -z "$ac_c_werror_flag"
2790 || test ! -s conftest.err'
2791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792 (eval $ac_try) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; } &&
2796 { ac_try='test -s conftest.$ac_objext'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; }; then
2802 for ac_declaration in \
2803 '' \
2804 'extern "C" void std::exit (int) throw (); using std::exit;' \
2805 'extern "C" void std::exit (int); using std::exit;' \
2806 'extern "C" void exit (int) throw ();' \
2807 'extern "C" void exit (int);' \
2808 'void exit (int);'
2809 do
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h. */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2816 $ac_declaration
2817 #include <stdlib.h>
2818 int
2819 main ()
2820 {
2821 exit (42);
2822 ;
2823 return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2829 ac_status=$?
2830 grep -v '^ *+' conftest.er1 >conftest.err
2831 rm -f conftest.er1
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag"
2836 || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 (eval $ac_try) 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 :
2849 else
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 continue
2854 fi
2855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2856 cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h. */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2862 $ac_declaration
2863 int
2864 main ()
2865 {
2866 exit (42);
2867 ;
2868 return 0;
2869 }
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873 (eval $ac_compile) 2>conftest.er1
2874 ac_status=$?
2875 grep -v '^ *+' conftest.er1 >conftest.err
2876 rm -f conftest.er1
2877 cat conftest.err >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } &&
2880 { ac_try='test -z "$ac_c_werror_flag"
2881 || test ! -s conftest.err'
2882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883 (eval $ac_try) 2>&5
2884 ac_status=$?
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; } &&
2887 { ac_try='test -s conftest.$ac_objext'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 break
2894 else
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 fi
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2900 done
2901 rm -f conftest*
2902 if test -n "$ac_declaration"; then
2903 echo '#ifdef __cplusplus' >>confdefs.h
2904 echo $ac_declaration >>confdefs.h
2905 echo '#endif' >>confdefs.h
2906 fi
2907
2908 else
2909 echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 fi
2913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 DEPDIR="${am__leading_dot}deps"
2920
2921 ac_config_commands="$ac_config_commands depfiles"
2922
2923
2924 am_make=${MAKE-make}
2925 cat > confinc << 'END'
2926 am__doit:
2927 @echo done
2928 .PHONY: am__doit
2929 END
2930 # If we don't find an include directive, just comment out the code.
2931 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2932 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2933 am__include="#"
2934 am__quote=
2935 _am_result=none
2936 # First try GNU make style include.
2937 echo "include confinc" > confmf
2938 # We grep out `Entering directory' and `Leaving directory'
2939 # messages which can occur if `w' ends up in MAKEFLAGS.
2940 # In particular we don't look at `^make:' because GNU make might
2941 # be invoked under some other name (usually "gmake"), in which
2942 # case it prints its new name instead of `make'.
2943 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2944 am__include=include
2945 am__quote=
2946 _am_result=GNU
2947 fi
2948 # Now try BSD make style include.
2949 if test "$am__include" = "#"; then
2950 echo '.include "confinc"' > confmf
2951 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2952 am__include=.include
2953 am__quote="\""
2954 _am_result=BSD
2955 fi
2956 fi
2957
2958
2959 echo "$as_me:$LINENO: result: $_am_result" >&5
2960 echo "${ECHO_T}$_am_result" >&6
2961 rm -f confinc confmf
2962
2963 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2964 if test "${enable_dependency_tracking+set}" = set; then
2965 enableval="$enable_dependency_tracking"
2966
2967 fi;
2968 if test "x$enable_dependency_tracking" != xno; then
2969 am_depcomp="$ac_aux_dir/depcomp"
2970 AMDEPBACKSLASH='\'
2971 fi
2972
2973
2974 if test "x$enable_dependency_tracking" != xno; then
2975 AMDEP_TRUE=
2976 AMDEP_FALSE='#'
2977 else
2978 AMDEP_TRUE='#'
2979 AMDEP_FALSE=
2980 fi
2981
2982
2983
2984
2985 depcc="$CC" am_compiler_list=
2986
2987 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2988 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2989 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2993 # We make a subdir and do the tests there. Otherwise we can end up
2994 # making bogus files that we don't know about and never remove. For
2995 # instance it was reported that on HP-UX the gcc test will end up
2996 # making a dummy file named `D' -- because `-MD' means `put the output
2997 # in D'.
2998 mkdir conftest.dir
2999 # Copy depcomp to subdir because otherwise we won't find it if we're
3000 # using a relative directory.
3001 cp "$am_depcomp" conftest.dir
3002 cd conftest.dir
3003 # We will build objects and dependencies in a subdirectory because
3004 # it helps to detect inapplicable dependency modes. For instance
3005 # both Tru64's cc and ICC support -MD to output dependencies as a
3006 # side effect of compilation, but ICC will put the dependencies in
3007 # the current directory while Tru64 will put them in the object
3008 # directory.
3009 mkdir sub
3010
3011 am_cv_CC_dependencies_compiler_type=none
3012 if test "$am_compiler_list" = ""; then
3013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3014 fi
3015 for depmode in $am_compiler_list; do
3016 # Setup a source with many dependencies, because some compilers
3017 # like to wrap large dependency lists on column 80 (with \), and
3018 # we should not choose a depcomp mode which is confused by this.
3019 #
3020 # We need to recreate these files for each test, as the compiler may
3021 # overwrite some of them when testing with obscure command lines.
3022 # This happens at least with the AIX C compiler.
3023 : > sub/conftest.c
3024 for i in 1 2 3 4 5 6; do
3025 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3026 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3027 # Solaris 8's {/usr,}/bin/sh.
3028 touch sub/conftst$i.h
3029 done
3030 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3031
3032 case $depmode in
3033 nosideeffect)
3034 # after this tag, mechanisms are not by side-effect, so they'll
3035 # only be used when explicitly requested
3036 if test "x$enable_dependency_tracking" = xyes; then
3037 continue
3038 else
3039 break
3040 fi
3041 ;;
3042 none) break ;;
3043 esac
3044 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3045 # mode. It turns out that the SunPro C++ compiler does not properly
3046 # handle `-M -o', and we need to detect this.
3047 if depmode=$depmode \
3048 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3050 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3051 >/dev/null 2>conftest.err &&
3052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3053 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3054 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3055 # icc doesn't choke on unknown options, it will just issue warnings
3056 # or remarks (even with -Werror). So we grep stderr for any message
3057 # that says an option was ignored or not supported.
3058 # When given -MP, icc 7.0 and 7.1 complain thusly:
3059 # icc: Command line warning: ignoring option '-M'; no argument required
3060 # The diagnosis changed in icc 8.0:
3061 # icc: Command line remark: option '-MP' not supported
3062 if (grep 'ignoring option' conftest.err ||
3063 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3064 am_cv_CC_dependencies_compiler_type=$depmode
3065 break
3066 fi
3067 fi
3068 done
3069
3070 cd ..
3071 rm -rf conftest.dir
3072 else
3073 am_cv_CC_dependencies_compiler_type=none
3074 fi
3075
3076 fi
3077 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3078 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3079 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3080
3081
3082
3083 if
3084 test "x$enable_dependency_tracking" != xno \
3085 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3086 am__fastdepCC_TRUE=
3087 am__fastdepCC_FALSE='#'
3088 else
3089 am__fastdepCC_TRUE='#'
3090 am__fastdepCC_FALSE=
3091 fi
3092
3093
3094
3095
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3102 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3103 # On Suns, sometimes $CPP names a directory.
3104 if test -n "$CPP" && test -d "$CPP"; then
3105 CPP=
3106 fi
3107 if test -z "$CPP"; then
3108 if test "${ac_cv_prog_CPP+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 # Double quotes because CPP needs to be expanded
3112 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3113 do
3114 ac_preproc_ok=false
3115 for ac_c_preproc_warn_flag in '' yes
3116 do
3117 # Use a header file that comes with gcc, so configuring glibc
3118 # with a fresh cross-compiler works.
3119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3120 # <limits.h> exists even on freestanding compilers.
3121 # On the NeXT, cc -E runs the code through the compiler's parser,
3122 # not just through cpp. "Syntax error" is here to catch this case.
3123 cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #ifdef __STDC__
3130 # include <limits.h>
3131 #else
3132 # include <assert.h>
3133 #endif
3134 Syntax error
3135 _ACEOF
3136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null; then
3144 if test -s conftest.err; then
3145 ac_cpp_err=$ac_c_preproc_warn_flag
3146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3147 else
3148 ac_cpp_err=
3149 fi
3150 else
3151 ac_cpp_err=yes
3152 fi
3153 if test -z "$ac_cpp_err"; then
3154 :
3155 else
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159 # Broken: fails on valid input.
3160 continue
3161 fi
3162 rm -f conftest.err conftest.$ac_ext
3163
3164 # OK, works on sane cases. Now check whether non-existent headers
3165 # can be detected and how.
3166 cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h. */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3172 #include <ac_nonexistent.h>
3173 _ACEOF
3174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3176 ac_status=$?
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } >/dev/null; then
3182 if test -s conftest.err; then
3183 ac_cpp_err=$ac_c_preproc_warn_flag
3184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3185 else
3186 ac_cpp_err=
3187 fi
3188 else
3189 ac_cpp_err=yes
3190 fi
3191 if test -z "$ac_cpp_err"; then
3192 # Broken: success on invalid input.
3193 continue
3194 else
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198 # Passes both tests.
3199 ac_preproc_ok=:
3200 break
3201 fi
3202 rm -f conftest.err conftest.$ac_ext
3203
3204 done
3205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3206 rm -f conftest.err conftest.$ac_ext
3207 if $ac_preproc_ok; then
3208 break
3209 fi
3210
3211 done
3212 ac_cv_prog_CPP=$CPP
3213
3214 fi
3215 CPP=$ac_cv_prog_CPP
3216 else
3217 ac_cv_prog_CPP=$CPP
3218 fi
3219 echo "$as_me:$LINENO: result: $CPP" >&5
3220 echo "${ECHO_T}$CPP" >&6
3221 ac_preproc_ok=false
3222 for ac_c_preproc_warn_flag in '' yes
3223 do
3224 # Use a header file that comes with gcc, so configuring glibc
3225 # with a fresh cross-compiler works.
3226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3227 # <limits.h> exists even on freestanding compilers.
3228 # On the NeXT, cc -E runs the code through the compiler's parser,
3229 # not just through cpp. "Syntax error" is here to catch this case.
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h. */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236 #ifdef __STDC__
3237 # include <limits.h>
3238 #else
3239 # include <assert.h>
3240 #endif
3241 Syntax error
3242 _ACEOF
3243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } >/dev/null; then
3251 if test -s conftest.err; then
3252 ac_cpp_err=$ac_c_preproc_warn_flag
3253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254 else
3255 ac_cpp_err=
3256 fi
3257 else
3258 ac_cpp_err=yes
3259 fi
3260 if test -z "$ac_cpp_err"; then
3261 :
3262 else
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3265
3266 # Broken: fails on valid input.
3267 continue
3268 fi
3269 rm -f conftest.err conftest.$ac_ext
3270
3271 # OK, works on sane cases. Now check whether non-existent headers
3272 # can be detected and how.
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h. */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #include <ac_nonexistent.h>
3280 _ACEOF
3281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } >/dev/null; then
3289 if test -s conftest.err; then
3290 ac_cpp_err=$ac_c_preproc_warn_flag
3291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292 else
3293 ac_cpp_err=
3294 fi
3295 else
3296 ac_cpp_err=yes
3297 fi
3298 if test -z "$ac_cpp_err"; then
3299 # Broken: success on invalid input.
3300 continue
3301 else
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 # Passes both tests.
3306 ac_preproc_ok=:
3307 break
3308 fi
3309 rm -f conftest.err conftest.$ac_ext
3310
3311 done
3312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3313 rm -f conftest.err conftest.$ac_ext
3314 if $ac_preproc_ok; then
3315 :
3316 else
3317 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3318 See \`config.log' for more details." >&5
3319 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3320 See \`config.log' for more details." >&2;}
3321 { (exit 1); exit 1; }; }
3322 fi
3323
3324 ac_ext=c
3325 ac_cpp='$CPP $CPPFLAGS'
3326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329
3330
3331 echo "$as_me:$LINENO: checking for egrep" >&5
3332 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3333 if test "${ac_cv_prog_egrep+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3337 then ac_cv_prog_egrep='grep -E'
3338 else ac_cv_prog_egrep='egrep'
3339 fi
3340 fi
3341 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3342 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3343 EGREP=$ac_cv_prog_egrep
3344
3345
3346 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3348 if test "${ac_cv_header_stdc+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351 cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h. */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h. */
3357 #include <stdlib.h>
3358 #include <stdarg.h>
3359 #include <string.h>
3360 #include <float.h>
3361
3362 int
3363 main ()
3364 {
3365
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 rm -f conftest.$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382 (eval $ac_try) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388 (eval $ac_try) 2>&5
3389 ac_status=$?
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_header_stdc=yes
3393 else
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 ac_cv_header_stdc=no
3398 fi
3399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3400
3401 if test $ac_cv_header_stdc = yes; then
3402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3403 cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h. */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include <string.h>
3410
3411 _ACEOF
3412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3413 $EGREP "memchr" >/dev/null 2>&1; then
3414 :
3415 else
3416 ac_cv_header_stdc=no
3417 fi
3418 rm -f conftest*
3419
3420 fi
3421
3422 if test $ac_cv_header_stdc = yes; then
3423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3424 cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h. */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <stdlib.h>
3431
3432 _ACEOF
3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 $EGREP "free" >/dev/null 2>&1; then
3435 :
3436 else
3437 ac_cv_header_stdc=no
3438 fi
3439 rm -f conftest*
3440
3441 fi
3442
3443 if test $ac_cv_header_stdc = yes; then
3444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3445 if test "$cross_compiling" = yes; then
3446 :
3447 else
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #include <ctype.h>
3455 #if ((' ' & 0x0FF) == 0x020)
3456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3458 #else
3459 # define ISLOWER(c) \
3460 (('a' <= (c) && (c) <= 'i') \
3461 || ('j' <= (c) && (c) <= 'r') \
3462 || ('s' <= (c) && (c) <= 'z'))
3463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3464 #endif
3465
3466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3467 int
3468 main ()
3469 {
3470 int i;
3471 for (i = 0; i < 256; i++)
3472 if (XOR (islower (i), ISLOWER (i))
3473 || toupper (i) != TOUPPER (i))
3474 exit(2);
3475 exit (0);
3476 }
3477 _ACEOF
3478 rm -f conftest$ac_exeext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3480 (eval $ac_link) 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 :
3490 else
3491 echo "$as_me: program exited with status $ac_status" >&5
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495 ( exit $ac_status )
3496 ac_cv_header_stdc=no
3497 fi
3498 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3499 fi
3500 fi
3501 fi
3502 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3503 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3504 if test $ac_cv_header_stdc = yes; then
3505
3506 cat >>confdefs.h <<\_ACEOF
3507 #define STDC_HEADERS 1
3508 _ACEOF
3509
3510 fi
3511
3512 if test "$ac_cv_header_stdc" = "no"; then
3513 { { echo "$as_me:$LINENO: error: Blackbox requires ANSI C headers." >&5
3514 echo "$as_me: error: Blackbox requires ANSI C headers." >&2;}
3515 { (exit 1); exit 1; }; }
3516 fi
3517
3518 ac_ext=cc
3519 ac_cpp='$CXXCPP $CPPFLAGS'
3520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3523 if test -n "$ac_tool_prefix"; then
3524 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3525 do
3526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3528 echo "$as_me:$LINENO: checking for $ac_word" >&5
3529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530 if test "${ac_cv_prog_CXX+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533 if test -n "$CXX"; then
3534 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539 IFS=$as_save_IFS
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547 done
3548 done
3549
3550 fi
3551 fi
3552 CXX=$ac_cv_prog_CXX
3553 if test -n "$CXX"; then
3554 echo "$as_me:$LINENO: result: $CXX" >&5
3555 echo "${ECHO_T}$CXX" >&6
3556 else
3557 echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3559 fi
3560
3561 test -n "$CXX" && break
3562 done
3563 fi
3564 if test -z "$CXX"; then
3565 ac_ct_CXX=$CXX
3566 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3567 do
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 echo "$as_me:$LINENO: checking for $ac_word" >&5
3571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3572 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575 if test -n "$ac_ct_CXX"; then
3576 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_ac_ct_CXX="$ac_prog"
3586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3588 fi
3589 done
3590 done
3591
3592 fi
3593 fi
3594 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3595 if test -n "$ac_ct_CXX"; then
3596 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3597 echo "${ECHO_T}$ac_ct_CXX" >&6
3598 else
3599 echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601 fi
3602
3603 test -n "$ac_ct_CXX" && break
3604 done
3605 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3606
3607 CXX=$ac_ct_CXX
3608 fi
3609
3610
3611 # Provide some information about the compiler.
3612 echo "$as_me:$LINENO:" \
3613 "checking for C++ compiler version" >&5
3614 ac_compiler=`set X $ac_compile; echo $2`
3615 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3616 (eval $ac_compiler --version </dev/null >&5) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }
3620 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3621 (eval $ac_compiler -v </dev/null >&5) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }
3625 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3626 (eval $ac_compiler -V </dev/null >&5) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }
3630
3631 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3632 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3633 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h. */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642
3643 int
3644 main ()
3645 {
3646 #ifndef __GNUC__
3647 choke me
3648 #endif
3649
3650 ;
3651 return 0;
3652 }
3653 _ACEOF
3654 rm -f conftest.$ac_objext
3655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3656 (eval $ac_compile) 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } &&
3663 { ac_try='test -z "$ac_cxx_werror_flag"
3664 || test ! -s conftest.err'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; } &&
3670 { ac_try='test -s conftest.$ac_objext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ac_compiler_gnu=yes
3677 else
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 ac_compiler_gnu=no
3682 fi
3683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3685
3686 fi
3687 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3688 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3689 GXX=`test $ac_compiler_gnu = yes && echo yes`
3690 ac_test_CXXFLAGS=${CXXFLAGS+set}
3691 ac_save_CXXFLAGS=$CXXFLAGS
3692 CXXFLAGS="-g"
3693 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3694 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3695 if test "${ac_cv_prog_cxx_g+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h. */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3704
3705 int
3706 main ()
3707 {
3708
3709 ;
3710 return 0;
3711 }
3712 _ACEOF
3713 rm -f conftest.$ac_objext
3714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3715 (eval $ac_compile) 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -z "$ac_cxx_werror_flag"
3723 || test ! -s conftest.err'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 (eval $ac_try) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; } &&
3729 { ac_try='test -s conftest.$ac_objext'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 ac_cv_prog_cxx_g=yes
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 ac_cv_prog_cxx_g=no
3741 fi
3742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3743 fi
3744 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3745 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3746 if test "$ac_test_CXXFLAGS" = set; then
3747 CXXFLAGS=$ac_save_CXXFLAGS
3748 elif test $ac_cv_prog_cxx_g = yes; then
3749 if test "$GXX" = yes; then
3750 CXXFLAGS="-g -O2"
3751 else
3752 CXXFLAGS="-g"
3753 fi
3754 else
3755 if test "$GXX" = yes; then
3756 CXXFLAGS="-O2"
3757 else
3758 CXXFLAGS=
3759 fi
3760 fi
3761 for ac_declaration in \
3762 '' \
3763 'extern "C" void std::exit (int) throw (); using std::exit;' \
3764 'extern "C" void std::exit (int); using std::exit;' \
3765 'extern "C" void exit (int) throw ();' \
3766 'extern "C" void exit (int);' \
3767 'void exit (int);'
3768 do
3769 cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h. */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3775 $ac_declaration
3776 #include <stdlib.h>
3777 int
3778 main ()
3779 {
3780 exit (42);
3781 ;
3782 return 0;
3783 }
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787 (eval $ac_compile) 2>conftest.er1
3788 ac_status=$?
3789 grep -v '^ *+' conftest.er1 >conftest.err
3790 rm -f conftest.er1
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -z "$ac_cxx_werror_flag"
3795 || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest.$ac_objext'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; }; then
3807 :
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 continue
3813 fi
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3821 $ac_declaration
3822 int
3823 main ()
3824 {
3825 exit (42);
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>conftest.er1
3833 ac_status=$?
3834 grep -v '^ *+' conftest.er1 >conftest.err
3835 rm -f conftest.er1
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try='test -z "$ac_cxx_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 break
3853 else
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857 fi
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 done
3860 rm -f conftest*
3861 if test -n "$ac_declaration"; then
3862 echo '#ifdef __cplusplus' >>confdefs.h
3863 echo $ac_declaration >>confdefs.h
3864 echo '#endif' >>confdefs.h
3865 fi
3866
3867 ac_ext=c
3868 ac_cpp='$CPP $CPPFLAGS'
3869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3872
3873 depcc="$CXX" am_compiler_list=
3874
3875 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3876 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3877 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3881 # We make a subdir and do the tests there. Otherwise we can end up
3882 # making bogus files that we don't know about and never remove. For
3883 # instance it was reported that on HP-UX the gcc test will end up
3884 # making a dummy file named `D' -- because `-MD' means `put the output
3885 # in D'.
3886 mkdir conftest.dir
3887 # Copy depcomp to subdir because otherwise we won't find it if we're
3888 # using a relative directory.
3889 cp "$am_depcomp" conftest.dir
3890 cd conftest.dir
3891 # We will build objects and dependencies in a subdirectory because
3892 # it helps to detect inapplicable dependency modes. For instance
3893 # both Tru64's cc and ICC support -MD to output dependencies as a
3894 # side effect of compilation, but ICC will put the dependencies in
3895 # the current directory while Tru64 will put them in the object
3896 # directory.
3897 mkdir sub
3898
3899 am_cv_CXX_dependencies_compiler_type=none
3900 if test "$am_compiler_list" = ""; then
3901 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3902 fi
3903 for depmode in $am_compiler_list; do
3904 # Setup a source with many dependencies, because some compilers
3905 # like to wrap large dependency lists on column 80 (with \), and
3906 # we should not choose a depcomp mode which is confused by this.
3907 #
3908 # We need to recreate these files for each test, as the compiler may
3909 # overwrite some of them when testing with obscure command lines.
3910 # This happens at least with the AIX C compiler.
3911 : > sub/conftest.c
3912 for i in 1 2 3 4 5 6; do
3913 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3914 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3915 # Solaris 8's {/usr,}/bin/sh.
3916 touch sub/conftst$i.h
3917 done
3918 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3919
3920 case $depmode in
3921 nosideeffect)
3922 # after this tag, mechanisms are not by side-effect, so they'll
3923 # only be used when explicitly requested
3924 if test "x$enable_dependency_tracking" = xyes; then
3925 continue
3926 else
3927 break
3928 fi
3929 ;;
3930 none) break ;;
3931 esac
3932 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3933 # mode. It turns out that the SunPro C++ compiler does not properly
3934 # handle `-M -o', and we need to detect this.
3935 if depmode=$depmode \
3936 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3938 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3939 >/dev/null 2>conftest.err &&
3940 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3941 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3942 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3943 # icc doesn't choke on unknown options, it will just issue warnings
3944 # or remarks (even with -Werror). So we grep stderr for any message
3945 # that says an option was ignored or not supported.
3946 # When given -MP, icc 7.0 and 7.1 complain thusly:
3947 # icc: Command line warning: ignoring option '-M'; no argument required
3948 # The diagnosis changed in icc 8.0:
3949 # icc: Command line remark: option '-MP' not supported
3950 if (grep 'ignoring option' conftest.err ||
3951 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3952 am_cv_CXX_dependencies_compiler_type=$depmode
3953 break
3954 fi
3955 fi
3956 done
3957
3958 cd ..
3959 rm -rf conftest.dir
3960 else
3961 am_cv_CXX_dependencies_compiler_type=none
3962 fi
3963
3964 fi
3965 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3966 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3967 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3968
3969
3970
3971 if
3972 test "x$enable_dependency_tracking" != xno \
3973 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3974 am__fastdepCXX_TRUE=
3975 am__fastdepCXX_FALSE='#'
3976 else
3977 am__fastdepCXX_TRUE='#'
3978 am__fastdepCXX_FALSE=
3979 fi
3980
3981
3982 # Find a good install program. We prefer a C program (faster),
3983 # so one script is as good as another. But avoid the broken or
3984 # incompatible versions:
3985 # SysV /etc/install, /usr/sbin/install
3986 # SunOS /usr/etc/install
3987 # IRIX /sbin/install
3988 # AIX /bin/install
3989 # AmigaOS /C/install, which installs bootblocks on floppy discs
3990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3993 # OS/2's system install, which has a completely different semantic
3994 # ./install, which can be erroneously created by make from ./install.sh.
3995 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3996 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3997 if test -z "$INSTALL"; then
3998 if test "${ac_cv_path_install+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 # Account for people who put trailing slashes in PATH elements.
4007 case $as_dir/ in
4008 ./ | .// | /cC/* | \
4009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4010 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4011 /usr/ucb/* ) ;;
4012 *)
4013 # OSF1 and SCO ODT 3.0 have their own names for install.
4014 # Don't use installbsd from OSF since it installs stuff as root
4015 # by default.
4016 for ac_prog in ginstall scoinst install; do
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4019 if test $ac_prog = install &&
4020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4021 # AIX install. It has an incompatible calling convention.
4022 :
4023 elif test $ac_prog = install &&
4024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4025 # program-specific install script used by HP pwplus--don't use.
4026 :
4027 else
4028 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4029 break 3
4030 fi
4031 fi
4032 done
4033 done
4034 ;;
4035 esac
4036 done
4037
4038
4039 fi
4040 if test "${ac_cv_path_install+set}" = set; then
4041 INSTALL=$ac_cv_path_install
4042 else
4043 # As a last resort, use the slow shell script. We don't cache a
4044 # path for INSTALL within a source directory, because that will
4045 # break other packages using the cache if that directory is
4046 # removed, or if the path is relative.
4047 INSTALL=$ac_install_sh
4048 fi
4049 fi
4050 echo "$as_me:$LINENO: result: $INSTALL" >&5
4051 echo "${ECHO_T}$INSTALL" >&6
4052
4053 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4054 # It thinks the first close brace ends the variable substitution.
4055 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4056
4057 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4058
4059 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4060
4061
4062 # Check whether --enable-shared or --disable-shared was given.
4063 if test "${enable_shared+set}" = set; then
4064 enableval="$enable_shared"
4065 p=${PACKAGE-default}
4066 case $enableval in
4067 yes) enable_shared=yes ;;
4068 no) enable_shared=no ;;
4069 *)
4070 enable_shared=no
4071 # Look at the argument we got. We use all the common list separators.
4072 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4073 for pkg in $enableval; do
4074 IFS="$lt_save_ifs"
4075 if test "X$pkg" = "X$p"; then
4076 enable_shared=yes
4077 fi
4078 done
4079 IFS="$lt_save_ifs"
4080 ;;
4081 esac
4082 else
4083 enable_shared=no
4084 fi;
4085
4086
4087 # Check whether --enable-static or --disable-static was given.
4088 if test "${enable_static+set}" = set; then
4089 enableval="$enable_static"
4090 p=${PACKAGE-default}
4091 case $enableval in
4092 yes) enable_static=yes ;;
4093 no) enable_static=no ;;
4094 *)
4095 enable_static=no
4096 # Look at the argument we got. We use all the common list separators.
4097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4098 for pkg in $enableval; do
4099 IFS="$lt_save_ifs"
4100 if test "X$pkg" = "X$p"; then
4101 enable_static=yes
4102 fi
4103 done
4104 IFS="$lt_save_ifs"
4105 ;;
4106 esac
4107 else
4108 enable_static=yes
4109 fi;
4110
4111 # Check whether --enable-fast-install or --disable-fast-install was given.
4112 if test "${enable_fast_install+set}" = set; then
4113 enableval="$enable_fast_install"
4114 p=${PACKAGE-default}
4115 case $enableval in
4116 yes) enable_fast_install=yes ;;
4117 no) enable_fast_install=no ;;
4118 *)
4119 enable_fast_install=no
4120 # Look at the argument we got. We use all the common list separators.
4121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4122 for pkg in $enableval; do
4123 IFS="$lt_save_ifs"
4124 if test "X$pkg" = "X$p"; then
4125 enable_fast_install=yes
4126 fi
4127 done
4128 IFS="$lt_save_ifs"
4129 ;;
4130 esac
4131 else
4132 enable_fast_install=yes
4133 fi;
4134
4135 # Make sure we can run config.sub.
4136 $ac_config_sub sun4 >/dev/null 2>&1 ||
4137 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4138 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4139 { (exit 1); exit 1; }; }
4140
4141 echo "$as_me:$LINENO: checking build system type" >&5
4142 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4143 if test "${ac_cv_build+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 ac_cv_build_alias=$build_alias
4147 test -z "$ac_cv_build_alias" &&
4148 ac_cv_build_alias=`$ac_config_guess`
4149 test -z "$ac_cv_build_alias" &&
4150 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4151 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4152 { (exit 1); exit 1; }; }
4153 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4154 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4155 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4156 { (exit 1); exit 1; }; }
4157
4158 fi
4159 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4160 echo "${ECHO_T}$ac_cv_build" >&6
4161 build=$ac_cv_build
4162 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4163 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4164 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4165
4166
4167 echo "$as_me:$LINENO: checking host system type" >&5
4168 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4169 if test "${ac_cv_host+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 ac_cv_host_alias=$host_alias
4173 test -z "$ac_cv_host_alias" &&
4174 ac_cv_host_alias=$ac_cv_build_alias
4175 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4176 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4177 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4178 { (exit 1); exit 1; }; }
4179
4180 fi
4181 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4182 echo "${ECHO_T}$ac_cv_host" >&6
4183 host=$ac_cv_host
4184 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4185 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4186 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4187
4188
4189 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4190 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4191 if test "${lt_cv_path_SED+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 # Loop through the user's path and test for sed and gsed.
4195 # Then use that list of sed's as ones to test for truncation.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for lt_ac_prog in sed gsed; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4204 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4205 fi
4206 done
4207 done
4208 done
4209 lt_ac_max=0
4210 lt_ac_count=0
4211 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4212 # along with /bin/sed that truncates output.
4213 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4214 test ! -f $lt_ac_sed && continue
4215 cat /dev/null > conftest.in
4216 lt_ac_count=0
4217 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4218 # Check for GNU sed and select it if it is found.
4219 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4220 lt_cv_path_SED=$lt_ac_sed
4221 break
4222 fi
4223 while true; do
4224 cat conftest.in conftest.in >conftest.tmp
4225 mv conftest.tmp conftest.in
4226 cp conftest.in conftest.nl
4227 echo >>conftest.nl
4228 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4229 cmp -s conftest.out conftest.nl || break
4230 # 10000 chars as input seems more than enough
4231 test $lt_ac_count -gt 10 && break
4232 lt_ac_count=`expr $lt_ac_count + 1`
4233 if test $lt_ac_count -gt $lt_ac_max; then
4234 lt_ac_max=$lt_ac_count
4235 lt_cv_path_SED=$lt_ac_sed
4236 fi
4237 done
4238 done
4239
4240 fi
4241
4242 SED=$lt_cv_path_SED
4243 echo "$as_me:$LINENO: result: $SED" >&5
4244 echo "${ECHO_T}$SED" >&6
4245
4246
4247 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4248 if test "${with_gnu_ld+set}" = set; then
4249 withval="$with_gnu_ld"
4250 test "$withval" = no || with_gnu_ld=yes
4251 else
4252 with_gnu_ld=no
4253 fi;
4254 ac_prog=ld
4255 if test "$GCC" = yes; then
4256 # Check if gcc -print-prog-name=ld gives a path.
4257 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4258 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4259 case $host in
4260 *-*-mingw*)
4261 # gcc leaves a trailing carriage return which upsets mingw
4262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4263 *)
4264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4265 esac
4266 case $ac_prog in
4267 # Accept absolute paths.
4268 [\\/]* | ?:[\\/]*)
4269 re_direlt='/[^/][^/]*/\.\./'
4270 # Canonicalize the pathname of ld
4271 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4272 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4273 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4274 done
4275 test -z "$LD" && LD="$ac_prog"
4276 ;;
4277 "")
4278 # If it fails, then pretend we aren't using GCC.
4279 ac_prog=ld
4280 ;;
4281 *)
4282 # If it is relative, then search for the first ld in PATH.
4283 with_gnu_ld=unknown
4284 ;;
4285 esac
4286 elif test "$with_gnu_ld" = yes; then
4287 echo "$as_me:$LINENO: checking for GNU ld" >&5
4288 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4289 else
4290 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4291 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4292 fi
4293 if test "${lt_cv_path_LD+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 if test -z "$LD"; then
4297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4298 for ac_dir in $PATH; do
4299 IFS="$lt_save_ifs"
4300 test -z "$ac_dir" && ac_dir=.
4301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4302 lt_cv_path_LD="$ac_dir/$ac_prog"
4303 # Check to see if the program is GNU ld. I'd rather use --version,
4304 # but apparently some GNU ld's only accept -v.
4305 # Break only if it was the GNU/non-GNU ld that we prefer.
4306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4307 *GNU* | *'with BFD'*)
4308 test "$with_gnu_ld" != no && break
4309 ;;
4310 *)
4311 test "$with_gnu_ld" != yes && break
4312 ;;
4313 esac
4314 fi
4315 done
4316 IFS="$lt_save_ifs"
4317 else
4318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4319 fi
4320 fi
4321
4322 LD="$lt_cv_path_LD"
4323 if test -n "$LD"; then
4324 echo "$as_me:$LINENO: result: $LD" >&5
4325 echo "${ECHO_T}$LD" >&6
4326 else
4327 echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4329 fi
4330 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4331 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4332 { (exit 1); exit 1; }; }
4333 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4334 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4335 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4336 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4339 case `$LD -v 2>&1 </dev/null` in
4340 *GNU* | *'with BFD'*)
4341 lt_cv_prog_gnu_ld=yes
4342 ;;
4343 *)
4344 lt_cv_prog_gnu_ld=no
4345 ;;
4346 esac
4347 fi
4348 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4349 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4350 with_gnu_ld=$lt_cv_prog_gnu_ld
4351
4352
4353 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4354 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4355 if test "${lt_cv_ld_reload_flag+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358 lt_cv_ld_reload_flag='-r'
4359 fi
4360 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4361 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4362 reload_flag=$lt_cv_ld_reload_flag
4363 case $reload_flag in
4364 "" | " "*) ;;
4365 *) reload_flag=" $reload_flag" ;;
4366 esac
4367 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4368 case $host_os in
4369 darwin*)
4370 if test "$GCC" = yes; then
4371 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4372 else
4373 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4374 fi
4375 ;;
4376 esac
4377
4378 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4379 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4380 if test "${lt_cv_path_NM+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383 if test -n "$NM"; then
4384 # Let the user override the test.
4385 lt_cv_path_NM="$NM"
4386 else
4387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4388 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4389 IFS="$lt_save_ifs"
4390 test -z "$ac_dir" && ac_dir=.
4391 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4392 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4393 # Check to see if the nm accepts a BSD-compat flag.
4394 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4395 # nm: unknown option "B" ignored
4396 # Tru64's nm complains that /dev/null is an invalid object file
4397 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4398 */dev/null* | *'Invalid file or object type'*)
4399 lt_cv_path_NM="$tmp_nm -B"
4400 break
4401 ;;
4402 *)
4403 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4404 */dev/null*)
4405 lt_cv_path_NM="$tmp_nm -p"
4406 break
4407 ;;
4408 *)
4409 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4410 continue # so that we can try to find one that supports BSD flags
4411 ;;
4412 esac
4413 esac
4414 fi
4415 done
4416 IFS="$lt_save_ifs"
4417 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4418 fi
4419 fi
4420 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4421 echo "${ECHO_T}$lt_cv_path_NM" >&6
4422 NM="$lt_cv_path_NM"
4423
4424 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4425 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4426 LN_S=$as_ln_s
4427 if test "$LN_S" = "ln -s"; then
4428 echo "$as_me:$LINENO: result: yes" >&5
4429 echo "${ECHO_T}yes" >&6
4430 else
4431 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4432 echo "${ECHO_T}no, using $LN_S" >&6
4433 fi
4434
4435 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4436 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4437 if test "${lt_cv_deplibs_check_method+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 lt_cv_file_magic_cmd='$MAGIC_CMD'
4441 lt_cv_file_magic_test_file=
4442 lt_cv_deplibs_check_method='unknown'
4443 # Need to set the preceding variable on all platforms that support
4444 # interlibrary dependencies.
4445 # 'none' -- dependencies not supported.
4446 # `unknown' -- same as none, but documents that we really don't know.
4447 # 'pass_all' -- all dependencies passed with no checks.
4448 # 'test_compile' -- check by making test program.
4449 # 'file_magic [[regex]]' -- check by looking for files in library path
4450 # which responds to the $file_magic_cmd with a given extended regex.
4451 # If you have `file' or equivalent on your system and you're not sure
4452 # whether `pass_all' will *always* work, you probably want this one.
4453
4454 case $host_os in
4455 aix4* | aix5*)
4456 lt_cv_deplibs_check_method=pass_all
4457 ;;
4458
4459 beos*)
4460 lt_cv_deplibs_check_method=pass_all
4461 ;;
4462
4463 bsdi[45]*)
4464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4465 lt_cv_file_magic_cmd='/usr/bin/file -L'
4466 lt_cv_file_magic_test_file=/shlib/libc.so
4467 ;;
4468
4469 cygwin*)
4470 # func_win32_libid is a shell function defined in ltmain.sh
4471 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4472 lt_cv_file_magic_cmd='func_win32_libid'
4473 ;;
4474
4475 mingw* | pw32*)
4476 # Base MSYS/MinGW do not provide the 'file' command needed by
4477 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4478 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4479 lt_cv_file_magic_cmd='$OBJDUMP -f'
4480 ;;
4481
4482 darwin* | rhapsody*)
4483 lt_cv_deplibs_check_method=pass_all
4484 ;;
4485
4486 freebsd* | kfreebsd*-gnu | dragonfly*)
4487 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4488 case $host_cpu in
4489 i*86 )
4490 # Not sure whether the presence of OpenBSD here was a mistake.
4491 # Let's accept both of them until this is cleared up.
4492 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4493 lt_cv_file_magic_cmd=/usr/bin/file
4494 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4495 ;;
4496 esac
4497 else
4498 lt_cv_deplibs_check_method=pass_all
4499 fi
4500 ;;
4501
4502 gnu*)
4503 lt_cv_deplibs_check_method=pass_all
4504 ;;
4505
4506 hpux10.20* | hpux11*)
4507 lt_cv_file_magic_cmd=/usr/bin/file
4508 case "$host_cpu" in
4509 ia64*)
4510 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4511 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4512 ;;
4513 hppa*64*)
4514 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]'
4515 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4516 ;;
4517 *)
4518 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4519 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4520 ;;
4521 esac
4522 ;;
4523
4524 irix5* | irix6* | nonstopux*)
4525 case $LD in
4526 *-32|*"-32 ") libmagic=32-bit;;
4527 *-n32|*"-n32 ") libmagic=N32;;
4528 *-64|*"-64 ") libmagic=64-bit;;
4529 *) libmagic=never-match;;
4530 esac
4531 lt_cv_deplibs_check_method=pass_all
4532 ;;
4533
4534 # This must be Linux ELF.
4535 linux*)
4536 lt_cv_deplibs_check_method=pass_all
4537 ;;
4538
4539 netbsd*)
4540 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4542 else
4543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4544 fi
4545 ;;
4546
4547 newos6*)
4548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4549 lt_cv_file_magic_cmd=/usr/bin/file
4550 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4551 ;;
4552
4553 nto-qnx*)
4554 lt_cv_deplibs_check_method=unknown
4555 ;;
4556
4557 openbsd*)
4558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4560 else
4561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4562 fi
4563 ;;
4564
4565 osf3* | osf4* | osf5*)
4566 lt_cv_deplibs_check_method=pass_all
4567 ;;
4568
4569 sco3.2v5*)
4570 lt_cv_deplibs_check_method=pass_all
4571 ;;
4572
4573 solaris*)
4574 lt_cv_deplibs_check_method=pass_all
4575 ;;
4576
4577 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4578 case $host_vendor in
4579 motorola)
4580 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]'
4581 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4582 ;;
4583 ncr)
4584 lt_cv_deplibs_check_method=pass_all
4585 ;;
4586 sequent)
4587 lt_cv_file_magic_cmd='/bin/file'
4588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4589 ;;
4590 sni)
4591 lt_cv_file_magic_cmd='/bin/file'
4592 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4593 lt_cv_file_magic_test_file=/lib/libc.so
4594 ;;
4595 siemens)
4596 lt_cv_deplibs_check_method=pass_all
4597 ;;
4598 esac
4599 ;;
4600
4601 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4602 lt_cv_deplibs_check_method=pass_all
4603 ;;
4604 esac
4605
4606 fi
4607 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4608 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4609 file_magic_cmd=$lt_cv_file_magic_cmd
4610 deplibs_check_method=$lt_cv_deplibs_check_method
4611 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4612
4613
4614
4615
4616 # If no C compiler was specified, use CC.
4617 LTCC=${LTCC-"$CC"}
4618
4619 # Allow CC to be a program name with arguments.
4620 compiler=$CC
4621
4622 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4623 if test "${enable_libtool_lock+set}" = set; then
4624 enableval="$enable_libtool_lock"
4625
4626 fi;
4627 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4628
4629 # Some flags need to be propagated to the compiler or linker for good
4630 # libtool support.
4631 case $host in
4632 ia64-*-hpux*)
4633 # Find out which ABI we are using.
4634 echo 'int i;' > conftest.$ac_ext
4635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4636 (eval $ac_compile) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; then
4640 case `/usr/bin/file conftest.$ac_objext` in
4641 *ELF-32*)
4642 HPUX_IA64_MODE="32"
4643 ;;
4644 *ELF-64*)
4645 HPUX_IA64_MODE="64"
4646 ;;
4647 esac
4648 fi
4649 rm -rf conftest*
4650 ;;
4651 *-*-irix6*)
4652 # Find out which ABI we are using.
4653 echo '#line 4653 "configure"' > conftest.$ac_ext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; then
4659 if test "$lt_cv_prog_gnu_ld" = yes; then
4660 case `/usr/bin/file conftest.$ac_objext` in
4661 *32-bit*)
4662 LD="${LD-ld} -melf32bsmip"
4663 ;;
4664 *N32*)
4665 LD="${LD-ld} -melf32bmipn32"
4666 ;;
4667 *64-bit*)
4668 LD="${LD-ld} -melf64bmip"
4669 ;;
4670 esac
4671 else
4672 case `/usr/bin/file conftest.$ac_objext` in
4673 *32-bit*)
4674 LD="${LD-ld} -32"
4675 ;;
4676 *N32*)
4677 LD="${LD-ld} -n32"
4678 ;;
4679 *64-bit*)
4680 LD="${LD-ld} -64"
4681 ;;
4682 esac
4683 fi
4684 fi
4685 rm -rf conftest*
4686 ;;
4687
4688 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4689 # Find out which ABI we are using.
4690 echo 'int i;' > conftest.$ac_ext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692 (eval $ac_compile) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; then
4696 case "`/usr/bin/file conftest.o`" in
4697 *32-bit*)
4698 case $host in
4699 x86_64-*linux*)
4700 LD="${LD-ld} -m elf_i386"
4701 ;;
4702 ppc64-*linux*|powerpc64-*linux*)
4703 LD="${LD-ld} -m elf32ppclinux"
4704 ;;
4705 s390x-*linux*)
4706 LD="${LD-ld} -m elf_s390"
4707 ;;
4708 sparc64-*linux*)
4709 LD="${LD-ld} -m elf32_sparc"
4710 ;;
4711 esac
4712 ;;
4713 *64-bit*)
4714 case $host in
4715 x86_64-*linux*)
4716 LD="${LD-ld} -m elf_x86_64"
4717 ;;
4718 ppc*-*linux*|powerpc*-*linux*)
4719 LD="${LD-ld} -m elf64ppc"
4720 ;;
4721 s390*-*linux*)
4722 LD="${LD-ld} -m elf64_s390"
4723 ;;
4724 sparc*-*linux*)
4725 LD="${LD-ld} -m elf64_sparc"
4726 ;;
4727 esac
4728 ;;
4729 esac
4730 fi
4731 rm -rf conftest*
4732 ;;
4733
4734 *-*-sco3.2v5*)
4735 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4736 SAVE_CFLAGS="$CFLAGS"
4737 CFLAGS="$CFLAGS -belf"
4738 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4739 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4740 if test "${lt_cv_cc_needs_belf+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749 cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h. */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4755
4756 int
4757 main ()
4758 {
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext conftest$ac_exeext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766 (eval $ac_link) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest$ac_exeext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 lt_cv_cc_needs_belf=yes
4787 else
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 lt_cv_cc_needs_belf=no
4792 fi
4793 rm -f conftest.err conftest.$ac_objext \
4794 conftest$ac_exeext conftest.$ac_ext
4795 ac_ext=c
4796 ac_cpp='$CPP $CPPFLAGS'
4797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800
4801 fi
4802 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4803 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4804 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4805 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4806 CFLAGS="$SAVE_CFLAGS"
4807 fi
4808 ;;
4809
4810 esac
4811
4812 need_locks="$enable_libtool_lock"
4813
4814
4815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4826 inttypes.h stdint.h unistd.h
4827 do
4828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4829 echo "$as_me:$LINENO: checking for $ac_header" >&5
4830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 $ac_includes_default
4841
4842 #include <$ac_header>
4843 _ACEOF
4844 rm -f conftest.$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 (eval $ac_try) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 eval "$as_ac_Header=yes"
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 eval "$as_ac_Header=no"
4872 fi
4873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4874 fi
4875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4878 cat >>confdefs.h <<_ACEOF
4879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4880 _ACEOF
4881
4882 fi
4883
4884 done
4885
4886
4887
4888 for ac_header in dlfcn.h
4889 do
4890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4892 echo "$as_me:$LINENO: checking for $ac_header" >&5
4893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 fi
4897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4899 else
4900 # Is the header compilable?
4901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h. */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 $ac_includes_default
4910 #include <$ac_header>
4911 _ACEOF
4912 rm -f conftest.$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 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_c_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_objext'
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 ac_header_compiler=yes
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 ac_header_compiler=no
4940 fi
4941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4943 echo "${ECHO_T}$ac_header_compiler" >&6
4944
4945 # Is the header present?
4946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 #include <$ac_header>
4955 _ACEOF
4956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4958 ac_status=$?
4959 grep -v '^ *+' conftest.er1 >conftest.err
4960 rm -f conftest.er1
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } >/dev/null; then
4964 if test -s conftest.err; then
4965 ac_cpp_err=$ac_c_preproc_warn_flag
4966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4967 else
4968 ac_cpp_err=
4969 fi
4970 else
4971 ac_cpp_err=yes
4972 fi
4973 if test -z "$ac_cpp_err"; then
4974 ac_header_preproc=yes
4975 else
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 ac_header_preproc=no
4980 fi
4981 rm -f conftest.err conftest.$ac_ext
4982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4983 echo "${ECHO_T}$ac_header_preproc" >&6
4984
4985 # So? What about this header?
4986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4987 yes:no: )
4988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4992 ac_header_preproc=yes
4993 ;;
4994 no:yes:* )
4995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5007 (
5008 cat <<\_ASBOX
5009 ## ------------------------------------------------ ##
5010 ## Report this to http://blackboxwm.sourceforge.net ##
5011 ## ------------------------------------------------ ##
5012 _ASBOX
5013 ) |
5014 sed "s/^/$as_me: WARNING: /" >&2
5015 ;;
5016 esac
5017 echo "$as_me:$LINENO: checking for $ac_header" >&5
5018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 eval "$as_ac_Header=\$ac_header_preproc"
5023 fi
5024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5026
5027 fi
5028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5029 cat >>confdefs.h <<_ACEOF
5030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5031 _ACEOF
5032
5033 fi
5034
5035 done
5036
5037
5038
5039 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5040 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5041 (test "X$CXX" != "Xg++"))) ; then
5042 ac_ext=cc
5043 ac_cpp='$CXXCPP $CPPFLAGS'
5044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5047 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5048 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5049 if test -z "$CXXCPP"; then
5050 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053 # Double quotes because CXXCPP needs to be expanded
5054 for CXXCPP in "$CXX -E" "/lib/cpp"
5055 do
5056 ac_preproc_ok=false
5057 for ac_cxx_preproc_warn_flag in '' yes
5058 do
5059 # Use a header file that comes with gcc, so configuring glibc
5060 # with a fresh cross-compiler works.
5061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5062 # <limits.h> exists even on freestanding compilers.
5063 # On the NeXT, cc -E runs the code through the compiler's parser,
5064 # not just through cpp. "Syntax error" is here to catch this case.
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #ifdef __STDC__
5072 # include <limits.h>
5073 #else
5074 # include <assert.h>
5075 #endif
5076 Syntax error
5077 _ACEOF
5078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null; then
5086 if test -s conftest.err; then
5087 ac_cpp_err=$ac_cxx_preproc_warn_flag
5088 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5089 else
5090 ac_cpp_err=
5091 fi
5092 else
5093 ac_cpp_err=yes
5094 fi
5095 if test -z "$ac_cpp_err"; then
5096 :
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5100
5101 # Broken: fails on valid input.
5102 continue
5103 fi
5104 rm -f conftest.err conftest.$ac_ext
5105
5106 # OK, works on sane cases. Now check whether non-existent headers
5107 # can be detected and how.
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <ac_nonexistent.h>
5115 _ACEOF
5116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null; then
5124 if test -s conftest.err; then
5125 ac_cpp_err=$ac_cxx_preproc_warn_flag
5126 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5127 else
5128 ac_cpp_err=
5129 fi
5130 else
5131 ac_cpp_err=yes
5132 fi
5133 if test -z "$ac_cpp_err"; then
5134 # Broken: success on invalid input.
5135 continue
5136 else
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5143 fi
5144 rm -f conftest.err conftest.$ac_ext
5145
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then
5150 break
5151 fi
5152
5153 done
5154 ac_cv_prog_CXXCPP=$CXXCPP
5155
5156 fi
5157 CXXCPP=$ac_cv_prog_CXXCPP
5158 else
5159 ac_cv_prog_CXXCPP=$CXXCPP
5160 fi
5161 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5162 echo "${ECHO_T}$CXXCPP" >&6
5163 ac_preproc_ok=false
5164 for ac_cxx_preproc_warn_flag in '' yes
5165 do
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h. */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #ifdef __STDC__
5179 # include <limits.h>
5180 #else
5181 # include <assert.h>
5182 #endif
5183 Syntax error
5184 _ACEOF
5185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null; then
5193 if test -s conftest.err; then
5194 ac_cpp_err=$ac_cxx_preproc_warn_flag
5195 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5196 else
5197 ac_cpp_err=
5198 fi
5199 else
5200 ac_cpp_err=yes
5201 fi
5202 if test -z "$ac_cpp_err"; then
5203 :
5204 else
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 # Broken: fails on valid input.
5209 continue
5210 fi
5211 rm -f conftest.err conftest.$ac_ext
5212
5213 # OK, works on sane cases. Now check whether non-existent headers
5214 # can be detected and how.
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5222 _ACEOF
5223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null; then
5231 if test -s conftest.err; then
5232 ac_cpp_err=$ac_cxx_preproc_warn_flag
5233 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5234 else
5235 ac_cpp_err=
5236 fi
5237 else
5238 ac_cpp_err=yes
5239 fi
5240 if test -z "$ac_cpp_err"; then
5241 # Broken: success on invalid input.
5242 continue
5243 else
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 # Passes both tests.
5248 ac_preproc_ok=:
5249 break
5250 fi
5251 rm -f conftest.err conftest.$ac_ext
5252
5253 done
5254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5255 rm -f conftest.err conftest.$ac_ext
5256 if $ac_preproc_ok; then
5257 :
5258 else
5259 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5260 See \`config.log' for more details." >&5
5261 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5262 See \`config.log' for more details." >&2;}
5263 { (exit 1); exit 1; }; }
5264 fi
5265
5266 ac_ext=cc
5267 ac_cpp='$CXXCPP $CPPFLAGS'
5268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5271
5272 fi
5273
5274
5275 ac_ext=f
5276 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5277 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5279 if test -n "$ac_tool_prefix"; then
5280 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5281 do
5282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5284 echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286 if test "${ac_cv_prog_F77+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 if test -n "$F77"; then
5290 ac_cv_prog_F77="$F77" # Let the user override the test.
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5294 do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 break 2
5302 fi
5303 done
5304 done
5305
5306 fi
5307 fi
5308 F77=$ac_cv_prog_F77
5309 if test -n "$F77"; then
5310 echo "$as_me:$LINENO: result: $F77" >&5
5311 echo "${ECHO_T}$F77" >&6
5312 else
5313 echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6
5315 fi
5316
5317 test -n "$F77" && break
5318 done
5319 fi
5320 if test -z "$F77"; then
5321 ac_ct_F77=$F77
5322 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5323 do
5324 # Extract the first word of "$ac_prog", so it can be a program name with args.
5325 set dummy $ac_prog; ac_word=$2
5326 echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5328 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331 if test -n "$ac_ct_F77"; then
5332 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5341 ac_cv_prog_ac_ct_F77="$ac_prog"
5342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5344 fi
5345 done
5346 done
5347
5348 fi
5349 fi
5350 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5351 if test -n "$ac_ct_F77"; then
5352 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5353 echo "${ECHO_T}$ac_ct_F77" >&6
5354 else
5355 echo "$as_me:$LINENO: result: no" >&5
5356 echo "${ECHO_T}no" >&6
5357 fi
5358
5359 test -n "$ac_ct_F77" && break
5360 done
5361
5362 F77=$ac_ct_F77
5363 fi
5364
5365
5366 # Provide some information about the compiler.
5367 echo "$as_me:5367:" \
5368 "checking for Fortran 77 compiler version" >&5
5369 ac_compiler=`set X $ac_compile; echo $2`
5370 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5371 (eval $ac_compiler --version </dev/null >&5) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }
5375 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5376 (eval $ac_compiler -v </dev/null >&5) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }
5380 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5381 (eval $ac_compiler -V </dev/null >&5) 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }
5385 rm -f a.out
5386
5387 # If we don't use `.F' as extension, the preprocessor is not run on the
5388 # input file. (Note that this only needs to work for GNU compilers.)
5389 ac_save_ext=$ac_ext
5390 ac_ext=F
5391 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5392 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5393 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396 cat >conftest.$ac_ext <<_ACEOF
5397 program main
5398 #ifndef __GNUC__
5399 choke me
5400 #endif
5401
5402 end
5403 _ACEOF
5404 rm -f conftest.$ac_objext
5405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406 (eval $ac_compile) 2>conftest.er1
5407 ac_status=$?
5408 grep -v '^ *+' conftest.er1 >conftest.err
5409 rm -f conftest.er1
5410 cat conftest.err >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } &&
5413 { ac_try='test -z "$ac_f77_werror_flag"
5414 || test ! -s conftest.err'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; } &&
5420 { ac_try='test -s conftest.$ac_objext'
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 (eval $ac_try) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }; then
5426 ac_compiler_gnu=yes
5427 else
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5430
5431 ac_compiler_gnu=no
5432 fi
5433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5434 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5435
5436 fi
5437 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5438 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5439 ac_ext=$ac_save_ext
5440 ac_test_FFLAGS=${FFLAGS+set}
5441 ac_save_FFLAGS=$FFLAGS
5442 FFLAGS=
5443 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5444 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5445 if test "${ac_cv_prog_f77_g+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448 FFLAGS=-g
5449 cat >conftest.$ac_ext <<_ACEOF
5450 program main
5451
5452 end
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try='test -z "$ac_f77_werror_flag"
5464 || test ! -s conftest.err'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 (eval $ac_try) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest.$ac_objext'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472 (eval $ac_try) 2>&5
5473 ac_status=$?
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5476 ac_cv_prog_f77_g=yes
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 ac_cv_prog_f77_g=no
5482 fi
5483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484
5485 fi
5486 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5487 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5488 if test "$ac_test_FFLAGS" = set; then
5489 FFLAGS=$ac_save_FFLAGS
5490 elif test $ac_cv_prog_f77_g = yes; then
5491 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5492 FFLAGS="-g -O2"
5493 else
5494 FFLAGS="-g"
5495 fi
5496 else
5497 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5498 FFLAGS="-O2"
5499 else
5500 FFLAGS=
5501 fi
5502 fi
5503
5504 G77=`test $ac_compiler_gnu = yes && echo yes`
5505 ac_ext=c
5506 ac_cpp='$CPP $CPPFLAGS'
5507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5510
5511
5512
5513 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5514
5515 # find the maximum length of command line arguments
5516 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5517 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5518 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 i=0
5522 teststring="ABCD"
5523
5524 case $build_os in
5525 msdosdjgpp*)
5526 # On DJGPP, this test can blow up pretty badly due to problems in libc
5527 # (any single argument exceeding 2000 bytes causes a buffer overrun
5528 # during glob expansion). Even if it were fixed, the result of this
5529 # check would be larger than it should be.
5530 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5531 ;;
5532
5533 gnu*)
5534 # Under GNU Hurd, this test is not required because there is
5535 # no limit to the length of command line arguments.
5536 # Libtool will interpret -1 as no limit whatsoever
5537 lt_cv_sys_max_cmd_len=-1;
5538 ;;
5539
5540 cygwin* | mingw*)
5541 # On Win9x/ME, this test blows up -- it succeeds, but takes
5542 # about 5 minutes as the teststring grows exponentially.
5543 # Worse, since 9x/ME are not pre-emptively multitasking,
5544 # you end up with a "frozen" computer, even though with patience
5545 # the test eventually succeeds (with a max line length of 256k).
5546 # Instead, let's just punt: use the minimum linelength reported by
5547 # all of the supported platforms: 8192 (on NT/2K/XP).
5548 lt_cv_sys_max_cmd_len=8192;
5549 ;;
5550
5551 amigaos*)
5552 # On AmigaOS with pdksh, this test takes hours, literally.
5553 # So we just punt and use a minimum line length of 8192.
5554 lt_cv_sys_max_cmd_len=8192;
5555 ;;
5556
5557 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5558 # This has been around since 386BSD, at least. Likely further.
5559 if test -x /sbin/sysctl; then
5560 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5561 elif test -x /usr/sbin/sysctl; then
5562 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5563 else
5564 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5565 fi
5566 # And add a safety zone
5567 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5568 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5569 ;;
5570 osf*)
5571 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5572 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5573 # nice to cause kernel panics so lets avoid the loop below.
5574 # First set a reasonable default.
5575 lt_cv_sys_max_cmd_len=16384
5576 #
5577 if test -x /sbin/sysconfig; then
5578 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5579 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5580 esac
5581 fi
5582 ;;
5583 *)
5584 # If test is not a shell built-in, we'll probably end up computing a
5585 # maximum length that is only half of the actual maximum length, but
5586 # we can't tell.
5587 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5588 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5589 = "XX$teststring") >/dev/null 2>&1 &&
5590 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5591 lt_cv_sys_max_cmd_len=$new_result &&
5592 test $i != 17 # 1/2 MB should be enough
5593 do
5594 i=`expr $i + 1`
5595 teststring=$teststring$teststring
5596 done
5597 teststring=
5598 # Add a significant safety factor because C++ compilers can tack on massive
5599 # amounts of additional arguments before passing them to the linker.
5600 # It appears as though 1/2 is a usable value.
5601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5602 ;;
5603 esac
5604
5605 fi
5606
5607 if test -n $lt_cv_sys_max_cmd_len ; then
5608 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5609 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5610 else
5611 echo "$as_me:$LINENO: result: none" >&5
5612 echo "${ECHO_T}none" >&6
5613 fi
5614
5615
5616
5617
5618 # Check for command to grab the raw symbol name followed by C symbol from nm.
5619 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5620 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5621 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624
5625 # These are sane defaults that work on at least a few old systems.
5626 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5627
5628 # Character class describing NM global symbol codes.
5629 symcode='[BCDEGRST]'
5630
5631 # Regexp to match symbols that can be accessed directly from C.
5632 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5633
5634 # Transform an extracted symbol line into a proper C declaration
5635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5636
5637 # Transform an extracted symbol line into symbol name and symbol address
5638 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'"
5639
5640 # Define system-specific variables.
5641 case $host_os in
5642 aix*)
5643 symcode='[BCDT]'
5644 ;;
5645 cygwin* | mingw* | pw32*)
5646 symcode='[ABCDGISTW]'
5647 ;;
5648 hpux*) # Its linker distinguishes data from code symbols
5649 if test "$host_cpu" = ia64; then
5650 symcode='[ABCDEGRST]'
5651 fi
5652 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5653 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'"
5654 ;;
5655 linux*)
5656 if test "$host_cpu" = ia64; then
5657 symcode='[ABCDGIRSTW]'
5658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5659 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'"
5660 fi
5661 ;;
5662 irix* | nonstopux*)
5663 symcode='[BCDEGRST]'
5664 ;;
5665 osf*)
5666 symcode='[BCDEGQRST]'
5667 ;;
5668 solaris* | sysv5*)
5669 symcode='[BDRT]'
5670 ;;
5671 sysv4)
5672 symcode='[DFNSTU]'
5673 ;;
5674 esac
5675
5676 # Handle CRLF in mingw tool chain
5677 opt_cr=
5678 case $build_os in
5679 mingw*)
5680 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5681 ;;
5682 esac
5683
5684 # If we're using GNU nm, then use its standard symbol codes.
5685 case `$NM -V 2>&1` in
5686 *GNU* | *'with BFD'*)
5687 symcode='[ABCDGIRSTW]' ;;
5688 esac
5689
5690 # Try without a prefix undercore, then with it.
5691 for ac_symprfx in "" "_"; do
5692
5693 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5694 symxfrm="\\1 $ac_symprfx\\2 \\2"
5695
5696 # Write the raw and C identifiers.
5697 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5698
5699 # Check to see that the pipe works correctly.
5700 pipe_works=no
5701
5702 rm -f conftest*
5703 cat > conftest.$ac_ext <<EOF
5704 #ifdef __cplusplus
5705 extern "C" {
5706 #endif
5707 char nm_test_var;
5708 void nm_test_func(){}
5709 #ifdef __cplusplus
5710 }
5711 #endif
5712 int main(){nm_test_var='a';nm_test_func();return(0);}
5713 EOF
5714
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716 (eval $ac_compile) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; then
5720 # Now try to grab the symbols.
5721 nlist=conftest.nm
5722 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5723 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); } && test -s "$nlist"; then
5727 # Try sorting and uniquifying the output.
5728 if sort "$nlist" | uniq > "$nlist"T; then
5729 mv -f "$nlist"T "$nlist"
5730 else
5731 rm -f "$nlist"T
5732 fi
5733
5734 # Make sure that we snagged all the symbols we need.
5735 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5736 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5737 cat <<EOF > conftest.$ac_ext
5738 #ifdef __cplusplus
5739 extern "C" {
5740 #endif
5741
5742 EOF
5743 # Now generate the symbol file.
5744 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5745
5746 cat <<EOF >> conftest.$ac_ext
5747 #if defined (__STDC__) && __STDC__
5748 # define lt_ptr_t void *
5749 #else
5750 # define lt_ptr_t char *
5751 # define const
5752 #endif
5753
5754 /* The mapping between symbol names and symbols. */
5755 const struct {
5756 const char *name;
5757 lt_ptr_t address;
5758 }
5759 lt_preloaded_symbols[] =
5760 {
5761 EOF
5762 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5763 cat <<\EOF >> conftest.$ac_ext
5764 {0, (lt_ptr_t) 0}
5765 };
5766
5767 #ifdef __cplusplus
5768 }
5769 #endif
5770 EOF
5771 # Now try linking the two files.
5772 mv conftest.$ac_objext conftstm.$ac_objext
5773 lt_save_LIBS="$LIBS"
5774 lt_save_CFLAGS="$CFLAGS"
5775 LIBS="conftstm.$ac_objext"
5776 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5778 (eval $ac_link) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5782 pipe_works=yes
5783 fi
5784 LIBS="$lt_save_LIBS"
5785 CFLAGS="$lt_save_CFLAGS"
5786 else
5787 echo "cannot find nm_test_func in $nlist" >&5
5788 fi
5789 else
5790 echo "cannot find nm_test_var in $nlist" >&5
5791 fi
5792 else
5793 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5794 fi
5795 else
5796 echo "$progname: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5798 fi
5799 rm -f conftest* conftst*
5800
5801 # Do not use the global_symbol_pipe unless it works.
5802 if test "$pipe_works" = yes; then
5803 break
5804 else
5805 lt_cv_sys_global_symbol_pipe=
5806 fi
5807 done
5808
5809 fi
5810
5811 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5812 lt_cv_sys_global_symbol_to_cdecl=
5813 fi
5814 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5815 echo "$as_me:$LINENO: result: failed" >&5
5816 echo "${ECHO_T}failed" >&6
5817 else
5818 echo "$as_me:$LINENO: result: ok" >&5
5819 echo "${ECHO_T}ok" >&6
5820 fi
5821
5822 echo "$as_me:$LINENO: checking for objdir" >&5
5823 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5824 if test "${lt_cv_objdir+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827 rm -f .libs 2>/dev/null
5828 mkdir .libs 2>/dev/null
5829 if test -d .libs; then
5830 lt_cv_objdir=.libs
5831 else
5832 # MS-DOS does not allow filenames that begin with a dot.
5833 lt_cv_objdir=_libs
5834 fi
5835 rmdir .libs 2>/dev/null
5836 fi
5837 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5838 echo "${ECHO_T}$lt_cv_objdir" >&6
5839 objdir=$lt_cv_objdir
5840
5841
5842
5843
5844
5845 case $host_os in
5846 aix3*)
5847 # AIX sometimes has problems with the GCC collect2 program. For some
5848 # reason, if we set the COLLECT_NAMES environment variable, the problems
5849 # vanish in a puff of smoke.
5850 if test "X${COLLECT_NAMES+set}" != Xset; then
5851 COLLECT_NAMES=
5852 export COLLECT_NAMES
5853 fi
5854 ;;
5855 esac
5856
5857 # Sed substitution that helps us do robust quoting. It backslashifies
5858 # metacharacters that are still active within double-quoted strings.
5859 Xsed='sed -e 1s/^X//'
5860 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5861
5862 # Same as above, but do not quote variable references.
5863 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5864
5865 # Sed substitution to delay expansion of an escaped shell variable in a
5866 # double_quote_subst'ed string.
5867 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5868
5869 # Sed substitution to avoid accidental globbing in evaled expressions
5870 no_glob_subst='s/\*/\\\*/g'
5871
5872 # Constants:
5873 rm="rm -f"
5874
5875 # Global variables:
5876 default_ofile=libtool
5877 can_build_shared=yes
5878
5879 # All known linkers require a `.a' archive for static linking (except M$VC,
5880 # which needs '.lib').
5881 libext=a
5882 ltmain="$ac_aux_dir/ltmain.sh"
5883 ofile="$default_ofile"
5884 with_gnu_ld="$lt_cv_prog_gnu_ld"
5885
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}ar; ac_word=$2
5889 echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891 if test "${ac_cv_prog_AR+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 if test -n "$AR"; then
5895 ac_cv_prog_AR="$AR" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904 ac_cv_prog_AR="${ac_tool_prefix}ar"
5905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5907 fi
5908 done
5909 done
5910
5911 fi
5912 fi
5913 AR=$ac_cv_prog_AR
5914 if test -n "$AR"; then
5915 echo "$as_me:$LINENO: result: $AR" >&5
5916 echo "${ECHO_T}$AR" >&6
5917 else
5918 echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5920 fi
5921
5922 fi
5923 if test -z "$ac_cv_prog_AR"; then
5924 ac_ct_AR=$AR
5925 # Extract the first word of "ar", so it can be a program name with args.
5926 set dummy ar; ac_word=$2
5927 echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5929 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932 if test -n "$ac_ct_AR"; then
5933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_prog_ac_ct_AR="ar"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5945 fi
5946 done
5947 done
5948
5949 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5950 fi
5951 fi
5952 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5953 if test -n "$ac_ct_AR"; then
5954 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5955 echo "${ECHO_T}$ac_ct_AR" >&6
5956 else
5957 echo "$as_me:$LINENO: result: no" >&5
5958 echo "${ECHO_T}no" >&6
5959 fi
5960
5961 AR=$ac_ct_AR
5962 else
5963 AR="$ac_cv_prog_AR"
5964 fi
5965
5966 if test -n "$ac_tool_prefix"; then
5967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5969 echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5971 if test "${ac_cv_prog_RANLIB+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974 if test -n "$RANLIB"; then
5975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988 done
5989 done
5990
5991 fi
5992 fi
5993 RANLIB=$ac_cv_prog_RANLIB
5994 if test -n "$RANLIB"; then
5995 echo "$as_me:$LINENO: result: $RANLIB" >&5
5996 echo "${ECHO_T}$RANLIB" >&6
5997 else
5998 echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6
6000 fi
6001
6002 fi
6003 if test -z "$ac_cv_prog_RANLIB"; then
6004 ac_ct_RANLIB=$RANLIB
6005 # Extract the first word of "ranlib", so it can be a program name with args.
6006 set dummy ranlib; ac_word=$2
6007 echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012 if test -n "$ac_ct_RANLIB"; then
6013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_ac_ct_RANLIB="ranlib"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026 done
6027 done
6028
6029 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6030 fi
6031 fi
6032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6033 if test -n "$ac_ct_RANLIB"; then
6034 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6035 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6036 else
6037 echo "$as_me:$LINENO: result: no" >&5
6038 echo "${ECHO_T}no" >&6
6039 fi
6040
6041 RANLIB=$ac_ct_RANLIB
6042 else
6043 RANLIB="$ac_cv_prog_RANLIB"
6044 fi
6045
6046 if test -n "$ac_tool_prefix"; then
6047 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}strip; ac_word=$2
6049 echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6051 if test "${ac_cv_prog_STRIP+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 if test -n "$STRIP"; then
6055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068 done
6069 done
6070
6071 fi
6072 fi
6073 STRIP=$ac_cv_prog_STRIP
6074 if test -n "$STRIP"; then
6075 echo "$as_me:$LINENO: result: $STRIP" >&5
6076 echo "${ECHO_T}$STRIP" >&6
6077 else
6078 echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6
6080 fi
6081
6082 fi
6083 if test -z "$ac_cv_prog_STRIP"; then
6084 ac_ct_STRIP=$STRIP
6085 # Extract the first word of "strip", so it can be a program name with args.
6086 set dummy strip; ac_word=$2
6087 echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092 if test -n "$ac_ct_STRIP"; then
6093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_ac_ct_STRIP="strip"
6103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6105 fi
6106 done
6107 done
6108
6109 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6110 fi
6111 fi
6112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6113 if test -n "$ac_ct_STRIP"; then
6114 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6115 echo "${ECHO_T}$ac_ct_STRIP" >&6
6116 else
6117 echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6
6119 fi
6120
6121 STRIP=$ac_ct_STRIP
6122 else
6123 STRIP="$ac_cv_prog_STRIP"
6124 fi
6125
6126
6127 old_CC="$CC"
6128 old_CFLAGS="$CFLAGS"
6129
6130 # Set sane defaults for various variables
6131 test -z "$AR" && AR=ar
6132 test -z "$AR_FLAGS" && AR_FLAGS=cru
6133 test -z "$AS" && AS=as
6134 test -z "$CC" && CC=cc
6135 test -z "$LTCC" && LTCC=$CC
6136 test -z "$DLLTOOL" && DLLTOOL=dlltool
6137 test -z "$LD" && LD=ld
6138 test -z "$LN_S" && LN_S="ln -s"
6139 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6140 test -z "$NM" && NM=nm
6141 test -z "$SED" && SED=sed
6142 test -z "$OBJDUMP" && OBJDUMP=objdump
6143 test -z "$RANLIB" && RANLIB=:
6144 test -z "$STRIP" && STRIP=:
6145 test -z "$ac_objext" && ac_objext=o
6146
6147 # Determine commands to create old-style static archives.
6148 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6149 old_postinstall_cmds='chmod 644 $oldlib'
6150 old_postuninstall_cmds=
6151
6152 if test -n "$RANLIB"; then
6153 case $host_os in
6154 openbsd*)
6155 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6156 ;;
6157 *)
6158 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6159 ;;
6160 esac
6161 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6162 fi
6163
6164 for cc_temp in $compiler""; do
6165 case $cc_temp in
6166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6168 \-*) ;;
6169 *) break;;
6170 esac
6171 done
6172 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6173
6174
6175 # Only perform the check for file, if the check method requires it
6176 case $deplibs_check_method in
6177 file_magic*)
6178 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6179 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6180 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6181 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184 case $MAGIC_CMD in
6185 [\\/*] | ?:[\\/]*)
6186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6187 ;;
6188 *)
6189 lt_save_MAGIC_CMD="$MAGIC_CMD"
6190 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6191 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6192 for ac_dir in $ac_dummy; do
6193 IFS="$lt_save_ifs"
6194 test -z "$ac_dir" && ac_dir=.
6195 if test -f $ac_dir/${ac_tool_prefix}file; then
6196 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6197 if test -n "$file_magic_test_file"; then
6198 case $deplibs_check_method in
6199 "file_magic "*)
6200 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6203 $EGREP "$file_magic_regex" > /dev/null; then
6204 :
6205 else
6206 cat <<EOF 1>&2
6207
6208 *** Warning: the command libtool uses to detect shared libraries,
6209 *** $file_magic_cmd, produces output that libtool cannot recognize.
6210 *** The result is that libtool may fail to recognize shared libraries
6211 *** as such. This will affect the creation of libtool libraries that
6212 *** depend on shared libraries, but programs linked with such libtool
6213 *** libraries will work regardless of this problem. Nevertheless, you
6214 *** may want to report the problem to your system manager and/or to
6215 *** [email protected]
6216
6217 EOF
6218 fi ;;
6219 esac
6220 fi
6221 break
6222 fi
6223 done
6224 IFS="$lt_save_ifs"
6225 MAGIC_CMD="$lt_save_MAGIC_CMD"
6226 ;;
6227 esac
6228 fi
6229
6230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6231 if test -n "$MAGIC_CMD"; then
6232 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6233 echo "${ECHO_T}$MAGIC_CMD" >&6
6234 else
6235 echo "$as_me:$LINENO: result: no" >&5
6236 echo "${ECHO_T}no" >&6
6237 fi
6238
6239 if test -z "$lt_cv_path_MAGIC_CMD"; then
6240 if test -n "$ac_tool_prefix"; then
6241 echo "$as_me:$LINENO: checking for file" >&5
6242 echo $ECHO_N "checking for file... $ECHO_C" >&6
6243 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246 case $MAGIC_CMD in
6247 [\\/*] | ?:[\\/]*)
6248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6249 ;;
6250 *)
6251 lt_save_MAGIC_CMD="$MAGIC_CMD"
6252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6253 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6254 for ac_dir in $ac_dummy; do
6255 IFS="$lt_save_ifs"
6256 test -z "$ac_dir" && ac_dir=.
6257 if test -f $ac_dir/file; then
6258 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6259 if test -n "$file_magic_test_file"; then
6260 case $deplibs_check_method in
6261 "file_magic "*)
6262 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6265 $EGREP "$file_magic_regex" > /dev/null; then
6266 :
6267 else
6268 cat <<EOF 1>&2
6269
6270 *** Warning: the command libtool uses to detect shared libraries,
6271 *** $file_magic_cmd, produces output that libtool cannot recognize.
6272 *** The result is that libtool may fail to recognize shared libraries
6273 *** as such. This will affect the creation of libtool libraries that
6274 *** depend on shared libraries, but programs linked with such libtool
6275 *** libraries will work regardless of this problem. Nevertheless, you
6276 *** may want to report the problem to your system manager and/or to
6277 *** [email protected]
6278
6279 EOF
6280 fi ;;
6281 esac
6282 fi
6283 break
6284 fi
6285 done
6286 IFS="$lt_save_ifs"
6287 MAGIC_CMD="$lt_save_MAGIC_CMD"
6288 ;;
6289 esac
6290 fi
6291
6292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6293 if test -n "$MAGIC_CMD"; then
6294 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6295 echo "${ECHO_T}$MAGIC_CMD" >&6
6296 else
6297 echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6
6299 fi
6300
6301 else
6302 MAGIC_CMD=:
6303 fi
6304 fi
6305
6306 fi
6307 ;;
6308 esac
6309
6310 enable_dlopen=no
6311 enable_win32_dll=no
6312
6313 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6314 if test "${enable_libtool_lock+set}" = set; then
6315 enableval="$enable_libtool_lock"
6316
6317 fi;
6318 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6319
6320
6321 # Check whether --with-pic or --without-pic was given.
6322 if test "${with_pic+set}" = set; then
6323 withval="$with_pic"
6324 pic_mode="$withval"
6325 else
6326 pic_mode=default
6327 fi;
6328 test -z "$pic_mode" && pic_mode=default
6329
6330 # Use C for the default configuration in the libtool script
6331 tagname=
6332 lt_save_CC="$CC"
6333 ac_ext=c
6334 ac_cpp='$CPP $CPPFLAGS'
6335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338
6339
6340 # Source file extension for C test sources.
6341 ac_ext=c
6342
6343 # Object file extension for compiled C test sources.
6344 objext=o
6345 objext=$objext
6346
6347 # Code to be used in simple compile tests
6348 lt_simple_compile_test_code="int some_variable = 0;\n"
6349
6350 # Code to be used in simple link tests
6351 lt_simple_link_test_code='int main(){return(0);}\n'
6352
6353
6354 # If no C compiler was specified, use CC.
6355 LTCC=${LTCC-"$CC"}
6356
6357 # Allow CC to be a program name with arguments.
6358 compiler=$CC
6359
6360
6361 # save warnings/boilerplate of simple test code
6362 ac_outfile=conftest.$ac_objext
6363 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6364 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6365 _lt_compiler_boilerplate=`cat conftest.err`
6366 $rm conftest*
6367
6368 ac_outfile=conftest.$ac_objext
6369 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6370 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6371 _lt_linker_boilerplate=`cat conftest.err`
6372 $rm conftest*
6373
6374
6375 #
6376 # Check for any special shared library compilation flags.
6377 #
6378 lt_prog_cc_shlib=
6379 if test "$GCC" = no; then
6380 case $host_os in
6381 sco3.2v5*)
6382 lt_prog_cc_shlib='-belf'
6383 ;;
6384 esac
6385 fi
6386 if test -n "$lt_prog_cc_shlib"; then
6387 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6388 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6389 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6390 else
6391 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6392 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6393 lt_cv_prog_cc_can_build_shared=no
6394 fi
6395 fi
6396
6397
6398 #
6399 # Check to make sure the static flag actually works.
6400 #
6401 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6402 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6403 if test "${lt_prog_compiler_static_works+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 lt_prog_compiler_static_works=no
6407 save_LDFLAGS="$LDFLAGS"
6408 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6409 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6410 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6411 # The compiler can only warn and ignore the option if not recognized
6412 # So say no if there are warnings
6413 if test -s conftest.err; then
6414 # Append any errors to the config.log.
6415 cat conftest.err 1>&5
6416 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6417 $SED '/^$/d' conftest.err >conftest.er2
6418 if diff conftest.exp conftest.er2 >/dev/null; then
6419 lt_prog_compiler_static_works=yes
6420 fi
6421 else
6422 lt_prog_compiler_static_works=yes
6423 fi
6424 fi
6425 $rm conftest*
6426 LDFLAGS="$save_LDFLAGS"
6427
6428 fi
6429 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6430 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6431
6432 if test x"$lt_prog_compiler_static_works" = xyes; then
6433 :
6434 else
6435 lt_prog_compiler_static=
6436 fi
6437
6438
6439
6440
6441 lt_prog_compiler_no_builtin_flag=
6442
6443 if test "$GCC" = yes; then
6444 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6445
6446
6447 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6448 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6449 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452 lt_cv_prog_compiler_rtti_exceptions=no
6453 ac_outfile=conftest.$ac_objext
6454 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6455 lt_compiler_flag="-fno-rtti -fno-exceptions"
6456 # Insert the option either (1) after the last *FLAGS variable, or
6457 # (2) before a word containing "conftest.", or (3) at the end.
6458 # Note that $ac_compile itself does not contain backslashes and begins
6459 # with a dollar sign (not a hyphen), so the echo should work correctly.
6460 # The option is referenced via a variable to avoid confusing sed.
6461 lt_compile=`echo "$ac_compile" | $SED \
6462 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6464 -e 's:$: $lt_compiler_flag:'`
6465 (eval echo "\"\$as_me:6465: $lt_compile\"" >&5)
6466 (eval "$lt_compile" 2>conftest.err)
6467 ac_status=$?
6468 cat conftest.err >&5
6469 echo "$as_me:6469: \$? = $ac_status" >&5
6470 if (exit $ac_status) && test -s "$ac_outfile"; then
6471 # The compiler can only warn and ignore the option if not recognized
6472 # So say no if there are warnings other than the usual output.
6473 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6474 $SED '/^$/d' conftest.err >conftest.er2
6475 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6476 lt_cv_prog_compiler_rtti_exceptions=yes
6477 fi
6478 fi
6479 $rm conftest*
6480
6481 fi
6482 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6483 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6484
6485 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6486 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6487 else
6488 :
6489 fi
6490
6491 fi
6492
6493 lt_prog_compiler_wl=
6494 lt_prog_compiler_pic=
6495 lt_prog_compiler_static=
6496
6497 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6498 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6499
6500 if test "$GCC" = yes; then
6501 lt_prog_compiler_wl='-Wl,'
6502 lt_prog_compiler_static='-static'
6503
6504 case $host_os in
6505 aix*)
6506 # All AIX code is PIC.
6507 if test "$host_cpu" = ia64; then
6508 # AIX 5 now supports IA64 processor
6509 lt_prog_compiler_static='-Bstatic'
6510 fi
6511 ;;
6512
6513 amigaos*)
6514 # FIXME: we need at least 68020 code to build shared libraries, but
6515 # adding the `-m68020' flag to GCC prevents building anything better,
6516 # like `-m68040'.
6517 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6518 ;;
6519
6520 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6521 # PIC is the default for these OSes.
6522 ;;
6523
6524 mingw* | pw32* | os2*)
6525 # This hack is so that the source file can tell whether it is being
6526 # built for inclusion in a dll (and should export symbols for example).
6527 lt_prog_compiler_pic='-DDLL_EXPORT'
6528 ;;
6529
6530 darwin* | rhapsody*)
6531 # PIC is the default on this platform
6532 # Common symbols not allowed in MH_DYLIB files
6533 lt_prog_compiler_pic='-fno-common'
6534 ;;
6535
6536 msdosdjgpp*)
6537 # Just because we use GCC doesn't mean we suddenly get shared libraries
6538 # on systems that don't support them.
6539 lt_prog_compiler_can_build_shared=no
6540 enable_shared=no
6541 ;;
6542
6543 sysv4*MP*)
6544 if test -d /usr/nec; then
6545 lt_prog_compiler_pic=-Kconform_pic
6546 fi
6547 ;;
6548
6549 hpux*)
6550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6551 # not for PA HP-UX.
6552 case "$host_cpu" in
6553 hppa*64*|ia64*)
6554 # +Z the default
6555 ;;
6556 *)
6557 lt_prog_compiler_pic='-fPIC'
6558 ;;
6559 esac
6560 ;;
6561
6562 *)
6563 lt_prog_compiler_pic='-fPIC'
6564 ;;
6565 esac
6566 else
6567 # PORTME Check for flag to pass linker flags through the system compiler.
6568 case $host_os in
6569 aix*)
6570 lt_prog_compiler_wl='-Wl,'
6571 if test "$host_cpu" = ia64; then
6572 # AIX 5 now supports IA64 processor
6573 lt_prog_compiler_static='-Bstatic'
6574 else
6575 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6576 fi
6577 ;;
6578 darwin*)
6579 # PIC is the default on this platform
6580 # Common symbols not allowed in MH_DYLIB files
6581 case $cc_basename in
6582 xlc*)
6583 lt_prog_compiler_pic='-qnocommon'
6584 lt_prog_compiler_wl='-Wl,'
6585 ;;
6586 esac
6587 ;;
6588
6589 mingw* | pw32* | os2*)
6590 # This hack is so that the source file can tell whether it is being
6591 # built for inclusion in a dll (and should export symbols for example).
6592 lt_prog_compiler_pic='-DDLL_EXPORT'
6593 ;;
6594
6595 hpux9* | hpux10* | hpux11*)
6596 lt_prog_compiler_wl='-Wl,'
6597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6598 # not for PA HP-UX.
6599 case "$host_cpu" in
6600 hppa*64*|ia64*)
6601 # +Z the default
6602 ;;
6603 *)
6604 lt_prog_compiler_pic='+Z'
6605 ;;
6606 esac
6607 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6608 lt_prog_compiler_static='${wl}-a ${wl}archive'
6609 ;;
6610
6611 irix5* | irix6* | nonstopux*)
6612 lt_prog_compiler_wl='-Wl,'
6613 # PIC (with -KPIC) is the default.
6614 lt_prog_compiler_static='-non_shared'
6615 ;;
6616
6617 newsos6)
6618 lt_prog_compiler_pic='-KPIC'
6619 lt_prog_compiler_static='-Bstatic'
6620 ;;
6621
6622 linux*)
6623 case $cc_basename in
6624 icc* | ecc*)
6625 lt_prog_compiler_wl='-Wl,'
6626 lt_prog_compiler_pic='-KPIC'
6627 lt_prog_compiler_static='-static'
6628 ;;
6629 pgcc* | pgf77* | pgf90*)
6630 # Portland Group compilers (*not* the Pentium gcc compiler,
6631 # which looks to be a dead project)
6632 lt_prog_compiler_wl='-Wl,'
6633 lt_prog_compiler_pic='-fpic'
6634 lt_prog_compiler_static='-static'
6635 ;;
6636 ccc*)
6637 lt_prog_compiler_wl='-Wl,'
6638 # All Alpha code is PIC.
6639 lt_prog_compiler_static='-non_shared'
6640 ;;
6641 esac
6642 ;;
6643
6644 osf3* | osf4* | osf5*)
6645 lt_prog_compiler_wl='-Wl,'
6646 # All OSF/1 code is PIC.
6647 lt_prog_compiler_static='-non_shared'
6648 ;;
6649
6650 sco3.2v5*)
6651 lt_prog_compiler_pic='-Kpic'
6652 lt_prog_compiler_static='-dn'
6653 ;;
6654
6655 solaris*)
6656 lt_prog_compiler_pic='-KPIC'
6657 lt_prog_compiler_static='-Bstatic'
6658 case $cc_basename in
6659 f77* | f90* | f95*)
6660 lt_prog_compiler_wl='-Qoption ld ';;
6661 *)
6662 lt_prog_compiler_wl='-Wl,';;
6663 esac
6664 ;;
6665
6666 sunos4*)
6667 lt_prog_compiler_wl='-Qoption ld '
6668 lt_prog_compiler_pic='-PIC'
6669 lt_prog_compiler_static='-Bstatic'
6670 ;;
6671
6672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6673 lt_prog_compiler_wl='-Wl,'
6674 lt_prog_compiler_pic='-KPIC'
6675 lt_prog_compiler_static='-Bstatic'
6676 ;;
6677
6678 sysv4*MP*)
6679 if test -d /usr/nec ;then
6680 lt_prog_compiler_pic='-Kconform_pic'
6681 lt_prog_compiler_static='-Bstatic'
6682 fi
6683 ;;
6684
6685 unicos*)
6686 lt_prog_compiler_wl='-Wl,'
6687 lt_prog_compiler_can_build_shared=no
6688 ;;
6689
6690 uts4*)
6691 lt_prog_compiler_pic='-pic'
6692 lt_prog_compiler_static='-Bstatic'
6693 ;;
6694
6695 *)
6696 lt_prog_compiler_can_build_shared=no
6697 ;;
6698 esac
6699 fi
6700
6701 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6702 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6703
6704 #
6705 # Check to make sure the PIC flag actually works.
6706 #
6707 if test -n "$lt_prog_compiler_pic"; then
6708
6709 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6710 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6711 if test "${lt_prog_compiler_pic_works+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714 lt_prog_compiler_pic_works=no
6715 ac_outfile=conftest.$ac_objext
6716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6717 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6718 # Insert the option either (1) after the last *FLAGS variable, or
6719 # (2) before a word containing "conftest.", or (3) at the end.
6720 # Note that $ac_compile itself does not contain backslashes and begins
6721 # with a dollar sign (not a hyphen), so the echo should work correctly.
6722 # The option is referenced via a variable to avoid confusing sed.
6723 lt_compile=`echo "$ac_compile" | $SED \
6724 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6726 -e 's:$: $lt_compiler_flag:'`
6727 (eval echo "\"\$as_me:6727: $lt_compile\"" >&5)
6728 (eval "$lt_compile" 2>conftest.err)
6729 ac_status=$?
6730 cat conftest.err >&5
6731 echo "$as_me:6731: \$? = $ac_status" >&5
6732 if (exit $ac_status) && test -s "$ac_outfile"; then
6733 # The compiler can only warn and ignore the option if not recognized
6734 # So say no if there are warnings other than the usual output.
6735 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6736 $SED '/^$/d' conftest.err >conftest.er2
6737 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6738 lt_prog_compiler_pic_works=yes
6739 fi
6740 fi
6741 $rm conftest*
6742
6743 fi
6744 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6745 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6746
6747 if test x"$lt_prog_compiler_pic_works" = xyes; then
6748 case $lt_prog_compiler_pic in
6749 "" | " "*) ;;
6750 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6751 esac
6752 else
6753 lt_prog_compiler_pic=
6754 lt_prog_compiler_can_build_shared=no
6755 fi
6756
6757 fi
6758 case "$host_os" in
6759 # For platforms which do not support PIC, -DPIC is meaningless:
6760 *djgpp*)
6761 lt_prog_compiler_pic=
6762 ;;
6763 *)
6764 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6765 ;;
6766 esac
6767
6768 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6769 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6770 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 lt_cv_prog_compiler_c_o=no
6774 $rm -r conftest 2>/dev/null
6775 mkdir conftest
6776 cd conftest
6777 mkdir out
6778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6779
6780 lt_compiler_flag="-o out/conftest2.$ac_objext"
6781 # Insert the option either (1) after the last *FLAGS variable, or
6782 # (2) before a word containing "conftest.", or (3) at the end.
6783 # Note that $ac_compile itself does not contain backslashes and begins
6784 # with a dollar sign (not a hyphen), so the echo should work correctly.
6785 lt_compile=`echo "$ac_compile" | $SED \
6786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6788 -e 's:$: $lt_compiler_flag:'`
6789 (eval echo "\"\$as_me:6789: $lt_compile\"" >&5)
6790 (eval "$lt_compile" 2>out/conftest.err)
6791 ac_status=$?
6792 cat out/conftest.err >&5
6793 echo "$as_me:6793: \$? = $ac_status" >&5
6794 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6795 then
6796 # The compiler can only warn and ignore the option if not recognized
6797 # So say no if there are warnings
6798 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6799 $SED '/^$/d' out/conftest.err >out/conftest.er2
6800 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6801 lt_cv_prog_compiler_c_o=yes
6802 fi
6803 fi
6804 chmod u+w .
6805 $rm conftest*
6806 # SGI C++ compiler will create directory out/ii_files/ for
6807 # template instantiation
6808 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6809 $rm out/* && rmdir out
6810 cd ..
6811 rmdir conftest
6812 $rm conftest*
6813
6814 fi
6815 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6816 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6817
6818
6819 hard_links="nottested"
6820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6821 # do not overwrite the value of need_locks provided by the user
6822 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6823 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6824 hard_links=yes
6825 $rm conftest*
6826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6827 touch conftest.a
6828 ln conftest.a conftest.b 2>&5 || hard_links=no
6829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6830 echo "$as_me:$LINENO: result: $hard_links" >&5
6831 echo "${ECHO_T}$hard_links" >&6
6832 if test "$hard_links" = no; then
6833 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6834 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6835 need_locks=warn
6836 fi
6837 else
6838 need_locks=no
6839 fi
6840
6841 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6842 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6843
6844 runpath_var=
6845 allow_undefined_flag=
6846 enable_shared_with_static_runtimes=no
6847 archive_cmds=
6848 archive_expsym_cmds=
6849 old_archive_From_new_cmds=
6850 old_archive_from_expsyms_cmds=
6851 export_dynamic_flag_spec=
6852 whole_archive_flag_spec=
6853 thread_safe_flag_spec=
6854 hardcode_libdir_flag_spec=
6855 hardcode_libdir_flag_spec_ld=
6856 hardcode_libdir_separator=
6857 hardcode_direct=no
6858 hardcode_minus_L=no
6859 hardcode_shlibpath_var=unsupported
6860 link_all_deplibs=unknown
6861 hardcode_automatic=no
6862 module_cmds=
6863 module_expsym_cmds=
6864 always_export_symbols=no
6865 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6866 # include_expsyms should be a list of space-separated symbols to be *always*
6867 # included in the symbol list
6868 include_expsyms=
6869 # exclude_expsyms can be an extended regexp of symbols to exclude
6870 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6871 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6872 # as well as any symbol that contains `d'.
6873 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6874 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6875 # platforms (ab)use it in PIC code, but their linkers get confused if
6876 # the symbol is explicitly referenced. Since portable code cannot
6877 # rely on this symbol name, it's probably fine to never include it in
6878 # preloaded symbol tables.
6879 extract_expsyms_cmds=
6880 # Just being paranoid about ensuring that cc_basename is set.
6881 for cc_temp in $compiler""; do
6882 case $cc_temp in
6883 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6884 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6885 \-*) ;;
6886 *) break;;
6887 esac
6888 done
6889 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6890
6891 case $host_os in
6892 cygwin* | mingw* | pw32*)
6893 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6894 # When not using gcc, we currently assume that we are using
6895 # Microsoft Visual C++.
6896 if test "$GCC" != yes; then
6897 with_gnu_ld=no
6898 fi
6899 ;;
6900 openbsd*)
6901 with_gnu_ld=no
6902 ;;
6903 esac
6904
6905 ld_shlibs=yes
6906 if test "$with_gnu_ld" = yes; then
6907 # If archive_cmds runs LD, not CC, wlarc should be empty
6908 wlarc='${wl}'
6909
6910 # Set some defaults for GNU ld with shared library support. These
6911 # are reset later if shared libraries are not supported. Putting them
6912 # here allows them to be overridden if necessary.
6913 runpath_var=LD_RUN_PATH
6914 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6915 export_dynamic_flag_spec='${wl}--export-dynamic'
6916 # ancient GNU ld didn't support --whole-archive et. al.
6917 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6918 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6919 else
6920 whole_archive_flag_spec=
6921 fi
6922 supports_anon_versioning=no
6923 case `$LD -v 2>/dev/null` in
6924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6927 *\ 2.11.*) ;; # other 2.11 versions
6928 *) supports_anon_versioning=yes ;;
6929 esac
6930
6931 # See if GNU ld supports shared libraries.
6932 case $host_os in
6933 aix3* | aix4* | aix5*)
6934 # On AIX/PPC, the GNU linker is very broken
6935 if test "$host_cpu" != ia64; then
6936 ld_shlibs=no
6937 cat <<EOF 1>&2
6938
6939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6940 *** to be unable to reliably create shared libraries on AIX.
6941 *** Therefore, libtool is disabling shared libraries support. If you
6942 *** really care for shared libraries, you may want to modify your PATH
6943 *** so that a non-GNU linker is found, and then restart.
6944
6945 EOF
6946 fi
6947 ;;
6948
6949 amigaos*)
6950 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)'
6951 hardcode_libdir_flag_spec='-L$libdir'
6952 hardcode_minus_L=yes
6953
6954 # Samuel A. Falvo II <[email protected]> reports
6955 # that the semantics of dynamic libraries on AmigaOS, at least up
6956 # to version 4, is to share data among multiple programs linked
6957 # with the same dynamic library. Since this doesn't match the
6958 # behavior of shared libraries on other platforms, we can't use
6959 # them.
6960 ld_shlibs=no
6961 ;;
6962
6963 beos*)
6964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6965 allow_undefined_flag=unsupported
6966 # Joseph Beckenbach <[email protected]> says some releases of gcc
6967 # support --undefined. This deserves some investigation. FIXME
6968 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6969 else
6970 ld_shlibs=no
6971 fi
6972 ;;
6973
6974 cygwin* | mingw* | pw32*)
6975 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6976 # as there is no search path for DLLs.
6977 hardcode_libdir_flag_spec='-L$libdir'
6978 allow_undefined_flag=unsupported
6979 always_export_symbols=no
6980 enable_shared_with_static_runtimes=yes
6981 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6982
6983 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6984 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6985 # If the export-symbols file already is a .def file (1st line
6986 # is EXPORTS), use it as is; otherwise, prepend...
6987 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6988 cp $export_symbols $output_objdir/$soname.def;
6989 else
6990 echo EXPORTS > $output_objdir/$soname.def;
6991 cat $export_symbols >> $output_objdir/$soname.def;
6992 fi~
6993 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6994 else
6995 ld_shlibs=no
6996 fi
6997 ;;
6998
6999 linux*)
7000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7001 tmp_addflag=
7002 case $cc_basename,$host_cpu in
7003 pgcc*) # Portland Group C compiler
7004 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7005 tmp_addflag=' $pic_flag'
7006 ;;
7007 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7008 whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7009 tmp_addflag=' $pic_flag -Mnomain' ;;
7010 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7011 tmp_addflag=' -i_dynamic' ;;
7012 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7013 tmp_addflag=' -i_dynamic -nofor_main' ;;
7014 ifc* | ifort*) # Intel Fortran compiler
7015 tmp_addflag=' -nofor_main' ;;
7016 esac
7017 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7018
7019 if test $supports_anon_versioning = yes; then
7020 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7021 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7022 $echo "local: *; };" >> $output_objdir/$libname.ver~
7023 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7024 fi
7025 else
7026 ld_shlibs=no
7027 fi
7028 ;;
7029
7030 netbsd*)
7031 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7032 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7033 wlarc=
7034 else
7035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7037 fi
7038 ;;
7039
7040 solaris* | sysv5*)
7041 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7042 ld_shlibs=no
7043 cat <<EOF 1>&2
7044
7045 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7046 *** create shared libraries on Solaris systems. Therefore, libtool
7047 *** is disabling shared libraries support. We urge you to upgrade GNU
7048 *** binutils to release 2.9.1 or newer. Another option is to modify
7049 *** your PATH or compiler configuration so that the native linker is
7050 *** used, and then restart.
7051
7052 EOF
7053 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7055 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7056 else
7057 ld_shlibs=no
7058 fi
7059 ;;
7060
7061 sunos4*)
7062 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7063 wlarc=
7064 hardcode_direct=yes
7065 hardcode_shlibpath_var=no
7066 ;;
7067
7068 *)
7069 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7071 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7072 else
7073 ld_shlibs=no
7074 fi
7075 ;;
7076 esac
7077
7078 if test "$ld_shlibs" = no; then
7079 runpath_var=
7080 hardcode_libdir_flag_spec=
7081 export_dynamic_flag_spec=
7082 whole_archive_flag_spec=
7083 fi
7084 else
7085 # PORTME fill in a description of your system's linker (not GNU ld)
7086 case $host_os in
7087 aix3*)
7088 allow_undefined_flag=unsupported
7089 always_export_symbols=yes
7090 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'
7091 # Note: this linker hardcodes the directories in LIBPATH if there
7092 # are no directories specified by -L.
7093 hardcode_minus_L=yes
7094 if test "$GCC" = yes && test -z "$link_static_flag"; then
7095 # Neither direct hardcoding nor static linking is supported with a
7096 # broken collect2.
7097 hardcode_direct=unsupported
7098 fi
7099 ;;
7100
7101 aix4* | aix5*)
7102 if test "$host_cpu" = ia64; then
7103 # On IA64, the linker does run time linking by default, so we don't
7104 # have to do anything special.
7105 aix_use_runtimelinking=no
7106 exp_sym_flag='-Bexport'
7107 no_entry_flag=""
7108 else
7109 # If we're using GNU nm, then we don't want the "-C" option.
7110 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7111 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7112 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'
7113 else
7114 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'
7115 fi
7116 aix_use_runtimelinking=no
7117
7118 # Test if we are trying to use run time linking or normal
7119 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7120 # need to do runtime linking.
7121 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7122 for ld_flag in $LDFLAGS; do
7123 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7124 aix_use_runtimelinking=yes
7125 break
7126 fi
7127 done
7128 esac
7129
7130 exp_sym_flag='-bexport'
7131 no_entry_flag='-bnoentry'
7132 fi
7133
7134 # When large executables or shared objects are built, AIX ld can
7135 # have problems creating the table of contents. If linking a library
7136 # or program results in "error TOC overflow" add -mminimal-toc to
7137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7139
7140 archive_cmds=''
7141 hardcode_direct=yes
7142 hardcode_libdir_separator=':'
7143 link_all_deplibs=yes
7144
7145 if test "$GCC" = yes; then
7146 case $host_os in aix4.[012]|aix4.[012].*)
7147 # We only want to do this on AIX 4.2 and lower, the check
7148 # below for broken collect2 doesn't work under 4.3+
7149 collect2name=`${CC} -print-prog-name=collect2`
7150 if test -f "$collect2name" && \
7151 strings "$collect2name" | grep resolve_lib_name >/dev/null
7152 then
7153 # We have reworked collect2
7154 hardcode_direct=yes
7155 else
7156 # We have old collect2
7157 hardcode_direct=unsupported
7158 # It fails to find uninstalled libraries when the uninstalled
7159 # path is not listed in the libpath. Setting hardcode_minus_L
7160 # to unsupported forces relinking
7161 hardcode_minus_L=yes
7162 hardcode_libdir_flag_spec='-L$libdir'
7163 hardcode_libdir_separator=
7164 fi
7165 esac
7166 shared_flag='-shared'
7167 if test "$aix_use_runtimelinking" = yes; then
7168 shared_flag="$shared_flag "'${wl}-G'
7169 fi
7170 else
7171 # not using gcc
7172 if test "$host_cpu" = ia64; then
7173 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7174 # chokes on -Wl,-G. The following line is correct:
7175 shared_flag='-G'
7176 else
7177 if test "$aix_use_runtimelinking" = yes; then
7178 shared_flag='${wl}-G'
7179 else
7180 shared_flag='${wl}-bM:SRE'
7181 fi
7182 fi
7183 fi
7184
7185 # It seems that -bexpall does not export symbols beginning with
7186 # underscore (_), so it is better to generate a list of symbols to export.
7187 always_export_symbols=yes
7188 if test "$aix_use_runtimelinking" = yes; then
7189 # Warning - without using the other runtime loading flags (-brtl),
7190 # -berok will link without error, but may produce a broken library.
7191 allow_undefined_flag='-berok'
7192 # Determine the default libpath from the value encoded in an empty executable.
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199
7200 int
7201 main ()
7202 {
7203
7204 ;
7205 return 0;
7206 }
7207 _ACEOF
7208 rm -f conftest.$ac_objext conftest$ac_exeext
7209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7210 (eval $ac_link) 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } &&
7217 { ac_try='test -z "$ac_c_werror_flag"
7218 || test ! -s conftest.err'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 (eval $ac_try) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; } &&
7224 { ac_try='test -s conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226 (eval $ac_try) 2>&5
7227 ac_status=$?
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230
7231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7232 }'`
7233 # Check for a 64-bit object if we didn't find anything.
7234 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; }
7235 }'`; fi
7236 else
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 fi
7241 rm -f conftest.err conftest.$ac_objext \
7242 conftest$ac_exeext conftest.$ac_ext
7243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7244
7245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7246 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7247 else
7248 if test "$host_cpu" = ia64; then
7249 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7250 allow_undefined_flag="-z nodefs"
7251 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7252 else
7253 # Determine the default libpath from the value encoded in an empty executable.
7254 cat >conftest.$ac_ext <<_ACEOF
7255 /* confdefs.h. */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260
7261 int
7262 main ()
7263 {
7264
7265 ;
7266 return 0;
7267 }
7268 _ACEOF
7269 rm -f conftest.$ac_objext conftest$ac_exeext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7271 (eval $ac_link) 2>conftest.er1
7272 ac_status=$?
7273 grep -v '^ *+' conftest.er1 >conftest.err
7274 rm -f conftest.er1
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try='test -z "$ac_c_werror_flag"
7279 || test ! -s conftest.err'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; } &&
7285 { ac_try='test -s conftest$ac_exeext'
7286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 (eval $ac_try) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291
7292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7293 }'`
7294 # Check for a 64-bit object if we didn't find anything.
7295 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; }
7296 }'`; fi
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 fi
7302 rm -f conftest.err conftest.$ac_objext \
7303 conftest$ac_exeext conftest.$ac_ext
7304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7305
7306 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7307 # Warning - without using the other run time loading flags,
7308 # -berok will link without error, but may produce a broken library.
7309 no_undefined_flag=' ${wl}-bernotok'
7310 allow_undefined_flag=' ${wl}-berok'
7311 # -bexpall does not export symbols beginning with underscore (_)
7312 always_export_symbols=yes
7313 # Exported symbols can be pulled into shared objects from archives
7314 whole_archive_flag_spec=' '
7315 archive_cmds_need_lc=yes
7316 # This is similar to how AIX traditionally builds it's shared libraries.
7317 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7318 fi
7319 fi
7320 ;;
7321
7322 amigaos*)
7323 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)'
7324 hardcode_libdir_flag_spec='-L$libdir'
7325 hardcode_minus_L=yes
7326 # see comment about different semantics on the GNU ld section
7327 ld_shlibs=no
7328 ;;
7329
7330 bsdi[45]*)
7331 export_dynamic_flag_spec=-rdynamic
7332 ;;
7333
7334 cygwin* | mingw* | pw32*)
7335 # When not using gcc, we currently assume that we are using
7336 # Microsoft Visual C++.
7337 # hardcode_libdir_flag_spec is actually meaningless, as there is
7338 # no search path for DLLs.
7339 hardcode_libdir_flag_spec=' '
7340 allow_undefined_flag=unsupported
7341 # Tell ltmain to make .lib files, not .a files.
7342 libext=lib
7343 # Tell ltmain to make .dll files, not .so files.
7344 shrext_cmds=".dll"
7345 # FIXME: Setting linknames here is a bad hack.
7346 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7347 # The linker will automatically build a .lib file if we build a DLL.
7348 old_archive_From_new_cmds='true'
7349 # FIXME: Should let the user specify the lib program.
7350 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7351 fix_srcfile_path='`cygpath -w "$srcfile"`'
7352 enable_shared_with_static_runtimes=yes
7353 ;;
7354
7355 darwin* | rhapsody*)
7356 case "$host_os" in
7357 rhapsody* | darwin1.[012])
7358 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7359 ;;
7360 *) # Darwin 1.3 on
7361 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7362 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7363 else
7364 case ${MACOSX_DEPLOYMENT_TARGET} in
7365 10.[012])
7366 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7367 ;;
7368 10.*)
7369 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7370 ;;
7371 esac
7372 fi
7373 ;;
7374 esac
7375 archive_cmds_need_lc=no
7376 hardcode_direct=no
7377 hardcode_automatic=yes
7378 hardcode_shlibpath_var=unsupported
7379 whole_archive_flag_spec=''
7380 link_all_deplibs=yes
7381 if test "$GCC" = yes ; then
7382 output_verbose_link_cmd='echo'
7383 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7384 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7385 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7386 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7387 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7388 else
7389 case $cc_basename in
7390 xlc*)
7391 output_verbose_link_cmd='echo'
7392 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7393 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7394 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7395 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7396 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7397 ;;
7398 *)
7399 ld_shlibs=no
7400 ;;
7401 esac
7402 fi
7403 ;;
7404
7405 dgux*)
7406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7407 hardcode_libdir_flag_spec='-L$libdir'
7408 hardcode_shlibpath_var=no
7409 ;;
7410
7411 freebsd1*)
7412 ld_shlibs=no
7413 ;;
7414
7415 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7416 # support. Future versions do this automatically, but an explicit c++rt0.o
7417 # does not break anything, and helps significantly (at the cost of a little
7418 # extra space).
7419 freebsd2.2*)
7420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7421 hardcode_libdir_flag_spec='-R$libdir'
7422 hardcode_direct=yes
7423 hardcode_shlibpath_var=no
7424 ;;
7425
7426 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7427 freebsd2*)
7428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7429 hardcode_direct=yes
7430 hardcode_minus_L=yes
7431 hardcode_shlibpath_var=no
7432 ;;
7433
7434 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7435 freebsd* | kfreebsd*-gnu | dragonfly*)
7436 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7437 hardcode_libdir_flag_spec='-R$libdir'
7438 hardcode_direct=yes
7439 hardcode_shlibpath_var=no
7440 ;;
7441
7442 hpux9*)
7443 if test "$GCC" = yes; then
7444 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7445 else
7446 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'
7447 fi
7448 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7449 hardcode_libdir_separator=:
7450 hardcode_direct=yes
7451
7452 # hardcode_minus_L: Not really in the search PATH,
7453 # but as the default location of the library.
7454 hardcode_minus_L=yes
7455 export_dynamic_flag_spec='${wl}-E'
7456 ;;
7457
7458 hpux10* | hpux11*)
7459 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7460 case "$host_cpu" in
7461 hppa*64*|ia64*)
7462 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7463 ;;
7464 *)
7465 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7466 ;;
7467 esac
7468 else
7469 case "$host_cpu" in
7470 hppa*64*|ia64*)
7471 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7472 ;;
7473 *)
7474 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7475 ;;
7476 esac
7477 fi
7478 if test "$with_gnu_ld" = no; then
7479 case "$host_cpu" in
7480 hppa*64*)
7481 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7482 hardcode_libdir_flag_spec_ld='+b $libdir'
7483 hardcode_libdir_separator=:
7484 hardcode_direct=no
7485 hardcode_shlibpath_var=no
7486 ;;
7487 ia64*)
7488 hardcode_libdir_flag_spec='-L$libdir'
7489 hardcode_direct=no
7490 hardcode_shlibpath_var=no
7491
7492 # hardcode_minus_L: Not really in the search PATH,
7493 # but as the default location of the library.
7494 hardcode_minus_L=yes
7495 ;;
7496 *)
7497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7498 hardcode_libdir_separator=:
7499 hardcode_direct=yes
7500 export_dynamic_flag_spec='${wl}-E'
7501
7502 # hardcode_minus_L: Not really in the search PATH,
7503 # but as the default location of the library.
7504 hardcode_minus_L=yes
7505 ;;
7506 esac
7507 fi
7508 ;;
7509
7510 irix5* | irix6* | nonstopux*)
7511 if test "$GCC" = yes; then
7512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7513 else
7514 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'
7515 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7516 fi
7517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7518 hardcode_libdir_separator=:
7519 link_all_deplibs=yes
7520 ;;
7521
7522 netbsd*)
7523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7525 else
7526 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7527 fi
7528 hardcode_libdir_flag_spec='-R$libdir'
7529 hardcode_direct=yes
7530 hardcode_shlibpath_var=no
7531 ;;
7532
7533 newsos6)
7534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7535 hardcode_direct=yes
7536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7537 hardcode_libdir_separator=:
7538 hardcode_shlibpath_var=no
7539 ;;
7540
7541 openbsd*)
7542 hardcode_direct=yes
7543 hardcode_shlibpath_var=no
7544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7546 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7548 export_dynamic_flag_spec='${wl}-E'
7549 else
7550 case $host_os in
7551 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7553 hardcode_libdir_flag_spec='-R$libdir'
7554 ;;
7555 *)
7556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7558 ;;
7559 esac
7560 fi
7561 ;;
7562
7563 os2*)
7564 hardcode_libdir_flag_spec='-L$libdir'
7565 hardcode_minus_L=yes
7566 allow_undefined_flag=unsupported
7567 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7568 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7569 ;;
7570
7571 osf3*)
7572 if test "$GCC" = yes; then
7573 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7574 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7575 else
7576 allow_undefined_flag=' -expect_unresolved \*'
7577 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'
7578 fi
7579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7580 hardcode_libdir_separator=:
7581 ;;
7582
7583 osf4* | osf5*) # as osf3* with the addition of -msym flag
7584 if test "$GCC" = yes; then
7585 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7586 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7588 else
7589 allow_undefined_flag=' -expect_unresolved \*'
7590 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'
7591 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7592 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7593
7594 # Both c and cxx compiler support -rpath directly
7595 hardcode_libdir_flag_spec='-rpath $libdir'
7596 fi
7597 hardcode_libdir_separator=:
7598 ;;
7599
7600 sco3.2v5*)
7601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7602 hardcode_shlibpath_var=no
7603 export_dynamic_flag_spec='${wl}-Bexport'
7604 runpath_var=LD_RUN_PATH
7605 hardcode_runpath_var=yes
7606 ;;
7607
7608 solaris*)
7609 no_undefined_flag=' -z text'
7610 if test "$GCC" = yes; then
7611 wlarc='${wl}'
7612 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7613 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7614 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7615 else
7616 wlarc=''
7617 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7618 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7620 fi
7621 hardcode_libdir_flag_spec='-R$libdir'
7622 hardcode_shlibpath_var=no
7623 case $host_os in
7624 solaris2.[0-5] | solaris2.[0-5].*) ;;
7625 *)
7626 # The compiler driver will combine linker options so we
7627 # cannot just pass the convience library names through
7628 # without $wl, iff we do not link with $LD.
7629 # Luckily, gcc supports the same syntax we need for Sun Studio.
7630 # Supported since Solaris 2.6 (maybe 2.5.1?)
7631 case $wlarc in
7632 '')
7633 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7634 *)
7635 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7636 esac ;;
7637 esac
7638 link_all_deplibs=yes
7639 ;;
7640
7641 sunos4*)
7642 if test "x$host_vendor" = xsequent; then
7643 # Use $CC to link under sequent, because it throws in some extra .o
7644 # files that make .init and .fini sections work.
7645 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7646 else
7647 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7648 fi
7649 hardcode_libdir_flag_spec='-L$libdir'
7650 hardcode_direct=yes
7651 hardcode_minus_L=yes
7652 hardcode_shlibpath_var=no
7653 ;;
7654
7655 sysv4)
7656 case $host_vendor in
7657 sni)
7658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7659 hardcode_direct=yes # is this really true???
7660 ;;
7661 siemens)
7662 ## LD is ld it makes a PLAMLIB
7663 ## CC just makes a GrossModule.
7664 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7665 reload_cmds='$CC -r -o $output$reload_objs'
7666 hardcode_direct=no
7667 ;;
7668 motorola)
7669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7670 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7671 ;;
7672 esac
7673 runpath_var='LD_RUN_PATH'
7674 hardcode_shlibpath_var=no
7675 ;;
7676
7677 sysv4.3*)
7678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7679 hardcode_shlibpath_var=no
7680 export_dynamic_flag_spec='-Bexport'
7681 ;;
7682
7683 sysv4*MP*)
7684 if test -d /usr/nec; then
7685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7686 hardcode_shlibpath_var=no
7687 runpath_var=LD_RUN_PATH
7688 hardcode_runpath_var=yes
7689 ld_shlibs=yes
7690 fi
7691 ;;
7692
7693 sysv4.2uw2*)
7694 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7695 hardcode_direct=yes
7696 hardcode_minus_L=no
7697 hardcode_shlibpath_var=no
7698 hardcode_runpath_var=yes
7699 runpath_var=LD_RUN_PATH
7700 ;;
7701
7702 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7703 no_undefined_flag='${wl}-z ${wl}text'
7704 if test "$GCC" = yes; then
7705 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7706 else
7707 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7708 fi
7709 runpath_var='LD_RUN_PATH'
7710 hardcode_shlibpath_var=no
7711 ;;
7712
7713 sysv5*)
7714 no_undefined_flag=' -z text'
7715 # $CC -shared without GNU ld will not create a library from C++
7716 # object files and a static libstdc++, better avoid it by now
7717 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7718 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7719 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7720 hardcode_libdir_flag_spec=
7721 hardcode_shlibpath_var=no
7722 runpath_var='LD_RUN_PATH'
7723 ;;
7724
7725 uts4*)
7726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7727 hardcode_libdir_flag_spec='-L$libdir'
7728 hardcode_shlibpath_var=no
7729 ;;
7730
7731 *)
7732 ld_shlibs=no
7733 ;;
7734 esac
7735 fi
7736
7737 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7738 echo "${ECHO_T}$ld_shlibs" >&6
7739 test "$ld_shlibs" = no && can_build_shared=no
7740
7741 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7742 if test "$GCC" = yes; then
7743 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7744 fi
7745
7746 #
7747 # Do we need to explicitly link libc?
7748 #
7749 case "x$archive_cmds_need_lc" in
7750 x|xyes)
7751 # Assume -lc should be added
7752 archive_cmds_need_lc=yes
7753
7754 if test "$enable_shared" = yes && test "$GCC" = yes; then
7755 case $archive_cmds in
7756 *'~'*)
7757 # FIXME: we may have to deal with multi-command sequences.
7758 ;;
7759 '$CC '*)
7760 # Test whether the compiler implicitly links with -lc since on some
7761 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7762 # to ld, don't add -lc before -lgcc.
7763 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7764 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7765 $rm conftest*
7766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7767
7768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7769 (eval $ac_compile) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } 2>conftest.err; then
7773 soname=conftest
7774 lib=conftest
7775 libobjs=conftest.$ac_objext
7776 deplibs=
7777 wl=$lt_prog_compiler_wl
7778 compiler_flags=-v
7779 linker_flags=-v
7780 verstring=
7781 output_objdir=.
7782 libname=conftest
7783 lt_save_allow_undefined_flag=$allow_undefined_flag
7784 allow_undefined_flag=
7785 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7786 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }
7790 then
7791 archive_cmds_need_lc=no
7792 else
7793 archive_cmds_need_lc=yes
7794 fi
7795 allow_undefined_flag=$lt_save_allow_undefined_flag
7796 else
7797 cat conftest.err 1>&5
7798 fi
7799 $rm conftest*
7800 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7801 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7802 ;;
7803 esac
7804 fi
7805 ;;
7806 esac
7807
7808 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7809 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7810 library_names_spec=
7811 libname_spec='lib$name'
7812 soname_spec=
7813 shrext_cmds=".so"
7814 postinstall_cmds=
7815 postuninstall_cmds=
7816 finish_cmds=
7817 finish_eval=
7818 shlibpath_var=
7819 shlibpath_overrides_runpath=unknown
7820 version_type=none
7821 dynamic_linker="$host_os ld.so"
7822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7823 if test "$GCC" = yes; then
7824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7825 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7826 # if the path contains ";" then we assume it to be the separator
7827 # otherwise default to the standard path separator (i.e. ":") - it is
7828 # assumed that no part of a normal pathname contains ";" but that should
7829 # okay in the real world where ";" in dirpaths is itself problematic.
7830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7831 else
7832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7833 fi
7834 else
7835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7836 fi
7837 need_lib_prefix=unknown
7838 hardcode_into_libs=no
7839
7840 # when you set need_version to no, make sure it does not cause -set_version
7841 # flags to be left without arguments
7842 need_version=unknown
7843
7844 case $host_os in
7845 aix3*)
7846 version_type=linux
7847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7848 shlibpath_var=LIBPATH
7849
7850 # AIX 3 has no versioning support, so we append a major version to the name.
7851 soname_spec='${libname}${release}${shared_ext}$major'
7852 ;;
7853
7854 aix4* | aix5*)
7855 version_type=linux
7856 need_lib_prefix=no
7857 need_version=no
7858 hardcode_into_libs=yes
7859 if test "$host_cpu" = ia64; then
7860 # AIX 5 supports IA64
7861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7862 shlibpath_var=LD_LIBRARY_PATH
7863 else
7864 # With GCC up to 2.95.x, collect2 would create an import file
7865 # for dependence libraries. The import file would start with
7866 # the line `#! .'. This would cause the generated library to
7867 # depend on `.', always an invalid library. This was fixed in
7868 # development snapshots of GCC prior to 3.0.
7869 case $host_os in
7870 aix4 | aix4.[01] | aix4.[01].*)
7871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7872 echo ' yes '
7873 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7874 :
7875 else
7876 can_build_shared=no
7877 fi
7878 ;;
7879 esac
7880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7881 # soname into executable. Probably we can add versioning support to
7882 # collect2, so additional links can be useful in future.
7883 if test "$aix_use_runtimelinking" = yes; then
7884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7885 # instead of lib<name>.a to let people know that these are not
7886 # typical AIX shared libraries.
7887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888 else
7889 # We preserve .a as extension for shared libraries through AIX4.2
7890 # and later when we are not doing run time linking.
7891 library_names_spec='${libname}${release}.a $libname.a'
7892 soname_spec='${libname}${release}${shared_ext}$major'
7893 fi
7894 shlibpath_var=LIBPATH
7895 fi
7896 ;;
7897
7898 amigaos*)
7899 library_names_spec='$libname.ixlibrary $libname.a'
7900 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7901 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'
7902 ;;
7903
7904 beos*)
7905 library_names_spec='${libname}${shared_ext}'
7906 dynamic_linker="$host_os ld.so"
7907 shlibpath_var=LIBRARY_PATH
7908 ;;
7909
7910 bsdi[45]*)
7911 version_type=linux
7912 need_version=no
7913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914 soname_spec='${libname}${release}${shared_ext}$major'
7915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7916 shlibpath_var=LD_LIBRARY_PATH
7917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7919 # the default ld.so.conf also contains /usr/contrib/lib and
7920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7921 # libtool to hard-code these into programs
7922 ;;
7923
7924 cygwin* | mingw* | pw32*)
7925 version_type=windows
7926 shrext_cmds=".dll"
7927 need_version=no
7928 need_lib_prefix=no
7929
7930 case $GCC,$host_os in
7931 yes,cygwin* | yes,mingw* | yes,pw32*)
7932 library_names_spec='$libname.dll.a'
7933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7934 postinstall_cmds='base_file=`basename \${file}`~
7935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7936 dldir=$destdir/`dirname \$dlpath`~
7937 test -d \$dldir || mkdir -p \$dldir~
7938 $install_prog $dir/$dlname \$dldir/$dlname'
7939 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7940 dlpath=$dir/\$dldll~
7941 $rm \$dlpath'
7942 shlibpath_overrides_runpath=yes
7943
7944 case $host_os in
7945 cygwin*)
7946 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7947 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7948 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7949 ;;
7950 mingw*)
7951 # MinGW DLLs use traditional 'lib' prefix
7952 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7953 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7954 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7955 # It is most probably a Windows format PATH printed by
7956 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7957 # path with ; separators, and with drive letters. We can handle the
7958 # drive letters (cygwin fileutils understands them), so leave them,
7959 # especially as we might pass files found there to a mingw objdump,
7960 # which wouldn't understand a cygwinified path. Ahh.
7961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7962 else
7963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7964 fi
7965 ;;
7966 pw32*)
7967 # pw32 DLLs use 'pw' prefix rather than 'lib'
7968 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7969 ;;
7970 esac
7971 ;;
7972
7973 *)
7974 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7975 ;;
7976 esac
7977 dynamic_linker='Win32 ld.exe'
7978 # FIXME: first we should search . and the directory the executable is in
7979 shlibpath_var=PATH
7980 ;;
7981
7982 darwin* | rhapsody*)
7983 dynamic_linker="$host_os dyld"
7984 version_type=darwin
7985 need_lib_prefix=no
7986 need_version=no
7987 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7988 soname_spec='${libname}${release}${major}$shared_ext'
7989 shlibpath_overrides_runpath=yes
7990 shlibpath_var=DYLD_LIBRARY_PATH
7991 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7992 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7993 if test "$GCC" = yes; then
7994 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"`
7995 else
7996 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7997 fi
7998 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7999 ;;
8000
8001 dgux*)
8002 version_type=linux
8003 need_lib_prefix=no
8004 need_version=no
8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8006 soname_spec='${libname}${release}${shared_ext}$major'
8007 shlibpath_var=LD_LIBRARY_PATH
8008 ;;
8009
8010 freebsd1*)
8011 dynamic_linker=no
8012 ;;
8013
8014 kfreebsd*-gnu)
8015 version_type=linux
8016 need_lib_prefix=no
8017 need_version=no
8018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8019 soname_spec='${libname}${release}${shared_ext}$major'
8020 shlibpath_var=LD_LIBRARY_PATH
8021 shlibpath_overrides_runpath=no
8022 hardcode_into_libs=yes
8023 dynamic_linker='GNU ld.so'
8024 ;;
8025
8026 freebsd* | dragonfly*)
8027 # DragonFly does not have aout. When/if they implement a new
8028 # versioning mechanism, adjust this.
8029 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8030 version_type=freebsd-$objformat
8031 case $version_type in
8032 freebsd-elf*)
8033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8034 need_version=no
8035 need_lib_prefix=no
8036 ;;
8037 freebsd-*)
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8039 need_version=yes
8040 ;;
8041 esac
8042 shlibpath_var=LD_LIBRARY_PATH
8043 case $host_os in
8044 freebsd2*)
8045 shlibpath_overrides_runpath=yes
8046 ;;
8047 freebsd3.[01]* | freebsdelf3.[01]*)
8048 shlibpath_overrides_runpath=yes
8049 hardcode_into_libs=yes
8050 ;;
8051 *) # from 3.2 on
8052 shlibpath_overrides_runpath=no
8053 hardcode_into_libs=yes
8054 ;;
8055 esac
8056 ;;
8057
8058 gnu*)
8059 version_type=linux
8060 need_lib_prefix=no
8061 need_version=no
8062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8063 soname_spec='${libname}${release}${shared_ext}$major'
8064 shlibpath_var=LD_LIBRARY_PATH
8065 hardcode_into_libs=yes
8066 ;;
8067
8068 hpux9* | hpux10* | hpux11*)
8069 # Give a soname corresponding to the major version so that dld.sl refuses to
8070 # link against other versions.
8071 version_type=sunos
8072 need_lib_prefix=no
8073 need_version=no
8074 case "$host_cpu" in
8075 ia64*)
8076 shrext_cmds='.so'
8077 hardcode_into_libs=yes
8078 dynamic_linker="$host_os dld.so"
8079 shlibpath_var=LD_LIBRARY_PATH
8080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8082 soname_spec='${libname}${release}${shared_ext}$major'
8083 if test "X$HPUX_IA64_MODE" = X32; then
8084 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8085 else
8086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8087 fi
8088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8089 ;;
8090 hppa*64*)
8091 shrext_cmds='.sl'
8092 hardcode_into_libs=yes
8093 dynamic_linker="$host_os dld.sl"
8094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8097 soname_spec='${libname}${release}${shared_ext}$major'
8098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8100 ;;
8101 *)
8102 shrext_cmds='.sl'
8103 dynamic_linker="$host_os dld.sl"
8104 shlibpath_var=SHLIB_PATH
8105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8107 soname_spec='${libname}${release}${shared_ext}$major'
8108 ;;
8109 esac
8110 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8111 postinstall_cmds='chmod 555 $lib'
8112 ;;
8113
8114 irix5* | irix6* | nonstopux*)
8115 case $host_os in
8116 nonstopux*) version_type=nonstopux ;;
8117 *)
8118 if test "$lt_cv_prog_gnu_ld" = yes; then
8119 version_type=linux
8120 else
8121 version_type=irix
8122 fi ;;
8123 esac
8124 need_lib_prefix=no
8125 need_version=no
8126 soname_spec='${libname}${release}${shared_ext}$major'
8127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8128 case $host_os in
8129 irix5* | nonstopux*)
8130 libsuff= shlibsuff=
8131 ;;
8132 *)
8133 case $LD in # libtool.m4 will add one of these switches to LD
8134 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8135 libsuff= shlibsuff= libmagic=32-bit;;
8136 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8137 libsuff=32 shlibsuff=N32 libmagic=N32;;
8138 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8139 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8140 *) libsuff= shlibsuff= libmagic=never-match;;
8141 esac
8142 ;;
8143 esac
8144 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8145 shlibpath_overrides_runpath=no
8146 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8147 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8148 hardcode_into_libs=yes
8149 ;;
8150
8151 # No shared lib support for Linux oldld, aout, or coff.
8152 linux*oldld* | linux*aout* | linux*coff*)
8153 dynamic_linker=no
8154 ;;
8155
8156 # This must be Linux ELF.
8157 linux*)
8158 version_type=linux
8159 need_lib_prefix=no
8160 need_version=no
8161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8162 soname_spec='${libname}${release}${shared_ext}$major'
8163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8164 shlibpath_var=LD_LIBRARY_PATH
8165 shlibpath_overrides_runpath=no
8166 # This implies no fast_install, which is unacceptable.
8167 # Some rework will be needed to allow for fast_install
8168 # before this can be enabled.
8169 hardcode_into_libs=yes
8170
8171 # Append ld.so.conf contents to the search path
8172 if test -f /etc/ld.so.conf; then
8173 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8174 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8175 fi
8176
8177 # We used to test for /lib/ld.so.1 and disable shared libraries on
8178 # powerpc, because MkLinux only supported shared libraries with the
8179 # GNU dynamic linker. Since this was broken with cross compilers,
8180 # most powerpc-linux boxes support dynamic linking these days and
8181 # people can always --disable-shared, the test was removed, and we
8182 # assume the GNU/Linux dynamic linker is in use.
8183 dynamic_linker='GNU/Linux ld.so'
8184 ;;
8185
8186 knetbsd*-gnu)
8187 version_type=linux
8188 need_lib_prefix=no
8189 need_version=no
8190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8191 soname_spec='${libname}${release}${shared_ext}$major'
8192 shlibpath_var=LD_LIBRARY_PATH
8193 shlibpath_overrides_runpath=no
8194 hardcode_into_libs=yes
8195 dynamic_linker='GNU ld.so'
8196 ;;
8197
8198 netbsd*)
8199 version_type=sunos
8200 need_lib_prefix=no
8201 need_version=no
8202 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8205 dynamic_linker='NetBSD (a.out) ld.so'
8206 else
8207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8208 soname_spec='${libname}${release}${shared_ext}$major'
8209 dynamic_linker='NetBSD ld.elf_so'
8210 fi
8211 shlibpath_var=LD_LIBRARY_PATH
8212 shlibpath_overrides_runpath=yes
8213 hardcode_into_libs=yes
8214 ;;
8215
8216 newsos6)
8217 version_type=linux
8218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8219 shlibpath_var=LD_LIBRARY_PATH
8220 shlibpath_overrides_runpath=yes
8221 ;;
8222
8223 nto-qnx*)
8224 version_type=linux
8225 need_lib_prefix=no
8226 need_version=no
8227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228 soname_spec='${libname}${release}${shared_ext}$major'
8229 shlibpath_var=LD_LIBRARY_PATH
8230 shlibpath_overrides_runpath=yes
8231 ;;
8232
8233 openbsd*)
8234 version_type=sunos
8235 need_lib_prefix=no
8236 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8237 case $host_os in
8238 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8239 *) need_version=no ;;
8240 esac
8241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8243 shlibpath_var=LD_LIBRARY_PATH
8244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8245 case $host_os in
8246 openbsd2.[89] | openbsd2.[89].*)
8247 shlibpath_overrides_runpath=no
8248 ;;
8249 *)
8250 shlibpath_overrides_runpath=yes
8251 ;;
8252 esac
8253 else
8254 shlibpath_overrides_runpath=yes
8255 fi
8256 ;;
8257
8258 os2*)
8259 libname_spec='$name'
8260 shrext_cmds=".dll"
8261 need_lib_prefix=no
8262 library_names_spec='$libname${shared_ext} $libname.a'
8263 dynamic_linker='OS/2 ld.exe'
8264 shlibpath_var=LIBPATH
8265 ;;
8266
8267 osf3* | osf4* | osf5*)
8268 version_type=osf
8269 need_lib_prefix=no
8270 need_version=no
8271 soname_spec='${libname}${release}${shared_ext}$major'
8272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8273 shlibpath_var=LD_LIBRARY_PATH
8274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8276 ;;
8277
8278 sco3.2v5*)
8279 version_type=osf
8280 soname_spec='${libname}${release}${shared_ext}$major'
8281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8282 shlibpath_var=LD_LIBRARY_PATH
8283 ;;
8284
8285 solaris*)
8286 version_type=linux
8287 need_lib_prefix=no
8288 need_version=no
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290 soname_spec='${libname}${release}${shared_ext}$major'
8291 shlibpath_var=LD_LIBRARY_PATH
8292 shlibpath_overrides_runpath=yes
8293 hardcode_into_libs=yes
8294 # ldd complains unless libraries are executable
8295 postinstall_cmds='chmod +x $lib'
8296 ;;
8297
8298 sunos4*)
8299 version_type=sunos
8300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8302 shlibpath_var=LD_LIBRARY_PATH
8303 shlibpath_overrides_runpath=yes
8304 if test "$with_gnu_ld" = yes; then
8305 need_lib_prefix=no
8306 fi
8307 need_version=yes
8308 ;;
8309
8310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8311 version_type=linux
8312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8313 soname_spec='${libname}${release}${shared_ext}$major'
8314 shlibpath_var=LD_LIBRARY_PATH
8315 case $host_vendor in
8316 sni)
8317 shlibpath_overrides_runpath=no
8318 need_lib_prefix=no
8319 export_dynamic_flag_spec='${wl}-Blargedynsym'
8320 runpath_var=LD_RUN_PATH
8321 ;;
8322 siemens)
8323 need_lib_prefix=no
8324 ;;
8325 motorola)
8326 need_lib_prefix=no
8327 need_version=no
8328 shlibpath_overrides_runpath=no
8329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8330 ;;
8331 esac
8332 ;;
8333
8334 sysv4*MP*)
8335 if test -d /usr/nec ;then
8336 version_type=linux
8337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8338 soname_spec='$libname${shared_ext}.$major'
8339 shlibpath_var=LD_LIBRARY_PATH
8340 fi
8341 ;;
8342
8343 uts4*)
8344 version_type=linux
8345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346 soname_spec='${libname}${release}${shared_ext}$major'
8347 shlibpath_var=LD_LIBRARY_PATH
8348 ;;
8349
8350 *)
8351 dynamic_linker=no
8352 ;;
8353 esac
8354 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8355 echo "${ECHO_T}$dynamic_linker" >&6
8356 test "$dynamic_linker" = no && can_build_shared=no
8357
8358 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8359 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8360 hardcode_action=
8361 if test -n "$hardcode_libdir_flag_spec" || \
8362 test -n "$runpath_var" || \
8363 test "X$hardcode_automatic" = "Xyes" ; then
8364
8365 # We can hardcode non-existant directories.
8366 if test "$hardcode_direct" != no &&
8367 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8368 # have to relink, otherwise we might link with an installed library
8369 # when we should be linking with a yet-to-be-installed one
8370 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8371 test "$hardcode_minus_L" != no; then
8372 # Linking always hardcodes the temporary library directory.
8373 hardcode_action=relink
8374 else
8375 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8376 hardcode_action=immediate
8377 fi
8378 else
8379 # We cannot hardcode anything, or else we can only hardcode existing
8380 # directories.
8381 hardcode_action=unsupported
8382 fi
8383 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8384 echo "${ECHO_T}$hardcode_action" >&6
8385
8386 if test "$hardcode_action" = relink; then
8387 # Fast installation is not supported
8388 enable_fast_install=no
8389 elif test "$shlibpath_overrides_runpath" = yes ||
8390 test "$enable_shared" = no; then
8391 # Fast installation is not necessary
8392 enable_fast_install=needless
8393 fi
8394
8395 striplib=
8396 old_striplib=
8397 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8398 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8399 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8400 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8401 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8402 echo "$as_me:$LINENO: result: yes" >&5
8403 echo "${ECHO_T}yes" >&6
8404 else
8405 # FIXME - insert some real tests, host_os isn't really good enough
8406 case $host_os in
8407 darwin*)
8408 if test -n "$STRIP" ; then
8409 striplib="$STRIP -x"
8410 echo "$as_me:$LINENO: result: yes" >&5
8411 echo "${ECHO_T}yes" >&6
8412 else
8413 echo "$as_me:$LINENO: result: no" >&5
8414 echo "${ECHO_T}no" >&6
8415 fi
8416 ;;
8417 *)
8418 echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6
8420 ;;
8421 esac
8422 fi
8423
8424 if test "x$enable_dlopen" != xyes; then
8425 enable_dlopen=unknown
8426 enable_dlopen_self=unknown
8427 enable_dlopen_self_static=unknown
8428 else
8429 lt_cv_dlopen=no
8430 lt_cv_dlopen_libs=
8431
8432 case $host_os in
8433 beos*)
8434 lt_cv_dlopen="load_add_on"
8435 lt_cv_dlopen_libs=
8436 lt_cv_dlopen_self=yes
8437 ;;
8438
8439 mingw* | pw32*)
8440 lt_cv_dlopen="LoadLibrary"
8441 lt_cv_dlopen_libs=
8442 ;;
8443
8444 cygwin*)
8445 lt_cv_dlopen="dlopen"
8446 lt_cv_dlopen_libs=
8447 ;;
8448
8449 darwin*)
8450 # if libdl is installed we need to link against it
8451 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8452 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8453 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456 ac_check_lib_save_LIBS=$LIBS
8457 LIBS="-ldl $LIBS"
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464
8465 /* Override any gcc2 internal prototype to avoid an error. */
8466 #ifdef __cplusplus
8467 extern "C"
8468 #endif
8469 /* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */
8471 char dlopen ();
8472 int
8473 main ()
8474 {
8475 dlopen ();
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -z "$ac_c_werror_flag"
8490 || test ! -s conftest.err'
8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 (eval $ac_try) 2>&5
8493 ac_status=$?
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); }; } &&
8496 { ac_try='test -s conftest$ac_exeext'
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; }; then
8502 ac_cv_lib_dl_dlopen=yes
8503 else
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 ac_cv_lib_dl_dlopen=no
8508 fi
8509 rm -f conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 LIBS=$ac_check_lib_save_LIBS
8512 fi
8513 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8514 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8515 if test $ac_cv_lib_dl_dlopen = yes; then
8516 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8517 else
8518
8519 lt_cv_dlopen="dyld"
8520 lt_cv_dlopen_libs=
8521 lt_cv_dlopen_self=yes
8522
8523 fi
8524
8525 ;;
8526
8527 *)
8528 echo "$as_me:$LINENO: checking for shl_load" >&5
8529 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8530 if test "${ac_cv_func_shl_load+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533 cat >conftest.$ac_ext <<_ACEOF
8534 /* confdefs.h. */
8535 _ACEOF
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8539 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8541 #define shl_load innocuous_shl_load
8542
8543 /* System header to define __stub macros and hopefully few prototypes,
8544 which can conflict with char shl_load (); below.
8545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8546 <limits.h> exists even on freestanding compilers. */
8547
8548 #ifdef __STDC__
8549 # include <limits.h>
8550 #else
8551 # include <assert.h>
8552 #endif
8553
8554 #undef shl_load
8555
8556 /* Override any gcc2 internal prototype to avoid an error. */
8557 #ifdef __cplusplus
8558 extern "C"
8559 {
8560 #endif
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8563 char shl_load ();
8564 /* The GNU C library defines this for functions which it implements
8565 to always fail with ENOSYS. Some functions are actually named
8566 something starting with __ and the normal name is an alias. */
8567 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8568 choke me
8569 #else
8570 char (*f) () = shl_load;
8571 #endif
8572 #ifdef __cplusplus
8573 }
8574 #endif
8575
8576 int
8577 main ()
8578 {
8579 return f != shl_load;
8580 ;
8581 return 0;
8582 }
8583 _ACEOF
8584 rm -f conftest.$ac_objext conftest$ac_exeext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586 (eval $ac_link) 2>conftest.er1
8587 ac_status=$?
8588 grep -v '^ *+' conftest.er1 >conftest.err
8589 rm -f conftest.er1
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); } &&
8593 { ac_try='test -z "$ac_c_werror_flag"
8594 || test ! -s conftest.err'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 (eval $ac_try) 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_cv_func_shl_load=yes
8607 else
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 ac_cv_func_shl_load=no
8612 fi
8613 rm -f conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8615 fi
8616 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8617 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8618 if test $ac_cv_func_shl_load = yes; then
8619 lt_cv_dlopen="shl_load"
8620 else
8621 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8622 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 ac_check_lib_save_LIBS=$LIBS
8627 LIBS="-ldld $LIBS"
8628 cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h. */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634
8635 /* Override any gcc2 internal prototype to avoid an error. */
8636 #ifdef __cplusplus
8637 extern "C"
8638 #endif
8639 /* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8641 char shl_load ();
8642 int
8643 main ()
8644 {
8645 shl_load ();
8646 ;
8647 return 0;
8648 }
8649 _ACEOF
8650 rm -f conftest.$ac_objext conftest$ac_exeext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8652 (eval $ac_link) 2>conftest.er1
8653 ac_status=$?
8654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -z "$ac_c_werror_flag"
8660 || test ! -s conftest.err'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest$ac_exeext'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_cv_lib_dld_shl_load=yes
8673 else
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677 ac_cv_lib_dld_shl_load=no
8678 fi
8679 rm -f conftest.err conftest.$ac_objext \
8680 conftest$ac_exeext conftest.$ac_ext
8681 LIBS=$ac_check_lib_save_LIBS
8682 fi
8683 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8684 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8685 if test $ac_cv_lib_dld_shl_load = yes; then
8686 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8687 else
8688 echo "$as_me:$LINENO: checking for dlopen" >&5
8689 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8690 if test "${ac_cv_func_dlopen+set}" = set; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693 cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h. */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8701 #define dlopen innocuous_dlopen
8702
8703 /* System header to define __stub macros and hopefully few prototypes,
8704 which can conflict with char dlopen (); below.
8705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8706 <limits.h> exists even on freestanding compilers. */
8707
8708 #ifdef __STDC__
8709 # include <limits.h>
8710 #else
8711 # include <assert.h>
8712 #endif
8713
8714 #undef dlopen
8715
8716 /* Override any gcc2 internal prototype to avoid an error. */
8717 #ifdef __cplusplus
8718 extern "C"
8719 {
8720 #endif
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8723 char dlopen ();
8724 /* The GNU C library defines this for functions which it implements
8725 to always fail with ENOSYS. Some functions are actually named
8726 something starting with __ and the normal name is an alias. */
8727 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8728 choke me
8729 #else
8730 char (*f) () = dlopen;
8731 #endif
8732 #ifdef __cplusplus
8733 }
8734 #endif
8735
8736 int
8737 main ()
8738 {
8739 return f != dlopen;
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag"
8754 || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_func_dlopen=yes
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 ac_cv_func_dlopen=no
8772 fi
8773 rm -f conftest.err conftest.$ac_objext \
8774 conftest$ac_exeext conftest.$ac_ext
8775 fi
8776 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8777 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8778 if test $ac_cv_func_dlopen = yes; then
8779 lt_cv_dlopen="dlopen"
8780 else
8781 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8782 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 ac_check_lib_save_LIBS=$LIBS
8787 LIBS="-ldl $LIBS"
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794
8795 /* Override any gcc2 internal prototype to avoid an error. */
8796 #ifdef __cplusplus
8797 extern "C"
8798 #endif
8799 /* We use char because int might match the return type of a gcc2
8800 builtin and then its argument prototype would still apply. */
8801 char dlopen ();
8802 int
8803 main ()
8804 {
8805 dlopen ();
8806 ;
8807 return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -z "$ac_c_werror_flag"
8820 || test ! -s conftest.err'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest$ac_exeext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_cv_lib_dl_dlopen=yes
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 ac_cv_lib_dl_dlopen=no
8838 fi
8839 rm -f conftest.err conftest.$ac_objext \
8840 conftest$ac_exeext conftest.$ac_ext
8841 LIBS=$ac_check_lib_save_LIBS
8842 fi
8843 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8844 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8845 if test $ac_cv_lib_dl_dlopen = yes; then
8846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8847 else
8848 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8849 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8850 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lsvld $LIBS"
8855 cat >conftest.$ac_ext <<_ACEOF
8856 /* confdefs.h. */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h. */
8861
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 #ifdef __cplusplus
8864 extern "C"
8865 #endif
8866 /* We use char because int might match the return type of a gcc2
8867 builtin and then its argument prototype would still apply. */
8868 char dlopen ();
8869 int
8870 main ()
8871 {
8872 dlopen ();
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 rm -f conftest.$ac_objext conftest$ac_exeext
8878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8879 (eval $ac_link) 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
8886 { ac_try='test -z "$ac_c_werror_flag"
8887 || test ! -s conftest.err'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8889 (eval $ac_try) 2>&5
8890 ac_status=$?
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; } &&
8893 { ac_try='test -s conftest$ac_exeext'
8894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 (eval $ac_try) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); }; }; then
8899 ac_cv_lib_svld_dlopen=yes
8900 else
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8903
8904 ac_cv_lib_svld_dlopen=no
8905 fi
8906 rm -f conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908 LIBS=$ac_check_lib_save_LIBS
8909 fi
8910 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8911 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8912 if test $ac_cv_lib_svld_dlopen = yes; then
8913 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8914 else
8915 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8916 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8917 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 ac_check_lib_save_LIBS=$LIBS
8921 LIBS="-ldld $LIBS"
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928
8929 /* Override any gcc2 internal prototype to avoid an error. */
8930 #ifdef __cplusplus
8931 extern "C"
8932 #endif
8933 /* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8935 char dld_link ();
8936 int
8937 main ()
8938 {
8939 dld_link ();
8940 ;
8941 return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag"
8954 || test ! -s conftest.err'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_cv_lib_dld_dld_link=yes
8967 else
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971 ac_cv_lib_dld_dld_link=no
8972 fi
8973 rm -f conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8975 LIBS=$ac_check_lib_save_LIBS
8976 fi
8977 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8978 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8979 if test $ac_cv_lib_dld_dld_link = yes; then
8980 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8981 fi
8982
8983
8984 fi
8985
8986
8987 fi
8988
8989
8990 fi
8991
8992
8993 fi
8994
8995
8996 fi
8997
8998 ;;
8999 esac
9000
9001 if test "x$lt_cv_dlopen" != xno; then
9002 enable_dlopen=yes
9003 else
9004 enable_dlopen=no
9005 fi
9006
9007 case $lt_cv_dlopen in
9008 dlopen)
9009 save_CPPFLAGS="$CPPFLAGS"
9010 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9011
9012 save_LDFLAGS="$LDFLAGS"
9013 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9014
9015 save_LIBS="$LIBS"
9016 LIBS="$lt_cv_dlopen_libs $LIBS"
9017
9018 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9019 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9020 if test "${lt_cv_dlopen_self+set}" = set; then
9021 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 else
9023 if test "$cross_compiling" = yes; then :
9024 lt_cv_dlopen_self=cross
9025 else
9026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9027 lt_status=$lt_dlunknown
9028 cat > conftest.$ac_ext <<EOF
9029 #line 9029 "configure"
9030 #include "confdefs.h"
9031
9032 #if HAVE_DLFCN_H
9033 #include <dlfcn.h>
9034 #endif
9035
9036 #include <stdio.h>
9037
9038 #ifdef RTLD_GLOBAL
9039 # define LT_DLGLOBAL RTLD_GLOBAL
9040 #else
9041 # ifdef DL_GLOBAL
9042 # define LT_DLGLOBAL DL_GLOBAL
9043 # else
9044 # define LT_DLGLOBAL 0
9045 # endif
9046 #endif
9047
9048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9049 find out it does not work in some platform. */
9050 #ifndef LT_DLLAZY_OR_NOW
9051 # ifdef RTLD_LAZY
9052 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9053 # else
9054 # ifdef DL_LAZY
9055 # define LT_DLLAZY_OR_NOW DL_LAZY
9056 # else
9057 # ifdef RTLD_NOW
9058 # define LT_DLLAZY_OR_NOW RTLD_NOW
9059 # else
9060 # ifdef DL_NOW
9061 # define LT_DLLAZY_OR_NOW DL_NOW
9062 # else
9063 # define LT_DLLAZY_OR_NOW 0
9064 # endif
9065 # endif
9066 # endif
9067 # endif
9068 #endif
9069
9070 #ifdef __cplusplus
9071 extern "C" void exit (int);
9072 #endif
9073
9074 void fnord() { int i=42;}
9075 int main ()
9076 {
9077 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9078 int status = $lt_dlunknown;
9079
9080 if (self)
9081 {
9082 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9083 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9084 /* dlclose (self); */
9085 }
9086
9087 exit (status);
9088 }
9089 EOF
9090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9091 (eval $ac_link) 2>&5
9092 ac_status=$?
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9095 (./conftest; exit; ) 2>/dev/null
9096 lt_status=$?
9097 case x$lt_status in
9098 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9099 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9100 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9101 esac
9102 else :
9103 # compilation failed
9104 lt_cv_dlopen_self=no
9105 fi
9106 fi
9107 rm -fr conftest*
9108
9109
9110 fi
9111 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9112 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9113
9114 if test "x$lt_cv_dlopen_self" = xyes; then
9115 LDFLAGS="$LDFLAGS $link_static_flag"
9116 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9117 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9118 if test "${lt_cv_dlopen_self_static+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121 if test "$cross_compiling" = yes; then :
9122 lt_cv_dlopen_self_static=cross
9123 else
9124 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9125 lt_status=$lt_dlunknown
9126 cat > conftest.$ac_ext <<EOF
9127 #line 9127 "configure"
9128 #include "confdefs.h"
9129
9130 #if HAVE_DLFCN_H
9131 #include <dlfcn.h>
9132 #endif
9133
9134 #include <stdio.h>
9135
9136 #ifdef RTLD_GLOBAL
9137 # define LT_DLGLOBAL RTLD_GLOBAL
9138 #else
9139 # ifdef DL_GLOBAL
9140 # define LT_DLGLOBAL DL_GLOBAL
9141 # else
9142 # define LT_DLGLOBAL 0
9143 # endif
9144 #endif
9145
9146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9147 find out it does not work in some platform. */
9148 #ifndef LT_DLLAZY_OR_NOW
9149 # ifdef RTLD_LAZY
9150 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9151 # else
9152 # ifdef DL_LAZY
9153 # define LT_DLLAZY_OR_NOW DL_LAZY
9154 # else
9155 # ifdef RTLD_NOW
9156 # define LT_DLLAZY_OR_NOW RTLD_NOW
9157 # else
9158 # ifdef DL_NOW
9159 # define LT_DLLAZY_OR_NOW DL_NOW
9160 # else
9161 # define LT_DLLAZY_OR_NOW 0
9162 # endif
9163 # endif
9164 # endif
9165 # endif
9166 #endif
9167
9168 #ifdef __cplusplus
9169 extern "C" void exit (int);
9170 #endif
9171
9172 void fnord() { int i=42;}
9173 int main ()
9174 {
9175 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9176 int status = $lt_dlunknown;
9177
9178 if (self)
9179 {
9180 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9181 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9182 /* dlclose (self); */
9183 }
9184
9185 exit (status);
9186 }
9187 EOF
9188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189 (eval $ac_link) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9193 (./conftest; exit; ) 2>/dev/null
9194 lt_status=$?
9195 case x$lt_status in
9196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9198 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9199 esac
9200 else :
9201 # compilation failed
9202 lt_cv_dlopen_self_static=no
9203 fi
9204 fi
9205 rm -fr conftest*
9206
9207
9208 fi
9209 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9210 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9211 fi
9212
9213 CPPFLAGS="$save_CPPFLAGS"
9214 LDFLAGS="$save_LDFLAGS"
9215 LIBS="$save_LIBS"
9216 ;;
9217 esac
9218
9219 case $lt_cv_dlopen_self in
9220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9221 *) enable_dlopen_self=unknown ;;
9222 esac
9223
9224 case $lt_cv_dlopen_self_static in
9225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9226 *) enable_dlopen_self_static=unknown ;;
9227 esac
9228 fi
9229
9230
9231 # Report which librarie types wil actually be built
9232 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9233 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9234 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9235 echo "${ECHO_T}$can_build_shared" >&6
9236
9237 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9238 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9239 test "$can_build_shared" = "no" && enable_shared=no
9240
9241 # On AIX, shared libraries and static libraries use the same namespace, and
9242 # are all built from PIC.
9243 case "$host_os" in
9244 aix3*)
9245 test "$enable_shared" = yes && enable_static=no
9246 if test -n "$RANLIB"; then
9247 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9248 postinstall_cmds='$RANLIB $lib'
9249 fi
9250 ;;
9251
9252 aix4* | aix5*)
9253 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9254 test "$enable_shared" = yes && enable_static=no
9255 fi
9256 ;;
9257 esac
9258 echo "$as_me:$LINENO: result: $enable_shared" >&5
9259 echo "${ECHO_T}$enable_shared" >&6
9260
9261 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9262 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9263 # Make sure either enable_shared or enable_static is yes.
9264 test "$enable_shared" = yes || enable_static=yes
9265 echo "$as_me:$LINENO: result: $enable_static" >&5
9266 echo "${ECHO_T}$enable_static" >&6
9267
9268 # The else clause should only fire when bootstrapping the
9269 # libtool distribution, otherwise you forgot to ship ltmain.sh
9270 # with your package, and you will get complaints that there are
9271 # no rules to generate ltmain.sh.
9272 if test -f "$ltmain"; then
9273 # See if we are running on zsh, and set the options which allow our commands through
9274 # without removal of \ escapes.
9275 if test -n "${ZSH_VERSION+set}" ; then
9276 setopt NO_GLOB_SUBST
9277 fi
9278 # Now quote all the things that may contain metacharacters while being
9279 # careful not to overquote the AC_SUBSTed values. We take copies of the
9280 # variables and quote the copies for generation of the libtool script.
9281 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9282 SED SHELL STRIP \
9283 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9284 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9285 deplibs_check_method reload_flag reload_cmds need_locks \
9286 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9287 lt_cv_sys_global_symbol_to_c_name_address \
9288 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9289 old_postinstall_cmds old_postuninstall_cmds \
9290 compiler \
9291 CC \
9292 LD \
9293 lt_prog_compiler_wl \
9294 lt_prog_compiler_pic \
9295 lt_prog_compiler_static \
9296 lt_prog_compiler_no_builtin_flag \
9297 export_dynamic_flag_spec \
9298 thread_safe_flag_spec \
9299 whole_archive_flag_spec \
9300 enable_shared_with_static_runtimes \
9301 old_archive_cmds \
9302 old_archive_from_new_cmds \
9303 predep_objects \
9304 postdep_objects \
9305 predeps \
9306 postdeps \
9307 compiler_lib_search_path \
9308 archive_cmds \
9309 archive_expsym_cmds \
9310 postinstall_cmds \
9311 postuninstall_cmds \
9312 old_archive_from_expsyms_cmds \
9313 allow_undefined_flag \
9314 no_undefined_flag \
9315 export_symbols_cmds \
9316 hardcode_libdir_flag_spec \
9317 hardcode_libdir_flag_spec_ld \
9318 hardcode_libdir_separator \
9319 hardcode_automatic \
9320 module_cmds \
9321 module_expsym_cmds \
9322 lt_cv_prog_compiler_c_o \
9323 exclude_expsyms \
9324 include_expsyms; do
9325
9326 case $var in
9327 old_archive_cmds | \
9328 old_archive_from_new_cmds | \
9329 archive_cmds | \
9330 archive_expsym_cmds | \
9331 module_cmds | \
9332 module_expsym_cmds | \
9333 old_archive_from_expsyms_cmds | \
9334 export_symbols_cmds | \
9335 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9336 postinstall_cmds | postuninstall_cmds | \
9337 old_postinstall_cmds | old_postuninstall_cmds | \
9338 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9339 # Double-quote double-evaled strings.
9340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9341 ;;
9342 *)
9343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9344 ;;
9345 esac
9346 done
9347
9348 case $lt_echo in
9349 *'\$0 --fallback-echo"')
9350 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9351 ;;
9352 esac
9353
9354 cfgfile="${ofile}T"
9355 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9356 $rm -f "$cfgfile"
9357 { echo "$as_me:$LINENO: creating $ofile" >&5
9358 echo "$as_me: creating $ofile" >&6;}
9359
9360 cat <<__EOF__ >> "$cfgfile"
9361 #! $SHELL
9362
9363 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9364 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9365 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9366 #
9367 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9368 # Free Software Foundation, Inc.
9369 #
9370 # This file is part of GNU Libtool:
9371 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9372 #
9373 # This program is free software; you can redistribute it and/or modify
9374 # it under the terms of the GNU General Public License as published by
9375 # the Free Software Foundation; either version 2 of the License, or
9376 # (at your option) any later version.
9377 #
9378 # This program is distributed in the hope that it will be useful, but
9379 # WITHOUT ANY WARRANTY; without even the implied warranty of
9380 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9381 # General Public License for more details.
9382 #
9383 # You should have received a copy of the GNU General Public License
9384 # along with this program; if not, write to the Free Software
9385 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9386 #
9387 # As a special exception to the GNU General Public License, if you
9388 # distribute this file as part of a program that contains a
9389 # configuration script generated by Autoconf, you may include it under
9390 # the same distribution terms that you use for the rest of that program.
9391
9392 # A sed program that does not truncate output.
9393 SED=$lt_SED
9394
9395 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9396 Xsed="$SED -e 1s/^X//"
9397
9398 # The HP-UX ksh and POSIX shell print the target directory to stdout
9399 # if CDPATH is set.
9400 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9401
9402 # The names of the tagged configurations supported by this script.
9403 available_tags=
9404
9405 # ### BEGIN LIBTOOL CONFIG
9406
9407 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9408
9409 # Shell to use when invoking shell scripts.
9410 SHELL=$lt_SHELL
9411
9412 # Whether or not to build shared libraries.
9413 build_libtool_libs=$enable_shared
9414
9415 # Whether or not to build static libraries.
9416 build_old_libs=$enable_static
9417
9418 # Whether or not to add -lc for building shared libraries.
9419 build_libtool_need_lc=$archive_cmds_need_lc
9420
9421 # Whether or not to disallow shared libs when runtime libs are static
9422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9423
9424 # Whether or not to optimize for fast installation.
9425 fast_install=$enable_fast_install
9426
9427 # The host system.
9428 host_alias=$host_alias
9429 host=$host
9430 host_os=$host_os
9431
9432 # The build system.
9433 build_alias=$build_alias
9434 build=$build
9435 build_os=$build_os
9436
9437 # An echo program that does not interpret backslashes.
9438 echo=$lt_echo
9439
9440 # The archiver.
9441 AR=$lt_AR
9442 AR_FLAGS=$lt_AR_FLAGS
9443
9444 # A C compiler.
9445 LTCC=$lt_LTCC
9446
9447 # A language-specific compiler.
9448 CC=$lt_compiler
9449
9450 # Is the compiler the GNU C compiler?
9451 with_gcc=$GCC
9452
9453 # An ERE matcher.
9454 EGREP=$lt_EGREP
9455
9456 # The linker used to build libraries.
9457 LD=$lt_LD
9458
9459 # Whether we need hard or soft links.
9460 LN_S=$lt_LN_S
9461
9462 # A BSD-compatible nm program.
9463 NM=$lt_NM
9464
9465 # A symbol stripping program
9466 STRIP=$lt_STRIP
9467
9468 # Used to examine libraries when file_magic_cmd begins "file"
9469 MAGIC_CMD=$MAGIC_CMD
9470
9471 # Used on cygwin: DLL creation program.
9472 DLLTOOL="$DLLTOOL"
9473
9474 # Used on cygwin: object dumper.
9475 OBJDUMP="$OBJDUMP"
9476
9477 # Used on cygwin: assembler.
9478 AS="$AS"
9479
9480 # The name of the directory that contains temporary libtool files.
9481 objdir=$objdir
9482
9483 # How to create reloadable object files.
9484 reload_flag=$lt_reload_flag
9485 reload_cmds=$lt_reload_cmds
9486
9487 # How to pass a linker flag through the compiler.
9488 wl=$lt_lt_prog_compiler_wl
9489
9490 # Object file suffix (normally "o").
9491 objext="$ac_objext"
9492
9493 # Old archive suffix (normally "a").
9494 libext="$libext"
9495
9496 # Shared library suffix (normally ".so").
9497 shrext_cmds='$shrext_cmds'
9498
9499 # Executable file suffix (normally "").
9500 exeext="$exeext"
9501
9502 # Additional compiler flags for building library objects.
9503 pic_flag=$lt_lt_prog_compiler_pic
9504 pic_mode=$pic_mode
9505
9506 # What is the maximum length of a command?
9507 max_cmd_len=$lt_cv_sys_max_cmd_len
9508
9509 # Does compiler simultaneously support -c and -o options?
9510 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9511
9512 # Must we lock files when doing compilation?
9513 need_locks=$lt_need_locks
9514
9515 # Do we need the lib prefix for modules?
9516 need_lib_prefix=$need_lib_prefix
9517
9518 # Do we need a version for libraries?
9519 need_version=$need_version
9520
9521 # Whether dlopen is supported.
9522 dlopen_support=$enable_dlopen
9523
9524 # Whether dlopen of programs is supported.
9525 dlopen_self=$enable_dlopen_self
9526
9527 # Whether dlopen of statically linked programs is supported.
9528 dlopen_self_static=$enable_dlopen_self_static
9529
9530 # Compiler flag to prevent dynamic linking.
9531 link_static_flag=$lt_lt_prog_compiler_static
9532
9533 # Compiler flag to turn off builtin functions.
9534 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9535
9536 # Compiler flag to allow reflexive dlopens.
9537 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9538
9539 # Compiler flag to generate shared objects directly from archives.
9540 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9541
9542 # Compiler flag to generate thread-safe objects.
9543 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9544
9545 # Library versioning type.
9546 version_type=$version_type
9547
9548 # Format of library name prefix.
9549 libname_spec=$lt_libname_spec
9550
9551 # List of archive names. First name is the real one, the rest are links.
9552 # The last name is the one that the linker finds with -lNAME.
9553 library_names_spec=$lt_library_names_spec
9554
9555 # The coded name of the library, if different from the real name.
9556 soname_spec=$lt_soname_spec
9557
9558 # Commands used to build and install an old-style archive.
9559 RANLIB=$lt_RANLIB
9560 old_archive_cmds=$lt_old_archive_cmds
9561 old_postinstall_cmds=$lt_old_postinstall_cmds
9562 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9563
9564 # Create an old-style archive from a shared archive.
9565 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9566
9567 # Create a temporary old-style archive to link instead of a shared archive.
9568 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9569
9570 # Commands used to build and install a shared archive.
9571 archive_cmds=$lt_archive_cmds
9572 archive_expsym_cmds=$lt_archive_expsym_cmds
9573 postinstall_cmds=$lt_postinstall_cmds
9574 postuninstall_cmds=$lt_postuninstall_cmds
9575
9576 # Commands used to build a loadable module (assumed same as above if empty)
9577 module_cmds=$lt_module_cmds
9578 module_expsym_cmds=$lt_module_expsym_cmds
9579
9580 # Commands to strip libraries.
9581 old_striplib=$lt_old_striplib
9582 striplib=$lt_striplib
9583
9584 # Dependencies to place before the objects being linked to create a
9585 # shared library.
9586 predep_objects=$lt_predep_objects
9587
9588 # Dependencies to place after the objects being linked to create a
9589 # shared library.
9590 postdep_objects=$lt_postdep_objects
9591
9592 # Dependencies to place before the objects being linked to create a
9593 # shared library.
9594 predeps=$lt_predeps
9595
9596 # Dependencies to place after the objects being linked to create a
9597 # shared library.
9598 postdeps=$lt_postdeps
9599
9600 # The library search path used internally by the compiler when linking
9601 # a shared library.
9602 compiler_lib_search_path=$lt_compiler_lib_search_path
9603
9604 # Method to check whether dependent libraries are shared objects.
9605 deplibs_check_method=$lt_deplibs_check_method
9606
9607 # Command to use when deplibs_check_method == file_magic.
9608 file_magic_cmd=$lt_file_magic_cmd
9609
9610 # Flag that allows shared libraries with undefined symbols to be built.
9611 allow_undefined_flag=$lt_allow_undefined_flag
9612
9613 # Flag that forces no undefined symbols.
9614 no_undefined_flag=$lt_no_undefined_flag
9615
9616 # Commands used to finish a libtool library installation in a directory.
9617 finish_cmds=$lt_finish_cmds
9618
9619 # Same as above, but a single script fragment to be evaled but not shown.
9620 finish_eval=$lt_finish_eval
9621
9622 # Take the output of nm and produce a listing of raw symbols and C names.
9623 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9624
9625 # Transform the output of nm in a proper C declaration
9626 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9627
9628 # Transform the output of nm in a C name address pair
9629 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9630
9631 # This is the shared library runtime path variable.
9632 runpath_var=$runpath_var
9633
9634 # This is the shared library path variable.
9635 shlibpath_var=$shlibpath_var
9636
9637 # Is shlibpath searched before the hard-coded library search path?
9638 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9639
9640 # How to hardcode a shared library path into an executable.
9641 hardcode_action=$hardcode_action
9642
9643 # Whether we should hardcode library paths into libraries.
9644 hardcode_into_libs=$hardcode_into_libs
9645
9646 # Flag to hardcode \$libdir into a binary during linking.
9647 # This must work even if \$libdir does not exist.
9648 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9649
9650 # If ld is used when linking, flag to hardcode \$libdir into
9651 # a binary during linking. This must work even if \$libdir does
9652 # not exist.
9653 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9654
9655 # Whether we need a single -rpath flag with a separated argument.
9656 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9657
9658 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9659 # resulting binary.
9660 hardcode_direct=$hardcode_direct
9661
9662 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9663 # resulting binary.
9664 hardcode_minus_L=$hardcode_minus_L
9665
9666 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9667 # the resulting binary.
9668 hardcode_shlibpath_var=$hardcode_shlibpath_var
9669
9670 # Set to yes if building a shared library automatically hardcodes DIR into the library
9671 # and all subsequent libraries and executables linked against it.
9672 hardcode_automatic=$hardcode_automatic
9673
9674 # Variables whose values should be saved in libtool wrapper scripts and
9675 # restored at relink time.
9676 variables_saved_for_relink="$variables_saved_for_relink"
9677
9678 # Whether libtool must link a program against all its dependency libraries.
9679 link_all_deplibs=$link_all_deplibs
9680
9681 # Compile-time system search path for libraries
9682 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9683
9684 # Run-time system search path for libraries
9685 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9686
9687 # Fix the shell variable \$srcfile for the compiler.
9688 fix_srcfile_path="$fix_srcfile_path"
9689
9690 # Set to yes if exported symbols are required.
9691 always_export_symbols=$always_export_symbols
9692
9693 # The commands to list exported symbols.
9694 export_symbols_cmds=$lt_export_symbols_cmds
9695
9696 # The commands to extract the exported symbol list from a shared archive.
9697 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9698
9699 # Symbols that should not be listed in the preloaded symbols.
9700 exclude_expsyms=$lt_exclude_expsyms
9701
9702 # Symbols that must always be exported.
9703 include_expsyms=$lt_include_expsyms
9704
9705 # ### END LIBTOOL CONFIG
9706
9707 __EOF__
9708
9709
9710 case $host_os in
9711 aix3*)
9712 cat <<\EOF >> "$cfgfile"
9713
9714 # AIX sometimes has problems with the GCC collect2 program. For some
9715 # reason, if we set the COLLECT_NAMES environment variable, the problems
9716 # vanish in a puff of smoke.
9717 if test "X${COLLECT_NAMES+set}" != Xset; then
9718 COLLECT_NAMES=
9719 export COLLECT_NAMES
9720 fi
9721 EOF
9722 ;;
9723 esac
9724
9725 # We use sed instead of cat because bash on DJGPP gets confused if
9726 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9727 # text mode, it properly converts lines to CR/LF. This bash problem
9728 # is reportedly fixed, but why not run on old versions too?
9729 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9730
9731 mv -f "$cfgfile" "$ofile" || \
9732 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9733 chmod +x "$ofile"
9734
9735 else
9736 # If there is no Makefile yet, we rely on a make rule to execute
9737 # `config.status --recheck' to rerun these tests and create the
9738 # libtool script then.
9739 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9740 if test -f "$ltmain_in"; then
9741 test -f Makefile && make "$ltmain"
9742 fi
9743 fi
9744
9745
9746 ac_ext=c
9747 ac_cpp='$CPP $CPPFLAGS'
9748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9751
9752 CC="$lt_save_CC"
9753
9754
9755 # Check whether --with-tags or --without-tags was given.
9756 if test "${with_tags+set}" = set; then
9757 withval="$with_tags"
9758 tagnames="$withval"
9759 fi;
9760
9761 if test -f "$ltmain" && test -n "$tagnames"; then
9762 if test ! -f "${ofile}"; then
9763 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9764 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9765 fi
9766
9767 if test -z "$LTCC"; then
9768 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9769 if test -z "$LTCC"; then
9770 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9771 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9772 else
9773 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9774 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9775 fi
9776 fi
9777
9778 # Extract list of available tagged configurations in $ofile.
9779 # Note that this assumes the entire list is on one line.
9780 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9781
9782 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9783 for tagname in $tagnames; do
9784 IFS="$lt_save_ifs"
9785 # Check whether tagname contains only valid characters
9786 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9787 "") ;;
9788 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9789 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9790 { (exit 1); exit 1; }; }
9791 ;;
9792 esac
9793
9794 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9795 then
9796 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9797 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9798 { (exit 1); exit 1; }; }
9799 fi
9800
9801 # Update the list of available tags.
9802 if test -n "$tagname"; then
9803 echo appending configuration tag \"$tagname\" to $ofile
9804
9805 case $tagname in
9806 CXX)
9807 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9808 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9809 (test "X$CXX" != "Xg++"))) ; then
9810 ac_ext=cc
9811 ac_cpp='$CXXCPP $CPPFLAGS'
9812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9815
9816
9817
9818
9819 archive_cmds_need_lc_CXX=no
9820 allow_undefined_flag_CXX=
9821 always_export_symbols_CXX=no
9822 archive_expsym_cmds_CXX=
9823 export_dynamic_flag_spec_CXX=
9824 hardcode_direct_CXX=no
9825 hardcode_libdir_flag_spec_CXX=
9826 hardcode_libdir_flag_spec_ld_CXX=
9827 hardcode_libdir_separator_CXX=
9828 hardcode_minus_L_CXX=no
9829 hardcode_automatic_CXX=no
9830 module_cmds_CXX=
9831 module_expsym_cmds_CXX=
9832 link_all_deplibs_CXX=unknown
9833 old_archive_cmds_CXX=$old_archive_cmds
9834 no_undefined_flag_CXX=
9835 whole_archive_flag_spec_CXX=
9836 enable_shared_with_static_runtimes_CXX=no
9837
9838 # Dependencies to place before and after the object being linked:
9839 predep_objects_CXX=
9840 postdep_objects_CXX=
9841 predeps_CXX=
9842 postdeps_CXX=
9843 compiler_lib_search_path_CXX=
9844
9845 # Source file extension for C++ test sources.
9846 ac_ext=cc
9847
9848 # Object file extension for compiled C++ test sources.
9849 objext=o
9850 objext_CXX=$objext
9851
9852 # Code to be used in simple compile tests
9853 lt_simple_compile_test_code="int some_variable = 0;\n"
9854
9855 # Code to be used in simple link tests
9856 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9857
9858 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9859
9860 # If no C compiler was specified, use CC.
9861 LTCC=${LTCC-"$CC"}
9862
9863 # Allow CC to be a program name with arguments.
9864 compiler=$CC
9865
9866
9867 # save warnings/boilerplate of simple test code
9868 ac_outfile=conftest.$ac_objext
9869 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9870 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9871 _lt_compiler_boilerplate=`cat conftest.err`
9872 $rm conftest*
9873
9874 ac_outfile=conftest.$ac_objext
9875 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9876 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9877 _lt_linker_boilerplate=`cat conftest.err`
9878 $rm conftest*
9879
9880
9881 # Allow CC to be a program name with arguments.
9882 lt_save_CC=$CC
9883 lt_save_LD=$LD
9884 lt_save_GCC=$GCC
9885 GCC=$GXX
9886 lt_save_with_gnu_ld=$with_gnu_ld
9887 lt_save_path_LD=$lt_cv_path_LD
9888 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9889 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9890 else
9891 unset lt_cv_prog_gnu_ld
9892 fi
9893 if test -n "${lt_cv_path_LDCXX+set}"; then
9894 lt_cv_path_LD=$lt_cv_path_LDCXX
9895 else
9896 unset lt_cv_path_LD
9897 fi
9898 test -z "${LDCXX+set}" || LD=$LDCXX
9899 CC=${CXX-"c++"}
9900 compiler=$CC
9901 compiler_CXX=$CC
9902 for cc_temp in $compiler""; do
9903 case $cc_temp in
9904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9906 \-*) ;;
9907 *) break;;
9908 esac
9909 done
9910 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9911
9912
9913 # We don't want -fno-exception wen compiling C++ code, so set the
9914 # no_builtin_flag separately
9915 if test "$GXX" = yes; then
9916 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9917 else
9918 lt_prog_compiler_no_builtin_flag_CXX=
9919 fi
9920
9921 if test "$GXX" = yes; then
9922 # Set up default GNU C++ configuration
9923
9924
9925 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9926 if test "${with_gnu_ld+set}" = set; then
9927 withval="$with_gnu_ld"
9928 test "$withval" = no || with_gnu_ld=yes
9929 else
9930 with_gnu_ld=no
9931 fi;
9932 ac_prog=ld
9933 if test "$GCC" = yes; then
9934 # Check if gcc -print-prog-name=ld gives a path.
9935 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9936 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9937 case $host in
9938 *-*-mingw*)
9939 # gcc leaves a trailing carriage return which upsets mingw
9940 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9941 *)
9942 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9943 esac
9944 case $ac_prog in
9945 # Accept absolute paths.
9946 [\\/]* | ?:[\\/]*)
9947 re_direlt='/[^/][^/]*/\.\./'
9948 # Canonicalize the pathname of ld
9949 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9950 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9951 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9952 done
9953 test -z "$LD" && LD="$ac_prog"
9954 ;;
9955 "")
9956 # If it fails, then pretend we aren't using GCC.
9957 ac_prog=ld
9958 ;;
9959 *)
9960 # If it is relative, then search for the first ld in PATH.
9961 with_gnu_ld=unknown
9962 ;;
9963 esac
9964 elif test "$with_gnu_ld" = yes; then
9965 echo "$as_me:$LINENO: checking for GNU ld" >&5
9966 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9967 else
9968 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9969 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9970 fi
9971 if test "${lt_cv_path_LD+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974 if test -z "$LD"; then
9975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9976 for ac_dir in $PATH; do
9977 IFS="$lt_save_ifs"
9978 test -z "$ac_dir" && ac_dir=.
9979 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9980 lt_cv_path_LD="$ac_dir/$ac_prog"
9981 # Check to see if the program is GNU ld. I'd rather use --version,
9982 # but apparently some GNU ld's only accept -v.
9983 # Break only if it was the GNU/non-GNU ld that we prefer.
9984 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9985 *GNU* | *'with BFD'*)
9986 test "$with_gnu_ld" != no && break
9987 ;;
9988 *)
9989 test "$with_gnu_ld" != yes && break
9990 ;;
9991 esac
9992 fi
9993 done
9994 IFS="$lt_save_ifs"
9995 else
9996 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9997 fi
9998 fi
9999
10000 LD="$lt_cv_path_LD"
10001 if test -n "$LD"; then
10002 echo "$as_me:$LINENO: result: $LD" >&5
10003 echo "${ECHO_T}$LD" >&6
10004 else
10005 echo "$as_me:$LINENO: result: no" >&5
10006 echo "${ECHO_T}no" >&6
10007 fi
10008 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10009 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10010 { (exit 1); exit 1; }; }
10011 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10012 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10013 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10017 case `$LD -v 2>&1 </dev/null` in
10018 *GNU* | *'with BFD'*)
10019 lt_cv_prog_gnu_ld=yes
10020 ;;
10021 *)
10022 lt_cv_prog_gnu_ld=no
10023 ;;
10024 esac
10025 fi
10026 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10027 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10028 with_gnu_ld=$lt_cv_prog_gnu_ld
10029
10030
10031
10032 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10033 # archiving commands below assume that GNU ld is being used.
10034 if test "$with_gnu_ld" = yes; then
10035 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10036 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10037
10038 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10039 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10040
10041 # If archive_cmds runs LD, not CC, wlarc should be empty
10042 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10043 # investigate it a little bit more. (MM)
10044 wlarc='${wl}'
10045
10046 # ancient GNU ld didn't support --whole-archive et. al.
10047 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10048 grep 'no-whole-archive' > /dev/null; then
10049 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10050 else
10051 whole_archive_flag_spec_CXX=
10052 fi
10053 else
10054 with_gnu_ld=no
10055 wlarc=
10056
10057 # A generic and very simple default shared library creation
10058 # command for GNU C++ for the case where it uses the native
10059 # linker, instead of GNU ld. If possible, this setting should
10060 # overridden to take advantage of the native linker features on
10061 # the platform it is being used on.
10062 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10063 fi
10064
10065 # Commands to make compiler produce verbose output that lists
10066 # what "hidden" libraries, object files and flags are used when
10067 # linking a shared library.
10068 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10069
10070 else
10071 GXX=no
10072 with_gnu_ld=no
10073 wlarc=
10074 fi
10075
10076 # PORTME: fill in a description of your system's C++ link characteristics
10077 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10078 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10079 ld_shlibs_CXX=yes
10080 case $host_os in
10081 aix3*)
10082 # FIXME: insert proper C++ library support
10083 ld_shlibs_CXX=no
10084 ;;
10085 aix4* | aix5*)
10086 if test "$host_cpu" = ia64; then
10087 # On IA64, the linker does run time linking by default, so we don't
10088 # have to do anything special.
10089 aix_use_runtimelinking=no
10090 exp_sym_flag='-Bexport'
10091 no_entry_flag=""
10092 else
10093 aix_use_runtimelinking=no
10094
10095 # Test if we are trying to use run time linking or normal
10096 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10097 # need to do runtime linking.
10098 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10099 for ld_flag in $LDFLAGS; do
10100 case $ld_flag in
10101 *-brtl*)
10102 aix_use_runtimelinking=yes
10103 break
10104 ;;
10105 esac
10106 done
10107 esac
10108
10109 exp_sym_flag='-bexport'
10110 no_entry_flag='-bnoentry'
10111 fi
10112
10113 # When large executables or shared objects are built, AIX ld can
10114 # have problems creating the table of contents. If linking a library
10115 # or program results in "error TOC overflow" add -mminimal-toc to
10116 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10117 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10118
10119 archive_cmds_CXX=''
10120 hardcode_direct_CXX=yes
10121 hardcode_libdir_separator_CXX=':'
10122 link_all_deplibs_CXX=yes
10123
10124 if test "$GXX" = yes; then
10125 case $host_os in aix4.[012]|aix4.[012].*)
10126 # We only want to do this on AIX 4.2 and lower, the check
10127 # below for broken collect2 doesn't work under 4.3+
10128 collect2name=`${CC} -print-prog-name=collect2`
10129 if test -f "$collect2name" && \
10130 strings "$collect2name" | grep resolve_lib_name >/dev/null
10131 then
10132 # We have reworked collect2
10133 hardcode_direct_CXX=yes
10134 else
10135 # We have old collect2
10136 hardcode_direct_CXX=unsupported
10137 # It fails to find uninstalled libraries when the uninstalled
10138 # path is not listed in the libpath. Setting hardcode_minus_L
10139 # to unsupported forces relinking
10140 hardcode_minus_L_CXX=yes
10141 hardcode_libdir_flag_spec_CXX='-L$libdir'
10142 hardcode_libdir_separator_CXX=
10143 fi
10144 esac
10145 shared_flag='-shared'
10146 if test "$aix_use_runtimelinking" = yes; then
10147 shared_flag="$shared_flag "'${wl}-G'
10148 fi
10149 else
10150 # not using gcc
10151 if test "$host_cpu" = ia64; then
10152 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10153 # chokes on -Wl,-G. The following line is correct:
10154 shared_flag='-G'
10155 else
10156 if test "$aix_use_runtimelinking" = yes; then
10157 shared_flag='${wl}-G'
10158 else
10159 shared_flag='${wl}-bM:SRE'
10160 fi
10161 fi
10162 fi
10163
10164 # It seems that -bexpall does not export symbols beginning with
10165 # underscore (_), so it is better to generate a list of symbols to export.
10166 always_export_symbols_CXX=yes
10167 if test "$aix_use_runtimelinking" = yes; then
10168 # Warning - without using the other runtime loading flags (-brtl),
10169 # -berok will link without error, but may produce a broken library.
10170 allow_undefined_flag_CXX='-berok'
10171 # Determine the default libpath from the value encoded in an empty executable.
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178
10179 int
10180 main ()
10181 {
10182
10183 ;
10184 return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10189 (eval $ac_link) 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_cxx_werror_flag"
10197 || test ! -s conftest.err'
10198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; }; then
10209
10210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10211 }'`
10212 # Check for a 64-bit object if we didn't find anything.
10213 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; }
10214 }'`; fi
10215 else
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219 fi
10220 rm -f conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10223
10224 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10225
10226 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10227 else
10228 if test "$host_cpu" = ia64; then
10229 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10230 allow_undefined_flag_CXX="-z nodefs"
10231 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10232 else
10233 # Determine the default libpath from the value encoded in an empty executable.
10234 cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h. */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10240
10241 int
10242 main ()
10243 {
10244
10245 ;
10246 return 0;
10247 }
10248 _ACEOF
10249 rm -f conftest.$ac_objext conftest$ac_exeext
10250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251 (eval $ac_link) 2>conftest.er1
10252 ac_status=$?
10253 grep -v '^ *+' conftest.er1 >conftest.err
10254 rm -f conftest.er1
10255 cat conftest.err >&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try='test -z "$ac_cxx_werror_flag"
10259 || test ! -s conftest.err'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; } &&
10265 { ac_try='test -s conftest$ac_exeext'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271
10272 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10273 }'`
10274 # Check for a 64-bit object if we didn't find anything.
10275 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; }
10276 }'`; fi
10277 else
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 fi
10282 rm -f conftest.err conftest.$ac_objext \
10283 conftest$ac_exeext conftest.$ac_ext
10284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10285
10286 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10287 # Warning - without using the other run time loading flags,
10288 # -berok will link without error, but may produce a broken library.
10289 no_undefined_flag_CXX=' ${wl}-bernotok'
10290 allow_undefined_flag_CXX=' ${wl}-berok'
10291 # -bexpall does not export symbols beginning with underscore (_)
10292 always_export_symbols_CXX=yes
10293 # Exported symbols can be pulled into shared objects from archives
10294 whole_archive_flag_spec_CXX=' '
10295 archive_cmds_need_lc_CXX=yes
10296 # This is similar to how AIX traditionally builds it's shared libraries.
10297 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10298 fi
10299 fi
10300 ;;
10301 chorus*)
10302 case $cc_basename in
10303 *)
10304 # FIXME: insert proper C++ library support
10305 ld_shlibs_CXX=no
10306 ;;
10307 esac
10308 ;;
10309
10310
10311 cygwin* | mingw* | pw32*)
10312 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10313 # as there is no search path for DLLs.
10314 hardcode_libdir_flag_spec_CXX='-L$libdir'
10315 allow_undefined_flag_CXX=unsupported
10316 always_export_symbols_CXX=no
10317 enable_shared_with_static_runtimes_CXX=yes
10318
10319 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10320 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10321 # If the export-symbols file already is a .def file (1st line
10322 # is EXPORTS), use it as is; otherwise, prepend...
10323 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10324 cp $export_symbols $output_objdir/$soname.def;
10325 else
10326 echo EXPORTS > $output_objdir/$soname.def;
10327 cat $export_symbols >> $output_objdir/$soname.def;
10328 fi~
10329 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10330 else
10331 ld_shlibs_CXX=no
10332 fi
10333 ;;
10334 darwin* | rhapsody*)
10335 case "$host_os" in
10336 rhapsody* | darwin1.[012])
10337 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10338 ;;
10339 *) # Darwin 1.3 on
10340 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10341 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10342 else
10343 case ${MACOSX_DEPLOYMENT_TARGET} in
10344 10.[012])
10345 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10346 ;;
10347 10.*)
10348 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10349 ;;
10350 esac
10351 fi
10352 ;;
10353 esac
10354 archive_cmds_need_lc_CXX=no
10355 hardcode_direct_CXX=no
10356 hardcode_automatic_CXX=yes
10357 hardcode_shlibpath_var_CXX=unsupported
10358 whole_archive_flag_spec_CXX=''
10359 link_all_deplibs_CXX=yes
10360
10361 if test "$GXX" = yes ; then
10362 lt_int_apple_cc_single_mod=no
10363 output_verbose_link_cmd='echo'
10364 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10365 lt_int_apple_cc_single_mod=yes
10366 fi
10367 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10368 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10369 else
10370 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10371 fi
10372 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10373 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10374 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10375 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10376 else
10377 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10378 fi
10379 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10380 else
10381 case $cc_basename in
10382 xlc*)
10383 output_verbose_link_cmd='echo'
10384 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10385 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10386 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10387 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10388 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10389 ;;
10390 *)
10391 ld_shlibs_CXX=no
10392 ;;
10393 esac
10394 fi
10395 ;;
10396
10397 dgux*)
10398 case $cc_basename in
10399 ec++*)
10400 # FIXME: insert proper C++ library support
10401 ld_shlibs_CXX=no
10402 ;;
10403 ghcx*)
10404 # Green Hills C++ Compiler
10405 # FIXME: insert proper C++ library support
10406 ld_shlibs_CXX=no
10407 ;;
10408 *)
10409 # FIXME: insert proper C++ library support
10410 ld_shlibs_CXX=no
10411 ;;
10412 esac
10413 ;;
10414 freebsd[12]*)
10415 # C++ shared libraries reported to be fairly broken before switch to ELF
10416 ld_shlibs_CXX=no
10417 ;;
10418 freebsd-elf*)
10419 archive_cmds_need_lc_CXX=no
10420 ;;
10421 freebsd* | kfreebsd*-gnu | dragonfly*)
10422 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10423 # conventions
10424 ld_shlibs_CXX=yes
10425 ;;
10426 gnu*)
10427 ;;
10428 hpux9*)
10429 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10430 hardcode_libdir_separator_CXX=:
10431 export_dynamic_flag_spec_CXX='${wl}-E'
10432 hardcode_direct_CXX=yes
10433 hardcode_minus_L_CXX=yes # Not in the search PATH,
10434 # but as the default
10435 # location of the library.
10436
10437 case $cc_basename in
10438 CC*)
10439 # FIXME: insert proper C++ library support
10440 ld_shlibs_CXX=no
10441 ;;
10442 aCC*)
10443 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10444 # Commands to make compiler produce verbose output that lists
10445 # what "hidden" libraries, object files and flags are used when
10446 # linking a shared library.
10447 #
10448 # There doesn't appear to be a way to prevent this compiler from
10449 # explicitly linking system object files so we need to strip them
10450 # from the output so that they don't get included in the library
10451 # dependencies.
10452 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'
10453 ;;
10454 *)
10455 if test "$GXX" = yes; then
10456 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10457 else
10458 # FIXME: insert proper C++ library support
10459 ld_shlibs_CXX=no
10460 fi
10461 ;;
10462 esac
10463 ;;
10464 hpux10*|hpux11*)
10465 if test $with_gnu_ld = no; then
10466 case "$host_cpu" in
10467 hppa*64*)
10468 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10469 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10470 hardcode_libdir_separator_CXX=:
10471 ;;
10472 ia64*)
10473 hardcode_libdir_flag_spec_CXX='-L$libdir'
10474 ;;
10475 *)
10476 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10477 hardcode_libdir_separator_CXX=:
10478 export_dynamic_flag_spec_CXX='${wl}-E'
10479 ;;
10480 esac
10481 fi
10482 case "$host_cpu" in
10483 hppa*64*)
10484 hardcode_direct_CXX=no
10485 hardcode_shlibpath_var_CXX=no
10486 ;;
10487 ia64*)
10488 hardcode_direct_CXX=no
10489 hardcode_shlibpath_var_CXX=no
10490 hardcode_minus_L_CXX=yes # Not in the search PATH,
10491 # but as the default
10492 # location of the library.
10493 ;;
10494 *)
10495 hardcode_direct_CXX=yes
10496 hardcode_minus_L_CXX=yes # Not in the search PATH,
10497 # but as the default
10498 # location of the library.
10499 ;;
10500 esac
10501
10502 case $cc_basename in
10503 CC*)
10504 # FIXME: insert proper C++ library support
10505 ld_shlibs_CXX=no
10506 ;;
10507 aCC*)
10508 case "$host_cpu" in
10509 hppa*64*|ia64*)
10510 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10511 ;;
10512 *)
10513 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10514 ;;
10515 esac
10516 # Commands to make compiler produce verbose output that lists
10517 # what "hidden" libraries, object files and flags are used when
10518 # linking a shared library.
10519 #
10520 # There doesn't appear to be a way to prevent this compiler from
10521 # explicitly linking system object files so we need to strip them
10522 # from the output so that they don't get included in the library
10523 # dependencies.
10524 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'
10525 ;;
10526 *)
10527 if test "$GXX" = yes; then
10528 if test $with_gnu_ld = no; then
10529 case "$host_cpu" in
10530 ia64*|hppa*64*)
10531 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10532 ;;
10533 *)
10534 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10535 ;;
10536 esac
10537 fi
10538 else
10539 # FIXME: insert proper C++ library support
10540 ld_shlibs_CXX=no
10541 fi
10542 ;;
10543 esac
10544 ;;
10545 irix5* | irix6*)
10546 case $cc_basename in
10547 CC*)
10548 # SGI C++
10549 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10550
10551 # Archives containing C++ object files must be created using
10552 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10553 # necessary to make sure instantiated templates are included
10554 # in the archive.
10555 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10556 ;;
10557 *)
10558 if test "$GXX" = yes; then
10559 if test "$with_gnu_ld" = no; then
10560 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10561 else
10562 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10563 fi
10564 fi
10565 link_all_deplibs_CXX=yes
10566 ;;
10567 esac
10568 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10569 hardcode_libdir_separator_CXX=:
10570 ;;
10571 linux*)
10572 case $cc_basename in
10573 KCC*)
10574 # Kuck and Associates, Inc. (KAI) C++ Compiler
10575
10576 # KCC will only create a shared library if the output file
10577 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10578 # to its proper name (with version) after linking.
10579 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10580 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10581 # Commands to make compiler produce verbose output that lists
10582 # what "hidden" libraries, object files and flags are used when
10583 # linking a shared library.
10584 #
10585 # There doesn't appear to be a way to prevent this compiler from
10586 # explicitly linking system object files so we need to strip them
10587 # from the output so that they don't get included in the library
10588 # dependencies.
10589 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'
10590
10591 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10592 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10593
10594 # Archives containing C++ object files must be created using
10595 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10596 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10597 ;;
10598 icpc*)
10599 # Intel C++
10600 with_gnu_ld=yes
10601 # version 8.0 and above of icpc choke on multiply defined symbols
10602 # if we add $predep_objects and $postdep_objects, however 7.1 and
10603 # earlier do not add the objects themselves.
10604 case `$CC -V 2>&1` in
10605 *"Version 7."*)
10606 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10607 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10608 ;;
10609 *) # Version 8.0 or newer
10610 tmp_idyn=
10611 case $host_cpu in
10612 ia64*) tmp_idyn=' -i_dynamic';;
10613 esac
10614 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10615 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10616 ;;
10617 esac
10618 archive_cmds_need_lc_CXX=no
10619 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10620 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10621 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10622 ;;
10623 pgCC*)
10624 # Portland Group C++ compiler
10625 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10626 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10627
10628 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10629 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10630 whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10631 ;;
10632 cxx*)
10633 # Compaq C++
10634 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10635 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10636
10637 runpath_var=LD_RUN_PATH
10638 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10639 hardcode_libdir_separator_CXX=:
10640
10641 # Commands to make compiler produce verbose output that lists
10642 # what "hidden" libraries, object files and flags are used when
10643 # linking a shared library.
10644 #
10645 # There doesn't appear to be a way to prevent this compiler from
10646 # explicitly linking system object files so we need to strip them
10647 # from the output so that they don't get included in the library
10648 # dependencies.
10649 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'
10650 ;;
10651 esac
10652 ;;
10653 lynxos*)
10654 # FIXME: insert proper C++ library support
10655 ld_shlibs_CXX=no
10656 ;;
10657 m88k*)
10658 # FIXME: insert proper C++ library support
10659 ld_shlibs_CXX=no
10660 ;;
10661 mvs*)
10662 case $cc_basename in
10663 cxx*)
10664 # FIXME: insert proper C++ library support
10665 ld_shlibs_CXX=no
10666 ;;
10667 *)
10668 # FIXME: insert proper C++ library support
10669 ld_shlibs_CXX=no
10670 ;;
10671 esac
10672 ;;
10673 netbsd*)
10674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10675 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10676 wlarc=
10677 hardcode_libdir_flag_spec_CXX='-R$libdir'
10678 hardcode_direct_CXX=yes
10679 hardcode_shlibpath_var_CXX=no
10680 fi
10681 # Workaround some broken pre-1.5 toolchains
10682 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10683 ;;
10684 openbsd2*)
10685 # C++ shared libraries are fairly broken
10686 ld_shlibs_CXX=no
10687 ;;
10688 openbsd*)
10689 hardcode_direct_CXX=yes
10690 hardcode_shlibpath_var_CXX=no
10691 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10694 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10695 export_dynamic_flag_spec_CXX='${wl}-E'
10696 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10697 fi
10698 output_verbose_link_cmd='echo'
10699 ;;
10700 osf3*)
10701 case $cc_basename in
10702 KCC*)
10703 # Kuck and Associates, Inc. (KAI) C++ Compiler
10704
10705 # KCC will only create a shared library if the output file
10706 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10707 # to its proper name (with version) after linking.
10708 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10709
10710 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10711 hardcode_libdir_separator_CXX=:
10712
10713 # Archives containing C++ object files must be created using
10714 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10715 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10716
10717 ;;
10718 RCC*)
10719 # Rational C++ 2.4.1
10720 # FIXME: insert proper C++ library support
10721 ld_shlibs_CXX=no
10722 ;;
10723 cxx*)
10724 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10725 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10726
10727 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10728 hardcode_libdir_separator_CXX=:
10729
10730 # Commands to make compiler produce verbose output that lists
10731 # what "hidden" libraries, object files and flags are used when
10732 # linking a shared library.
10733 #
10734 # There doesn't appear to be a way to prevent this compiler from
10735 # explicitly linking system object files so we need to strip them
10736 # from the output so that they don't get included in the library
10737 # dependencies.
10738 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'
10739 ;;
10740 *)
10741 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10742 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10743 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10744
10745 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10746 hardcode_libdir_separator_CXX=:
10747
10748 # Commands to make compiler produce verbose output that lists
10749 # what "hidden" libraries, object files and flags are used when
10750 # linking a shared library.
10751 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10752
10753 else
10754 # FIXME: insert proper C++ library support
10755 ld_shlibs_CXX=no
10756 fi
10757 ;;
10758 esac
10759 ;;
10760 osf4* | osf5*)
10761 case $cc_basename in
10762 KCC*)
10763 # Kuck and Associates, Inc. (KAI) C++ Compiler
10764
10765 # KCC will only create a shared library if the output file
10766 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10767 # to its proper name (with version) after linking.
10768 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10769
10770 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10771 hardcode_libdir_separator_CXX=:
10772
10773 # Archives containing C++ object files must be created using
10774 # the KAI C++ compiler.
10775 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10776 ;;
10777 RCC*)
10778 # Rational C++ 2.4.1
10779 # FIXME: insert proper C++ library support
10780 ld_shlibs_CXX=no
10781 ;;
10782 cxx*)
10783 allow_undefined_flag_CXX=' -expect_unresolved \*'
10784 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10785 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10786 echo "-hidden">> $lib.exp~
10787 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10788 $rm $lib.exp'
10789
10790 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10791 hardcode_libdir_separator_CXX=:
10792
10793 # Commands to make compiler produce verbose output that lists
10794 # what "hidden" libraries, object files and flags are used when
10795 # linking a shared library.
10796 #
10797 # There doesn't appear to be a way to prevent this compiler from
10798 # explicitly linking system object files so we need to strip them
10799 # from the output so that they don't get included in the library
10800 # dependencies.
10801 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'
10802 ;;
10803 *)
10804 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10805 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10806 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10807
10808 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10809 hardcode_libdir_separator_CXX=:
10810
10811 # Commands to make compiler produce verbose output that lists
10812 # what "hidden" libraries, object files and flags are used when
10813 # linking a shared library.
10814 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10815
10816 else
10817 # FIXME: insert proper C++ library support
10818 ld_shlibs_CXX=no
10819 fi
10820 ;;
10821 esac
10822 ;;
10823 psos*)
10824 # FIXME: insert proper C++ library support
10825 ld_shlibs_CXX=no
10826 ;;
10827 sco*)
10828 archive_cmds_need_lc_CXX=no
10829 case $cc_basename in
10830 CC*)
10831 # FIXME: insert proper C++ library support
10832 ld_shlibs_CXX=no
10833 ;;
10834 *)
10835 # FIXME: insert proper C++ library support
10836 ld_shlibs_CXX=no
10837 ;;
10838 esac
10839 ;;
10840 sunos4*)
10841 case $cc_basename in
10842 CC*)
10843 # Sun C++ 4.x
10844 # FIXME: insert proper C++ library support
10845 ld_shlibs_CXX=no
10846 ;;
10847 lcc*)
10848 # Lucid
10849 # FIXME: insert proper C++ library support
10850 ld_shlibs_CXX=no
10851 ;;
10852 *)
10853 # FIXME: insert proper C++ library support
10854 ld_shlibs_CXX=no
10855 ;;
10856 esac
10857 ;;
10858 solaris*)
10859 case $cc_basename in
10860 CC*)
10861 # Sun C++ 4.2, 5.x and Centerline C++
10862 no_undefined_flag_CXX=' -zdefs'
10863 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10864 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10865 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10866
10867 hardcode_libdir_flag_spec_CXX='-R$libdir'
10868 hardcode_shlibpath_var_CXX=no
10869 case $host_os in
10870 solaris2.[0-5] | solaris2.[0-5].*) ;;
10871 *)
10872 # The C++ compiler is used as linker so we must use $wl
10873 # flag to pass the commands to the underlying system
10874 # linker. We must also pass each convience library through
10875 # to the system linker between allextract/defaultextract.
10876 # The C++ compiler will combine linker options so we
10877 # cannot just pass the convience library names through
10878 # without $wl.
10879 # Supported since Solaris 2.6 (maybe 2.5.1?)
10880 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10881 ;;
10882 esac
10883 link_all_deplibs_CXX=yes
10884
10885 # Commands to make compiler produce verbose output that lists
10886 # what "hidden" libraries, object files and flags are used when
10887 # linking a shared library.
10888 #
10889 # There doesn't appear to be a way to prevent this compiler from
10890 # explicitly linking system object files so we need to strip them
10891 # from the output so that they don't get included in the library
10892 # dependencies.
10893 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'
10894
10895 # Archives containing C++ object files must be created using
10896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10897 # necessary to make sure instantiated templates are included
10898 # in the archive.
10899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10900 ;;
10901 gcx*)
10902 # Green Hills C++ Compiler
10903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10904
10905 # The C++ compiler must be used to create the archive.
10906 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10907 ;;
10908 *)
10909 # GNU C++ compiler with Solaris linker
10910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10911 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10912 if $CC --version | grep -v '^2\.7' > /dev/null; then
10913 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10914 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10915 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10916
10917 # Commands to make compiler produce verbose output that lists
10918 # what "hidden" libraries, object files and flags are used when
10919 # linking a shared library.
10920 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10921 else
10922 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10923 # platform.
10924 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10925 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10926 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10927
10928 # Commands to make compiler produce verbose output that lists
10929 # what "hidden" libraries, object files and flags are used when
10930 # linking a shared library.
10931 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10932 fi
10933
10934 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10935 fi
10936 ;;
10937 esac
10938 ;;
10939 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10940 archive_cmds_need_lc_CXX=no
10941 ;;
10942 tandem*)
10943 case $cc_basename in
10944 NCC*)
10945 # NonStop-UX NCC 3.20
10946 # FIXME: insert proper C++ library support
10947 ld_shlibs_CXX=no
10948 ;;
10949 *)
10950 # FIXME: insert proper C++ library support
10951 ld_shlibs_CXX=no
10952 ;;
10953 esac
10954 ;;
10955 vxworks*)
10956 # FIXME: insert proper C++ library support
10957 ld_shlibs_CXX=no
10958 ;;
10959 *)
10960 # FIXME: insert proper C++ library support
10961 ld_shlibs_CXX=no
10962 ;;
10963 esac
10964 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10965 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10966 test "$ld_shlibs_CXX" = no && can_build_shared=no
10967
10968 GCC_CXX="$GXX"
10969 LD_CXX="$LD"
10970
10971
10972 cat > conftest.$ac_ext <<EOF
10973 class Foo
10974 {
10975 public:
10976 Foo (void) { a = 0; }
10977 private:
10978 int a;
10979 };
10980 EOF
10981
10982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983 (eval $ac_compile) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; then
10987 # Parse the compiler output and extract the necessary
10988 # objects, libraries and library flags.
10989
10990 # Sentinel used to keep track of whether or not we are before
10991 # the conftest object file.
10992 pre_test_object_deps_done=no
10993
10994 # The `*' in the case matches for architectures that use `case' in
10995 # $output_verbose_cmd can trigger glob expansion during the loop
10996 # eval without this substitution.
10997 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10998
10999 for p in `eval $output_verbose_link_cmd`; do
11000 case $p in
11001
11002 -L* | -R* | -l*)
11003 # Some compilers place space between "-{L,R}" and the path.
11004 # Remove the space.
11005 if test $p = "-L" \
11006 || test $p = "-R"; then
11007 prev=$p
11008 continue
11009 else
11010 prev=
11011 fi
11012
11013 if test "$pre_test_object_deps_done" = no; then
11014 case $p in
11015 -L* | -R*)
11016 # Internal compiler library paths should come after those
11017 # provided the user. The postdeps already come after the
11018 # user supplied libs so there is no need to process them.
11019 if test -z "$compiler_lib_search_path_CXX"; then
11020 compiler_lib_search_path_CXX="${prev}${p}"
11021 else
11022 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11023 fi
11024 ;;
11025 # The "-l" case would never come before the object being
11026 # linked, so don't bother handling this case.
11027 esac
11028 else
11029 if test -z "$postdeps_CXX"; then
11030 postdeps_CXX="${prev}${p}"
11031 else
11032 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11033 fi
11034 fi
11035 ;;
11036
11037 *.$objext)
11038 # This assumes that the test object file only shows up
11039 # once in the compiler output.
11040 if test "$p" = "conftest.$objext"; then
11041 pre_test_object_deps_done=yes
11042 continue
11043 fi
11044
11045 if test "$pre_test_object_deps_done" = no; then
11046 if test -z "$predep_objects_CXX"; then
11047 predep_objects_CXX="$p"
11048 else
11049 predep_objects_CXX="$predep_objects_CXX $p"
11050 fi
11051 else
11052 if test -z "$postdep_objects_CXX"; then
11053 postdep_objects_CXX="$p"
11054 else
11055 postdep_objects_CXX="$postdep_objects_CXX $p"
11056 fi
11057 fi
11058 ;;
11059
11060 *) ;; # Ignore the rest.
11061
11062 esac
11063 done
11064
11065 # Clean up.
11066 rm -f a.out a.exe
11067 else
11068 echo "libtool.m4: error: problem compiling CXX test program"
11069 fi
11070
11071 $rm -f confest.$objext
11072
11073 case " $postdeps_CXX " in
11074 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11075 esac
11076
11077 lt_prog_compiler_wl_CXX=
11078 lt_prog_compiler_pic_CXX=
11079 lt_prog_compiler_static_CXX=
11080
11081 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11082 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11083
11084 # C++ specific cases for pic, static, wl, etc.
11085 if test "$GXX" = yes; then
11086 lt_prog_compiler_wl_CXX='-Wl,'
11087 lt_prog_compiler_static_CXX='-static'
11088
11089 case $host_os in
11090 aix*)
11091 # All AIX code is PIC.
11092 if test "$host_cpu" = ia64; then
11093 # AIX 5 now supports IA64 processor
11094 lt_prog_compiler_static_CXX='-Bstatic'
11095 fi
11096 ;;
11097 amigaos*)
11098 # FIXME: we need at least 68020 code to build shared libraries, but
11099 # adding the `-m68020' flag to GCC prevents building anything better,
11100 # like `-m68040'.
11101 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11102 ;;
11103 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11104 # PIC is the default for these OSes.
11105 ;;
11106 mingw* | os2* | pw32*)
11107 # This hack is so that the source file can tell whether it is being
11108 # built for inclusion in a dll (and should export symbols for example).
11109 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11110 ;;
11111 darwin* | rhapsody*)
11112 # PIC is the default on this platform
11113 # Common symbols not allowed in MH_DYLIB files
11114 lt_prog_compiler_pic_CXX='-fno-common'
11115 ;;
11116 *djgpp*)
11117 # DJGPP does not support shared libraries at all
11118 lt_prog_compiler_pic_CXX=
11119 ;;
11120 sysv4*MP*)
11121 if test -d /usr/nec; then
11122 lt_prog_compiler_pic_CXX=-Kconform_pic
11123 fi
11124 ;;
11125 hpux*)
11126 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11127 # not for PA HP-UX.
11128 case "$host_cpu" in
11129 hppa*64*|ia64*)
11130 ;;
11131 *)
11132 lt_prog_compiler_pic_CXX='-fPIC'
11133 ;;
11134 esac
11135 ;;
11136 *)
11137 lt_prog_compiler_pic_CXX='-fPIC'
11138 ;;
11139 esac
11140 else
11141 case $host_os in
11142 aix4* | aix5*)
11143 # All AIX code is PIC.
11144 if test "$host_cpu" = ia64; then
11145 # AIX 5 now supports IA64 processor
11146 lt_prog_compiler_static_CXX='-Bstatic'
11147 else
11148 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11149 fi
11150 ;;
11151 chorus*)
11152 case $cc_basename in
11153 cxch68*)
11154 # Green Hills C++ Compiler
11155 # _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"
11156 ;;
11157 esac
11158 ;;
11159 darwin*)
11160 # PIC is the default on this platform
11161 # Common symbols not allowed in MH_DYLIB files
11162 case $cc_basename in
11163 xlc*)
11164 lt_prog_compiler_pic_CXX='-qnocommon'
11165 lt_prog_compiler_wl_CXX='-Wl,'
11166 ;;
11167 esac
11168 ;;
11169 dgux*)
11170 case $cc_basename in
11171 ec++*)
11172 lt_prog_compiler_pic_CXX='-KPIC'
11173 ;;
11174 ghcx*)
11175 # Green Hills C++ Compiler
11176 lt_prog_compiler_pic_CXX='-pic'
11177 ;;
11178 *)
11179 ;;
11180 esac
11181 ;;
11182 freebsd* | kfreebsd*-gnu | dragonfly*)
11183 # FreeBSD uses GNU C++
11184 ;;
11185 hpux9* | hpux10* | hpux11*)
11186 case $cc_basename in
11187 CC*)
11188 lt_prog_compiler_wl_CXX='-Wl,'
11189 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11190 if test "$host_cpu" != ia64; then
11191 lt_prog_compiler_pic_CXX='+Z'
11192 fi
11193 ;;
11194 aCC*)
11195 lt_prog_compiler_wl_CXX='-Wl,'
11196 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11197 case "$host_cpu" in
11198 hppa*64*|ia64*)
11199 # +Z the default
11200 ;;
11201 *)
11202 lt_prog_compiler_pic_CXX='+Z'
11203 ;;
11204 esac
11205 ;;
11206 *)
11207 ;;
11208 esac
11209 ;;
11210 irix5* | irix6* | nonstopux*)
11211 case $cc_basename in
11212 CC*)
11213 lt_prog_compiler_wl_CXX='-Wl,'
11214 lt_prog_compiler_static_CXX='-non_shared'
11215 # CC pic flag -KPIC is the default.
11216 ;;
11217 *)
11218 ;;
11219 esac
11220 ;;
11221 linux*)
11222 case $cc_basename in
11223 KCC*)
11224 # KAI C++ Compiler
11225 lt_prog_compiler_wl_CXX='--backend -Wl,'
11226 lt_prog_compiler_pic_CXX='-fPIC'
11227 ;;
11228 icpc* | ecpc*)
11229 # Intel C++
11230 lt_prog_compiler_wl_CXX='-Wl,'
11231 lt_prog_compiler_pic_CXX='-KPIC'
11232 lt_prog_compiler_static_CXX='-static'
11233 ;;
11234 pgCC*)
11235 # Portland Group C++ compiler.
11236 lt_prog_compiler_wl_CXX='-Wl,'
11237 lt_prog_compiler_pic_CXX='-fpic'
11238 lt_prog_compiler_static_CXX='-static'
11239 ;;
11240 cxx*)
11241 # Compaq C++
11242 # Make sure the PIC flag is empty. It appears that all Alpha
11243 # Linux and Compaq Tru64 Unix objects are PIC.
11244 lt_prog_compiler_pic_CXX=
11245 lt_prog_compiler_static_CXX='-non_shared'
11246 ;;
11247 *)
11248 ;;
11249 esac
11250 ;;
11251 lynxos*)
11252 ;;
11253 m88k*)
11254 ;;
11255 mvs*)
11256 case $cc_basename in
11257 cxx*)
11258 lt_prog_compiler_pic_CXX='-W c,exportall'
11259 ;;
11260 *)
11261 ;;
11262 esac
11263 ;;
11264 netbsd*)
11265 ;;
11266 osf3* | osf4* | osf5*)
11267 case $cc_basename in
11268 KCC*)
11269 lt_prog_compiler_wl_CXX='--backend -Wl,'
11270 ;;
11271 RCC*)
11272 # Rational C++ 2.4.1
11273 lt_prog_compiler_pic_CXX='-pic'
11274 ;;
11275 cxx*)
11276 # Digital/Compaq C++
11277 lt_prog_compiler_wl_CXX='-Wl,'
11278 # Make sure the PIC flag is empty. It appears that all Alpha
11279 # Linux and Compaq Tru64 Unix objects are PIC.
11280 lt_prog_compiler_pic_CXX=
11281 lt_prog_compiler_static_CXX='-non_shared'
11282 ;;
11283 *)
11284 ;;
11285 esac
11286 ;;
11287 psos*)
11288 ;;
11289 sco*)
11290 case $cc_basename in
11291 CC*)
11292 lt_prog_compiler_pic_CXX='-fPIC'
11293 ;;
11294 *)
11295 ;;
11296 esac
11297 ;;
11298 solaris*)
11299 case $cc_basename in
11300 CC*)
11301 # Sun C++ 4.2, 5.x and Centerline C++
11302 lt_prog_compiler_pic_CXX='-KPIC'
11303 lt_prog_compiler_static_CXX='-Bstatic'
11304 lt_prog_compiler_wl_CXX='-Qoption ld '
11305 ;;
11306 gcx*)
11307 # Green Hills C++ Compiler
11308 lt_prog_compiler_pic_CXX='-PIC'
11309 ;;
11310 *)
11311 ;;
11312 esac
11313 ;;
11314 sunos4*)
11315 case $cc_basename in
11316 CC*)
11317 # Sun C++ 4.x
11318 lt_prog_compiler_pic_CXX='-pic'
11319 lt_prog_compiler_static_CXX='-Bstatic'
11320 ;;
11321 lcc*)
11322 # Lucid
11323 lt_prog_compiler_pic_CXX='-pic'
11324 ;;
11325 *)
11326 ;;
11327 esac
11328 ;;
11329 tandem*)
11330 case $cc_basename in
11331 NCC*)
11332 # NonStop-UX NCC 3.20
11333 lt_prog_compiler_pic_CXX='-KPIC'
11334 ;;
11335 *)
11336 ;;
11337 esac
11338 ;;
11339 unixware*)
11340 ;;
11341 vxworks*)
11342 ;;
11343 *)
11344 lt_prog_compiler_can_build_shared_CXX=no
11345 ;;
11346 esac
11347 fi
11348
11349 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11350 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11351
11352 #
11353 # Check to make sure the PIC flag actually works.
11354 #
11355 if test -n "$lt_prog_compiler_pic_CXX"; then
11356
11357 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11358 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11359 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362 lt_prog_compiler_pic_works_CXX=no
11363 ac_outfile=conftest.$ac_objext
11364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11365 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11366 # Insert the option either (1) after the last *FLAGS variable, or
11367 # (2) before a word containing "conftest.", or (3) at the end.
11368 # Note that $ac_compile itself does not contain backslashes and begins
11369 # with a dollar sign (not a hyphen), so the echo should work correctly.
11370 # The option is referenced via a variable to avoid confusing sed.
11371 lt_compile=`echo "$ac_compile" | $SED \
11372 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11374 -e 's:$: $lt_compiler_flag:'`
11375 (eval echo "\"\$as_me:11375: $lt_compile\"" >&5)
11376 (eval "$lt_compile" 2>conftest.err)
11377 ac_status=$?
11378 cat conftest.err >&5
11379 echo "$as_me:11379: \$? = $ac_status" >&5
11380 if (exit $ac_status) && test -s "$ac_outfile"; then
11381 # The compiler can only warn and ignore the option if not recognized
11382 # So say no if there are warnings other than the usual output.
11383 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11384 $SED '/^$/d' conftest.err >conftest.er2
11385 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11386 lt_prog_compiler_pic_works_CXX=yes
11387 fi
11388 fi
11389 $rm conftest*
11390
11391 fi
11392 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11393 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11394
11395 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11396 case $lt_prog_compiler_pic_CXX in
11397 "" | " "*) ;;
11398 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11399 esac
11400 else
11401 lt_prog_compiler_pic_CXX=
11402 lt_prog_compiler_can_build_shared_CXX=no
11403 fi
11404
11405 fi
11406 case "$host_os" in
11407 # For platforms which do not support PIC, -DPIC is meaningless:
11408 *djgpp*)
11409 lt_prog_compiler_pic_CXX=
11410 ;;
11411 *)
11412 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11413 ;;
11414 esac
11415
11416 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11417 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11418 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 lt_cv_prog_compiler_c_o_CXX=no
11422 $rm -r conftest 2>/dev/null
11423 mkdir conftest
11424 cd conftest
11425 mkdir out
11426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11427
11428 lt_compiler_flag="-o out/conftest2.$ac_objext"
11429 # Insert the option either (1) after the last *FLAGS variable, or
11430 # (2) before a word containing "conftest.", or (3) at the end.
11431 # Note that $ac_compile itself does not contain backslashes and begins
11432 # with a dollar sign (not a hyphen), so the echo should work correctly.
11433 lt_compile=`echo "$ac_compile" | $SED \
11434 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11436 -e 's:$: $lt_compiler_flag:'`
11437 (eval echo "\"\$as_me:11437: $lt_compile\"" >&5)
11438 (eval "$lt_compile" 2>out/conftest.err)
11439 ac_status=$?
11440 cat out/conftest.err >&5
11441 echo "$as_me:11441: \$? = $ac_status" >&5
11442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11443 then
11444 # The compiler can only warn and ignore the option if not recognized
11445 # So say no if there are warnings
11446 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11447 $SED '/^$/d' out/conftest.err >out/conftest.er2
11448 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11449 lt_cv_prog_compiler_c_o_CXX=yes
11450 fi
11451 fi
11452 chmod u+w .
11453 $rm conftest*
11454 # SGI C++ compiler will create directory out/ii_files/ for
11455 # template instantiation
11456 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11457 $rm out/* && rmdir out
11458 cd ..
11459 rmdir conftest
11460 $rm conftest*
11461
11462 fi
11463 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11464 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11465
11466
11467 hard_links="nottested"
11468 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11469 # do not overwrite the value of need_locks provided by the user
11470 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11471 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11472 hard_links=yes
11473 $rm conftest*
11474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11475 touch conftest.a
11476 ln conftest.a conftest.b 2>&5 || hard_links=no
11477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11478 echo "$as_me:$LINENO: result: $hard_links" >&5
11479 echo "${ECHO_T}$hard_links" >&6
11480 if test "$hard_links" = no; then
11481 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11482 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11483 need_locks=warn
11484 fi
11485 else
11486 need_locks=no
11487 fi
11488
11489 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11490 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11491
11492 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11493 case $host_os in
11494 aix4* | aix5*)
11495 # If we're using GNU nm, then we don't want the "-C" option.
11496 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11497 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11498 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'
11499 else
11500 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'
11501 fi
11502 ;;
11503 pw32*)
11504 export_symbols_cmds_CXX="$ltdll_cmds"
11505 ;;
11506 cygwin* | mingw*)
11507 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11508 ;;
11509 *)
11510 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11511 ;;
11512 esac
11513
11514 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11515 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11516 test "$ld_shlibs_CXX" = no && can_build_shared=no
11517
11518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11519 if test "$GCC" = yes; then
11520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11521 fi
11522
11523 #
11524 # Do we need to explicitly link libc?
11525 #
11526 case "x$archive_cmds_need_lc_CXX" in
11527 x|xyes)
11528 # Assume -lc should be added
11529 archive_cmds_need_lc_CXX=yes
11530
11531 if test "$enable_shared" = yes && test "$GCC" = yes; then
11532 case $archive_cmds_CXX in
11533 *'~'*)
11534 # FIXME: we may have to deal with multi-command sequences.
11535 ;;
11536 '$CC '*)
11537 # Test whether the compiler implicitly links with -lc since on some
11538 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11539 # to ld, don't add -lc before -lgcc.
11540 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11541 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11542 $rm conftest*
11543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11544
11545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11546 (eval $ac_compile) 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } 2>conftest.err; then
11550 soname=conftest
11551 lib=conftest
11552 libobjs=conftest.$ac_objext
11553 deplibs=
11554 wl=$lt_prog_compiler_wl_CXX
11555 compiler_flags=-v
11556 linker_flags=-v
11557 verstring=
11558 output_objdir=.
11559 libname=conftest
11560 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11561 allow_undefined_flag_CXX=
11562 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11563 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }
11567 then
11568 archive_cmds_need_lc_CXX=no
11569 else
11570 archive_cmds_need_lc_CXX=yes
11571 fi
11572 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11573 else
11574 cat conftest.err 1>&5
11575 fi
11576 $rm conftest*
11577 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11578 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11579 ;;
11580 esac
11581 fi
11582 ;;
11583 esac
11584
11585 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11586 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11587 library_names_spec=
11588 libname_spec='lib$name'
11589 soname_spec=
11590 shrext_cmds=".so"
11591 postinstall_cmds=
11592 postuninstall_cmds=
11593 finish_cmds=
11594 finish_eval=
11595 shlibpath_var=
11596 shlibpath_overrides_runpath=unknown
11597 version_type=none
11598 dynamic_linker="$host_os ld.so"
11599 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11600 if test "$GCC" = yes; then
11601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11602 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11603 # if the path contains ";" then we assume it to be the separator
11604 # otherwise default to the standard path separator (i.e. ":") - it is
11605 # assumed that no part of a normal pathname contains ";" but that should
11606 # okay in the real world where ";" in dirpaths is itself problematic.
11607 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11608 else
11609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11610 fi
11611 else
11612 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11613 fi
11614 need_lib_prefix=unknown
11615 hardcode_into_libs=no
11616
11617 # when you set need_version to no, make sure it does not cause -set_version
11618 # flags to be left without arguments
11619 need_version=unknown
11620
11621 case $host_os in
11622 aix3*)
11623 version_type=linux
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11625 shlibpath_var=LIBPATH
11626
11627 # AIX 3 has no versioning support, so we append a major version to the name.
11628 soname_spec='${libname}${release}${shared_ext}$major'
11629 ;;
11630
11631 aix4* | aix5*)
11632 version_type=linux
11633 need_lib_prefix=no
11634 need_version=no
11635 hardcode_into_libs=yes
11636 if test "$host_cpu" = ia64; then
11637 # AIX 5 supports IA64
11638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11639 shlibpath_var=LD_LIBRARY_PATH
11640 else
11641 # With GCC up to 2.95.x, collect2 would create an import file
11642 # for dependence libraries. The import file would start with
11643 # the line `#! .'. This would cause the generated library to
11644 # depend on `.', always an invalid library. This was fixed in
11645 # development snapshots of GCC prior to 3.0.
11646 case $host_os in
11647 aix4 | aix4.[01] | aix4.[01].*)
11648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11649 echo ' yes '
11650 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11651 :
11652 else
11653 can_build_shared=no
11654 fi
11655 ;;
11656 esac
11657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11658 # soname into executable. Probably we can add versioning support to
11659 # collect2, so additional links can be useful in future.
11660 if test "$aix_use_runtimelinking" = yes; then
11661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11662 # instead of lib<name>.a to let people know that these are not
11663 # typical AIX shared libraries.
11664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 else
11666 # We preserve .a as extension for shared libraries through AIX4.2
11667 # and later when we are not doing run time linking.
11668 library_names_spec='${libname}${release}.a $libname.a'
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 fi
11671 shlibpath_var=LIBPATH
11672 fi
11673 ;;
11674
11675 amigaos*)
11676 library_names_spec='$libname.ixlibrary $libname.a'
11677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11678 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'
11679 ;;
11680
11681 beos*)
11682 library_names_spec='${libname}${shared_ext}'
11683 dynamic_linker="$host_os ld.so"
11684 shlibpath_var=LIBRARY_PATH
11685 ;;
11686
11687 bsdi[45]*)
11688 version_type=linux
11689 need_version=no
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11696 # the default ld.so.conf also contains /usr/contrib/lib and
11697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11698 # libtool to hard-code these into programs
11699 ;;
11700
11701 cygwin* | mingw* | pw32*)
11702 version_type=windows
11703 shrext_cmds=".dll"
11704 need_version=no
11705 need_lib_prefix=no
11706
11707 case $GCC,$host_os in
11708 yes,cygwin* | yes,mingw* | yes,pw32*)
11709 library_names_spec='$libname.dll.a'
11710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11711 postinstall_cmds='base_file=`basename \${file}`~
11712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11713 dldir=$destdir/`dirname \$dlpath`~
11714 test -d \$dldir || mkdir -p \$dldir~
11715 $install_prog $dir/$dlname \$dldir/$dlname'
11716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11717 dlpath=$dir/\$dldll~
11718 $rm \$dlpath'
11719 shlibpath_overrides_runpath=yes
11720
11721 case $host_os in
11722 cygwin*)
11723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11725 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11726 ;;
11727 mingw*)
11728 # MinGW DLLs use traditional 'lib' prefix
11729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11731 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11732 # It is most probably a Windows format PATH printed by
11733 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11734 # path with ; separators, and with drive letters. We can handle the
11735 # drive letters (cygwin fileutils understands them), so leave them,
11736 # especially as we might pass files found there to a mingw objdump,
11737 # which wouldn't understand a cygwinified path. Ahh.
11738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11739 else
11740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11741 fi
11742 ;;
11743 pw32*)
11744 # pw32 DLLs use 'pw' prefix rather than 'lib'
11745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11746 ;;
11747 esac
11748 ;;
11749
11750 *)
11751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11752 ;;
11753 esac
11754 dynamic_linker='Win32 ld.exe'
11755 # FIXME: first we should search . and the directory the executable is in
11756 shlibpath_var=PATH
11757 ;;
11758
11759 darwin* | rhapsody*)
11760 dynamic_linker="$host_os dyld"
11761 version_type=darwin
11762 need_lib_prefix=no
11763 need_version=no
11764 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11765 soname_spec='${libname}${release}${major}$shared_ext'
11766 shlibpath_overrides_runpath=yes
11767 shlibpath_var=DYLD_LIBRARY_PATH
11768 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11769 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11770 if test "$GCC" = yes; then
11771 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"`
11772 else
11773 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11774 fi
11775 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11776 ;;
11777
11778 dgux*)
11779 version_type=linux
11780 need_lib_prefix=no
11781 need_version=no
11782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11783 soname_spec='${libname}${release}${shared_ext}$major'
11784 shlibpath_var=LD_LIBRARY_PATH
11785 ;;
11786
11787 freebsd1*)
11788 dynamic_linker=no
11789 ;;
11790
11791 kfreebsd*-gnu)
11792 version_type=linux
11793 need_lib_prefix=no
11794 need_version=no
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 shlibpath_var=LD_LIBRARY_PATH
11798 shlibpath_overrides_runpath=no
11799 hardcode_into_libs=yes
11800 dynamic_linker='GNU ld.so'
11801 ;;
11802
11803 freebsd* | dragonfly*)
11804 # DragonFly does not have aout. When/if they implement a new
11805 # versioning mechanism, adjust this.
11806 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11807 version_type=freebsd-$objformat
11808 case $version_type in
11809 freebsd-elf*)
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11811 need_version=no
11812 need_lib_prefix=no
11813 ;;
11814 freebsd-*)
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11816 need_version=yes
11817 ;;
11818 esac
11819 shlibpath_var=LD_LIBRARY_PATH
11820 case $host_os in
11821 freebsd2*)
11822 shlibpath_overrides_runpath=yes
11823 ;;
11824 freebsd3.[01]* | freebsdelf3.[01]*)
11825 shlibpath_overrides_runpath=yes
11826 hardcode_into_libs=yes
11827 ;;
11828 *) # from 3.2 on
11829 shlibpath_overrides_runpath=no
11830 hardcode_into_libs=yes
11831 ;;
11832 esac
11833 ;;
11834
11835 gnu*)
11836 version_type=linux
11837 need_lib_prefix=no
11838 need_version=no
11839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11840 soname_spec='${libname}${release}${shared_ext}$major'
11841 shlibpath_var=LD_LIBRARY_PATH
11842 hardcode_into_libs=yes
11843 ;;
11844
11845 hpux9* | hpux10* | hpux11*)
11846 # Give a soname corresponding to the major version so that dld.sl refuses to
11847 # link against other versions.
11848 version_type=sunos
11849 need_lib_prefix=no
11850 need_version=no
11851 case "$host_cpu" in
11852 ia64*)
11853 shrext_cmds='.so'
11854 hardcode_into_libs=yes
11855 dynamic_linker="$host_os dld.so"
11856 shlibpath_var=LD_LIBRARY_PATH
11857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11859 soname_spec='${libname}${release}${shared_ext}$major'
11860 if test "X$HPUX_IA64_MODE" = X32; then
11861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11862 else
11863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11864 fi
11865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11866 ;;
11867 hppa*64*)
11868 shrext_cmds='.sl'
11869 hardcode_into_libs=yes
11870 dynamic_linker="$host_os dld.sl"
11871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11877 ;;
11878 *)
11879 shrext_cmds='.sl'
11880 dynamic_linker="$host_os dld.sl"
11881 shlibpath_var=SHLIB_PATH
11882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884 soname_spec='${libname}${release}${shared_ext}$major'
11885 ;;
11886 esac
11887 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11888 postinstall_cmds='chmod 555 $lib'
11889 ;;
11890
11891 irix5* | irix6* | nonstopux*)
11892 case $host_os in
11893 nonstopux*) version_type=nonstopux ;;
11894 *)
11895 if test "$lt_cv_prog_gnu_ld" = yes; then
11896 version_type=linux
11897 else
11898 version_type=irix
11899 fi ;;
11900 esac
11901 need_lib_prefix=no
11902 need_version=no
11903 soname_spec='${libname}${release}${shared_ext}$major'
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11905 case $host_os in
11906 irix5* | nonstopux*)
11907 libsuff= shlibsuff=
11908 ;;
11909 *)
11910 case $LD in # libtool.m4 will add one of these switches to LD
11911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11912 libsuff= shlibsuff= libmagic=32-bit;;
11913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11914 libsuff=32 shlibsuff=N32 libmagic=N32;;
11915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11917 *) libsuff= shlibsuff= libmagic=never-match;;
11918 esac
11919 ;;
11920 esac
11921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11922 shlibpath_overrides_runpath=no
11923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11925 hardcode_into_libs=yes
11926 ;;
11927
11928 # No shared lib support for Linux oldld, aout, or coff.
11929 linux*oldld* | linux*aout* | linux*coff*)
11930 dynamic_linker=no
11931 ;;
11932
11933 # This must be Linux ELF.
11934 linux*)
11935 version_type=linux
11936 need_lib_prefix=no
11937 need_version=no
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11941 shlibpath_var=LD_LIBRARY_PATH
11942 shlibpath_overrides_runpath=no
11943 # This implies no fast_install, which is unacceptable.
11944 # Some rework will be needed to allow for fast_install
11945 # before this can be enabled.
11946 hardcode_into_libs=yes
11947
11948 # Append ld.so.conf contents to the search path
11949 if test -f /etc/ld.so.conf; then
11950 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11952 fi
11953
11954 # We used to test for /lib/ld.so.1 and disable shared libraries on
11955 # powerpc, because MkLinux only supported shared libraries with the
11956 # GNU dynamic linker. Since this was broken with cross compilers,
11957 # most powerpc-linux boxes support dynamic linking these days and
11958 # people can always --disable-shared, the test was removed, and we
11959 # assume the GNU/Linux dynamic linker is in use.
11960 dynamic_linker='GNU/Linux ld.so'
11961 ;;
11962
11963 knetbsd*-gnu)
11964 version_type=linux
11965 need_lib_prefix=no
11966 need_version=no
11967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11968 soname_spec='${libname}${release}${shared_ext}$major'
11969 shlibpath_var=LD_LIBRARY_PATH
11970 shlibpath_overrides_runpath=no
11971 hardcode_into_libs=yes
11972 dynamic_linker='GNU ld.so'
11973 ;;
11974
11975 netbsd*)
11976 version_type=sunos
11977 need_lib_prefix=no
11978 need_version=no
11979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11982 dynamic_linker='NetBSD (a.out) ld.so'
11983 else
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11985 soname_spec='${libname}${release}${shared_ext}$major'
11986 dynamic_linker='NetBSD ld.elf_so'
11987 fi
11988 shlibpath_var=LD_LIBRARY_PATH
11989 shlibpath_overrides_runpath=yes
11990 hardcode_into_libs=yes
11991 ;;
11992
11993 newsos6)
11994 version_type=linux
11995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11996 shlibpath_var=LD_LIBRARY_PATH
11997 shlibpath_overrides_runpath=yes
11998 ;;
11999
12000 nto-qnx*)
12001 version_type=linux
12002 need_lib_prefix=no
12003 need_version=no
12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12005 soname_spec='${libname}${release}${shared_ext}$major'
12006 shlibpath_var=LD_LIBRARY_PATH
12007 shlibpath_overrides_runpath=yes
12008 ;;
12009
12010 openbsd*)
12011 version_type=sunos
12012 need_lib_prefix=no
12013 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12014 case $host_os in
12015 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12016 *) need_version=no ;;
12017 esac
12018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12020 shlibpath_var=LD_LIBRARY_PATH
12021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12022 case $host_os in
12023 openbsd2.[89] | openbsd2.[89].*)
12024 shlibpath_overrides_runpath=no
12025 ;;
12026 *)
12027 shlibpath_overrides_runpath=yes
12028 ;;
12029 esac
12030 else
12031 shlibpath_overrides_runpath=yes
12032 fi
12033 ;;
12034
12035 os2*)
12036 libname_spec='$name'
12037 shrext_cmds=".dll"
12038 need_lib_prefix=no
12039 library_names_spec='$libname${shared_ext} $libname.a'
12040 dynamic_linker='OS/2 ld.exe'
12041 shlibpath_var=LIBPATH
12042 ;;
12043
12044 osf3* | osf4* | osf5*)
12045 version_type=osf
12046 need_lib_prefix=no
12047 need_version=no
12048 soname_spec='${libname}${release}${shared_ext}$major'
12049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12050 shlibpath_var=LD_LIBRARY_PATH
12051 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12052 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12053 ;;
12054
12055 sco3.2v5*)
12056 version_type=osf
12057 soname_spec='${libname}${release}${shared_ext}$major'
12058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12059 shlibpath_var=LD_LIBRARY_PATH
12060 ;;
12061
12062 solaris*)
12063 version_type=linux
12064 need_lib_prefix=no
12065 need_version=no
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067 soname_spec='${libname}${release}${shared_ext}$major'
12068 shlibpath_var=LD_LIBRARY_PATH
12069 shlibpath_overrides_runpath=yes
12070 hardcode_into_libs=yes
12071 # ldd complains unless libraries are executable
12072 postinstall_cmds='chmod +x $lib'
12073 ;;
12074
12075 sunos4*)
12076 version_type=sunos
12077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12078 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12079 shlibpath_var=LD_LIBRARY_PATH
12080 shlibpath_overrides_runpath=yes
12081 if test "$with_gnu_ld" = yes; then
12082 need_lib_prefix=no
12083 fi
12084 need_version=yes
12085 ;;
12086
12087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12088 version_type=linux
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12090 soname_spec='${libname}${release}${shared_ext}$major'
12091 shlibpath_var=LD_LIBRARY_PATH
12092 case $host_vendor in
12093 sni)
12094 shlibpath_overrides_runpath=no
12095 need_lib_prefix=no
12096 export_dynamic_flag_spec='${wl}-Blargedynsym'
12097 runpath_var=LD_RUN_PATH
12098 ;;
12099 siemens)
12100 need_lib_prefix=no
12101 ;;
12102 motorola)
12103 need_lib_prefix=no
12104 need_version=no
12105 shlibpath_overrides_runpath=no
12106 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12107 ;;
12108 esac
12109 ;;
12110
12111 sysv4*MP*)
12112 if test -d /usr/nec ;then
12113 version_type=linux
12114 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12115 soname_spec='$libname${shared_ext}.$major'
12116 shlibpath_var=LD_LIBRARY_PATH
12117 fi
12118 ;;
12119
12120 uts4*)
12121 version_type=linux
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 shlibpath_var=LD_LIBRARY_PATH
12125 ;;
12126
12127 *)
12128 dynamic_linker=no
12129 ;;
12130 esac
12131 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12132 echo "${ECHO_T}$dynamic_linker" >&6
12133 test "$dynamic_linker" = no && can_build_shared=no
12134
12135 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12136 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12137 hardcode_action_CXX=
12138 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12139 test -n "$runpath_var_CXX" || \
12140 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12141
12142 # We can hardcode non-existant directories.
12143 if test "$hardcode_direct_CXX" != no &&
12144 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12145 # have to relink, otherwise we might link with an installed library
12146 # when we should be linking with a yet-to-be-installed one
12147 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12148 test "$hardcode_minus_L_CXX" != no; then
12149 # Linking always hardcodes the temporary library directory.
12150 hardcode_action_CXX=relink
12151 else
12152 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12153 hardcode_action_CXX=immediate
12154 fi
12155 else
12156 # We cannot hardcode anything, or else we can only hardcode existing
12157 # directories.
12158 hardcode_action_CXX=unsupported
12159 fi
12160 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12161 echo "${ECHO_T}$hardcode_action_CXX" >&6
12162
12163 if test "$hardcode_action_CXX" = relink; then
12164 # Fast installation is not supported
12165 enable_fast_install=no
12166 elif test "$shlibpath_overrides_runpath" = yes ||
12167 test "$enable_shared" = no; then
12168 # Fast installation is not necessary
12169 enable_fast_install=needless
12170 fi
12171
12172 striplib=
12173 old_striplib=
12174 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12175 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12176 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12177 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12178 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12179 echo "$as_me:$LINENO: result: yes" >&5
12180 echo "${ECHO_T}yes" >&6
12181 else
12182 # FIXME - insert some real tests, host_os isn't really good enough
12183 case $host_os in
12184 darwin*)
12185 if test -n "$STRIP" ; then
12186 striplib="$STRIP -x"
12187 echo "$as_me:$LINENO: result: yes" >&5
12188 echo "${ECHO_T}yes" >&6
12189 else
12190 echo "$as_me:$LINENO: result: no" >&5
12191 echo "${ECHO_T}no" >&6
12192 fi
12193 ;;
12194 *)
12195 echo "$as_me:$LINENO: result: no" >&5
12196 echo "${ECHO_T}no" >&6
12197 ;;
12198 esac
12199 fi
12200
12201 if test "x$enable_dlopen" != xyes; then
12202 enable_dlopen=unknown
12203 enable_dlopen_self=unknown
12204 enable_dlopen_self_static=unknown
12205 else
12206 lt_cv_dlopen=no
12207 lt_cv_dlopen_libs=
12208
12209 case $host_os in
12210 beos*)
12211 lt_cv_dlopen="load_add_on"
12212 lt_cv_dlopen_libs=
12213 lt_cv_dlopen_self=yes
12214 ;;
12215
12216 mingw* | pw32*)
12217 lt_cv_dlopen="LoadLibrary"
12218 lt_cv_dlopen_libs=
12219 ;;
12220
12221 cygwin*)
12222 lt_cv_dlopen="dlopen"
12223 lt_cv_dlopen_libs=
12224 ;;
12225
12226 darwin*)
12227 # if libdl is installed we need to link against it
12228 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12229 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12230 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233 ac_check_lib_save_LIBS=$LIBS
12234 LIBS="-ldl $LIBS"
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241
12242 /* Override any gcc2 internal prototype to avoid an error. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 /* We use char because int might match the return type of a gcc2
12247 builtin and then its argument prototype would still apply. */
12248 char dlopen ();
12249 int
12250 main ()
12251 {
12252 dlopen ();
12253 ;
12254 return 0;
12255 }
12256 _ACEOF
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -z "$ac_cxx_werror_flag"
12267 || test ! -s conftest.err'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; } &&
12273 { ac_try='test -s conftest$ac_exeext'
12274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); }; }; then
12279 ac_cv_lib_dl_dlopen=yes
12280 else
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284 ac_cv_lib_dl_dlopen=no
12285 fi
12286 rm -f conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12289 fi
12290 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12291 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12292 if test $ac_cv_lib_dl_dlopen = yes; then
12293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12294 else
12295
12296 lt_cv_dlopen="dyld"
12297 lt_cv_dlopen_libs=
12298 lt_cv_dlopen_self=yes
12299
12300 fi
12301
12302 ;;
12303
12304 *)
12305 echo "$as_me:$LINENO: checking for shl_load" >&5
12306 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12307 if test "${ac_cv_func_shl_load+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12318 #define shl_load innocuous_shl_load
12319
12320 /* System header to define __stub macros and hopefully few prototypes,
12321 which can conflict with char shl_load (); below.
12322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12323 <limits.h> exists even on freestanding compilers. */
12324
12325 #ifdef __STDC__
12326 # include <limits.h>
12327 #else
12328 # include <assert.h>
12329 #endif
12330
12331 #undef shl_load
12332
12333 /* Override any gcc2 internal prototype to avoid an error. */
12334 #ifdef __cplusplus
12335 extern "C"
12336 {
12337 #endif
12338 /* We use char because int might match the return type of a gcc2
12339 builtin and then its argument prototype would still apply. */
12340 char shl_load ();
12341 /* The GNU C library defines this for functions which it implements
12342 to always fail with ENOSYS. Some functions are actually named
12343 something starting with __ and the normal name is an alias. */
12344 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12345 choke me
12346 #else
12347 char (*f) () = shl_load;
12348 #endif
12349 #ifdef __cplusplus
12350 }
12351 #endif
12352
12353 int
12354 main ()
12355 {
12356 return f != shl_load;
12357 ;
12358 return 0;
12359 }
12360 _ACEOF
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
12370 { ac_try='test -z "$ac_cxx_werror_flag"
12371 || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest$ac_exeext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_func_shl_load=yes
12384 else
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_cv_func_shl_load=no
12389 fi
12390 rm -f conftest.err conftest.$ac_objext \
12391 conftest$ac_exeext conftest.$ac_ext
12392 fi
12393 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12394 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12395 if test $ac_cv_func_shl_load = yes; then
12396 lt_cv_dlopen="shl_load"
12397 else
12398 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12399 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12400 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403 ac_check_lib_save_LIBS=$LIBS
12404 LIBS="-ldld $LIBS"
12405 cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h. */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12411
12412 /* Override any gcc2 internal prototype to avoid an error. */
12413 #ifdef __cplusplus
12414 extern "C"
12415 #endif
12416 /* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12418 char shl_load ();
12419 int
12420 main ()
12421 {
12422 shl_load ();
12423 ;
12424 return 0;
12425 }
12426 _ACEOF
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_cxx_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_lib_dld_shl_load=yes
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454 ac_cv_lib_dld_shl_load=no
12455 fi
12456 rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12459 fi
12460 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12461 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12462 if test $ac_cv_lib_dld_shl_load = yes; then
12463 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12464 else
12465 echo "$as_me:$LINENO: checking for dlopen" >&5
12466 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12467 if test "${ac_cv_func_dlopen+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12478 #define dlopen innocuous_dlopen
12479
12480 /* System header to define __stub macros and hopefully few prototypes,
12481 which can conflict with char dlopen (); below.
12482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12483 <limits.h> exists even on freestanding compilers. */
12484
12485 #ifdef __STDC__
12486 # include <limits.h>
12487 #else
12488 # include <assert.h>
12489 #endif
12490
12491 #undef dlopen
12492
12493 /* Override any gcc2 internal prototype to avoid an error. */
12494 #ifdef __cplusplus
12495 extern "C"
12496 {
12497 #endif
12498 /* We use char because int might match the return type of a gcc2
12499 builtin and then its argument prototype would still apply. */
12500 char dlopen ();
12501 /* The GNU C library defines this for functions which it implements
12502 to always fail with ENOSYS. Some functions are actually named
12503 something starting with __ and the normal name is an alias. */
12504 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12505 choke me
12506 #else
12507 char (*f) () = dlopen;
12508 #endif
12509 #ifdef __cplusplus
12510 }
12511 #endif
12512
12513 int
12514 main ()
12515 {
12516 return f != dlopen;
12517 ;
12518 return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523 (eval $ac_link) 2>conftest.er1
12524 ac_status=$?
12525 grep -v '^ *+' conftest.er1 >conftest.err
12526 rm -f conftest.er1
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_cxx_werror_flag"
12531 || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_cv_func_dlopen=yes
12544 else
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 ac_cv_func_dlopen=no
12549 fi
12550 rm -f conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12552 fi
12553 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12554 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12555 if test $ac_cv_func_dlopen = yes; then
12556 lt_cv_dlopen="dlopen"
12557 else
12558 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12559 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12560 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563 ac_check_lib_save_LIBS=$LIBS
12564 LIBS="-ldl $LIBS"
12565 cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h. */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571
12572 /* Override any gcc2 internal prototype to avoid an error. */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 /* We use char because int might match the return type of a gcc2
12577 builtin and then its argument prototype would still apply. */
12578 char dlopen ();
12579 int
12580 main ()
12581 {
12582 dlopen ();
12583 ;
12584 return 0;
12585 }
12586 _ACEOF
12587 rm -f conftest.$ac_objext conftest$ac_exeext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12589 (eval $ac_link) 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_cxx_werror_flag"
12597 || test ! -s conftest.err'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest$ac_exeext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ac_cv_lib_dl_dlopen=yes
12610 else
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 ac_cv_lib_dl_dlopen=no
12615 fi
12616 rm -f conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12618 LIBS=$ac_check_lib_save_LIBS
12619 fi
12620 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12621 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12622 if test $ac_cv_lib_dl_dlopen = yes; then
12623 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12624 else
12625 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12626 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12627 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630 ac_check_lib_save_LIBS=$LIBS
12631 LIBS="-lsvld $LIBS"
12632 cat >conftest.$ac_ext <<_ACEOF
12633 /* confdefs.h. */
12634 _ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12638
12639 /* Override any gcc2 internal prototype to avoid an error. */
12640 #ifdef __cplusplus
12641 extern "C"
12642 #endif
12643 /* We use char because int might match the return type of a gcc2
12644 builtin and then its argument prototype would still apply. */
12645 char dlopen ();
12646 int
12647 main ()
12648 {
12649 dlopen ();
12650 ;
12651 return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12656 (eval $ac_link) 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_cxx_werror_flag"
12664 || test ! -s conftest.err'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } &&
12670 { ac_try='test -s conftest$ac_exeext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_cv_lib_svld_dlopen=yes
12677 else
12678 echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 ac_cv_lib_svld_dlopen=no
12682 fi
12683 rm -f conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12685 LIBS=$ac_check_lib_save_LIBS
12686 fi
12687 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12688 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12689 if test $ac_cv_lib_svld_dlopen = yes; then
12690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12691 else
12692 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12693 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12694 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697 ac_check_lib_save_LIBS=$LIBS
12698 LIBS="-ldld $LIBS"
12699 cat >conftest.$ac_ext <<_ACEOF
12700 /* confdefs.h. */
12701 _ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12705
12706 /* Override any gcc2 internal prototype to avoid an error. */
12707 #ifdef __cplusplus
12708 extern "C"
12709 #endif
12710 /* We use char because int might match the return type of a gcc2
12711 builtin and then its argument prototype would still apply. */
12712 char dld_link ();
12713 int
12714 main ()
12715 {
12716 dld_link ();
12717 ;
12718 return 0;
12719 }
12720 _ACEOF
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12723 (eval $ac_link) 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_cxx_werror_flag"
12731 || test ! -s conftest.err'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } &&
12737 { ac_try='test -s conftest$ac_exeext'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12743 ac_cv_lib_dld_dld_link=yes
12744 else
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12747
12748 ac_cv_lib_dld_dld_link=no
12749 fi
12750 rm -f conftest.err conftest.$ac_objext \
12751 conftest$ac_exeext conftest.$ac_ext
12752 LIBS=$ac_check_lib_save_LIBS
12753 fi
12754 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12755 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12756 if test $ac_cv_lib_dld_dld_link = yes; then
12757 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12758 fi
12759
12760
12761 fi
12762
12763
12764 fi
12765
12766
12767 fi
12768
12769
12770 fi
12771
12772
12773 fi
12774
12775 ;;
12776 esac
12777
12778 if test "x$lt_cv_dlopen" != xno; then
12779 enable_dlopen=yes
12780 else
12781 enable_dlopen=no
12782 fi
12783
12784 case $lt_cv_dlopen in
12785 dlopen)
12786 save_CPPFLAGS="$CPPFLAGS"
12787 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12788
12789 save_LDFLAGS="$LDFLAGS"
12790 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12791
12792 save_LIBS="$LIBS"
12793 LIBS="$lt_cv_dlopen_libs $LIBS"
12794
12795 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12796 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12797 if test "${lt_cv_dlopen_self+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800 if test "$cross_compiling" = yes; then :
12801 lt_cv_dlopen_self=cross
12802 else
12803 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12804 lt_status=$lt_dlunknown
12805 cat > conftest.$ac_ext <<EOF
12806 #line 12806 "configure"
12807 #include "confdefs.h"
12808
12809 #if HAVE_DLFCN_H
12810 #include <dlfcn.h>
12811 #endif
12812
12813 #include <stdio.h>
12814
12815 #ifdef RTLD_GLOBAL
12816 # define LT_DLGLOBAL RTLD_GLOBAL
12817 #else
12818 # ifdef DL_GLOBAL
12819 # define LT_DLGLOBAL DL_GLOBAL
12820 # else
12821 # define LT_DLGLOBAL 0
12822 # endif
12823 #endif
12824
12825 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12826 find out it does not work in some platform. */
12827 #ifndef LT_DLLAZY_OR_NOW
12828 # ifdef RTLD_LAZY
12829 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12830 # else
12831 # ifdef DL_LAZY
12832 # define LT_DLLAZY_OR_NOW DL_LAZY
12833 # else
12834 # ifdef RTLD_NOW
12835 # define LT_DLLAZY_OR_NOW RTLD_NOW
12836 # else
12837 # ifdef DL_NOW
12838 # define LT_DLLAZY_OR_NOW DL_NOW
12839 # else
12840 # define LT_DLLAZY_OR_NOW 0
12841 # endif
12842 # endif
12843 # endif
12844 # endif
12845 #endif
12846
12847 #ifdef __cplusplus
12848 extern "C" void exit (int);
12849 #endif
12850
12851 void fnord() { int i=42;}
12852 int main ()
12853 {
12854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12855 int status = $lt_dlunknown;
12856
12857 if (self)
12858 {
12859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12860 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12861 /* dlclose (self); */
12862 }
12863
12864 exit (status);
12865 }
12866 EOF
12867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12868 (eval $ac_link) 2>&5
12869 ac_status=$?
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12872 (./conftest; exit; ) 2>/dev/null
12873 lt_status=$?
12874 case x$lt_status in
12875 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12876 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12877 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12878 esac
12879 else :
12880 # compilation failed
12881 lt_cv_dlopen_self=no
12882 fi
12883 fi
12884 rm -fr conftest*
12885
12886
12887 fi
12888 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12889 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12890
12891 if test "x$lt_cv_dlopen_self" = xyes; then
12892 LDFLAGS="$LDFLAGS $link_static_flag"
12893 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12894 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12895 if test "${lt_cv_dlopen_self_static+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898 if test "$cross_compiling" = yes; then :
12899 lt_cv_dlopen_self_static=cross
12900 else
12901 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12902 lt_status=$lt_dlunknown
12903 cat > conftest.$ac_ext <<EOF
12904 #line 12904 "configure"
12905 #include "confdefs.h"
12906
12907 #if HAVE_DLFCN_H
12908 #include <dlfcn.h>
12909 #endif
12910
12911 #include <stdio.h>
12912
12913 #ifdef RTLD_GLOBAL
12914 # define LT_DLGLOBAL RTLD_GLOBAL
12915 #else
12916 # ifdef DL_GLOBAL
12917 # define LT_DLGLOBAL DL_GLOBAL
12918 # else
12919 # define LT_DLGLOBAL 0
12920 # endif
12921 #endif
12922
12923 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12924 find out it does not work in some platform. */
12925 #ifndef LT_DLLAZY_OR_NOW
12926 # ifdef RTLD_LAZY
12927 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12928 # else
12929 # ifdef DL_LAZY
12930 # define LT_DLLAZY_OR_NOW DL_LAZY
12931 # else
12932 # ifdef RTLD_NOW
12933 # define LT_DLLAZY_OR_NOW RTLD_NOW
12934 # else
12935 # ifdef DL_NOW
12936 # define LT_DLLAZY_OR_NOW DL_NOW
12937 # else
12938 # define LT_DLLAZY_OR_NOW 0
12939 # endif
12940 # endif
12941 # endif
12942 # endif
12943 #endif
12944
12945 #ifdef __cplusplus
12946 extern "C" void exit (int);
12947 #endif
12948
12949 void fnord() { int i=42;}
12950 int main ()
12951 {
12952 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12953 int status = $lt_dlunknown;
12954
12955 if (self)
12956 {
12957 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12958 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12959 /* dlclose (self); */
12960 }
12961
12962 exit (status);
12963 }
12964 EOF
12965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12966 (eval $ac_link) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12970 (./conftest; exit; ) 2>/dev/null
12971 lt_status=$?
12972 case x$lt_status in
12973 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12974 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12975 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12976 esac
12977 else :
12978 # compilation failed
12979 lt_cv_dlopen_self_static=no
12980 fi
12981 fi
12982 rm -fr conftest*
12983
12984
12985 fi
12986 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12987 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12988 fi
12989
12990 CPPFLAGS="$save_CPPFLAGS"
12991 LDFLAGS="$save_LDFLAGS"
12992 LIBS="$save_LIBS"
12993 ;;
12994 esac
12995
12996 case $lt_cv_dlopen_self in
12997 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12998 *) enable_dlopen_self=unknown ;;
12999 esac
13000
13001 case $lt_cv_dlopen_self_static in
13002 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13003 *) enable_dlopen_self_static=unknown ;;
13004 esac
13005 fi
13006
13007
13008 # The else clause should only fire when bootstrapping the
13009 # libtool distribution, otherwise you forgot to ship ltmain.sh
13010 # with your package, and you will get complaints that there are
13011 # no rules to generate ltmain.sh.
13012 if test -f "$ltmain"; then
13013 # See if we are running on zsh, and set the options which allow our commands through
13014 # without removal of \ escapes.
13015 if test -n "${ZSH_VERSION+set}" ; then
13016 setopt NO_GLOB_SUBST
13017 fi
13018 # Now quote all the things that may contain metacharacters while being
13019 # careful not to overquote the AC_SUBSTed values. We take copies of the
13020 # variables and quote the copies for generation of the libtool script.
13021 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13022 SED SHELL STRIP \
13023 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13024 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13025 deplibs_check_method reload_flag reload_cmds need_locks \
13026 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13027 lt_cv_sys_global_symbol_to_c_name_address \
13028 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13029 old_postinstall_cmds old_postuninstall_cmds \
13030 compiler_CXX \
13031 CC_CXX \
13032 LD_CXX \
13033 lt_prog_compiler_wl_CXX \
13034 lt_prog_compiler_pic_CXX \
13035 lt_prog_compiler_static_CXX \
13036 lt_prog_compiler_no_builtin_flag_CXX \
13037 export_dynamic_flag_spec_CXX \
13038 thread_safe_flag_spec_CXX \
13039 whole_archive_flag_spec_CXX \
13040 enable_shared_with_static_runtimes_CXX \
13041 old_archive_cmds_CXX \
13042 old_archive_from_new_cmds_CXX \
13043 predep_objects_CXX \
13044 postdep_objects_CXX \
13045 predeps_CXX \
13046 postdeps_CXX \
13047 compiler_lib_search_path_CXX \
13048 archive_cmds_CXX \
13049 archive_expsym_cmds_CXX \
13050 postinstall_cmds_CXX \
13051 postuninstall_cmds_CXX \
13052 old_archive_from_expsyms_cmds_CXX \
13053 allow_undefined_flag_CXX \
13054 no_undefined_flag_CXX \
13055 export_symbols_cmds_CXX \
13056 hardcode_libdir_flag_spec_CXX \
13057 hardcode_libdir_flag_spec_ld_CXX \
13058 hardcode_libdir_separator_CXX \
13059 hardcode_automatic_CXX \
13060 module_cmds_CXX \
13061 module_expsym_cmds_CXX \
13062 lt_cv_prog_compiler_c_o_CXX \
13063 exclude_expsyms_CXX \
13064 include_expsyms_CXX; do
13065
13066 case $var in
13067 old_archive_cmds_CXX | \
13068 old_archive_from_new_cmds_CXX | \
13069 archive_cmds_CXX | \
13070 archive_expsym_cmds_CXX | \
13071 module_cmds_CXX | \
13072 module_expsym_cmds_CXX | \
13073 old_archive_from_expsyms_cmds_CXX | \
13074 export_symbols_cmds_CXX | \
13075 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13076 postinstall_cmds | postuninstall_cmds | \
13077 old_postinstall_cmds | old_postuninstall_cmds | \
13078 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13079 # Double-quote double-evaled strings.
13080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13081 ;;
13082 *)
13083 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13084 ;;
13085 esac
13086 done
13087
13088 case $lt_echo in
13089 *'\$0 --fallback-echo"')
13090 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13091 ;;
13092 esac
13093
13094 cfgfile="$ofile"
13095
13096 cat <<__EOF__ >> "$cfgfile"
13097 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13098
13099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13100
13101 # Shell to use when invoking shell scripts.
13102 SHELL=$lt_SHELL
13103
13104 # Whether or not to build shared libraries.
13105 build_libtool_libs=$enable_shared
13106
13107 # Whether or not to build static libraries.
13108 build_old_libs=$enable_static
13109
13110 # Whether or not to add -lc for building shared libraries.
13111 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13112
13113 # Whether or not to disallow shared libs when runtime libs are static
13114 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13115
13116 # Whether or not to optimize for fast installation.
13117 fast_install=$enable_fast_install
13118
13119 # The host system.
13120 host_alias=$host_alias
13121 host=$host
13122 host_os=$host_os
13123
13124 # The build system.
13125 build_alias=$build_alias
13126 build=$build
13127 build_os=$build_os
13128
13129 # An echo program that does not interpret backslashes.
13130 echo=$lt_echo
13131
13132 # The archiver.
13133 AR=$lt_AR
13134 AR_FLAGS=$lt_AR_FLAGS
13135
13136 # A C compiler.
13137 LTCC=$lt_LTCC
13138
13139 # A language-specific compiler.
13140 CC=$lt_compiler_CXX
13141
13142 # Is the compiler the GNU C compiler?
13143 with_gcc=$GCC_CXX
13144
13145 # An ERE matcher.
13146 EGREP=$lt_EGREP
13147
13148 # The linker used to build libraries.
13149 LD=$lt_LD_CXX
13150
13151 # Whether we need hard or soft links.
13152 LN_S=$lt_LN_S
13153
13154 # A BSD-compatible nm program.
13155 NM=$lt_NM
13156
13157 # A symbol stripping program
13158 STRIP=$lt_STRIP
13159
13160 # Used to examine libraries when file_magic_cmd begins "file"
13161 MAGIC_CMD=$MAGIC_CMD
13162
13163 # Used on cygwin: DLL creation program.
13164 DLLTOOL="$DLLTOOL"
13165
13166 # Used on cygwin: object dumper.
13167 OBJDUMP="$OBJDUMP"
13168
13169 # Used on cygwin: assembler.
13170 AS="$AS"
13171
13172 # The name of the directory that contains temporary libtool files.
13173 objdir=$objdir
13174
13175 # How to create reloadable object files.
13176 reload_flag=$lt_reload_flag
13177 reload_cmds=$lt_reload_cmds
13178
13179 # How to pass a linker flag through the compiler.
13180 wl=$lt_lt_prog_compiler_wl_CXX
13181
13182 # Object file suffix (normally "o").
13183 objext="$ac_objext"
13184
13185 # Old archive suffix (normally "a").
13186 libext="$libext"
13187
13188 # Shared library suffix (normally ".so").
13189 shrext_cmds='$shrext_cmds'
13190
13191 # Executable file suffix (normally "").
13192 exeext="$exeext"
13193
13194 # Additional compiler flags for building library objects.
13195 pic_flag=$lt_lt_prog_compiler_pic_CXX
13196 pic_mode=$pic_mode
13197
13198 # What is the maximum length of a command?
13199 max_cmd_len=$lt_cv_sys_max_cmd_len
13200
13201 # Does compiler simultaneously support -c and -o options?
13202 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13203
13204 # Must we lock files when doing compilation?
13205 need_locks=$lt_need_locks
13206
13207 # Do we need the lib prefix for modules?
13208 need_lib_prefix=$need_lib_prefix
13209
13210 # Do we need a version for libraries?
13211 need_version=$need_version
13212
13213 # Whether dlopen is supported.
13214 dlopen_support=$enable_dlopen
13215
13216 # Whether dlopen of programs is supported.
13217 dlopen_self=$enable_dlopen_self
13218
13219 # Whether dlopen of statically linked programs is supported.
13220 dlopen_self_static=$enable_dlopen_self_static
13221
13222 # Compiler flag to prevent dynamic linking.
13223 link_static_flag=$lt_lt_prog_compiler_static_CXX
13224
13225 # Compiler flag to turn off builtin functions.
13226 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13227
13228 # Compiler flag to allow reflexive dlopens.
13229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13230
13231 # Compiler flag to generate shared objects directly from archives.
13232 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13233
13234 # Compiler flag to generate thread-safe objects.
13235 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13236
13237 # Library versioning type.
13238 version_type=$version_type
13239
13240 # Format of library name prefix.
13241 libname_spec=$lt_libname_spec
13242
13243 # List of archive names. First name is the real one, the rest are links.
13244 # The last name is the one that the linker finds with -lNAME.
13245 library_names_spec=$lt_library_names_spec
13246
13247 # The coded name of the library, if different from the real name.
13248 soname_spec=$lt_soname_spec
13249
13250 # Commands used to build and install an old-style archive.
13251 RANLIB=$lt_RANLIB
13252 old_archive_cmds=$lt_old_archive_cmds_CXX
13253 old_postinstall_cmds=$lt_old_postinstall_cmds
13254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13255
13256 # Create an old-style archive from a shared archive.
13257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13258
13259 # Create a temporary old-style archive to link instead of a shared archive.
13260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13261
13262 # Commands used to build and install a shared archive.
13263 archive_cmds=$lt_archive_cmds_CXX
13264 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13265 postinstall_cmds=$lt_postinstall_cmds
13266 postuninstall_cmds=$lt_postuninstall_cmds
13267
13268 # Commands used to build a loadable module (assumed same as above if empty)
13269 module_cmds=$lt_module_cmds_CXX
13270 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13271
13272 # Commands to strip libraries.
13273 old_striplib=$lt_old_striplib
13274 striplib=$lt_striplib
13275
13276 # Dependencies to place before the objects being linked to create a
13277 # shared library.
13278 predep_objects=$lt_predep_objects_CXX
13279
13280 # Dependencies to place after the objects being linked to create a
13281 # shared library.
13282 postdep_objects=$lt_postdep_objects_CXX
13283
13284 # Dependencies to place before the objects being linked to create a
13285 # shared library.
13286 predeps=$lt_predeps_CXX
13287
13288 # Dependencies to place after the objects being linked to create a
13289 # shared library.
13290 postdeps=$lt_postdeps_CXX
13291
13292 # The library search path used internally by the compiler when linking
13293 # a shared library.
13294 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13295
13296 # Method to check whether dependent libraries are shared objects.
13297 deplibs_check_method=$lt_deplibs_check_method
13298
13299 # Command to use when deplibs_check_method == file_magic.
13300 file_magic_cmd=$lt_file_magic_cmd
13301
13302 # Flag that allows shared libraries with undefined symbols to be built.
13303 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13304
13305 # Flag that forces no undefined symbols.
13306 no_undefined_flag=$lt_no_undefined_flag_CXX
13307
13308 # Commands used to finish a libtool library installation in a directory.
13309 finish_cmds=$lt_finish_cmds
13310
13311 # Same as above, but a single script fragment to be evaled but not shown.
13312 finish_eval=$lt_finish_eval
13313
13314 # Take the output of nm and produce a listing of raw symbols and C names.
13315 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13316
13317 # Transform the output of nm in a proper C declaration
13318 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13319
13320 # Transform the output of nm in a C name address pair
13321 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13322
13323 # This is the shared library runtime path variable.
13324 runpath_var=$runpath_var
13325
13326 # This is the shared library path variable.
13327 shlibpath_var=$shlibpath_var
13328
13329 # Is shlibpath searched before the hard-coded library search path?
13330 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13331
13332 # How to hardcode a shared library path into an executable.
13333 hardcode_action=$hardcode_action_CXX
13334
13335 # Whether we should hardcode library paths into libraries.
13336 hardcode_into_libs=$hardcode_into_libs
13337
13338 # Flag to hardcode \$libdir into a binary during linking.
13339 # This must work even if \$libdir does not exist.
13340 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13341
13342 # If ld is used when linking, flag to hardcode \$libdir into
13343 # a binary during linking. This must work even if \$libdir does
13344 # not exist.
13345 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13346
13347 # Whether we need a single -rpath flag with a separated argument.
13348 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13349
13350 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13351 # resulting binary.
13352 hardcode_direct=$hardcode_direct_CXX
13353
13354 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13355 # resulting binary.
13356 hardcode_minus_L=$hardcode_minus_L_CXX
13357
13358 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13359 # the resulting binary.
13360 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13361
13362 # Set to yes if building a shared library automatically hardcodes DIR into the library
13363 # and all subsequent libraries and executables linked against it.
13364 hardcode_automatic=$hardcode_automatic_CXX
13365
13366 # Variables whose values should be saved in libtool wrapper scripts and
13367 # restored at relink time.
13368 variables_saved_for_relink="$variables_saved_for_relink"
13369
13370 # Whether libtool must link a program against all its dependency libraries.
13371 link_all_deplibs=$link_all_deplibs_CXX
13372
13373 # Compile-time system search path for libraries
13374 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13375
13376 # Run-time system search path for libraries
13377 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13378
13379 # Fix the shell variable \$srcfile for the compiler.
13380 fix_srcfile_path="$fix_srcfile_path_CXX"
13381
13382 # Set to yes if exported symbols are required.
13383 always_export_symbols=$always_export_symbols_CXX
13384
13385 # The commands to list exported symbols.
13386 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13387
13388 # The commands to extract the exported symbol list from a shared archive.
13389 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13390
13391 # Symbols that should not be listed in the preloaded symbols.
13392 exclude_expsyms=$lt_exclude_expsyms_CXX
13393
13394 # Symbols that must always be exported.
13395 include_expsyms=$lt_include_expsyms_CXX
13396
13397 # ### END LIBTOOL TAG CONFIG: $tagname
13398
13399 __EOF__
13400
13401
13402 else
13403 # If there is no Makefile yet, we rely on a make rule to execute
13404 # `config.status --recheck' to rerun these tests and create the
13405 # libtool script then.
13406 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13407 if test -f "$ltmain_in"; then
13408 test -f Makefile && make "$ltmain"
13409 fi
13410 fi
13411
13412
13413 ac_ext=c
13414 ac_cpp='$CPP $CPPFLAGS'
13415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13418
13419 CC=$lt_save_CC
13420 LDCXX=$LD
13421 LD=$lt_save_LD
13422 GCC=$lt_save_GCC
13423 with_gnu_ldcxx=$with_gnu_ld
13424 with_gnu_ld=$lt_save_with_gnu_ld
13425 lt_cv_path_LDCXX=$lt_cv_path_LD
13426 lt_cv_path_LD=$lt_save_path_LD
13427 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13428 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13429
13430 else
13431 tagname=""
13432 fi
13433 ;;
13434
13435 F77)
13436 if test -n "$F77" && test "X$F77" != "Xno"; then
13437
13438 ac_ext=f
13439 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13440 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13441 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13442
13443
13444 archive_cmds_need_lc_F77=no
13445 allow_undefined_flag_F77=
13446 always_export_symbols_F77=no
13447 archive_expsym_cmds_F77=
13448 export_dynamic_flag_spec_F77=
13449 hardcode_direct_F77=no
13450 hardcode_libdir_flag_spec_F77=
13451 hardcode_libdir_flag_spec_ld_F77=
13452 hardcode_libdir_separator_F77=
13453 hardcode_minus_L_F77=no
13454 hardcode_automatic_F77=no
13455 module_cmds_F77=
13456 module_expsym_cmds_F77=
13457 link_all_deplibs_F77=unknown
13458 old_archive_cmds_F77=$old_archive_cmds
13459 no_undefined_flag_F77=
13460 whole_archive_flag_spec_F77=
13461 enable_shared_with_static_runtimes_F77=no
13462
13463 # Source file extension for f77 test sources.
13464 ac_ext=f
13465
13466 # Object file extension for compiled f77 test sources.
13467 objext=o
13468 objext_F77=$objext
13469
13470 # Code to be used in simple compile tests
13471 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13472
13473 # Code to be used in simple link tests
13474 lt_simple_link_test_code=" program t\n end\n"
13475
13476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13477
13478 # If no C compiler was specified, use CC.
13479 LTCC=${LTCC-"$CC"}
13480
13481 # Allow CC to be a program name with arguments.
13482 compiler=$CC
13483
13484
13485 # save warnings/boilerplate of simple test code
13486 ac_outfile=conftest.$ac_objext
13487 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13488 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13489 _lt_compiler_boilerplate=`cat conftest.err`
13490 $rm conftest*
13491
13492 ac_outfile=conftest.$ac_objext
13493 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13494 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13495 _lt_linker_boilerplate=`cat conftest.err`
13496 $rm conftest*
13497
13498
13499 # Allow CC to be a program name with arguments.
13500 lt_save_CC="$CC"
13501 CC=${F77-"f77"}
13502 compiler=$CC
13503 compiler_F77=$CC
13504 for cc_temp in $compiler""; do
13505 case $cc_temp in
13506 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13507 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13508 \-*) ;;
13509 *) break;;
13510 esac
13511 done
13512 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13513
13514
13515 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13516 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13517 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13518 echo "${ECHO_T}$can_build_shared" >&6
13519
13520 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13521 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13522 test "$can_build_shared" = "no" && enable_shared=no
13523
13524 # On AIX, shared libraries and static libraries use the same namespace, and
13525 # are all built from PIC.
13526 case "$host_os" in
13527 aix3*)
13528 test "$enable_shared" = yes && enable_static=no
13529 if test -n "$RANLIB"; then
13530 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13531 postinstall_cmds='$RANLIB $lib'
13532 fi
13533 ;;
13534 aix4* | aix5*)
13535 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13536 test "$enable_shared" = yes && enable_static=no
13537 fi
13538 ;;
13539 esac
13540 echo "$as_me:$LINENO: result: $enable_shared" >&5
13541 echo "${ECHO_T}$enable_shared" >&6
13542
13543 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13544 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13545 # Make sure either enable_shared or enable_static is yes.
13546 test "$enable_shared" = yes || enable_static=yes
13547 echo "$as_me:$LINENO: result: $enable_static" >&5
13548 echo "${ECHO_T}$enable_static" >&6
13549
13550 test "$ld_shlibs_F77" = no && can_build_shared=no
13551
13552 GCC_F77="$G77"
13553 LD_F77="$LD"
13554
13555 lt_prog_compiler_wl_F77=
13556 lt_prog_compiler_pic_F77=
13557 lt_prog_compiler_static_F77=
13558
13559 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13560 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13561
13562 if test "$GCC" = yes; then
13563 lt_prog_compiler_wl_F77='-Wl,'
13564 lt_prog_compiler_static_F77='-static'
13565
13566 case $host_os in
13567 aix*)
13568 # All AIX code is PIC.
13569 if test "$host_cpu" = ia64; then
13570 # AIX 5 now supports IA64 processor
13571 lt_prog_compiler_static_F77='-Bstatic'
13572 fi
13573 ;;
13574
13575 amigaos*)
13576 # FIXME: we need at least 68020 code to build shared libraries, but
13577 # adding the `-m68020' flag to GCC prevents building anything better,
13578 # like `-m68040'.
13579 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13580 ;;
13581
13582 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13583 # PIC is the default for these OSes.
13584 ;;
13585
13586 mingw* | pw32* | os2*)
13587 # This hack is so that the source file can tell whether it is being
13588 # built for inclusion in a dll (and should export symbols for example).
13589 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13590 ;;
13591
13592 darwin* | rhapsody*)
13593 # PIC is the default on this platform
13594 # Common symbols not allowed in MH_DYLIB files
13595 lt_prog_compiler_pic_F77='-fno-common'
13596 ;;
13597
13598 msdosdjgpp*)
13599 # Just because we use GCC doesn't mean we suddenly get shared libraries
13600 # on systems that don't support them.
13601 lt_prog_compiler_can_build_shared_F77=no
13602 enable_shared=no
13603 ;;
13604
13605 sysv4*MP*)
13606 if test -d /usr/nec; then
13607 lt_prog_compiler_pic_F77=-Kconform_pic
13608 fi
13609 ;;
13610
13611 hpux*)
13612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13613 # not for PA HP-UX.
13614 case "$host_cpu" in
13615 hppa*64*|ia64*)
13616 # +Z the default
13617 ;;
13618 *)
13619 lt_prog_compiler_pic_F77='-fPIC'
13620 ;;
13621 esac
13622 ;;
13623
13624 *)
13625 lt_prog_compiler_pic_F77='-fPIC'
13626 ;;
13627 esac
13628 else
13629 # PORTME Check for flag to pass linker flags through the system compiler.
13630 case $host_os in
13631 aix*)
13632 lt_prog_compiler_wl_F77='-Wl,'
13633 if test "$host_cpu" = ia64; then
13634 # AIX 5 now supports IA64 processor
13635 lt_prog_compiler_static_F77='-Bstatic'
13636 else
13637 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13638 fi
13639 ;;
13640 darwin*)
13641 # PIC is the default on this platform
13642 # Common symbols not allowed in MH_DYLIB files
13643 case $cc_basename in
13644 xlc*)
13645 lt_prog_compiler_pic_F77='-qnocommon'
13646 lt_prog_compiler_wl_F77='-Wl,'
13647 ;;
13648 esac
13649 ;;
13650
13651 mingw* | pw32* | os2*)
13652 # This hack is so that the source file can tell whether it is being
13653 # built for inclusion in a dll (and should export symbols for example).
13654 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13655 ;;
13656
13657 hpux9* | hpux10* | hpux11*)
13658 lt_prog_compiler_wl_F77='-Wl,'
13659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13660 # not for PA HP-UX.
13661 case "$host_cpu" in
13662 hppa*64*|ia64*)
13663 # +Z the default
13664 ;;
13665 *)
13666 lt_prog_compiler_pic_F77='+Z'
13667 ;;
13668 esac
13669 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13670 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13671 ;;
13672
13673 irix5* | irix6* | nonstopux*)
13674 lt_prog_compiler_wl_F77='-Wl,'
13675 # PIC (with -KPIC) is the default.
13676 lt_prog_compiler_static_F77='-non_shared'
13677 ;;
13678
13679 newsos6)
13680 lt_prog_compiler_pic_F77='-KPIC'
13681 lt_prog_compiler_static_F77='-Bstatic'
13682 ;;
13683
13684 linux*)
13685 case $cc_basename in
13686 icc* | ecc*)
13687 lt_prog_compiler_wl_F77='-Wl,'
13688 lt_prog_compiler_pic_F77='-KPIC'
13689 lt_prog_compiler_static_F77='-static'
13690 ;;
13691 pgcc* | pgf77* | pgf90*)
13692 # Portland Group compilers (*not* the Pentium gcc compiler,
13693 # which looks to be a dead project)
13694 lt_prog_compiler_wl_F77='-Wl,'
13695 lt_prog_compiler_pic_F77='-fpic'
13696 lt_prog_compiler_static_F77='-static'
13697 ;;
13698 ccc*)
13699 lt_prog_compiler_wl_F77='-Wl,'
13700 # All Alpha code is PIC.
13701 lt_prog_compiler_static_F77='-non_shared'
13702 ;;
13703 esac
13704 ;;
13705
13706 osf3* | osf4* | osf5*)
13707 lt_prog_compiler_wl_F77='-Wl,'
13708 # All OSF/1 code is PIC.
13709 lt_prog_compiler_static_F77='-non_shared'
13710 ;;
13711
13712 sco3.2v5*)
13713 lt_prog_compiler_pic_F77='-Kpic'
13714 lt_prog_compiler_static_F77='-dn'
13715 ;;
13716
13717 solaris*)
13718 lt_prog_compiler_pic_F77='-KPIC'
13719 lt_prog_compiler_static_F77='-Bstatic'
13720 case $cc_basename in
13721 f77* | f90* | f95*)
13722 lt_prog_compiler_wl_F77='-Qoption ld ';;
13723 *)
13724 lt_prog_compiler_wl_F77='-Wl,';;
13725 esac
13726 ;;
13727
13728 sunos4*)
13729 lt_prog_compiler_wl_F77='-Qoption ld '
13730 lt_prog_compiler_pic_F77='-PIC'
13731 lt_prog_compiler_static_F77='-Bstatic'
13732 ;;
13733
13734 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13735 lt_prog_compiler_wl_F77='-Wl,'
13736 lt_prog_compiler_pic_F77='-KPIC'
13737 lt_prog_compiler_static_F77='-Bstatic'
13738 ;;
13739
13740 sysv4*MP*)
13741 if test -d /usr/nec ;then
13742 lt_prog_compiler_pic_F77='-Kconform_pic'
13743 lt_prog_compiler_static_F77='-Bstatic'
13744 fi
13745 ;;
13746
13747 unicos*)
13748 lt_prog_compiler_wl_F77='-Wl,'
13749 lt_prog_compiler_can_build_shared_F77=no
13750 ;;
13751
13752 uts4*)
13753 lt_prog_compiler_pic_F77='-pic'
13754 lt_prog_compiler_static_F77='-Bstatic'
13755 ;;
13756
13757 *)
13758 lt_prog_compiler_can_build_shared_F77=no
13759 ;;
13760 esac
13761 fi
13762
13763 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13764 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13765
13766 #
13767 # Check to make sure the PIC flag actually works.
13768 #
13769 if test -n "$lt_prog_compiler_pic_F77"; then
13770
13771 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13772 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13773 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776 lt_prog_compiler_pic_works_F77=no
13777 ac_outfile=conftest.$ac_objext
13778 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13779 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13780 # Insert the option either (1) after the last *FLAGS variable, or
13781 # (2) before a word containing "conftest.", or (3) at the end.
13782 # Note that $ac_compile itself does not contain backslashes and begins
13783 # with a dollar sign (not a hyphen), so the echo should work correctly.
13784 # The option is referenced via a variable to avoid confusing sed.
13785 lt_compile=`echo "$ac_compile" | $SED \
13786 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13788 -e 's:$: $lt_compiler_flag:'`
13789 (eval echo "\"\$as_me:13789: $lt_compile\"" >&5)
13790 (eval "$lt_compile" 2>conftest.err)
13791 ac_status=$?
13792 cat conftest.err >&5
13793 echo "$as_me:13793: \$? = $ac_status" >&5
13794 if (exit $ac_status) && test -s "$ac_outfile"; then
13795 # The compiler can only warn and ignore the option if not recognized
13796 # So say no if there are warnings other than the usual output.
13797 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13798 $SED '/^$/d' conftest.err >conftest.er2
13799 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13800 lt_prog_compiler_pic_works_F77=yes
13801 fi
13802 fi
13803 $rm conftest*
13804
13805 fi
13806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13807 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13808
13809 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13810 case $lt_prog_compiler_pic_F77 in
13811 "" | " "*) ;;
13812 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13813 esac
13814 else
13815 lt_prog_compiler_pic_F77=
13816 lt_prog_compiler_can_build_shared_F77=no
13817 fi
13818
13819 fi
13820 case "$host_os" in
13821 # For platforms which do not support PIC, -DPIC is meaningless:
13822 *djgpp*)
13823 lt_prog_compiler_pic_F77=
13824 ;;
13825 *)
13826 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13827 ;;
13828 esac
13829
13830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13832 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835 lt_cv_prog_compiler_c_o_F77=no
13836 $rm -r conftest 2>/dev/null
13837 mkdir conftest
13838 cd conftest
13839 mkdir out
13840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13841
13842 lt_compiler_flag="-o out/conftest2.$ac_objext"
13843 # Insert the option either (1) after the last *FLAGS variable, or
13844 # (2) before a word containing "conftest.", or (3) at the end.
13845 # Note that $ac_compile itself does not contain backslashes and begins
13846 # with a dollar sign (not a hyphen), so the echo should work correctly.
13847 lt_compile=`echo "$ac_compile" | $SED \
13848 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13850 -e 's:$: $lt_compiler_flag:'`
13851 (eval echo "\"\$as_me:13851: $lt_compile\"" >&5)
13852 (eval "$lt_compile" 2>out/conftest.err)
13853 ac_status=$?
13854 cat out/conftest.err >&5
13855 echo "$as_me:13855: \$? = $ac_status" >&5
13856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13857 then
13858 # The compiler can only warn and ignore the option if not recognized
13859 # So say no if there are warnings
13860 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13861 $SED '/^$/d' out/conftest.err >out/conftest.er2
13862 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13863 lt_cv_prog_compiler_c_o_F77=yes
13864 fi
13865 fi
13866 chmod u+w .
13867 $rm conftest*
13868 # SGI C++ compiler will create directory out/ii_files/ for
13869 # template instantiation
13870 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13871 $rm out/* && rmdir out
13872 cd ..
13873 rmdir conftest
13874 $rm conftest*
13875
13876 fi
13877 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13878 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13879
13880
13881 hard_links="nottested"
13882 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13883 # do not overwrite the value of need_locks provided by the user
13884 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13885 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13886 hard_links=yes
13887 $rm conftest*
13888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13889 touch conftest.a
13890 ln conftest.a conftest.b 2>&5 || hard_links=no
13891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13892 echo "$as_me:$LINENO: result: $hard_links" >&5
13893 echo "${ECHO_T}$hard_links" >&6
13894 if test "$hard_links" = no; then
13895 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13896 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13897 need_locks=warn
13898 fi
13899 else
13900 need_locks=no
13901 fi
13902
13903 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13904 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13905
13906 runpath_var=
13907 allow_undefined_flag_F77=
13908 enable_shared_with_static_runtimes_F77=no
13909 archive_cmds_F77=
13910 archive_expsym_cmds_F77=
13911 old_archive_From_new_cmds_F77=
13912 old_archive_from_expsyms_cmds_F77=
13913 export_dynamic_flag_spec_F77=
13914 whole_archive_flag_spec_F77=
13915 thread_safe_flag_spec_F77=
13916 hardcode_libdir_flag_spec_F77=
13917 hardcode_libdir_flag_spec_ld_F77=
13918 hardcode_libdir_separator_F77=
13919 hardcode_direct_F77=no
13920 hardcode_minus_L_F77=no
13921 hardcode_shlibpath_var_F77=unsupported
13922 link_all_deplibs_F77=unknown
13923 hardcode_automatic_F77=no
13924 module_cmds_F77=
13925 module_expsym_cmds_F77=
13926 always_export_symbols_F77=no
13927 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13928 # include_expsyms should be a list of space-separated symbols to be *always*
13929 # included in the symbol list
13930 include_expsyms_F77=
13931 # exclude_expsyms can be an extended regexp of symbols to exclude
13932 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13933 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13934 # as well as any symbol that contains `d'.
13935 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13937 # platforms (ab)use it in PIC code, but their linkers get confused if
13938 # the symbol is explicitly referenced. Since portable code cannot
13939 # rely on this symbol name, it's probably fine to never include it in
13940 # preloaded symbol tables.
13941 extract_expsyms_cmds=
13942 # Just being paranoid about ensuring that cc_basename is set.
13943 for cc_temp in $compiler""; do
13944 case $cc_temp in
13945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13947 \-*) ;;
13948 *) break;;
13949 esac
13950 done
13951 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13952
13953 case $host_os in
13954 cygwin* | mingw* | pw32*)
13955 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13956 # When not using gcc, we currently assume that we are using
13957 # Microsoft Visual C++.
13958 if test "$GCC" != yes; then
13959 with_gnu_ld=no
13960 fi
13961 ;;
13962 openbsd*)
13963 with_gnu_ld=no
13964 ;;
13965 esac
13966
13967 ld_shlibs_F77=yes
13968 if test "$with_gnu_ld" = yes; then
13969 # If archive_cmds runs LD, not CC, wlarc should be empty
13970 wlarc='${wl}'
13971
13972 # Set some defaults for GNU ld with shared library support. These
13973 # are reset later if shared libraries are not supported. Putting them
13974 # here allows them to be overridden if necessary.
13975 runpath_var=LD_RUN_PATH
13976 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13977 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13978 # ancient GNU ld didn't support --whole-archive et. al.
13979 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13980 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13981 else
13982 whole_archive_flag_spec_F77=
13983 fi
13984 supports_anon_versioning=no
13985 case `$LD -v 2>/dev/null` in
13986 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13987 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13988 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13989 *\ 2.11.*) ;; # other 2.11 versions
13990 *) supports_anon_versioning=yes ;;
13991 esac
13992
13993 # See if GNU ld supports shared libraries.
13994 case $host_os in
13995 aix3* | aix4* | aix5*)
13996 # On AIX/PPC, the GNU linker is very broken
13997 if test "$host_cpu" != ia64; then
13998 ld_shlibs_F77=no
13999 cat <<EOF 1>&2
14000
14001 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14002 *** to be unable to reliably create shared libraries on AIX.
14003 *** Therefore, libtool is disabling shared libraries support. If you
14004 *** really care for shared libraries, you may want to modify your PATH
14005 *** so that a non-GNU linker is found, and then restart.
14006
14007 EOF
14008 fi
14009 ;;
14010
14011 amigaos*)
14012 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)'
14013 hardcode_libdir_flag_spec_F77='-L$libdir'
14014 hardcode_minus_L_F77=yes
14015
14016 # Samuel A. Falvo II <[email protected]> reports
14017 # that the semantics of dynamic libraries on AmigaOS, at least up
14018 # to version 4, is to share data among multiple programs linked
14019 # with the same dynamic library. Since this doesn't match the
14020 # behavior of shared libraries on other platforms, we can't use
14021 # them.
14022 ld_shlibs_F77=no
14023 ;;
14024
14025 beos*)
14026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14027 allow_undefined_flag_F77=unsupported
14028 # Joseph Beckenbach <[email protected]> says some releases of gcc
14029 # support --undefined. This deserves some investigation. FIXME
14030 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14031 else
14032 ld_shlibs_F77=no
14033 fi
14034 ;;
14035
14036 cygwin* | mingw* | pw32*)
14037 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14038 # as there is no search path for DLLs.
14039 hardcode_libdir_flag_spec_F77='-L$libdir'
14040 allow_undefined_flag_F77=unsupported
14041 always_export_symbols_F77=no
14042 enable_shared_with_static_runtimes_F77=yes
14043 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14044
14045 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14046 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14047 # If the export-symbols file already is a .def file (1st line
14048 # is EXPORTS), use it as is; otherwise, prepend...
14049 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14050 cp $export_symbols $output_objdir/$soname.def;
14051 else
14052 echo EXPORTS > $output_objdir/$soname.def;
14053 cat $export_symbols >> $output_objdir/$soname.def;
14054 fi~
14055 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14056 else
14057 ld_shlibs_F77=no
14058 fi
14059 ;;
14060
14061 linux*)
14062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14063 tmp_addflag=
14064 case $cc_basename,$host_cpu in
14065 pgcc*) # Portland Group C compiler
14066 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14067 tmp_addflag=' $pic_flag'
14068 ;;
14069 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14070 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14071 tmp_addflag=' $pic_flag -Mnomain' ;;
14072 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14073 tmp_addflag=' -i_dynamic' ;;
14074 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14075 tmp_addflag=' -i_dynamic -nofor_main' ;;
14076 ifc* | ifort*) # Intel Fortran compiler
14077 tmp_addflag=' -nofor_main' ;;
14078 esac
14079 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14080
14081 if test $supports_anon_versioning = yes; then
14082 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14084 $echo "local: *; };" >> $output_objdir/$libname.ver~
14085 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14086 fi
14087 else
14088 ld_shlibs_F77=no
14089 fi
14090 ;;
14091
14092 netbsd*)
14093 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14094 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14095 wlarc=
14096 else
14097 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14098 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14099 fi
14100 ;;
14101
14102 solaris* | sysv5*)
14103 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14104 ld_shlibs_F77=no
14105 cat <<EOF 1>&2
14106
14107 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14108 *** create shared libraries on Solaris systems. Therefore, libtool
14109 *** is disabling shared libraries support. We urge you to upgrade GNU
14110 *** binutils to release 2.9.1 or newer. Another option is to modify
14111 *** your PATH or compiler configuration so that the native linker is
14112 *** used, and then restart.
14113
14114 EOF
14115 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14116 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14117 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14118 else
14119 ld_shlibs_F77=no
14120 fi
14121 ;;
14122
14123 sunos4*)
14124 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14125 wlarc=
14126 hardcode_direct_F77=yes
14127 hardcode_shlibpath_var_F77=no
14128 ;;
14129
14130 *)
14131 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14132 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14133 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14134 else
14135 ld_shlibs_F77=no
14136 fi
14137 ;;
14138 esac
14139
14140 if test "$ld_shlibs_F77" = no; then
14141 runpath_var=
14142 hardcode_libdir_flag_spec_F77=
14143 export_dynamic_flag_spec_F77=
14144 whole_archive_flag_spec_F77=
14145 fi
14146 else
14147 # PORTME fill in a description of your system's linker (not GNU ld)
14148 case $host_os in
14149 aix3*)
14150 allow_undefined_flag_F77=unsupported
14151 always_export_symbols_F77=yes
14152 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'
14153 # Note: this linker hardcodes the directories in LIBPATH if there
14154 # are no directories specified by -L.
14155 hardcode_minus_L_F77=yes
14156 if test "$GCC" = yes && test -z "$link_static_flag"; then
14157 # Neither direct hardcoding nor static linking is supported with a
14158 # broken collect2.
14159 hardcode_direct_F77=unsupported
14160 fi
14161 ;;
14162
14163 aix4* | aix5*)
14164 if test "$host_cpu" = ia64; then
14165 # On IA64, the linker does run time linking by default, so we don't
14166 # have to do anything special.
14167 aix_use_runtimelinking=no
14168 exp_sym_flag='-Bexport'
14169 no_entry_flag=""
14170 else
14171 # If we're using GNU nm, then we don't want the "-C" option.
14172 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14173 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14174 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'
14175 else
14176 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'
14177 fi
14178 aix_use_runtimelinking=no
14179
14180 # Test if we are trying to use run time linking or normal
14181 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14182 # need to do runtime linking.
14183 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14184 for ld_flag in $LDFLAGS; do
14185 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14186 aix_use_runtimelinking=yes
14187 break
14188 fi
14189 done
14190 esac
14191
14192 exp_sym_flag='-bexport'
14193 no_entry_flag='-bnoentry'
14194 fi
14195
14196 # When large executables or shared objects are built, AIX ld can
14197 # have problems creating the table of contents. If linking a library
14198 # or program results in "error TOC overflow" add -mminimal-toc to
14199 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14200 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14201
14202 archive_cmds_F77=''
14203 hardcode_direct_F77=yes
14204 hardcode_libdir_separator_F77=':'
14205 link_all_deplibs_F77=yes
14206
14207 if test "$GCC" = yes; then
14208 case $host_os in aix4.[012]|aix4.[012].*)
14209 # We only want to do this on AIX 4.2 and lower, the check
14210 # below for broken collect2 doesn't work under 4.3+
14211 collect2name=`${CC} -print-prog-name=collect2`
14212 if test -f "$collect2name" && \
14213 strings "$collect2name" | grep resolve_lib_name >/dev/null
14214 then
14215 # We have reworked collect2
14216 hardcode_direct_F77=yes
14217 else
14218 # We have old collect2
14219 hardcode_direct_F77=unsupported
14220 # It fails to find uninstalled libraries when the uninstalled
14221 # path is not listed in the libpath. Setting hardcode_minus_L
14222 # to unsupported forces relinking
14223 hardcode_minus_L_F77=yes
14224 hardcode_libdir_flag_spec_F77='-L$libdir'
14225 hardcode_libdir_separator_F77=
14226 fi
14227 esac
14228 shared_flag='-shared'
14229 if test "$aix_use_runtimelinking" = yes; then
14230 shared_flag="$shared_flag "'${wl}-G'
14231 fi
14232 else
14233 # not using gcc
14234 if test "$host_cpu" = ia64; then
14235 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14236 # chokes on -Wl,-G. The following line is correct:
14237 shared_flag='-G'
14238 else
14239 if test "$aix_use_runtimelinking" = yes; then
14240 shared_flag='${wl}-G'
14241 else
14242 shared_flag='${wl}-bM:SRE'
14243 fi
14244 fi
14245 fi
14246
14247 # It seems that -bexpall does not export symbols beginning with
14248 # underscore (_), so it is better to generate a list of symbols to export.
14249 always_export_symbols_F77=yes
14250 if test "$aix_use_runtimelinking" = yes; then
14251 # Warning - without using the other runtime loading flags (-brtl),
14252 # -berok will link without error, but may produce a broken library.
14253 allow_undefined_flag_F77='-berok'
14254 # Determine the default libpath from the value encoded in an empty executable.
14255 cat >conftest.$ac_ext <<_ACEOF
14256 program main
14257
14258 end
14259 _ACEOF
14260 rm -f conftest.$ac_objext conftest$ac_exeext
14261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14262 (eval $ac_link) 2>conftest.er1
14263 ac_status=$?
14264 grep -v '^ *+' conftest.er1 >conftest.err
14265 rm -f conftest.er1
14266 cat conftest.err >&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -z "$ac_f77_werror_flag"
14270 || test ! -s conftest.err'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14273 ac_status=$?
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest$ac_exeext'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282
14283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14284 }'`
14285 # Check for a 64-bit object if we didn't find anything.
14286 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; }
14287 }'`; fi
14288 else
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 fi
14293 rm -f conftest.err conftest.$ac_objext \
14294 conftest$ac_exeext conftest.$ac_ext
14295 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14296
14297 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14298 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14299 else
14300 if test "$host_cpu" = ia64; then
14301 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14302 allow_undefined_flag_F77="-z nodefs"
14303 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14304 else
14305 # Determine the default libpath from the value encoded in an empty executable.
14306 cat >conftest.$ac_ext <<_ACEOF
14307 program main
14308
14309 end
14310 _ACEOF
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>conftest.er1
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_f77_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest$ac_exeext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333
14334 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14335 }'`
14336 # Check for a 64-bit object if we didn't find anything.
14337 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; }
14338 }'`; fi
14339 else
14340 echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343 fi
14344 rm -f conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
14346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14347
14348 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14349 # Warning - without using the other run time loading flags,
14350 # -berok will link without error, but may produce a broken library.
14351 no_undefined_flag_F77=' ${wl}-bernotok'
14352 allow_undefined_flag_F77=' ${wl}-berok'
14353 # -bexpall does not export symbols beginning with underscore (_)
14354 always_export_symbols_F77=yes
14355 # Exported symbols can be pulled into shared objects from archives
14356 whole_archive_flag_spec_F77=' '
14357 archive_cmds_need_lc_F77=yes
14358 # This is similar to how AIX traditionally builds it's shared libraries.
14359 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14360 fi
14361 fi
14362 ;;
14363
14364 amigaos*)
14365 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)'
14366 hardcode_libdir_flag_spec_F77='-L$libdir'
14367 hardcode_minus_L_F77=yes
14368 # see comment about different semantics on the GNU ld section
14369 ld_shlibs_F77=no
14370 ;;
14371
14372 bsdi[45]*)
14373 export_dynamic_flag_spec_F77=-rdynamic
14374 ;;
14375
14376 cygwin* | mingw* | pw32*)
14377 # When not using gcc, we currently assume that we are using
14378 # Microsoft Visual C++.
14379 # hardcode_libdir_flag_spec is actually meaningless, as there is
14380 # no search path for DLLs.
14381 hardcode_libdir_flag_spec_F77=' '
14382 allow_undefined_flag_F77=unsupported
14383 # Tell ltmain to make .lib files, not .a files.
14384 libext=lib
14385 # Tell ltmain to make .dll files, not .so files.
14386 shrext_cmds=".dll"
14387 # FIXME: Setting linknames here is a bad hack.
14388 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14389 # The linker will automatically build a .lib file if we build a DLL.
14390 old_archive_From_new_cmds_F77='true'
14391 # FIXME: Should let the user specify the lib program.
14392 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14393 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14394 enable_shared_with_static_runtimes_F77=yes
14395 ;;
14396
14397 darwin* | rhapsody*)
14398 case "$host_os" in
14399 rhapsody* | darwin1.[012])
14400 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14401 ;;
14402 *) # Darwin 1.3 on
14403 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14404 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14405 else
14406 case ${MACOSX_DEPLOYMENT_TARGET} in
14407 10.[012])
14408 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14409 ;;
14410 10.*)
14411 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14412 ;;
14413 esac
14414 fi
14415 ;;
14416 esac
14417 archive_cmds_need_lc_F77=no
14418 hardcode_direct_F77=no
14419 hardcode_automatic_F77=yes
14420 hardcode_shlibpath_var_F77=unsupported
14421 whole_archive_flag_spec_F77=''
14422 link_all_deplibs_F77=yes
14423 if test "$GCC" = yes ; then
14424 output_verbose_link_cmd='echo'
14425 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14426 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14427 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14428 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14429 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14430 else
14431 case $cc_basename in
14432 xlc*)
14433 output_verbose_link_cmd='echo'
14434 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14435 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14437 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14438 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14439 ;;
14440 *)
14441 ld_shlibs_F77=no
14442 ;;
14443 esac
14444 fi
14445 ;;
14446
14447 dgux*)
14448 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14449 hardcode_libdir_flag_spec_F77='-L$libdir'
14450 hardcode_shlibpath_var_F77=no
14451 ;;
14452
14453 freebsd1*)
14454 ld_shlibs_F77=no
14455 ;;
14456
14457 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14458 # support. Future versions do this automatically, but an explicit c++rt0.o
14459 # does not break anything, and helps significantly (at the cost of a little
14460 # extra space).
14461 freebsd2.2*)
14462 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14463 hardcode_libdir_flag_spec_F77='-R$libdir'
14464 hardcode_direct_F77=yes
14465 hardcode_shlibpath_var_F77=no
14466 ;;
14467
14468 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14469 freebsd2*)
14470 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14471 hardcode_direct_F77=yes
14472 hardcode_minus_L_F77=yes
14473 hardcode_shlibpath_var_F77=no
14474 ;;
14475
14476 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14477 freebsd* | kfreebsd*-gnu | dragonfly*)
14478 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14479 hardcode_libdir_flag_spec_F77='-R$libdir'
14480 hardcode_direct_F77=yes
14481 hardcode_shlibpath_var_F77=no
14482 ;;
14483
14484 hpux9*)
14485 if test "$GCC" = yes; then
14486 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14487 else
14488 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'
14489 fi
14490 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14491 hardcode_libdir_separator_F77=:
14492 hardcode_direct_F77=yes
14493
14494 # hardcode_minus_L: Not really in the search PATH,
14495 # but as the default location of the library.
14496 hardcode_minus_L_F77=yes
14497 export_dynamic_flag_spec_F77='${wl}-E'
14498 ;;
14499
14500 hpux10* | hpux11*)
14501 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14502 case "$host_cpu" in
14503 hppa*64*|ia64*)
14504 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14505 ;;
14506 *)
14507 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14508 ;;
14509 esac
14510 else
14511 case "$host_cpu" in
14512 hppa*64*|ia64*)
14513 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14514 ;;
14515 *)
14516 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14517 ;;
14518 esac
14519 fi
14520 if test "$with_gnu_ld" = no; then
14521 case "$host_cpu" in
14522 hppa*64*)
14523 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14524 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14525 hardcode_libdir_separator_F77=:
14526 hardcode_direct_F77=no
14527 hardcode_shlibpath_var_F77=no
14528 ;;
14529 ia64*)
14530 hardcode_libdir_flag_spec_F77='-L$libdir'
14531 hardcode_direct_F77=no
14532 hardcode_shlibpath_var_F77=no
14533
14534 # hardcode_minus_L: Not really in the search PATH,
14535 # but as the default location of the library.
14536 hardcode_minus_L_F77=yes
14537 ;;
14538 *)
14539 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14540 hardcode_libdir_separator_F77=:
14541 hardcode_direct_F77=yes
14542 export_dynamic_flag_spec_F77='${wl}-E'
14543
14544 # hardcode_minus_L: Not really in the search PATH,
14545 # but as the default location of the library.
14546 hardcode_minus_L_F77=yes
14547 ;;
14548 esac
14549 fi
14550 ;;
14551
14552 irix5* | irix6* | nonstopux*)
14553 if test "$GCC" = yes; then
14554 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14555 else
14556 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'
14557 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14558 fi
14559 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14560 hardcode_libdir_separator_F77=:
14561 link_all_deplibs_F77=yes
14562 ;;
14563
14564 netbsd*)
14565 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14566 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14567 else
14568 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14569 fi
14570 hardcode_libdir_flag_spec_F77='-R$libdir'
14571 hardcode_direct_F77=yes
14572 hardcode_shlibpath_var_F77=no
14573 ;;
14574
14575 newsos6)
14576 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14577 hardcode_direct_F77=yes
14578 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14579 hardcode_libdir_separator_F77=:
14580 hardcode_shlibpath_var_F77=no
14581 ;;
14582
14583 openbsd*)
14584 hardcode_direct_F77=yes
14585 hardcode_shlibpath_var_F77=no
14586 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14587 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14588 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14589 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14590 export_dynamic_flag_spec_F77='${wl}-E'
14591 else
14592 case $host_os in
14593 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14594 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14595 hardcode_libdir_flag_spec_F77='-R$libdir'
14596 ;;
14597 *)
14598 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14599 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14600 ;;
14601 esac
14602 fi
14603 ;;
14604
14605 os2*)
14606 hardcode_libdir_flag_spec_F77='-L$libdir'
14607 hardcode_minus_L_F77=yes
14608 allow_undefined_flag_F77=unsupported
14609 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14610 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14611 ;;
14612
14613 osf3*)
14614 if test "$GCC" = yes; then
14615 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14616 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14617 else
14618 allow_undefined_flag_F77=' -expect_unresolved \*'
14619 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'
14620 fi
14621 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14622 hardcode_libdir_separator_F77=:
14623 ;;
14624
14625 osf4* | osf5*) # as osf3* with the addition of -msym flag
14626 if test "$GCC" = yes; then
14627 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14628 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14629 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14630 else
14631 allow_undefined_flag_F77=' -expect_unresolved \*'
14632 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'
14633 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~
14634 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14635
14636 # Both c and cxx compiler support -rpath directly
14637 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14638 fi
14639 hardcode_libdir_separator_F77=:
14640 ;;
14641
14642 sco3.2v5*)
14643 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14644 hardcode_shlibpath_var_F77=no
14645 export_dynamic_flag_spec_F77='${wl}-Bexport'
14646 runpath_var=LD_RUN_PATH
14647 hardcode_runpath_var=yes
14648 ;;
14649
14650 solaris*)
14651 no_undefined_flag_F77=' -z text'
14652 if test "$GCC" = yes; then
14653 wlarc='${wl}'
14654 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14655 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14656 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14657 else
14658 wlarc=''
14659 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14660 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14662 fi
14663 hardcode_libdir_flag_spec_F77='-R$libdir'
14664 hardcode_shlibpath_var_F77=no
14665 case $host_os in
14666 solaris2.[0-5] | solaris2.[0-5].*) ;;
14667 *)
14668 # The compiler driver will combine linker options so we
14669 # cannot just pass the convience library names through
14670 # without $wl, iff we do not link with $LD.
14671 # Luckily, gcc supports the same syntax we need for Sun Studio.
14672 # Supported since Solaris 2.6 (maybe 2.5.1?)
14673 case $wlarc in
14674 '')
14675 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14676 *)
14677 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14678 esac ;;
14679 esac
14680 link_all_deplibs_F77=yes
14681 ;;
14682
14683 sunos4*)
14684 if test "x$host_vendor" = xsequent; then
14685 # Use $CC to link under sequent, because it throws in some extra .o
14686 # files that make .init and .fini sections work.
14687 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14688 else
14689 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14690 fi
14691 hardcode_libdir_flag_spec_F77='-L$libdir'
14692 hardcode_direct_F77=yes
14693 hardcode_minus_L_F77=yes
14694 hardcode_shlibpath_var_F77=no
14695 ;;
14696
14697 sysv4)
14698 case $host_vendor in
14699 sni)
14700 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14701 hardcode_direct_F77=yes # is this really true???
14702 ;;
14703 siemens)
14704 ## LD is ld it makes a PLAMLIB
14705 ## CC just makes a GrossModule.
14706 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14707 reload_cmds_F77='$CC -r -o $output$reload_objs'
14708 hardcode_direct_F77=no
14709 ;;
14710 motorola)
14711 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14712 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14713 ;;
14714 esac
14715 runpath_var='LD_RUN_PATH'
14716 hardcode_shlibpath_var_F77=no
14717 ;;
14718
14719 sysv4.3*)
14720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14721 hardcode_shlibpath_var_F77=no
14722 export_dynamic_flag_spec_F77='-Bexport'
14723 ;;
14724
14725 sysv4*MP*)
14726 if test -d /usr/nec; then
14727 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14728 hardcode_shlibpath_var_F77=no
14729 runpath_var=LD_RUN_PATH
14730 hardcode_runpath_var=yes
14731 ld_shlibs_F77=yes
14732 fi
14733 ;;
14734
14735 sysv4.2uw2*)
14736 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14737 hardcode_direct_F77=yes
14738 hardcode_minus_L_F77=no
14739 hardcode_shlibpath_var_F77=no
14740 hardcode_runpath_var=yes
14741 runpath_var=LD_RUN_PATH
14742 ;;
14743
14744 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14745 no_undefined_flag_F77='${wl}-z ${wl}text'
14746 if test "$GCC" = yes; then
14747 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14748 else
14749 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14750 fi
14751 runpath_var='LD_RUN_PATH'
14752 hardcode_shlibpath_var_F77=no
14753 ;;
14754
14755 sysv5*)
14756 no_undefined_flag_F77=' -z text'
14757 # $CC -shared without GNU ld will not create a library from C++
14758 # object files and a static libstdc++, better avoid it by now
14759 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14761 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14762 hardcode_libdir_flag_spec_F77=
14763 hardcode_shlibpath_var_F77=no
14764 runpath_var='LD_RUN_PATH'
14765 ;;
14766
14767 uts4*)
14768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14769 hardcode_libdir_flag_spec_F77='-L$libdir'
14770 hardcode_shlibpath_var_F77=no
14771 ;;
14772
14773 *)
14774 ld_shlibs_F77=no
14775 ;;
14776 esac
14777 fi
14778
14779 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14780 echo "${ECHO_T}$ld_shlibs_F77" >&6
14781 test "$ld_shlibs_F77" = no && can_build_shared=no
14782
14783 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14784 if test "$GCC" = yes; then
14785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14786 fi
14787
14788 #
14789 # Do we need to explicitly link libc?
14790 #
14791 case "x$archive_cmds_need_lc_F77" in
14792 x|xyes)
14793 # Assume -lc should be added
14794 archive_cmds_need_lc_F77=yes
14795
14796 if test "$enable_shared" = yes && test "$GCC" = yes; then
14797 case $archive_cmds_F77 in
14798 *'~'*)
14799 # FIXME: we may have to deal with multi-command sequences.
14800 ;;
14801 '$CC '*)
14802 # Test whether the compiler implicitly links with -lc since on some
14803 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14804 # to ld, don't add -lc before -lgcc.
14805 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14806 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14807 $rm conftest*
14808 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14809
14810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14811 (eval $ac_compile) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } 2>conftest.err; then
14815 soname=conftest
14816 lib=conftest
14817 libobjs=conftest.$ac_objext
14818 deplibs=
14819 wl=$lt_prog_compiler_wl_F77
14820 compiler_flags=-v
14821 linker_flags=-v
14822 verstring=
14823 output_objdir=.
14824 libname=conftest
14825 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14826 allow_undefined_flag_F77=
14827 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14828 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }
14832 then
14833 archive_cmds_need_lc_F77=no
14834 else
14835 archive_cmds_need_lc_F77=yes
14836 fi
14837 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14838 else
14839 cat conftest.err 1>&5
14840 fi
14841 $rm conftest*
14842 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14843 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14844 ;;
14845 esac
14846 fi
14847 ;;
14848 esac
14849
14850 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14851 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14852 library_names_spec=
14853 libname_spec='lib$name'
14854 soname_spec=
14855 shrext_cmds=".so"
14856 postinstall_cmds=
14857 postuninstall_cmds=
14858 finish_cmds=
14859 finish_eval=
14860 shlibpath_var=
14861 shlibpath_overrides_runpath=unknown
14862 version_type=none
14863 dynamic_linker="$host_os ld.so"
14864 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14865 if test "$GCC" = yes; then
14866 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14867 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14868 # if the path contains ";" then we assume it to be the separator
14869 # otherwise default to the standard path separator (i.e. ":") - it is
14870 # assumed that no part of a normal pathname contains ";" but that should
14871 # okay in the real world where ";" in dirpaths is itself problematic.
14872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14873 else
14874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14875 fi
14876 else
14877 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14878 fi
14879 need_lib_prefix=unknown
14880 hardcode_into_libs=no
14881
14882 # when you set need_version to no, make sure it does not cause -set_version
14883 # flags to be left without arguments
14884 need_version=unknown
14885
14886 case $host_os in
14887 aix3*)
14888 version_type=linux
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14890 shlibpath_var=LIBPATH
14891
14892 # AIX 3 has no versioning support, so we append a major version to the name.
14893 soname_spec='${libname}${release}${shared_ext}$major'
14894 ;;
14895
14896 aix4* | aix5*)
14897 version_type=linux
14898 need_lib_prefix=no
14899 need_version=no
14900 hardcode_into_libs=yes
14901 if test "$host_cpu" = ia64; then
14902 # AIX 5 supports IA64
14903 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 else
14906 # With GCC up to 2.95.x, collect2 would create an import file
14907 # for dependence libraries. The import file would start with
14908 # the line `#! .'. This would cause the generated library to
14909 # depend on `.', always an invalid library. This was fixed in
14910 # development snapshots of GCC prior to 3.0.
14911 case $host_os in
14912 aix4 | aix4.[01] | aix4.[01].*)
14913 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14914 echo ' yes '
14915 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14916 :
14917 else
14918 can_build_shared=no
14919 fi
14920 ;;
14921 esac
14922 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14923 # soname into executable. Probably we can add versioning support to
14924 # collect2, so additional links can be useful in future.
14925 if test "$aix_use_runtimelinking" = yes; then
14926 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14927 # instead of lib<name>.a to let people know that these are not
14928 # typical AIX shared libraries.
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 else
14931 # We preserve .a as extension for shared libraries through AIX4.2
14932 # and later when we are not doing run time linking.
14933 library_names_spec='${libname}${release}.a $libname.a'
14934 soname_spec='${libname}${release}${shared_ext}$major'
14935 fi
14936 shlibpath_var=LIBPATH
14937 fi
14938 ;;
14939
14940 amigaos*)
14941 library_names_spec='$libname.ixlibrary $libname.a'
14942 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14943 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'
14944 ;;
14945
14946 beos*)
14947 library_names_spec='${libname}${shared_ext}'
14948 dynamic_linker="$host_os ld.so"
14949 shlibpath_var=LIBRARY_PATH
14950 ;;
14951
14952 bsdi[45]*)
14953 version_type=linux
14954 need_version=no
14955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956 soname_spec='${libname}${release}${shared_ext}$major'
14957 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14960 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14961 # the default ld.so.conf also contains /usr/contrib/lib and
14962 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14963 # libtool to hard-code these into programs
14964 ;;
14965
14966 cygwin* | mingw* | pw32*)
14967 version_type=windows
14968 shrext_cmds=".dll"
14969 need_version=no
14970 need_lib_prefix=no
14971
14972 case $GCC,$host_os in
14973 yes,cygwin* | yes,mingw* | yes,pw32*)
14974 library_names_spec='$libname.dll.a'
14975 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14976 postinstall_cmds='base_file=`basename \${file}`~
14977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14978 dldir=$destdir/`dirname \$dlpath`~
14979 test -d \$dldir || mkdir -p \$dldir~
14980 $install_prog $dir/$dlname \$dldir/$dlname'
14981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14982 dlpath=$dir/\$dldll~
14983 $rm \$dlpath'
14984 shlibpath_overrides_runpath=yes
14985
14986 case $host_os in
14987 cygwin*)
14988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14990 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14991 ;;
14992 mingw*)
14993 # MinGW DLLs use traditional 'lib' prefix
14994 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14995 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14996 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14997 # It is most probably a Windows format PATH printed by
14998 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14999 # path with ; separators, and with drive letters. We can handle the
15000 # drive letters (cygwin fileutils understands them), so leave them,
15001 # especially as we might pass files found there to a mingw objdump,
15002 # which wouldn't understand a cygwinified path. Ahh.
15003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15004 else
15005 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15006 fi
15007 ;;
15008 pw32*)
15009 # pw32 DLLs use 'pw' prefix rather than 'lib'
15010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15011 ;;
15012 esac
15013 ;;
15014
15015 *)
15016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15017 ;;
15018 esac
15019 dynamic_linker='Win32 ld.exe'
15020 # FIXME: first we should search . and the directory the executable is in
15021 shlibpath_var=PATH
15022 ;;
15023
15024 darwin* | rhapsody*)
15025 dynamic_linker="$host_os dyld"
15026 version_type=darwin
15027 need_lib_prefix=no
15028 need_version=no
15029 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15030 soname_spec='${libname}${release}${major}$shared_ext'
15031 shlibpath_overrides_runpath=yes
15032 shlibpath_var=DYLD_LIBRARY_PATH
15033 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15034 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15035 if test "$GCC" = yes; then
15036 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"`
15037 else
15038 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15039 fi
15040 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15041 ;;
15042
15043 dgux*)
15044 version_type=linux
15045 need_lib_prefix=no
15046 need_version=no
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15048 soname_spec='${libname}${release}${shared_ext}$major'
15049 shlibpath_var=LD_LIBRARY_PATH
15050 ;;
15051
15052 freebsd1*)
15053 dynamic_linker=no
15054 ;;
15055
15056 kfreebsd*-gnu)
15057 version_type=linux
15058 need_lib_prefix=no
15059 need_version=no
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15061 soname_spec='${libname}${release}${shared_ext}$major'
15062 shlibpath_var=LD_LIBRARY_PATH
15063 shlibpath_overrides_runpath=no
15064 hardcode_into_libs=yes
15065 dynamic_linker='GNU ld.so'
15066 ;;
15067
15068 freebsd* | dragonfly*)
15069 # DragonFly does not have aout. When/if they implement a new
15070 # versioning mechanism, adjust this.
15071 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15072 version_type=freebsd-$objformat
15073 case $version_type in
15074 freebsd-elf*)
15075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15076 need_version=no
15077 need_lib_prefix=no
15078 ;;
15079 freebsd-*)
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15081 need_version=yes
15082 ;;
15083 esac
15084 shlibpath_var=LD_LIBRARY_PATH
15085 case $host_os in
15086 freebsd2*)
15087 shlibpath_overrides_runpath=yes
15088 ;;
15089 freebsd3.[01]* | freebsdelf3.[01]*)
15090 shlibpath_overrides_runpath=yes
15091 hardcode_into_libs=yes
15092 ;;
15093 *) # from 3.2 on
15094 shlibpath_overrides_runpath=no
15095 hardcode_into_libs=yes
15096 ;;
15097 esac
15098 ;;
15099
15100 gnu*)
15101 version_type=linux
15102 need_lib_prefix=no
15103 need_version=no
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15105 soname_spec='${libname}${release}${shared_ext}$major'
15106 shlibpath_var=LD_LIBRARY_PATH
15107 hardcode_into_libs=yes
15108 ;;
15109
15110 hpux9* | hpux10* | hpux11*)
15111 # Give a soname corresponding to the major version so that dld.sl refuses to
15112 # link against other versions.
15113 version_type=sunos
15114 need_lib_prefix=no
15115 need_version=no
15116 case "$host_cpu" in
15117 ia64*)
15118 shrext_cmds='.so'
15119 hardcode_into_libs=yes
15120 dynamic_linker="$host_os dld.so"
15121 shlibpath_var=LD_LIBRARY_PATH
15122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124 soname_spec='${libname}${release}${shared_ext}$major'
15125 if test "X$HPUX_IA64_MODE" = X32; then
15126 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15127 else
15128 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15129 fi
15130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15131 ;;
15132 hppa*64*)
15133 shrext_cmds='.sl'
15134 hardcode_into_libs=yes
15135 dynamic_linker="$host_os dld.sl"
15136 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15139 soname_spec='${libname}${release}${shared_ext}$major'
15140 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15142 ;;
15143 *)
15144 shrext_cmds='.sl'
15145 dynamic_linker="$host_os dld.sl"
15146 shlibpath_var=SHLIB_PATH
15147 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 ;;
15151 esac
15152 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15153 postinstall_cmds='chmod 555 $lib'
15154 ;;
15155
15156 irix5* | irix6* | nonstopux*)
15157 case $host_os in
15158 nonstopux*) version_type=nonstopux ;;
15159 *)
15160 if test "$lt_cv_prog_gnu_ld" = yes; then
15161 version_type=linux
15162 else
15163 version_type=irix
15164 fi ;;
15165 esac
15166 need_lib_prefix=no
15167 need_version=no
15168 soname_spec='${libname}${release}${shared_ext}$major'
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15170 case $host_os in
15171 irix5* | nonstopux*)
15172 libsuff= shlibsuff=
15173 ;;
15174 *)
15175 case $LD in # libtool.m4 will add one of these switches to LD
15176 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15177 libsuff= shlibsuff= libmagic=32-bit;;
15178 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15179 libsuff=32 shlibsuff=N32 libmagic=N32;;
15180 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15181 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15182 *) libsuff= shlibsuff= libmagic=never-match;;
15183 esac
15184 ;;
15185 esac
15186 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15187 shlibpath_overrides_runpath=no
15188 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15189 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15190 hardcode_into_libs=yes
15191 ;;
15192
15193 # No shared lib support for Linux oldld, aout, or coff.
15194 linux*oldld* | linux*aout* | linux*coff*)
15195 dynamic_linker=no
15196 ;;
15197
15198 # This must be Linux ELF.
15199 linux*)
15200 version_type=linux
15201 need_lib_prefix=no
15202 need_version=no
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15206 shlibpath_var=LD_LIBRARY_PATH
15207 shlibpath_overrides_runpath=no
15208 # This implies no fast_install, which is unacceptable.
15209 # Some rework will be needed to allow for fast_install
15210 # before this can be enabled.
15211 hardcode_into_libs=yes
15212
15213 # Append ld.so.conf contents to the search path
15214 if test -f /etc/ld.so.conf; then
15215 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15216 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15217 fi
15218
15219 # We used to test for /lib/ld.so.1 and disable shared libraries on
15220 # powerpc, because MkLinux only supported shared libraries with the
15221 # GNU dynamic linker. Since this was broken with cross compilers,
15222 # most powerpc-linux boxes support dynamic linking these days and
15223 # people can always --disable-shared, the test was removed, and we
15224 # assume the GNU/Linux dynamic linker is in use.
15225 dynamic_linker='GNU/Linux ld.so'
15226 ;;
15227
15228 knetbsd*-gnu)
15229 version_type=linux
15230 need_lib_prefix=no
15231 need_version=no
15232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15233 soname_spec='${libname}${release}${shared_ext}$major'
15234 shlibpath_var=LD_LIBRARY_PATH
15235 shlibpath_overrides_runpath=no
15236 hardcode_into_libs=yes
15237 dynamic_linker='GNU ld.so'
15238 ;;
15239
15240 netbsd*)
15241 version_type=sunos
15242 need_lib_prefix=no
15243 need_version=no
15244 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15247 dynamic_linker='NetBSD (a.out) ld.so'
15248 else
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 dynamic_linker='NetBSD ld.elf_so'
15252 fi
15253 shlibpath_var=LD_LIBRARY_PATH
15254 shlibpath_overrides_runpath=yes
15255 hardcode_into_libs=yes
15256 ;;
15257
15258 newsos6)
15259 version_type=linux
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 shlibpath_var=LD_LIBRARY_PATH
15262 shlibpath_overrides_runpath=yes
15263 ;;
15264
15265 nto-qnx*)
15266 version_type=linux
15267 need_lib_prefix=no
15268 need_version=no
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270 soname_spec='${libname}${release}${shared_ext}$major'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=yes
15273 ;;
15274
15275 openbsd*)
15276 version_type=sunos
15277 need_lib_prefix=no
15278 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15279 case $host_os in
15280 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15281 *) need_version=no ;;
15282 esac
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15285 shlibpath_var=LD_LIBRARY_PATH
15286 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15287 case $host_os in
15288 openbsd2.[89] | openbsd2.[89].*)
15289 shlibpath_overrides_runpath=no
15290 ;;
15291 *)
15292 shlibpath_overrides_runpath=yes
15293 ;;
15294 esac
15295 else
15296 shlibpath_overrides_runpath=yes
15297 fi
15298 ;;
15299
15300 os2*)
15301 libname_spec='$name'
15302 shrext_cmds=".dll"
15303 need_lib_prefix=no
15304 library_names_spec='$libname${shared_ext} $libname.a'
15305 dynamic_linker='OS/2 ld.exe'
15306 shlibpath_var=LIBPATH
15307 ;;
15308
15309 osf3* | osf4* | osf5*)
15310 version_type=osf
15311 need_lib_prefix=no
15312 need_version=no
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315 shlibpath_var=LD_LIBRARY_PATH
15316 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15317 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15318 ;;
15319
15320 sco3.2v5*)
15321 version_type=osf
15322 soname_spec='${libname}${release}${shared_ext}$major'
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324 shlibpath_var=LD_LIBRARY_PATH
15325 ;;
15326
15327 solaris*)
15328 version_type=linux
15329 need_lib_prefix=no
15330 need_version=no
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15332 soname_spec='${libname}${release}${shared_ext}$major'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 shlibpath_overrides_runpath=yes
15335 hardcode_into_libs=yes
15336 # ldd complains unless libraries are executable
15337 postinstall_cmds='chmod +x $lib'
15338 ;;
15339
15340 sunos4*)
15341 version_type=sunos
15342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15343 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 shlibpath_overrides_runpath=yes
15346 if test "$with_gnu_ld" = yes; then
15347 need_lib_prefix=no
15348 fi
15349 need_version=yes
15350 ;;
15351
15352 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15353 version_type=linux
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 case $host_vendor in
15358 sni)
15359 shlibpath_overrides_runpath=no
15360 need_lib_prefix=no
15361 export_dynamic_flag_spec='${wl}-Blargedynsym'
15362 runpath_var=LD_RUN_PATH
15363 ;;
15364 siemens)
15365 need_lib_prefix=no
15366 ;;
15367 motorola)
15368 need_lib_prefix=no
15369 need_version=no
15370 shlibpath_overrides_runpath=no
15371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15372 ;;
15373 esac
15374 ;;
15375
15376 sysv4*MP*)
15377 if test -d /usr/nec ;then
15378 version_type=linux
15379 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15380 soname_spec='$libname${shared_ext}.$major'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 fi
15383 ;;
15384
15385 uts4*)
15386 version_type=linux
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388 soname_spec='${libname}${release}${shared_ext}$major'
15389 shlibpath_var=LD_LIBRARY_PATH
15390 ;;
15391
15392 *)
15393 dynamic_linker=no
15394 ;;
15395 esac
15396 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15397 echo "${ECHO_T}$dynamic_linker" >&6
15398 test "$dynamic_linker" = no && can_build_shared=no
15399
15400 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15401 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15402 hardcode_action_F77=
15403 if test -n "$hardcode_libdir_flag_spec_F77" || \
15404 test -n "$runpath_var_F77" || \
15405 test "X$hardcode_automatic_F77" = "Xyes" ; then
15406
15407 # We can hardcode non-existant directories.
15408 if test "$hardcode_direct_F77" != no &&
15409 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15410 # have to relink, otherwise we might link with an installed library
15411 # when we should be linking with a yet-to-be-installed one
15412 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15413 test "$hardcode_minus_L_F77" != no; then
15414 # Linking always hardcodes the temporary library directory.
15415 hardcode_action_F77=relink
15416 else
15417 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15418 hardcode_action_F77=immediate
15419 fi
15420 else
15421 # We cannot hardcode anything, or else we can only hardcode existing
15422 # directories.
15423 hardcode_action_F77=unsupported
15424 fi
15425 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15426 echo "${ECHO_T}$hardcode_action_F77" >&6
15427
15428 if test "$hardcode_action_F77" = relink; then
15429 # Fast installation is not supported
15430 enable_fast_install=no
15431 elif test "$shlibpath_overrides_runpath" = yes ||
15432 test "$enable_shared" = no; then
15433 # Fast installation is not necessary
15434 enable_fast_install=needless
15435 fi
15436
15437 striplib=
15438 old_striplib=
15439 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15440 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15441 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15442 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15443 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15444 echo "$as_me:$LINENO: result: yes" >&5
15445 echo "${ECHO_T}yes" >&6
15446 else
15447 # FIXME - insert some real tests, host_os isn't really good enough
15448 case $host_os in
15449 darwin*)
15450 if test -n "$STRIP" ; then
15451 striplib="$STRIP -x"
15452 echo "$as_me:$LINENO: result: yes" >&5
15453 echo "${ECHO_T}yes" >&6
15454 else
15455 echo "$as_me:$LINENO: result: no" >&5
15456 echo "${ECHO_T}no" >&6
15457 fi
15458 ;;
15459 *)
15460 echo "$as_me:$LINENO: result: no" >&5
15461 echo "${ECHO_T}no" >&6
15462 ;;
15463 esac
15464 fi
15465
15466
15467
15468 # The else clause should only fire when bootstrapping the
15469 # libtool distribution, otherwise you forgot to ship ltmain.sh
15470 # with your package, and you will get complaints that there are
15471 # no rules to generate ltmain.sh.
15472 if test -f "$ltmain"; then
15473 # See if we are running on zsh, and set the options which allow our commands through
15474 # without removal of \ escapes.
15475 if test -n "${ZSH_VERSION+set}" ; then
15476 setopt NO_GLOB_SUBST
15477 fi
15478 # Now quote all the things that may contain metacharacters while being
15479 # careful not to overquote the AC_SUBSTed values. We take copies of the
15480 # variables and quote the copies for generation of the libtool script.
15481 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15482 SED SHELL STRIP \
15483 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15484 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15485 deplibs_check_method reload_flag reload_cmds need_locks \
15486 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15487 lt_cv_sys_global_symbol_to_c_name_address \
15488 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15489 old_postinstall_cmds old_postuninstall_cmds \
15490 compiler_F77 \
15491 CC_F77 \
15492 LD_F77 \
15493 lt_prog_compiler_wl_F77 \
15494 lt_prog_compiler_pic_F77 \
15495 lt_prog_compiler_static_F77 \
15496 lt_prog_compiler_no_builtin_flag_F77 \
15497 export_dynamic_flag_spec_F77 \
15498 thread_safe_flag_spec_F77 \
15499 whole_archive_flag_spec_F77 \
15500 enable_shared_with_static_runtimes_F77 \
15501 old_archive_cmds_F77 \
15502 old_archive_from_new_cmds_F77 \
15503 predep_objects_F77 \
15504 postdep_objects_F77 \
15505 predeps_F77 \
15506 postdeps_F77 \
15507 compiler_lib_search_path_F77 \
15508 archive_cmds_F77 \
15509 archive_expsym_cmds_F77 \
15510 postinstall_cmds_F77 \
15511 postuninstall_cmds_F77 \
15512 old_archive_from_expsyms_cmds_F77 \
15513 allow_undefined_flag_F77 \
15514 no_undefined_flag_F77 \
15515 export_symbols_cmds_F77 \
15516 hardcode_libdir_flag_spec_F77 \
15517 hardcode_libdir_flag_spec_ld_F77 \
15518 hardcode_libdir_separator_F77 \
15519 hardcode_automatic_F77 \
15520 module_cmds_F77 \
15521 module_expsym_cmds_F77 \
15522 lt_cv_prog_compiler_c_o_F77 \
15523 exclude_expsyms_F77 \
15524 include_expsyms_F77; do
15525
15526 case $var in
15527 old_archive_cmds_F77 | \
15528 old_archive_from_new_cmds_F77 | \
15529 archive_cmds_F77 | \
15530 archive_expsym_cmds_F77 | \
15531 module_cmds_F77 | \
15532 module_expsym_cmds_F77 | \
15533 old_archive_from_expsyms_cmds_F77 | \
15534 export_symbols_cmds_F77 | \
15535 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15536 postinstall_cmds | postuninstall_cmds | \
15537 old_postinstall_cmds | old_postuninstall_cmds | \
15538 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15539 # Double-quote double-evaled strings.
15540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15541 ;;
15542 *)
15543 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15544 ;;
15545 esac
15546 done
15547
15548 case $lt_echo in
15549 *'\$0 --fallback-echo"')
15550 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15551 ;;
15552 esac
15553
15554 cfgfile="$ofile"
15555
15556 cat <<__EOF__ >> "$cfgfile"
15557 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15558
15559 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15560
15561 # Shell to use when invoking shell scripts.
15562 SHELL=$lt_SHELL
15563
15564 # Whether or not to build shared libraries.
15565 build_libtool_libs=$enable_shared
15566
15567 # Whether or not to build static libraries.
15568 build_old_libs=$enable_static
15569
15570 # Whether or not to add -lc for building shared libraries.
15571 build_libtool_need_lc=$archive_cmds_need_lc_F77
15572
15573 # Whether or not to disallow shared libs when runtime libs are static
15574 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15575
15576 # Whether or not to optimize for fast installation.
15577 fast_install=$enable_fast_install
15578
15579 # The host system.
15580 host_alias=$host_alias
15581 host=$host
15582 host_os=$host_os
15583
15584 # The build system.
15585 build_alias=$build_alias
15586 build=$build
15587 build_os=$build_os
15588
15589 # An echo program that does not interpret backslashes.
15590 echo=$lt_echo
15591
15592 # The archiver.
15593 AR=$lt_AR
15594 AR_FLAGS=$lt_AR_FLAGS
15595
15596 # A C compiler.
15597 LTCC=$lt_LTCC
15598
15599 # A language-specific compiler.
15600 CC=$lt_compiler_F77
15601
15602 # Is the compiler the GNU C compiler?
15603 with_gcc=$GCC_F77
15604
15605 # An ERE matcher.
15606 EGREP=$lt_EGREP
15607
15608 # The linker used to build libraries.
15609 LD=$lt_LD_F77
15610
15611 # Whether we need hard or soft links.
15612 LN_S=$lt_LN_S
15613
15614 # A BSD-compatible nm program.
15615 NM=$lt_NM
15616
15617 # A symbol stripping program
15618 STRIP=$lt_STRIP
15619
15620 # Used to examine libraries when file_magic_cmd begins "file"
15621 MAGIC_CMD=$MAGIC_CMD
15622
15623 # Used on cygwin: DLL creation program.
15624 DLLTOOL="$DLLTOOL"
15625
15626 # Used on cygwin: object dumper.
15627 OBJDUMP="$OBJDUMP"
15628
15629 # Used on cygwin: assembler.
15630 AS="$AS"
15631
15632 # The name of the directory that contains temporary libtool files.
15633 objdir=$objdir
15634
15635 # How to create reloadable object files.
15636 reload_flag=$lt_reload_flag
15637 reload_cmds=$lt_reload_cmds
15638
15639 # How to pass a linker flag through the compiler.
15640 wl=$lt_lt_prog_compiler_wl_F77
15641
15642 # Object file suffix (normally "o").
15643 objext="$ac_objext"
15644
15645 # Old archive suffix (normally "a").
15646 libext="$libext"
15647
15648 # Shared library suffix (normally ".so").
15649 shrext_cmds='$shrext_cmds'
15650
15651 # Executable file suffix (normally "").
15652 exeext="$exeext"
15653
15654 # Additional compiler flags for building library objects.
15655 pic_flag=$lt_lt_prog_compiler_pic_F77
15656 pic_mode=$pic_mode
15657
15658 # What is the maximum length of a command?
15659 max_cmd_len=$lt_cv_sys_max_cmd_len
15660
15661 # Does compiler simultaneously support -c and -o options?
15662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15663
15664 # Must we lock files when doing compilation?
15665 need_locks=$lt_need_locks
15666
15667 # Do we need the lib prefix for modules?
15668 need_lib_prefix=$need_lib_prefix
15669
15670 # Do we need a version for libraries?
15671 need_version=$need_version
15672
15673 # Whether dlopen is supported.
15674 dlopen_support=$enable_dlopen
15675
15676 # Whether dlopen of programs is supported.
15677 dlopen_self=$enable_dlopen_self
15678
15679 # Whether dlopen of statically linked programs is supported.
15680 dlopen_self_static=$enable_dlopen_self_static
15681
15682 # Compiler flag to prevent dynamic linking.
15683 link_static_flag=$lt_lt_prog_compiler_static_F77
15684
15685 # Compiler flag to turn off builtin functions.
15686 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15687
15688 # Compiler flag to allow reflexive dlopens.
15689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15690
15691 # Compiler flag to generate shared objects directly from archives.
15692 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15693
15694 # Compiler flag to generate thread-safe objects.
15695 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15696
15697 # Library versioning type.
15698 version_type=$version_type
15699
15700 # Format of library name prefix.
15701 libname_spec=$lt_libname_spec
15702
15703 # List of archive names. First name is the real one, the rest are links.
15704 # The last name is the one that the linker finds with -lNAME.
15705 library_names_spec=$lt_library_names_spec
15706
15707 # The coded name of the library, if different from the real name.
15708 soname_spec=$lt_soname_spec
15709
15710 # Commands used to build and install an old-style archive.
15711 RANLIB=$lt_RANLIB
15712 old_archive_cmds=$lt_old_archive_cmds_F77
15713 old_postinstall_cmds=$lt_old_postinstall_cmds
15714 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15715
15716 # Create an old-style archive from a shared archive.
15717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15718
15719 # Create a temporary old-style archive to link instead of a shared archive.
15720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15721
15722 # Commands used to build and install a shared archive.
15723 archive_cmds=$lt_archive_cmds_F77
15724 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15725 postinstall_cmds=$lt_postinstall_cmds
15726 postuninstall_cmds=$lt_postuninstall_cmds
15727
15728 # Commands used to build a loadable module (assumed same as above if empty)
15729 module_cmds=$lt_module_cmds_F77
15730 module_expsym_cmds=$lt_module_expsym_cmds_F77
15731
15732 # Commands to strip libraries.
15733 old_striplib=$lt_old_striplib
15734 striplib=$lt_striplib
15735
15736 # Dependencies to place before the objects being linked to create a
15737 # shared library.
15738 predep_objects=$lt_predep_objects_F77
15739
15740 # Dependencies to place after the objects being linked to create a
15741 # shared library.
15742 postdep_objects=$lt_postdep_objects_F77
15743
15744 # Dependencies to place before the objects being linked to create a
15745 # shared library.
15746 predeps=$lt_predeps_F77
15747
15748 # Dependencies to place after the objects being linked to create a
15749 # shared library.
15750 postdeps=$lt_postdeps_F77
15751
15752 # The library search path used internally by the compiler when linking
15753 # a shared library.
15754 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15755
15756 # Method to check whether dependent libraries are shared objects.
15757 deplibs_check_method=$lt_deplibs_check_method
15758
15759 # Command to use when deplibs_check_method == file_magic.
15760 file_magic_cmd=$lt_file_magic_cmd
15761
15762 # Flag that allows shared libraries with undefined symbols to be built.
15763 allow_undefined_flag=$lt_allow_undefined_flag_F77
15764
15765 # Flag that forces no undefined symbols.
15766 no_undefined_flag=$lt_no_undefined_flag_F77
15767
15768 # Commands used to finish a libtool library installation in a directory.
15769 finish_cmds=$lt_finish_cmds
15770
15771 # Same as above, but a single script fragment to be evaled but not shown.
15772 finish_eval=$lt_finish_eval
15773
15774 # Take the output of nm and produce a listing of raw symbols and C names.
15775 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15776
15777 # Transform the output of nm in a proper C declaration
15778 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15779
15780 # Transform the output of nm in a C name address pair
15781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15782
15783 # This is the shared library runtime path variable.
15784 runpath_var=$runpath_var
15785
15786 # This is the shared library path variable.
15787 shlibpath_var=$shlibpath_var
15788
15789 # Is shlibpath searched before the hard-coded library search path?
15790 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15791
15792 # How to hardcode a shared library path into an executable.
15793 hardcode_action=$hardcode_action_F77
15794
15795 # Whether we should hardcode library paths into libraries.
15796 hardcode_into_libs=$hardcode_into_libs
15797
15798 # Flag to hardcode \$libdir into a binary during linking.
15799 # This must work even if \$libdir does not exist.
15800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15801
15802 # If ld is used when linking, flag to hardcode \$libdir into
15803 # a binary during linking. This must work even if \$libdir does
15804 # not exist.
15805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15806
15807 # Whether we need a single -rpath flag with a separated argument.
15808 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15809
15810 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15811 # resulting binary.
15812 hardcode_direct=$hardcode_direct_F77
15813
15814 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15815 # resulting binary.
15816 hardcode_minus_L=$hardcode_minus_L_F77
15817
15818 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15819 # the resulting binary.
15820 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15821
15822 # Set to yes if building a shared library automatically hardcodes DIR into the library
15823 # and all subsequent libraries and executables linked against it.
15824 hardcode_automatic=$hardcode_automatic_F77
15825
15826 # Variables whose values should be saved in libtool wrapper scripts and
15827 # restored at relink time.
15828 variables_saved_for_relink="$variables_saved_for_relink"
15829
15830 # Whether libtool must link a program against all its dependency libraries.
15831 link_all_deplibs=$link_all_deplibs_F77
15832
15833 # Compile-time system search path for libraries
15834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15835
15836 # Run-time system search path for libraries
15837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15838
15839 # Fix the shell variable \$srcfile for the compiler.
15840 fix_srcfile_path="$fix_srcfile_path_F77"
15841
15842 # Set to yes if exported symbols are required.
15843 always_export_symbols=$always_export_symbols_F77
15844
15845 # The commands to list exported symbols.
15846 export_symbols_cmds=$lt_export_symbols_cmds_F77
15847
15848 # The commands to extract the exported symbol list from a shared archive.
15849 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15850
15851 # Symbols that should not be listed in the preloaded symbols.
15852 exclude_expsyms=$lt_exclude_expsyms_F77
15853
15854 # Symbols that must always be exported.
15855 include_expsyms=$lt_include_expsyms_F77
15856
15857 # ### END LIBTOOL TAG CONFIG: $tagname
15858
15859 __EOF__
15860
15861
15862 else
15863 # If there is no Makefile yet, we rely on a make rule to execute
15864 # `config.status --recheck' to rerun these tests and create the
15865 # libtool script then.
15866 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15867 if test -f "$ltmain_in"; then
15868 test -f Makefile && make "$ltmain"
15869 fi
15870 fi
15871
15872
15873 ac_ext=c
15874 ac_cpp='$CPP $CPPFLAGS'
15875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15878
15879 CC="$lt_save_CC"
15880
15881 else
15882 tagname=""
15883 fi
15884 ;;
15885
15886 GCJ)
15887 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15888
15889
15890
15891 # Source file extension for Java test sources.
15892 ac_ext=java
15893
15894 # Object file extension for compiled Java test sources.
15895 objext=o
15896 objext_GCJ=$objext
15897
15898 # Code to be used in simple compile tests
15899 lt_simple_compile_test_code="class foo {}\n"
15900
15901 # Code to be used in simple link tests
15902 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15903
15904 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15905
15906 # If no C compiler was specified, use CC.
15907 LTCC=${LTCC-"$CC"}
15908
15909 # Allow CC to be a program name with arguments.
15910 compiler=$CC
15911
15912
15913 # save warnings/boilerplate of simple test code
15914 ac_outfile=conftest.$ac_objext
15915 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15916 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15917 _lt_compiler_boilerplate=`cat conftest.err`
15918 $rm conftest*
15919
15920 ac_outfile=conftest.$ac_objext
15921 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15922 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15923 _lt_linker_boilerplate=`cat conftest.err`
15924 $rm conftest*
15925
15926
15927 # Allow CC to be a program name with arguments.
15928 lt_save_CC="$CC"
15929 CC=${GCJ-"gcj"}
15930 compiler=$CC
15931 compiler_GCJ=$CC
15932 for cc_temp in $compiler""; do
15933 case $cc_temp in
15934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15936 \-*) ;;
15937 *) break;;
15938 esac
15939 done
15940 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15941
15942
15943 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15944 archive_cmds_need_lc_GCJ=no
15945
15946 old_archive_cmds_GCJ=$old_archive_cmds
15947
15948
15949 lt_prog_compiler_no_builtin_flag_GCJ=
15950
15951 if test "$GCC" = yes; then
15952 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15953
15954
15955 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15956 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15957 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960 lt_cv_prog_compiler_rtti_exceptions=no
15961 ac_outfile=conftest.$ac_objext
15962 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15963 lt_compiler_flag="-fno-rtti -fno-exceptions"
15964 # Insert the option either (1) after the last *FLAGS variable, or
15965 # (2) before a word containing "conftest.", or (3) at the end.
15966 # Note that $ac_compile itself does not contain backslashes and begins
15967 # with a dollar sign (not a hyphen), so the echo should work correctly.
15968 # The option is referenced via a variable to avoid confusing sed.
15969 lt_compile=`echo "$ac_compile" | $SED \
15970 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15972 -e 's:$: $lt_compiler_flag:'`
15973 (eval echo "\"\$as_me:15973: $lt_compile\"" >&5)
15974 (eval "$lt_compile" 2>conftest.err)
15975 ac_status=$?
15976 cat conftest.err >&5
15977 echo "$as_me:15977: \$? = $ac_status" >&5
15978 if (exit $ac_status) && test -s "$ac_outfile"; then
15979 # The compiler can only warn and ignore the option if not recognized
15980 # So say no if there are warnings other than the usual output.
15981 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15982 $SED '/^$/d' conftest.err >conftest.er2
15983 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15984 lt_cv_prog_compiler_rtti_exceptions=yes
15985 fi
15986 fi
15987 $rm conftest*
15988
15989 fi
15990 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15991 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15992
15993 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15994 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15995 else
15996 :
15997 fi
15998
15999 fi
16000
16001 lt_prog_compiler_wl_GCJ=
16002 lt_prog_compiler_pic_GCJ=
16003 lt_prog_compiler_static_GCJ=
16004
16005 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16006 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16007
16008 if test "$GCC" = yes; then
16009 lt_prog_compiler_wl_GCJ='-Wl,'
16010 lt_prog_compiler_static_GCJ='-static'
16011
16012 case $host_os in
16013 aix*)
16014 # All AIX code is PIC.
16015 if test "$host_cpu" = ia64; then
16016 # AIX 5 now supports IA64 processor
16017 lt_prog_compiler_static_GCJ='-Bstatic'
16018 fi
16019 ;;
16020
16021 amigaos*)
16022 # FIXME: we need at least 68020 code to build shared libraries, but
16023 # adding the `-m68020' flag to GCC prevents building anything better,
16024 # like `-m68040'.
16025 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16026 ;;
16027
16028 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16029 # PIC is the default for these OSes.
16030 ;;
16031
16032 mingw* | pw32* | os2*)
16033 # This hack is so that the source file can tell whether it is being
16034 # built for inclusion in a dll (and should export symbols for example).
16035 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16036 ;;
16037
16038 darwin* | rhapsody*)
16039 # PIC is the default on this platform
16040 # Common symbols not allowed in MH_DYLIB files
16041 lt_prog_compiler_pic_GCJ='-fno-common'
16042 ;;
16043
16044 msdosdjgpp*)
16045 # Just because we use GCC doesn't mean we suddenly get shared libraries
16046 # on systems that don't support them.
16047 lt_prog_compiler_can_build_shared_GCJ=no
16048 enable_shared=no
16049 ;;
16050
16051 sysv4*MP*)
16052 if test -d /usr/nec; then
16053 lt_prog_compiler_pic_GCJ=-Kconform_pic
16054 fi
16055 ;;
16056
16057 hpux*)
16058 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16059 # not for PA HP-UX.
16060 case "$host_cpu" in
16061 hppa*64*|ia64*)
16062 # +Z the default
16063 ;;
16064 *)
16065 lt_prog_compiler_pic_GCJ='-fPIC'
16066 ;;
16067 esac
16068 ;;
16069
16070 *)
16071 lt_prog_compiler_pic_GCJ='-fPIC'
16072 ;;
16073 esac
16074 else
16075 # PORTME Check for flag to pass linker flags through the system compiler.
16076 case $host_os in
16077 aix*)
16078 lt_prog_compiler_wl_GCJ='-Wl,'
16079 if test "$host_cpu" = ia64; then
16080 # AIX 5 now supports IA64 processor
16081 lt_prog_compiler_static_GCJ='-Bstatic'
16082 else
16083 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16084 fi
16085 ;;
16086 darwin*)
16087 # PIC is the default on this platform
16088 # Common symbols not allowed in MH_DYLIB files
16089 case $cc_basename in
16090 xlc*)
16091 lt_prog_compiler_pic_GCJ='-qnocommon'
16092 lt_prog_compiler_wl_GCJ='-Wl,'
16093 ;;
16094 esac
16095 ;;
16096
16097 mingw* | pw32* | os2*)
16098 # This hack is so that the source file can tell whether it is being
16099 # built for inclusion in a dll (and should export symbols for example).
16100 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16101 ;;
16102
16103 hpux9* | hpux10* | hpux11*)
16104 lt_prog_compiler_wl_GCJ='-Wl,'
16105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16106 # not for PA HP-UX.
16107 case "$host_cpu" in
16108 hppa*64*|ia64*)
16109 # +Z the default
16110 ;;
16111 *)
16112 lt_prog_compiler_pic_GCJ='+Z'
16113 ;;
16114 esac
16115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16116 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16117 ;;
16118
16119 irix5* | irix6* | nonstopux*)
16120 lt_prog_compiler_wl_GCJ='-Wl,'
16121 # PIC (with -KPIC) is the default.
16122 lt_prog_compiler_static_GCJ='-non_shared'
16123 ;;
16124
16125 newsos6)
16126 lt_prog_compiler_pic_GCJ='-KPIC'
16127 lt_prog_compiler_static_GCJ='-Bstatic'
16128 ;;
16129
16130 linux*)
16131 case $cc_basename in
16132 icc* | ecc*)
16133 lt_prog_compiler_wl_GCJ='-Wl,'
16134 lt_prog_compiler_pic_GCJ='-KPIC'
16135 lt_prog_compiler_static_GCJ='-static'
16136 ;;
16137 pgcc* | pgf77* | pgf90*)
16138 # Portland Group compilers (*not* the Pentium gcc compiler,
16139 # which looks to be a dead project)
16140 lt_prog_compiler_wl_GCJ='-Wl,'
16141 lt_prog_compiler_pic_GCJ='-fpic'
16142 lt_prog_compiler_static_GCJ='-static'
16143 ;;
16144 ccc*)
16145 lt_prog_compiler_wl_GCJ='-Wl,'
16146 # All Alpha code is PIC.
16147 lt_prog_compiler_static_GCJ='-non_shared'
16148 ;;
16149 esac
16150 ;;
16151
16152 osf3* | osf4* | osf5*)
16153 lt_prog_compiler_wl_GCJ='-Wl,'
16154 # All OSF/1 code is PIC.
16155 lt_prog_compiler_static_GCJ='-non_shared'
16156 ;;
16157
16158 sco3.2v5*)
16159 lt_prog_compiler_pic_GCJ='-Kpic'
16160 lt_prog_compiler_static_GCJ='-dn'
16161 ;;
16162
16163 solaris*)
16164 lt_prog_compiler_pic_GCJ='-KPIC'
16165 lt_prog_compiler_static_GCJ='-Bstatic'
16166 case $cc_basename in
16167 f77* | f90* | f95*)
16168 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16169 *)
16170 lt_prog_compiler_wl_GCJ='-Wl,';;
16171 esac
16172 ;;
16173
16174 sunos4*)
16175 lt_prog_compiler_wl_GCJ='-Qoption ld '
16176 lt_prog_compiler_pic_GCJ='-PIC'
16177 lt_prog_compiler_static_GCJ='-Bstatic'
16178 ;;
16179
16180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16181 lt_prog_compiler_wl_GCJ='-Wl,'
16182 lt_prog_compiler_pic_GCJ='-KPIC'
16183 lt_prog_compiler_static_GCJ='-Bstatic'
16184 ;;
16185
16186 sysv4*MP*)
16187 if test -d /usr/nec ;then
16188 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16189 lt_prog_compiler_static_GCJ='-Bstatic'
16190 fi
16191 ;;
16192
16193 unicos*)
16194 lt_prog_compiler_wl_GCJ='-Wl,'
16195 lt_prog_compiler_can_build_shared_GCJ=no
16196 ;;
16197
16198 uts4*)
16199 lt_prog_compiler_pic_GCJ='-pic'
16200 lt_prog_compiler_static_GCJ='-Bstatic'
16201 ;;
16202
16203 *)
16204 lt_prog_compiler_can_build_shared_GCJ=no
16205 ;;
16206 esac
16207 fi
16208
16209 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16210 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16211
16212 #
16213 # Check to make sure the PIC flag actually works.
16214 #
16215 if test -n "$lt_prog_compiler_pic_GCJ"; then
16216
16217 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16218 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16219 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222 lt_prog_compiler_pic_works_GCJ=no
16223 ac_outfile=conftest.$ac_objext
16224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16225 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16226 # Insert the option either (1) after the last *FLAGS variable, or
16227 # (2) before a word containing "conftest.", or (3) at the end.
16228 # Note that $ac_compile itself does not contain backslashes and begins
16229 # with a dollar sign (not a hyphen), so the echo should work correctly.
16230 # The option is referenced via a variable to avoid confusing sed.
16231 lt_compile=`echo "$ac_compile" | $SED \
16232 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16234 -e 's:$: $lt_compiler_flag:'`
16235 (eval echo "\"\$as_me:16235: $lt_compile\"" >&5)
16236 (eval "$lt_compile" 2>conftest.err)
16237 ac_status=$?
16238 cat conftest.err >&5
16239 echo "$as_me:16239: \$? = $ac_status" >&5
16240 if (exit $ac_status) && test -s "$ac_outfile"; then
16241 # The compiler can only warn and ignore the option if not recognized
16242 # So say no if there are warnings other than the usual output.
16243 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16244 $SED '/^$/d' conftest.err >conftest.er2
16245 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16246 lt_prog_compiler_pic_works_GCJ=yes
16247 fi
16248 fi
16249 $rm conftest*
16250
16251 fi
16252 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16253 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16254
16255 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16256 case $lt_prog_compiler_pic_GCJ in
16257 "" | " "*) ;;
16258 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16259 esac
16260 else
16261 lt_prog_compiler_pic_GCJ=
16262 lt_prog_compiler_can_build_shared_GCJ=no
16263 fi
16264
16265 fi
16266 case "$host_os" in
16267 # For platforms which do not support PIC, -DPIC is meaningless:
16268 *djgpp*)
16269 lt_prog_compiler_pic_GCJ=
16270 ;;
16271 *)
16272 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16273 ;;
16274 esac
16275
16276 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16277 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16278 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 else
16281 lt_cv_prog_compiler_c_o_GCJ=no
16282 $rm -r conftest 2>/dev/null
16283 mkdir conftest
16284 cd conftest
16285 mkdir out
16286 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16287
16288 lt_compiler_flag="-o out/conftest2.$ac_objext"
16289 # Insert the option either (1) after the last *FLAGS variable, or
16290 # (2) before a word containing "conftest.", or (3) at the end.
16291 # Note that $ac_compile itself does not contain backslashes and begins
16292 # with a dollar sign (not a hyphen), so the echo should work correctly.
16293 lt_compile=`echo "$ac_compile" | $SED \
16294 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16296 -e 's:$: $lt_compiler_flag:'`
16297 (eval echo "\"\$as_me:16297: $lt_compile\"" >&5)
16298 (eval "$lt_compile" 2>out/conftest.err)
16299 ac_status=$?
16300 cat out/conftest.err >&5
16301 echo "$as_me:16301: \$? = $ac_status" >&5
16302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16303 then
16304 # The compiler can only warn and ignore the option if not recognized
16305 # So say no if there are warnings
16306 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16307 $SED '/^$/d' out/conftest.err >out/conftest.er2
16308 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16309 lt_cv_prog_compiler_c_o_GCJ=yes
16310 fi
16311 fi
16312 chmod u+w .
16313 $rm conftest*
16314 # SGI C++ compiler will create directory out/ii_files/ for
16315 # template instantiation
16316 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16317 $rm out/* && rmdir out
16318 cd ..
16319 rmdir conftest
16320 $rm conftest*
16321
16322 fi
16323 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16324 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16325
16326
16327 hard_links="nottested"
16328 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16329 # do not overwrite the value of need_locks provided by the user
16330 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16331 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16332 hard_links=yes
16333 $rm conftest*
16334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16335 touch conftest.a
16336 ln conftest.a conftest.b 2>&5 || hard_links=no
16337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16338 echo "$as_me:$LINENO: result: $hard_links" >&5
16339 echo "${ECHO_T}$hard_links" >&6
16340 if test "$hard_links" = no; then
16341 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16342 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16343 need_locks=warn
16344 fi
16345 else
16346 need_locks=no
16347 fi
16348
16349 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16350 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16351
16352 runpath_var=
16353 allow_undefined_flag_GCJ=
16354 enable_shared_with_static_runtimes_GCJ=no
16355 archive_cmds_GCJ=
16356 archive_expsym_cmds_GCJ=
16357 old_archive_From_new_cmds_GCJ=
16358 old_archive_from_expsyms_cmds_GCJ=
16359 export_dynamic_flag_spec_GCJ=
16360 whole_archive_flag_spec_GCJ=
16361 thread_safe_flag_spec_GCJ=
16362 hardcode_libdir_flag_spec_GCJ=
16363 hardcode_libdir_flag_spec_ld_GCJ=
16364 hardcode_libdir_separator_GCJ=
16365 hardcode_direct_GCJ=no
16366 hardcode_minus_L_GCJ=no
16367 hardcode_shlibpath_var_GCJ=unsupported
16368 link_all_deplibs_GCJ=unknown
16369 hardcode_automatic_GCJ=no
16370 module_cmds_GCJ=
16371 module_expsym_cmds_GCJ=
16372 always_export_symbols_GCJ=no
16373 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16374 # include_expsyms should be a list of space-separated symbols to be *always*
16375 # included in the symbol list
16376 include_expsyms_GCJ=
16377 # exclude_expsyms can be an extended regexp of symbols to exclude
16378 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16379 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16380 # as well as any symbol that contains `d'.
16381 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16382 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16383 # platforms (ab)use it in PIC code, but their linkers get confused if
16384 # the symbol is explicitly referenced. Since portable code cannot
16385 # rely on this symbol name, it's probably fine to never include it in
16386 # preloaded symbol tables.
16387 extract_expsyms_cmds=
16388 # Just being paranoid about ensuring that cc_basename is set.
16389 for cc_temp in $compiler""; do
16390 case $cc_temp in
16391 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16392 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16393 \-*) ;;
16394 *) break;;
16395 esac
16396 done
16397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16398
16399 case $host_os in
16400 cygwin* | mingw* | pw32*)
16401 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16402 # When not using gcc, we currently assume that we are using
16403 # Microsoft Visual C++.
16404 if test "$GCC" != yes; then
16405 with_gnu_ld=no
16406 fi
16407 ;;
16408 openbsd*)
16409 with_gnu_ld=no
16410 ;;
16411 esac
16412
16413 ld_shlibs_GCJ=yes
16414 if test "$with_gnu_ld" = yes; then
16415 # If archive_cmds runs LD, not CC, wlarc should be empty
16416 wlarc='${wl}'
16417
16418 # Set some defaults for GNU ld with shared library support. These
16419 # are reset later if shared libraries are not supported. Putting them
16420 # here allows them to be overridden if necessary.
16421 runpath_var=LD_RUN_PATH
16422 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16423 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16424 # ancient GNU ld didn't support --whole-archive et. al.
16425 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16426 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16427 else
16428 whole_archive_flag_spec_GCJ=
16429 fi
16430 supports_anon_versioning=no
16431 case `$LD -v 2>/dev/null` in
16432 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16433 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16434 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16435 *\ 2.11.*) ;; # other 2.11 versions
16436 *) supports_anon_versioning=yes ;;
16437 esac
16438
16439 # See if GNU ld supports shared libraries.
16440 case $host_os in
16441 aix3* | aix4* | aix5*)
16442 # On AIX/PPC, the GNU linker is very broken
16443 if test "$host_cpu" != ia64; then
16444 ld_shlibs_GCJ=no
16445 cat <<EOF 1>&2
16446
16447 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16448 *** to be unable to reliably create shared libraries on AIX.
16449 *** Therefore, libtool is disabling shared libraries support. If you
16450 *** really care for shared libraries, you may want to modify your PATH
16451 *** so that a non-GNU linker is found, and then restart.
16452
16453 EOF
16454 fi
16455 ;;
16456
16457 amigaos*)
16458 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)'
16459 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16460 hardcode_minus_L_GCJ=yes
16461
16462 # Samuel A. Falvo II <[email protected]> reports
16463 # that the semantics of dynamic libraries on AmigaOS, at least up
16464 # to version 4, is to share data among multiple programs linked
16465 # with the same dynamic library. Since this doesn't match the
16466 # behavior of shared libraries on other platforms, we can't use
16467 # them.
16468 ld_shlibs_GCJ=no
16469 ;;
16470
16471 beos*)
16472 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16473 allow_undefined_flag_GCJ=unsupported
16474 # Joseph Beckenbach <[email protected]> says some releases of gcc
16475 # support --undefined. This deserves some investigation. FIXME
16476 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16477 else
16478 ld_shlibs_GCJ=no
16479 fi
16480 ;;
16481
16482 cygwin* | mingw* | pw32*)
16483 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16484 # as there is no search path for DLLs.
16485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16486 allow_undefined_flag_GCJ=unsupported
16487 always_export_symbols_GCJ=no
16488 enable_shared_with_static_runtimes_GCJ=yes
16489 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16490
16491 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16492 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16493 # If the export-symbols file already is a .def file (1st line
16494 # is EXPORTS), use it as is; otherwise, prepend...
16495 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16496 cp $export_symbols $output_objdir/$soname.def;
16497 else
16498 echo EXPORTS > $output_objdir/$soname.def;
16499 cat $export_symbols >> $output_objdir/$soname.def;
16500 fi~
16501 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16502 else
16503 ld_shlibs_GCJ=no
16504 fi
16505 ;;
16506
16507 linux*)
16508 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16509 tmp_addflag=
16510 case $cc_basename,$host_cpu in
16511 pgcc*) # Portland Group C compiler
16512 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16513 tmp_addflag=' $pic_flag'
16514 ;;
16515 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16516 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16517 tmp_addflag=' $pic_flag -Mnomain' ;;
16518 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16519 tmp_addflag=' -i_dynamic' ;;
16520 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16521 tmp_addflag=' -i_dynamic -nofor_main' ;;
16522 ifc* | ifort*) # Intel Fortran compiler
16523 tmp_addflag=' -nofor_main' ;;
16524 esac
16525 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16526
16527 if test $supports_anon_versioning = yes; then
16528 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16530 $echo "local: *; };" >> $output_objdir/$libname.ver~
16531 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16532 fi
16533 else
16534 ld_shlibs_GCJ=no
16535 fi
16536 ;;
16537
16538 netbsd*)
16539 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16540 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16541 wlarc=
16542 else
16543 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16544 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16545 fi
16546 ;;
16547
16548 solaris* | sysv5*)
16549 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16550 ld_shlibs_GCJ=no
16551 cat <<EOF 1>&2
16552
16553 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16554 *** create shared libraries on Solaris systems. Therefore, libtool
16555 *** is disabling shared libraries support. We urge you to upgrade GNU
16556 *** binutils to release 2.9.1 or newer. Another option is to modify
16557 *** your PATH or compiler configuration so that the native linker is
16558 *** used, and then restart.
16559
16560 EOF
16561 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16562 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16563 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16564 else
16565 ld_shlibs_GCJ=no
16566 fi
16567 ;;
16568
16569 sunos4*)
16570 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16571 wlarc=
16572 hardcode_direct_GCJ=yes
16573 hardcode_shlibpath_var_GCJ=no
16574 ;;
16575
16576 *)
16577 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16578 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16579 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16580 else
16581 ld_shlibs_GCJ=no
16582 fi
16583 ;;
16584 esac
16585
16586 if test "$ld_shlibs_GCJ" = no; then
16587 runpath_var=
16588 hardcode_libdir_flag_spec_GCJ=
16589 export_dynamic_flag_spec_GCJ=
16590 whole_archive_flag_spec_GCJ=
16591 fi
16592 else
16593 # PORTME fill in a description of your system's linker (not GNU ld)
16594 case $host_os in
16595 aix3*)
16596 allow_undefined_flag_GCJ=unsupported
16597 always_export_symbols_GCJ=yes
16598 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'
16599 # Note: this linker hardcodes the directories in LIBPATH if there
16600 # are no directories specified by -L.
16601 hardcode_minus_L_GCJ=yes
16602 if test "$GCC" = yes && test -z "$link_static_flag"; then
16603 # Neither direct hardcoding nor static linking is supported with a
16604 # broken collect2.
16605 hardcode_direct_GCJ=unsupported
16606 fi
16607 ;;
16608
16609 aix4* | aix5*)
16610 if test "$host_cpu" = ia64; then
16611 # On IA64, the linker does run time linking by default, so we don't
16612 # have to do anything special.
16613 aix_use_runtimelinking=no
16614 exp_sym_flag='-Bexport'
16615 no_entry_flag=""
16616 else
16617 # If we're using GNU nm, then we don't want the "-C" option.
16618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16619 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16620 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'
16621 else
16622 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'
16623 fi
16624 aix_use_runtimelinking=no
16625
16626 # Test if we are trying to use run time linking or normal
16627 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16628 # need to do runtime linking.
16629 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16630 for ld_flag in $LDFLAGS; do
16631 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16632 aix_use_runtimelinking=yes
16633 break
16634 fi
16635 done
16636 esac
16637
16638 exp_sym_flag='-bexport'
16639 no_entry_flag='-bnoentry'
16640 fi
16641
16642 # When large executables or shared objects are built, AIX ld can
16643 # have problems creating the table of contents. If linking a library
16644 # or program results in "error TOC overflow" add -mminimal-toc to
16645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16647
16648 archive_cmds_GCJ=''
16649 hardcode_direct_GCJ=yes
16650 hardcode_libdir_separator_GCJ=':'
16651 link_all_deplibs_GCJ=yes
16652
16653 if test "$GCC" = yes; then
16654 case $host_os in aix4.[012]|aix4.[012].*)
16655 # We only want to do this on AIX 4.2 and lower, the check
16656 # below for broken collect2 doesn't work under 4.3+
16657 collect2name=`${CC} -print-prog-name=collect2`
16658 if test -f "$collect2name" && \
16659 strings "$collect2name" | grep resolve_lib_name >/dev/null
16660 then
16661 # We have reworked collect2
16662 hardcode_direct_GCJ=yes
16663 else
16664 # We have old collect2
16665 hardcode_direct_GCJ=unsupported
16666 # It fails to find uninstalled libraries when the uninstalled
16667 # path is not listed in the libpath. Setting hardcode_minus_L
16668 # to unsupported forces relinking
16669 hardcode_minus_L_GCJ=yes
16670 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16671 hardcode_libdir_separator_GCJ=
16672 fi
16673 esac
16674 shared_flag='-shared'
16675 if test "$aix_use_runtimelinking" = yes; then
16676 shared_flag="$shared_flag "'${wl}-G'
16677 fi
16678 else
16679 # not using gcc
16680 if test "$host_cpu" = ia64; then
16681 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16682 # chokes on -Wl,-G. The following line is correct:
16683 shared_flag='-G'
16684 else
16685 if test "$aix_use_runtimelinking" = yes; then
16686 shared_flag='${wl}-G'
16687 else
16688 shared_flag='${wl}-bM:SRE'
16689 fi
16690 fi
16691 fi
16692
16693 # It seems that -bexpall does not export symbols beginning with
16694 # underscore (_), so it is better to generate a list of symbols to export.
16695 always_export_symbols_GCJ=yes
16696 if test "$aix_use_runtimelinking" = yes; then
16697 # Warning - without using the other runtime loading flags (-brtl),
16698 # -berok will link without error, but may produce a broken library.
16699 allow_undefined_flag_GCJ='-berok'
16700 # Determine the default libpath from the value encoded in an empty executable.
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707
16708 int
16709 main ()
16710 {
16711
16712 ;
16713 return 0;
16714 }
16715 _ACEOF
16716 rm -f conftest.$ac_objext conftest$ac_exeext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16718 (eval $ac_link) 2>conftest.er1
16719 ac_status=$?
16720 grep -v '^ *+' conftest.er1 >conftest.err
16721 rm -f conftest.er1
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
16725 { ac_try='test -z "$ac_c_werror_flag"
16726 || test ! -s conftest.err'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest$ac_exeext'
16733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16734 (eval $ac_try) 2>&5
16735 ac_status=$?
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); }; }; then
16738
16739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16740 }'`
16741 # Check for a 64-bit object if we didn't find anything.
16742 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; }
16743 }'`; fi
16744 else
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 fi
16749 rm -f conftest.err conftest.$ac_objext \
16750 conftest$ac_exeext conftest.$ac_ext
16751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16752
16753 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16754 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16755 else
16756 if test "$host_cpu" = ia64; then
16757 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16758 allow_undefined_flag_GCJ="-z nodefs"
16759 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16760 else
16761 # Determine the default libpath from the value encoded in an empty executable.
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768
16769 int
16770 main ()
16771 {
16772
16773 ;
16774 return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16779 (eval $ac_link) 2>conftest.er1
16780 ac_status=$?
16781 grep -v '^ *+' conftest.er1 >conftest.err
16782 rm -f conftest.er1
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } &&
16786 { ac_try='test -z "$ac_c_werror_flag"
16787 || test ! -s conftest.err'
16788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789 (eval $ac_try) 2>&5
16790 ac_status=$?
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); }; } &&
16793 { ac_try='test -s conftest$ac_exeext'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799
16800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16801 }'`
16802 # Check for a 64-bit object if we didn't find anything.
16803 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; }
16804 }'`; fi
16805 else
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809 fi
16810 rm -f conftest.err conftest.$ac_objext \
16811 conftest$ac_exeext conftest.$ac_ext
16812 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16813
16814 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16815 # Warning - without using the other run time loading flags,
16816 # -berok will link without error, but may produce a broken library.
16817 no_undefined_flag_GCJ=' ${wl}-bernotok'
16818 allow_undefined_flag_GCJ=' ${wl}-berok'
16819 # -bexpall does not export symbols beginning with underscore (_)
16820 always_export_symbols_GCJ=yes
16821 # Exported symbols can be pulled into shared objects from archives
16822 whole_archive_flag_spec_GCJ=' '
16823 archive_cmds_need_lc_GCJ=yes
16824 # This is similar to how AIX traditionally builds it's shared libraries.
16825 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16826 fi
16827 fi
16828 ;;
16829
16830 amigaos*)
16831 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)'
16832 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16833 hardcode_minus_L_GCJ=yes
16834 # see comment about different semantics on the GNU ld section
16835 ld_shlibs_GCJ=no
16836 ;;
16837
16838 bsdi[45]*)
16839 export_dynamic_flag_spec_GCJ=-rdynamic
16840 ;;
16841
16842 cygwin* | mingw* | pw32*)
16843 # When not using gcc, we currently assume that we are using
16844 # Microsoft Visual C++.
16845 # hardcode_libdir_flag_spec is actually meaningless, as there is
16846 # no search path for DLLs.
16847 hardcode_libdir_flag_spec_GCJ=' '
16848 allow_undefined_flag_GCJ=unsupported
16849 # Tell ltmain to make .lib files, not .a files.
16850 libext=lib
16851 # Tell ltmain to make .dll files, not .so files.
16852 shrext_cmds=".dll"
16853 # FIXME: Setting linknames here is a bad hack.
16854 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16855 # The linker will automatically build a .lib file if we build a DLL.
16856 old_archive_From_new_cmds_GCJ='true'
16857 # FIXME: Should let the user specify the lib program.
16858 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16859 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16860 enable_shared_with_static_runtimes_GCJ=yes
16861 ;;
16862
16863 darwin* | rhapsody*)
16864 case "$host_os" in
16865 rhapsody* | darwin1.[012])
16866 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16867 ;;
16868 *) # Darwin 1.3 on
16869 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16870 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16871 else
16872 case ${MACOSX_DEPLOYMENT_TARGET} in
16873 10.[012])
16874 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16875 ;;
16876 10.*)
16877 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16878 ;;
16879 esac
16880 fi
16881 ;;
16882 esac
16883 archive_cmds_need_lc_GCJ=no
16884 hardcode_direct_GCJ=no
16885 hardcode_automatic_GCJ=yes
16886 hardcode_shlibpath_var_GCJ=unsupported
16887 whole_archive_flag_spec_GCJ=''
16888 link_all_deplibs_GCJ=yes
16889 if test "$GCC" = yes ; then
16890 output_verbose_link_cmd='echo'
16891 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16892 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16893 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16894 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16895 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16896 else
16897 case $cc_basename in
16898 xlc*)
16899 output_verbose_link_cmd='echo'
16900 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16901 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16902 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16903 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16904 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16905 ;;
16906 *)
16907 ld_shlibs_GCJ=no
16908 ;;
16909 esac
16910 fi
16911 ;;
16912
16913 dgux*)
16914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16915 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16916 hardcode_shlibpath_var_GCJ=no
16917 ;;
16918
16919 freebsd1*)
16920 ld_shlibs_GCJ=no
16921 ;;
16922
16923 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16924 # support. Future versions do this automatically, but an explicit c++rt0.o
16925 # does not break anything, and helps significantly (at the cost of a little
16926 # extra space).
16927 freebsd2.2*)
16928 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16929 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16930 hardcode_direct_GCJ=yes
16931 hardcode_shlibpath_var_GCJ=no
16932 ;;
16933
16934 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16935 freebsd2*)
16936 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16937 hardcode_direct_GCJ=yes
16938 hardcode_minus_L_GCJ=yes
16939 hardcode_shlibpath_var_GCJ=no
16940 ;;
16941
16942 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16943 freebsd* | kfreebsd*-gnu | dragonfly*)
16944 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16945 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16946 hardcode_direct_GCJ=yes
16947 hardcode_shlibpath_var_GCJ=no
16948 ;;
16949
16950 hpux9*)
16951 if test "$GCC" = yes; then
16952 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16953 else
16954 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'
16955 fi
16956 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16957 hardcode_libdir_separator_GCJ=:
16958 hardcode_direct_GCJ=yes
16959
16960 # hardcode_minus_L: Not really in the search PATH,
16961 # but as the default location of the library.
16962 hardcode_minus_L_GCJ=yes
16963 export_dynamic_flag_spec_GCJ='${wl}-E'
16964 ;;
16965
16966 hpux10* | hpux11*)
16967 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16968 case "$host_cpu" in
16969 hppa*64*|ia64*)
16970 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16971 ;;
16972 *)
16973 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16974 ;;
16975 esac
16976 else
16977 case "$host_cpu" in
16978 hppa*64*|ia64*)
16979 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16980 ;;
16981 *)
16982 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16983 ;;
16984 esac
16985 fi
16986 if test "$with_gnu_ld" = no; then
16987 case "$host_cpu" in
16988 hppa*64*)
16989 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16990 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16991 hardcode_libdir_separator_GCJ=:
16992 hardcode_direct_GCJ=no
16993 hardcode_shlibpath_var_GCJ=no
16994 ;;
16995 ia64*)
16996 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16997 hardcode_direct_GCJ=no
16998 hardcode_shlibpath_var_GCJ=no
16999
17000 # hardcode_minus_L: Not really in the search PATH,
17001 # but as the default location of the library.
17002 hardcode_minus_L_GCJ=yes
17003 ;;
17004 *)
17005 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17006 hardcode_libdir_separator_GCJ=:
17007 hardcode_direct_GCJ=yes
17008 export_dynamic_flag_spec_GCJ='${wl}-E'
17009
17010 # hardcode_minus_L: Not really in the search PATH,
17011 # but as the default location of the library.
17012 hardcode_minus_L_GCJ=yes
17013 ;;
17014 esac
17015 fi
17016 ;;
17017
17018 irix5* | irix6* | nonstopux*)
17019 if test "$GCC" = yes; then
17020 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17021 else
17022 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'
17023 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17024 fi
17025 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17026 hardcode_libdir_separator_GCJ=:
17027 link_all_deplibs_GCJ=yes
17028 ;;
17029
17030 netbsd*)
17031 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17032 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17033 else
17034 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17035 fi
17036 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17037 hardcode_direct_GCJ=yes
17038 hardcode_shlibpath_var_GCJ=no
17039 ;;
17040
17041 newsos6)
17042 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17043 hardcode_direct_GCJ=yes
17044 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17045 hardcode_libdir_separator_GCJ=:
17046 hardcode_shlibpath_var_GCJ=no
17047 ;;
17048
17049 openbsd*)
17050 hardcode_direct_GCJ=yes
17051 hardcode_shlibpath_var_GCJ=no
17052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17053 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17054 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17056 export_dynamic_flag_spec_GCJ='${wl}-E'
17057 else
17058 case $host_os in
17059 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17060 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17061 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17062 ;;
17063 *)
17064 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17066 ;;
17067 esac
17068 fi
17069 ;;
17070
17071 os2*)
17072 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17073 hardcode_minus_L_GCJ=yes
17074 allow_undefined_flag_GCJ=unsupported
17075 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17076 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17077 ;;
17078
17079 osf3*)
17080 if test "$GCC" = yes; then
17081 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17082 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17083 else
17084 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17085 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'
17086 fi
17087 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17088 hardcode_libdir_separator_GCJ=:
17089 ;;
17090
17091 osf4* | osf5*) # as osf3* with the addition of -msym flag
17092 if test "$GCC" = yes; then
17093 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17094 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17095 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17096 else
17097 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17098 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'
17099 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~
17100 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17101
17102 # Both c and cxx compiler support -rpath directly
17103 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17104 fi
17105 hardcode_libdir_separator_GCJ=:
17106 ;;
17107
17108 sco3.2v5*)
17109 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17110 hardcode_shlibpath_var_GCJ=no
17111 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17112 runpath_var=LD_RUN_PATH
17113 hardcode_runpath_var=yes
17114 ;;
17115
17116 solaris*)
17117 no_undefined_flag_GCJ=' -z text'
17118 if test "$GCC" = yes; then
17119 wlarc='${wl}'
17120 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17121 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17122 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17123 else
17124 wlarc=''
17125 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17126 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17127 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17128 fi
17129 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17130 hardcode_shlibpath_var_GCJ=no
17131 case $host_os in
17132 solaris2.[0-5] | solaris2.[0-5].*) ;;
17133 *)
17134 # The compiler driver will combine linker options so we
17135 # cannot just pass the convience library names through
17136 # without $wl, iff we do not link with $LD.
17137 # Luckily, gcc supports the same syntax we need for Sun Studio.
17138 # Supported since Solaris 2.6 (maybe 2.5.1?)
17139 case $wlarc in
17140 '')
17141 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17142 *)
17143 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17144 esac ;;
17145 esac
17146 link_all_deplibs_GCJ=yes
17147 ;;
17148
17149 sunos4*)
17150 if test "x$host_vendor" = xsequent; then
17151 # Use $CC to link under sequent, because it throws in some extra .o
17152 # files that make .init and .fini sections work.
17153 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17154 else
17155 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17156 fi
17157 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17158 hardcode_direct_GCJ=yes
17159 hardcode_minus_L_GCJ=yes
17160 hardcode_shlibpath_var_GCJ=no
17161 ;;
17162
17163 sysv4)
17164 case $host_vendor in
17165 sni)
17166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17167 hardcode_direct_GCJ=yes # is this really true???
17168 ;;
17169 siemens)
17170 ## LD is ld it makes a PLAMLIB
17171 ## CC just makes a GrossModule.
17172 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17173 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17174 hardcode_direct_GCJ=no
17175 ;;
17176 motorola)
17177 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17179 ;;
17180 esac
17181 runpath_var='LD_RUN_PATH'
17182 hardcode_shlibpath_var_GCJ=no
17183 ;;
17184
17185 sysv4.3*)
17186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17187 hardcode_shlibpath_var_GCJ=no
17188 export_dynamic_flag_spec_GCJ='-Bexport'
17189 ;;
17190
17191 sysv4*MP*)
17192 if test -d /usr/nec; then
17193 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17194 hardcode_shlibpath_var_GCJ=no
17195 runpath_var=LD_RUN_PATH
17196 hardcode_runpath_var=yes
17197 ld_shlibs_GCJ=yes
17198 fi
17199 ;;
17200
17201 sysv4.2uw2*)
17202 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17203 hardcode_direct_GCJ=yes
17204 hardcode_minus_L_GCJ=no
17205 hardcode_shlibpath_var_GCJ=no
17206 hardcode_runpath_var=yes
17207 runpath_var=LD_RUN_PATH
17208 ;;
17209
17210 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17211 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17212 if test "$GCC" = yes; then
17213 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17214 else
17215 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17216 fi
17217 runpath_var='LD_RUN_PATH'
17218 hardcode_shlibpath_var_GCJ=no
17219 ;;
17220
17221 sysv5*)
17222 no_undefined_flag_GCJ=' -z text'
17223 # $CC -shared without GNU ld will not create a library from C++
17224 # object files and a static libstdc++, better avoid it by now
17225 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17226 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17227 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17228 hardcode_libdir_flag_spec_GCJ=
17229 hardcode_shlibpath_var_GCJ=no
17230 runpath_var='LD_RUN_PATH'
17231 ;;
17232
17233 uts4*)
17234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17236 hardcode_shlibpath_var_GCJ=no
17237 ;;
17238
17239 *)
17240 ld_shlibs_GCJ=no
17241 ;;
17242 esac
17243 fi
17244
17245 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17246 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17247 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17248
17249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17250 if test "$GCC" = yes; then
17251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17252 fi
17253
17254 #
17255 # Do we need to explicitly link libc?
17256 #
17257 case "x$archive_cmds_need_lc_GCJ" in
17258 x|xyes)
17259 # Assume -lc should be added
17260 archive_cmds_need_lc_GCJ=yes
17261
17262 if test "$enable_shared" = yes && test "$GCC" = yes; then
17263 case $archive_cmds_GCJ in
17264 *'~'*)
17265 # FIXME: we may have to deal with multi-command sequences.
17266 ;;
17267 '$CC '*)
17268 # Test whether the compiler implicitly links with -lc since on some
17269 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17270 # to ld, don't add -lc before -lgcc.
17271 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17272 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17273 $rm conftest*
17274 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17275
17276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17277 (eval $ac_compile) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } 2>conftest.err; then
17281 soname=conftest
17282 lib=conftest
17283 libobjs=conftest.$ac_objext
17284 deplibs=
17285 wl=$lt_prog_compiler_wl_GCJ
17286 compiler_flags=-v
17287 linker_flags=-v
17288 verstring=
17289 output_objdir=.
17290 libname=conftest
17291 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17292 allow_undefined_flag_GCJ=
17293 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17294 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }
17298 then
17299 archive_cmds_need_lc_GCJ=no
17300 else
17301 archive_cmds_need_lc_GCJ=yes
17302 fi
17303 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17304 else
17305 cat conftest.err 1>&5
17306 fi
17307 $rm conftest*
17308 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17309 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17310 ;;
17311 esac
17312 fi
17313 ;;
17314 esac
17315
17316 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17317 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17318 library_names_spec=
17319 libname_spec='lib$name'
17320 soname_spec=
17321 shrext_cmds=".so"
17322 postinstall_cmds=
17323 postuninstall_cmds=
17324 finish_cmds=
17325 finish_eval=
17326 shlibpath_var=
17327 shlibpath_overrides_runpath=unknown
17328 version_type=none
17329 dynamic_linker="$host_os ld.so"
17330 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17331 if test "$GCC" = yes; then
17332 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17333 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17334 # if the path contains ";" then we assume it to be the separator
17335 # otherwise default to the standard path separator (i.e. ":") - it is
17336 # assumed that no part of a normal pathname contains ";" but that should
17337 # okay in the real world where ";" in dirpaths is itself problematic.
17338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17339 else
17340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17341 fi
17342 else
17343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17344 fi
17345 need_lib_prefix=unknown
17346 hardcode_into_libs=no
17347
17348 # when you set need_version to no, make sure it does not cause -set_version
17349 # flags to be left without arguments
17350 need_version=unknown
17351
17352 case $host_os in
17353 aix3*)
17354 version_type=linux
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17356 shlibpath_var=LIBPATH
17357
17358 # AIX 3 has no versioning support, so we append a major version to the name.
17359 soname_spec='${libname}${release}${shared_ext}$major'
17360 ;;
17361
17362 aix4* | aix5*)
17363 version_type=linux
17364 need_lib_prefix=no
17365 need_version=no
17366 hardcode_into_libs=yes
17367 if test "$host_cpu" = ia64; then
17368 # AIX 5 supports IA64
17369 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 else
17372 # With GCC up to 2.95.x, collect2 would create an import file
17373 # for dependence libraries. The import file would start with
17374 # the line `#! .'. This would cause the generated library to
17375 # depend on `.', always an invalid library. This was fixed in
17376 # development snapshots of GCC prior to 3.0.
17377 case $host_os in
17378 aix4 | aix4.[01] | aix4.[01].*)
17379 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17380 echo ' yes '
17381 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17382 :
17383 else
17384 can_build_shared=no
17385 fi
17386 ;;
17387 esac
17388 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17389 # soname into executable. Probably we can add versioning support to
17390 # collect2, so additional links can be useful in future.
17391 if test "$aix_use_runtimelinking" = yes; then
17392 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17393 # instead of lib<name>.a to let people know that these are not
17394 # typical AIX shared libraries.
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 else
17397 # We preserve .a as extension for shared libraries through AIX4.2
17398 # and later when we are not doing run time linking.
17399 library_names_spec='${libname}${release}.a $libname.a'
17400 soname_spec='${libname}${release}${shared_ext}$major'
17401 fi
17402 shlibpath_var=LIBPATH
17403 fi
17404 ;;
17405
17406 amigaos*)
17407 library_names_spec='$libname.ixlibrary $libname.a'
17408 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17409 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'
17410 ;;
17411
17412 beos*)
17413 library_names_spec='${libname}${shared_ext}'
17414 dynamic_linker="$host_os ld.so"
17415 shlibpath_var=LIBRARY_PATH
17416 ;;
17417
17418 bsdi[45]*)
17419 version_type=linux
17420 need_version=no
17421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17422 soname_spec='${libname}${release}${shared_ext}$major'
17423 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17424 shlibpath_var=LD_LIBRARY_PATH
17425 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17426 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17427 # the default ld.so.conf also contains /usr/contrib/lib and
17428 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17429 # libtool to hard-code these into programs
17430 ;;
17431
17432 cygwin* | mingw* | pw32*)
17433 version_type=windows
17434 shrext_cmds=".dll"
17435 need_version=no
17436 need_lib_prefix=no
17437
17438 case $GCC,$host_os in
17439 yes,cygwin* | yes,mingw* | yes,pw32*)
17440 library_names_spec='$libname.dll.a'
17441 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17442 postinstall_cmds='base_file=`basename \${file}`~
17443 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17444 dldir=$destdir/`dirname \$dlpath`~
17445 test -d \$dldir || mkdir -p \$dldir~
17446 $install_prog $dir/$dlname \$dldir/$dlname'
17447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17448 dlpath=$dir/\$dldll~
17449 $rm \$dlpath'
17450 shlibpath_overrides_runpath=yes
17451
17452 case $host_os in
17453 cygwin*)
17454 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17455 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17456 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17457 ;;
17458 mingw*)
17459 # MinGW DLLs use traditional 'lib' prefix
17460 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17461 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17462 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17463 # It is most probably a Windows format PATH printed by
17464 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17465 # path with ; separators, and with drive letters. We can handle the
17466 # drive letters (cygwin fileutils understands them), so leave them,
17467 # especially as we might pass files found there to a mingw objdump,
17468 # which wouldn't understand a cygwinified path. Ahh.
17469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17470 else
17471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17472 fi
17473 ;;
17474 pw32*)
17475 # pw32 DLLs use 'pw' prefix rather than 'lib'
17476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17477 ;;
17478 esac
17479 ;;
17480
17481 *)
17482 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17483 ;;
17484 esac
17485 dynamic_linker='Win32 ld.exe'
17486 # FIXME: first we should search . and the directory the executable is in
17487 shlibpath_var=PATH
17488 ;;
17489
17490 darwin* | rhapsody*)
17491 dynamic_linker="$host_os dyld"
17492 version_type=darwin
17493 need_lib_prefix=no
17494 need_version=no
17495 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17496 soname_spec='${libname}${release}${major}$shared_ext'
17497 shlibpath_overrides_runpath=yes
17498 shlibpath_var=DYLD_LIBRARY_PATH
17499 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17500 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17501 if test "$GCC" = yes; then
17502 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"`
17503 else
17504 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17505 fi
17506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17507 ;;
17508
17509 dgux*)
17510 version_type=linux
17511 need_lib_prefix=no
17512 need_version=no
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17514 soname_spec='${libname}${release}${shared_ext}$major'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 ;;
17517
17518 freebsd1*)
17519 dynamic_linker=no
17520 ;;
17521
17522 kfreebsd*-gnu)
17523 version_type=linux
17524 need_lib_prefix=no
17525 need_version=no
17526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17527 soname_spec='${libname}${release}${shared_ext}$major'
17528 shlibpath_var=LD_LIBRARY_PATH
17529 shlibpath_overrides_runpath=no
17530 hardcode_into_libs=yes
17531 dynamic_linker='GNU ld.so'
17532 ;;
17533
17534 freebsd* | dragonfly*)
17535 # DragonFly does not have aout. When/if they implement a new
17536 # versioning mechanism, adjust this.
17537 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17538 version_type=freebsd-$objformat
17539 case $version_type in
17540 freebsd-elf*)
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17542 need_version=no
17543 need_lib_prefix=no
17544 ;;
17545 freebsd-*)
17546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17547 need_version=yes
17548 ;;
17549 esac
17550 shlibpath_var=LD_LIBRARY_PATH
17551 case $host_os in
17552 freebsd2*)
17553 shlibpath_overrides_runpath=yes
17554 ;;
17555 freebsd3.[01]* | freebsdelf3.[01]*)
17556 shlibpath_overrides_runpath=yes
17557 hardcode_into_libs=yes
17558 ;;
17559 *) # from 3.2 on
17560 shlibpath_overrides_runpath=no
17561 hardcode_into_libs=yes
17562 ;;
17563 esac
17564 ;;
17565
17566 gnu*)
17567 version_type=linux
17568 need_lib_prefix=no
17569 need_version=no
17570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17571 soname_spec='${libname}${release}${shared_ext}$major'
17572 shlibpath_var=LD_LIBRARY_PATH
17573 hardcode_into_libs=yes
17574 ;;
17575
17576 hpux9* | hpux10* | hpux11*)
17577 # Give a soname corresponding to the major version so that dld.sl refuses to
17578 # link against other versions.
17579 version_type=sunos
17580 need_lib_prefix=no
17581 need_version=no
17582 case "$host_cpu" in
17583 ia64*)
17584 shrext_cmds='.so'
17585 hardcode_into_libs=yes
17586 dynamic_linker="$host_os dld.so"
17587 shlibpath_var=LD_LIBRARY_PATH
17588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590 soname_spec='${libname}${release}${shared_ext}$major'
17591 if test "X$HPUX_IA64_MODE" = X32; then
17592 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17593 else
17594 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17595 fi
17596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17597 ;;
17598 hppa*64*)
17599 shrext_cmds='.sl'
17600 hardcode_into_libs=yes
17601 dynamic_linker="$host_os dld.sl"
17602 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17605 soname_spec='${libname}${release}${shared_ext}$major'
17606 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17608 ;;
17609 *)
17610 shrext_cmds='.sl'
17611 dynamic_linker="$host_os dld.sl"
17612 shlibpath_var=SHLIB_PATH
17613 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17615 soname_spec='${libname}${release}${shared_ext}$major'
17616 ;;
17617 esac
17618 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17619 postinstall_cmds='chmod 555 $lib'
17620 ;;
17621
17622 irix5* | irix6* | nonstopux*)
17623 case $host_os in
17624 nonstopux*) version_type=nonstopux ;;
17625 *)
17626 if test "$lt_cv_prog_gnu_ld" = yes; then
17627 version_type=linux
17628 else
17629 version_type=irix
17630 fi ;;
17631 esac
17632 need_lib_prefix=no
17633 need_version=no
17634 soname_spec='${libname}${release}${shared_ext}$major'
17635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17636 case $host_os in
17637 irix5* | nonstopux*)
17638 libsuff= shlibsuff=
17639 ;;
17640 *)
17641 case $LD in # libtool.m4 will add one of these switches to LD
17642 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17643 libsuff= shlibsuff= libmagic=32-bit;;
17644 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17645 libsuff=32 shlibsuff=N32 libmagic=N32;;
17646 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17647 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17648 *) libsuff= shlibsuff= libmagic=never-match;;
17649 esac
17650 ;;
17651 esac
17652 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17653 shlibpath_overrides_runpath=no
17654 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17655 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17656 hardcode_into_libs=yes
17657 ;;
17658
17659 # No shared lib support for Linux oldld, aout, or coff.
17660 linux*oldld* | linux*aout* | linux*coff*)
17661 dynamic_linker=no
17662 ;;
17663
17664 # This must be Linux ELF.
17665 linux*)
17666 version_type=linux
17667 need_lib_prefix=no
17668 need_version=no
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670 soname_spec='${libname}${release}${shared_ext}$major'
17671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17672 shlibpath_var=LD_LIBRARY_PATH
17673 shlibpath_overrides_runpath=no
17674 # This implies no fast_install, which is unacceptable.
17675 # Some rework will be needed to allow for fast_install
17676 # before this can be enabled.
17677 hardcode_into_libs=yes
17678
17679 # Append ld.so.conf contents to the search path
17680 if test -f /etc/ld.so.conf; then
17681 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17682 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17683 fi
17684
17685 # We used to test for /lib/ld.so.1 and disable shared libraries on
17686 # powerpc, because MkLinux only supported shared libraries with the
17687 # GNU dynamic linker. Since this was broken with cross compilers,
17688 # most powerpc-linux boxes support dynamic linking these days and
17689 # people can always --disable-shared, the test was removed, and we
17690 # assume the GNU/Linux dynamic linker is in use.
17691 dynamic_linker='GNU/Linux ld.so'
17692 ;;
17693
17694 knetbsd*-gnu)
17695 version_type=linux
17696 need_lib_prefix=no
17697 need_version=no
17698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17699 soname_spec='${libname}${release}${shared_ext}$major'
17700 shlibpath_var=LD_LIBRARY_PATH
17701 shlibpath_overrides_runpath=no
17702 hardcode_into_libs=yes
17703 dynamic_linker='GNU ld.so'
17704 ;;
17705
17706 netbsd*)
17707 version_type=sunos
17708 need_lib_prefix=no
17709 need_version=no
17710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17713 dynamic_linker='NetBSD (a.out) ld.so'
17714 else
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17716 soname_spec='${libname}${release}${shared_ext}$major'
17717 dynamic_linker='NetBSD ld.elf_so'
17718 fi
17719 shlibpath_var=LD_LIBRARY_PATH
17720 shlibpath_overrides_runpath=yes
17721 hardcode_into_libs=yes
17722 ;;
17723
17724 newsos6)
17725 version_type=linux
17726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17727 shlibpath_var=LD_LIBRARY_PATH
17728 shlibpath_overrides_runpath=yes
17729 ;;
17730
17731 nto-qnx*)
17732 version_type=linux
17733 need_lib_prefix=no
17734 need_version=no
17735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17736 soname_spec='${libname}${release}${shared_ext}$major'
17737 shlibpath_var=LD_LIBRARY_PATH
17738 shlibpath_overrides_runpath=yes
17739 ;;
17740
17741 openbsd*)
17742 version_type=sunos
17743 need_lib_prefix=no
17744 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17745 case $host_os in
17746 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17747 *) need_version=no ;;
17748 esac
17749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17750 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17751 shlibpath_var=LD_LIBRARY_PATH
17752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17753 case $host_os in
17754 openbsd2.[89] | openbsd2.[89].*)
17755 shlibpath_overrides_runpath=no
17756 ;;
17757 *)
17758 shlibpath_overrides_runpath=yes
17759 ;;
17760 esac
17761 else
17762 shlibpath_overrides_runpath=yes
17763 fi
17764 ;;
17765
17766 os2*)
17767 libname_spec='$name'
17768 shrext_cmds=".dll"
17769 need_lib_prefix=no
17770 library_names_spec='$libname${shared_ext} $libname.a'
17771 dynamic_linker='OS/2 ld.exe'
17772 shlibpath_var=LIBPATH
17773 ;;
17774
17775 osf3* | osf4* | osf5*)
17776 version_type=osf
17777 need_lib_prefix=no
17778 need_version=no
17779 soname_spec='${libname}${release}${shared_ext}$major'
17780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17781 shlibpath_var=LD_LIBRARY_PATH
17782 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17783 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17784 ;;
17785
17786 sco3.2v5*)
17787 version_type=osf
17788 soname_spec='${libname}${release}${shared_ext}$major'
17789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17790 shlibpath_var=LD_LIBRARY_PATH
17791 ;;
17792
17793 solaris*)
17794 version_type=linux
17795 need_lib_prefix=no
17796 need_version=no
17797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17798 soname_spec='${libname}${release}${shared_ext}$major'
17799 shlibpath_var=LD_LIBRARY_PATH
17800 shlibpath_overrides_runpath=yes
17801 hardcode_into_libs=yes
17802 # ldd complains unless libraries are executable
17803 postinstall_cmds='chmod +x $lib'
17804 ;;
17805
17806 sunos4*)
17807 version_type=sunos
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17809 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 shlibpath_overrides_runpath=yes
17812 if test "$with_gnu_ld" = yes; then
17813 need_lib_prefix=no
17814 fi
17815 need_version=yes
17816 ;;
17817
17818 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17819 version_type=linux
17820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17821 soname_spec='${libname}${release}${shared_ext}$major'
17822 shlibpath_var=LD_LIBRARY_PATH
17823 case $host_vendor in
17824 sni)
17825 shlibpath_overrides_runpath=no
17826 need_lib_prefix=no
17827 export_dynamic_flag_spec='${wl}-Blargedynsym'
17828 runpath_var=LD_RUN_PATH
17829 ;;
17830 siemens)
17831 need_lib_prefix=no
17832 ;;
17833 motorola)
17834 need_lib_prefix=no
17835 need_version=no
17836 shlibpath_overrides_runpath=no
17837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17838 ;;
17839 esac
17840 ;;
17841
17842 sysv4*MP*)
17843 if test -d /usr/nec ;then
17844 version_type=linux
17845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17846 soname_spec='$libname${shared_ext}.$major'
17847 shlibpath_var=LD_LIBRARY_PATH
17848 fi
17849 ;;
17850
17851 uts4*)
17852 version_type=linux
17853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854 soname_spec='${libname}${release}${shared_ext}$major'
17855 shlibpath_var=LD_LIBRARY_PATH
17856 ;;
17857
17858 *)
17859 dynamic_linker=no
17860 ;;
17861 esac
17862 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17863 echo "${ECHO_T}$dynamic_linker" >&6
17864 test "$dynamic_linker" = no && can_build_shared=no
17865
17866 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17867 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17868 hardcode_action_GCJ=
17869 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17870 test -n "$runpath_var_GCJ" || \
17871 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17872
17873 # We can hardcode non-existant directories.
17874 if test "$hardcode_direct_GCJ" != no &&
17875 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17876 # have to relink, otherwise we might link with an installed library
17877 # when we should be linking with a yet-to-be-installed one
17878 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17879 test "$hardcode_minus_L_GCJ" != no; then
17880 # Linking always hardcodes the temporary library directory.
17881 hardcode_action_GCJ=relink
17882 else
17883 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17884 hardcode_action_GCJ=immediate
17885 fi
17886 else
17887 # We cannot hardcode anything, or else we can only hardcode existing
17888 # directories.
17889 hardcode_action_GCJ=unsupported
17890 fi
17891 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17892 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17893
17894 if test "$hardcode_action_GCJ" = relink; then
17895 # Fast installation is not supported
17896 enable_fast_install=no
17897 elif test "$shlibpath_overrides_runpath" = yes ||
17898 test "$enable_shared" = no; then
17899 # Fast installation is not necessary
17900 enable_fast_install=needless
17901 fi
17902
17903 striplib=
17904 old_striplib=
17905 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17906 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17907 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17908 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17909 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17910 echo "$as_me:$LINENO: result: yes" >&5
17911 echo "${ECHO_T}yes" >&6
17912 else
17913 # FIXME - insert some real tests, host_os isn't really good enough
17914 case $host_os in
17915 darwin*)
17916 if test -n "$STRIP" ; then
17917 striplib="$STRIP -x"
17918 echo "$as_me:$LINENO: result: yes" >&5
17919 echo "${ECHO_T}yes" >&6
17920 else
17921 echo "$as_me:$LINENO: result: no" >&5
17922 echo "${ECHO_T}no" >&6
17923 fi
17924 ;;
17925 *)
17926 echo "$as_me:$LINENO: result: no" >&5
17927 echo "${ECHO_T}no" >&6
17928 ;;
17929 esac
17930 fi
17931
17932 if test "x$enable_dlopen" != xyes; then
17933 enable_dlopen=unknown
17934 enable_dlopen_self=unknown
17935 enable_dlopen_self_static=unknown
17936 else
17937 lt_cv_dlopen=no
17938 lt_cv_dlopen_libs=
17939
17940 case $host_os in
17941 beos*)
17942 lt_cv_dlopen="load_add_on"
17943 lt_cv_dlopen_libs=
17944 lt_cv_dlopen_self=yes
17945 ;;
17946
17947 mingw* | pw32*)
17948 lt_cv_dlopen="LoadLibrary"
17949 lt_cv_dlopen_libs=
17950 ;;
17951
17952 cygwin*)
17953 lt_cv_dlopen="dlopen"
17954 lt_cv_dlopen_libs=
17955 ;;
17956
17957 darwin*)
17958 # if libdl is installed we need to link against it
17959 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17960 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17961 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17962 echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964 ac_check_lib_save_LIBS=$LIBS
17965 LIBS="-ldl $LIBS"
17966 cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h. */
17968 _ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17972
17973 /* Override any gcc2 internal prototype to avoid an error. */
17974 #ifdef __cplusplus
17975 extern "C"
17976 #endif
17977 /* We use char because int might match the return type of a gcc2
17978 builtin and then its argument prototype would still apply. */
17979 char dlopen ();
17980 int
17981 main ()
17982 {
17983 dlopen ();
17984 ;
17985 return 0;
17986 }
17987 _ACEOF
17988 rm -f conftest.$ac_objext conftest$ac_exeext
17989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17990 (eval $ac_link) 2>conftest.er1
17991 ac_status=$?
17992 grep -v '^ *+' conftest.er1 >conftest.err
17993 rm -f conftest.er1
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_c_werror_flag"
17998 || test ! -s conftest.err'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } &&
18004 { ac_try='test -s conftest$ac_exeext'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 ac_cv_lib_dl_dlopen=yes
18011 else
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18014
18015 ac_cv_lib_dl_dlopen=no
18016 fi
18017 rm -f conftest.err conftest.$ac_objext \
18018 conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18020 fi
18021 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18022 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18023 if test $ac_cv_lib_dl_dlopen = yes; then
18024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18025 else
18026
18027 lt_cv_dlopen="dyld"
18028 lt_cv_dlopen_libs=
18029 lt_cv_dlopen_self=yes
18030
18031 fi
18032
18033 ;;
18034
18035 *)
18036 echo "$as_me:$LINENO: checking for shl_load" >&5
18037 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18038 if test "${ac_cv_func_shl_load+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041 cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h. */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18049 #define shl_load innocuous_shl_load
18050
18051 /* System header to define __stub macros and hopefully few prototypes,
18052 which can conflict with char shl_load (); below.
18053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18054 <limits.h> exists even on freestanding compilers. */
18055
18056 #ifdef __STDC__
18057 # include <limits.h>
18058 #else
18059 # include <assert.h>
18060 #endif
18061
18062 #undef shl_load
18063
18064 /* Override any gcc2 internal prototype to avoid an error. */
18065 #ifdef __cplusplus
18066 extern "C"
18067 {
18068 #endif
18069 /* We use char because int might match the return type of a gcc2
18070 builtin and then its argument prototype would still apply. */
18071 char shl_load ();
18072 /* The GNU C library defines this for functions which it implements
18073 to always fail with ENOSYS. Some functions are actually named
18074 something starting with __ and the normal name is an alias. */
18075 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18076 choke me
18077 #else
18078 char (*f) () = shl_load;
18079 #endif
18080 #ifdef __cplusplus
18081 }
18082 #endif
18083
18084 int
18085 main ()
18086 {
18087 return f != shl_load;
18088 ;
18089 return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094 (eval $ac_link) 2>conftest.er1
18095 ac_status=$?
18096 grep -v '^ *+' conftest.er1 >conftest.err
18097 rm -f conftest.er1
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag"
18102 || test ! -s conftest.err'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } &&
18108 { ac_try='test -s conftest$ac_exeext'
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18114 ac_cv_func_shl_load=yes
18115 else
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18118
18119 ac_cv_func_shl_load=no
18120 fi
18121 rm -f conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
18123 fi
18124 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18125 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18126 if test $ac_cv_func_shl_load = yes; then
18127 lt_cv_dlopen="shl_load"
18128 else
18129 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18130 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18131 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134 ac_check_lib_save_LIBS=$LIBS
18135 LIBS="-ldld $LIBS"
18136 cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h. */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142
18143 /* Override any gcc2 internal prototype to avoid an error. */
18144 #ifdef __cplusplus
18145 extern "C"
18146 #endif
18147 /* We use char because int might match the return type of a gcc2
18148 builtin and then its argument prototype would still apply. */
18149 char shl_load ();
18150 int
18151 main ()
18152 {
18153 shl_load ();
18154 ;
18155 return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18160 (eval $ac_link) 2>conftest.er1
18161 ac_status=$?
18162 grep -v '^ *+' conftest.er1 >conftest.err
18163 rm -f conftest.er1
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try='test -z "$ac_c_werror_flag"
18168 || test ! -s conftest.err'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest$ac_exeext'
18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 ac_cv_lib_dld_shl_load=yes
18181 else
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185 ac_cv_lib_dld_shl_load=no
18186 fi
18187 rm -f conftest.err conftest.$ac_objext \
18188 conftest$ac_exeext conftest.$ac_ext
18189 LIBS=$ac_check_lib_save_LIBS
18190 fi
18191 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18192 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18193 if test $ac_cv_lib_dld_shl_load = yes; then
18194 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18195 else
18196 echo "$as_me:$LINENO: checking for dlopen" >&5
18197 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18198 if test "${ac_cv_func_dlopen+set}" = set; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 else
18201 cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h. */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h. */
18207 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18209 #define dlopen innocuous_dlopen
18210
18211 /* System header to define __stub macros and hopefully few prototypes,
18212 which can conflict with char dlopen (); below.
18213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18214 <limits.h> exists even on freestanding compilers. */
18215
18216 #ifdef __STDC__
18217 # include <limits.h>
18218 #else
18219 # include <assert.h>
18220 #endif
18221
18222 #undef dlopen
18223
18224 /* Override any gcc2 internal prototype to avoid an error. */
18225 #ifdef __cplusplus
18226 extern "C"
18227 {
18228 #endif
18229 /* We use char because int might match the return type of a gcc2
18230 builtin and then its argument prototype would still apply. */
18231 char dlopen ();
18232 /* The GNU C library defines this for functions which it implements
18233 to always fail with ENOSYS. Some functions are actually named
18234 something starting with __ and the normal name is an alias. */
18235 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18236 choke me
18237 #else
18238 char (*f) () = dlopen;
18239 #endif
18240 #ifdef __cplusplus
18241 }
18242 #endif
18243
18244 int
18245 main ()
18246 {
18247 return f != dlopen;
18248 ;
18249 return 0;
18250 }
18251 _ACEOF
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18254 (eval $ac_link) 2>conftest.er1
18255 ac_status=$?
18256 grep -v '^ *+' conftest.er1 >conftest.err
18257 rm -f conftest.er1
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
18261 { ac_try='test -z "$ac_c_werror_flag"
18262 || test ! -s conftest.err'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest$ac_exeext'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18274 ac_cv_func_dlopen=yes
18275 else
18276 echo "$as_me: failed program was:" >&5
18277 sed 's/^/| /' conftest.$ac_ext >&5
18278
18279 ac_cv_func_dlopen=no
18280 fi
18281 rm -f conftest.err conftest.$ac_objext \
18282 conftest$ac_exeext conftest.$ac_ext
18283 fi
18284 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18285 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18286 if test $ac_cv_func_dlopen = yes; then
18287 lt_cv_dlopen="dlopen"
18288 else
18289 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18290 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18292 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 else
18294 ac_check_lib_save_LIBS=$LIBS
18295 LIBS="-ldl $LIBS"
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h. */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302
18303 /* Override any gcc2 internal prototype to avoid an error. */
18304 #ifdef __cplusplus
18305 extern "C"
18306 #endif
18307 /* We use char because int might match the return type of a gcc2
18308 builtin and then its argument prototype would still apply. */
18309 char dlopen ();
18310 int
18311 main ()
18312 {
18313 dlopen ();
18314 ;
18315 return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18320 (eval $ac_link) 2>conftest.er1
18321 ac_status=$?
18322 grep -v '^ *+' conftest.er1 >conftest.err
18323 rm -f conftest.er1
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_c_werror_flag"
18328 || test ! -s conftest.err'
18329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); }; } &&
18334 { ac_try='test -s conftest$ac_exeext'
18335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18336 (eval $ac_try) 2>&5
18337 ac_status=$?
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; }; then
18340 ac_cv_lib_dl_dlopen=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18344
18345 ac_cv_lib_dl_dlopen=no
18346 fi
18347 rm -f conftest.err conftest.$ac_objext \
18348 conftest$ac_exeext conftest.$ac_ext
18349 LIBS=$ac_check_lib_save_LIBS
18350 fi
18351 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18352 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18353 if test $ac_cv_lib_dl_dlopen = yes; then
18354 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18355 else
18356 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18357 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18358 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18359 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 else
18361 ac_check_lib_save_LIBS=$LIBS
18362 LIBS="-lsvld $LIBS"
18363 cat >conftest.$ac_ext <<_ACEOF
18364 /* confdefs.h. */
18365 _ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18369
18370 /* Override any gcc2 internal prototype to avoid an error. */
18371 #ifdef __cplusplus
18372 extern "C"
18373 #endif
18374 /* We use char because int might match the return type of a gcc2
18375 builtin and then its argument prototype would still apply. */
18376 char dlopen ();
18377 int
18378 main ()
18379 {
18380 dlopen ();
18381 ;
18382 return 0;
18383 }
18384 _ACEOF
18385 rm -f conftest.$ac_objext conftest$ac_exeext
18386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18387 (eval $ac_link) 2>conftest.er1
18388 ac_status=$?
18389 grep -v '^ *+' conftest.er1 >conftest.err
18390 rm -f conftest.er1
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
18394 { ac_try='test -z "$ac_c_werror_flag"
18395 || test ! -s conftest.err'
18396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397 (eval $ac_try) 2>&5
18398 ac_status=$?
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); }; } &&
18401 { ac_try='test -s conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_lib_svld_dlopen=yes
18408 else
18409 echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412 ac_cv_lib_svld_dlopen=no
18413 fi
18414 rm -f conftest.err conftest.$ac_objext \
18415 conftest$ac_exeext conftest.$ac_ext
18416 LIBS=$ac_check_lib_save_LIBS
18417 fi
18418 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18419 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18420 if test $ac_cv_lib_svld_dlopen = yes; then
18421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18422 else
18423 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18424 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18425 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18426 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 else
18428 ac_check_lib_save_LIBS=$LIBS
18429 LIBS="-ldld $LIBS"
18430 cat >conftest.$ac_ext <<_ACEOF
18431 /* confdefs.h. */
18432 _ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h. */
18436
18437 /* Override any gcc2 internal prototype to avoid an error. */
18438 #ifdef __cplusplus
18439 extern "C"
18440 #endif
18441 /* We use char because int might match the return type of a gcc2
18442 builtin and then its argument prototype would still apply. */
18443 char dld_link ();
18444 int
18445 main ()
18446 {
18447 dld_link ();
18448 ;
18449 return 0;
18450 }
18451 _ACEOF
18452 rm -f conftest.$ac_objext conftest$ac_exeext
18453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18454 (eval $ac_link) 2>conftest.er1
18455 ac_status=$?
18456 grep -v '^ *+' conftest.er1 >conftest.err
18457 rm -f conftest.er1
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_c_werror_flag"
18462 || test ! -s conftest.err'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18465 ac_status=$?
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; } &&
18468 { ac_try='test -s conftest$ac_exeext'
18469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470 (eval $ac_try) 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 ac_cv_lib_dld_dld_link=yes
18475 else
18476 echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18478
18479 ac_cv_lib_dld_dld_link=no
18480 fi
18481 rm -f conftest.err conftest.$ac_objext \
18482 conftest$ac_exeext conftest.$ac_ext
18483 LIBS=$ac_check_lib_save_LIBS
18484 fi
18485 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18486 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18487 if test $ac_cv_lib_dld_dld_link = yes; then
18488 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18489 fi
18490
18491
18492 fi
18493
18494
18495 fi
18496
18497
18498 fi
18499
18500
18501 fi
18502
18503
18504 fi
18505
18506 ;;
18507 esac
18508
18509 if test "x$lt_cv_dlopen" != xno; then
18510 enable_dlopen=yes
18511 else
18512 enable_dlopen=no
18513 fi
18514
18515 case $lt_cv_dlopen in
18516 dlopen)
18517 save_CPPFLAGS="$CPPFLAGS"
18518 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18519
18520 save_LDFLAGS="$LDFLAGS"
18521 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18522
18523 save_LIBS="$LIBS"
18524 LIBS="$lt_cv_dlopen_libs $LIBS"
18525
18526 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18527 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18528 if test "${lt_cv_dlopen_self+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
18530 else
18531 if test "$cross_compiling" = yes; then :
18532 lt_cv_dlopen_self=cross
18533 else
18534 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18535 lt_status=$lt_dlunknown
18536 cat > conftest.$ac_ext <<EOF
18537 #line 18537 "configure"
18538 #include "confdefs.h"
18539
18540 #if HAVE_DLFCN_H
18541 #include <dlfcn.h>
18542 #endif
18543
18544 #include <stdio.h>
18545
18546 #ifdef RTLD_GLOBAL
18547 # define LT_DLGLOBAL RTLD_GLOBAL
18548 #else
18549 # ifdef DL_GLOBAL
18550 # define LT_DLGLOBAL DL_GLOBAL
18551 # else
18552 # define LT_DLGLOBAL 0
18553 # endif
18554 #endif
18555
18556 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18557 find out it does not work in some platform. */
18558 #ifndef LT_DLLAZY_OR_NOW
18559 # ifdef RTLD_LAZY
18560 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18561 # else
18562 # ifdef DL_LAZY
18563 # define LT_DLLAZY_OR_NOW DL_LAZY
18564 # else
18565 # ifdef RTLD_NOW
18566 # define LT_DLLAZY_OR_NOW RTLD_NOW
18567 # else
18568 # ifdef DL_NOW
18569 # define LT_DLLAZY_OR_NOW DL_NOW
18570 # else
18571 # define LT_DLLAZY_OR_NOW 0
18572 # endif
18573 # endif
18574 # endif
18575 # endif
18576 #endif
18577
18578 #ifdef __cplusplus
18579 extern "C" void exit (int);
18580 #endif
18581
18582 void fnord() { int i=42;}
18583 int main ()
18584 {
18585 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18586 int status = $lt_dlunknown;
18587
18588 if (self)
18589 {
18590 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18591 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18592 /* dlclose (self); */
18593 }
18594
18595 exit (status);
18596 }
18597 EOF
18598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18599 (eval $ac_link) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18603 (./conftest; exit; ) 2>/dev/null
18604 lt_status=$?
18605 case x$lt_status in
18606 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18607 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18608 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18609 esac
18610 else :
18611 # compilation failed
18612 lt_cv_dlopen_self=no
18613 fi
18614 fi
18615 rm -fr conftest*
18616
18617
18618 fi
18619 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18620 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18621
18622 if test "x$lt_cv_dlopen_self" = xyes; then
18623 LDFLAGS="$LDFLAGS $link_static_flag"
18624 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18625 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18626 if test "${lt_cv_dlopen_self_static+set}" = set; then
18627 echo $ECHO_N "(cached) $ECHO_C" >&6
18628 else
18629 if test "$cross_compiling" = yes; then :
18630 lt_cv_dlopen_self_static=cross
18631 else
18632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18633 lt_status=$lt_dlunknown
18634 cat > conftest.$ac_ext <<EOF
18635 #line 18635 "configure"
18636 #include "confdefs.h"
18637
18638 #if HAVE_DLFCN_H
18639 #include <dlfcn.h>
18640 #endif
18641
18642 #include <stdio.h>
18643
18644 #ifdef RTLD_GLOBAL
18645 # define LT_DLGLOBAL RTLD_GLOBAL
18646 #else
18647 # ifdef DL_GLOBAL
18648 # define LT_DLGLOBAL DL_GLOBAL
18649 # else
18650 # define LT_DLGLOBAL 0
18651 # endif
18652 #endif
18653
18654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18655 find out it does not work in some platform. */
18656 #ifndef LT_DLLAZY_OR_NOW
18657 # ifdef RTLD_LAZY
18658 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18659 # else
18660 # ifdef DL_LAZY
18661 # define LT_DLLAZY_OR_NOW DL_LAZY
18662 # else
18663 # ifdef RTLD_NOW
18664 # define LT_DLLAZY_OR_NOW RTLD_NOW
18665 # else
18666 # ifdef DL_NOW
18667 # define LT_DLLAZY_OR_NOW DL_NOW
18668 # else
18669 # define LT_DLLAZY_OR_NOW 0
18670 # endif
18671 # endif
18672 # endif
18673 # endif
18674 #endif
18675
18676 #ifdef __cplusplus
18677 extern "C" void exit (int);
18678 #endif
18679
18680 void fnord() { int i=42;}
18681 int main ()
18682 {
18683 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18684 int status = $lt_dlunknown;
18685
18686 if (self)
18687 {
18688 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18689 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18690 /* dlclose (self); */
18691 }
18692
18693 exit (status);
18694 }
18695 EOF
18696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18697 (eval $ac_link) 2>&5
18698 ac_status=$?
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18701 (./conftest; exit; ) 2>/dev/null
18702 lt_status=$?
18703 case x$lt_status in
18704 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18705 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18706 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18707 esac
18708 else :
18709 # compilation failed
18710 lt_cv_dlopen_self_static=no
18711 fi
18712 fi
18713 rm -fr conftest*
18714
18715
18716 fi
18717 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18718 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18719 fi
18720
18721 CPPFLAGS="$save_CPPFLAGS"
18722 LDFLAGS="$save_LDFLAGS"
18723 LIBS="$save_LIBS"
18724 ;;
18725 esac
18726
18727 case $lt_cv_dlopen_self in
18728 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18729 *) enable_dlopen_self=unknown ;;
18730 esac
18731
18732 case $lt_cv_dlopen_self_static in
18733 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18734 *) enable_dlopen_self_static=unknown ;;
18735 esac
18736 fi
18737
18738
18739 # The else clause should only fire when bootstrapping the
18740 # libtool distribution, otherwise you forgot to ship ltmain.sh
18741 # with your package, and you will get complaints that there are
18742 # no rules to generate ltmain.sh.
18743 if test -f "$ltmain"; then
18744 # See if we are running on zsh, and set the options which allow our commands through
18745 # without removal of \ escapes.
18746 if test -n "${ZSH_VERSION+set}" ; then
18747 setopt NO_GLOB_SUBST
18748 fi
18749 # Now quote all the things that may contain metacharacters while being
18750 # careful not to overquote the AC_SUBSTed values. We take copies of the
18751 # variables and quote the copies for generation of the libtool script.
18752 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18753 SED SHELL STRIP \
18754 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18755 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18756 deplibs_check_method reload_flag reload_cmds need_locks \
18757 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18758 lt_cv_sys_global_symbol_to_c_name_address \
18759 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18760 old_postinstall_cmds old_postuninstall_cmds \
18761 compiler_GCJ \
18762 CC_GCJ \
18763 LD_GCJ \
18764 lt_prog_compiler_wl_GCJ \
18765 lt_prog_compiler_pic_GCJ \
18766 lt_prog_compiler_static_GCJ \
18767 lt_prog_compiler_no_builtin_flag_GCJ \
18768 export_dynamic_flag_spec_GCJ \
18769 thread_safe_flag_spec_GCJ \
18770 whole_archive_flag_spec_GCJ \
18771 enable_shared_with_static_runtimes_GCJ \
18772 old_archive_cmds_GCJ \
18773 old_archive_from_new_cmds_GCJ \
18774 predep_objects_GCJ \
18775 postdep_objects_GCJ \
18776 predeps_GCJ \
18777 postdeps_GCJ \
18778 compiler_lib_search_path_GCJ \
18779 archive_cmds_GCJ \
18780 archive_expsym_cmds_GCJ \
18781 postinstall_cmds_GCJ \
18782 postuninstall_cmds_GCJ \
18783 old_archive_from_expsyms_cmds_GCJ \
18784 allow_undefined_flag_GCJ \
18785 no_undefined_flag_GCJ \
18786 export_symbols_cmds_GCJ \
18787 hardcode_libdir_flag_spec_GCJ \
18788 hardcode_libdir_flag_spec_ld_GCJ \
18789 hardcode_libdir_separator_GCJ \
18790 hardcode_automatic_GCJ \
18791 module_cmds_GCJ \
18792 module_expsym_cmds_GCJ \
18793 lt_cv_prog_compiler_c_o_GCJ \
18794 exclude_expsyms_GCJ \
18795 include_expsyms_GCJ; do
18796
18797 case $var in
18798 old_archive_cmds_GCJ | \
18799 old_archive_from_new_cmds_GCJ | \
18800 archive_cmds_GCJ | \
18801 archive_expsym_cmds_GCJ | \
18802 module_cmds_GCJ | \
18803 module_expsym_cmds_GCJ | \
18804 old_archive_from_expsyms_cmds_GCJ | \
18805 export_symbols_cmds_GCJ | \
18806 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18807 postinstall_cmds | postuninstall_cmds | \
18808 old_postinstall_cmds | old_postuninstall_cmds | \
18809 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18810 # Double-quote double-evaled strings.
18811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18812 ;;
18813 *)
18814 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18815 ;;
18816 esac
18817 done
18818
18819 case $lt_echo in
18820 *'\$0 --fallback-echo"')
18821 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18822 ;;
18823 esac
18824
18825 cfgfile="$ofile"
18826
18827 cat <<__EOF__ >> "$cfgfile"
18828 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18829
18830 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18831
18832 # Shell to use when invoking shell scripts.
18833 SHELL=$lt_SHELL
18834
18835 # Whether or not to build shared libraries.
18836 build_libtool_libs=$enable_shared
18837
18838 # Whether or not to build static libraries.
18839 build_old_libs=$enable_static
18840
18841 # Whether or not to add -lc for building shared libraries.
18842 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18843
18844 # Whether or not to disallow shared libs when runtime libs are static
18845 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18846
18847 # Whether or not to optimize for fast installation.
18848 fast_install=$enable_fast_install
18849
18850 # The host system.
18851 host_alias=$host_alias
18852 host=$host
18853 host_os=$host_os
18854
18855 # The build system.
18856 build_alias=$build_alias
18857 build=$build
18858 build_os=$build_os
18859
18860 # An echo program that does not interpret backslashes.
18861 echo=$lt_echo
18862
18863 # The archiver.
18864 AR=$lt_AR
18865 AR_FLAGS=$lt_AR_FLAGS
18866
18867 # A C compiler.
18868 LTCC=$lt_LTCC
18869
18870 # A language-specific compiler.
18871 CC=$lt_compiler_GCJ
18872
18873 # Is the compiler the GNU C compiler?
18874 with_gcc=$GCC_GCJ
18875
18876 # An ERE matcher.
18877 EGREP=$lt_EGREP
18878
18879 # The linker used to build libraries.
18880 LD=$lt_LD_GCJ
18881
18882 # Whether we need hard or soft links.
18883 LN_S=$lt_LN_S
18884
18885 # A BSD-compatible nm program.
18886 NM=$lt_NM
18887
18888 # A symbol stripping program
18889 STRIP=$lt_STRIP
18890
18891 # Used to examine libraries when file_magic_cmd begins "file"
18892 MAGIC_CMD=$MAGIC_CMD
18893
18894 # Used on cygwin: DLL creation program.
18895 DLLTOOL="$DLLTOOL"
18896
18897 # Used on cygwin: object dumper.
18898 OBJDUMP="$OBJDUMP"
18899
18900 # Used on cygwin: assembler.
18901 AS="$AS"
18902
18903 # The name of the directory that contains temporary libtool files.
18904 objdir=$objdir
18905
18906 # How to create reloadable object files.
18907 reload_flag=$lt_reload_flag
18908 reload_cmds=$lt_reload_cmds
18909
18910 # How to pass a linker flag through the compiler.
18911 wl=$lt_lt_prog_compiler_wl_GCJ
18912
18913 # Object file suffix (normally "o").
18914 objext="$ac_objext"
18915
18916 # Old archive suffix (normally "a").
18917 libext="$libext"
18918
18919 # Shared library suffix (normally ".so").
18920 shrext_cmds='$shrext_cmds'
18921
18922 # Executable file suffix (normally "").
18923 exeext="$exeext"
18924
18925 # Additional compiler flags for building library objects.
18926 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18927 pic_mode=$pic_mode
18928
18929 # What is the maximum length of a command?
18930 max_cmd_len=$lt_cv_sys_max_cmd_len
18931
18932 # Does compiler simultaneously support -c and -o options?
18933 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18934
18935 # Must we lock files when doing compilation?
18936 need_locks=$lt_need_locks
18937
18938 # Do we need the lib prefix for modules?
18939 need_lib_prefix=$need_lib_prefix
18940
18941 # Do we need a version for libraries?
18942 need_version=$need_version
18943
18944 # Whether dlopen is supported.
18945 dlopen_support=$enable_dlopen
18946
18947 # Whether dlopen of programs is supported.
18948 dlopen_self=$enable_dlopen_self
18949
18950 # Whether dlopen of statically linked programs is supported.
18951 dlopen_self_static=$enable_dlopen_self_static
18952
18953 # Compiler flag to prevent dynamic linking.
18954 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18955
18956 # Compiler flag to turn off builtin functions.
18957 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18958
18959 # Compiler flag to allow reflexive dlopens.
18960 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18961
18962 # Compiler flag to generate shared objects directly from archives.
18963 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18964
18965 # Compiler flag to generate thread-safe objects.
18966 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18967
18968 # Library versioning type.
18969 version_type=$version_type
18970
18971 # Format of library name prefix.
18972 libname_spec=$lt_libname_spec
18973
18974 # List of archive names. First name is the real one, the rest are links.
18975 # The last name is the one that the linker finds with -lNAME.
18976 library_names_spec=$lt_library_names_spec
18977
18978 # The coded name of the library, if different from the real name.
18979 soname_spec=$lt_soname_spec
18980
18981 # Commands used to build and install an old-style archive.
18982 RANLIB=$lt_RANLIB
18983 old_archive_cmds=$lt_old_archive_cmds_GCJ
18984 old_postinstall_cmds=$lt_old_postinstall_cmds
18985 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18986
18987 # Create an old-style archive from a shared archive.
18988 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18989
18990 # Create a temporary old-style archive to link instead of a shared archive.
18991 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18992
18993 # Commands used to build and install a shared archive.
18994 archive_cmds=$lt_archive_cmds_GCJ
18995 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18996 postinstall_cmds=$lt_postinstall_cmds
18997 postuninstall_cmds=$lt_postuninstall_cmds
18998
18999 # Commands used to build a loadable module (assumed same as above if empty)
19000 module_cmds=$lt_module_cmds_GCJ
19001 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19002
19003 # Commands to strip libraries.
19004 old_striplib=$lt_old_striplib
19005 striplib=$lt_striplib
19006
19007 # Dependencies to place before the objects being linked to create a
19008 # shared library.
19009 predep_objects=$lt_predep_objects_GCJ
19010
19011 # Dependencies to place after the objects being linked to create a
19012 # shared library.
19013 postdep_objects=$lt_postdep_objects_GCJ
19014
19015 # Dependencies to place before the objects being linked to create a
19016 # shared library.
19017 predeps=$lt_predeps_GCJ
19018
19019 # Dependencies to place after the objects being linked to create a
19020 # shared library.
19021 postdeps=$lt_postdeps_GCJ
19022
19023 # The library search path used internally by the compiler when linking
19024 # a shared library.
19025 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19026
19027 # Method to check whether dependent libraries are shared objects.
19028 deplibs_check_method=$lt_deplibs_check_method
19029
19030 # Command to use when deplibs_check_method == file_magic.
19031 file_magic_cmd=$lt_file_magic_cmd
19032
19033 # Flag that allows shared libraries with undefined symbols to be built.
19034 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19035
19036 # Flag that forces no undefined symbols.
19037 no_undefined_flag=$lt_no_undefined_flag_GCJ
19038
19039 # Commands used to finish a libtool library installation in a directory.
19040 finish_cmds=$lt_finish_cmds
19041
19042 # Same as above, but a single script fragment to be evaled but not shown.
19043 finish_eval=$lt_finish_eval
19044
19045 # Take the output of nm and produce a listing of raw symbols and C names.
19046 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19047
19048 # Transform the output of nm in a proper C declaration
19049 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19050
19051 # Transform the output of nm in a C name address pair
19052 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19053
19054 # This is the shared library runtime path variable.
19055 runpath_var=$runpath_var
19056
19057 # This is the shared library path variable.
19058 shlibpath_var=$shlibpath_var
19059
19060 # Is shlibpath searched before the hard-coded library search path?
19061 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19062
19063 # How to hardcode a shared library path into an executable.
19064 hardcode_action=$hardcode_action_GCJ
19065
19066 # Whether we should hardcode library paths into libraries.
19067 hardcode_into_libs=$hardcode_into_libs
19068
19069 # Flag to hardcode \$libdir into a binary during linking.
19070 # This must work even if \$libdir does not exist.
19071 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19072
19073 # If ld is used when linking, flag to hardcode \$libdir into
19074 # a binary during linking. This must work even if \$libdir does
19075 # not exist.
19076 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19077
19078 # Whether we need a single -rpath flag with a separated argument.
19079 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19080
19081 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19082 # resulting binary.
19083 hardcode_direct=$hardcode_direct_GCJ
19084
19085 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19086 # resulting binary.
19087 hardcode_minus_L=$hardcode_minus_L_GCJ
19088
19089 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19090 # the resulting binary.
19091 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19092
19093 # Set to yes if building a shared library automatically hardcodes DIR into the library
19094 # and all subsequent libraries and executables linked against it.
19095 hardcode_automatic=$hardcode_automatic_GCJ
19096
19097 # Variables whose values should be saved in libtool wrapper scripts and
19098 # restored at relink time.
19099 variables_saved_for_relink="$variables_saved_for_relink"
19100
19101 # Whether libtool must link a program against all its dependency libraries.
19102 link_all_deplibs=$link_all_deplibs_GCJ
19103
19104 # Compile-time system search path for libraries
19105 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19106
19107 # Run-time system search path for libraries
19108 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19109
19110 # Fix the shell variable \$srcfile for the compiler.
19111 fix_srcfile_path="$fix_srcfile_path_GCJ"
19112
19113 # Set to yes if exported symbols are required.
19114 always_export_symbols=$always_export_symbols_GCJ
19115
19116 # The commands to list exported symbols.
19117 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19118
19119 # The commands to extract the exported symbol list from a shared archive.
19120 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19121
19122 # Symbols that should not be listed in the preloaded symbols.
19123 exclude_expsyms=$lt_exclude_expsyms_GCJ
19124
19125 # Symbols that must always be exported.
19126 include_expsyms=$lt_include_expsyms_GCJ
19127
19128 # ### END LIBTOOL TAG CONFIG: $tagname
19129
19130 __EOF__
19131
19132
19133 else
19134 # If there is no Makefile yet, we rely on a make rule to execute
19135 # `config.status --recheck' to rerun these tests and create the
19136 # libtool script then.
19137 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19138 if test -f "$ltmain_in"; then
19139 test -f Makefile && make "$ltmain"
19140 fi
19141 fi
19142
19143
19144 ac_ext=c
19145 ac_cpp='$CPP $CPPFLAGS'
19146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19149
19150 CC="$lt_save_CC"
19151
19152 else
19153 tagname=""
19154 fi
19155 ;;
19156
19157 RC)
19158
19159
19160
19161 # Source file extension for RC test sources.
19162 ac_ext=rc
19163
19164 # Object file extension for compiled RC test sources.
19165 objext=o
19166 objext_RC=$objext
19167
19168 # Code to be used in simple compile tests
19169 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19170
19171 # Code to be used in simple link tests
19172 lt_simple_link_test_code="$lt_simple_compile_test_code"
19173
19174 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19175
19176 # If no C compiler was specified, use CC.
19177 LTCC=${LTCC-"$CC"}
19178
19179 # Allow CC to be a program name with arguments.
19180 compiler=$CC
19181
19182
19183 # save warnings/boilerplate of simple test code
19184 ac_outfile=conftest.$ac_objext
19185 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19186 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19187 _lt_compiler_boilerplate=`cat conftest.err`
19188 $rm conftest*
19189
19190 ac_outfile=conftest.$ac_objext
19191 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19192 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19193 _lt_linker_boilerplate=`cat conftest.err`
19194 $rm conftest*
19195
19196
19197 # Allow CC to be a program name with arguments.
19198 lt_save_CC="$CC"
19199 CC=${RC-"windres"}
19200 compiler=$CC
19201 compiler_RC=$CC
19202 for cc_temp in $compiler""; do
19203 case $cc_temp in
19204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19206 \-*) ;;
19207 *) break;;
19208 esac
19209 done
19210 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19211
19212 lt_cv_prog_compiler_c_o_RC=yes
19213
19214 # The else clause should only fire when bootstrapping the
19215 # libtool distribution, otherwise you forgot to ship ltmain.sh
19216 # with your package, and you will get complaints that there are
19217 # no rules to generate ltmain.sh.
19218 if test -f "$ltmain"; then
19219 # See if we are running on zsh, and set the options which allow our commands through
19220 # without removal of \ escapes.
19221 if test -n "${ZSH_VERSION+set}" ; then
19222 setopt NO_GLOB_SUBST
19223 fi
19224 # Now quote all the things that may contain metacharacters while being
19225 # careful not to overquote the AC_SUBSTed values. We take copies of the
19226 # variables and quote the copies for generation of the libtool script.
19227 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19228 SED SHELL STRIP \
19229 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19230 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19231 deplibs_check_method reload_flag reload_cmds need_locks \
19232 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19233 lt_cv_sys_global_symbol_to_c_name_address \
19234 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19235 old_postinstall_cmds old_postuninstall_cmds \
19236 compiler_RC \
19237 CC_RC \
19238 LD_RC \
19239 lt_prog_compiler_wl_RC \
19240 lt_prog_compiler_pic_RC \
19241 lt_prog_compiler_static_RC \
19242 lt_prog_compiler_no_builtin_flag_RC \
19243 export_dynamic_flag_spec_RC \
19244 thread_safe_flag_spec_RC \
19245 whole_archive_flag_spec_RC \
19246 enable_shared_with_static_runtimes_RC \
19247 old_archive_cmds_RC \
19248 old_archive_from_new_cmds_RC \
19249 predep_objects_RC \
19250 postdep_objects_RC \
19251 predeps_RC \
19252 postdeps_RC \
19253 compiler_lib_search_path_RC \
19254 archive_cmds_RC \
19255 archive_expsym_cmds_RC \
19256 postinstall_cmds_RC \
19257 postuninstall_cmds_RC \
19258 old_archive_from_expsyms_cmds_RC \
19259 allow_undefined_flag_RC \
19260 no_undefined_flag_RC \
19261 export_symbols_cmds_RC \
19262 hardcode_libdir_flag_spec_RC \
19263 hardcode_libdir_flag_spec_ld_RC \
19264 hardcode_libdir_separator_RC \
19265 hardcode_automatic_RC \
19266 module_cmds_RC \
19267 module_expsym_cmds_RC \
19268 lt_cv_prog_compiler_c_o_RC \
19269 exclude_expsyms_RC \
19270 include_expsyms_RC; do
19271
19272 case $var in
19273 old_archive_cmds_RC | \
19274 old_archive_from_new_cmds_RC | \
19275 archive_cmds_RC | \
19276 archive_expsym_cmds_RC | \
19277 module_cmds_RC | \
19278 module_expsym_cmds_RC | \
19279 old_archive_from_expsyms_cmds_RC | \
19280 export_symbols_cmds_RC | \
19281 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19282 postinstall_cmds | postuninstall_cmds | \
19283 old_postinstall_cmds | old_postuninstall_cmds | \
19284 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19285 # Double-quote double-evaled strings.
19286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19287 ;;
19288 *)
19289 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19290 ;;
19291 esac
19292 done
19293
19294 case $lt_echo in
19295 *'\$0 --fallback-echo"')
19296 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19297 ;;
19298 esac
19299
19300 cfgfile="$ofile"
19301
19302 cat <<__EOF__ >> "$cfgfile"
19303 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19304
19305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19306
19307 # Shell to use when invoking shell scripts.
19308 SHELL=$lt_SHELL
19309
19310 # Whether or not to build shared libraries.
19311 build_libtool_libs=$enable_shared
19312
19313 # Whether or not to build static libraries.
19314 build_old_libs=$enable_static
19315
19316 # Whether or not to add -lc for building shared libraries.
19317 build_libtool_need_lc=$archive_cmds_need_lc_RC
19318
19319 # Whether or not to disallow shared libs when runtime libs are static
19320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19321
19322 # Whether or not to optimize for fast installation.
19323 fast_install=$enable_fast_install
19324
19325 # The host system.
19326 host_alias=$host_alias
19327 host=$host
19328 host_os=$host_os
19329
19330 # The build system.
19331 build_alias=$build_alias
19332 build=$build
19333 build_os=$build_os
19334
19335 # An echo program that does not interpret backslashes.
19336 echo=$lt_echo
19337
19338 # The archiver.
19339 AR=$lt_AR
19340 AR_FLAGS=$lt_AR_FLAGS
19341
19342 # A C compiler.
19343 LTCC=$lt_LTCC
19344
19345 # A language-specific compiler.
19346 CC=$lt_compiler_RC
19347
19348 # Is the compiler the GNU C compiler?
19349 with_gcc=$GCC_RC
19350
19351 # An ERE matcher.
19352 EGREP=$lt_EGREP
19353
19354 # The linker used to build libraries.
19355 LD=$lt_LD_RC
19356
19357 # Whether we need hard or soft links.
19358 LN_S=$lt_LN_S
19359
19360 # A BSD-compatible nm program.
19361 NM=$lt_NM
19362
19363 # A symbol stripping program
19364 STRIP=$lt_STRIP
19365
19366 # Used to examine libraries when file_magic_cmd begins "file"
19367 MAGIC_CMD=$MAGIC_CMD
19368
19369 # Used on cygwin: DLL creation program.
19370 DLLTOOL="$DLLTOOL"
19371
19372 # Used on cygwin: object dumper.
19373 OBJDUMP="$OBJDUMP"
19374
19375 # Used on cygwin: assembler.
19376 AS="$AS"
19377
19378 # The name of the directory that contains temporary libtool files.
19379 objdir=$objdir
19380
19381 # How to create reloadable object files.
19382 reload_flag=$lt_reload_flag
19383 reload_cmds=$lt_reload_cmds
19384
19385 # How to pass a linker flag through the compiler.
19386 wl=$lt_lt_prog_compiler_wl_RC
19387
19388 # Object file suffix (normally "o").
19389 objext="$ac_objext"
19390
19391 # Old archive suffix (normally "a").
19392 libext="$libext"
19393
19394 # Shared library suffix (normally ".so").
19395 shrext_cmds='$shrext_cmds'
19396
19397 # Executable file suffix (normally "").
19398 exeext="$exeext"
19399
19400 # Additional compiler flags for building library objects.
19401 pic_flag=$lt_lt_prog_compiler_pic_RC
19402 pic_mode=$pic_mode
19403
19404 # What is the maximum length of a command?
19405 max_cmd_len=$lt_cv_sys_max_cmd_len
19406
19407 # Does compiler simultaneously support -c and -o options?
19408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19409
19410 # Must we lock files when doing compilation?
19411 need_locks=$lt_need_locks
19412
19413 # Do we need the lib prefix for modules?
19414 need_lib_prefix=$need_lib_prefix
19415
19416 # Do we need a version for libraries?
19417 need_version=$need_version
19418
19419 # Whether dlopen is supported.
19420 dlopen_support=$enable_dlopen
19421
19422 # Whether dlopen of programs is supported.
19423 dlopen_self=$enable_dlopen_self
19424
19425 # Whether dlopen of statically linked programs is supported.
19426 dlopen_self_static=$enable_dlopen_self_static
19427
19428 # Compiler flag to prevent dynamic linking.
19429 link_static_flag=$lt_lt_prog_compiler_static_RC
19430
19431 # Compiler flag to turn off builtin functions.
19432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19433
19434 # Compiler flag to allow reflexive dlopens.
19435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19436
19437 # Compiler flag to generate shared objects directly from archives.
19438 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19439
19440 # Compiler flag to generate thread-safe objects.
19441 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19442
19443 # Library versioning type.
19444 version_type=$version_type
19445
19446 # Format of library name prefix.
19447 libname_spec=$lt_libname_spec
19448
19449 # List of archive names. First name is the real one, the rest are links.
19450 # The last name is the one that the linker finds with -lNAME.
19451 library_names_spec=$lt_library_names_spec
19452
19453 # The coded name of the library, if different from the real name.
19454 soname_spec=$lt_soname_spec
19455
19456 # Commands used to build and install an old-style archive.
19457 RANLIB=$lt_RANLIB
19458 old_archive_cmds=$lt_old_archive_cmds_RC
19459 old_postinstall_cmds=$lt_old_postinstall_cmds
19460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19461
19462 # Create an old-style archive from a shared archive.
19463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19464
19465 # Create a temporary old-style archive to link instead of a shared archive.
19466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19467
19468 # Commands used to build and install a shared archive.
19469 archive_cmds=$lt_archive_cmds_RC
19470 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19471 postinstall_cmds=$lt_postinstall_cmds
19472 postuninstall_cmds=$lt_postuninstall_cmds
19473
19474 # Commands used to build a loadable module (assumed same as above if empty)
19475 module_cmds=$lt_module_cmds_RC
19476 module_expsym_cmds=$lt_module_expsym_cmds_RC
19477
19478 # Commands to strip libraries.
19479 old_striplib=$lt_old_striplib
19480 striplib=$lt_striplib
19481
19482 # Dependencies to place before the objects being linked to create a
19483 # shared library.
19484 predep_objects=$lt_predep_objects_RC
19485
19486 # Dependencies to place after the objects being linked to create a
19487 # shared library.
19488 postdep_objects=$lt_postdep_objects_RC
19489
19490 # Dependencies to place before the objects being linked to create a
19491 # shared library.
19492 predeps=$lt_predeps_RC
19493
19494 # Dependencies to place after the objects being linked to create a
19495 # shared library.
19496 postdeps=$lt_postdeps_RC
19497
19498 # The library search path used internally by the compiler when linking
19499 # a shared library.
19500 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19501
19502 # Method to check whether dependent libraries are shared objects.
19503 deplibs_check_method=$lt_deplibs_check_method
19504
19505 # Command to use when deplibs_check_method == file_magic.
19506 file_magic_cmd=$lt_file_magic_cmd
19507
19508 # Flag that allows shared libraries with undefined symbols to be built.
19509 allow_undefined_flag=$lt_allow_undefined_flag_RC
19510
19511 # Flag that forces no undefined symbols.
19512 no_undefined_flag=$lt_no_undefined_flag_RC
19513
19514 # Commands used to finish a libtool library installation in a directory.
19515 finish_cmds=$lt_finish_cmds
19516
19517 # Same as above, but a single script fragment to be evaled but not shown.
19518 finish_eval=$lt_finish_eval
19519
19520 # Take the output of nm and produce a listing of raw symbols and C names.
19521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19522
19523 # Transform the output of nm in a proper C declaration
19524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19525
19526 # Transform the output of nm in a C name address pair
19527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19528
19529 # This is the shared library runtime path variable.
19530 runpath_var=$runpath_var
19531
19532 # This is the shared library path variable.
19533 shlibpath_var=$shlibpath_var
19534
19535 # Is shlibpath searched before the hard-coded library search path?
19536 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19537
19538 # How to hardcode a shared library path into an executable.
19539 hardcode_action=$hardcode_action_RC
19540
19541 # Whether we should hardcode library paths into libraries.
19542 hardcode_into_libs=$hardcode_into_libs
19543
19544 # Flag to hardcode \$libdir into a binary during linking.
19545 # This must work even if \$libdir does not exist.
19546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19547
19548 # If ld is used when linking, flag to hardcode \$libdir into
19549 # a binary during linking. This must work even if \$libdir does
19550 # not exist.
19551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19552
19553 # Whether we need a single -rpath flag with a separated argument.
19554 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19555
19556 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19557 # resulting binary.
19558 hardcode_direct=$hardcode_direct_RC
19559
19560 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19561 # resulting binary.
19562 hardcode_minus_L=$hardcode_minus_L_RC
19563
19564 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19565 # the resulting binary.
19566 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19567
19568 # Set to yes if building a shared library automatically hardcodes DIR into the library
19569 # and all subsequent libraries and executables linked against it.
19570 hardcode_automatic=$hardcode_automatic_RC
19571
19572 # Variables whose values should be saved in libtool wrapper scripts and
19573 # restored at relink time.
19574 variables_saved_for_relink="$variables_saved_for_relink"
19575
19576 # Whether libtool must link a program against all its dependency libraries.
19577 link_all_deplibs=$link_all_deplibs_RC
19578
19579 # Compile-time system search path for libraries
19580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19581
19582 # Run-time system search path for libraries
19583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19584
19585 # Fix the shell variable \$srcfile for the compiler.
19586 fix_srcfile_path="$fix_srcfile_path_RC"
19587
19588 # Set to yes if exported symbols are required.
19589 always_export_symbols=$always_export_symbols_RC
19590
19591 # The commands to list exported symbols.
19592 export_symbols_cmds=$lt_export_symbols_cmds_RC
19593
19594 # The commands to extract the exported symbol list from a shared archive.
19595 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19596
19597 # Symbols that should not be listed in the preloaded symbols.
19598 exclude_expsyms=$lt_exclude_expsyms_RC
19599
19600 # Symbols that must always be exported.
19601 include_expsyms=$lt_include_expsyms_RC
19602
19603 # ### END LIBTOOL TAG CONFIG: $tagname
19604
19605 __EOF__
19606
19607
19608 else
19609 # If there is no Makefile yet, we rely on a make rule to execute
19610 # `config.status --recheck' to rerun these tests and create the
19611 # libtool script then.
19612 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19613 if test -f "$ltmain_in"; then
19614 test -f Makefile && make "$ltmain"
19615 fi
19616 fi
19617
19618
19619 ac_ext=c
19620 ac_cpp='$CPP $CPPFLAGS'
19621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19624
19625 CC="$lt_save_CC"
19626
19627 ;;
19628
19629 *)
19630 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19631 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19632 { (exit 1); exit 1; }; }
19633 ;;
19634 esac
19635
19636 # Append the new tag name to the list of available tags.
19637 if test -n "$tagname" ; then
19638 available_tags="$available_tags $tagname"
19639 fi
19640 fi
19641 done
19642 IFS="$lt_save_ifs"
19643
19644 # Now substitute the updated list of available tags.
19645 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19646 mv "${ofile}T" "$ofile"
19647 chmod +x "$ofile"
19648 else
19649 rm -f "${ofile}T"
19650 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19651 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19652 { (exit 1); exit 1; }; }
19653 fi
19654 fi
19655
19656
19657
19658 # This can be used to rebuild libtool when needed
19659 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19660
19661 # Always use our own libtool.
19662 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19663
19664 # Prevent multiple expansion
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687 for ac_prog in sed
19688 do
19689 # Extract the first word of "$ac_prog", so it can be a program name with args.
19690 set dummy $ac_prog; ac_word=$2
19691 echo "$as_me:$LINENO: checking for $ac_word" >&5
19692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19693 if test "${ac_cv_prog_regex_cmd+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 else
19696 if test -n "$regex_cmd"; then
19697 ac_cv_prog_regex_cmd="$regex_cmd" # Let the user override the test.
19698 else
19699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19700 for as_dir in $PATH
19701 do
19702 IFS=$as_save_IFS
19703 test -z "$as_dir" && as_dir=.
19704 for ac_exec_ext in '' $ac_executable_extensions; do
19705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19706 ac_cv_prog_regex_cmd="$ac_prog"
19707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19708 break 2
19709 fi
19710 done
19711 done
19712
19713 fi
19714 fi
19715 regex_cmd=$ac_cv_prog_regex_cmd
19716 if test -n "$regex_cmd"; then
19717 echo "$as_me:$LINENO: result: $regex_cmd" >&5
19718 echo "${ECHO_T}$regex_cmd" >&6
19719 else
19720 echo "$as_me:$LINENO: result: no" >&5
19721 echo "${ECHO_T}no" >&6
19722 fi
19723
19724 test -n "$regex_cmd" && break
19725 done
19726
19727 if test "x$regex_cmd" = "x"; then
19728 { { echo "$as_me:$LINENO: error: error. sed is required to build the default menu file." >&5
19729 echo "$as_me: error: error. sed is required to build the default menu file." >&2;}
19730 { (exit 1); exit 1; }; }
19731 fi
19732
19733 for ac_prog in gencat
19734 do
19735 # Extract the first word of "$ac_prog", so it can be a program name with args.
19736 set dummy $ac_prog; ac_word=$2
19737 echo "$as_me:$LINENO: checking for $ac_word" >&5
19738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19739 if test "${ac_cv_prog_gencat_cmd+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 else
19742 if test -n "$gencat_cmd"; then
19743 ac_cv_prog_gencat_cmd="$gencat_cmd" # Let the user override the test.
19744 else
19745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19746 for as_dir in $PATH
19747 do
19748 IFS=$as_save_IFS
19749 test -z "$as_dir" && as_dir=.
19750 for ac_exec_ext in '' $ac_executable_extensions; do
19751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19752 ac_cv_prog_gencat_cmd="$ac_prog"
19753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19754 break 2
19755 fi
19756 done
19757 done
19758
19759 fi
19760 fi
19761 gencat_cmd=$ac_cv_prog_gencat_cmd
19762 if test -n "$gencat_cmd"; then
19763 echo "$as_me:$LINENO: result: $gencat_cmd" >&5
19764 echo "${ECHO_T}$gencat_cmd" >&6
19765 else
19766 echo "$as_me:$LINENO: result: no" >&5
19767 echo "${ECHO_T}no" >&6
19768 fi
19769
19770 test -n "$gencat_cmd" && break
19771 done
19772
19773 if test "x$gencat_cmd" = "x"; then
19774 NLS=
19775 fi
19776
19777 ac_ext=cc
19778 ac_cpp='$CXXCPP $CPPFLAGS'
19779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19782
19783
19784 if test "x$GXX" != "xyes"; then
19785 mips_pro_ver=`$CC -version 2>&1 | grep -i mipspro | cut -f4 -d ' '`
19786 if test "x$mips_pro_ver" != "x"; then
19787 echo "$as_me:$LINENO: checking for MIPSpro version" >&5
19788 echo $ECHO_N "checking for MIPSpro version... $ECHO_C" >&6
19789 echo "$as_me:$LINENO: result: $mips_pro_ver." >&5
19790 echo "${ECHO_T}$mips_pro_ver." >&6
19791 echo "$as_me:$LINENO: checking for -LANG:std in CXXFLAGS" >&5
19792 echo $ECHO_N "checking for -LANG:std in CXXFLAGS... $ECHO_C" >&6
19793 lang_std_not_set=`echo $CXXFLAGS | grep "\-LANG:std"`
19794 if test "x$lang_std_not_set" = "x"; then
19795 echo "$as_me:$LINENO: result: not set, setting." >&5
19796 echo "${ECHO_T}not set, setting." >&6
19797 CXXFLAGS="${CXXFLAGS} -LANG:std"
19798 else
19799 echo "$as_me:$LINENO: result: already set." >&5
19800 echo "${ECHO_T}already set." >&6
19801 fi
19802 fi
19803 fi
19804
19805
19806 ICONV=
19807
19808 for ac_func in iconv_open
19809 do
19810 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19811 echo "$as_me:$LINENO: checking for $ac_func" >&5
19812 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19813 if eval "test \"\${$as_ac_var+set}\" = set"; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h. */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19824 #define $ac_func innocuous_$ac_func
19825
19826 /* System header to define __stub macros and hopefully few prototypes,
19827 which can conflict with char $ac_func (); below.
19828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19829 <limits.h> exists even on freestanding compilers. */
19830
19831 #ifdef __STDC__
19832 # include <limits.h>
19833 #else
19834 # include <assert.h>
19835 #endif
19836
19837 #undef $ac_func
19838
19839 /* Override any gcc2 internal prototype to avoid an error. */
19840 #ifdef __cplusplus
19841 extern "C"
19842 {
19843 #endif
19844 /* We use char because int might match the return type of a gcc2
19845 builtin and then its argument prototype would still apply. */
19846 char $ac_func ();
19847 /* The GNU C library defines this for functions which it implements
19848 to always fail with ENOSYS. Some functions are actually named
19849 something starting with __ and the normal name is an alias. */
19850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19851 choke me
19852 #else
19853 char (*f) () = $ac_func;
19854 #endif
19855 #ifdef __cplusplus
19856 }
19857 #endif
19858
19859 int
19860 main ()
19861 {
19862 return f != $ac_func;
19863 ;
19864 return 0;
19865 }
19866 _ACEOF
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19869 (eval $ac_link) 2>conftest.er1
19870 ac_status=$?
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
19876 { ac_try='test -z "$ac_cxx_werror_flag"
19877 || test ! -s conftest.err'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; } &&
19883 { ac_try='test -s conftest$ac_exeext'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; }; then
19889 eval "$as_ac_var=yes"
19890 else
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19893
19894 eval "$as_ac_var=no"
19895 fi
19896 rm -f conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
19898 fi
19899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19901 if test `eval echo '${'$as_ac_var'}'` = yes; then
19902 cat >>confdefs.h <<_ACEOF
19903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19904 _ACEOF
19905
19906 else
19907 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
19908 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
19909 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19911 else
19912 ac_check_lib_save_LIBS=$LIBS
19913 LIBS="-liconv $LIBS"
19914 cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h. */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920
19921 /* Override any gcc2 internal prototype to avoid an error. */
19922 #ifdef __cplusplus
19923 extern "C"
19924 #endif
19925 /* We use char because int might match the return type of a gcc2
19926 builtin and then its argument prototype would still apply. */
19927 char iconv_open ();
19928 int
19929 main ()
19930 {
19931 iconv_open ();
19932 ;
19933 return 0;
19934 }
19935 _ACEOF
19936 rm -f conftest.$ac_objext conftest$ac_exeext
19937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19938 (eval $ac_link) 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } &&
19945 { ac_try='test -z "$ac_cxx_werror_flag"
19946 || test ! -s conftest.err'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19949 ac_status=$?
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; } &&
19952 { ac_try='test -s conftest$ac_exeext'
19953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954 (eval $ac_try) 2>&5
19955 ac_status=$?
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); }; }; then
19958 ac_cv_lib_iconv_iconv_open=yes
19959 else
19960 echo "$as_me: failed program was:" >&5
19961 sed 's/^/| /' conftest.$ac_ext >&5
19962
19963 ac_cv_lib_iconv_iconv_open=no
19964 fi
19965 rm -f conftest.err conftest.$ac_objext \
19966 conftest$ac_exeext conftest.$ac_ext
19967 LIBS=$ac_check_lib_save_LIBS
19968 fi
19969 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
19970 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
19971 if test $ac_cv_lib_iconv_iconv_open = yes; then
19972 ICONV="-liconv"
19973 else
19974 echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
19975 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19976 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
19978 else
19979 ac_check_lib_save_LIBS=$LIBS
19980 LIBS="-liconv $LIBS"
19981 cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h. */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987
19988 /* Override any gcc2 internal prototype to avoid an error. */
19989 #ifdef __cplusplus
19990 extern "C"
19991 #endif
19992 /* We use char because int might match the return type of a gcc2
19993 builtin and then its argument prototype would still apply. */
19994 char libiconv_open ();
19995 int
19996 main ()
19997 {
19998 libiconv_open ();
19999 ;
20000 return 0;
20001 }
20002 _ACEOF
20003 rm -f conftest.$ac_objext conftest$ac_exeext
20004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20005 (eval $ac_link) 2>conftest.er1
20006 ac_status=$?
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } &&
20012 { ac_try='test -z "$ac_cxx_werror_flag"
20013 || test ! -s conftest.err'
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } &&
20019 { ac_try='test -s conftest$ac_exeext'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 ac_cv_lib_iconv_libiconv_open=yes
20026 else
20027 echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20029
20030 ac_cv_lib_iconv_libiconv_open=no
20031 fi
20032 rm -f conftest.err conftest.$ac_objext \
20033 conftest$ac_exeext conftest.$ac_ext
20034 LIBS=$ac_check_lib_save_LIBS
20035 fi
20036 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
20037 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
20038 if test $ac_cv_lib_iconv_libiconv_open = yes; then
20039 ICONV="-liconv"
20040 else
20041 { { echo "$as_me:$LINENO: error: Blackbox requires iconv(3) support." >&5
20042 echo "$as_me: error: Blackbox requires iconv(3) support." >&2;}
20043 { (exit 1); exit 1; }; }
20044 fi
20045
20046
20047 fi
20048
20049
20050 fi
20051 done
20052
20053
20054
20055 echo "$as_me:$LINENO: checking for GNU libiconv" >&5
20056 echo $ECHO_N "checking for GNU libiconv... $ECHO_C" >&6
20057 cat >conftest.$ac_ext <<_ACEOF
20058
20059 #include <sys/types.h>
20060 #include <iconv.h>
20061
20062 int main(int, char **) {
20063 iconv_t cd;
20064 const char *inp;
20065 char *outp;
20066 size_t inbytes, outbytes;
20067 iconv(cd, &inp, &inbytes, &outp, &outbytes);
20068 return 0;
20069 }
20070
20071 _ACEOF
20072 rm -f conftest.$ac_objext
20073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20074 (eval $ac_compile) 2>conftest.er1
20075 ac_status=$?
20076 grep -v '^ *+' conftest.er1 >conftest.err
20077 rm -f conftest.er1
20078 cat conftest.err >&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } &&
20081 { ac_try='test -z "$ac_cxx_werror_flag"
20082 || test ! -s conftest.err'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20085 ac_status=$?
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; } &&
20088 { ac_try='test -s conftest.$ac_objext'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20091 ac_status=$?
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; }; then
20094
20095 cat >>confdefs.h <<\_ACEOF
20096 #define HAVE_GNU_LIBICONV 1
20097 _ACEOF
20098
20099 echo "$as_me:$LINENO: result: yes" >&5
20100 echo "${ECHO_T}yes" >&6
20101 else
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105 echo "$as_me:$LINENO: result: no, assuming POSIX compliance" >&5
20106 echo "${ECHO_T}no, assuming POSIX compliance" >&6
20107
20108 fi
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110
20111 LOCALE=
20112
20113 for ac_func in setlocale
20114 do
20115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20116 echo "$as_me:$LINENO: checking for $ac_func" >&5
20117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20118 if eval "test \"\${$as_ac_var+set}\" = set"; then
20119 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 else
20121 cat >conftest.$ac_ext <<_ACEOF
20122 /* confdefs.h. */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20129 #define $ac_func innocuous_$ac_func
20130
20131 /* System header to define __stub macros and hopefully few prototypes,
20132 which can conflict with char $ac_func (); below.
20133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20134 <limits.h> exists even on freestanding compilers. */
20135
20136 #ifdef __STDC__
20137 # include <limits.h>
20138 #else
20139 # include <assert.h>
20140 #endif
20141
20142 #undef $ac_func
20143
20144 /* Override any gcc2 internal prototype to avoid an error. */
20145 #ifdef __cplusplus
20146 extern "C"
20147 {
20148 #endif
20149 /* We use char because int might match the return type of a gcc2
20150 builtin and then its argument prototype would still apply. */
20151 char $ac_func ();
20152 /* The GNU C library defines this for functions which it implements
20153 to always fail with ENOSYS. Some functions are actually named
20154 something starting with __ and the normal name is an alias. */
20155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20156 choke me
20157 #else
20158 char (*f) () = $ac_func;
20159 #endif
20160 #ifdef __cplusplus
20161 }
20162 #endif
20163
20164 int
20165 main ()
20166 {
20167 return f != $ac_func;
20168 ;
20169 return 0;
20170 }
20171 _ACEOF
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20174 (eval $ac_link) 2>conftest.er1
20175 ac_status=$?
20176 grep -v '^ *+' conftest.er1 >conftest.err
20177 rm -f conftest.er1
20178 cat conftest.err >&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); } &&
20181 { ac_try='test -z "$ac_cxx_werror_flag"
20182 || test ! -s conftest.err'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; } &&
20188 { ac_try='test -s conftest$ac_exeext'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20191 ac_status=$?
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; }; then
20194 eval "$as_ac_var=yes"
20195 else
20196 echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20198
20199 eval "$as_ac_var=no"
20200 fi
20201 rm -f conftest.err conftest.$ac_objext \
20202 conftest$ac_exeext conftest.$ac_ext
20203 fi
20204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20206 if test `eval echo '${'$as_ac_var'}'` = yes; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20209 _ACEOF
20210
20211 else
20212 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20213 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20214 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 else
20217 ac_check_lib_save_LIBS=$LIBS
20218 LIBS="-lxpg4 $LIBS"
20219 cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h. */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225
20226 /* Override any gcc2 internal prototype to avoid an error. */
20227 #ifdef __cplusplus
20228 extern "C"
20229 #endif
20230 /* We use char because int might match the return type of a gcc2
20231 builtin and then its argument prototype would still apply. */
20232 char setlocale ();
20233 int
20234 main ()
20235 {
20236 setlocale ();
20237 ;
20238 return 0;
20239 }
20240 _ACEOF
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20243 (eval $ac_link) 2>conftest.er1
20244 ac_status=$?
20245 grep -v '^ *+' conftest.er1 >conftest.err
20246 rm -f conftest.er1
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } &&
20250 { ac_try='test -z "$ac_cxx_werror_flag"
20251 || test ! -s conftest.err'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; } &&
20257 { ac_try='test -s conftest$ac_exeext'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
20263 ac_cv_lib_xpg4_setlocale=yes
20264 else
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268 ac_cv_lib_xpg4_setlocale=no
20269 fi
20270 rm -f conftest.err conftest.$ac_objext \
20271 conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20273 fi
20274 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20275 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20276 if test $ac_cv_lib_xpg4_setlocale = yes; then
20277 LOCALE="-lxpg4"
20278 else
20279 { { echo "$as_me:$LINENO: error: Blackbox requires setlocale(3) support." >&5
20280 echo "$as_me: error: Blackbox requires setlocale(3) support." >&2;}
20281 { (exit 1); exit 1; }; }
20282 fi
20283
20284
20285 fi
20286 done
20287
20288
20289
20290 echo "$as_me:$LINENO: checking for nl_langinfo" >&5
20291 echo $ECHO_N "checking for nl_langinfo... $ECHO_C" >&6
20292 cat >conftest.$ac_ext <<_ACEOF
20293
20294 #include <langinfo.h>
20295
20296 int main(int, char **)
20297 {
20298 const char *x;
20299 x = nl_langinfo(CODESET);
20300 return 0;
20301 }
20302
20303 _ACEOF
20304 rm -f conftest.$ac_objext
20305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20306 (eval $ac_compile) 2>conftest.er1
20307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
20313 { ac_try='test -z "$ac_cxx_werror_flag"
20314 || test ! -s conftest.err'
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; } &&
20320 { ac_try='test -s conftest.$ac_objext'
20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322 (eval $ac_try) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); }; }; then
20326
20327 cat >>confdefs.h <<\_ACEOF
20328 #define HAVE_NL_LANGINFO 1
20329 _ACEOF
20330
20331 echo "$as_me:$LINENO: result: yes" >&5
20332 echo "${ECHO_T}yes" >&6
20333 else
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 echo "$as_me:$LINENO: result: no" >&5
20338 echo "${ECHO_T}no" >&6
20339
20340 fi
20341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20342
20343 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
20344 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
20345 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 else
20348 ac_check_lib_save_LIBS=$LIBS
20349 LIBS="-lnsl $LIBS"
20350 cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h. */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20356
20357 /* Override any gcc2 internal prototype to avoid an error. */
20358 #ifdef __cplusplus
20359 extern "C"
20360 #endif
20361 /* We use char because int might match the return type of a gcc2
20362 builtin and then its argument prototype would still apply. */
20363 char t_open ();
20364 int
20365 main ()
20366 {
20367 t_open ();
20368 ;
20369 return 0;
20370 }
20371 _ACEOF
20372 rm -f conftest.$ac_objext conftest$ac_exeext
20373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20374 (eval $ac_link) 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } &&
20381 { ac_try='test -z "$ac_cxx_werror_flag"
20382 || test ! -s conftest.err'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; } &&
20388 { ac_try='test -s conftest$ac_exeext'
20389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20390 (eval $ac_try) 2>&5
20391 ac_status=$?
20392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393 (exit $ac_status); }; }; then
20394 ac_cv_lib_nsl_t_open=yes
20395 else
20396 echo "$as_me: failed program was:" >&5
20397 sed 's/^/| /' conftest.$ac_ext >&5
20398
20399 ac_cv_lib_nsl_t_open=no
20400 fi
20401 rm -f conftest.err conftest.$ac_objext \
20402 conftest$ac_exeext conftest.$ac_ext
20403 LIBS=$ac_check_lib_save_LIBS
20404 fi
20405 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
20406 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
20407 if test $ac_cv_lib_nsl_t_open = yes; then
20408 LIBS="$LIBS -lnsl"
20409 fi
20410
20411 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20412 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
20413 if test "${ac_cv_lib_socket_socket+set}" = set; then
20414 echo $ECHO_N "(cached) $ECHO_C" >&6
20415 else
20416 ac_check_lib_save_LIBS=$LIBS
20417 LIBS="-lsocket $LIBS"
20418 cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h. */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20424
20425 /* Override any gcc2 internal prototype to avoid an error. */
20426 #ifdef __cplusplus
20427 extern "C"
20428 #endif
20429 /* We use char because int might match the return type of a gcc2
20430 builtin and then its argument prototype would still apply. */
20431 char socket ();
20432 int
20433 main ()
20434 {
20435 socket ();
20436 ;
20437 return 0;
20438 }
20439 _ACEOF
20440 rm -f conftest.$ac_objext conftest$ac_exeext
20441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20442 (eval $ac_link) 2>conftest.er1
20443 ac_status=$?
20444 grep -v '^ *+' conftest.er1 >conftest.err
20445 rm -f conftest.er1
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } &&
20449 { ac_try='test -z "$ac_cxx_werror_flag"
20450 || test ! -s conftest.err'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; } &&
20456 { ac_try='test -s conftest$ac_exeext'
20457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20458 (eval $ac_try) 2>&5
20459 ac_status=$?
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; }; then
20462 ac_cv_lib_socket_socket=yes
20463 else
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20466
20467 ac_cv_lib_socket_socket=no
20468 fi
20469 rm -f conftest.err conftest.$ac_objext \
20470 conftest$ac_exeext conftest.$ac_ext
20471 LIBS=$ac_check_lib_save_LIBS
20472 fi
20473 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20474 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
20475 if test $ac_cv_lib_socket_socket = yes; then
20476 LIBS="$LIBS -lsocket"
20477 fi
20478
20479
20480
20481 echo "$as_me:$LINENO: checking for X" >&5
20482 echo $ECHO_N "checking for X... $ECHO_C" >&6
20483
20484
20485 # Check whether --with-x or --without-x was given.
20486 if test "${with_x+set}" = set; then
20487 withval="$with_x"
20488
20489 fi;
20490 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20491 if test "x$with_x" = xno; then
20492 # The user explicitly disabled X.
20493 have_x=disabled
20494 else
20495 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20496 # Both variables are already set.
20497 have_x=yes
20498 else
20499 if test "${ac_cv_have_x+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20501 else
20502 # One or both of the vars are not set, and there is no cached value.
20503 ac_x_includes=no ac_x_libraries=no
20504 rm -fr conftest.dir
20505 if mkdir conftest.dir; then
20506 cd conftest.dir
20507 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20508 cat >Imakefile <<'_ACEOF'
20509 acfindx:
20510 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20511 _ACEOF
20512 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20514 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20515 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20516 for ac_extension in a so sl; do
20517 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20518 test -f $ac_im_libdir/libX11.$ac_extension; then
20519 ac_im_usrlibdir=$ac_im_libdir; break
20520 fi
20521 done
20522 # Screen out bogus values from the imake configuration. They are
20523 # bogus both because they are the default anyway, and because
20524 # using them would break gcc on systems where it needs fixed includes.
20525 case $ac_im_incroot in
20526 /usr/include) ;;
20527 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20528 esac
20529 case $ac_im_usrlibdir in
20530 /usr/lib | /lib) ;;
20531 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20532 esac
20533 fi
20534 cd ..
20535 rm -fr conftest.dir
20536 fi
20537
20538 # Standard set of common directories for X headers.
20539 # Check X11 before X11Rn because it is often a symlink to the current release.
20540 ac_x_header_dirs='
20541 /usr/X11/include
20542 /usr/X11R6/include
20543 /usr/X11R5/include
20544 /usr/X11R4/include
20545
20546 /usr/include/X11
20547 /usr/include/X11R6
20548 /usr/include/X11R5
20549 /usr/include/X11R4
20550
20551 /usr/local/X11/include
20552 /usr/local/X11R6/include
20553 /usr/local/X11R5/include
20554 /usr/local/X11R4/include
20555
20556 /usr/local/include/X11
20557 /usr/local/include/X11R6
20558 /usr/local/include/X11R5
20559 /usr/local/include/X11R4
20560
20561 /usr/X386/include
20562 /usr/x386/include
20563 /usr/XFree86/include/X11
20564
20565 /usr/include
20566 /usr/local/include
20567 /usr/unsupported/include
20568 /usr/athena/include
20569 /usr/local/x11r5/include
20570 /usr/lpp/Xamples/include
20571
20572 /usr/openwin/include
20573 /usr/openwin/share/include'
20574
20575 if test "$ac_x_includes" = no; then
20576 # Guess where to find include files, by looking for Intrinsic.h.
20577 # First, try using that file with no special directory specified.
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h. */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 #include <X11/Intrinsic.h>
20585 _ACEOF
20586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20588 ac_status=$?
20589 grep -v '^ *+' conftest.er1 >conftest.err
20590 rm -f conftest.er1
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } >/dev/null; then
20594 if test -s conftest.err; then
20595 ac_cpp_err=$ac_cxx_preproc_warn_flag
20596 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20597 else
20598 ac_cpp_err=
20599 fi
20600 else
20601 ac_cpp_err=yes
20602 fi
20603 if test -z "$ac_cpp_err"; then
20604 # We can compile using X headers with no special include directory.
20605 ac_x_includes=
20606 else
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20609
20610 for ac_dir in $ac_x_header_dirs; do
20611 if test -r "$ac_dir/X11/Intrinsic.h"; then
20612 ac_x_includes=$ac_dir
20613 break
20614 fi
20615 done
20616 fi
20617 rm -f conftest.err conftest.$ac_ext
20618 fi # $ac_x_includes = no
20619
20620 if test "$ac_x_libraries" = no; then
20621 # Check for the libraries.
20622 # See if we find them without any special options.
20623 # Don't add to $LIBS permanently.
20624 ac_save_LIBS=$LIBS
20625 LIBS="-lXt $LIBS"
20626 cat >conftest.$ac_ext <<_ACEOF
20627 /* confdefs.h. */
20628 _ACEOF
20629 cat confdefs.h >>conftest.$ac_ext
20630 cat >>conftest.$ac_ext <<_ACEOF
20631 /* end confdefs.h. */
20632 #include <X11/Intrinsic.h>
20633 int
20634 main ()
20635 {
20636 XtMalloc (0)
20637 ;
20638 return 0;
20639 }
20640 _ACEOF
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20643 (eval $ac_link) 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try='test -z "$ac_cxx_werror_flag"
20651 || test ! -s conftest.err'
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; } &&
20657 { ac_try='test -s conftest$ac_exeext'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 LIBS=$ac_save_LIBS
20664 # We can link X programs with no special library path.
20665 ac_x_libraries=
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 LIBS=$ac_save_LIBS
20671 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20672 do
20673 # Don't even attempt the hair of trying to link an X program!
20674 for ac_extension in a so sl; do
20675 if test -r $ac_dir/libXt.$ac_extension; then
20676 ac_x_libraries=$ac_dir
20677 break 2
20678 fi
20679 done
20680 done
20681 fi
20682 rm -f conftest.err conftest.$ac_objext \
20683 conftest$ac_exeext conftest.$ac_ext
20684 fi # $ac_x_libraries = no
20685
20686 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20687 # Didn't find X anywhere. Cache the known absence of X.
20688 ac_cv_have_x="have_x=no"
20689 else
20690 # Record where we found X for the cache.
20691 ac_cv_have_x="have_x=yes \
20692 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20693 fi
20694 fi
20695
20696 fi
20697 eval "$ac_cv_have_x"
20698 fi # $with_x != no
20699
20700 if test "$have_x" != yes; then
20701 echo "$as_me:$LINENO: result: $have_x" >&5
20702 echo "${ECHO_T}$have_x" >&6
20703 no_x=yes
20704 else
20705 # If each of the values was on the command line, it overrides each guess.
20706 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20707 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20708 # Update the cache value to reflect the command line values.
20709 ac_cv_have_x="have_x=yes \
20710 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20711 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20712 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20713 fi
20714
20715
20716 if test "x$no_x" = "xyes"; then
20717 { { echo "$as_me:$LINENO: error: Blackbox requires the X Window System libraries and headers." >&5
20718 echo "$as_me: error: Blackbox requires the X Window System libraries and headers." >&2;}
20719 { (exit 1); exit 1; }; }
20720 fi
20721
20722 if test "x$x_includes" != "x"; then
20723 CPPFLAGS="$CPPFLAGS -I$x_includes"
20724 CXXFLAGS="$CXXFLAGS -I$x_includes"
20725 fi
20726 if test "x$x_libraries" != "x"; then
20727 LIBS="$LIBS -L$x_libraries"
20728 fi
20729
20730 XLIB=
20731 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
20732 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
20733 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736 ac_check_lib_save_LIBS=$LIBS
20737 LIBS="-lX11 $LIBS"
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h. */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744
20745 /* Override any gcc2 internal prototype to avoid an error. */
20746 #ifdef __cplusplus
20747 extern "C"
20748 #endif
20749 /* We use char because int might match the return type of a gcc2
20750 builtin and then its argument prototype would still apply. */
20751 char XOpenDisplay ();
20752 int
20753 main ()
20754 {
20755 XOpenDisplay ();
20756 ;
20757 return 0;
20758 }
20759 _ACEOF
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20762 (eval $ac_link) 2>conftest.er1
20763 ac_status=$?
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } &&
20769 { ac_try='test -z "$ac_cxx_werror_flag"
20770 || test ! -s conftest.err'
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest$ac_exeext'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_lib_X11_XOpenDisplay=yes
20783 else
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20786
20787 ac_cv_lib_X11_XOpenDisplay=no
20788 fi
20789 rm -f conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
20791 LIBS=$ac_check_lib_save_LIBS
20792 fi
20793 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
20794 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
20795 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
20796 XLIB=yes
20797 else
20798 XLIB=no
20799 fi
20800
20801 test "x$XLIB" = "xno" && { { echo "$as_me:$LINENO: error: standard X11 libraries not found" >&5
20802 echo "$as_me: error: standard X11 libraries not found" >&2;}
20803 { (exit 1); exit 1; }; }
20804
20805
20806 for ac_header in X11/Xlib.h
20807 do
20808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20810 echo "$as_me:$LINENO: checking for $ac_header" >&5
20811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20813 echo $ECHO_N "(cached) $ECHO_C" >&6
20814 fi
20815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20817 else
20818 # Is the header compilable?
20819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 $ac_includes_default
20828 #include <$ac_header>
20829 _ACEOF
20830 rm -f conftest.$ac_objext
20831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20832 (eval $ac_compile) 2>conftest.er1
20833 ac_status=$?
20834 grep -v '^ *+' conftest.er1 >conftest.err
20835 rm -f conftest.er1
20836 cat conftest.err >&5
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); } &&
20839 { ac_try='test -z "$ac_cxx_werror_flag"
20840 || test ! -s conftest.err'
20841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842 (eval $ac_try) 2>&5
20843 ac_status=$?
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); }; } &&
20846 { ac_try='test -s conftest.$ac_objext'
20847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20848 (eval $ac_try) 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); }; }; then
20852 ac_header_compiler=yes
20853 else
20854 echo "$as_me: failed program was:" >&5
20855 sed 's/^/| /' conftest.$ac_ext >&5
20856
20857 ac_header_compiler=no
20858 fi
20859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20860 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20861 echo "${ECHO_T}$ac_header_compiler" >&6
20862
20863 # Is the header present?
20864 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20866 cat >conftest.$ac_ext <<_ACEOF
20867 /* confdefs.h. */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h. */
20872 #include <$ac_header>
20873 _ACEOF
20874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } >/dev/null; then
20882 if test -s conftest.err; then
20883 ac_cpp_err=$ac_cxx_preproc_warn_flag
20884 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
20885 else
20886 ac_cpp_err=
20887 fi
20888 else
20889 ac_cpp_err=yes
20890 fi
20891 if test -z "$ac_cpp_err"; then
20892 ac_header_preproc=yes
20893 else
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20896
20897 ac_header_preproc=no
20898 fi
20899 rm -f conftest.err conftest.$ac_ext
20900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20901 echo "${ECHO_T}$ac_header_preproc" >&6
20902
20903 # So? What about this header?
20904 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20905 yes:no: )
20906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20910 ac_header_preproc=yes
20911 ;;
20912 no:yes:* )
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20925 (
20926 cat <<\_ASBOX
20927 ## ------------------------------------------------ ##
20928 ## Report this to http://blackboxwm.sourceforge.net ##
20929 ## ------------------------------------------------ ##
20930 _ASBOX
20931 ) |
20932 sed "s/^/$as_me: WARNING: /" >&2
20933 ;;
20934 esac
20935 echo "$as_me:$LINENO: checking for $ac_header" >&5
20936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20938 echo $ECHO_N "(cached) $ECHO_C" >&6
20939 else
20940 eval "$as_ac_Header=\$ac_header_preproc"
20941 fi
20942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20944
20945 fi
20946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20947 cat >>confdefs.h <<_ACEOF
20948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20949 _ACEOF
20950 XLIB=yes
20951 else
20952 XLIB=no
20953 fi
20954
20955 done
20956
20957 test "x$XLIB" = "xno" && { { echo "$as_me:$LINENO: error: standard X11 headers not found" >&5
20958 echo "$as_me: error: standard X11 headers not found" >&2;}
20959 { (exit 1); exit 1; }; }
20960
20961
20962
20963
20964
20965
20966 for ac_header in X11/Xatom.h X11/Xlocale.h X11/Xresource.h X11/Xutil.h X11/keysym.h
20967 do
20968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20969 echo "$as_me:$LINENO: checking for $ac_header" >&5
20970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973 else
20974 cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h. */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980
20981 #include <X11/Xlib.h>
20982
20983
20984 #include <$ac_header>
20985 _ACEOF
20986 rm -f conftest.$ac_objext
20987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20988 (eval $ac_compile) 2>conftest.er1
20989 ac_status=$?
20990 grep -v '^ *+' conftest.er1 >conftest.err
20991 rm -f conftest.er1
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } &&
20995 { ac_try='test -z "$ac_cxx_werror_flag"
20996 || test ! -s conftest.err'
20997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998 (eval $ac_try) 2>&5
20999 ac_status=$?
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); }; } &&
21002 { ac_try='test -s conftest.$ac_objext'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008 eval "$as_ac_Header=yes"
21009 else
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013 eval "$as_ac_Header=no"
21014 fi
21015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21016 fi
21017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21020 cat >>confdefs.h <<_ACEOF
21021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21022 _ACEOF
21023 XLIB=yes
21024 else
21025 XLIB=no
21026 fi
21027
21028 done
21029
21030 test "x$XLIB" = "xno" && { { echo "$as_me:$LINENO: error: standard X11 headers not found" >&5
21031 echo "$as_me: error: standard X11 headers not found" >&2;}
21032 { (exit 1); exit 1; }; }
21033
21034 echo "$as_me:$LINENO: checking whether to build support for the SHAPE extension" >&5
21035 echo $ECHO_N "checking whether to build support for the SHAPE extension... $ECHO_C" >&6
21036 # Check whether --enable-shape or --disable-shape was given.
21037 if test "${enable_shape+set}" = set; then
21038 enableval="$enable_shape"
21039 SHAPE="$enableval"
21040 else
21041 SHAPE=yes
21042 fi;
21043 echo "$as_me:$LINENO: result: $SHAPE" >&5
21044 echo "${ECHO_T}$SHAPE" >&6
21045
21046 if test "x$SHAPE" = "xyes"; then
21047 echo "$as_me:$LINENO: checking for XShapeCombineShape in -lXext" >&5
21048 echo $ECHO_N "checking for XShapeCombineShape in -lXext... $ECHO_C" >&6
21049 if test "${ac_cv_lib_Xext_XShapeCombineShape+set}" = set; then
21050 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052 ac_check_lib_save_LIBS=$LIBS
21053 LIBS="-lXext $LIBS"
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060
21061 /* Override any gcc2 internal prototype to avoid an error. */
21062 #ifdef __cplusplus
21063 extern "C"
21064 #endif
21065 /* We use char because int might match the return type of a gcc2
21066 builtin and then its argument prototype would still apply. */
21067 char XShapeCombineShape ();
21068 int
21069 main ()
21070 {
21071 XShapeCombineShape ();
21072 ;
21073 return 0;
21074 }
21075 _ACEOF
21076 rm -f conftest.$ac_objext conftest$ac_exeext
21077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21078 (eval $ac_link) 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } &&
21085 { ac_try='test -z "$ac_cxx_werror_flag"
21086 || test ! -s conftest.err'
21087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088 (eval $ac_try) 2>&5
21089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; } &&
21092 { ac_try='test -s conftest$ac_exeext'
21093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); }; }; then
21098 ac_cv_lib_Xext_XShapeCombineShape=yes
21099 else
21100 echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103 ac_cv_lib_Xext_XShapeCombineShape=no
21104 fi
21105 rm -f conftest.err conftest.$ac_objext \
21106 conftest$ac_exeext conftest.$ac_ext
21107 LIBS=$ac_check_lib_save_LIBS
21108 fi
21109 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineShape" >&5
21110 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineShape" >&6
21111 if test $ac_cv_lib_Xext_XShapeCombineShape = yes; then
21112 SHAPE=yes
21113 else
21114 SHAPE=no
21115 fi
21116
21117
21118 if test "x$SHAPE" = "xyes"; then
21119 save_LIBS="$LIBS"
21120
21121 if echo "$LIBS" | grep -q Xext 2>&1 >/dev/null; then
21122 LIBS="$LIBS -lXext"
21123 fi
21124
21125 for ac_header in X11/extensions/shape.h
21126 do
21127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21128 echo "$as_me:$LINENO: checking for $ac_header" >&5
21129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21132 else
21133 cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h. */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h. */
21139
21140 #include <X11/Xlib.h>
21141
21142
21143 #include <$ac_header>
21144 _ACEOF
21145 rm -f conftest.$ac_objext
21146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21147 (eval $ac_compile) 2>conftest.er1
21148 ac_status=$?
21149 grep -v '^ *+' conftest.er1 >conftest.err
21150 rm -f conftest.er1
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } &&
21154 { ac_try='test -z "$ac_cxx_werror_flag"
21155 || test ! -s conftest.err'
21156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157 (eval $ac_try) 2>&5
21158 ac_status=$?
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); }; } &&
21161 { ac_try='test -s conftest.$ac_objext'
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21164 ac_status=$?
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; }; then
21167 eval "$as_ac_Header=yes"
21168 else
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172 eval "$as_ac_Header=no"
21173 fi
21174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21175 fi
21176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21179 cat >>confdefs.h <<_ACEOF
21180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21181 _ACEOF
21182 SHAPE=yes
21183 else
21184 SHAPE=no
21185 fi
21186
21187 done
21188
21189
21190 if test "x$SHAPE" = "xyes"; then
21191 SHAPE="-DSHAPE"
21192 else
21193 SHAPE=
21194 LIBS="$save_LIBS"
21195 fi
21196 else
21197 SHAPE=
21198 fi
21199 else
21200 SHAPE=
21201 fi
21202
21203
21204 echo "$as_me:$LINENO: checking whether to build support for the MIT-SHM extension" >&5
21205 echo $ECHO_N "checking whether to build support for the MIT-SHM extension... $ECHO_C" >&6
21206 # Check whether --enable-mitshm or --disable-mitshm was given.
21207 if test "${enable_mitshm+set}" = set; then
21208 enableval="$enable_mitshm"
21209 MITSHM="$enableval"
21210 else
21211 MITSHM=yes
21212 fi;
21213 echo "$as_me:$LINENO: result: $MITSHM" >&5
21214 echo "${ECHO_T}$MITSHM" >&6
21215
21216 if test "x$MITSHM" = "xyes"; then
21217 echo "$as_me:$LINENO: checking for XShmPutImage in -lXext" >&5
21218 echo $ECHO_N "checking for XShmPutImage in -lXext... $ECHO_C" >&6
21219 if test "${ac_cv_lib_Xext_XShmPutImage+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222 ac_check_lib_save_LIBS=$LIBS
21223 LIBS="-lXext $LIBS"
21224 cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h. */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230
21231 /* Override any gcc2 internal prototype to avoid an error. */
21232 #ifdef __cplusplus
21233 extern "C"
21234 #endif
21235 /* We use char because int might match the return type of a gcc2
21236 builtin and then its argument prototype would still apply. */
21237 char XShmPutImage ();
21238 int
21239 main ()
21240 {
21241 XShmPutImage ();
21242 ;
21243 return 0;
21244 }
21245 _ACEOF
21246 rm -f conftest.$ac_objext conftest$ac_exeext
21247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21248 (eval $ac_link) 2>conftest.er1
21249 ac_status=$?
21250 grep -v '^ *+' conftest.er1 >conftest.err
21251 rm -f conftest.er1
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } &&
21255 { ac_try='test -z "$ac_cxx_werror_flag"
21256 || test ! -s conftest.err'
21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258 (eval $ac_try) 2>&5
21259 ac_status=$?
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); }; } &&
21262 { ac_try='test -s conftest$ac_exeext'
21263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264 (eval $ac_try) 2>&5
21265 ac_status=$?
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); }; }; then
21268 ac_cv_lib_Xext_XShmPutImage=yes
21269 else
21270 echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 ac_cv_lib_Xext_XShmPutImage=no
21274 fi
21275 rm -f conftest.err conftest.$ac_objext \
21276 conftest$ac_exeext conftest.$ac_ext
21277 LIBS=$ac_check_lib_save_LIBS
21278 fi
21279 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmPutImage" >&5
21280 echo "${ECHO_T}$ac_cv_lib_Xext_XShmPutImage" >&6
21281 if test $ac_cv_lib_Xext_XShmPutImage = yes; then
21282 MITSHM=yes
21283 else
21284 MITSHM=no
21285 fi
21286
21287
21288 if test "x$MITSHM" = "xyes"; then
21289 save_LIBS="$LIBS"
21290
21291 LIBS="$LIBS -lXext"
21292
21293 for ac_header in X11/extensions/XShm.h
21294 do
21295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21296 echo "$as_me:$LINENO: checking for $ac_header" >&5
21297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21299 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 else
21301 cat >conftest.$ac_ext <<_ACEOF
21302 /* confdefs.h. */
21303 _ACEOF
21304 cat confdefs.h >>conftest.$ac_ext
21305 cat >>conftest.$ac_ext <<_ACEOF
21306 /* end confdefs.h. */
21307
21308 #include <X11/Xlib.h>
21309
21310
21311 #include <$ac_header>
21312 _ACEOF
21313 rm -f conftest.$ac_objext
21314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21315 (eval $ac_compile) 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } &&
21322 { ac_try='test -z "$ac_cxx_werror_flag"
21323 || test ! -s conftest.err'
21324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21326 ac_status=$?
21327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); }; } &&
21329 { ac_try='test -s conftest.$ac_objext'
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; }; then
21335 eval "$as_ac_Header=yes"
21336 else
21337 echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21339
21340 eval "$as_ac_Header=no"
21341 fi
21342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21343 fi
21344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21347 cat >>confdefs.h <<_ACEOF
21348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21349 _ACEOF
21350 MITSHM=yes
21351 else
21352 MITSHM=no
21353 fi
21354
21355 done
21356
21357
21358 if test "x$MITSHM" = "xyes"; then
21359 MITSHM="-DMITSHM"
21360 else
21361 MITSHM=
21362 LIBS="$save_LIBS"
21363 fi
21364 else
21365 MITSHM=
21366 fi
21367 else
21368 MITSHM=
21369 fi
21370
21371
21372 LIBS="$LIBS -lX11"
21373
21374 echo "$as_me:$LINENO: checking whether to build support for Xft" >&5
21375 echo $ECHO_N "checking whether to build support for Xft... $ECHO_C" >&6
21376 # Check whether --enable-xft or --disable-xft was given.
21377 if test "${enable_xft+set}" = set; then
21378 enableval="$enable_xft"
21379 XFT="$enableval"
21380 else
21381 XFT=yes
21382 fi;
21383 echo "$as_me:$LINENO: result: $XFT" >&5
21384 echo "${ECHO_T}$XFT" >&6
21385
21386 if test "x$XFT" = "xyes"; then
21387
21388
21389 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21390 if test -n "$ac_tool_prefix"; then
21391 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21392 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21393 echo "$as_me:$LINENO: checking for $ac_word" >&5
21394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21395 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21396 echo $ECHO_N "(cached) $ECHO_C" >&6
21397 else
21398 case $PKG_CONFIG in
21399 [\\/]* | ?:[\\/]*)
21400 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21401 ;;
21402 *)
21403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21404 for as_dir in $PATH
21405 do
21406 IFS=$as_save_IFS
21407 test -z "$as_dir" && as_dir=.
21408 for ac_exec_ext in '' $ac_executable_extensions; do
21409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21410 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21412 break 2
21413 fi
21414 done
21415 done
21416
21417 ;;
21418 esac
21419 fi
21420 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21421
21422 if test -n "$PKG_CONFIG"; then
21423 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21424 echo "${ECHO_T}$PKG_CONFIG" >&6
21425 else
21426 echo "$as_me:$LINENO: result: no" >&5
21427 echo "${ECHO_T}no" >&6
21428 fi
21429
21430 fi
21431 if test -z "$ac_cv_path_PKG_CONFIG"; then
21432 ac_pt_PKG_CONFIG=$PKG_CONFIG
21433 # Extract the first word of "pkg-config", so it can be a program name with args.
21434 set dummy pkg-config; ac_word=$2
21435 echo "$as_me:$LINENO: checking for $ac_word" >&5
21436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21437 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21438 echo $ECHO_N "(cached) $ECHO_C" >&6
21439 else
21440 case $ac_pt_PKG_CONFIG in
21441 [\\/]* | ?:[\\/]*)
21442 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21443 ;;
21444 *)
21445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21446 for as_dir in $PATH
21447 do
21448 IFS=$as_save_IFS
21449 test -z "$as_dir" && as_dir=.
21450 for ac_exec_ext in '' $ac_executable_extensions; do
21451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21452 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21454 break 2
21455 fi
21456 done
21457 done
21458
21459 ;;
21460 esac
21461 fi
21462 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21463
21464 if test -n "$ac_pt_PKG_CONFIG"; then
21465 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21466 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
21467 else
21468 echo "$as_me:$LINENO: result: no" >&5
21469 echo "${ECHO_T}no" >&6
21470 fi
21471
21472 PKG_CONFIG=$ac_pt_PKG_CONFIG
21473 else
21474 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21475 fi
21476
21477 fi
21478 if test -n "$PKG_CONFIG"; then
21479 _pkg_min_version=0.9.0
21480 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21481 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
21482 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21483 echo "$as_me:$LINENO: result: yes" >&5
21484 echo "${ECHO_T}yes" >&6
21485 else
21486 echo "$as_me:$LINENO: result: no" >&5
21487 echo "${ECHO_T}no" >&6
21488 PKG_CONFIG=""
21489 fi
21490
21491 fi
21492
21493 pkg_failed=no
21494 echo "$as_me:$LINENO: checking for xft_CFLAGS" >&5
21495 echo $ECHO_N "checking for xft_CFLAGS... $ECHO_C" >&6
21496 if test "${pkg_cv_xft_CFLAGS+set}" = set; then
21497 echo $ECHO_N "(cached) $ECHO_C" >&6
21498 else
21499 if test "x$ac_cv_env_xft_CFLAGS_set" = "xset"; then
21500 pkg_cv_xft_CFLAGS=$ac_cv_env_xft_CFLAGS_value
21501 elif test -n "$PKG_CONFIG"; then
21502 if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"xft >= 2.0.0\" >/dev/null 2>&1") >&5
21503 ($PKG_CONFIG --exists "xft >= 2.0.0" >/dev/null 2>&1) 2>&5
21504 ac_status=$?
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; then
21507 pkg_cv_xft_CFLAGS=`$PKG_CONFIG --cflags "xft >= 2.0.0" 2>/dev/null`
21508 else
21509 pkg_failed=yes
21510 fi
21511 else
21512 pkg_failed=untried
21513 fi
21514 fi
21515 echo "$as_me:$LINENO: result: $pkg_cv_xft_CFLAGS" >&5
21516 echo "${ECHO_T}$pkg_cv_xft_CFLAGS" >&6
21517 echo "$as_me:$LINENO: checking for xft_LIBS" >&5
21518 echo $ECHO_N "checking for xft_LIBS... $ECHO_C" >&6
21519 if test "${pkg_cv_xft_LIBS+set}" = set; then
21520 echo $ECHO_N "(cached) $ECHO_C" >&6
21521 else
21522 if test "x$ac_cv_env_xft_LIBS_set" = "xset"; then
21523 pkg_cv_xft_LIBS=$ac_cv_env_xft_LIBS_value
21524 elif test -n "$PKG_CONFIG"; then
21525 if { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists \"xft >= 2.0.0\" >/dev/null 2>&1") >&5
21526 ($PKG_CONFIG --exists "xft >= 2.0.0" >/dev/null 2>&1) 2>&5
21527 ac_status=$?
21528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; then
21530 pkg_cv_xft_LIBS=`$PKG_CONFIG --libs "xft >= 2.0.0" 2>/dev/null`
21531 else
21532 pkg_failed=yes
21533 fi
21534 else
21535 pkg_failed=untried
21536 fi
21537 fi
21538 echo "$as_me:$LINENO: result: $pkg_cv_xft_LIBS" >&5
21539 echo "${ECHO_T}$pkg_cv_xft_LIBS" >&6
21540
21541 if test $pkg_failed = yes; then
21542 xft_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 2.0.0"`
21543 # Put the nasty error message in config.log where it belongs
21544 echo "$xft_PKG_ERRORS" 1>&5
21545
21546 XFT=
21547 XFT_PKGCONFIG=
21548 elif test $pkg_failed = untried; then
21549 XFT=
21550 XFT_PKGCONFIG=
21551 else
21552 xft_CFLAGS=$pkg_cv_xft_CFLAGS
21553 xft_LIBS=$pkg_cv_xft_LIBS
21554 XFT="-DXFT"
21555 XFT_PKGCONFIG="xft >= 2.0.0"
21556 CXXFLAGS="$CXXFLAGS $xft_CFLAGS"
21557 LIBS="$LIBS $xft_LIBS"
21558 fi
21559 else
21560 XFT=
21561 XFT_PKGCONFIG=
21562 fi
21563
21564
21565
21566 echo "$as_me:$LINENO: checking whether to include verbose debugging code" >&5
21567 echo $ECHO_N "checking whether to include verbose debugging code... $ECHO_C" >&6
21568 # Check whether --enable-debug or --disable-debug was given.
21569 if test "${enable_debug+set}" = set; then
21570 enableval="$enable_debug"
21571 DEBUG="$enableval"
21572 else
21573 DEBUG=no
21574 fi;
21575 echo "$as_me:$LINENO: result: $DEBUG" >&5
21576 echo "${ECHO_T}$DEBUG" >&6
21577
21578 if test "x$DEBUG" = "xyes"; then
21579 DEBUG="-DDEBUG -fno-inline -g"
21580 else
21581 DEBUG=
21582 fi
21583
21584
21585 echo "$as_me:$LINENO: checking whether to include NLS support" >&5
21586 echo $ECHO_N "checking whether to include NLS support... $ECHO_C" >&6
21587 # Check whether --enable-nls or --disable-nls was given.
21588 if test "${enable_nls+set}" = set; then
21589 enableval="$enable_nls"
21590 NLS="$enableval"
21591 else
21592 NLS=yes
21593 fi;
21594 echo "$as_me:$LINENO: result: $NLS" >&5
21595 echo "${ECHO_T}$NLS" >&6
21596
21597 if test "x$NLS" = "xyes"; then
21598 NLS="-DNLS"
21599 else
21600 NLS=
21601 fi
21602
21603
21604 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
21605 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
21606 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
21607 if test "${enable_maintainer_mode+set}" = set; then
21608 enableval="$enable_maintainer_mode"
21609 USE_MAINTAINER_MODE=$enableval
21610 else
21611 USE_MAINTAINER_MODE=no
21612 fi;
21613 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21614 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
21615
21616
21617 if test $USE_MAINTAINER_MODE = yes; then
21618 MAINTAINER_MODE_TRUE=
21619 MAINTAINER_MODE_FALSE='#'
21620 else
21621 MAINTAINER_MODE_TRUE='#'
21622 MAINTAINER_MODE_FALSE=
21623 fi
21624
21625 MAINT=$MAINTAINER_MODE_TRUE
21626
21627
21628
21629 ac_config_headers="$ac_config_headers config.h"
21630
21631 ac_config_files="$ac_config_files version.h Makefile data/Makefile data/styles/Makefile doc/Makefile doc/fr_FR/Makefile doc/ja_JP/Makefile doc/nl_NL/Makefile doc/sl_SI/Makefile lib/Makefile lib/libbt.pc src/Makefile util/Makefile"
21632
21633 cat >confcache <<\_ACEOF
21634 # This file is a shell script that caches the results of configure
21635 # tests run on this system so they can be shared between configure
21636 # scripts and configure runs, see configure's option --config-cache.
21637 # It is not useful on other systems. If it contains results you don't
21638 # want to keep, you may remove or edit it.
21639 #
21640 # config.status only pays attention to the cache file if you give it
21641 # the --recheck option to rerun configure.
21642 #
21643 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21644 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21645 # following values.
21646
21647 _ACEOF
21648
21649 # The following way of writing the cache mishandles newlines in values,
21650 # but we know of no workaround that is simple, portable, and efficient.
21651 # So, don't put newlines in cache variables' values.
21652 # Ultrix sh set writes to stderr and can't be redirected directly,
21653 # and sets the high bit in the cache file unless we assign to the vars.
21654 {
21655 (set) 2>&1 |
21656 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21657 *ac_space=\ *)
21658 # `set' does not quote correctly, so add quotes (double-quote
21659 # substitution turns \\\\ into \\, and sed turns \\ into \).
21660 sed -n \
21661 "s/'/'\\\\''/g;
21662 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21663 ;;
21664 *)
21665 # `set' quotes correctly as required by POSIX, so do not add quotes.
21666 sed -n \
21667 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21668 ;;
21669 esac;
21670 } |
21671 sed '
21672 t clear
21673 : clear
21674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21675 t end
21676 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21677 : end' >>confcache
21678 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21679 if test -w $cache_file; then
21680 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21681 cat confcache >$cache_file
21682 else
21683 echo "not updating unwritable cache $cache_file"
21684 fi
21685 fi
21686 rm -f confcache
21687
21688 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21689 # Let make expand exec_prefix.
21690 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21691
21692 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21693 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21694 # trailing colons and then remove the whole line if VPATH becomes empty
21695 # (actually we leave an empty line to preserve line numbers).
21696 if test "x$srcdir" = x.; then
21697 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21698 s/:*\$(srcdir):*/:/;
21699 s/:*\${srcdir}:*/:/;
21700 s/:*@srcdir@:*/:/;
21701 s/^\([^=]*=[ ]*\):*/\1/;
21702 s/:*$//;
21703 s/^[^=]*=[ ]*$//;
21704 }'
21705 fi
21706
21707 DEFS=-DHAVE_CONFIG_H
21708
21709 ac_libobjs=
21710 ac_ltlibobjs=
21711 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21712 # 1. Remove the extension, and $U if already installed.
21713 ac_i=`echo "$ac_i" |
21714 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21715 # 2. Add them.
21716 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21717 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21718 done
21719 LIBOBJS=$ac_libobjs
21720
21721 LTLIBOBJS=$ac_ltlibobjs
21722
21723
21724 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21725 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21726 Usually this means the macro was only invoked conditionally." >&5
21727 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21728 Usually this means the macro was only invoked conditionally." >&2;}
21729 { (exit 1); exit 1; }; }
21730 fi
21731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21732 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21733 Usually this means the macro was only invoked conditionally." >&5
21734 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21735 Usually this means the macro was only invoked conditionally." >&2;}
21736 { (exit 1); exit 1; }; }
21737 fi
21738 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21739 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21740 Usually this means the macro was only invoked conditionally." >&5
21741 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21742 Usually this means the macro was only invoked conditionally." >&2;}
21743 { (exit 1); exit 1; }; }
21744 fi
21745 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21746 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21747 Usually this means the macro was only invoked conditionally." >&5
21748 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21749 Usually this means the macro was only invoked conditionally." >&2;}
21750 { (exit 1); exit 1; }; }
21751 fi
21752
21753 : ${CONFIG_STATUS=./config.status}
21754 ac_clean_files_save=$ac_clean_files
21755 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21756 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21757 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21758 cat >$CONFIG_STATUS <<_ACEOF
21759 #! $SHELL
21760 # Generated by $as_me.
21761 # Run this file to recreate the current configuration.
21762 # Compiler output produced by configure, useful for debugging
21763 # configure, is in config.log if it exists.
21764
21765 debug=false
21766 ac_cs_recheck=false
21767 ac_cs_silent=false
21768 SHELL=\${CONFIG_SHELL-$SHELL}
21769 _ACEOF
21770
21771 cat >>$CONFIG_STATUS <<\_ACEOF
21772 ## --------------------- ##
21773 ## M4sh Initialization. ##
21774 ## --------------------- ##
21775
21776 # Be Bourne compatible
21777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21778 emulate sh
21779 NULLCMD=:
21780 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21781 # is contrary to our usage. Disable this feature.
21782 alias -g '${1+"$@"}'='"$@"'
21783 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21784 set -o posix
21785 fi
21786 DUALCASE=1; export DUALCASE # for MKS sh
21787
21788 # Support unset when possible.
21789 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21790 as_unset=unset
21791 else
21792 as_unset=false
21793 fi
21794
21795
21796 # Work around bugs in pre-3.0 UWIN ksh.
21797 $as_unset ENV MAIL MAILPATH
21798 PS1='$ '
21799 PS2='> '
21800 PS4='+ '
21801
21802 # NLS nuisances.
21803 for as_var in \
21804 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21805 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21806 LC_TELEPHONE LC_TIME
21807 do
21808 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21809 eval $as_var=C; export $as_var
21810 else
21811 $as_unset $as_var
21812 fi
21813 done
21814
21815 # Required to use basename.
21816 if expr a : '\(a\)' >/dev/null 2>&1; then
21817 as_expr=expr
21818 else
21819 as_expr=false
21820 fi
21821
21822 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21823 as_basename=basename
21824 else
21825 as_basename=false
21826 fi
21827
21828
21829 # Name of the executable.
21830 as_me=`$as_basename "$0" ||
21831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21832 X"$0" : 'X\(//\)$' \| \
21833 X"$0" : 'X\(/\)$' \| \
21834 . : '\(.\)' 2>/dev/null ||
21835 echo X/"$0" |
21836 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21837 /^X\/\(\/\/\)$/{ s//\1/; q; }
21838 /^X\/\(\/\).*/{ s//\1/; q; }
21839 s/.*/./; q'`
21840
21841
21842 # PATH needs CR, and LINENO needs CR and PATH.
21843 # Avoid depending upon Character Ranges.
21844 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21845 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21846 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21847 as_cr_digits='0123456789'
21848 as_cr_alnum=$as_cr_Letters$as_cr_digits
21849
21850 # The user is always right.
21851 if test "${PATH_SEPARATOR+set}" != set; then
21852 echo "#! /bin/sh" >conf$$.sh
21853 echo "exit 0" >>conf$$.sh
21854 chmod +x conf$$.sh
21855 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21856 PATH_SEPARATOR=';'
21857 else
21858 PATH_SEPARATOR=:
21859 fi
21860 rm -f conf$$.sh
21861 fi
21862
21863
21864 as_lineno_1=$LINENO
21865 as_lineno_2=$LINENO
21866 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21867 test "x$as_lineno_1" != "x$as_lineno_2" &&
21868 test "x$as_lineno_3" = "x$as_lineno_2" || {
21869 # Find who we are. Look in the path if we contain no path at all
21870 # relative or not.
21871 case $0 in
21872 *[\\/]* ) as_myself=$0 ;;
21873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21874 for as_dir in $PATH
21875 do
21876 IFS=$as_save_IFS
21877 test -z "$as_dir" && as_dir=.
21878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21879 done
21880
21881 ;;
21882 esac
21883 # We did not find ourselves, most probably we were run as `sh COMMAND'
21884 # in which case we are not to be found in the path.
21885 if test "x$as_myself" = x; then
21886 as_myself=$0
21887 fi
21888 if test ! -f "$as_myself"; then
21889 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21890 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21891 { (exit 1); exit 1; }; }
21892 fi
21893 case $CONFIG_SHELL in
21894 '')
21895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21896 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21897 do
21898 IFS=$as_save_IFS
21899 test -z "$as_dir" && as_dir=.
21900 for as_base in sh bash ksh sh5; do
21901 case $as_dir in
21902 /*)
21903 if ("$as_dir/$as_base" -c '
21904 as_lineno_1=$LINENO
21905 as_lineno_2=$LINENO
21906 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21907 test "x$as_lineno_1" != "x$as_lineno_2" &&
21908 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21909 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21910 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21911 CONFIG_SHELL=$as_dir/$as_base
21912 export CONFIG_SHELL
21913 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21914 fi;;
21915 esac
21916 done
21917 done
21918 ;;
21919 esac
21920
21921 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21922 # uniformly replaced by the line number. The first 'sed' inserts a
21923 # line-number line before each line; the second 'sed' does the real
21924 # work. The second script uses 'N' to pair each line-number line
21925 # with the numbered line, and appends trailing '-' during
21926 # substitution so that $LINENO is not a special case at line end.
21927 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21928 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21929 sed '=' <$as_myself |
21930 sed '
21931 N
21932 s,$,-,
21933 : loop
21934 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21935 t loop
21936 s,-$,,
21937 s,^['$as_cr_digits']*\n,,
21938 ' >$as_me.lineno &&
21939 chmod +x $as_me.lineno ||
21940 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21941 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21942 { (exit 1); exit 1; }; }
21943
21944 # Don't try to exec as it changes $[0], causing all sort of problems
21945 # (the dirname of $[0] is not the place where we might find the
21946 # original and so on. Autoconf is especially sensible to this).
21947 . ./$as_me.lineno
21948 # Exit status is that of the last command.
21949 exit
21950 }
21951
21952
21953 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21954 *c*,-n*) ECHO_N= ECHO_C='
21955 ' ECHO_T=' ' ;;
21956 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21957 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21958 esac
21959
21960 if expr a : '\(a\)' >/dev/null 2>&1; then
21961 as_expr=expr
21962 else
21963 as_expr=false
21964 fi
21965
21966 rm -f conf$$ conf$$.exe conf$$.file
21967 echo >conf$$.file
21968 if ln -s conf$$.file conf$$ 2>/dev/null; then
21969 # We could just check for DJGPP; but this test a) works b) is more generic
21970 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21971 if test -f conf$$.exe; then
21972 # Don't use ln at all; we don't have any links
21973 as_ln_s='cp -p'
21974 else
21975 as_ln_s='ln -s'
21976 fi
21977 elif ln conf$$.file conf$$ 2>/dev/null; then
21978 as_ln_s=ln
21979 else
21980 as_ln_s='cp -p'
21981 fi
21982 rm -f conf$$ conf$$.exe conf$$.file
21983
21984 if mkdir -p . 2>/dev/null; then
21985 as_mkdir_p=:
21986 else
21987 test -d ./-p && rmdir ./-p
21988 as_mkdir_p=false
21989 fi
21990
21991 as_executable_p="test -f"
21992
21993 # Sed expression to map a string onto a valid CPP name.
21994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21995
21996 # Sed expression to map a string onto a valid variable name.
21997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21998
21999
22000 # IFS
22001 # We need space, tab and new line, in precisely that order.
22002 as_nl='
22003 '
22004 IFS=" $as_nl"
22005
22006 # CDPATH.
22007 $as_unset CDPATH
22008
22009 exec 6>&1
22010
22011 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22012 # report actual input values of CONFIG_FILES etc. instead of their
22013 # values after options handling. Logging --version etc. is OK.
22014 exec 5>>config.log
22015 {
22016 echo
22017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22018 ## Running $as_me. ##
22019 _ASBOX
22020 } >&5
22021 cat >&5 <<_CSEOF
22022
22023 This file was extended by blackbox $as_me 0.70.1, which was
22024 generated by GNU Autoconf 2.59. Invocation command line was
22025
22026 CONFIG_FILES = $CONFIG_FILES
22027 CONFIG_HEADERS = $CONFIG_HEADERS
22028 CONFIG_LINKS = $CONFIG_LINKS
22029 CONFIG_COMMANDS = $CONFIG_COMMANDS
22030 $ $0 $@
22031
22032 _CSEOF
22033 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22034 echo >&5
22035 _ACEOF
22036
22037 # Files that config.status was made for.
22038 if test -n "$ac_config_files"; then
22039 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22040 fi
22041
22042 if test -n "$ac_config_headers"; then
22043 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22044 fi
22045
22046 if test -n "$ac_config_links"; then
22047 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22048 fi
22049
22050 if test -n "$ac_config_commands"; then
22051 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22052 fi
22053
22054 cat >>$CONFIG_STATUS <<\_ACEOF
22055
22056 ac_cs_usage="\
22057 \`$as_me' instantiates files from templates according to the
22058 current configuration.
22059
22060 Usage: $0 [OPTIONS] [FILE]...
22061
22062 -h, --help print this help, then exit
22063 -V, --version print version number, then exit
22064 -q, --quiet do not print progress messages
22065 -d, --debug don't remove temporary files
22066 --recheck update $as_me by reconfiguring in the same conditions
22067 --file=FILE[:TEMPLATE]
22068 instantiate the configuration file FILE
22069 --header=FILE[:TEMPLATE]
22070 instantiate the configuration header FILE
22071
22072 Configuration files:
22073 $config_files
22074
22075 Configuration headers:
22076 $config_headers
22077
22078 Configuration commands:
22079 $config_commands
22080
22081 Report bugs to <[email protected]>."
22082 _ACEOF
22083
22084 cat >>$CONFIG_STATUS <<_ACEOF
22085 ac_cs_version="\\
22086 blackbox config.status 0.70.1
22087 configured by $0, generated by GNU Autoconf 2.59,
22088 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22089
22090 Copyright (C) 2003 Free Software Foundation, Inc.
22091 This config.status script is free software; the Free Software Foundation
22092 gives unlimited permission to copy, distribute and modify it."
22093 srcdir=$srcdir
22094 INSTALL="$INSTALL"
22095 _ACEOF
22096
22097 cat >>$CONFIG_STATUS <<\_ACEOF
22098 # If no file are specified by the user, then we need to provide default
22099 # value. By we need to know if files were specified by the user.
22100 ac_need_defaults=:
22101 while test $# != 0
22102 do
22103 case $1 in
22104 --*=*)
22105 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22106 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22107 ac_shift=:
22108 ;;
22109 -*)
22110 ac_option=$1
22111 ac_optarg=$2
22112 ac_shift=shift
22113 ;;
22114 *) # This is not an option, so the user has probably given explicit
22115 # arguments.
22116 ac_option=$1
22117 ac_need_defaults=false;;
22118 esac
22119
22120 case $ac_option in
22121 # Handling of the options.
22122 _ACEOF
22123 cat >>$CONFIG_STATUS <<\_ACEOF
22124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22125 ac_cs_recheck=: ;;
22126 --version | --vers* | -V )
22127 echo "$ac_cs_version"; exit 0 ;;
22128 --he | --h)
22129 # Conflict between --help and --header
22130 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22131 Try \`$0 --help' for more information." >&5
22132 echo "$as_me: error: ambiguous option: $1
22133 Try \`$0 --help' for more information." >&2;}
22134 { (exit 1); exit 1; }; };;
22135 --help | --hel | -h )
22136 echo "$ac_cs_usage"; exit 0 ;;
22137 --debug | --d* | -d )
22138 debug=: ;;
22139 --file | --fil | --fi | --f )
22140 $ac_shift
22141 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22142 ac_need_defaults=false;;
22143 --header | --heade | --head | --hea )
22144 $ac_shift
22145 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22146 ac_need_defaults=false;;
22147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22149 ac_cs_silent=: ;;
22150
22151 # This is an error.
22152 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22153 Try \`$0 --help' for more information." >&5
22154 echo "$as_me: error: unrecognized option: $1
22155 Try \`$0 --help' for more information." >&2;}
22156 { (exit 1); exit 1; }; } ;;
22157
22158 *) ac_config_targets="$ac_config_targets $1" ;;
22159
22160 esac
22161 shift
22162 done
22163
22164 ac_configure_extra_args=
22165
22166 if $ac_cs_silent; then
22167 exec 6>/dev/null
22168 ac_configure_extra_args="$ac_configure_extra_args --silent"
22169 fi
22170
22171 _ACEOF
22172 cat >>$CONFIG_STATUS <<_ACEOF
22173 if \$ac_cs_recheck; then
22174 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22175 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22176 fi
22177
22178 _ACEOF
22179
22180 cat >>$CONFIG_STATUS <<_ACEOF
22181 #
22182 # INIT-COMMANDS section.
22183 #
22184
22185 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22186
22187 _ACEOF
22188
22189
22190
22191 cat >>$CONFIG_STATUS <<\_ACEOF
22192 for ac_config_target in $ac_config_targets
22193 do
22194 case "$ac_config_target" in
22195 # Handling of arguments.
22196 "version.h" ) CONFIG_FILES="$CONFIG_FILES version.h" ;;
22197 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22198 "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
22199 "data/styles/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/styles/Makefile" ;;
22200 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22201 "doc/fr_FR/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/fr_FR/Makefile" ;;
22202 "doc/ja_JP/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/ja_JP/Makefile" ;;
22203 "doc/nl_NL/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/nl_NL/Makefile" ;;
22204 "doc/sl_SI/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/sl_SI/Makefile" ;;
22205 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22206 "lib/libbt.pc" ) CONFIG_FILES="$CONFIG_FILES lib/libbt.pc" ;;
22207 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22208 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
22209 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22210 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22211 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22212 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22213 { (exit 1); exit 1; }; };;
22214 esac
22215 done
22216
22217 # If the user did not use the arguments to specify the items to instantiate,
22218 # then the envvar interface is used. Set only those that are not.
22219 # We use the long form for the default assignment because of an extremely
22220 # bizarre bug on SunOS 4.1.3.
22221 if $ac_need_defaults; then
22222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22225 fi
22226
22227 # Have a temporary directory for convenience. Make it in the build tree
22228 # simply because there is no reason to put it here, and in addition,
22229 # creating and moving files from /tmp can sometimes cause problems.
22230 # Create a temporary directory, and hook for its removal unless debugging.
22231 $debug ||
22232 {
22233 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22234 trap '{ (exit 1); exit 1; }' 1 2 13 15
22235 }
22236
22237 # Create a (secure) tmp directory for tmp files.
22238
22239 {
22240 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22241 test -n "$tmp" && test -d "$tmp"
22242 } ||
22243 {
22244 tmp=./confstat$$-$RANDOM
22245 (umask 077 && mkdir $tmp)
22246 } ||
22247 {
22248 echo "$me: cannot create a temporary directory in ." >&2
22249 { (exit 1); exit 1; }
22250 }
22251
22252 _ACEOF
22253
22254 cat >>$CONFIG_STATUS <<_ACEOF
22255
22256 #
22257 # CONFIG_FILES section.
22258 #
22259
22260 # No need to generate the scripts if there are no CONFIG_FILES.
22261 # This happens for instance when ./config.status config.h
22262 if test -n "\$CONFIG_FILES"; then
22263 # Protect against being on the right side of a sed subst in config.status.
22264 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22265 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22266 s,@SHELL@,$SHELL,;t t
22267 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22268 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22269 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22270 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22271 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22272 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22273 s,@exec_prefix@,$exec_prefix,;t t
22274 s,@prefix@,$prefix,;t t
22275 s,@program_transform_name@,$program_transform_name,;t t
22276 s,@bindir@,$bindir,;t t
22277 s,@sbindir@,$sbindir,;t t
22278 s,@libexecdir@,$libexecdir,;t t
22279 s,@datadir@,$datadir,;t t
22280 s,@sysconfdir@,$sysconfdir,;t t
22281 s,@sharedstatedir@,$sharedstatedir,;t t
22282 s,@localstatedir@,$localstatedir,;t t
22283 s,@libdir@,$libdir,;t t
22284 s,@includedir@,$includedir,;t t
22285 s,@oldincludedir@,$oldincludedir,;t t
22286 s,@infodir@,$infodir,;t t
22287 s,@mandir@,$mandir,;t t
22288 s,@build_alias@,$build_alias,;t t
22289 s,@host_alias@,$host_alias,;t t
22290 s,@target_alias@,$target_alias,;t t
22291 s,@DEFS@,$DEFS,;t t
22292 s,@ECHO_C@,$ECHO_C,;t t
22293 s,@ECHO_N@,$ECHO_N,;t t
22294 s,@ECHO_T@,$ECHO_T,;t t
22295 s,@LIBS@,$LIBS,;t t
22296 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22297 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22298 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22299 s,@CYGPATH_W@,$CYGPATH_W,;t t
22300 s,@PACKAGE@,$PACKAGE,;t t
22301 s,@VERSION@,$VERSION,;t t
22302 s,@ACLOCAL@,$ACLOCAL,;t t
22303 s,@AUTOCONF@,$AUTOCONF,;t t
22304 s,@AUTOMAKE@,$AUTOMAKE,;t t
22305 s,@AUTOHEADER@,$AUTOHEADER,;t t
22306 s,@MAKEINFO@,$MAKEINFO,;t t
22307 s,@install_sh@,$install_sh,;t t
22308 s,@STRIP@,$STRIP,;t t
22309 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22310 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22311 s,@mkdir_p@,$mkdir_p,;t t
22312 s,@AWK@,$AWK,;t t
22313 s,@SET_MAKE@,$SET_MAKE,;t t
22314 s,@am__leading_dot@,$am__leading_dot,;t t
22315 s,@AMTAR@,$AMTAR,;t t
22316 s,@am__tar@,$am__tar,;t t
22317 s,@am__untar@,$am__untar,;t t
22318 s,@CC@,$CC,;t t
22319 s,@CFLAGS@,$CFLAGS,;t t
22320 s,@LDFLAGS@,$LDFLAGS,;t t
22321 s,@CPPFLAGS@,$CPPFLAGS,;t t
22322 s,@ac_ct_CC@,$ac_ct_CC,;t t
22323 s,@EXEEXT@,$EXEEXT,;t t
22324 s,@OBJEXT@,$OBJEXT,;t t
22325 s,@DEPDIR@,$DEPDIR,;t t
22326 s,@am__include@,$am__include,;t t
22327 s,@am__quote@,$am__quote,;t t
22328 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22329 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22330 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22331 s,@CCDEPMODE@,$CCDEPMODE,;t t
22332 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22333 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22334 s,@CPP@,$CPP,;t t
22335 s,@EGREP@,$EGREP,;t t
22336 s,@CXX@,$CXX,;t t
22337 s,@CXXFLAGS@,$CXXFLAGS,;t t
22338 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22339 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22340 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22341 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22342 s,@build@,$build,;t t
22343 s,@build_cpu@,$build_cpu,;t t
22344 s,@build_vendor@,$build_vendor,;t t
22345 s,@build_os@,$build_os,;t t
22346 s,@host@,$host,;t t
22347 s,@host_cpu@,$host_cpu,;t t
22348 s,@host_vendor@,$host_vendor,;t t
22349 s,@host_os@,$host_os,;t t
22350 s,@LN_S@,$LN_S,;t t
22351 s,@ECHO@,$ECHO,;t t
22352 s,@AR@,$AR,;t t
22353 s,@ac_ct_AR@,$ac_ct_AR,;t t
22354 s,@RANLIB@,$RANLIB,;t t
22355 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22356 s,@CXXCPP@,$CXXCPP,;t t
22357 s,@F77@,$F77,;t t
22358 s,@FFLAGS@,$FFLAGS,;t t
22359 s,@ac_ct_F77@,$ac_ct_F77,;t t
22360 s,@LIBTOOL@,$LIBTOOL,;t t
22361 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22362 s,@regex_cmd@,$regex_cmd,;t t
22363 s,@gencat_cmd@,$gencat_cmd,;t t
22364 s,@ICONV@,$ICONV,;t t
22365 s,@LOCALE@,$LOCALE,;t t
22366 s,@SHAPE@,$SHAPE,;t t
22367 s,@MITSHM@,$MITSHM,;t t
22368 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22369 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
22370 s,@xft_CFLAGS@,$xft_CFLAGS,;t t
22371 s,@xft_LIBS@,$xft_LIBS,;t t
22372 s,@XFT@,$XFT,;t t
22373 s,@XFT_PKGCONFIG@,$XFT_PKGCONFIG,;t t
22374 s,@DEBUG@,$DEBUG,;t t
22375 s,@NLS@,$NLS,;t t
22376 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22377 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22378 s,@MAINT@,$MAINT,;t t
22379 s,@LIBOBJS@,$LIBOBJS,;t t
22380 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22381 CEOF
22382
22383 _ACEOF
22384
22385 cat >>$CONFIG_STATUS <<\_ACEOF
22386 # Split the substitutions into bite-sized pieces for seds with
22387 # small command number limits, like on Digital OSF/1 and HP-UX.
22388 ac_max_sed_lines=48
22389 ac_sed_frag=1 # Number of current file.
22390 ac_beg=1 # First line for current file.
22391 ac_end=$ac_max_sed_lines # Line after last line for current file.
22392 ac_more_lines=:
22393 ac_sed_cmds=
22394 while $ac_more_lines; do
22395 if test $ac_beg -gt 1; then
22396 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22397 else
22398 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22399 fi
22400 if test ! -s $tmp/subs.frag; then
22401 ac_more_lines=false
22402 else
22403 # The purpose of the label and of the branching condition is to
22404 # speed up the sed processing (if there are no `@' at all, there
22405 # is no need to browse any of the substitutions).
22406 # These are the two extra sed commands mentioned above.
22407 (echo ':t
22408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22409 if test -z "$ac_sed_cmds"; then
22410 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22411 else
22412 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22413 fi
22414 ac_sed_frag=`expr $ac_sed_frag + 1`
22415 ac_beg=$ac_end
22416 ac_end=`expr $ac_end + $ac_max_sed_lines`
22417 fi
22418 done
22419 if test -z "$ac_sed_cmds"; then
22420 ac_sed_cmds=cat
22421 fi
22422 fi # test -n "$CONFIG_FILES"
22423
22424 _ACEOF
22425 cat >>$CONFIG_STATUS <<\_ACEOF
22426 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22427 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22428 case $ac_file in
22429 - | *:- | *:-:* ) # input from stdin
22430 cat >$tmp/stdin
22431 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22433 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22434 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22435 * ) ac_file_in=$ac_file.in ;;
22436 esac
22437
22438 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22439 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22440 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22441 X"$ac_file" : 'X\(//\)[^/]' \| \
22442 X"$ac_file" : 'X\(//\)$' \| \
22443 X"$ac_file" : 'X\(/\)' \| \
22444 . : '\(.\)' 2>/dev/null ||
22445 echo X"$ac_file" |
22446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22448 /^X\(\/\/\)$/{ s//\1/; q; }
22449 /^X\(\/\).*/{ s//\1/; q; }
22450 s/.*/./; q'`
22451 { if $as_mkdir_p; then
22452 mkdir -p "$ac_dir"
22453 else
22454 as_dir="$ac_dir"
22455 as_dirs=
22456 while test ! -d "$as_dir"; do
22457 as_dirs="$as_dir $as_dirs"
22458 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22460 X"$as_dir" : 'X\(//\)[^/]' \| \
22461 X"$as_dir" : 'X\(//\)$' \| \
22462 X"$as_dir" : 'X\(/\)' \| \
22463 . : '\(.\)' 2>/dev/null ||
22464 echo X"$as_dir" |
22465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22467 /^X\(\/\/\)$/{ s//\1/; q; }
22468 /^X\(\/\).*/{ s//\1/; q; }
22469 s/.*/./; q'`
22470 done
22471 test ! -n "$as_dirs" || mkdir $as_dirs
22472 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22473 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22474 { (exit 1); exit 1; }; }; }
22475
22476 ac_builddir=.
22477
22478 if test "$ac_dir" != .; then
22479 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22480 # A "../" for each directory in $ac_dir_suffix.
22481 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22482 else
22483 ac_dir_suffix= ac_top_builddir=
22484 fi
22485
22486 case $srcdir in
22487 .) # No --srcdir option. We are building in place.
22488 ac_srcdir=.
22489 if test -z "$ac_top_builddir"; then
22490 ac_top_srcdir=.
22491 else
22492 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22493 fi ;;
22494 [\\/]* | ?:[\\/]* ) # Absolute path.
22495 ac_srcdir=$srcdir$ac_dir_suffix;
22496 ac_top_srcdir=$srcdir ;;
22497 *) # Relative path.
22498 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22499 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22500 esac
22501
22502 # Do not use `cd foo && pwd` to compute absolute paths, because
22503 # the directories may not exist.
22504 case `pwd` in
22505 .) ac_abs_builddir="$ac_dir";;
22506 *)
22507 case "$ac_dir" in
22508 .) ac_abs_builddir=`pwd`;;
22509 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22510 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22511 esac;;
22512 esac
22513 case $ac_abs_builddir in
22514 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22515 *)
22516 case ${ac_top_builddir}. in
22517 .) ac_abs_top_builddir=$ac_abs_builddir;;
22518 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22519 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22520 esac;;
22521 esac
22522 case $ac_abs_builddir in
22523 .) ac_abs_srcdir=$ac_srcdir;;
22524 *)
22525 case $ac_srcdir in
22526 .) ac_abs_srcdir=$ac_abs_builddir;;
22527 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22528 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22529 esac;;
22530 esac
22531 case $ac_abs_builddir in
22532 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22533 *)
22534 case $ac_top_srcdir in
22535 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22536 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22537 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22538 esac;;
22539 esac
22540
22541
22542 case $INSTALL in
22543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22544 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22545 esac
22546
22547 if test x"$ac_file" != x-; then
22548 { echo "$as_me:$LINENO: creating $ac_file" >&5
22549 echo "$as_me: creating $ac_file" >&6;}
22550 rm -f "$ac_file"
22551 fi
22552 # Let's still pretend it is `configure' which instantiates (i.e., don't
22553 # use $as_me), people would be surprised to read:
22554 # /* config.h. Generated by config.status. */
22555 if test x"$ac_file" = x-; then
22556 configure_input=
22557 else
22558 configure_input="$ac_file. "
22559 fi
22560 configure_input=$configure_input"Generated from `echo $ac_file_in |
22561 sed 's,.*/,,'` by configure."
22562
22563 # First look for the input files in the build tree, otherwise in the
22564 # src tree.
22565 ac_file_inputs=`IFS=:
22566 for f in $ac_file_in; do
22567 case $f in
22568 -) echo $tmp/stdin ;;
22569 [\\/$]*)
22570 # Absolute (can't be DOS-style, as IFS=:)
22571 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22572 echo "$as_me: error: cannot find input file: $f" >&2;}
22573 { (exit 1); exit 1; }; }
22574 echo "$f";;
22575 *) # Relative
22576 if test -f "$f"; then
22577 # Build tree
22578 echo "$f"
22579 elif test -f "$srcdir/$f"; then
22580 # Source tree
22581 echo "$srcdir/$f"
22582 else
22583 # /dev/null tree
22584 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22585 echo "$as_me: error: cannot find input file: $f" >&2;}
22586 { (exit 1); exit 1; }; }
22587 fi;;
22588 esac
22589 done` || { (exit 1); exit 1; }
22590 _ACEOF
22591 cat >>$CONFIG_STATUS <<_ACEOF
22592 sed "$ac_vpsub
22593 $extrasub
22594 _ACEOF
22595 cat >>$CONFIG_STATUS <<\_ACEOF
22596 :t
22597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22598 s,@configure_input@,$configure_input,;t t
22599 s,@srcdir@,$ac_srcdir,;t t
22600 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22601 s,@top_srcdir@,$ac_top_srcdir,;t t
22602 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22603 s,@builddir@,$ac_builddir,;t t
22604 s,@abs_builddir@,$ac_abs_builddir,;t t
22605 s,@top_builddir@,$ac_top_builddir,;t t
22606 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22607 s,@INSTALL@,$ac_INSTALL,;t t
22608 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22609 rm -f $tmp/stdin
22610 if test x"$ac_file" != x-; then
22611 mv $tmp/out $ac_file
22612 else
22613 cat $tmp/out
22614 rm -f $tmp/out
22615 fi
22616
22617 done
22618 _ACEOF
22619 cat >>$CONFIG_STATUS <<\_ACEOF
22620
22621 #
22622 # CONFIG_HEADER section.
22623 #
22624
22625 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22626 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22627 #
22628 # ac_d sets the value in "#define NAME VALUE" lines.
22629 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22630 ac_dB='[ ].*$,\1#\2'
22631 ac_dC=' '
22632 ac_dD=',;t'
22633 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22634 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22635 ac_uB='$,\1#\2define\3'
22636 ac_uC=' '
22637 ac_uD=',;t'
22638
22639 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22640 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22641 case $ac_file in
22642 - | *:- | *:-:* ) # input from stdin
22643 cat >$tmp/stdin
22644 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22646 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22647 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22648 * ) ac_file_in=$ac_file.in ;;
22649 esac
22650
22651 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22652 echo "$as_me: creating $ac_file" >&6;}
22653
22654 # First look for the input files in the build tree, otherwise in the
22655 # src tree.
22656 ac_file_inputs=`IFS=:
22657 for f in $ac_file_in; do
22658 case $f in
22659 -) echo $tmp/stdin ;;
22660 [\\/$]*)
22661 # Absolute (can't be DOS-style, as IFS=:)
22662 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22663 echo "$as_me: error: cannot find input file: $f" >&2;}
22664 { (exit 1); exit 1; }; }
22665 # Do quote $f, to prevent DOS paths from being IFS'd.
22666 echo "$f";;
22667 *) # Relative
22668 if test -f "$f"; then
22669 # Build tree
22670 echo "$f"
22671 elif test -f "$srcdir/$f"; then
22672 # Source tree
22673 echo "$srcdir/$f"
22674 else
22675 # /dev/null tree
22676 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22677 echo "$as_me: error: cannot find input file: $f" >&2;}
22678 { (exit 1); exit 1; }; }
22679 fi;;
22680 esac
22681 done` || { (exit 1); exit 1; }
22682 # Remove the trailing spaces.
22683 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22684
22685 _ACEOF
22686
22687 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22688 # `conftest.undefs', that substitutes the proper values into
22689 # config.h.in to produce config.h. The first handles `#define'
22690 # templates, and the second `#undef' templates.
22691 # And first: Protect against being on the right side of a sed subst in
22692 # config.status. Protect against being in an unquoted here document
22693 # in config.status.
22694 rm -f conftest.defines conftest.undefs
22695 # Using a here document instead of a string reduces the quoting nightmare.
22696 # Putting comments in sed scripts is not portable.
22697 #
22698 # `end' is used to avoid that the second main sed command (meant for
22699 # 0-ary CPP macros) applies to n-ary macro definitions.
22700 # See the Autoconf documentation for `clear'.
22701 cat >confdef2sed.sed <<\_ACEOF
22702 s/[\\&,]/\\&/g
22703 s,[\\$`],\\&,g
22704 t clear
22705 : clear
22706 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22707 t end
22708 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22709 : end
22710 _ACEOF
22711 # If some macros were called several times there might be several times
22712 # the same #defines, which is useless. Nevertheless, we may not want to
22713 # sort them, since we want the *last* AC-DEFINE to be honored.
22714 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22715 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22716 rm -f confdef2sed.sed
22717
22718 # This sed command replaces #undef with comments. This is necessary, for
22719 # example, in the case of _POSIX_SOURCE, which is predefined and required
22720 # on some systems where configure will not decide to define it.
22721 cat >>conftest.undefs <<\_ACEOF
22722 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22723 _ACEOF
22724
22725 # Break up conftest.defines because some shells have a limit on the size
22726 # of here documents, and old seds have small limits too (100 cmds).
22727 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22728 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22729 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22730 echo ' :' >>$CONFIG_STATUS
22731 rm -f conftest.tail
22732 while grep . conftest.defines >/dev/null
22733 do
22734 # Write a limited-size here document to $tmp/defines.sed.
22735 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22736 # Speed up: don't consider the non `#define' lines.
22737 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22738 # Work around the forget-to-reset-the-flag bug.
22739 echo 't clr' >>$CONFIG_STATUS
22740 echo ': clr' >>$CONFIG_STATUS
22741 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22742 echo 'CEOF
22743 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22744 rm -f $tmp/in
22745 mv $tmp/out $tmp/in
22746 ' >>$CONFIG_STATUS
22747 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22748 rm -f conftest.defines
22749 mv conftest.tail conftest.defines
22750 done
22751 rm -f conftest.defines
22752 echo ' fi # grep' >>$CONFIG_STATUS
22753 echo >>$CONFIG_STATUS
22754
22755 # Break up conftest.undefs because some shells have a limit on the size
22756 # of here documents, and old seds have small limits too (100 cmds).
22757 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22758 rm -f conftest.tail
22759 while grep . conftest.undefs >/dev/null
22760 do
22761 # Write a limited-size here document to $tmp/undefs.sed.
22762 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22763 # Speed up: don't consider the non `#undef'
22764 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22765 # Work around the forget-to-reset-the-flag bug.
22766 echo 't clr' >>$CONFIG_STATUS
22767 echo ': clr' >>$CONFIG_STATUS
22768 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22769 echo 'CEOF
22770 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22771 rm -f $tmp/in
22772 mv $tmp/out $tmp/in
22773 ' >>$CONFIG_STATUS
22774 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22775 rm -f conftest.undefs
22776 mv conftest.tail conftest.undefs
22777 done
22778 rm -f conftest.undefs
22779
22780 cat >>$CONFIG_STATUS <<\_ACEOF
22781 # Let's still pretend it is `configure' which instantiates (i.e., don't
22782 # use $as_me), people would be surprised to read:
22783 # /* config.h. Generated by config.status. */
22784 if test x"$ac_file" = x-; then
22785 echo "/* Generated by configure. */" >$tmp/config.h
22786 else
22787 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22788 fi
22789 cat $tmp/in >>$tmp/config.h
22790 rm -f $tmp/in
22791 if test x"$ac_file" != x-; then
22792 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22793 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22794 echo "$as_me: $ac_file is unchanged" >&6;}
22795 else
22796 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22797 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22798 X"$ac_file" : 'X\(//\)[^/]' \| \
22799 X"$ac_file" : 'X\(//\)$' \| \
22800 X"$ac_file" : 'X\(/\)' \| \
22801 . : '\(.\)' 2>/dev/null ||
22802 echo X"$ac_file" |
22803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22805 /^X\(\/\/\)$/{ s//\1/; q; }
22806 /^X\(\/\).*/{ s//\1/; q; }
22807 s/.*/./; q'`
22808 { if $as_mkdir_p; then
22809 mkdir -p "$ac_dir"
22810 else
22811 as_dir="$ac_dir"
22812 as_dirs=
22813 while test ! -d "$as_dir"; do
22814 as_dirs="$as_dir $as_dirs"
22815 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22817 X"$as_dir" : 'X\(//\)[^/]' \| \
22818 X"$as_dir" : 'X\(//\)$' \| \
22819 X"$as_dir" : 'X\(/\)' \| \
22820 . : '\(.\)' 2>/dev/null ||
22821 echo X"$as_dir" |
22822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22824 /^X\(\/\/\)$/{ s//\1/; q; }
22825 /^X\(\/\).*/{ s//\1/; q; }
22826 s/.*/./; q'`
22827 done
22828 test ! -n "$as_dirs" || mkdir $as_dirs
22829 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22830 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22831 { (exit 1); exit 1; }; }; }
22832
22833 rm -f $ac_file
22834 mv $tmp/config.h $ac_file
22835 fi
22836 else
22837 cat $tmp/config.h
22838 rm -f $tmp/config.h
22839 fi
22840 # Compute $ac_file's index in $config_headers.
22841 _am_stamp_count=1
22842 for _am_header in $config_headers :; do
22843 case $_am_header in
22844 $ac_file | $ac_file:* )
22845 break ;;
22846 * )
22847 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22848 esac
22849 done
22850 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22851 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22852 X$ac_file : 'X\(//\)[^/]' \| \
22853 X$ac_file : 'X\(//\)$' \| \
22854 X$ac_file : 'X\(/\)' \| \
22855 . : '\(.\)' 2>/dev/null ||
22856 echo X$ac_file |
22857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22859 /^X\(\/\/\)$/{ s//\1/; q; }
22860 /^X\(\/\).*/{ s//\1/; q; }
22861 s/.*/./; q'`/stamp-h$_am_stamp_count
22862 done
22863 _ACEOF
22864 cat >>$CONFIG_STATUS <<\_ACEOF
22865
22866 #
22867 # CONFIG_COMMANDS section.
22868 #
22869 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22870 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22871 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22872 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22873 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22874 X"$ac_dest" : 'X\(//\)[^/]' \| \
22875 X"$ac_dest" : 'X\(//\)$' \| \
22876 X"$ac_dest" : 'X\(/\)' \| \
22877 . : '\(.\)' 2>/dev/null ||
22878 echo X"$ac_dest" |
22879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22881 /^X\(\/\/\)$/{ s//\1/; q; }
22882 /^X\(\/\).*/{ s//\1/; q; }
22883 s/.*/./; q'`
22884 { if $as_mkdir_p; then
22885 mkdir -p "$ac_dir"
22886 else
22887 as_dir="$ac_dir"
22888 as_dirs=
22889 while test ! -d "$as_dir"; do
22890 as_dirs="$as_dir $as_dirs"
22891 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22893 X"$as_dir" : 'X\(//\)[^/]' \| \
22894 X"$as_dir" : 'X\(//\)$' \| \
22895 X"$as_dir" : 'X\(/\)' \| \
22896 . : '\(.\)' 2>/dev/null ||
22897 echo X"$as_dir" |
22898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22899 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22900 /^X\(\/\/\)$/{ s//\1/; q; }
22901 /^X\(\/\).*/{ s//\1/; q; }
22902 s/.*/./; q'`
22903 done
22904 test ! -n "$as_dirs" || mkdir $as_dirs
22905 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22907 { (exit 1); exit 1; }; }; }
22908
22909 ac_builddir=.
22910
22911 if test "$ac_dir" != .; then
22912 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22913 # A "../" for each directory in $ac_dir_suffix.
22914 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22915 else
22916 ac_dir_suffix= ac_top_builddir=
22917 fi
22918
22919 case $srcdir in
22920 .) # No --srcdir option. We are building in place.
22921 ac_srcdir=.
22922 if test -z "$ac_top_builddir"; then
22923 ac_top_srcdir=.
22924 else
22925 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22926 fi ;;
22927 [\\/]* | ?:[\\/]* ) # Absolute path.
22928 ac_srcdir=$srcdir$ac_dir_suffix;
22929 ac_top_srcdir=$srcdir ;;
22930 *) # Relative path.
22931 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22932 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22933 esac
22934
22935 # Do not use `cd foo && pwd` to compute absolute paths, because
22936 # the directories may not exist.
22937 case `pwd` in
22938 .) ac_abs_builddir="$ac_dir";;
22939 *)
22940 case "$ac_dir" in
22941 .) ac_abs_builddir=`pwd`;;
22942 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22943 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22944 esac;;
22945 esac
22946 case $ac_abs_builddir in
22947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22948 *)
22949 case ${ac_top_builddir}. in
22950 .) ac_abs_top_builddir=$ac_abs_builddir;;
22951 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22952 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22953 esac;;
22954 esac
22955 case $ac_abs_builddir in
22956 .) ac_abs_srcdir=$ac_srcdir;;
22957 *)
22958 case $ac_srcdir in
22959 .) ac_abs_srcdir=$ac_abs_builddir;;
22960 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22961 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22962 esac;;
22963 esac
22964 case $ac_abs_builddir in
22965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22966 *)
22967 case $ac_top_srcdir in
22968 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22969 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22970 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22971 esac;;
22972 esac
22973
22974
22975 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22976 echo "$as_me: executing $ac_dest commands" >&6;}
22977 case $ac_dest in
22978 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22979 # Strip MF so we end up with the name of the file.
22980 mf=`echo "$mf" | sed -e 's/:.*$//'`
22981 # Check whether this is an Automake generated Makefile or not.
22982 # We used to match only the files named `Makefile.in', but
22983 # some people rename them; so instead we look at the file content.
22984 # Grep'ing the first line is not enough: some people post-process
22985 # each Makefile.in and add a new line on top of each file to say so.
22986 # So let's grep whole file.
22987 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22988 dirpart=`(dirname "$mf") 2>/dev/null ||
22989 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22990 X"$mf" : 'X\(//\)[^/]' \| \
22991 X"$mf" : 'X\(//\)$' \| \
22992 X"$mf" : 'X\(/\)' \| \
22993 . : '\(.\)' 2>/dev/null ||
22994 echo X"$mf" |
22995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22997 /^X\(\/\/\)$/{ s//\1/; q; }
22998 /^X\(\/\).*/{ s//\1/; q; }
22999 s/.*/./; q'`
23000 else
23001 continue
23002 fi
23003 # Extract the definition of DEPDIR, am__include, and am__quote
23004 # from the Makefile without running `make'.
23005 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23006 test -z "$DEPDIR" && continue
23007 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23008 test -z "am__include" && continue
23009 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23010 # When using ansi2knr, U may be empty or an underscore; expand it
23011 U=`sed -n 's/^U = //p' < "$mf"`
23012 # Find all dependency output files, they are included files with
23013 # $(DEPDIR) in their names. We invoke sed twice because it is the
23014 # simplest approach to changing $(DEPDIR) to its actual value in the
23015 # expansion.
23016 for file in `sed -n "
23017 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23018 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23019 # Make sure the directory exists.
23020 test -f "$dirpart/$file" && continue
23021 fdir=`(dirname "$file") 2>/dev/null ||
23022 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23023 X"$file" : 'X\(//\)[^/]' \| \
23024 X"$file" : 'X\(//\)$' \| \
23025 X"$file" : 'X\(/\)' \| \
23026 . : '\(.\)' 2>/dev/null ||
23027 echo X"$file" |
23028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23030 /^X\(\/\/\)$/{ s//\1/; q; }
23031 /^X\(\/\).*/{ s//\1/; q; }
23032 s/.*/./; q'`
23033 { if $as_mkdir_p; then
23034 mkdir -p $dirpart/$fdir
23035 else
23036 as_dir=$dirpart/$fdir
23037 as_dirs=
23038 while test ! -d "$as_dir"; do
23039 as_dirs="$as_dir $as_dirs"
23040 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23042 X"$as_dir" : 'X\(//\)[^/]' \| \
23043 X"$as_dir" : 'X\(//\)$' \| \
23044 X"$as_dir" : 'X\(/\)' \| \
23045 . : '\(.\)' 2>/dev/null ||
23046 echo X"$as_dir" |
23047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23049 /^X\(\/\/\)$/{ s//\1/; q; }
23050 /^X\(\/\).*/{ s//\1/; q; }
23051 s/.*/./; q'`
23052 done
23053 test ! -n "$as_dirs" || mkdir $as_dirs
23054 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23055 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23056 { (exit 1); exit 1; }; }; }
23057
23058 # echo "creating $dirpart/$file"
23059 echo '# dummy' > "$dirpart/$file"
23060 done
23061 done
23062 ;;
23063 esac
23064 done
23065 _ACEOF
23066
23067 cat >>$CONFIG_STATUS <<\_ACEOF
23068
23069 { (exit 0); exit 0; }
23070 _ACEOF
23071 chmod +x $CONFIG_STATUS
23072 ac_clean_files=$ac_clean_files_save
23073
23074
23075 # configure is writing to config.log, and then calls config.status.
23076 # config.status does its own redirection, appending to config.log.
23077 # Unfortunately, on DOS this fails, as config.log is still kept open
23078 # by configure, so config.status won't be able to write to it; its
23079 # output is simply discarded. So we exec the FD to /dev/null,
23080 # effectively closing config.log, so it can be properly (re)opened and
23081 # appended to by config.status. When coming back to configure, we
23082 # need to make the FD available again.
23083 if test "$no_create" != yes; then
23084 ac_cs_success=:
23085 ac_config_status_args=
23086 test "$silent" = yes &&
23087 ac_config_status_args="$ac_config_status_args --quiet"
23088 exec 5>/dev/null
23089 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23090 exec 5>>config.log
23091 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23092 # would make configure fail if this is the last instruction.
23093 $ac_cs_success || { (exit 1); exit 1; }
23094 fi
23095
23096
23097 echo "$as_me:$LINENO: result: " >&5
23098 echo "${ECHO_T}" >&6
23099 echo "$as_me:$LINENO: result: $PACKAGE version $VERSION configured successfully." >&5
23100 echo "${ECHO_T} $PACKAGE version $VERSION configured successfully." >&6
23101 echo "$as_me:$LINENO: result: " >&5
23102 echo "${ECHO_T}" >&6
23103 echo "$as_me:$LINENO: result: Using '$prefix' for installation." >&5
23104 echo "${ECHO_T}Using '$prefix' for installation." >&6
23105 echo "$as_me:$LINENO: result: Using '$CXX' for C++ compiler." >&5
23106 echo "${ECHO_T}Using '$CXX' for C++ compiler." >&6
23107 echo "$as_me:$LINENO: result: Building with '$CPPFLAGS $CXXFLAGS' for C++ compiler flags." >&5
23108 echo "${ECHO_T}Building with '$CPPFLAGS $CXXFLAGS' for C++ compiler flags." >&6
23109 echo "$as_me:$LINENO: result: Building with '$LDFLAGS $LIBS' libraries." >&5
23110 echo "${ECHO_T}Building with '$LDFLAGS $LIBS' libraries." >&6
23111 echo "$as_me:$LINENO: result: " >&5
23112 echo "${ECHO_T}" >&6