configure revision 1.1.1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libxkbui 1.0.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
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='libxkbui'
425 PACKAGE_TARNAME='libxkbui'
426 PACKAGE_VERSION='1.0.2'
427 PACKAGE_STRING='libxkbui 1.0.2'
428 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 # include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 # include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XKBUI_CFLAGS XKBUI_LIBS LIBOBJS LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
514 ac_prev=
515 continue
516 fi
517
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520 # Accept the important Cygnus configure options, so we can diagnose typos.
521
522 case $ac_option in
523
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
525 ac_prev=bindir ;;
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527 bindir=$ac_optarg ;;
528
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
533
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
540
541 --config-cache | -C)
542 cache_file=config.cache ;;
543
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545 ac_prev=datadir ;;
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547 | --da=*)
548 datadir=$ac_optarg ;;
549
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
558
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 case $ac_option in
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568 *) ac_optarg=yes ;;
569 esac
570 eval "enable_$ac_feature='$ac_optarg'" ;;
571
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
580
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
583 with_gas=yes ;;
584
585 -help | --help | --hel | --he | -h)
586 ac_init_help=long ;;
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
591
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
612 libdir=$ac_optarg ;;
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633 mandir=$ac_optarg ;;
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659 prefix=$ac_optarg ;;
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
700 sbindir=$ac_optarg ;;
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
711 sharedstatedir=$ac_optarg ;;
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
716 site=$ac_optarg ;;
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721 srcdir=$ac_optarg ;;
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
738 -version | --version | --versio | --versi | --vers | -V)
739 ac_init_version=: ;;
740
741 -with-* | --with-*)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
748 case $ac_option in
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750 *) ac_optarg=yes ;;
751 esac
752 eval "with_$ac_package='$ac_optarg'" ;;
753
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
762
763 --x)
764 # Obsolete; use --with-x.
765 with_x=yes ;;
766
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
773
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
780
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
784 ;;
785
786 *=*)
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
794 export $ac_envvar ;;
795
796 *)
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 ;;
803
804 esac
805 done
806
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816 eval ac_val=$`echo $ac_var`
817 case $ac_val in
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
821 esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
827 do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
850 cross_compiling=yes
851 fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
875 s/.*/./; q'`
876 srcdir=$ac_confdir
877 if test ! -r $srcdir/$ac_unique_file; then
878 srcdir=..
879 fi
880 else
881 ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
887 else
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
890 fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
949 ac_env_PKG_CONFIG_value=$PKG_CONFIG
950 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952 ac_env_XKBUI_CFLAGS_set=${XKBUI_CFLAGS+set}
953 ac_env_XKBUI_CFLAGS_value=$XKBUI_CFLAGS
954 ac_cv_env_XKBUI_CFLAGS_set=${XKBUI_CFLAGS+set}
955 ac_cv_env_XKBUI_CFLAGS_value=$XKBUI_CFLAGS
956 ac_env_XKBUI_LIBS_set=${XKBUI_LIBS+set}
957 ac_env_XKBUI_LIBS_value=$XKBUI_LIBS
958 ac_cv_env_XKBUI_LIBS_set=${XKBUI_LIBS+set}
959 ac_cv_env_XKBUI_LIBS_value=$XKBUI_LIBS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
968 \`configure' configures libxkbui 1.0.2 to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE. See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990 cat <<_ACEOF
991 Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
993 [$ac_default_prefix]
994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
995 [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017 _ACEOF
1018
1019 cat <<\_ACEOF
1020
1021 Program names:
1022 --program-prefix=PREFIX prepend PREFIX to installed program names
1023 --program-suffix=SUFFIX append SUFFIX to installed program names
1024 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1025
1026 System types:
1027 --build=BUILD configure for building on BUILD [guessed]
1028 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1029 _ACEOF
1030 fi
1031
1032 if test -n "$ac_init_help"; then
1033 case $ac_init_help in
1034 short | recursive ) echo "Configuration of libxkbui 1.0.2:";;
1035 esac
1036 cat <<\_ACEOF
1037
1038 Optional Features:
1039 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1040 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1041 --enable-maintainer-mode enable make rules and dependencies not useful
1042 (and sometimes confusing) to the casual installer
1043 --disable-dependency-tracking speeds up one-time build
1044 --enable-dependency-tracking do not reject slow dependency extractors
1045 --enable-shared[=PKGS]
1046 build shared libraries [default=yes]
1047 --enable-static[=PKGS]
1048 build static libraries [default=yes]
1049 --enable-fast-install[=PKGS]
1050 optimize for fast installation [default=yes]
1051 --disable-libtool-lock avoid locking (might break parallel builds)
1052
1053 Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1056 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057 --with-pic try to use only PIC/non-PIC objects [default=use
1058 both]
1059 --with-tags[=TAGS]
1060 include additional configurations [automatic]
1061 --with-release-version=STRING
1062 Use release version string in package name
1063
1064 Some influential environment variables:
1065 CC C compiler command
1066 CFLAGS C compiler flags
1067 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1068 nonstandard directory <lib dir>
1069 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1070 headers in a nonstandard directory <include dir>
1071 CPP C preprocessor
1072 CXX C++ compiler command
1073 CXXFLAGS C++ compiler flags
1074 CXXCPP C++ preprocessor
1075 F77 Fortran 77 compiler command
1076 FFLAGS Fortran 77 compiler flags
1077 PKG_CONFIG path to pkg-config utility
1078 XKBUI_CFLAGS
1079 C compiler flags for XKBUI, overriding pkg-config
1080 XKBUI_LIBS linker flags for XKBUI, overriding pkg-config
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1091 ac_popdir=`pwd`
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1094 ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101 ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105 .) # No --srcdir option. We are building in place.
1106 ac_srcdir=.
1107 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=.
1109 else
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111 fi ;;
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1115 *) # Relative path.
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1122 case `pwd` in
1123 .) ac_abs_builddir="$ac_dir";;
1124 *)
1125 case "$ac_dir" in
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *)
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1142 *)
1143 case $ac_srcdir in
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *)
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156 esac;;
1157 esac
1158
1159 cd $ac_dir
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1162 echo
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1165 echo
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
1168 test -f $ac_srcdir/configure.in; then
1169 echo
1170 $ac_configure --help
1171 else
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173 fi
1174 cd $ac_popdir
1175 done
1176 fi
1177
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1180 cat <<\_ACEOF
1181 libxkbui configure 1.0.2
1182 generated by GNU Autoconf 2.59
1183
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1187 _ACEOF
1188 exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by libxkbui $as_me 1.0.2, which was
1196 generated by GNU Autoconf 2.59. Invocation command line was
1197
1198 $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1215
1216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229 IFS=$as_save_IFS
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258 for ac_arg
1259 do
1260 case $ac_arg in
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 continue ;;
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 esac
1268 case $ac_pass in
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270 2)
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
1273 ac_must_keep_next=false # Got value, back to normal.
1274 else
1275 case $ac_arg in
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 esac
1283 ;;
1284 -* ) ac_must_keep_next=true ;;
1285 esac
1286 fi
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1289 ac_sep=" "
1290 ;;
1291 esac
1292 done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log. We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1304 {
1305 echo
1306
1307 cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312 echo
1313 # The following way of writing the cache mishandles newlines in values,
1314 {
1315 (set) 2>&1 |
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 *ac_space=\ *)
1318 sed -n \
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321 ;;
1322 *)
1323 sed -n \
1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325 ;;
1326 esac;
1327 }
1328 echo
1329
1330 cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335 echo
1336 for ac_var in $ac_subst_vars
1337 do
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1340 done | sort
1341 echo
1342
1343 if test -n "$ac_subst_files"; then
1344 cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349 echo
1350 for ac_var in $ac_subst_files
1351 do
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1354 done | sort
1355 echo
1356 fi
1357
1358 if test -s confdefs.h; then
1359 cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364 echo
1365 sed "/^$/d" confdefs.h | sort
1366 echo
1367 fi
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1371 } >&5
1372 rm -f core *.core &&
1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 exit $exit_status
1375 ' 0
1376 for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418 else
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1427 . "$ac_site_file"
1428 fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437 case $cache_file in
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1440 esac
1441 fi
1442 else
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445 >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1458 set,)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,set)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,);;
1467 *)
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1472 echo "$as_me: former value: $ac_old_val" >&2;}
1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1474 echo "$as_me: current value: $ac_new_val" >&2;}
1475 ac_cache_corrupted=:
1476 fi;;
1477 esac
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1480 case $ac_new_val in
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1484 esac
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488 esac
1489 fi
1490 done
1491 if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531 am__api_version="1.9"
1532 ac_aux_dir=
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 break
1538 elif test -f $ac_dir/install.sh; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 break
1542 elif test -f $ac_dir/shtool; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 break
1546 fi
1547 done
1548 if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
1552 fi
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1556
1557 # Find a good install program. We prefer a C program (faster),
1558 # so one script is as good as another. But avoid the broken or
1559 # incompatible versions:
1560 # SysV /etc/install, /usr/sbin/install
1561 # SunOS /usr/etc/install
1562 # IRIX /sbin/install
1563 # AIX /bin/install
1564 # AmigaOS /C/install, which installs bootblocks on floppy discs
1565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1568 # OS/2's system install, which has a completely different semantic
1569 # ./install, which can be erroneously created by make from ./install.sh.
1570 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1571 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1572 if test -z "$INSTALL"; then
1573 if test "${ac_cv_path_install+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 for as_dir in $PATH
1578 do
1579 IFS=$as_save_IFS
1580 test -z "$as_dir" && as_dir=.
1581 # Account for people who put trailing slashes in PATH elements.
1582 case $as_dir/ in
1583 ./ | .// | /cC/* | \
1584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1585 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1586 /usr/ucb/* ) ;;
1587 *)
1588 # OSF1 and SCO ODT 3.0 have their own names for install.
1589 # Don't use installbsd from OSF since it installs stuff as root
1590 # by default.
1591 for ac_prog in ginstall scoinst install; do
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1594 if test $ac_prog = install &&
1595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1596 # AIX install. It has an incompatible calling convention.
1597 :
1598 elif test $ac_prog = install &&
1599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1600 # program-specific install script used by HP pwplus--don't use.
1601 :
1602 else
1603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1604 break 3
1605 fi
1606 fi
1607 done
1608 done
1609 ;;
1610 esac
1611 done
1612
1613
1614 fi
1615 if test "${ac_cv_path_install+set}" = set; then
1616 INSTALL=$ac_cv_path_install
1617 else
1618 # As a last resort, use the slow shell script. We don't cache a
1619 # path for INSTALL within a source directory, because that will
1620 # break other packages using the cache if that directory is
1621 # removed, or if the path is relative.
1622 INSTALL=$ac_install_sh
1623 fi
1624 fi
1625 echo "$as_me:$LINENO: result: $INSTALL" >&5
1626 echo "${ECHO_T}$INSTALL" >&6
1627
1628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1629 # It thinks the first close brace ends the variable substitution.
1630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1631
1632 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1633
1634 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1635
1636 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1637 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1638 # Just in case
1639 sleep 1
1640 echo timestamp > conftest.file
1641 # Do `set' in a subshell so we don't clobber the current shell's
1642 # arguments. Must try -L first in case configure is actually a
1643 # symlink; some systems play weird games with the mod time of symlinks
1644 # (eg FreeBSD returns the mod time of the symlink's containing
1645 # directory).
1646 if (
1647 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1648 if test "$*" = "X"; then
1649 # -L didn't work.
1650 set X `ls -t $srcdir/configure conftest.file`
1651 fi
1652 rm -f conftest.file
1653 if test "$*" != "X $srcdir/configure conftest.file" \
1654 && test "$*" != "X conftest.file $srcdir/configure"; then
1655
1656 # If neither matched, then we have a broken ls. This can happen
1657 # if, for instance, CONFIG_SHELL is bash and it inherits a
1658 # broken ls alias from the environment. This has actually
1659 # happened. Such a system could not be considered "sane".
1660 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1661 alias in your environment" >&5
1662 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1663 alias in your environment" >&2;}
1664 { (exit 1); exit 1; }; }
1665 fi
1666
1667 test "$2" = conftest.file
1668 )
1669 then
1670 # Ok.
1671 :
1672 else
1673 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1674 Check your system clock" >&5
1675 echo "$as_me: error: newly created file is older than distributed files!
1676 Check your system clock" >&2;}
1677 { (exit 1); exit 1; }; }
1678 fi
1679 echo "$as_me:$LINENO: result: yes" >&5
1680 echo "${ECHO_T}yes" >&6
1681 test "$program_prefix" != NONE &&
1682 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1683 # Use a double $ so make ignores it.
1684 test "$program_suffix" != NONE &&
1685 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1686 # Double any \ or $. echo might interpret backslashes.
1687 # By default was `s,x,x', remove it if useless.
1688 cat <<\_ACEOF >conftest.sed
1689 s/[\\$]/&&/g;s/;s,x,x,$//
1690 _ACEOF
1691 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1692 rm conftest.sed
1693
1694 # expand $ac_aux_dir to an absolute path
1695 am_aux_dir=`cd $ac_aux_dir && pwd`
1696
1697 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1698 # Use eval to expand $SHELL
1699 if eval "$MISSING --run true"; then
1700 am_missing_run="$MISSING --run "
1701 else
1702 am_missing_run=
1703 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1704 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1705 fi
1706
1707 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1708 # We used to keeping the `.' as first argument, in order to
1709 # allow $(mkdir_p) to be used without argument. As in
1710 # $(mkdir_p) $(somedir)
1711 # where $(somedir) is conditionally defined. However this is wrong
1712 # for two reasons:
1713 # 1. if the package is installed by a user who cannot write `.'
1714 # make install will fail,
1715 # 2. the above comment should most certainly read
1716 # $(mkdir_p) $(DESTDIR)$(somedir)
1717 # so it does not work when $(somedir) is undefined and
1718 # $(DESTDIR) is not.
1719 # To support the latter case, we have to write
1720 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1721 # so the `.' trick is pointless.
1722 mkdir_p='mkdir -p --'
1723 else
1724 # On NextStep and OpenStep, the `mkdir' command does not
1725 # recognize any option. It will interpret all options as
1726 # directories to create, and then abort because `.' already
1727 # exists.
1728 for d in ./-p ./--version;
1729 do
1730 test -d $d && rmdir $d
1731 done
1732 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1733 if test -f "$ac_aux_dir/mkinstalldirs"; then
1734 mkdir_p='$(mkinstalldirs)'
1735 else
1736 mkdir_p='$(install_sh) -d'
1737 fi
1738 fi
1739
1740 for ac_prog in gawk mawk nawk awk
1741 do
1742 # Extract the first word of "$ac_prog", so it can be a program name with args.
1743 set dummy $ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_AWK+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749 if test -n "$AWK"; then
1750 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_AWK="$ac_prog"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761 break 2
1762 fi
1763 done
1764 done
1765
1766 fi
1767 fi
1768 AWK=$ac_cv_prog_AWK
1769 if test -n "$AWK"; then
1770 echo "$as_me:$LINENO: result: $AWK" >&5
1771 echo "${ECHO_T}$AWK" >&6
1772 else
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1776
1777 test -n "$AWK" && break
1778 done
1779
1780 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1781 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1782 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1783 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786 cat >conftest.make <<\_ACEOF
1787 all:
1788 @echo 'ac_maketemp="$(MAKE)"'
1789 _ACEOF
1790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1791 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1792 if test -n "$ac_maketemp"; then
1793 eval ac_cv_prog_make_${ac_make}_set=yes
1794 else
1795 eval ac_cv_prog_make_${ac_make}_set=no
1796 fi
1797 rm -f conftest.make
1798 fi
1799 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1800 echo "$as_me:$LINENO: result: yes" >&5
1801 echo "${ECHO_T}yes" >&6
1802 SET_MAKE=
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1806 SET_MAKE="MAKE=${MAKE-make}"
1807 fi
1808
1809 rm -rf .tst 2>/dev/null
1810 mkdir .tst 2>/dev/null
1811 if test -d .tst; then
1812 am__leading_dot=.
1813 else
1814 am__leading_dot=_
1815 fi
1816 rmdir .tst 2>/dev/null
1817
1818 # test to see if srcdir already configured
1819 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1820 test -f $srcdir/config.status; then
1821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1822 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1823 { (exit 1); exit 1; }; }
1824 fi
1825
1826 # test whether we have cygpath
1827 if test -z "$CYGPATH_W"; then
1828 if (cygpath --version) >/dev/null 2>/dev/null; then
1829 CYGPATH_W='cygpath -w'
1830 else
1831 CYGPATH_W=echo
1832 fi
1833 fi
1834
1835
1836 # Define the identity of the package.
1837 PACKAGE='libxkbui'
1838 VERSION='1.0.2'
1839
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE "$PACKAGE"
1843 _ACEOF
1844
1845
1846 cat >>confdefs.h <<_ACEOF
1847 #define VERSION "$VERSION"
1848 _ACEOF
1849
1850 # Some tools Automake needs.
1851
1852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1853
1854
1855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1856
1857
1858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1859
1860
1861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1862
1863
1864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1865
1866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1867
1868 # Installed binaries are usually stripped using `strip' when the user
1869 # run `make install-strip'. However `strip' might not be the right
1870 # tool to use in cross-compilation environments, therefore Automake
1871 # will honor the `STRIP' environment variable to overrule this program.
1872 if test "$cross_compiling" != no; then
1873 if test -n "$ac_tool_prefix"; then
1874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}strip; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_STRIP+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 if test -n "$STRIP"; then
1882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 STRIP=$ac_cv_prog_STRIP
1901 if test -n "$STRIP"; then
1902 echo "$as_me:$LINENO: result: $STRIP" >&5
1903 echo "${ECHO_T}$STRIP" >&6
1904 else
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909 fi
1910 if test -z "$ac_cv_prog_STRIP"; then
1911 ac_ct_STRIP=$STRIP
1912 # Extract the first word of "strip", so it can be a program name with args.
1913 set dummy strip; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 if test -n "$ac_ct_STRIP"; then
1920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_ac_ct_STRIP="strip"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 break 2
1932 fi
1933 done
1934 done
1935
1936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1937 fi
1938 fi
1939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1940 if test -n "$ac_ct_STRIP"; then
1941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1942 echo "${ECHO_T}$ac_ct_STRIP" >&6
1943 else
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948 STRIP=$ac_ct_STRIP
1949 else
1950 STRIP="$ac_cv_prog_STRIP"
1951 fi
1952
1953 fi
1954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1955
1956 # We need awk for the "check" target. The system "awk" is bad on
1957 # some platforms.
1958 # Always define AMTAR for backward compatibility.
1959
1960 AMTAR=${AMTAR-"${am_missing_run}tar"}
1961
1962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1963
1964
1965
1966
1967
1968 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1969 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1970 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1971 if test "${enable_maintainer_mode+set}" = set; then
1972 enableval="$enable_maintainer_mode"
1973 USE_MAINTAINER_MODE=$enableval
1974 else
1975 USE_MAINTAINER_MODE=no
1976 fi;
1977 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1978 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1979
1980
1981 if test $USE_MAINTAINER_MODE = yes; then
1982 MAINTAINER_MODE_TRUE=
1983 MAINTAINER_MODE_FALSE='#'
1984 else
1985 MAINTAINER_MODE_TRUE='#'
1986 MAINTAINER_MODE_FALSE=
1987 fi
1988
1989 MAINT=$MAINTAINER_MODE_TRUE
1990
1991
1992
1993 ac_config_headers="$ac_config_headers config.h"
1994
1995
1996 # Check for progs
1997 ac_ext=c
1998 ac_cpp='$CPP $CPPFLAGS'
1999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2002 if test -n "$ac_tool_prefix"; then
2003 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2004 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_CC+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 if test -n "$CC"; then
2011 ac_cv_prog_CC="$CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016 IFS=$as_save_IFS
2017 test -z "$as_dir" && as_dir=.
2018 for ac_exec_ext in '' $ac_executable_extensions; do
2019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 break 2
2023 fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031 echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2033 else
2034 echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038 fi
2039 if test -z "$ac_cv_prog_CC"; then
2040 ac_ct_CC=$CC
2041 # Extract the first word of "gcc", so it can be a program name with args.
2042 set dummy gcc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 if test -n "$ac_ct_CC"; then
2049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2053 do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_ac_ct_CC="gcc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062 done
2063 done
2064
2065 fi
2066 fi
2067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068 if test -n "$ac_ct_CC"; then
2069 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070 echo "${ECHO_T}$ac_ct_CC" >&6
2071 else
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2074 fi
2075
2076 CC=$ac_ct_CC
2077 else
2078 CC="$ac_cv_prog_CC"
2079 fi
2080
2081 if test -z "$CC"; then
2082 if test -n "$ac_tool_prefix"; then
2083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2084 set dummy ${ac_tool_prefix}cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090 if test -n "$CC"; then
2091 ac_cv_prog_CC="$CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100 ac_cv_prog_CC="${ac_tool_prefix}cc"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 break 2
2103 fi
2104 done
2105 done
2106
2107 fi
2108 fi
2109 CC=$ac_cv_prog_CC
2110 if test -n "$CC"; then
2111 echo "$as_me:$LINENO: result: $CC" >&5
2112 echo "${ECHO_T}$CC" >&6
2113 else
2114 echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2116 fi
2117
2118 fi
2119 if test -z "$ac_cv_prog_CC"; then
2120 ac_ct_CC=$CC
2121 # Extract the first word of "cc", so it can be a program name with args.
2122 set dummy cc; ac_word=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128 if test -n "$ac_ct_CC"; then
2129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2130 else
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 for ac_exec_ext in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_ac_ct_CC="cc"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140 break 2
2141 fi
2142 done
2143 done
2144
2145 fi
2146 fi
2147 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 echo "${ECHO_T}$ac_ct_CC" >&6
2151 else
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2154 fi
2155
2156 CC=$ac_ct_CC
2157 else
2158 CC="$ac_cv_prog_CC"
2159 fi
2160
2161 fi
2162 if test -z "$CC"; then
2163 # Extract the first word of "cc", so it can be a program name with args.
2164 set dummy cc; ac_word=$2
2165 echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2167 if test "${ac_cv_prog_CC+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test -n "$CC"; then
2171 ac_cv_prog_CC="$CC" # Let the user override the test.
2172 else
2173 ac_prog_rejected=no
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2176 do
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2181 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2182 ac_prog_rejected=yes
2183 continue
2184 fi
2185 ac_cv_prog_CC="cc"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 break 2
2188 fi
2189 done
2190 done
2191
2192 if test $ac_prog_rejected = yes; then
2193 # We found a bogon in the path, so make sure we never use it.
2194 set dummy $ac_cv_prog_CC
2195 shift
2196 if test $# != 0; then
2197 # We chose a different compiler from the bogus one.
2198 # However, it has the same basename, so the bogon will be chosen
2199 # first if we set CC to just the basename; use the full file name.
2200 shift
2201 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2202 fi
2203 fi
2204 fi
2205 fi
2206 CC=$ac_cv_prog_CC
2207 if test -n "$CC"; then
2208 echo "$as_me:$LINENO: result: $CC" >&5
2209 echo "${ECHO_T}$CC" >&6
2210 else
2211 echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6
2213 fi
2214
2215 fi
2216 if test -z "$CC"; then
2217 if test -n "$ac_tool_prefix"; then
2218 for ac_prog in cl
2219 do
2220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 if test -n "$CC"; then
2228 ac_cv_prog_CC="$CC" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2240 fi
2241 done
2242 done
2243
2244 fi
2245 fi
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248 echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6
2250 else
2251 echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2253 fi
2254
2255 test -n "$CC" && break
2256 done
2257 fi
2258 if test -z "$CC"; then
2259 ac_ct_CC=$CC
2260 for ac_prog in cl
2261 do
2262 # Extract the first word of "$ac_prog", so it can be a program name with args.
2263 set dummy $ac_prog; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 if test -n "$ac_ct_CC"; then
2270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279 ac_cv_prog_ac_ct_CC="$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2282 fi
2283 done
2284 done
2285
2286 fi
2287 fi
2288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289 if test -n "$ac_ct_CC"; then
2290 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291 echo "${ECHO_T}$ac_ct_CC" >&6
2292 else
2293 echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2295 fi
2296
2297 test -n "$ac_ct_CC" && break
2298 done
2299
2300 CC=$ac_ct_CC
2301 fi
2302
2303 fi
2304
2305
2306 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: no acceptable C compiler found in \$PATH
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2311
2312 # Provide some information about the compiler.
2313 echo "$as_me:$LINENO:" \
2314 "checking for C compiler version" >&5
2315 ac_compiler=`set X $ac_compile; echo $2`
2316 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2317 (eval $ac_compiler --version </dev/null >&5) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }
2321 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2322 (eval $ac_compiler -v </dev/null >&5) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }
2326 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2327 (eval $ac_compiler -V </dev/null >&5) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }
2331
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2338
2339 int
2340 main ()
2341 {
2342
2343 ;
2344 return 0;
2345 }
2346 _ACEOF
2347 ac_clean_files_save=$ac_clean_files
2348 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2349 # Try to create an executable without -o first, disregard a.out.
2350 # It will help us diagnose broken compilers, and finding out an intuition
2351 # of exeext.
2352 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2353 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2354 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2355 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2356 (eval $ac_link_default) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; then
2360 # Find the output, starting from the most likely. This scheme is
2361 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2362 # resort.
2363
2364 # Be careful to initialize this variable, since it used to be cached.
2365 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2366 ac_cv_exeext=
2367 # b.out is created by i960 compilers.
2368 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2369 do
2370 test -f "$ac_file" || continue
2371 case $ac_file in
2372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2373 ;;
2374 conftest.$ac_ext )
2375 # This is the source file.
2376 ;;
2377 [ab].out )
2378 # We found the default executable, but exeext='' is most
2379 # certainly right.
2380 break;;
2381 *.* )
2382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2383 # FIXME: I believe we export ac_cv_exeext for Libtool,
2384 # but it would be cool to find out if it's true. Does anybody
2385 # maintain Libtool? --akim.
2386 export ac_cv_exeext
2387 break;;
2388 * )
2389 break;;
2390 esac
2391 done
2392 else
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2397 See \`config.log' for more details." >&5
2398 echo "$as_me: error: C compiler cannot create executables
2399 See \`config.log' for more details." >&2;}
2400 { (exit 77); exit 77; }; }
2401 fi
2402
2403 ac_exeext=$ac_cv_exeext
2404 echo "$as_me:$LINENO: result: $ac_file" >&5
2405 echo "${ECHO_T}$ac_file" >&6
2406
2407 # Check the compiler produces executables we can run. If not, either
2408 # the compiler is broken, or we cross compile.
2409 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2410 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2411 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2412 # If not cross compiling, check that we can run a simple program.
2413 if test "$cross_compiling" != yes; then
2414 if { ac_try='./$ac_file'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 (eval $ac_try) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2420 cross_compiling=no
2421 else
2422 if test "$cross_compiling" = maybe; then
2423 cross_compiling=yes
2424 else
2425 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2426 If you meant to cross compile, use \`--host'.
2427 See \`config.log' for more details." >&5
2428 echo "$as_me: error: cannot run C compiled programs.
2429 If you meant to cross compile, use \`--host'.
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2432 fi
2433 fi
2434 fi
2435 echo "$as_me:$LINENO: result: yes" >&5
2436 echo "${ECHO_T}yes" >&6
2437
2438 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2439 ac_clean_files=$ac_clean_files_save
2440 # Check the compiler produces executables we can run. If not, either
2441 # the compiler is broken, or we cross compile.
2442 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2443 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2444 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2445 echo "${ECHO_T}$cross_compiling" >&6
2446
2447 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2448 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; then
2454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 # `rm'.
2458 for ac_file in conftest.exe conftest conftest.*; do
2459 test -f "$ac_file" || continue
2460 case $ac_file in
2461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463 export ac_cv_exeext
2464 break;;
2465 * ) break;;
2466 esac
2467 done
2468 else
2469 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&5
2471 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2472 See \`config.log' for more details." >&2;}
2473 { (exit 1); exit 1; }; }
2474 fi
2475
2476 rm -f conftest$ac_cv_exeext
2477 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2478 echo "${ECHO_T}$ac_cv_exeext" >&6
2479
2480 rm -f conftest.$ac_ext
2481 EXEEXT=$ac_cv_exeext
2482 ac_exeext=$EXEEXT
2483 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2484 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2485 if test "${ac_cv_objext+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h. */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494
2495 int
2496 main ()
2497 {
2498
2499 ;
2500 return 0;
2501 }
2502 _ACEOF
2503 rm -f conftest.o conftest.obj
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>&5
2506 ac_status=$?
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); }; then
2509 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2510 case $ac_file in
2511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2513 break;;
2514 esac
2515 done
2516 else
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2521 See \`config.log' for more details." >&5
2522 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2523 See \`config.log' for more details." >&2;}
2524 { (exit 1); exit 1; }; }
2525 fi
2526
2527 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528 fi
2529 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2530 echo "${ECHO_T}$ac_cv_objext" >&6
2531 OBJEXT=$ac_cv_objext
2532 ac_objext=$OBJEXT
2533 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2534 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2535 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h. */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2544
2545 int
2546 main ()
2547 {
2548 #ifndef __GNUC__
2549 choke me
2550 #endif
2551
2552 ;
2553 return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558 (eval $ac_compile) 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag"
2566 || test ! -s conftest.err'
2567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 (eval $ac_try) 2>&5
2569 ac_status=$?
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; } &&
2572 { ac_try='test -s conftest.$ac_objext'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 (eval $ac_try) 2>&5
2575 ac_status=$?
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; }; then
2578 ac_compiler_gnu=yes
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 ac_compiler_gnu=no
2584 fi
2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587
2588 fi
2589 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2590 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2591 GCC=`test $ac_compiler_gnu = yes && echo yes`
2592 ac_test_CFLAGS=${CFLAGS+set}
2593 ac_save_CFLAGS=$CFLAGS
2594 CFLAGS="-g"
2595 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600 cat >conftest.$ac_ext <<_ACEOF
2601 /* confdefs.h. */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2606
2607 int
2608 main ()
2609 {
2610
2611 ;
2612 return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2637 ac_cv_prog_cc_g=yes
2638 else
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 ac_cv_prog_cc_g=no
2643 fi
2644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2645 fi
2646 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2647 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2648 if test "$ac_test_CFLAGS" = set; then
2649 CFLAGS=$ac_save_CFLAGS
2650 elif test $ac_cv_prog_cc_g = yes; then
2651 if test "$GCC" = yes; then
2652 CFLAGS="-g -O2"
2653 else
2654 CFLAGS="-g"
2655 fi
2656 else
2657 if test "$GCC" = yes; then
2658 CFLAGS="-O2"
2659 else
2660 CFLAGS=
2661 fi
2662 fi
2663 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2664 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2665 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668 ac_cv_prog_cc_stdc=no
2669 ac_save_CC=$CC
2670 cat >conftest.$ac_ext <<_ACEOF
2671 /* confdefs.h. */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2676 #include <stdarg.h>
2677 #include <stdio.h>
2678 #include <sys/types.h>
2679 #include <sys/stat.h>
2680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2681 struct buf { int x; };
2682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2683 static char *e (p, i)
2684 char **p;
2685 int i;
2686 {
2687 return p[i];
2688 }
2689 static char *f (char * (*g) (char **, int), char **p, ...)
2690 {
2691 char *s;
2692 va_list v;
2693 va_start (v,p);
2694 s = g (p, va_arg (v,int));
2695 va_end (v);
2696 return s;
2697 }
2698
2699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2700 function prototypes and stuff, but not '\xHH' hex character constants.
2701 These don't provoke an error unfortunately, instead are silently treated
2702 as 'x'. The following induces an error, until -std1 is added to get
2703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2704 array size at least. It's necessary to write '\x00'==0 to get something
2705 that's true only with -std1. */
2706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2707
2708 int test (int i, double x);
2709 struct s1 {int (*f) (int a);};
2710 struct s2 {int (*f) (double a);};
2711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2712 int argc;
2713 char **argv;
2714 int
2715 main ()
2716 {
2717 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2718 ;
2719 return 0;
2720 }
2721 _ACEOF
2722 # Don't try gcc -ansi; that turns off useful extensions and
2723 # breaks some systems' header files.
2724 # AIX -qlanglvl=ansi
2725 # Ultrix and OSF/1 -std1
2726 # HP-UX 10.20 and later -Ae
2727 # HP-UX older versions -Aa -D_HPUX_SOURCE
2728 # SVR4 -Xc -D__EXTENSIONS__
2729 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 do
2731 CC="$ac_save_CC $ac_arg"
2732 rm -f conftest.$ac_objext
2733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2734 (eval $ac_compile) 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } &&
2741 { ac_try='test -z "$ac_c_werror_flag"
2742 || test ! -s conftest.err'
2743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 (eval $ac_try) 2>&5
2745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 (eval $ac_try) 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_cv_prog_cc_stdc=$ac_arg
2755 break
2756 else
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 fi
2761 rm -f conftest.err conftest.$ac_objext
2762 done
2763 rm -f conftest.$ac_ext conftest.$ac_objext
2764 CC=$ac_save_CC
2765
2766 fi
2767
2768 case "x$ac_cv_prog_cc_stdc" in
2769 x|xno)
2770 echo "$as_me:$LINENO: result: none needed" >&5
2771 echo "${ECHO_T}none needed" >&6 ;;
2772 *)
2773 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2775 CC="$CC $ac_cv_prog_cc_stdc" ;;
2776 esac
2777
2778 # Some people use a C++ compiler to compile C. Since we use `exit',
2779 # in C++ we need to declare it. In case someone uses the same compiler
2780 # for both compiling C and C++ we need to have the C++ compiler decide
2781 # the declaration of exit, since it's the most demanding environment.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #ifndef __cplusplus
2784 choke me
2785 #endif
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 for ac_declaration in \
2810 '' \
2811 'extern "C" void std::exit (int) throw (); using std::exit;' \
2812 'extern "C" void std::exit (int); using std::exit;' \
2813 'extern "C" void exit (int) throw ();' \
2814 'extern "C" void exit (int);' \
2815 'void exit (int);'
2816 do
2817 cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h. */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2823 $ac_declaration
2824 #include <stdlib.h>
2825 int
2826 main ()
2827 {
2828 exit (42);
2829 ;
2830 return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2835 (eval $ac_compile) 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } &&
2842 { ac_try='test -z "$ac_c_werror_flag"
2843 || test ! -s conftest.err'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 (eval $ac_try) 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 :
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 continue
2861 fi
2862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2869 $ac_declaration
2870 int
2871 main ()
2872 {
2873 exit (42);
2874 ;
2875 return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880 (eval $ac_compile) 2>conftest.er1
2881 ac_status=$?
2882 grep -v '^ *+' conftest.er1 >conftest.err
2883 rm -f conftest.er1
2884 cat conftest.err >&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); } &&
2887 { ac_try='test -z "$ac_c_werror_flag"
2888 || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 (eval $ac_try) 2>&5
2891 ac_status=$?
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896 (eval $ac_try) 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2900 break
2901 else
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 done
2908 rm -f conftest*
2909 if test -n "$ac_declaration"; then
2910 echo '#ifdef __cplusplus' >>confdefs.h
2911 echo $ac_declaration >>confdefs.h
2912 echo '#endif' >>confdefs.h
2913 fi
2914
2915 else
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 fi
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 DEPDIR="${am__leading_dot}deps"
2927
2928 ac_config_commands="$ac_config_commands depfiles"
2929
2930
2931 am_make=${MAKE-make}
2932 cat > confinc << 'END'
2933 am__doit:
2934 @echo done
2935 .PHONY: am__doit
2936 END
2937 # If we don't find an include directive, just comment out the code.
2938 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2939 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2940 am__include="#"
2941 am__quote=
2942 _am_result=none
2943 # First try GNU make style include.
2944 echo "include confinc" > confmf
2945 # We grep out `Entering directory' and `Leaving directory'
2946 # messages which can occur if `w' ends up in MAKEFLAGS.
2947 # In particular we don't look at `^make:' because GNU make might
2948 # be invoked under some other name (usually "gmake"), in which
2949 # case it prints its new name instead of `make'.
2950 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2951 am__include=include
2952 am__quote=
2953 _am_result=GNU
2954 fi
2955 # Now try BSD make style include.
2956 if test "$am__include" = "#"; then
2957 echo '.include "confinc"' > confmf
2958 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2959 am__include=.include
2960 am__quote="\""
2961 _am_result=BSD
2962 fi
2963 fi
2964
2965
2966 echo "$as_me:$LINENO: result: $_am_result" >&5
2967 echo "${ECHO_T}$_am_result" >&6
2968 rm -f confinc confmf
2969
2970 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2971 if test "${enable_dependency_tracking+set}" = set; then
2972 enableval="$enable_dependency_tracking"
2973
2974 fi;
2975 if test "x$enable_dependency_tracking" != xno; then
2976 am_depcomp="$ac_aux_dir/depcomp"
2977 AMDEPBACKSLASH='\'
2978 fi
2979
2980
2981 if test "x$enable_dependency_tracking" != xno; then
2982 AMDEP_TRUE=
2983 AMDEP_FALSE='#'
2984 else
2985 AMDEP_TRUE='#'
2986 AMDEP_FALSE=
2987 fi
2988
2989
2990
2991
2992 depcc="$CC" am_compiler_list=
2993
2994 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2995 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2996 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3000 # We make a subdir and do the tests there. Otherwise we can end up
3001 # making bogus files that we don't know about and never remove. For
3002 # instance it was reported that on HP-UX the gcc test will end up
3003 # making a dummy file named `D' -- because `-MD' means `put the output
3004 # in D'.
3005 mkdir conftest.dir
3006 # Copy depcomp to subdir because otherwise we won't find it if we're
3007 # using a relative directory.
3008 cp "$am_depcomp" conftest.dir
3009 cd conftest.dir
3010 # We will build objects and dependencies in a subdirectory because
3011 # it helps to detect inapplicable dependency modes. For instance
3012 # both Tru64's cc and ICC support -MD to output dependencies as a
3013 # side effect of compilation, but ICC will put the dependencies in
3014 # the current directory while Tru64 will put them in the object
3015 # directory.
3016 mkdir sub
3017
3018 am_cv_CC_dependencies_compiler_type=none
3019 if test "$am_compiler_list" = ""; then
3020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3021 fi
3022 for depmode in $am_compiler_list; do
3023 # Setup a source with many dependencies, because some compilers
3024 # like to wrap large dependency lists on column 80 (with \), and
3025 # we should not choose a depcomp mode which is confused by this.
3026 #
3027 # We need to recreate these files for each test, as the compiler may
3028 # overwrite some of them when testing with obscure command lines.
3029 # This happens at least with the AIX C compiler.
3030 : > sub/conftest.c
3031 for i in 1 2 3 4 5 6; do
3032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3034 # Solaris 8's {/usr,}/bin/sh.
3035 touch sub/conftst$i.h
3036 done
3037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3038
3039 case $depmode in
3040 nosideeffect)
3041 # after this tag, mechanisms are not by side-effect, so they'll
3042 # only be used when explicitly requested
3043 if test "x$enable_dependency_tracking" = xyes; then
3044 continue
3045 else
3046 break
3047 fi
3048 ;;
3049 none) break ;;
3050 esac
3051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3052 # mode. It turns out that the SunPro C++ compiler does not properly
3053 # handle `-M -o', and we need to detect this.
3054 if depmode=$depmode \
3055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3058 >/dev/null 2>conftest.err &&
3059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3060 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3062 # icc doesn't choke on unknown options, it will just issue warnings
3063 # or remarks (even with -Werror). So we grep stderr for any message
3064 # that says an option was ignored or not supported.
3065 # When given -MP, icc 7.0 and 7.1 complain thusly:
3066 # icc: Command line warning: ignoring option '-M'; no argument required
3067 # The diagnosis changed in icc 8.0:
3068 # icc: Command line remark: option '-MP' not supported
3069 if (grep 'ignoring option' conftest.err ||
3070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3071 am_cv_CC_dependencies_compiler_type=$depmode
3072 break
3073 fi
3074 fi
3075 done
3076
3077 cd ..
3078 rm -rf conftest.dir
3079 else
3080 am_cv_CC_dependencies_compiler_type=none
3081 fi
3082
3083 fi
3084 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3085 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3086 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3087
3088
3089
3090 if
3091 test "x$enable_dependency_tracking" != xno \
3092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3093 am__fastdepCC_TRUE=
3094 am__fastdepCC_FALSE='#'
3095 else
3096 am__fastdepCC_TRUE='#'
3097 am__fastdepCC_FALSE=
3098 fi
3099
3100
3101 # Check whether --enable-shared or --disable-shared was given.
3102 if test "${enable_shared+set}" = set; then
3103 enableval="$enable_shared"
3104 p=${PACKAGE-default}
3105 case $enableval in
3106 yes) enable_shared=yes ;;
3107 no) enable_shared=no ;;
3108 *)
3109 enable_shared=no
3110 # Look at the argument we got. We use all the common list separators.
3111 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3112 for pkg in $enableval; do
3113 IFS="$lt_save_ifs"
3114 if test "X$pkg" = "X$p"; then
3115 enable_shared=yes
3116 fi
3117 done
3118 IFS="$lt_save_ifs"
3119 ;;
3120 esac
3121 else
3122 enable_shared=yes
3123 fi;
3124
3125 # Check whether --enable-static or --disable-static was given.
3126 if test "${enable_static+set}" = set; then
3127 enableval="$enable_static"
3128 p=${PACKAGE-default}
3129 case $enableval in
3130 yes) enable_static=yes ;;
3131 no) enable_static=no ;;
3132 *)
3133 enable_static=no
3134 # Look at the argument we got. We use all the common list separators.
3135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3136 for pkg in $enableval; do
3137 IFS="$lt_save_ifs"
3138 if test "X$pkg" = "X$p"; then
3139 enable_static=yes
3140 fi
3141 done
3142 IFS="$lt_save_ifs"
3143 ;;
3144 esac
3145 else
3146 enable_static=yes
3147 fi;
3148
3149 # Check whether --enable-fast-install or --disable-fast-install was given.
3150 if test "${enable_fast_install+set}" = set; then
3151 enableval="$enable_fast_install"
3152 p=${PACKAGE-default}
3153 case $enableval in
3154 yes) enable_fast_install=yes ;;
3155 no) enable_fast_install=no ;;
3156 *)
3157 enable_fast_install=no
3158 # Look at the argument we got. We use all the common list separators.
3159 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3160 for pkg in $enableval; do
3161 IFS="$lt_save_ifs"
3162 if test "X$pkg" = "X$p"; then
3163 enable_fast_install=yes
3164 fi
3165 done
3166 IFS="$lt_save_ifs"
3167 ;;
3168 esac
3169 else
3170 enable_fast_install=yes
3171 fi;
3172
3173 # Make sure we can run config.sub.
3174 $ac_config_sub sun4 >/dev/null 2>&1 ||
3175 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3176 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3177 { (exit 1); exit 1; }; }
3178
3179 echo "$as_me:$LINENO: checking build system type" >&5
3180 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3181 if test "${ac_cv_build+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 ac_cv_build_alias=$build_alias
3185 test -z "$ac_cv_build_alias" &&
3186 ac_cv_build_alias=`$ac_config_guess`
3187 test -z "$ac_cv_build_alias" &&
3188 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3189 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3190 { (exit 1); exit 1; }; }
3191 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3192 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3193 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3194 { (exit 1); exit 1; }; }
3195
3196 fi
3197 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3198 echo "${ECHO_T}$ac_cv_build" >&6
3199 build=$ac_cv_build
3200 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3201 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3202 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3203
3204
3205 echo "$as_me:$LINENO: checking host system type" >&5
3206 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3207 if test "${ac_cv_host+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
3210 ac_cv_host_alias=$host_alias
3211 test -z "$ac_cv_host_alias" &&
3212 ac_cv_host_alias=$ac_cv_build_alias
3213 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3214 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3215 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3216 { (exit 1); exit 1; }; }
3217
3218 fi
3219 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3220 echo "${ECHO_T}$ac_cv_host" >&6
3221 host=$ac_cv_host
3222 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3223 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3224 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3225
3226
3227 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3228 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3229 if test "${lt_cv_path_SED+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 # Loop through the user's path and test for sed and gsed.
3233 # Then use that list of sed's as ones to test for truncation.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for lt_ac_prog in sed gsed; do
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3242 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3243 fi
3244 done
3245 done
3246 done
3247 lt_ac_max=0
3248 lt_ac_count=0
3249 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3250 # along with /bin/sed that truncates output.
3251 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3252 test ! -f $lt_ac_sed && continue
3253 cat /dev/null > conftest.in
3254 lt_ac_count=0
3255 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3256 # Check for GNU sed and select it if it is found.
3257 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3258 lt_cv_path_SED=$lt_ac_sed
3259 break
3260 fi
3261 while true; do
3262 cat conftest.in conftest.in >conftest.tmp
3263 mv conftest.tmp conftest.in
3264 cp conftest.in conftest.nl
3265 echo >>conftest.nl
3266 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3267 cmp -s conftest.out conftest.nl || break
3268 # 10000 chars as input seems more than enough
3269 test $lt_ac_count -gt 10 && break
3270 lt_ac_count=`expr $lt_ac_count + 1`
3271 if test $lt_ac_count -gt $lt_ac_max; then
3272 lt_ac_max=$lt_ac_count
3273 lt_cv_path_SED=$lt_ac_sed
3274 fi
3275 done
3276 done
3277
3278 fi
3279
3280 SED=$lt_cv_path_SED
3281 echo "$as_me:$LINENO: result: $SED" >&5
3282 echo "${ECHO_T}$SED" >&6
3283
3284 echo "$as_me:$LINENO: checking for egrep" >&5
3285 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3286 if test "${ac_cv_prog_egrep+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3290 then ac_cv_prog_egrep='grep -E'
3291 else ac_cv_prog_egrep='egrep'
3292 fi
3293 fi
3294 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3295 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3296 EGREP=$ac_cv_prog_egrep
3297
3298
3299
3300 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3301 if test "${with_gnu_ld+set}" = set; then
3302 withval="$with_gnu_ld"
3303 test "$withval" = no || with_gnu_ld=yes
3304 else
3305 with_gnu_ld=no
3306 fi;
3307 ac_prog=ld
3308 if test "$GCC" = yes; then
3309 # Check if gcc -print-prog-name=ld gives a path.
3310 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3311 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3312 case $host in
3313 *-*-mingw*)
3314 # gcc leaves a trailing carriage return which upsets mingw
3315 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3316 *)
3317 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3318 esac
3319 case $ac_prog in
3320 # Accept absolute paths.
3321 [\\/]* | ?:[\\/]*)
3322 re_direlt='/[^/][^/]*/\.\./'
3323 # Canonicalize the pathname of ld
3324 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3325 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3326 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3327 done
3328 test -z "$LD" && LD="$ac_prog"
3329 ;;
3330 "")
3331 # If it fails, then pretend we aren't using GCC.
3332 ac_prog=ld
3333 ;;
3334 *)
3335 # If it is relative, then search for the first ld in PATH.
3336 with_gnu_ld=unknown
3337 ;;
3338 esac
3339 elif test "$with_gnu_ld" = yes; then
3340 echo "$as_me:$LINENO: checking for GNU ld" >&5
3341 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3342 else
3343 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3344 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3345 fi
3346 if test "${lt_cv_path_LD+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349 if test -z "$LD"; then
3350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3351 for ac_dir in $PATH; do
3352 IFS="$lt_save_ifs"
3353 test -z "$ac_dir" && ac_dir=.
3354 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3355 lt_cv_path_LD="$ac_dir/$ac_prog"
3356 # Check to see if the program is GNU ld. I'd rather use --version,
3357 # but apparently some variants of GNU ld only accept -v.
3358 # Break only if it was the GNU/non-GNU ld that we prefer.
3359 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3360 *GNU* | *'with BFD'*)
3361 test "$with_gnu_ld" != no && break
3362 ;;
3363 *)
3364 test "$with_gnu_ld" != yes && break
3365 ;;
3366 esac
3367 fi
3368 done
3369 IFS="$lt_save_ifs"
3370 else
3371 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3372 fi
3373 fi
3374
3375 LD="$lt_cv_path_LD"
3376 if test -n "$LD"; then
3377 echo "$as_me:$LINENO: result: $LD" >&5
3378 echo "${ECHO_T}$LD" >&6
3379 else
3380 echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3382 fi
3383 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3384 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3385 { (exit 1); exit 1; }; }
3386 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3387 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3388 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3392 case `$LD -v 2>&1 </dev/null` in
3393 *GNU* | *'with BFD'*)
3394 lt_cv_prog_gnu_ld=yes
3395 ;;
3396 *)
3397 lt_cv_prog_gnu_ld=no
3398 ;;
3399 esac
3400 fi
3401 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3402 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3403 with_gnu_ld=$lt_cv_prog_gnu_ld
3404
3405
3406 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3407 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3408 if test "${lt_cv_ld_reload_flag+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 lt_cv_ld_reload_flag='-r'
3412 fi
3413 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3414 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3415 reload_flag=$lt_cv_ld_reload_flag
3416 case $reload_flag in
3417 "" | " "*) ;;
3418 *) reload_flag=" $reload_flag" ;;
3419 esac
3420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3421 case $host_os in
3422 darwin*)
3423 if test "$GCC" = yes; then
3424 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3425 else
3426 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3427 fi
3428 ;;
3429 esac
3430
3431 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3432 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3433 if test "${lt_cv_path_NM+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 if test -n "$NM"; then
3437 # Let the user override the test.
3438 lt_cv_path_NM="$NM"
3439 else
3440 lt_nm_to_check="${ac_tool_prefix}nm"
3441 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3442 lt_nm_to_check="$lt_nm_to_check nm"
3443 fi
3444 for lt_tmp_nm in $lt_nm_to_check; do
3445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3446 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3447 IFS="$lt_save_ifs"
3448 test -z "$ac_dir" && ac_dir=.
3449 tmp_nm="$ac_dir/$lt_tmp_nm"
3450 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3451 # Check to see if the nm accepts a BSD-compat flag.
3452 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3453 # nm: unknown option "B" ignored
3454 # Tru64's nm complains that /dev/null is an invalid object file
3455 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3456 */dev/null* | *'Invalid file or object type'*)
3457 lt_cv_path_NM="$tmp_nm -B"
3458 break
3459 ;;
3460 *)
3461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3462 */dev/null*)
3463 lt_cv_path_NM="$tmp_nm -p"
3464 break
3465 ;;
3466 *)
3467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3468 continue # so that we can try to find one that supports BSD flags
3469 ;;
3470 esac
3471 ;;
3472 esac
3473 fi
3474 done
3475 IFS="$lt_save_ifs"
3476 done
3477 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3478 fi
3479 fi
3480 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3481 echo "${ECHO_T}$lt_cv_path_NM" >&6
3482 NM="$lt_cv_path_NM"
3483
3484 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3485 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3486 LN_S=$as_ln_s
3487 if test "$LN_S" = "ln -s"; then
3488 echo "$as_me:$LINENO: result: yes" >&5
3489 echo "${ECHO_T}yes" >&6
3490 else
3491 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3492 echo "${ECHO_T}no, using $LN_S" >&6
3493 fi
3494
3495 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3496 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3497 if test "${lt_cv_deplibs_check_method+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 lt_cv_file_magic_cmd='$MAGIC_CMD'
3501 lt_cv_file_magic_test_file=
3502 lt_cv_deplibs_check_method='unknown'
3503 # Need to set the preceding variable on all platforms that support
3504 # interlibrary dependencies.
3505 # 'none' -- dependencies not supported.
3506 # `unknown' -- same as none, but documents that we really don't know.
3507 # 'pass_all' -- all dependencies passed with no checks.
3508 # 'test_compile' -- check by making test program.
3509 # 'file_magic [[regex]]' -- check by looking for files in library path
3510 # which responds to the $file_magic_cmd with a given extended regex.
3511 # If you have `file' or equivalent on your system and you're not sure
3512 # whether `pass_all' will *always* work, you probably want this one.
3513
3514 case $host_os in
3515 aix4* | aix5*)
3516 lt_cv_deplibs_check_method=pass_all
3517 ;;
3518
3519 beos*)
3520 lt_cv_deplibs_check_method=pass_all
3521 ;;
3522
3523 bsdi[45]*)
3524 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3525 lt_cv_file_magic_cmd='/usr/bin/file -L'
3526 lt_cv_file_magic_test_file=/shlib/libc.so
3527 ;;
3528
3529 cygwin*)
3530 # func_win32_libid is a shell function defined in ltmain.sh
3531 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3532 lt_cv_file_magic_cmd='func_win32_libid'
3533 ;;
3534
3535 mingw* | pw32*)
3536 # Base MSYS/MinGW do not provide the 'file' command needed by
3537 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3538 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3539 lt_cv_file_magic_cmd='$OBJDUMP -f'
3540 ;;
3541
3542 darwin* | rhapsody*)
3543 lt_cv_deplibs_check_method=pass_all
3544 ;;
3545
3546 freebsd* | kfreebsd*-gnu | dragonfly*)
3547 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3548 case $host_cpu in
3549 i*86 )
3550 # Not sure whether the presence of OpenBSD here was a mistake.
3551 # Let's accept both of them until this is cleared up.
3552 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3553 lt_cv_file_magic_cmd=/usr/bin/file
3554 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3555 ;;
3556 esac
3557 else
3558 lt_cv_deplibs_check_method=pass_all
3559 fi
3560 ;;
3561
3562 gnu*)
3563 lt_cv_deplibs_check_method=pass_all
3564 ;;
3565
3566 hpux10.20* | hpux11*)
3567 lt_cv_file_magic_cmd=/usr/bin/file
3568 case $host_cpu in
3569 ia64*)
3570 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3571 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3572 ;;
3573 hppa*64*)
3574 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]'
3575 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3576 ;;
3577 *)
3578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3579 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3580 ;;
3581 esac
3582 ;;
3583
3584 interix3*)
3585 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3587 ;;
3588
3589 irix5* | irix6* | nonstopux*)
3590 case $LD in
3591 *-32|*"-32 ") libmagic=32-bit;;
3592 *-n32|*"-n32 ") libmagic=N32;;
3593 *-64|*"-64 ") libmagic=64-bit;;
3594 *) libmagic=never-match;;
3595 esac
3596 lt_cv_deplibs_check_method=pass_all
3597 ;;
3598
3599 # This must be Linux ELF.
3600 linux*)
3601 lt_cv_deplibs_check_method=pass_all
3602 ;;
3603
3604 netbsd*)
3605 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3607 else
3608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3609 fi
3610 ;;
3611
3612 newos6*)
3613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3614 lt_cv_file_magic_cmd=/usr/bin/file
3615 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3616 ;;
3617
3618 nto-qnx*)
3619 lt_cv_deplibs_check_method=unknown
3620 ;;
3621
3622 openbsd*)
3623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3625 else
3626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3627 fi
3628 ;;
3629
3630 osf3* | osf4* | osf5*)
3631 lt_cv_deplibs_check_method=pass_all
3632 ;;
3633
3634 solaris*)
3635 lt_cv_deplibs_check_method=pass_all
3636 ;;
3637
3638 sysv4 | sysv4.3*)
3639 case $host_vendor in
3640 motorola)
3641 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]'
3642 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3643 ;;
3644 ncr)
3645 lt_cv_deplibs_check_method=pass_all
3646 ;;
3647 sequent)
3648 lt_cv_file_magic_cmd='/bin/file'
3649 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3650 ;;
3651 sni)
3652 lt_cv_file_magic_cmd='/bin/file'
3653 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3654 lt_cv_file_magic_test_file=/lib/libc.so
3655 ;;
3656 siemens)
3657 lt_cv_deplibs_check_method=pass_all
3658 ;;
3659 pc)
3660 lt_cv_deplibs_check_method=pass_all
3661 ;;
3662 esac
3663 ;;
3664
3665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3666 lt_cv_deplibs_check_method=pass_all
3667 ;;
3668 esac
3669
3670 fi
3671 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3672 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3673 file_magic_cmd=$lt_cv_file_magic_cmd
3674 deplibs_check_method=$lt_cv_deplibs_check_method
3675 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3676
3677
3678
3679
3680 # If no C compiler was specified, use CC.
3681 LTCC=${LTCC-"$CC"}
3682
3683 # If no C compiler flags were specified, use CFLAGS.
3684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3685
3686 # Allow CC to be a program name with arguments.
3687 compiler=$CC
3688
3689
3690 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3691 if test "${enable_libtool_lock+set}" = set; then
3692 enableval="$enable_libtool_lock"
3693
3694 fi;
3695 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3696
3697 # Some flags need to be propagated to the compiler or linker for good
3698 # libtool support.
3699 case $host in
3700 ia64-*-hpux*)
3701 # Find out which ABI we are using.
3702 echo 'int i;' > conftest.$ac_ext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; then
3708 case `/usr/bin/file conftest.$ac_objext` in
3709 *ELF-32*)
3710 HPUX_IA64_MODE="32"
3711 ;;
3712 *ELF-64*)
3713 HPUX_IA64_MODE="64"
3714 ;;
3715 esac
3716 fi
3717 rm -rf conftest*
3718 ;;
3719 *-*-irix6*)
3720 # Find out which ABI we are using.
3721 echo '#line 3721 "configure"' > conftest.$ac_ext
3722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723 (eval $ac_compile) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; then
3727 if test "$lt_cv_prog_gnu_ld" = yes; then
3728 case `/usr/bin/file conftest.$ac_objext` in
3729 *32-bit*)
3730 LD="${LD-ld} -melf32bsmip"
3731 ;;
3732 *N32*)
3733 LD="${LD-ld} -melf32bmipn32"
3734 ;;
3735 *64-bit*)
3736 LD="${LD-ld} -melf64bmip"
3737 ;;
3738 esac
3739 else
3740 case `/usr/bin/file conftest.$ac_objext` in
3741 *32-bit*)
3742 LD="${LD-ld} -32"
3743 ;;
3744 *N32*)
3745 LD="${LD-ld} -n32"
3746 ;;
3747 *64-bit*)
3748 LD="${LD-ld} -64"
3749 ;;
3750 esac
3751 fi
3752 fi
3753 rm -rf conftest*
3754 ;;
3755
3756 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3757 # Find out which ABI we are using.
3758 echo 'int i;' > conftest.$ac_ext
3759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3760 (eval $ac_compile) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; then
3764 case `/usr/bin/file conftest.o` in
3765 *32-bit*)
3766 case $host in
3767 x86_64-*linux*)
3768 LD="${LD-ld} -m elf_i386"
3769 ;;
3770 ppc64-*linux*|powerpc64-*linux*)
3771 LD="${LD-ld} -m elf32ppclinux"
3772 ;;
3773 s390x-*linux*)
3774 LD="${LD-ld} -m elf_s390"
3775 ;;
3776 sparc64-*linux*)
3777 LD="${LD-ld} -m elf32_sparc"
3778 ;;
3779 esac
3780 ;;
3781 *64-bit*)
3782 case $host in
3783 x86_64-*linux*)
3784 LD="${LD-ld} -m elf_x86_64"
3785 ;;
3786 ppc*-*linux*|powerpc*-*linux*)
3787 LD="${LD-ld} -m elf64ppc"
3788 ;;
3789 s390*-*linux*)
3790 LD="${LD-ld} -m elf64_s390"
3791 ;;
3792 sparc*-*linux*)
3793 LD="${LD-ld} -m elf64_sparc"
3794 ;;
3795 esac
3796 ;;
3797 esac
3798 fi
3799 rm -rf conftest*
3800 ;;
3801
3802 *-*-sco3.2v5*)
3803 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3804 SAVE_CFLAGS="$CFLAGS"
3805 CFLAGS="$CFLAGS -belf"
3806 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3807 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3808 if test "${lt_cv_cc_needs_belf+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823
3824 int
3825 main ()
3826 {
3827
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834 (eval $ac_link) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag"
3842 || test ! -s conftest.err'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try='test -s conftest$ac_exeext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 lt_cv_cc_needs_belf=yes
3855 else
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 lt_cv_cc_needs_belf=no
3860 fi
3861 rm -f conftest.err conftest.$ac_objext \
3862 conftest$ac_exeext conftest.$ac_ext
3863 ac_ext=c
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868
3869 fi
3870 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3871 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3872 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3873 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3874 CFLAGS="$SAVE_CFLAGS"
3875 fi
3876 ;;
3877 sparc*-*solaris*)
3878 # Find out which ABI we are using.
3879 echo 'int i;' > conftest.$ac_ext
3880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3881 (eval $ac_compile) 2>&5
3882 ac_status=$?
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; then
3885 case `/usr/bin/file conftest.o` in
3886 *64-bit*)
3887 case $lt_cv_prog_gnu_ld in
3888 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3889 *) LD="${LD-ld} -64" ;;
3890 esac
3891 ;;
3892 esac
3893 fi
3894 rm -rf conftest*
3895 ;;
3896
3897
3898 esac
3899
3900 need_locks="$enable_libtool_lock"
3901
3902
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3909 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3910 # On Suns, sometimes $CPP names a directory.
3911 if test -n "$CPP" && test -d "$CPP"; then
3912 CPP=
3913 fi
3914 if test -z "$CPP"; then
3915 if test "${ac_cv_prog_CPP+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918 # Double quotes because CPP needs to be expanded
3919 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3920 do
3921 ac_preproc_ok=false
3922 for ac_c_preproc_warn_flag in '' yes
3923 do
3924 # Use a header file that comes with gcc, so configuring glibc
3925 # with a fresh cross-compiler works.
3926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3927 # <limits.h> exists even on freestanding compilers.
3928 # On the NeXT, cc -E runs the code through the compiler's parser,
3929 # not just through cpp. "Syntax error" is here to catch this case.
3930 cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h. */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3936 #ifdef __STDC__
3937 # include <limits.h>
3938 #else
3939 # include <assert.h>
3940 #endif
3941 Syntax error
3942 _ACEOF
3943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3945 ac_status=$?
3946 grep -v '^ *+' conftest.er1 >conftest.err
3947 rm -f conftest.er1
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); } >/dev/null; then
3951 if test -s conftest.err; then
3952 ac_cpp_err=$ac_c_preproc_warn_flag
3953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3954 else
3955 ac_cpp_err=
3956 fi
3957 else
3958 ac_cpp_err=yes
3959 fi
3960 if test -z "$ac_cpp_err"; then
3961 :
3962 else
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3965
3966 # Broken: fails on valid input.
3967 continue
3968 fi
3969 rm -f conftest.err conftest.$ac_ext
3970
3971 # OK, works on sane cases. Now check whether non-existent headers
3972 # can be detected and how.
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 #include <ac_nonexistent.h>
3980 _ACEOF
3981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3983 ac_status=$?
3984 grep -v '^ *+' conftest.er1 >conftest.err
3985 rm -f conftest.er1
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } >/dev/null; then
3989 if test -s conftest.err; then
3990 ac_cpp_err=$ac_c_preproc_warn_flag
3991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3992 else
3993 ac_cpp_err=
3994 fi
3995 else
3996 ac_cpp_err=yes
3997 fi
3998 if test -z "$ac_cpp_err"; then
3999 # Broken: success on invalid input.
4000 continue
4001 else
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4004
4005 # Passes both tests.
4006 ac_preproc_ok=:
4007 break
4008 fi
4009 rm -f conftest.err conftest.$ac_ext
4010
4011 done
4012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4013 rm -f conftest.err conftest.$ac_ext
4014 if $ac_preproc_ok; then
4015 break
4016 fi
4017
4018 done
4019 ac_cv_prog_CPP=$CPP
4020
4021 fi
4022 CPP=$ac_cv_prog_CPP
4023 else
4024 ac_cv_prog_CPP=$CPP
4025 fi
4026 echo "$as_me:$LINENO: result: $CPP" >&5
4027 echo "${ECHO_T}$CPP" >&6
4028 ac_preproc_ok=false
4029 for ac_c_preproc_warn_flag in '' yes
4030 do
4031 # Use a header file that comes with gcc, so configuring glibc
4032 # with a fresh cross-compiler works.
4033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4034 # <limits.h> exists even on freestanding compilers.
4035 # On the NeXT, cc -E runs the code through the compiler's parser,
4036 # not just through cpp. "Syntax error" is here to catch this case.
4037 cat >conftest.$ac_ext <<_ACEOF
4038 /* confdefs.h. */
4039 _ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4043 #ifdef __STDC__
4044 # include <limits.h>
4045 #else
4046 # include <assert.h>
4047 #endif
4048 Syntax error
4049 _ACEOF
4050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } >/dev/null; then
4058 if test -s conftest.err; then
4059 ac_cpp_err=$ac_c_preproc_warn_flag
4060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4061 else
4062 ac_cpp_err=
4063 fi
4064 else
4065 ac_cpp_err=yes
4066 fi
4067 if test -z "$ac_cpp_err"; then
4068 :
4069 else
4070 echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 # Broken: fails on valid input.
4074 continue
4075 fi
4076 rm -f conftest.err conftest.$ac_ext
4077
4078 # OK, works on sane cases. Now check whether non-existent headers
4079 # can be detected and how.
4080 cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h. */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4086 #include <ac_nonexistent.h>
4087 _ACEOF
4088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } >/dev/null; then
4096 if test -s conftest.err; then
4097 ac_cpp_err=$ac_c_preproc_warn_flag
4098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4099 else
4100 ac_cpp_err=
4101 fi
4102 else
4103 ac_cpp_err=yes
4104 fi
4105 if test -z "$ac_cpp_err"; then
4106 # Broken: success on invalid input.
4107 continue
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 # Passes both tests.
4113 ac_preproc_ok=:
4114 break
4115 fi
4116 rm -f conftest.err conftest.$ac_ext
4117
4118 done
4119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4120 rm -f conftest.err conftest.$ac_ext
4121 if $ac_preproc_ok; then
4122 :
4123 else
4124 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4125 See \`config.log' for more details." >&5
4126 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4127 See \`config.log' for more details." >&2;}
4128 { (exit 1); exit 1; }; }
4129 fi
4130
4131 ac_ext=c
4132 ac_cpp='$CPP $CPPFLAGS'
4133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136
4137
4138 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4139 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4140 if test "${ac_cv_header_stdc+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h. */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 #include <stdlib.h>
4150 #include <stdarg.h>
4151 #include <string.h>
4152 #include <float.h>
4153
4154 int
4155 main ()
4156 {
4157
4158 ;
4159 return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.$ac_objext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4164 (eval $ac_compile) 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_header_stdc=yes
4185 else
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189 ac_cv_header_stdc=no
4190 fi
4191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192
4193 if test $ac_cv_header_stdc = yes; then
4194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4195 cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h. */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4201 #include <string.h>
4202
4203 _ACEOF
4204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205 $EGREP "memchr" >/dev/null 2>&1; then
4206 :
4207 else
4208 ac_cv_header_stdc=no
4209 fi
4210 rm -f conftest*
4211
4212 fi
4213
4214 if test $ac_cv_header_stdc = yes; then
4215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4216 cat >conftest.$ac_ext <<_ACEOF
4217 /* confdefs.h. */
4218 _ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 #include <stdlib.h>
4223
4224 _ACEOF
4225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226 $EGREP "free" >/dev/null 2>&1; then
4227 :
4228 else
4229 ac_cv_header_stdc=no
4230 fi
4231 rm -f conftest*
4232
4233 fi
4234
4235 if test $ac_cv_header_stdc = yes; then
4236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4237 if test "$cross_compiling" = yes; then
4238 :
4239 else
4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h. */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 #include <ctype.h>
4247 #if ((' ' & 0x0FF) == 0x020)
4248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4250 #else
4251 # define ISLOWER(c) \
4252 (('a' <= (c) && (c) <= 'i') \
4253 || ('j' <= (c) && (c) <= 'r') \
4254 || ('s' <= (c) && (c) <= 'z'))
4255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4256 #endif
4257
4258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4259 int
4260 main ()
4261 {
4262 int i;
4263 for (i = 0; i < 256; i++)
4264 if (XOR (islower (i), ISLOWER (i))
4265 || toupper (i) != TOUPPER (i))
4266 exit(2);
4267 exit (0);
4268 }
4269 _ACEOF
4270 rm -f conftest$ac_exeext
4271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4272 (eval $ac_link) 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 :
4282 else
4283 echo "$as_me: program exited with status $ac_status" >&5
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 ( exit $ac_status )
4288 ac_cv_header_stdc=no
4289 fi
4290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4291 fi
4292 fi
4293 fi
4294 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4295 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4296 if test $ac_cv_header_stdc = yes; then
4297
4298 cat >>confdefs.h <<\_ACEOF
4299 #define STDC_HEADERS 1
4300 _ACEOF
4301
4302 fi
4303
4304 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4315 inttypes.h stdint.h unistd.h
4316 do
4317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4318 echo "$as_me:$LINENO: checking for $ac_header" >&5
4319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323 cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h. */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 $ac_includes_default
4330
4331 #include <$ac_header>
4332 _ACEOF
4333 rm -f conftest.$ac_objext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335 (eval $ac_compile) 2>conftest.er1
4336 ac_status=$?
4337 grep -v '^ *+' conftest.er1 >conftest.err
4338 rm -f conftest.er1
4339 cat conftest.err >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try='test -z "$ac_c_werror_flag"
4343 || test ! -s conftest.err'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4355 eval "$as_ac_Header=yes"
4356 else
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 eval "$as_ac_Header=no"
4361 fi
4362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363 fi
4364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4367 cat >>confdefs.h <<_ACEOF
4368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4369 _ACEOF
4370
4371 fi
4372
4373 done
4374
4375
4376
4377 for ac_header in dlfcn.h
4378 do
4379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4381 echo "$as_me:$LINENO: checking for $ac_header" >&5
4382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 fi
4386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4388 else
4389 # Is the header compilable?
4390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 $ac_includes_default
4399 #include <$ac_header>
4400 _ACEOF
4401 rm -f conftest.$ac_objext
4402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4403 (eval $ac_compile) 2>conftest.er1
4404 ac_status=$?
4405 grep -v '^ *+' conftest.er1 >conftest.err
4406 rm -f conftest.er1
4407 cat conftest.err >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); } &&
4410 { ac_try='test -z "$ac_c_werror_flag"
4411 || test ! -s conftest.err'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 (eval $ac_try) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4423 ac_header_compiler=yes
4424 else
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4427
4428 ac_header_compiler=no
4429 fi
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4432 echo "${ECHO_T}$ac_header_compiler" >&6
4433
4434 # Is the header present?
4435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 #include <$ac_header>
4444 _ACEOF
4445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4447 ac_status=$?
4448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } >/dev/null; then
4453 if test -s conftest.err; then
4454 ac_cpp_err=$ac_c_preproc_warn_flag
4455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4456 else
4457 ac_cpp_err=
4458 fi
4459 else
4460 ac_cpp_err=yes
4461 fi
4462 if test -z "$ac_cpp_err"; then
4463 ac_header_preproc=yes
4464 else
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4467
4468 ac_header_preproc=no
4469 fi
4470 rm -f conftest.err conftest.$ac_ext
4471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4472 echo "${ECHO_T}$ac_header_preproc" >&6
4473
4474 # So? What about this header?
4475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4476 yes:no: )
4477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4481 ac_header_preproc=yes
4482 ;;
4483 no:yes:* )
4484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4496 (
4497 cat <<\_ASBOX
4498 ## ---------------------------------------------------------------------- ##
4499 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4500 ## ---------------------------------------------------------------------- ##
4501 _ASBOX
4502 ) |
4503 sed "s/^/$as_me: WARNING: /" >&2
4504 ;;
4505 esac
4506 echo "$as_me:$LINENO: checking for $ac_header" >&5
4507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 eval "$as_ac_Header=\$ac_header_preproc"
4512 fi
4513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4515
4516 fi
4517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4518 cat >>confdefs.h <<_ACEOF
4519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4520 _ACEOF
4521
4522 fi
4523
4524 done
4525
4526 ac_ext=cc
4527 ac_cpp='$CXXCPP $CPPFLAGS'
4528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4531 if test -n "$ac_tool_prefix"; then
4532 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4533 do
4534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4536 echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4538 if test "${ac_cv_prog_CXX+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 else
4541 if test -n "$CXX"; then
4542 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4554 fi
4555 done
4556 done
4557
4558 fi
4559 fi
4560 CXX=$ac_cv_prog_CXX
4561 if test -n "$CXX"; then
4562 echo "$as_me:$LINENO: result: $CXX" >&5
4563 echo "${ECHO_T}$CXX" >&6
4564 else
4565 echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6
4567 fi
4568
4569 test -n "$CXX" && break
4570 done
4571 fi
4572 if test -z "$CXX"; then
4573 ac_ct_CXX=$CXX
4574 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4575 do
4576 # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 if test -n "$ac_ct_CXX"; then
4584 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4588 do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_prog_ac_ct_CXX="$ac_prog"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597 done
4598 done
4599
4600 fi
4601 fi
4602 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4603 if test -n "$ac_ct_CXX"; then
4604 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4605 echo "${ECHO_T}$ac_ct_CXX" >&6
4606 else
4607 echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6
4609 fi
4610
4611 test -n "$ac_ct_CXX" && break
4612 done
4613 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4614
4615 CXX=$ac_ct_CXX
4616 fi
4617
4618
4619 # Provide some information about the compiler.
4620 echo "$as_me:$LINENO:" \
4621 "checking for C++ compiler version" >&5
4622 ac_compiler=`set X $ac_compile; echo $2`
4623 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4624 (eval $ac_compiler --version </dev/null >&5) 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }
4628 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4629 (eval $ac_compiler -v </dev/null >&5) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }
4633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4634 (eval $ac_compiler -V </dev/null >&5) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }
4638
4639 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4640 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4641 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h. */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650
4651 int
4652 main ()
4653 {
4654 #ifndef __GNUC__
4655 choke me
4656 #endif
4657
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>conftest.er1
4665 ac_status=$?
4666 grep -v '^ *+' conftest.er1 >conftest.err
4667 rm -f conftest.er1
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_cxx_werror_flag"
4672 || test ! -s conftest.err'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; } &&
4678 { ac_try='test -s conftest.$ac_objext'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 (eval $ac_try) 2>&5
4681 ac_status=$?
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; }; then
4684 ac_compiler_gnu=yes
4685 else
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 ac_compiler_gnu=no
4690 fi
4691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4692 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4693
4694 fi
4695 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4696 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4697 GXX=`test $ac_compiler_gnu = yes && echo yes`
4698 ac_test_CXXFLAGS=${CXXFLAGS+set}
4699 ac_save_CXXFLAGS=$CXXFLAGS
4700 CXXFLAGS="-g"
4701 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4702 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4703 if test "${ac_cv_prog_cxx_g+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712
4713 int
4714 main ()
4715 {
4716
4717 ;
4718 return 0;
4719 }
4720 _ACEOF
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723 (eval $ac_compile) 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -z "$ac_cxx_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 (eval $ac_try) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_prog_cxx_g=yes
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 ac_cv_prog_cxx_g=no
4749 fi
4750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4751 fi
4752 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4753 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4754 if test "$ac_test_CXXFLAGS" = set; then
4755 CXXFLAGS=$ac_save_CXXFLAGS
4756 elif test $ac_cv_prog_cxx_g = yes; then
4757 if test "$GXX" = yes; then
4758 CXXFLAGS="-g -O2"
4759 else
4760 CXXFLAGS="-g"
4761 fi
4762 else
4763 if test "$GXX" = yes; then
4764 CXXFLAGS="-O2"
4765 else
4766 CXXFLAGS=
4767 fi
4768 fi
4769 for ac_declaration in \
4770 '' \
4771 'extern "C" void std::exit (int) throw (); using std::exit;' \
4772 'extern "C" void std::exit (int); using std::exit;' \
4773 'extern "C" void exit (int) throw ();' \
4774 'extern "C" void exit (int);' \
4775 'void exit (int);'
4776 do
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 $ac_declaration
4784 #include <stdlib.h>
4785 int
4786 main ()
4787 {
4788 exit (42);
4789 ;
4790 return 0;
4791 }
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4795 (eval $ac_compile) 2>conftest.er1
4796 ac_status=$?
4797 grep -v '^ *+' conftest.er1 >conftest.err
4798 rm -f conftest.er1
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } &&
4802 { ac_try='test -z "$ac_cxx_werror_flag"
4803 || test ! -s conftest.err'
4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805 (eval $ac_try) 2>&5
4806 ac_status=$?
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; } &&
4809 { ac_try='test -s conftest.$ac_objext'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; }; then
4815 :
4816 else
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4819
4820 continue
4821 fi
4822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4823 cat >conftest.$ac_ext <<_ACEOF
4824 /* confdefs.h. */
4825 _ACEOF
4826 cat confdefs.h >>conftest.$ac_ext
4827 cat >>conftest.$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4829 $ac_declaration
4830 int
4831 main ()
4832 {
4833 exit (42);
4834 ;
4835 return 0;
4836 }
4837 _ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4840 (eval $ac_compile) 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -z "$ac_cxx_werror_flag"
4848 || test ! -s conftest.err'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4860 break
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 fi
4866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4867 done
4868 rm -f conftest*
4869 if test -n "$ac_declaration"; then
4870 echo '#ifdef __cplusplus' >>confdefs.h
4871 echo $ac_declaration >>confdefs.h
4872 echo '#endif' >>confdefs.h
4873 fi
4874
4875 ac_ext=cc
4876 ac_cpp='$CXXCPP $CPPFLAGS'
4877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4880
4881 depcc="$CXX" am_compiler_list=
4882
4883 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4884 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4885 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4889 # We make a subdir and do the tests there. Otherwise we can end up
4890 # making bogus files that we don't know about and never remove. For
4891 # instance it was reported that on HP-UX the gcc test will end up
4892 # making a dummy file named `D' -- because `-MD' means `put the output
4893 # in D'.
4894 mkdir conftest.dir
4895 # Copy depcomp to subdir because otherwise we won't find it if we're
4896 # using a relative directory.
4897 cp "$am_depcomp" conftest.dir
4898 cd conftest.dir
4899 # We will build objects and dependencies in a subdirectory because
4900 # it helps to detect inapplicable dependency modes. For instance
4901 # both Tru64's cc and ICC support -MD to output dependencies as a
4902 # side effect of compilation, but ICC will put the dependencies in
4903 # the current directory while Tru64 will put them in the object
4904 # directory.
4905 mkdir sub
4906
4907 am_cv_CXX_dependencies_compiler_type=none
4908 if test "$am_compiler_list" = ""; then
4909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4910 fi
4911 for depmode in $am_compiler_list; do
4912 # Setup a source with many dependencies, because some compilers
4913 # like to wrap large dependency lists on column 80 (with \), and
4914 # we should not choose a depcomp mode which is confused by this.
4915 #
4916 # We need to recreate these files for each test, as the compiler may
4917 # overwrite some of them when testing with obscure command lines.
4918 # This happens at least with the AIX C compiler.
4919 : > sub/conftest.c
4920 for i in 1 2 3 4 5 6; do
4921 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4922 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4923 # Solaris 8's {/usr,}/bin/sh.
4924 touch sub/conftst$i.h
4925 done
4926 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4927
4928 case $depmode in
4929 nosideeffect)
4930 # after this tag, mechanisms are not by side-effect, so they'll
4931 # only be used when explicitly requested
4932 if test "x$enable_dependency_tracking" = xyes; then
4933 continue
4934 else
4935 break
4936 fi
4937 ;;
4938 none) break ;;
4939 esac
4940 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4941 # mode. It turns out that the SunPro C++ compiler does not properly
4942 # handle `-M -o', and we need to detect this.
4943 if depmode=$depmode \
4944 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4945 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4946 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4947 >/dev/null 2>conftest.err &&
4948 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4949 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4950 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4951 # icc doesn't choke on unknown options, it will just issue warnings
4952 # or remarks (even with -Werror). So we grep stderr for any message
4953 # that says an option was ignored or not supported.
4954 # When given -MP, icc 7.0 and 7.1 complain thusly:
4955 # icc: Command line warning: ignoring option '-M'; no argument required
4956 # The diagnosis changed in icc 8.0:
4957 # icc: Command line remark: option '-MP' not supported
4958 if (grep 'ignoring option' conftest.err ||
4959 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4960 am_cv_CXX_dependencies_compiler_type=$depmode
4961 break
4962 fi
4963 fi
4964 done
4965
4966 cd ..
4967 rm -rf conftest.dir
4968 else
4969 am_cv_CXX_dependencies_compiler_type=none
4970 fi
4971
4972 fi
4973 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4974 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4975 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4976
4977
4978
4979 if
4980 test "x$enable_dependency_tracking" != xno \
4981 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4982 am__fastdepCXX_TRUE=
4983 am__fastdepCXX_FALSE='#'
4984 else
4985 am__fastdepCXX_TRUE='#'
4986 am__fastdepCXX_FALSE=
4987 fi
4988
4989
4990
4991
4992 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4993 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4994 (test "X$CXX" != "Xg++"))) ; then
4995 ac_ext=cc
4996 ac_cpp='$CXXCPP $CPPFLAGS'
4997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5000 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5001 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5002 if test -z "$CXXCPP"; then
5003 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 # Double quotes because CXXCPP needs to be expanded
5007 for CXXCPP in "$CXX -E" "/lib/cpp"
5008 do
5009 ac_preproc_ok=false
5010 for ac_cxx_preproc_warn_flag in '' yes
5011 do
5012 # Use a header file that comes with gcc, so configuring glibc
5013 # with a fresh cross-compiler works.
5014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5015 # <limits.h> exists even on freestanding compilers.
5016 # On the NeXT, cc -E runs the code through the compiler's parser,
5017 # not just through cpp. "Syntax error" is here to catch this case.
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 #ifdef __STDC__
5025 # include <limits.h>
5026 #else
5027 # include <assert.h>
5028 #endif
5029 Syntax error
5030 _ACEOF
5031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5033 ac_status=$?
5034 grep -v '^ *+' conftest.er1 >conftest.err
5035 rm -f conftest.er1
5036 cat conftest.err >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); } >/dev/null; then
5039 if test -s conftest.err; then
5040 ac_cpp_err=$ac_cxx_preproc_warn_flag
5041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5042 else
5043 ac_cpp_err=
5044 fi
5045 else
5046 ac_cpp_err=yes
5047 fi
5048 if test -z "$ac_cpp_err"; then
5049 :
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 # Broken: fails on valid input.
5055 continue
5056 fi
5057 rm -f conftest.err conftest.$ac_ext
5058
5059 # OK, works on sane cases. Now check whether non-existent headers
5060 # can be detected and how.
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 #include <ac_nonexistent.h>
5068 _ACEOF
5069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } >/dev/null; then
5077 if test -s conftest.err; then
5078 ac_cpp_err=$ac_cxx_preproc_warn_flag
5079 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5080 else
5081 ac_cpp_err=
5082 fi
5083 else
5084 ac_cpp_err=yes
5085 fi
5086 if test -z "$ac_cpp_err"; then
5087 # Broken: success on invalid input.
5088 continue
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 # Passes both tests.
5094 ac_preproc_ok=:
5095 break
5096 fi
5097 rm -f conftest.err conftest.$ac_ext
5098
5099 done
5100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5101 rm -f conftest.err conftest.$ac_ext
5102 if $ac_preproc_ok; then
5103 break
5104 fi
5105
5106 done
5107 ac_cv_prog_CXXCPP=$CXXCPP
5108
5109 fi
5110 CXXCPP=$ac_cv_prog_CXXCPP
5111 else
5112 ac_cv_prog_CXXCPP=$CXXCPP
5113 fi
5114 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5115 echo "${ECHO_T}$CXXCPP" >&6
5116 ac_preproc_ok=false
5117 for ac_cxx_preproc_warn_flag in '' yes
5118 do
5119 # Use a header file that comes with gcc, so configuring glibc
5120 # with a fresh cross-compiler works.
5121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5122 # <limits.h> exists even on freestanding compilers.
5123 # On the NeXT, cc -E runs the code through the compiler's parser,
5124 # not just through cpp. "Syntax error" is here to catch this case.
5125 cat >conftest.$ac_ext <<_ACEOF
5126 /* confdefs.h. */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 #ifdef __STDC__
5132 # include <limits.h>
5133 #else
5134 # include <assert.h>
5135 #endif
5136 Syntax error
5137 _ACEOF
5138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5140 ac_status=$?
5141 grep -v '^ *+' conftest.er1 >conftest.err
5142 rm -f conftest.er1
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } >/dev/null; then
5146 if test -s conftest.err; then
5147 ac_cpp_err=$ac_cxx_preproc_warn_flag
5148 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5149 else
5150 ac_cpp_err=
5151 fi
5152 else
5153 ac_cpp_err=yes
5154 fi
5155 if test -z "$ac_cpp_err"; then
5156 :
5157 else
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5160
5161 # Broken: fails on valid input.
5162 continue
5163 fi
5164 rm -f conftest.err conftest.$ac_ext
5165
5166 # OK, works on sane cases. Now check whether non-existent headers
5167 # can be detected and how.
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 #include <ac_nonexistent.h>
5175 _ACEOF
5176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5178 ac_status=$?
5179 grep -v '^ *+' conftest.er1 >conftest.err
5180 rm -f conftest.er1
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } >/dev/null; then
5184 if test -s conftest.err; then
5185 ac_cpp_err=$ac_cxx_preproc_warn_flag
5186 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5187 else
5188 ac_cpp_err=
5189 fi
5190 else
5191 ac_cpp_err=yes
5192 fi
5193 if test -z "$ac_cpp_err"; then
5194 # Broken: success on invalid input.
5195 continue
5196 else
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 # Passes both tests.
5201 ac_preproc_ok=:
5202 break
5203 fi
5204 rm -f conftest.err conftest.$ac_ext
5205
5206 done
5207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5208 rm -f conftest.err conftest.$ac_ext
5209 if $ac_preproc_ok; then
5210 :
5211 else
5212 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5213 See \`config.log' for more details." >&5
5214 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5215 See \`config.log' for more details." >&2;}
5216 { (exit 1); exit 1; }; }
5217 fi
5218
5219 ac_ext=cc
5220 ac_cpp='$CXXCPP $CPPFLAGS'
5221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5224
5225 fi
5226
5227
5228 ac_ext=f
5229 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5230 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5232 if test -n "$ac_tool_prefix"; then
5233 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5234 do
5235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_F77+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242 if test -n "$F77"; then
5243 ac_cv_prog_F77="$F77" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2
5255 fi
5256 done
5257 done
5258
5259 fi
5260 fi
5261 F77=$ac_cv_prog_F77
5262 if test -n "$F77"; then
5263 echo "$as_me:$LINENO: result: $F77" >&5
5264 echo "${ECHO_T}$F77" >&6
5265 else
5266 echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5268 fi
5269
5270 test -n "$F77" && break
5271 done
5272 fi
5273 if test -z "$F77"; then
5274 ac_ct_F77=$F77
5275 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5276 do
5277 # Extract the first word of "$ac_prog", so it can be a program name with args.
5278 set dummy $ac_prog; ac_word=$2
5279 echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 if test -n "$ac_ct_F77"; then
5285 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 ac_cv_prog_ac_ct_F77="$ac_prog"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 break 2
5297 fi
5298 done
5299 done
5300
5301 fi
5302 fi
5303 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5304 if test -n "$ac_ct_F77"; then
5305 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5306 echo "${ECHO_T}$ac_ct_F77" >&6
5307 else
5308 echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5310 fi
5311
5312 test -n "$ac_ct_F77" && break
5313 done
5314
5315 F77=$ac_ct_F77
5316 fi
5317
5318
5319 # Provide some information about the compiler.
5320 echo "$as_me:5320:" \
5321 "checking for Fortran 77 compiler version" >&5
5322 ac_compiler=`set X $ac_compile; echo $2`
5323 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5324 (eval $ac_compiler --version </dev/null >&5) 2>&5
5325 ac_status=$?
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }
5328 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5329 (eval $ac_compiler -v </dev/null >&5) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }
5333 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5334 (eval $ac_compiler -V </dev/null >&5) 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }
5338 rm -f a.out
5339
5340 # If we don't use `.F' as extension, the preprocessor is not run on the
5341 # input file. (Note that this only needs to work for GNU compilers.)
5342 ac_save_ext=$ac_ext
5343 ac_ext=F
5344 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5345 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5346 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349 cat >conftest.$ac_ext <<_ACEOF
5350 program main
5351 #ifndef __GNUC__
5352 choke me
5353 #endif
5354
5355 end
5356 _ACEOF
5357 rm -f conftest.$ac_objext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5359 (eval $ac_compile) 2>conftest.er1
5360 ac_status=$?
5361 grep -v '^ *+' conftest.er1 >conftest.err
5362 rm -f conftest.er1
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_f77_werror_flag"
5367 || test ! -s conftest.err'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 (eval $ac_try) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; } &&
5373 { ac_try='test -s conftest.$ac_objext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 (eval $ac_try) 2>&5
5376 ac_status=$?
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_compiler_gnu=yes
5380 else
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 ac_compiler_gnu=no
5385 fi
5386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5388
5389 fi
5390 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5391 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5392 ac_ext=$ac_save_ext
5393 ac_test_FFLAGS=${FFLAGS+set}
5394 ac_save_FFLAGS=$FFLAGS
5395 FFLAGS=
5396 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5397 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5398 if test "${ac_cv_prog_f77_g+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 FFLAGS=-g
5402 cat >conftest.$ac_ext <<_ACEOF
5403 program main
5404
5405 end
5406 _ACEOF
5407 rm -f conftest.$ac_objext
5408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5409 (eval $ac_compile) 2>conftest.er1
5410 ac_status=$?
5411 grep -v '^ *+' conftest.er1 >conftest.err
5412 rm -f conftest.er1
5413 cat conftest.err >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } &&
5416 { ac_try='test -z "$ac_f77_werror_flag"
5417 || test ! -s conftest.err'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; } &&
5423 { ac_try='test -s conftest.$ac_objext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 (eval $ac_try) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 ac_cv_prog_f77_g=yes
5430 else
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 ac_cv_prog_f77_g=no
5435 fi
5436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5437
5438 fi
5439 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5440 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5441 if test "$ac_test_FFLAGS" = set; then
5442 FFLAGS=$ac_save_FFLAGS
5443 elif test $ac_cv_prog_f77_g = yes; then
5444 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5445 FFLAGS="-g -O2"
5446 else
5447 FFLAGS="-g"
5448 fi
5449 else
5450 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5451 FFLAGS="-O2"
5452 else
5453 FFLAGS=
5454 fi
5455 fi
5456
5457 G77=`test $ac_compiler_gnu = yes && echo yes`
5458 ac_ext=c
5459 ac_cpp='$CPP $CPPFLAGS'
5460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5463
5464
5465
5466 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5467
5468 # find the maximum length of command line arguments
5469 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5470 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5471 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474 i=0
5475 teststring="ABCD"
5476
5477 case $build_os in
5478 msdosdjgpp*)
5479 # On DJGPP, this test can blow up pretty badly due to problems in libc
5480 # (any single argument exceeding 2000 bytes causes a buffer overrun
5481 # during glob expansion). Even if it were fixed, the result of this
5482 # check would be larger than it should be.
5483 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5484 ;;
5485
5486 gnu*)
5487 # Under GNU Hurd, this test is not required because there is
5488 # no limit to the length of command line arguments.
5489 # Libtool will interpret -1 as no limit whatsoever
5490 lt_cv_sys_max_cmd_len=-1;
5491 ;;
5492
5493 cygwin* | mingw*)
5494 # On Win9x/ME, this test blows up -- it succeeds, but takes
5495 # about 5 minutes as the teststring grows exponentially.
5496 # Worse, since 9x/ME are not pre-emptively multitasking,
5497 # you end up with a "frozen" computer, even though with patience
5498 # the test eventually succeeds (with a max line length of 256k).
5499 # Instead, let's just punt: use the minimum linelength reported by
5500 # all of the supported platforms: 8192 (on NT/2K/XP).
5501 lt_cv_sys_max_cmd_len=8192;
5502 ;;
5503
5504 amigaos*)
5505 # On AmigaOS with pdksh, this test takes hours, literally.
5506 # So we just punt and use a minimum line length of 8192.
5507 lt_cv_sys_max_cmd_len=8192;
5508 ;;
5509
5510 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5511 # This has been around since 386BSD, at least. Likely further.
5512 if test -x /sbin/sysctl; then
5513 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5514 elif test -x /usr/sbin/sysctl; then
5515 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5516 else
5517 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5518 fi
5519 # And add a safety zone
5520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5522 ;;
5523
5524 interix*)
5525 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5526 lt_cv_sys_max_cmd_len=196608
5527 ;;
5528
5529 osf*)
5530 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5531 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5532 # nice to cause kernel panics so lets avoid the loop below.
5533 # First set a reasonable default.
5534 lt_cv_sys_max_cmd_len=16384
5535 #
5536 if test -x /sbin/sysconfig; then
5537 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5538 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5539 esac
5540 fi
5541 ;;
5542 sco3.2v5*)
5543 lt_cv_sys_max_cmd_len=102400
5544 ;;
5545 sysv5* | sco5v6* | sysv4.2uw2*)
5546 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5547 if test -n "$kargmax"; then
5548 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5549 else
5550 lt_cv_sys_max_cmd_len=32768
5551 fi
5552 ;;
5553 *)
5554 # If test is not a shell built-in, we'll probably end up computing a
5555 # maximum length that is only half of the actual maximum length, but
5556 # we can't tell.
5557 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5558 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5559 = "XX$teststring") >/dev/null 2>&1 &&
5560 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5561 lt_cv_sys_max_cmd_len=$new_result &&
5562 test $i != 17 # 1/2 MB should be enough
5563 do
5564 i=`expr $i + 1`
5565 teststring=$teststring$teststring
5566 done
5567 teststring=
5568 # Add a significant safety factor because C++ compilers can tack on massive
5569 # amounts of additional arguments before passing them to the linker.
5570 # It appears as though 1/2 is a usable value.
5571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5572 ;;
5573 esac
5574
5575 fi
5576
5577 if test -n $lt_cv_sys_max_cmd_len ; then
5578 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5579 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5580 else
5581 echo "$as_me:$LINENO: result: none" >&5
5582 echo "${ECHO_T}none" >&6
5583 fi
5584
5585
5586
5587
5588 # Check for command to grab the raw symbol name followed by C symbol from nm.
5589 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5590 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5591 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594
5595 # These are sane defaults that work on at least a few old systems.
5596 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5597
5598 # Character class describing NM global symbol codes.
5599 symcode='[BCDEGRST]'
5600
5601 # Regexp to match symbols that can be accessed directly from C.
5602 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5603
5604 # Transform an extracted symbol line into a proper C declaration
5605 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5606
5607 # Transform an extracted symbol line into symbol name and symbol address
5608 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'"
5609
5610 # Define system-specific variables.
5611 case $host_os in
5612 aix*)
5613 symcode='[BCDT]'
5614 ;;
5615 cygwin* | mingw* | pw32*)
5616 symcode='[ABCDGISTW]'
5617 ;;
5618 hpux*) # Its linker distinguishes data from code symbols
5619 if test "$host_cpu" = ia64; then
5620 symcode='[ABCDEGRST]'
5621 fi
5622 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5623 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'"
5624 ;;
5625 linux*)
5626 if test "$host_cpu" = ia64; then
5627 symcode='[ABCDGIRSTW]'
5628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5629 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'"
5630 fi
5631 ;;
5632 irix* | nonstopux*)
5633 symcode='[BCDEGRST]'
5634 ;;
5635 osf*)
5636 symcode='[BCDEGQRST]'
5637 ;;
5638 solaris*)
5639 symcode='[BDRT]'
5640 ;;
5641 sco3.2v5*)
5642 symcode='[DT]'
5643 ;;
5644 sysv4.2uw2*)
5645 symcode='[DT]'
5646 ;;
5647 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5648 symcode='[ABDT]'
5649 ;;
5650 sysv4)
5651 symcode='[DFNSTU]'
5652 ;;
5653 esac
5654
5655 # Handle CRLF in mingw tool chain
5656 opt_cr=
5657 case $build_os in
5658 mingw*)
5659 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5660 ;;
5661 esac
5662
5663 # If we're using GNU nm, then use its standard symbol codes.
5664 case `$NM -V 2>&1` in
5665 *GNU* | *'with BFD'*)
5666 symcode='[ABCDGIRSTW]' ;;
5667 esac
5668
5669 # Try without a prefix undercore, then with it.
5670 for ac_symprfx in "" "_"; do
5671
5672 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5673 symxfrm="\\1 $ac_symprfx\\2 \\2"
5674
5675 # Write the raw and C identifiers.
5676 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5677
5678 # Check to see that the pipe works correctly.
5679 pipe_works=no
5680
5681 rm -f conftest*
5682 cat > conftest.$ac_ext <<EOF
5683 #ifdef __cplusplus
5684 extern "C" {
5685 #endif
5686 char nm_test_var;
5687 void nm_test_func(){}
5688 #ifdef __cplusplus
5689 }
5690 #endif
5691 int main(){nm_test_var='a';nm_test_func();return(0);}
5692 EOF
5693
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; then
5699 # Now try to grab the symbols.
5700 nlist=conftest.nm
5701 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5702 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && test -s "$nlist"; then
5706 # Try sorting and uniquifying the output.
5707 if sort "$nlist" | uniq > "$nlist"T; then
5708 mv -f "$nlist"T "$nlist"
5709 else
5710 rm -f "$nlist"T
5711 fi
5712
5713 # Make sure that we snagged all the symbols we need.
5714 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5715 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5716 cat <<EOF > conftest.$ac_ext
5717 #ifdef __cplusplus
5718 extern "C" {
5719 #endif
5720
5721 EOF
5722 # Now generate the symbol file.
5723 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5724
5725 cat <<EOF >> conftest.$ac_ext
5726 #if defined (__STDC__) && __STDC__
5727 # define lt_ptr_t void *
5728 #else
5729 # define lt_ptr_t char *
5730 # define const
5731 #endif
5732
5733 /* The mapping between symbol names and symbols. */
5734 const struct {
5735 const char *name;
5736 lt_ptr_t address;
5737 }
5738 lt_preloaded_symbols[] =
5739 {
5740 EOF
5741 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5742 cat <<\EOF >> conftest.$ac_ext
5743 {0, (lt_ptr_t) 0}
5744 };
5745
5746 #ifdef __cplusplus
5747 }
5748 #endif
5749 EOF
5750 # Now try linking the two files.
5751 mv conftest.$ac_objext conftstm.$ac_objext
5752 lt_save_LIBS="$LIBS"
5753 lt_save_CFLAGS="$CFLAGS"
5754 LIBS="conftstm.$ac_objext"
5755 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757 (eval $ac_link) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5761 pipe_works=yes
5762 fi
5763 LIBS="$lt_save_LIBS"
5764 CFLAGS="$lt_save_CFLAGS"
5765 else
5766 echo "cannot find nm_test_func in $nlist" >&5
5767 fi
5768 else
5769 echo "cannot find nm_test_var in $nlist" >&5
5770 fi
5771 else
5772 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5773 fi
5774 else
5775 echo "$progname: failed program was:" >&5
5776 cat conftest.$ac_ext >&5
5777 fi
5778 rm -f conftest* conftst*
5779
5780 # Do not use the global_symbol_pipe unless it works.
5781 if test "$pipe_works" = yes; then
5782 break
5783 else
5784 lt_cv_sys_global_symbol_pipe=
5785 fi
5786 done
5787
5788 fi
5789
5790 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5791 lt_cv_sys_global_symbol_to_cdecl=
5792 fi
5793 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5794 echo "$as_me:$LINENO: result: failed" >&5
5795 echo "${ECHO_T}failed" >&6
5796 else
5797 echo "$as_me:$LINENO: result: ok" >&5
5798 echo "${ECHO_T}ok" >&6
5799 fi
5800
5801 echo "$as_me:$LINENO: checking for objdir" >&5
5802 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5803 if test "${lt_cv_objdir+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806 rm -f .libs 2>/dev/null
5807 mkdir .libs 2>/dev/null
5808 if test -d .libs; then
5809 lt_cv_objdir=.libs
5810 else
5811 # MS-DOS does not allow filenames that begin with a dot.
5812 lt_cv_objdir=_libs
5813 fi
5814 rmdir .libs 2>/dev/null
5815 fi
5816 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5817 echo "${ECHO_T}$lt_cv_objdir" >&6
5818 objdir=$lt_cv_objdir
5819
5820
5821
5822
5823
5824 case $host_os in
5825 aix3*)
5826 # AIX sometimes has problems with the GCC collect2 program. For some
5827 # reason, if we set the COLLECT_NAMES environment variable, the problems
5828 # vanish in a puff of smoke.
5829 if test "X${COLLECT_NAMES+set}" != Xset; then
5830 COLLECT_NAMES=
5831 export COLLECT_NAMES
5832 fi
5833 ;;
5834 esac
5835
5836 # Sed substitution that helps us do robust quoting. It backslashifies
5837 # metacharacters that are still active within double-quoted strings.
5838 Xsed='sed -e 1s/^X//'
5839 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5840
5841 # Same as above, but do not quote variable references.
5842 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5843
5844 # Sed substitution to delay expansion of an escaped shell variable in a
5845 # double_quote_subst'ed string.
5846 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5847
5848 # Sed substitution to avoid accidental globbing in evaled expressions
5849 no_glob_subst='s/\*/\\\*/g'
5850
5851 # Constants:
5852 rm="rm -f"
5853
5854 # Global variables:
5855 default_ofile=libtool
5856 can_build_shared=yes
5857
5858 # All known linkers require a `.a' archive for static linking (except MSVC,
5859 # which needs '.lib').
5860 libext=a
5861 ltmain="$ac_aux_dir/ltmain.sh"
5862 ofile="$default_ofile"
5863 with_gnu_ld="$lt_cv_prog_gnu_ld"
5864
5865 if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5867 set dummy ${ac_tool_prefix}ar; ac_word=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_prog_AR+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873 if test -n "$AR"; then
5874 ac_cv_prog_AR="$AR" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883 ac_cv_prog_AR="${ac_tool_prefix}ar"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887 done
5888 done
5889
5890 fi
5891 fi
5892 AR=$ac_cv_prog_AR
5893 if test -n "$AR"; then
5894 echo "$as_me:$LINENO: result: $AR" >&5
5895 echo "${ECHO_T}$AR" >&6
5896 else
5897 echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6
5899 fi
5900
5901 fi
5902 if test -z "$ac_cv_prog_AR"; then
5903 ac_ct_AR=$AR
5904 # Extract the first word of "ar", so it can be a program name with args.
5905 set dummy ar; ac_word=$2
5906 echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5908 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911 if test -n "$ac_ct_AR"; then
5912 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_ac_ct_AR="ar"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927
5928 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5929 fi
5930 fi
5931 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5932 if test -n "$ac_ct_AR"; then
5933 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5934 echo "${ECHO_T}$ac_ct_AR" >&6
5935 else
5936 echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6
5938 fi
5939
5940 AR=$ac_ct_AR
5941 else
5942 AR="$ac_cv_prog_AR"
5943 fi
5944
5945 if test -n "$ac_tool_prefix"; then
5946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5947 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5948 echo "$as_me:$LINENO: checking for $ac_word" >&5
5949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5950 if test "${ac_cv_prog_RANLIB+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 if test -n "$RANLIB"; then
5954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5965 break 2
5966 fi
5967 done
5968 done
5969
5970 fi
5971 fi
5972 RANLIB=$ac_cv_prog_RANLIB
5973 if test -n "$RANLIB"; then
5974 echo "$as_me:$LINENO: result: $RANLIB" >&5
5975 echo "${ECHO_T}$RANLIB" >&6
5976 else
5977 echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6
5979 fi
5980
5981 fi
5982 if test -z "$ac_cv_prog_RANLIB"; then
5983 ac_ct_RANLIB=$RANLIB
5984 # Extract the first word of "ranlib", so it can be a program name with args.
5985 set dummy ranlib; ac_word=$2
5986 echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5988 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991 if test -n "$ac_ct_RANLIB"; then
5992 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6001 ac_cv_prog_ac_ct_RANLIB="ranlib"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005 done
6006 done
6007
6008 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6009 fi
6010 fi
6011 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6012 if test -n "$ac_ct_RANLIB"; then
6013 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6014 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6015 else
6016 echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6
6018 fi
6019
6020 RANLIB=$ac_ct_RANLIB
6021 else
6022 RANLIB="$ac_cv_prog_RANLIB"
6023 fi
6024
6025 if test -n "$ac_tool_prefix"; then
6026 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6027 set dummy ${ac_tool_prefix}strip; ac_word=$2
6028 echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030 if test "${ac_cv_prog_STRIP+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 if test -n "$STRIP"; then
6034 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047 done
6048 done
6049
6050 fi
6051 fi
6052 STRIP=$ac_cv_prog_STRIP
6053 if test -n "$STRIP"; then
6054 echo "$as_me:$LINENO: result: $STRIP" >&5
6055 echo "${ECHO_T}$STRIP" >&6
6056 else
6057 echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6
6059 fi
6060
6061 fi
6062 if test -z "$ac_cv_prog_STRIP"; then
6063 ac_ct_STRIP=$STRIP
6064 # Extract the first word of "strip", so it can be a program name with args.
6065 set dummy strip; ac_word=$2
6066 echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071 if test -n "$ac_ct_STRIP"; then
6072 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081 ac_cv_prog_ac_ct_STRIP="strip"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085 done
6086 done
6087
6088 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6089 fi
6090 fi
6091 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6092 if test -n "$ac_ct_STRIP"; then
6093 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6094 echo "${ECHO_T}$ac_ct_STRIP" >&6
6095 else
6096 echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6
6098 fi
6099
6100 STRIP=$ac_ct_STRIP
6101 else
6102 STRIP="$ac_cv_prog_STRIP"
6103 fi
6104
6105
6106 old_CC="$CC"
6107 old_CFLAGS="$CFLAGS"
6108
6109 # Set sane defaults for various variables
6110 test -z "$AR" && AR=ar
6111 test -z "$AR_FLAGS" && AR_FLAGS=cru
6112 test -z "$AS" && AS=as
6113 test -z "$CC" && CC=cc
6114 test -z "$LTCC" && LTCC=$CC
6115 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6116 test -z "$DLLTOOL" && DLLTOOL=dlltool
6117 test -z "$LD" && LD=ld
6118 test -z "$LN_S" && LN_S="ln -s"
6119 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6120 test -z "$NM" && NM=nm
6121 test -z "$SED" && SED=sed
6122 test -z "$OBJDUMP" && OBJDUMP=objdump
6123 test -z "$RANLIB" && RANLIB=:
6124 test -z "$STRIP" && STRIP=:
6125 test -z "$ac_objext" && ac_objext=o
6126
6127 # Determine commands to create old-style static archives.
6128 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6129 old_postinstall_cmds='chmod 644 $oldlib'
6130 old_postuninstall_cmds=
6131
6132 if test -n "$RANLIB"; then
6133 case $host_os in
6134 openbsd*)
6135 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6136 ;;
6137 *)
6138 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6139 ;;
6140 esac
6141 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6142 fi
6143
6144 for cc_temp in $compiler""; do
6145 case $cc_temp in
6146 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6147 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6148 \-*) ;;
6149 *) break;;
6150 esac
6151 done
6152 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6153
6154
6155 # Only perform the check for file, if the check method requires it
6156 case $deplibs_check_method in
6157 file_magic*)
6158 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6159 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6160 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6161 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 case $MAGIC_CMD in
6165 [\\/*] | ?:[\\/]*)
6166 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6167 ;;
6168 *)
6169 lt_save_MAGIC_CMD="$MAGIC_CMD"
6170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6171 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6172 for ac_dir in $ac_dummy; do
6173 IFS="$lt_save_ifs"
6174 test -z "$ac_dir" && ac_dir=.
6175 if test -f $ac_dir/${ac_tool_prefix}file; then
6176 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6177 if test -n "$file_magic_test_file"; then
6178 case $deplibs_check_method in
6179 "file_magic "*)
6180 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6182 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6183 $EGREP "$file_magic_regex" > /dev/null; then
6184 :
6185 else
6186 cat <<EOF 1>&2
6187
6188 *** Warning: the command libtool uses to detect shared libraries,
6189 *** $file_magic_cmd, produces output that libtool cannot recognize.
6190 *** The result is that libtool may fail to recognize shared libraries
6191 *** as such. This will affect the creation of libtool libraries that
6192 *** depend on shared libraries, but programs linked with such libtool
6193 *** libraries will work regardless of this problem. Nevertheless, you
6194 *** may want to report the problem to your system manager and/or to
6195 *** bug-libtool@gnu.org
6196
6197 EOF
6198 fi ;;
6199 esac
6200 fi
6201 break
6202 fi
6203 done
6204 IFS="$lt_save_ifs"
6205 MAGIC_CMD="$lt_save_MAGIC_CMD"
6206 ;;
6207 esac
6208 fi
6209
6210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6211 if test -n "$MAGIC_CMD"; then
6212 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6213 echo "${ECHO_T}$MAGIC_CMD" >&6
6214 else
6215 echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6
6217 fi
6218
6219 if test -z "$lt_cv_path_MAGIC_CMD"; then
6220 if test -n "$ac_tool_prefix"; then
6221 echo "$as_me:$LINENO: checking for file" >&5
6222 echo $ECHO_N "checking for file... $ECHO_C" >&6
6223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 case $MAGIC_CMD in
6227 [\\/*] | ?:[\\/]*)
6228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6229 ;;
6230 *)
6231 lt_save_MAGIC_CMD="$MAGIC_CMD"
6232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6234 for ac_dir in $ac_dummy; do
6235 IFS="$lt_save_ifs"
6236 test -z "$ac_dir" && ac_dir=.
6237 if test -f $ac_dir/file; then
6238 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6239 if test -n "$file_magic_test_file"; then
6240 case $deplibs_check_method in
6241 "file_magic "*)
6242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6245 $EGREP "$file_magic_regex" > /dev/null; then
6246 :
6247 else
6248 cat <<EOF 1>&2
6249
6250 *** Warning: the command libtool uses to detect shared libraries,
6251 *** $file_magic_cmd, produces output that libtool cannot recognize.
6252 *** The result is that libtool may fail to recognize shared libraries
6253 *** as such. This will affect the creation of libtool libraries that
6254 *** depend on shared libraries, but programs linked with such libtool
6255 *** libraries will work regardless of this problem. Nevertheless, you
6256 *** may want to report the problem to your system manager and/or to
6257 *** bug-libtool@gnu.org
6258
6259 EOF
6260 fi ;;
6261 esac
6262 fi
6263 break
6264 fi
6265 done
6266 IFS="$lt_save_ifs"
6267 MAGIC_CMD="$lt_save_MAGIC_CMD"
6268 ;;
6269 esac
6270 fi
6271
6272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6273 if test -n "$MAGIC_CMD"; then
6274 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6275 echo "${ECHO_T}$MAGIC_CMD" >&6
6276 else
6277 echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6
6279 fi
6280
6281 else
6282 MAGIC_CMD=:
6283 fi
6284 fi
6285
6286 fi
6287 ;;
6288 esac
6289
6290 enable_dlopen=no
6291 enable_win32_dll=no
6292
6293 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6294 if test "${enable_libtool_lock+set}" = set; then
6295 enableval="$enable_libtool_lock"
6296
6297 fi;
6298 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6299
6300
6301 # Check whether --with-pic or --without-pic was given.
6302 if test "${with_pic+set}" = set; then
6303 withval="$with_pic"
6304 pic_mode="$withval"
6305 else
6306 pic_mode=default
6307 fi;
6308 test -z "$pic_mode" && pic_mode=default
6309
6310 # Use C for the default configuration in the libtool script
6311 tagname=
6312 lt_save_CC="$CC"
6313 ac_ext=c
6314 ac_cpp='$CPP $CPPFLAGS'
6315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6318
6319
6320 # Source file extension for C test sources.
6321 ac_ext=c
6322
6323 # Object file extension for compiled C test sources.
6324 objext=o
6325 objext=$objext
6326
6327 # Code to be used in simple compile tests
6328 lt_simple_compile_test_code="int some_variable = 0;\n"
6329
6330 # Code to be used in simple link tests
6331 lt_simple_link_test_code='int main(){return(0);}\n'
6332
6333
6334 # If no C compiler was specified, use CC.
6335 LTCC=${LTCC-"$CC"}
6336
6337 # If no C compiler flags were specified, use CFLAGS.
6338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6339
6340 # Allow CC to be a program name with arguments.
6341 compiler=$CC
6342
6343
6344 # save warnings/boilerplate of simple test code
6345 ac_outfile=conftest.$ac_objext
6346 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6347 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6348 _lt_compiler_boilerplate=`cat conftest.err`
6349 $rm conftest*
6350
6351 ac_outfile=conftest.$ac_objext
6352 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6353 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6354 _lt_linker_boilerplate=`cat conftest.err`
6355 $rm conftest*
6356
6357
6358
6359 lt_prog_compiler_no_builtin_flag=
6360
6361 if test "$GCC" = yes; then
6362 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6363
6364
6365 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6366 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6367 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370 lt_cv_prog_compiler_rtti_exceptions=no
6371 ac_outfile=conftest.$ac_objext
6372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6373 lt_compiler_flag="-fno-rtti -fno-exceptions"
6374 # Insert the option either (1) after the last *FLAGS variable, or
6375 # (2) before a word containing "conftest.", or (3) at the end.
6376 # Note that $ac_compile itself does not contain backslashes and begins
6377 # with a dollar sign (not a hyphen), so the echo should work correctly.
6378 # The option is referenced via a variable to avoid confusing sed.
6379 lt_compile=`echo "$ac_compile" | $SED \
6380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6382 -e 's:$: $lt_compiler_flag:'`
6383 (eval echo "\"\$as_me:6383: $lt_compile\"" >&5)
6384 (eval "$lt_compile" 2>conftest.err)
6385 ac_status=$?
6386 cat conftest.err >&5
6387 echo "$as_me:6387: \$? = $ac_status" >&5
6388 if (exit $ac_status) && test -s "$ac_outfile"; then
6389 # The compiler can only warn and ignore the option if not recognized
6390 # So say no if there are warnings other than the usual output.
6391 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6394 lt_cv_prog_compiler_rtti_exceptions=yes
6395 fi
6396 fi
6397 $rm conftest*
6398
6399 fi
6400 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6401 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6402
6403 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6404 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6405 else
6406 :
6407 fi
6408
6409 fi
6410
6411 lt_prog_compiler_wl=
6412 lt_prog_compiler_pic=
6413 lt_prog_compiler_static=
6414
6415 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6416 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6417
6418 if test "$GCC" = yes; then
6419 lt_prog_compiler_wl='-Wl,'
6420 lt_prog_compiler_static='-static'
6421
6422 case $host_os in
6423 aix*)
6424 # All AIX code is PIC.
6425 if test "$host_cpu" = ia64; then
6426 # AIX 5 now supports IA64 processor
6427 lt_prog_compiler_static='-Bstatic'
6428 fi
6429 ;;
6430
6431 amigaos*)
6432 # FIXME: we need at least 68020 code to build shared libraries, but
6433 # adding the `-m68020' flag to GCC prevents building anything better,
6434 # like `-m68040'.
6435 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6436 ;;
6437
6438 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6439 # PIC is the default for these OSes.
6440 ;;
6441
6442 mingw* | pw32* | os2*)
6443 # This hack is so that the source file can tell whether it is being
6444 # built for inclusion in a dll (and should export symbols for example).
6445 lt_prog_compiler_pic='-DDLL_EXPORT'
6446 ;;
6447
6448 darwin* | rhapsody*)
6449 # PIC is the default on this platform
6450 # Common symbols not allowed in MH_DYLIB files
6451 lt_prog_compiler_pic='-fno-common'
6452 ;;
6453
6454 interix3*)
6455 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6456 # Instead, we relocate shared libraries at runtime.
6457 ;;
6458
6459 msdosdjgpp*)
6460 # Just because we use GCC doesn't mean we suddenly get shared libraries
6461 # on systems that don't support them.
6462 lt_prog_compiler_can_build_shared=no
6463 enable_shared=no
6464 ;;
6465
6466 sysv4*MP*)
6467 if test -d /usr/nec; then
6468 lt_prog_compiler_pic=-Kconform_pic
6469 fi
6470 ;;
6471
6472 hpux*)
6473 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6474 # not for PA HP-UX.
6475 case $host_cpu in
6476 hppa*64*|ia64*)
6477 # +Z the default
6478 ;;
6479 *)
6480 lt_prog_compiler_pic='-fPIC'
6481 ;;
6482 esac
6483 ;;
6484
6485 *)
6486 lt_prog_compiler_pic='-fPIC'
6487 ;;
6488 esac
6489 else
6490 # PORTME Check for flag to pass linker flags through the system compiler.
6491 case $host_os in
6492 aix*)
6493 lt_prog_compiler_wl='-Wl,'
6494 if test "$host_cpu" = ia64; then
6495 # AIX 5 now supports IA64 processor
6496 lt_prog_compiler_static='-Bstatic'
6497 else
6498 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6499 fi
6500 ;;
6501 darwin*)
6502 # PIC is the default on this platform
6503 # Common symbols not allowed in MH_DYLIB files
6504 case $cc_basename in
6505 xlc*)
6506 lt_prog_compiler_pic='-qnocommon'
6507 lt_prog_compiler_wl='-Wl,'
6508 ;;
6509 esac
6510 ;;
6511
6512 mingw* | pw32* | os2*)
6513 # This hack is so that the source file can tell whether it is being
6514 # built for inclusion in a dll (and should export symbols for example).
6515 lt_prog_compiler_pic='-DDLL_EXPORT'
6516 ;;
6517
6518 hpux9* | hpux10* | hpux11*)
6519 lt_prog_compiler_wl='-Wl,'
6520 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6521 # not for PA HP-UX.
6522 case $host_cpu in
6523 hppa*64*|ia64*)
6524 # +Z the default
6525 ;;
6526 *)
6527 lt_prog_compiler_pic='+Z'
6528 ;;
6529 esac
6530 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6531 lt_prog_compiler_static='${wl}-a ${wl}archive'
6532 ;;
6533
6534 irix5* | irix6* | nonstopux*)
6535 lt_prog_compiler_wl='-Wl,'
6536 # PIC (with -KPIC) is the default.
6537 lt_prog_compiler_static='-non_shared'
6538 ;;
6539
6540 newsos6)
6541 lt_prog_compiler_pic='-KPIC'
6542 lt_prog_compiler_static='-Bstatic'
6543 ;;
6544
6545 linux*)
6546 case $cc_basename in
6547 icc* | ecc*)
6548 lt_prog_compiler_wl='-Wl,'
6549 lt_prog_compiler_pic='-KPIC'
6550 lt_prog_compiler_static='-static'
6551 ;;
6552 pgcc* | pgf77* | pgf90* | pgf95*)
6553 # Portland Group compilers (*not* the Pentium gcc compiler,
6554 # which looks to be a dead project)
6555 lt_prog_compiler_wl='-Wl,'
6556 lt_prog_compiler_pic='-fpic'
6557 lt_prog_compiler_static='-Bstatic'
6558 ;;
6559 ccc*)
6560 lt_prog_compiler_wl='-Wl,'
6561 # All Alpha code is PIC.
6562 lt_prog_compiler_static='-non_shared'
6563 ;;
6564 esac
6565 ;;
6566
6567 osf3* | osf4* | osf5*)
6568 lt_prog_compiler_wl='-Wl,'
6569 # All OSF/1 code is PIC.
6570 lt_prog_compiler_static='-non_shared'
6571 ;;
6572
6573 solaris*)
6574 lt_prog_compiler_pic='-KPIC'
6575 lt_prog_compiler_static='-Bstatic'
6576 case $cc_basename in
6577 f77* | f90* | f95*)
6578 lt_prog_compiler_wl='-Qoption ld ';;
6579 *)
6580 lt_prog_compiler_wl='-Wl,';;
6581 esac
6582 ;;
6583
6584 sunos4*)
6585 lt_prog_compiler_wl='-Qoption ld '
6586 lt_prog_compiler_pic='-PIC'
6587 lt_prog_compiler_static='-Bstatic'
6588 ;;
6589
6590 sysv4 | sysv4.2uw2* | sysv4.3*)
6591 lt_prog_compiler_wl='-Wl,'
6592 lt_prog_compiler_pic='-KPIC'
6593 lt_prog_compiler_static='-Bstatic'
6594 ;;
6595
6596 sysv4*MP*)
6597 if test -d /usr/nec ;then
6598 lt_prog_compiler_pic='-Kconform_pic'
6599 lt_prog_compiler_static='-Bstatic'
6600 fi
6601 ;;
6602
6603 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6604 lt_prog_compiler_wl='-Wl,'
6605 lt_prog_compiler_pic='-KPIC'
6606 lt_prog_compiler_static='-Bstatic'
6607 ;;
6608
6609 unicos*)
6610 lt_prog_compiler_wl='-Wl,'
6611 lt_prog_compiler_can_build_shared=no
6612 ;;
6613
6614 uts4*)
6615 lt_prog_compiler_pic='-pic'
6616 lt_prog_compiler_static='-Bstatic'
6617 ;;
6618
6619 *)
6620 lt_prog_compiler_can_build_shared=no
6621 ;;
6622 esac
6623 fi
6624
6625 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6626 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6627
6628 #
6629 # Check to make sure the PIC flag actually works.
6630 #
6631 if test -n "$lt_prog_compiler_pic"; then
6632
6633 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6634 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6635 if test "${lt_prog_compiler_pic_works+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 lt_prog_compiler_pic_works=no
6639 ac_outfile=conftest.$ac_objext
6640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6641 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6642 # Insert the option either (1) after the last *FLAGS variable, or
6643 # (2) before a word containing "conftest.", or (3) at the end.
6644 # Note that $ac_compile itself does not contain backslashes and begins
6645 # with a dollar sign (not a hyphen), so the echo should work correctly.
6646 # The option is referenced via a variable to avoid confusing sed.
6647 lt_compile=`echo "$ac_compile" | $SED \
6648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6650 -e 's:$: $lt_compiler_flag:'`
6651 (eval echo "\"\$as_me:6651: $lt_compile\"" >&5)
6652 (eval "$lt_compile" 2>conftest.err)
6653 ac_status=$?
6654 cat conftest.err >&5
6655 echo "$as_me:6655: \$? = $ac_status" >&5
6656 if (exit $ac_status) && test -s "$ac_outfile"; then
6657 # The compiler can only warn and ignore the option if not recognized
6658 # So say no if there are warnings other than the usual output.
6659 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6662 lt_prog_compiler_pic_works=yes
6663 fi
6664 fi
6665 $rm conftest*
6666
6667 fi
6668 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6669 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6670
6671 if test x"$lt_prog_compiler_pic_works" = xyes; then
6672 case $lt_prog_compiler_pic in
6673 "" | " "*) ;;
6674 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6675 esac
6676 else
6677 lt_prog_compiler_pic=
6678 lt_prog_compiler_can_build_shared=no
6679 fi
6680
6681 fi
6682 case $host_os in
6683 # For platforms which do not support PIC, -DPIC is meaningless:
6684 *djgpp*)
6685 lt_prog_compiler_pic=
6686 ;;
6687 *)
6688 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6689 ;;
6690 esac
6691
6692 #
6693 # Check to make sure the static flag actually works.
6694 #
6695 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6696 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6697 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6698 if test "${lt_prog_compiler_static_works+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 lt_prog_compiler_static_works=no
6702 save_LDFLAGS="$LDFLAGS"
6703 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6704 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6705 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6706 # The linker can only warn and ignore the option if not recognized
6707 # So say no if there are warnings
6708 if test -s conftest.err; then
6709 # Append any errors to the config.log.
6710 cat conftest.err 1>&5
6711 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6712 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6713 if diff conftest.exp conftest.er2 >/dev/null; then
6714 lt_prog_compiler_static_works=yes
6715 fi
6716 else
6717 lt_prog_compiler_static_works=yes
6718 fi
6719 fi
6720 $rm conftest*
6721 LDFLAGS="$save_LDFLAGS"
6722
6723 fi
6724 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6725 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6726
6727 if test x"$lt_prog_compiler_static_works" = xyes; then
6728 :
6729 else
6730 lt_prog_compiler_static=
6731 fi
6732
6733
6734 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6735 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6736 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 lt_cv_prog_compiler_c_o=no
6740 $rm -r conftest 2>/dev/null
6741 mkdir conftest
6742 cd conftest
6743 mkdir out
6744 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6745
6746 lt_compiler_flag="-o out/conftest2.$ac_objext"
6747 # Insert the option either (1) after the last *FLAGS variable, or
6748 # (2) before a word containing "conftest.", or (3) at the end.
6749 # Note that $ac_compile itself does not contain backslashes and begins
6750 # with a dollar sign (not a hyphen), so the echo should work correctly.
6751 lt_compile=`echo "$ac_compile" | $SED \
6752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6754 -e 's:$: $lt_compiler_flag:'`
6755 (eval echo "\"\$as_me:6755: $lt_compile\"" >&5)
6756 (eval "$lt_compile" 2>out/conftest.err)
6757 ac_status=$?
6758 cat out/conftest.err >&5
6759 echo "$as_me:6759: \$? = $ac_status" >&5
6760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6761 then
6762 # The compiler can only warn and ignore the option if not recognized
6763 # So say no if there are warnings
6764 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6767 lt_cv_prog_compiler_c_o=yes
6768 fi
6769 fi
6770 chmod u+w . 2>&5
6771 $rm conftest*
6772 # SGI C++ compiler will create directory out/ii_files/ for
6773 # template instantiation
6774 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6775 $rm out/* && rmdir out
6776 cd ..
6777 rmdir conftest
6778 $rm conftest*
6779
6780 fi
6781 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6782 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6783
6784
6785 hard_links="nottested"
6786 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6787 # do not overwrite the value of need_locks provided by the user
6788 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6789 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6790 hard_links=yes
6791 $rm conftest*
6792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6793 touch conftest.a
6794 ln conftest.a conftest.b 2>&5 || hard_links=no
6795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6796 echo "$as_me:$LINENO: result: $hard_links" >&5
6797 echo "${ECHO_T}$hard_links" >&6
6798 if test "$hard_links" = no; then
6799 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6800 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6801 need_locks=warn
6802 fi
6803 else
6804 need_locks=no
6805 fi
6806
6807 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6808 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6809
6810 runpath_var=
6811 allow_undefined_flag=
6812 enable_shared_with_static_runtimes=no
6813 archive_cmds=
6814 archive_expsym_cmds=
6815 old_archive_From_new_cmds=
6816 old_archive_from_expsyms_cmds=
6817 export_dynamic_flag_spec=
6818 whole_archive_flag_spec=
6819 thread_safe_flag_spec=
6820 hardcode_libdir_flag_spec=
6821 hardcode_libdir_flag_spec_ld=
6822 hardcode_libdir_separator=
6823 hardcode_direct=no
6824 hardcode_minus_L=no
6825 hardcode_shlibpath_var=unsupported
6826 link_all_deplibs=unknown
6827 hardcode_automatic=no
6828 module_cmds=
6829 module_expsym_cmds=
6830 always_export_symbols=no
6831 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6832 # include_expsyms should be a list of space-separated symbols to be *always*
6833 # included in the symbol list
6834 include_expsyms=
6835 # exclude_expsyms can be an extended regexp of symbols to exclude
6836 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6837 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6838 # as well as any symbol that contains `d'.
6839 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6840 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6841 # platforms (ab)use it in PIC code, but their linkers get confused if
6842 # the symbol is explicitly referenced. Since portable code cannot
6843 # rely on this symbol name, it's probably fine to never include it in
6844 # preloaded symbol tables.
6845 extract_expsyms_cmds=
6846 # Just being paranoid about ensuring that cc_basename is set.
6847 for cc_temp in $compiler""; do
6848 case $cc_temp in
6849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6851 \-*) ;;
6852 *) break;;
6853 esac
6854 done
6855 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6856
6857 case $host_os in
6858 cygwin* | mingw* | pw32*)
6859 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6860 # When not using gcc, we currently assume that we are using
6861 # Microsoft Visual C++.
6862 if test "$GCC" != yes; then
6863 with_gnu_ld=no
6864 fi
6865 ;;
6866 interix*)
6867 # we just hope/assume this is gcc and not c89 (= MSVC++)
6868 with_gnu_ld=yes
6869 ;;
6870 openbsd*)
6871 with_gnu_ld=no
6872 ;;
6873 esac
6874
6875 ld_shlibs=yes
6876 if test "$with_gnu_ld" = yes; then
6877 # If archive_cmds runs LD, not CC, wlarc should be empty
6878 wlarc='${wl}'
6879
6880 # Set some defaults for GNU ld with shared library support. These
6881 # are reset later if shared libraries are not supported. Putting them
6882 # here allows them to be overridden if necessary.
6883 runpath_var=LD_RUN_PATH
6884 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6885 export_dynamic_flag_spec='${wl}--export-dynamic'
6886 # ancient GNU ld didn't support --whole-archive et. al.
6887 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6888 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6889 else
6890 whole_archive_flag_spec=
6891 fi
6892 supports_anon_versioning=no
6893 case `$LD -v 2>/dev/null` in
6894 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6895 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6896 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6897 *\ 2.11.*) ;; # other 2.11 versions
6898 *) supports_anon_versioning=yes ;;
6899 esac
6900
6901 # See if GNU ld supports shared libraries.
6902 case $host_os in
6903 aix3* | aix4* | aix5*)
6904 # On AIX/PPC, the GNU linker is very broken
6905 if test "$host_cpu" != ia64; then
6906 ld_shlibs=no
6907 cat <<EOF 1>&2
6908
6909 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6910 *** to be unable to reliably create shared libraries on AIX.
6911 *** Therefore, libtool is disabling shared libraries support. If you
6912 *** really care for shared libraries, you may want to modify your PATH
6913 *** so that a non-GNU linker is found, and then restart.
6914
6915 EOF
6916 fi
6917 ;;
6918
6919 amigaos*)
6920 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)'
6921 hardcode_libdir_flag_spec='-L$libdir'
6922 hardcode_minus_L=yes
6923
6924 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
6925 # that the semantics of dynamic libraries on AmigaOS, at least up
6926 # to version 4, is to share data among multiple programs linked
6927 # with the same dynamic library. Since this doesn't match the
6928 # behavior of shared libraries on other platforms, we can't use
6929 # them.
6930 ld_shlibs=no
6931 ;;
6932
6933 beos*)
6934 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6935 allow_undefined_flag=unsupported
6936 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
6937 # support --undefined. This deserves some investigation. FIXME
6938 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6939 else
6940 ld_shlibs=no
6941 fi
6942 ;;
6943
6944 cygwin* | mingw* | pw32*)
6945 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6946 # as there is no search path for DLLs.
6947 hardcode_libdir_flag_spec='-L$libdir'
6948 allow_undefined_flag=unsupported
6949 always_export_symbols=no
6950 enable_shared_with_static_runtimes=yes
6951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6952
6953 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6955 # If the export-symbols file already is a .def file (1st line
6956 # is EXPORTS), use it as is; otherwise, prepend...
6957 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6958 cp $export_symbols $output_objdir/$soname.def;
6959 else
6960 echo EXPORTS > $output_objdir/$soname.def;
6961 cat $export_symbols >> $output_objdir/$soname.def;
6962 fi~
6963 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6964 else
6965 ld_shlibs=no
6966 fi
6967 ;;
6968
6969 interix3*)
6970 hardcode_direct=no
6971 hardcode_shlibpath_var=no
6972 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6973 export_dynamic_flag_spec='${wl}-E'
6974 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6975 # Instead, shared libraries are loaded at an image base (0x10000000 by
6976 # default) and relocated if they conflict, which is a slow very memory
6977 # consuming and fragmenting process. To avoid this, we pick a random,
6978 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6979 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6981 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6982 ;;
6983
6984 linux*)
6985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6986 tmp_addflag=
6987 case $cc_basename,$host_cpu in
6988 pgcc*) # Portland Group C compiler
6989 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'
6990 tmp_addflag=' $pic_flag'
6991 ;;
6992 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6993 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'
6994 tmp_addflag=' $pic_flag -Mnomain' ;;
6995 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6996 tmp_addflag=' -i_dynamic' ;;
6997 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6998 tmp_addflag=' -i_dynamic -nofor_main' ;;
6999 ifc* | ifort*) # Intel Fortran compiler
7000 tmp_addflag=' -nofor_main' ;;
7001 esac
7002 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7003
7004 if test $supports_anon_versioning = yes; then
7005 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7007 $echo "local: *; };" >> $output_objdir/$libname.ver~
7008 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7009 fi
7010 else
7011 ld_shlibs=no
7012 fi
7013 ;;
7014
7015 netbsd*)
7016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7017 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7018 wlarc=
7019 else
7020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7022 fi
7023 ;;
7024
7025 solaris*)
7026 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7027 ld_shlibs=no
7028 cat <<EOF 1>&2
7029
7030 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7031 *** create shared libraries on Solaris systems. Therefore, libtool
7032 *** is disabling shared libraries support. We urge you to upgrade GNU
7033 *** binutils to release 2.9.1 or newer. Another option is to modify
7034 *** your PATH or compiler configuration so that the native linker is
7035 *** used, and then restart.
7036
7037 EOF
7038 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7041 else
7042 ld_shlibs=no
7043 fi
7044 ;;
7045
7046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7047 case `$LD -v 2>&1` in
7048 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7049 ld_shlibs=no
7050 cat <<_LT_EOF 1>&2
7051
7052 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7053 *** reliably create shared libraries on SCO systems. Therefore, libtool
7054 *** is disabling shared libraries support. We urge you to upgrade GNU
7055 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7056 *** your PATH or compiler configuration so that the native linker is
7057 *** used, and then restart.
7058
7059 _LT_EOF
7060 ;;
7061 *)
7062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7063 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7066 else
7067 ld_shlibs=no
7068 fi
7069 ;;
7070 esac
7071 ;;
7072
7073 sunos4*)
7074 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7075 wlarc=
7076 hardcode_direct=yes
7077 hardcode_shlibpath_var=no
7078 ;;
7079
7080 *)
7081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7084 else
7085 ld_shlibs=no
7086 fi
7087 ;;
7088 esac
7089
7090 if test "$ld_shlibs" = no; then
7091 runpath_var=
7092 hardcode_libdir_flag_spec=
7093 export_dynamic_flag_spec=
7094 whole_archive_flag_spec=
7095 fi
7096 else
7097 # PORTME fill in a description of your system's linker (not GNU ld)
7098 case $host_os in
7099 aix3*)
7100 allow_undefined_flag=unsupported
7101 always_export_symbols=yes
7102 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'
7103 # Note: this linker hardcodes the directories in LIBPATH if there
7104 # are no directories specified by -L.
7105 hardcode_minus_L=yes
7106 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7107 # Neither direct hardcoding nor static linking is supported with a
7108 # broken collect2.
7109 hardcode_direct=unsupported
7110 fi
7111 ;;
7112
7113 aix4* | aix5*)
7114 if test "$host_cpu" = ia64; then
7115 # On IA64, the linker does run time linking by default, so we don't
7116 # have to do anything special.
7117 aix_use_runtimelinking=no
7118 exp_sym_flag='-Bexport'
7119 no_entry_flag=""
7120 else
7121 # If we're using GNU nm, then we don't want the "-C" option.
7122 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7123 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7124 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'
7125 else
7126 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'
7127 fi
7128 aix_use_runtimelinking=no
7129
7130 # Test if we are trying to use run time linking or normal
7131 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7132 # need to do runtime linking.
7133 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7134 for ld_flag in $LDFLAGS; do
7135 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7136 aix_use_runtimelinking=yes
7137 break
7138 fi
7139 done
7140 ;;
7141 esac
7142
7143 exp_sym_flag='-bexport'
7144 no_entry_flag='-bnoentry'
7145 fi
7146
7147 # When large executables or shared objects are built, AIX ld can
7148 # have problems creating the table of contents. If linking a library
7149 # or program results in "error TOC overflow" add -mminimal-toc to
7150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7152
7153 archive_cmds=''
7154 hardcode_direct=yes
7155 hardcode_libdir_separator=':'
7156 link_all_deplibs=yes
7157
7158 if test "$GCC" = yes; then
7159 case $host_os in aix4.[012]|aix4.[012].*)
7160 # We only want to do this on AIX 4.2 and lower, the check
7161 # below for broken collect2 doesn't work under 4.3+
7162 collect2name=`${CC} -print-prog-name=collect2`
7163 if test -f "$collect2name" && \
7164 strings "$collect2name" | grep resolve_lib_name >/dev/null
7165 then
7166 # We have reworked collect2
7167 hardcode_direct=yes
7168 else
7169 # We have old collect2
7170 hardcode_direct=unsupported
7171 # It fails to find uninstalled libraries when the uninstalled
7172 # path is not listed in the libpath. Setting hardcode_minus_L
7173 # to unsupported forces relinking
7174 hardcode_minus_L=yes
7175 hardcode_libdir_flag_spec='-L$libdir'
7176 hardcode_libdir_separator=
7177 fi
7178 ;;
7179 esac
7180 shared_flag='-shared'
7181 if test "$aix_use_runtimelinking" = yes; then
7182 shared_flag="$shared_flag "'${wl}-G'
7183 fi
7184 else
7185 # not using gcc
7186 if test "$host_cpu" = ia64; then
7187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7188 # chokes on -Wl,-G. The following line is correct:
7189 shared_flag='-G'
7190 else
7191 if test "$aix_use_runtimelinking" = yes; then
7192 shared_flag='${wl}-G'
7193 else
7194 shared_flag='${wl}-bM:SRE'
7195 fi
7196 fi
7197 fi
7198
7199 # It seems that -bexpall does not export symbols beginning with
7200 # underscore (_), so it is better to generate a list of symbols to export.
7201 always_export_symbols=yes
7202 if test "$aix_use_runtimelinking" = yes; then
7203 # Warning - without using the other runtime loading flags (-brtl),
7204 # -berok will link without error, but may produce a broken library.
7205 allow_undefined_flag='-berok'
7206 # Determine the default libpath from the value encoded in an empty executable.
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213
7214 int
7215 main ()
7216 {
7217
7218 ;
7219 return 0;
7220 }
7221 _ACEOF
7222 rm -f conftest.$ac_objext conftest$ac_exeext
7223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7224 (eval $ac_link) 2>conftest.er1
7225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } &&
7231 { ac_try='test -z "$ac_c_werror_flag"
7232 || test ! -s conftest.err'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; } &&
7238 { ac_try='test -s conftest$ac_exeext'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7244
7245 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7246 }'`
7247 # Check for a 64-bit object if we didn't find anything.
7248 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; }
7249 }'`; fi
7250 else
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7253
7254 fi
7255 rm -f conftest.err conftest.$ac_objext \
7256 conftest$ac_exeext conftest.$ac_ext
7257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7258
7259 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7260 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7261 else
7262 if test "$host_cpu" = ia64; then
7263 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7264 allow_undefined_flag="-z nodefs"
7265 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7266 else
7267 # Determine the default libpath from the value encoded in an empty executable.
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h. */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274
7275 int
7276 main ()
7277 {
7278
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest$ac_exeext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305
7306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7307 }'`
7308 # Check for a 64-bit object if we didn't find anything.
7309 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; }
7310 }'`; fi
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 fi
7316 rm -f conftest.err conftest.$ac_objext \
7317 conftest$ac_exeext conftest.$ac_ext
7318 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7319
7320 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7321 # Warning - without using the other run time loading flags,
7322 # -berok will link without error, but may produce a broken library.
7323 no_undefined_flag=' ${wl}-bernotok'
7324 allow_undefined_flag=' ${wl}-berok'
7325 # Exported symbols can be pulled into shared objects from archives
7326 whole_archive_flag_spec='$convenience'
7327 archive_cmds_need_lc=yes
7328 # This is similar to how AIX traditionally builds its shared libraries.
7329 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7330 fi
7331 fi
7332 ;;
7333
7334 amigaos*)
7335 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)'
7336 hardcode_libdir_flag_spec='-L$libdir'
7337 hardcode_minus_L=yes
7338 # see comment about different semantics on the GNU ld section
7339 ld_shlibs=no
7340 ;;
7341
7342 bsdi[45]*)
7343 export_dynamic_flag_spec=-rdynamic
7344 ;;
7345
7346 cygwin* | mingw* | pw32*)
7347 # When not using gcc, we currently assume that we are using
7348 # Microsoft Visual C++.
7349 # hardcode_libdir_flag_spec is actually meaningless, as there is
7350 # no search path for DLLs.
7351 hardcode_libdir_flag_spec=' '
7352 allow_undefined_flag=unsupported
7353 # Tell ltmain to make .lib files, not .a files.
7354 libext=lib
7355 # Tell ltmain to make .dll files, not .so files.
7356 shrext_cmds=".dll"
7357 # FIXME: Setting linknames here is a bad hack.
7358 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7359 # The linker will automatically build a .lib file if we build a DLL.
7360 old_archive_From_new_cmds='true'
7361 # FIXME: Should let the user specify the lib program.
7362 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7363 fix_srcfile_path='`cygpath -w "$srcfile"`'
7364 enable_shared_with_static_runtimes=yes
7365 ;;
7366
7367 darwin* | rhapsody*)
7368 case $host_os in
7369 rhapsody* | darwin1.[012])
7370 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7371 ;;
7372 *) # Darwin 1.3 on
7373 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7374 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7375 else
7376 case ${MACOSX_DEPLOYMENT_TARGET} in
7377 10.[012])
7378 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7379 ;;
7380 10.*)
7381 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7382 ;;
7383 esac
7384 fi
7385 ;;
7386 esac
7387 archive_cmds_need_lc=no
7388 hardcode_direct=no
7389 hardcode_automatic=yes
7390 hardcode_shlibpath_var=unsupported
7391 whole_archive_flag_spec=''
7392 link_all_deplibs=yes
7393 if test "$GCC" = yes ; then
7394 output_verbose_link_cmd='echo'
7395 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7396 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7398 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}'
7399 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}'
7400 else
7401 case $cc_basename in
7402 xlc*)
7403 output_verbose_link_cmd='echo'
7404 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7405 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7407 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}'
7408 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}'
7409 ;;
7410 *)
7411 ld_shlibs=no
7412 ;;
7413 esac
7414 fi
7415 ;;
7416
7417 dgux*)
7418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7419 hardcode_libdir_flag_spec='-L$libdir'
7420 hardcode_shlibpath_var=no
7421 ;;
7422
7423 freebsd1*)
7424 ld_shlibs=no
7425 ;;
7426
7427 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7428 # support. Future versions do this automatically, but an explicit c++rt0.o
7429 # does not break anything, and helps significantly (at the cost of a little
7430 # extra space).
7431 freebsd2.2*)
7432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7433 hardcode_libdir_flag_spec='-R$libdir'
7434 hardcode_direct=yes
7435 hardcode_shlibpath_var=no
7436 ;;
7437
7438 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7439 freebsd2*)
7440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7441 hardcode_direct=yes
7442 hardcode_minus_L=yes
7443 hardcode_shlibpath_var=no
7444 ;;
7445
7446 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7447 freebsd* | kfreebsd*-gnu | dragonfly*)
7448 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7449 hardcode_libdir_flag_spec='-R$libdir'
7450 hardcode_direct=yes
7451 hardcode_shlibpath_var=no
7452 ;;
7453
7454 hpux9*)
7455 if test "$GCC" = yes; then
7456 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'
7457 else
7458 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'
7459 fi
7460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7461 hardcode_libdir_separator=:
7462 hardcode_direct=yes
7463
7464 # hardcode_minus_L: Not really in the search PATH,
7465 # but as the default location of the library.
7466 hardcode_minus_L=yes
7467 export_dynamic_flag_spec='${wl}-E'
7468 ;;
7469
7470 hpux10*)
7471 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7472 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7473 else
7474 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7475 fi
7476 if test "$with_gnu_ld" = no; then
7477 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7478 hardcode_libdir_separator=:
7479
7480 hardcode_direct=yes
7481 export_dynamic_flag_spec='${wl}-E'
7482
7483 # hardcode_minus_L: Not really in the search PATH,
7484 # but as the default location of the library.
7485 hardcode_minus_L=yes
7486 fi
7487 ;;
7488
7489 hpux11*)
7490 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7491 case $host_cpu in
7492 hppa*64*)
7493 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7494 ;;
7495 ia64*)
7496 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7497 ;;
7498 *)
7499 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7500 ;;
7501 esac
7502 else
7503 case $host_cpu in
7504 hppa*64*)
7505 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7506 ;;
7507 ia64*)
7508 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7509 ;;
7510 *)
7511 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7512 ;;
7513 esac
7514 fi
7515 if test "$with_gnu_ld" = no; then
7516 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7517 hardcode_libdir_separator=:
7518
7519 case $host_cpu in
7520 hppa*64*|ia64*)
7521 hardcode_libdir_flag_spec_ld='+b $libdir'
7522 hardcode_direct=no
7523 hardcode_shlibpath_var=no
7524 ;;
7525 *)
7526 hardcode_direct=yes
7527 export_dynamic_flag_spec='${wl}-E'
7528
7529 # hardcode_minus_L: Not really in the search PATH,
7530 # but as the default location of the library.
7531 hardcode_minus_L=yes
7532 ;;
7533 esac
7534 fi
7535 ;;
7536
7537 irix5* | irix6* | nonstopux*)
7538 if test "$GCC" = yes; then
7539 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'
7540 else
7541 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'
7542 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7543 fi
7544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7545 hardcode_libdir_separator=:
7546 link_all_deplibs=yes
7547 ;;
7548
7549 netbsd*)
7550 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7552 else
7553 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7554 fi
7555 hardcode_libdir_flag_spec='-R$libdir'
7556 hardcode_direct=yes
7557 hardcode_shlibpath_var=no
7558 ;;
7559
7560 newsos6)
7561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7562 hardcode_direct=yes
7563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7564 hardcode_libdir_separator=:
7565 hardcode_shlibpath_var=no
7566 ;;
7567
7568 openbsd*)
7569 hardcode_direct=yes
7570 hardcode_shlibpath_var=no
7571 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7573 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7575 export_dynamic_flag_spec='${wl}-E'
7576 else
7577 case $host_os in
7578 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7580 hardcode_libdir_flag_spec='-R$libdir'
7581 ;;
7582 *)
7583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7585 ;;
7586 esac
7587 fi
7588 ;;
7589
7590 os2*)
7591 hardcode_libdir_flag_spec='-L$libdir'
7592 hardcode_minus_L=yes
7593 allow_undefined_flag=unsupported
7594 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'
7595 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7596 ;;
7597
7598 osf3*)
7599 if test "$GCC" = yes; then
7600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7601 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'
7602 else
7603 allow_undefined_flag=' -expect_unresolved \*'
7604 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'
7605 fi
7606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7607 hardcode_libdir_separator=:
7608 ;;
7609
7610 osf4* | osf5*) # as osf3* with the addition of -msym flag
7611 if test "$GCC" = yes; then
7612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7613 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'
7614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7615 else
7616 allow_undefined_flag=' -expect_unresolved \*'
7617 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'
7618 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7619 $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'
7620
7621 # Both c and cxx compiler support -rpath directly
7622 hardcode_libdir_flag_spec='-rpath $libdir'
7623 fi
7624 hardcode_libdir_separator=:
7625 ;;
7626
7627 solaris*)
7628 no_undefined_flag=' -z text'
7629 if test "$GCC" = yes; then
7630 wlarc='${wl}'
7631 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7632 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7633 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7634 else
7635 wlarc=''
7636 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7637 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7639 fi
7640 hardcode_libdir_flag_spec='-R$libdir'
7641 hardcode_shlibpath_var=no
7642 case $host_os in
7643 solaris2.[0-5] | solaris2.[0-5].*) ;;
7644 *)
7645 # The compiler driver will combine linker options so we
7646 # cannot just pass the convience library names through
7647 # without $wl, iff we do not link with $LD.
7648 # Luckily, gcc supports the same syntax we need for Sun Studio.
7649 # Supported since Solaris 2.6 (maybe 2.5.1?)
7650 case $wlarc in
7651 '')
7652 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7653 *)
7654 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' ;;
7655 esac ;;
7656 esac
7657 link_all_deplibs=yes
7658 ;;
7659
7660 sunos4*)
7661 if test "x$host_vendor" = xsequent; then
7662 # Use $CC to link under sequent, because it throws in some extra .o
7663 # files that make .init and .fini sections work.
7664 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7665 else
7666 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7667 fi
7668 hardcode_libdir_flag_spec='-L$libdir'
7669 hardcode_direct=yes
7670 hardcode_minus_L=yes
7671 hardcode_shlibpath_var=no
7672 ;;
7673
7674 sysv4)
7675 case $host_vendor in
7676 sni)
7677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7678 hardcode_direct=yes # is this really true???
7679 ;;
7680 siemens)
7681 ## LD is ld it makes a PLAMLIB
7682 ## CC just makes a GrossModule.
7683 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7684 reload_cmds='$CC -r -o $output$reload_objs'
7685 hardcode_direct=no
7686 ;;
7687 motorola)
7688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7689 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7690 ;;
7691 esac
7692 runpath_var='LD_RUN_PATH'
7693 hardcode_shlibpath_var=no
7694 ;;
7695
7696 sysv4.3*)
7697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7698 hardcode_shlibpath_var=no
7699 export_dynamic_flag_spec='-Bexport'
7700 ;;
7701
7702 sysv4*MP*)
7703 if test -d /usr/nec; then
7704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7705 hardcode_shlibpath_var=no
7706 runpath_var=LD_RUN_PATH
7707 hardcode_runpath_var=yes
7708 ld_shlibs=yes
7709 fi
7710 ;;
7711
7712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7713 no_undefined_flag='${wl}-z,text'
7714 archive_cmds_need_lc=no
7715 hardcode_shlibpath_var=no
7716 runpath_var='LD_RUN_PATH'
7717
7718 if test "$GCC" = yes; then
7719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7721 else
7722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7724 fi
7725 ;;
7726
7727 sysv5* | sco3.2v5* | sco5v6*)
7728 # Note: We can NOT use -z defs as we might desire, because we do not
7729 # link with -lc, and that would cause any symbols used from libc to
7730 # always be unresolved, which means just about no library would
7731 # ever link correctly. If we're not using GNU ld we use -z text
7732 # though, which does catch some bad symbols but isn't as heavy-handed
7733 # as -z defs.
7734 no_undefined_flag='${wl}-z,text'
7735 allow_undefined_flag='${wl}-z,nodefs'
7736 archive_cmds_need_lc=no
7737 hardcode_shlibpath_var=no
7738 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7739 hardcode_libdir_separator=':'
7740 link_all_deplibs=yes
7741 export_dynamic_flag_spec='${wl}-Bexport'
7742 runpath_var='LD_RUN_PATH'
7743
7744 if test "$GCC" = yes; then
7745 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7746 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7747 else
7748 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7749 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7750 fi
7751 ;;
7752
7753 uts4*)
7754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7755 hardcode_libdir_flag_spec='-L$libdir'
7756 hardcode_shlibpath_var=no
7757 ;;
7758
7759 *)
7760 ld_shlibs=no
7761 ;;
7762 esac
7763 fi
7764
7765 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7766 echo "${ECHO_T}$ld_shlibs" >&6
7767 test "$ld_shlibs" = no && can_build_shared=no
7768
7769 #
7770 # Do we need to explicitly link libc?
7771 #
7772 case "x$archive_cmds_need_lc" in
7773 x|xyes)
7774 # Assume -lc should be added
7775 archive_cmds_need_lc=yes
7776
7777 if test "$enable_shared" = yes && test "$GCC" = yes; then
7778 case $archive_cmds in
7779 *'~'*)
7780 # FIXME: we may have to deal with multi-command sequences.
7781 ;;
7782 '$CC '*)
7783 # Test whether the compiler implicitly links with -lc since on some
7784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7785 # to ld, don't add -lc before -lgcc.
7786 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7787 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7788 $rm conftest*
7789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7790
7791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7792 (eval $ac_compile) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } 2>conftest.err; then
7796 soname=conftest
7797 lib=conftest
7798 libobjs=conftest.$ac_objext
7799 deplibs=
7800 wl=$lt_prog_compiler_wl
7801 pic_flag=$lt_prog_compiler_pic
7802 compiler_flags=-v
7803 linker_flags=-v
7804 verstring=
7805 output_objdir=.
7806 libname=conftest
7807 lt_save_allow_undefined_flag=$allow_undefined_flag
7808 allow_undefined_flag=
7809 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7810 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7811 ac_status=$?
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); }
7814 then
7815 archive_cmds_need_lc=no
7816 else
7817 archive_cmds_need_lc=yes
7818 fi
7819 allow_undefined_flag=$lt_save_allow_undefined_flag
7820 else
7821 cat conftest.err 1>&5
7822 fi
7823 $rm conftest*
7824 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7825 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7826 ;;
7827 esac
7828 fi
7829 ;;
7830 esac
7831
7832 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7833 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7834 library_names_spec=
7835 libname_spec='lib$name'
7836 soname_spec=
7837 shrext_cmds=".so"
7838 postinstall_cmds=
7839 postuninstall_cmds=
7840 finish_cmds=
7841 finish_eval=
7842 shlibpath_var=
7843 shlibpath_overrides_runpath=unknown
7844 version_type=none
7845 dynamic_linker="$host_os ld.so"
7846 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7847 if test "$GCC" = yes; then
7848 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7849 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7850 # if the path contains ";" then we assume it to be the separator
7851 # otherwise default to the standard path separator (i.e. ":") - it is
7852 # assumed that no part of a normal pathname contains ";" but that should
7853 # okay in the real world where ";" in dirpaths is itself problematic.
7854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7855 else
7856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7857 fi
7858 else
7859 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7860 fi
7861 need_lib_prefix=unknown
7862 hardcode_into_libs=no
7863
7864 # when you set need_version to no, make sure it does not cause -set_version
7865 # flags to be left without arguments
7866 need_version=unknown
7867
7868 case $host_os in
7869 aix3*)
7870 version_type=linux
7871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7872 shlibpath_var=LIBPATH
7873
7874 # AIX 3 has no versioning support, so we append a major version to the name.
7875 soname_spec='${libname}${release}${shared_ext}$major'
7876 ;;
7877
7878 aix4* | aix5*)
7879 version_type=linux
7880 need_lib_prefix=no
7881 need_version=no
7882 hardcode_into_libs=yes
7883 if test "$host_cpu" = ia64; then
7884 # AIX 5 supports IA64
7885 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7886 shlibpath_var=LD_LIBRARY_PATH
7887 else
7888 # With GCC up to 2.95.x, collect2 would create an import file
7889 # for dependence libraries. The import file would start with
7890 # the line `#! .'. This would cause the generated library to
7891 # depend on `.', always an invalid library. This was fixed in
7892 # development snapshots of GCC prior to 3.0.
7893 case $host_os in
7894 aix4 | aix4.[01] | aix4.[01].*)
7895 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7896 echo ' yes '
7897 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7898 :
7899 else
7900 can_build_shared=no
7901 fi
7902 ;;
7903 esac
7904 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7905 # soname into executable. Probably we can add versioning support to
7906 # collect2, so additional links can be useful in future.
7907 if test "$aix_use_runtimelinking" = yes; then
7908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7909 # instead of lib<name>.a to let people know that these are not
7910 # typical AIX shared libraries.
7911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7912 else
7913 # We preserve .a as extension for shared libraries through AIX4.2
7914 # and later when we are not doing run time linking.
7915 library_names_spec='${libname}${release}.a $libname.a'
7916 soname_spec='${libname}${release}${shared_ext}$major'
7917 fi
7918 shlibpath_var=LIBPATH
7919 fi
7920 ;;
7921
7922 amigaos*)
7923 library_names_spec='$libname.ixlibrary $libname.a'
7924 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7925 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'
7926 ;;
7927
7928 beos*)
7929 library_names_spec='${libname}${shared_ext}'
7930 dynamic_linker="$host_os ld.so"
7931 shlibpath_var=LIBRARY_PATH
7932 ;;
7933
7934 bsdi[45]*)
7935 version_type=linux
7936 need_version=no
7937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7938 soname_spec='${libname}${release}${shared_ext}$major'
7939 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7940 shlibpath_var=LD_LIBRARY_PATH
7941 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7942 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7943 # the default ld.so.conf also contains /usr/contrib/lib and
7944 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7945 # libtool to hard-code these into programs
7946 ;;
7947
7948 cygwin* | mingw* | pw32*)
7949 version_type=windows
7950 shrext_cmds=".dll"
7951 need_version=no
7952 need_lib_prefix=no
7953
7954 case $GCC,$host_os in
7955 yes,cygwin* | yes,mingw* | yes,pw32*)
7956 library_names_spec='$libname.dll.a'
7957 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7958 postinstall_cmds='base_file=`basename \${file}`~
7959 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7960 dldir=$destdir/`dirname \$dlpath`~
7961 test -d \$dldir || mkdir -p \$dldir~
7962 $install_prog $dir/$dlname \$dldir/$dlname~
7963 chmod a+x \$dldir/$dlname'
7964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7965 dlpath=$dir/\$dldll~
7966 $rm \$dlpath'
7967 shlibpath_overrides_runpath=yes
7968
7969 case $host_os in
7970 cygwin*)
7971 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7972 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7973 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7974 ;;
7975 mingw*)
7976 # MinGW DLLs use traditional 'lib' prefix
7977 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7978 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7979 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7980 # It is most probably a Windows format PATH printed by
7981 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7982 # path with ; separators, and with drive letters. We can handle the
7983 # drive letters (cygwin fileutils understands them), so leave them,
7984 # especially as we might pass files found there to a mingw objdump,
7985 # which wouldn't understand a cygwinified path. Ahh.
7986 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7987 else
7988 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7989 fi
7990 ;;
7991 pw32*)
7992 # pw32 DLLs use 'pw' prefix rather than 'lib'
7993 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7994 ;;
7995 esac
7996 ;;
7997
7998 *)
7999 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8000 ;;
8001 esac
8002 dynamic_linker='Win32 ld.exe'
8003 # FIXME: first we should search . and the directory the executable is in
8004 shlibpath_var=PATH
8005 ;;
8006
8007 darwin* | rhapsody*)
8008 dynamic_linker="$host_os dyld"
8009 version_type=darwin
8010 need_lib_prefix=no
8011 need_version=no
8012 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8013 soname_spec='${libname}${release}${major}$shared_ext'
8014 shlibpath_overrides_runpath=yes
8015 shlibpath_var=DYLD_LIBRARY_PATH
8016 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8017 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8018 if test "$GCC" = yes; then
8019 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"`
8020 else
8021 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8022 fi
8023 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8024 ;;
8025
8026 dgux*)
8027 version_type=linux
8028 need_lib_prefix=no
8029 need_version=no
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8031 soname_spec='${libname}${release}${shared_ext}$major'
8032 shlibpath_var=LD_LIBRARY_PATH
8033 ;;
8034
8035 freebsd1*)
8036 dynamic_linker=no
8037 ;;
8038
8039 kfreebsd*-gnu)
8040 version_type=linux
8041 need_lib_prefix=no
8042 need_version=no
8043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8044 soname_spec='${libname}${release}${shared_ext}$major'
8045 shlibpath_var=LD_LIBRARY_PATH
8046 shlibpath_overrides_runpath=no
8047 hardcode_into_libs=yes
8048 dynamic_linker='GNU ld.so'
8049 ;;
8050
8051 freebsd* | dragonfly*)
8052 # DragonFly does not have aout. When/if they implement a new
8053 # versioning mechanism, adjust this.
8054 if test -x /usr/bin/objformat; then
8055 objformat=`/usr/bin/objformat`
8056 else
8057 case $host_os in
8058 freebsd[123]*) objformat=aout ;;
8059 *) objformat=elf ;;
8060 esac
8061 fi
8062 version_type=freebsd-$objformat
8063 case $version_type in
8064 freebsd-elf*)
8065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8066 need_version=no
8067 need_lib_prefix=no
8068 ;;
8069 freebsd-*)
8070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8071 need_version=yes
8072 ;;
8073 esac
8074 shlibpath_var=LD_LIBRARY_PATH
8075 case $host_os in
8076 freebsd2*)
8077 shlibpath_overrides_runpath=yes
8078 ;;
8079 freebsd3.[01]* | freebsdelf3.[01]*)
8080 shlibpath_overrides_runpath=yes
8081 hardcode_into_libs=yes
8082 ;;
8083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8085 shlibpath_overrides_runpath=no
8086 hardcode_into_libs=yes
8087 ;;
8088 freebsd*) # from 4.6 on
8089 shlibpath_overrides_runpath=yes
8090 hardcode_into_libs=yes
8091 ;;
8092 esac
8093 ;;
8094
8095 gnu*)
8096 version_type=linux
8097 need_lib_prefix=no
8098 need_version=no
8099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8100 soname_spec='${libname}${release}${shared_ext}$major'
8101 shlibpath_var=LD_LIBRARY_PATH
8102 hardcode_into_libs=yes
8103 ;;
8104
8105 hpux9* | hpux10* | hpux11*)
8106 # Give a soname corresponding to the major version so that dld.sl refuses to
8107 # link against other versions.
8108 version_type=sunos
8109 need_lib_prefix=no
8110 need_version=no
8111 case $host_cpu in
8112 ia64*)
8113 shrext_cmds='.so'
8114 hardcode_into_libs=yes
8115 dynamic_linker="$host_os dld.so"
8116 shlibpath_var=LD_LIBRARY_PATH
8117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8119 soname_spec='${libname}${release}${shared_ext}$major'
8120 if test "X$HPUX_IA64_MODE" = X32; then
8121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8122 else
8123 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8124 fi
8125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8126 ;;
8127 hppa*64*)
8128 shrext_cmds='.sl'
8129 hardcode_into_libs=yes
8130 dynamic_linker="$host_os dld.sl"
8131 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8134 soname_spec='${libname}${release}${shared_ext}$major'
8135 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8137 ;;
8138 *)
8139 shrext_cmds='.sl'
8140 dynamic_linker="$host_os dld.sl"
8141 shlibpath_var=SHLIB_PATH
8142 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8144 soname_spec='${libname}${release}${shared_ext}$major'
8145 ;;
8146 esac
8147 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8148 postinstall_cmds='chmod 555 $lib'
8149 ;;
8150
8151 interix3*)
8152 version_type=linux
8153 need_lib_prefix=no
8154 need_version=no
8155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8156 soname_spec='${libname}${release}${shared_ext}$major'
8157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8158 shlibpath_var=LD_LIBRARY_PATH
8159 shlibpath_overrides_runpath=no
8160 hardcode_into_libs=yes
8161 ;;
8162
8163 irix5* | irix6* | nonstopux*)
8164 case $host_os in
8165 nonstopux*) version_type=nonstopux ;;
8166 *)
8167 if test "$lt_cv_prog_gnu_ld" = yes; then
8168 version_type=linux
8169 else
8170 version_type=irix
8171 fi ;;
8172 esac
8173 need_lib_prefix=no
8174 need_version=no
8175 soname_spec='${libname}${release}${shared_ext}$major'
8176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8177 case $host_os in
8178 irix5* | nonstopux*)
8179 libsuff= shlibsuff=
8180 ;;
8181 *)
8182 case $LD in # libtool.m4 will add one of these switches to LD
8183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8184 libsuff= shlibsuff= libmagic=32-bit;;
8185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8186 libsuff=32 shlibsuff=N32 libmagic=N32;;
8187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8188 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8189 *) libsuff= shlibsuff= libmagic=never-match;;
8190 esac
8191 ;;
8192 esac
8193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8194 shlibpath_overrides_runpath=no
8195 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8196 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8197 hardcode_into_libs=yes
8198 ;;
8199
8200 # No shared lib support for Linux oldld, aout, or coff.
8201 linux*oldld* | linux*aout* | linux*coff*)
8202 dynamic_linker=no
8203 ;;
8204
8205 # This must be Linux ELF.
8206 linux*)
8207 version_type=linux
8208 need_lib_prefix=no
8209 need_version=no
8210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8211 soname_spec='${libname}${release}${shared_ext}$major'
8212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8213 shlibpath_var=LD_LIBRARY_PATH
8214 shlibpath_overrides_runpath=no
8215 # This implies no fast_install, which is unacceptable.
8216 # Some rework will be needed to allow for fast_install
8217 # before this can be enabled.
8218 hardcode_into_libs=yes
8219
8220 # find out which ABI we are using
8221 libsuff=
8222 case "$host_cpu" in
8223 x86_64*|s390x*|powerpc64*)
8224 echo '#line 8224 "configure"' > conftest.$ac_ext
8225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8226 (eval $ac_compile) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; then
8230 case `/usr/bin/file conftest.$ac_objext` in
8231 *64-bit*)
8232 libsuff=64
8233 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8234 ;;
8235 esac
8236 fi
8237 rm -rf conftest*
8238 ;;
8239 esac
8240
8241 # Append ld.so.conf contents to the search path
8242 if test -f /etc/ld.so.conf; then
8243 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' ' '`
8244 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8245 fi
8246
8247 # We used to test for /lib/ld.so.1 and disable shared libraries on
8248 # powerpc, because MkLinux only supported shared libraries with the
8249 # GNU dynamic linker. Since this was broken with cross compilers,
8250 # most powerpc-linux boxes support dynamic linking these days and
8251 # people can always --disable-shared, the test was removed, and we
8252 # assume the GNU/Linux dynamic linker is in use.
8253 dynamic_linker='GNU/Linux ld.so'
8254 ;;
8255
8256 knetbsd*-gnu)
8257 version_type=linux
8258 need_lib_prefix=no
8259 need_version=no
8260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8261 soname_spec='${libname}${release}${shared_ext}$major'
8262 shlibpath_var=LD_LIBRARY_PATH
8263 shlibpath_overrides_runpath=no
8264 hardcode_into_libs=yes
8265 dynamic_linker='GNU ld.so'
8266 ;;
8267
8268 netbsd*)
8269 version_type=sunos
8270 need_lib_prefix=no
8271 need_version=no
8272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8275 dynamic_linker='NetBSD (a.out) ld.so'
8276 else
8277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8278 soname_spec='${libname}${release}${shared_ext}$major'
8279 dynamic_linker='NetBSD ld.elf_so'
8280 fi
8281 shlibpath_var=LD_LIBRARY_PATH
8282 shlibpath_overrides_runpath=yes
8283 hardcode_into_libs=yes
8284 ;;
8285
8286 newsos6)
8287 version_type=linux
8288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8289 shlibpath_var=LD_LIBRARY_PATH
8290 shlibpath_overrides_runpath=yes
8291 ;;
8292
8293 nto-qnx*)
8294 version_type=linux
8295 need_lib_prefix=no
8296 need_version=no
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=yes
8301 ;;
8302
8303 openbsd*)
8304 version_type=sunos
8305 sys_lib_dlsearch_path_spec="/usr/lib"
8306 need_lib_prefix=no
8307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8308 case $host_os in
8309 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8310 *) need_version=no ;;
8311 esac
8312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8314 shlibpath_var=LD_LIBRARY_PATH
8315 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8316 case $host_os in
8317 openbsd2.[89] | openbsd2.[89].*)
8318 shlibpath_overrides_runpath=no
8319 ;;
8320 *)
8321 shlibpath_overrides_runpath=yes
8322 ;;
8323 esac
8324 else
8325 shlibpath_overrides_runpath=yes
8326 fi
8327 ;;
8328
8329 os2*)
8330 libname_spec='$name'
8331 shrext_cmds=".dll"
8332 need_lib_prefix=no
8333 library_names_spec='$libname${shared_ext} $libname.a'
8334 dynamic_linker='OS/2 ld.exe'
8335 shlibpath_var=LIBPATH
8336 ;;
8337
8338 osf3* | osf4* | osf5*)
8339 version_type=osf
8340 need_lib_prefix=no
8341 need_version=no
8342 soname_spec='${libname}${release}${shared_ext}$major'
8343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8344 shlibpath_var=LD_LIBRARY_PATH
8345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8347 ;;
8348
8349 solaris*)
8350 version_type=linux
8351 need_lib_prefix=no
8352 need_version=no
8353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8354 soname_spec='${libname}${release}${shared_ext}$major'
8355 shlibpath_var=LD_LIBRARY_PATH
8356 shlibpath_overrides_runpath=yes
8357 hardcode_into_libs=yes
8358 # ldd complains unless libraries are executable
8359 postinstall_cmds='chmod +x $lib'
8360 ;;
8361
8362 sunos4*)
8363 version_type=sunos
8364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8366 shlibpath_var=LD_LIBRARY_PATH
8367 shlibpath_overrides_runpath=yes
8368 if test "$with_gnu_ld" = yes; then
8369 need_lib_prefix=no
8370 fi
8371 need_version=yes
8372 ;;
8373
8374 sysv4 | sysv4.3*)
8375 version_type=linux
8376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8377 soname_spec='${libname}${release}${shared_ext}$major'
8378 shlibpath_var=LD_LIBRARY_PATH
8379 case $host_vendor in
8380 sni)
8381 shlibpath_overrides_runpath=no
8382 need_lib_prefix=no
8383 export_dynamic_flag_spec='${wl}-Blargedynsym'
8384 runpath_var=LD_RUN_PATH
8385 ;;
8386 siemens)
8387 need_lib_prefix=no
8388 ;;
8389 motorola)
8390 need_lib_prefix=no
8391 need_version=no
8392 shlibpath_overrides_runpath=no
8393 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8394 ;;
8395 esac
8396 ;;
8397
8398 sysv4*MP*)
8399 if test -d /usr/nec ;then
8400 version_type=linux
8401 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8402 soname_spec='$libname${shared_ext}.$major'
8403 shlibpath_var=LD_LIBRARY_PATH
8404 fi
8405 ;;
8406
8407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8408 version_type=freebsd-elf
8409 need_lib_prefix=no
8410 need_version=no
8411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8412 soname_spec='${libname}${release}${shared_ext}$major'
8413 shlibpath_var=LD_LIBRARY_PATH
8414 hardcode_into_libs=yes
8415 if test "$with_gnu_ld" = yes; then
8416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8417 shlibpath_overrides_runpath=no
8418 else
8419 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8420 shlibpath_overrides_runpath=yes
8421 case $host_os in
8422 sco3.2v5*)
8423 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8424 ;;
8425 esac
8426 fi
8427 sys_lib_dlsearch_path_spec='/usr/lib'
8428 ;;
8429
8430 uts4*)
8431 version_type=linux
8432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8433 soname_spec='${libname}${release}${shared_ext}$major'
8434 shlibpath_var=LD_LIBRARY_PATH
8435 ;;
8436
8437 *)
8438 dynamic_linker=no
8439 ;;
8440 esac
8441 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8442 echo "${ECHO_T}$dynamic_linker" >&6
8443 test "$dynamic_linker" = no && can_build_shared=no
8444
8445 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8446 if test "$GCC" = yes; then
8447 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8448 fi
8449
8450 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8451 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8452 hardcode_action=
8453 if test -n "$hardcode_libdir_flag_spec" || \
8454 test -n "$runpath_var" || \
8455 test "X$hardcode_automatic" = "Xyes" ; then
8456
8457 # We can hardcode non-existant directories.
8458 if test "$hardcode_direct" != no &&
8459 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8460 # have to relink, otherwise we might link with an installed library
8461 # when we should be linking with a yet-to-be-installed one
8462 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8463 test "$hardcode_minus_L" != no; then
8464 # Linking always hardcodes the temporary library directory.
8465 hardcode_action=relink
8466 else
8467 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8468 hardcode_action=immediate
8469 fi
8470 else
8471 # We cannot hardcode anything, or else we can only hardcode existing
8472 # directories.
8473 hardcode_action=unsupported
8474 fi
8475 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8476 echo "${ECHO_T}$hardcode_action" >&6
8477
8478 if test "$hardcode_action" = relink; then
8479 # Fast installation is not supported
8480 enable_fast_install=no
8481 elif test "$shlibpath_overrides_runpath" = yes ||
8482 test "$enable_shared" = no; then
8483 # Fast installation is not necessary
8484 enable_fast_install=needless
8485 fi
8486
8487 striplib=
8488 old_striplib=
8489 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8490 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8491 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8492 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8493 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8494 echo "$as_me:$LINENO: result: yes" >&5
8495 echo "${ECHO_T}yes" >&6
8496 else
8497 # FIXME - insert some real tests, host_os isn't really good enough
8498 case $host_os in
8499 darwin*)
8500 if test -n "$STRIP" ; then
8501 striplib="$STRIP -x"
8502 echo "$as_me:$LINENO: result: yes" >&5
8503 echo "${ECHO_T}yes" >&6
8504 else
8505 echo "$as_me:$LINENO: result: no" >&5
8506 echo "${ECHO_T}no" >&6
8507 fi
8508 ;;
8509 *)
8510 echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6
8512 ;;
8513 esac
8514 fi
8515
8516 if test "x$enable_dlopen" != xyes; then
8517 enable_dlopen=unknown
8518 enable_dlopen_self=unknown
8519 enable_dlopen_self_static=unknown
8520 else
8521 lt_cv_dlopen=no
8522 lt_cv_dlopen_libs=
8523
8524 case $host_os in
8525 beos*)
8526 lt_cv_dlopen="load_add_on"
8527 lt_cv_dlopen_libs=
8528 lt_cv_dlopen_self=yes
8529 ;;
8530
8531 mingw* | pw32*)
8532 lt_cv_dlopen="LoadLibrary"
8533 lt_cv_dlopen_libs=
8534 ;;
8535
8536 cygwin*)
8537 lt_cv_dlopen="dlopen"
8538 lt_cv_dlopen_libs=
8539 ;;
8540
8541 darwin*)
8542 # if libdl is installed we need to link against it
8543 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8544 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8545 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548 ac_check_lib_save_LIBS=$LIBS
8549 LIBS="-ldl $LIBS"
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556
8557 /* Override any gcc2 internal prototype to avoid an error. */
8558 #ifdef __cplusplus
8559 extern "C"
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 dlopen ();
8564 int
8565 main ()
8566 {
8567 dlopen ();
8568 ;
8569 return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574 (eval $ac_link) 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8584 (eval $ac_try) 2>&5
8585 ac_status=$?
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_cv_lib_dl_dlopen=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_cv_lib_dl_dlopen=no
8600 fi
8601 rm -f conftest.err conftest.$ac_objext \
8602 conftest$ac_exeext conftest.$ac_ext
8603 LIBS=$ac_check_lib_save_LIBS
8604 fi
8605 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8606 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8607 if test $ac_cv_lib_dl_dlopen = yes; then
8608 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8609 else
8610
8611 lt_cv_dlopen="dyld"
8612 lt_cv_dlopen_libs=
8613 lt_cv_dlopen_self=yes
8614
8615 fi
8616
8617 ;;
8618
8619 *)
8620 echo "$as_me:$LINENO: checking for shl_load" >&5
8621 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8622 if test "${ac_cv_func_shl_load+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625 cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h. */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8633 #define shl_load innocuous_shl_load
8634
8635 /* System header to define __stub macros and hopefully few prototypes,
8636 which can conflict with char shl_load (); below.
8637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8638 <limits.h> exists even on freestanding compilers. */
8639
8640 #ifdef __STDC__
8641 # include <limits.h>
8642 #else
8643 # include <assert.h>
8644 #endif
8645
8646 #undef shl_load
8647
8648 /* Override any gcc2 internal prototype to avoid an error. */
8649 #ifdef __cplusplus
8650 extern "C"
8651 {
8652 #endif
8653 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */
8655 char shl_load ();
8656 /* The GNU C library defines this for functions which it implements
8657 to always fail with ENOSYS. Some functions are actually named
8658 something starting with __ and the normal name is an alias. */
8659 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8660 choke me
8661 #else
8662 char (*f) () = shl_load;
8663 #endif
8664 #ifdef __cplusplus
8665 }
8666 #endif
8667
8668 int
8669 main ()
8670 {
8671 return f != shl_load;
8672 ;
8673 return 0;
8674 }
8675 _ACEOF
8676 rm -f conftest.$ac_objext conftest$ac_exeext
8677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8678 (eval $ac_link) 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } &&
8685 { ac_try='test -z "$ac_c_werror_flag"
8686 || test ! -s conftest.err'
8687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 (eval $ac_try) 2>&5
8689 ac_status=$?
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); }; } &&
8692 { ac_try='test -s conftest$ac_exeext'
8693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694 (eval $ac_try) 2>&5
8695 ac_status=$?
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); }; }; then
8698 ac_cv_func_shl_load=yes
8699 else
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703 ac_cv_func_shl_load=no
8704 fi
8705 rm -f conftest.err conftest.$ac_objext \
8706 conftest$ac_exeext conftest.$ac_ext
8707 fi
8708 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8709 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8710 if test $ac_cv_func_shl_load = yes; then
8711 lt_cv_dlopen="shl_load"
8712 else
8713 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8714 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8715 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718 ac_check_lib_save_LIBS=$LIBS
8719 LIBS="-ldld $LIBS"
8720 cat >conftest.$ac_ext <<_ACEOF
8721 /* confdefs.h. */
8722 _ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8726
8727 /* Override any gcc2 internal prototype to avoid an error. */
8728 #ifdef __cplusplus
8729 extern "C"
8730 #endif
8731 /* We use char because int might match the return type of a gcc2
8732 builtin and then its argument prototype would still apply. */
8733 char shl_load ();
8734 int
8735 main ()
8736 {
8737 shl_load ();
8738 ;
8739 return 0;
8740 }
8741 _ACEOF
8742 rm -f conftest.$ac_objext conftest$ac_exeext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>conftest.er1
8745 ac_status=$?
8746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 (eval $ac_try) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_lib_dld_shl_load=yes
8765 else
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769 ac_cv_lib_dld_shl_load=no
8770 fi
8771 rm -f conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext conftest.$ac_ext
8773 LIBS=$ac_check_lib_save_LIBS
8774 fi
8775 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8776 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8777 if test $ac_cv_lib_dld_shl_load = yes; then
8778 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8779 else
8780 echo "$as_me:$LINENO: checking for dlopen" >&5
8781 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8782 if test "${ac_cv_func_dlopen+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785 cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h. */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8793 #define dlopen innocuous_dlopen
8794
8795 /* System header to define __stub macros and hopefully few prototypes,
8796 which can conflict with char dlopen (); below.
8797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8798 <limits.h> exists even on freestanding compilers. */
8799
8800 #ifdef __STDC__
8801 # include <limits.h>
8802 #else
8803 # include <assert.h>
8804 #endif
8805
8806 #undef dlopen
8807
8808 /* Override any gcc2 internal prototype to avoid an error. */
8809 #ifdef __cplusplus
8810 extern "C"
8811 {
8812 #endif
8813 /* We use char because int might match the return type of a gcc2
8814 builtin and then its argument prototype would still apply. */
8815 char dlopen ();
8816 /* The GNU C library defines this for functions which it implements
8817 to always fail with ENOSYS. Some functions are actually named
8818 something starting with __ and the normal name is an alias. */
8819 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8820 choke me
8821 #else
8822 char (*f) () = dlopen;
8823 #endif
8824 #ifdef __cplusplus
8825 }
8826 #endif
8827
8828 int
8829 main ()
8830 {
8831 return f != dlopen;
8832 ;
8833 return 0;
8834 }
8835 _ACEOF
8836 rm -f conftest.$ac_objext conftest$ac_exeext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8838 (eval $ac_link) 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8845 { ac_try='test -z "$ac_c_werror_flag"
8846 || test ! -s conftest.err'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 (eval $ac_try) 2>&5
8849 ac_status=$?
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; } &&
8852 { ac_try='test -s conftest$ac_exeext'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 (eval $ac_try) 2>&5
8855 ac_status=$?
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 ac_cv_func_dlopen=yes
8859 else
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8862
8863 ac_cv_func_dlopen=no
8864 fi
8865 rm -f conftest.err conftest.$ac_objext \
8866 conftest$ac_exeext conftest.$ac_ext
8867 fi
8868 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8869 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8870 if test $ac_cv_func_dlopen = yes; then
8871 lt_cv_dlopen="dlopen"
8872 else
8873 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8874 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878 ac_check_lib_save_LIBS=$LIBS
8879 LIBS="-ldl $LIBS"
8880 cat >conftest.$ac_ext <<_ACEOF
8881 /* confdefs.h. */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886
8887 /* Override any gcc2 internal prototype to avoid an error. */
8888 #ifdef __cplusplus
8889 extern "C"
8890 #endif
8891 /* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8893 char dlopen ();
8894 int
8895 main ()
8896 {
8897 dlopen ();
8898 ;
8899 return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_c_werror_flag"
8912 || test ! -s conftest.err'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; } &&
8918 { ac_try='test -s conftest$ac_exeext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 ac_cv_lib_dl_dlopen=yes
8925 else
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 ac_cv_lib_dl_dlopen=no
8930 fi
8931 rm -f conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 LIBS=$ac_check_lib_save_LIBS
8934 fi
8935 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8936 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8937 if test $ac_cv_lib_dl_dlopen = yes; then
8938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8939 else
8940 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8941 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8942 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945 ac_check_lib_save_LIBS=$LIBS
8946 LIBS="-lsvld $LIBS"
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953
8954 /* Override any gcc2 internal prototype to avoid an error. */
8955 #ifdef __cplusplus
8956 extern "C"
8957 #endif
8958 /* We use char because int might match the return type of a gcc2
8959 builtin and then its argument prototype would still apply. */
8960 char dlopen ();
8961 int
8962 main ()
8963 {
8964 dlopen ();
8965 ;
8966 return 0;
8967 }
8968 _ACEOF
8969 rm -f conftest.$ac_objext conftest$ac_exeext
8970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8971 (eval $ac_link) 2>conftest.er1
8972 ac_status=$?
8973 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try='test -z "$ac_c_werror_flag"
8979 || test ! -s conftest.err'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest$ac_exeext'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 (eval $ac_try) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_cv_lib_svld_dlopen=yes
8992 else
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.$ac_ext >&5
8995
8996 ac_cv_lib_svld_dlopen=no
8997 fi
8998 rm -f conftest.err conftest.$ac_objext \
8999 conftest$ac_exeext conftest.$ac_ext
9000 LIBS=$ac_check_lib_save_LIBS
9001 fi
9002 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9003 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9004 if test $ac_cv_lib_svld_dlopen = yes; then
9005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9006 else
9007 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9008 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9009 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012 ac_check_lib_save_LIBS=$LIBS
9013 LIBS="-ldld $LIBS"
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h. */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9020
9021 /* Override any gcc2 internal prototype to avoid an error. */
9022 #ifdef __cplusplus
9023 extern "C"
9024 #endif
9025 /* We use char because int might match the return type of a gcc2
9026 builtin and then its argument prototype would still apply. */
9027 char dld_link ();
9028 int
9029 main ()
9030 {
9031 dld_link ();
9032 ;
9033 return 0;
9034 }
9035 _ACEOF
9036 rm -f conftest.$ac_objext conftest$ac_exeext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9038 (eval $ac_link) 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -z "$ac_c_werror_flag"
9046 || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest$ac_exeext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_lib_dld_dld_link=yes
9059 else
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 ac_cv_lib_dld_dld_link=no
9064 fi
9065 rm -f conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067 LIBS=$ac_check_lib_save_LIBS
9068 fi
9069 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9070 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9071 if test $ac_cv_lib_dld_dld_link = yes; then
9072 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9073 fi
9074
9075
9076 fi
9077
9078
9079 fi
9080
9081
9082 fi
9083
9084
9085 fi
9086
9087
9088 fi
9089
9090 ;;
9091 esac
9092
9093 if test "x$lt_cv_dlopen" != xno; then
9094 enable_dlopen=yes
9095 else
9096 enable_dlopen=no
9097 fi
9098
9099 case $lt_cv_dlopen in
9100 dlopen)
9101 save_CPPFLAGS="$CPPFLAGS"
9102 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9103
9104 save_LDFLAGS="$LDFLAGS"
9105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9106
9107 save_LIBS="$LIBS"
9108 LIBS="$lt_cv_dlopen_libs $LIBS"
9109
9110 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9111 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9112 if test "${lt_cv_dlopen_self+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115 if test "$cross_compiling" = yes; then :
9116 lt_cv_dlopen_self=cross
9117 else
9118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9119 lt_status=$lt_dlunknown
9120 cat > conftest.$ac_ext <<EOF
9121 #line 9121 "configure"
9122 #include "confdefs.h"
9123
9124 #if HAVE_DLFCN_H
9125 #include <dlfcn.h>
9126 #endif
9127
9128 #include <stdio.h>
9129
9130 #ifdef RTLD_GLOBAL
9131 # define LT_DLGLOBAL RTLD_GLOBAL
9132 #else
9133 # ifdef DL_GLOBAL
9134 # define LT_DLGLOBAL DL_GLOBAL
9135 # else
9136 # define LT_DLGLOBAL 0
9137 # endif
9138 #endif
9139
9140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9141 find out it does not work in some platform. */
9142 #ifndef LT_DLLAZY_OR_NOW
9143 # ifdef RTLD_LAZY
9144 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9145 # else
9146 # ifdef DL_LAZY
9147 # define LT_DLLAZY_OR_NOW DL_LAZY
9148 # else
9149 # ifdef RTLD_NOW
9150 # define LT_DLLAZY_OR_NOW RTLD_NOW
9151 # else
9152 # ifdef DL_NOW
9153 # define LT_DLLAZY_OR_NOW DL_NOW
9154 # else
9155 # define LT_DLLAZY_OR_NOW 0
9156 # endif
9157 # endif
9158 # endif
9159 # endif
9160 #endif
9161
9162 #ifdef __cplusplus
9163 extern "C" void exit (int);
9164 #endif
9165
9166 void fnord() { int i=42;}
9167 int main ()
9168 {
9169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9170 int status = $lt_dlunknown;
9171
9172 if (self)
9173 {
9174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9175 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9176 /* dlclose (self); */
9177 }
9178 else
9179 puts (dlerror ());
9180
9181 exit (status);
9182 }
9183 EOF
9184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9185 (eval $ac_link) 2>&5
9186 ac_status=$?
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9189 (./conftest; exit; ) >&5 2>/dev/null
9190 lt_status=$?
9191 case x$lt_status in
9192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9194 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9195 esac
9196 else :
9197 # compilation failed
9198 lt_cv_dlopen_self=no
9199 fi
9200 fi
9201 rm -fr conftest*
9202
9203
9204 fi
9205 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9206 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9207
9208 if test "x$lt_cv_dlopen_self" = xyes; then
9209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9210 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9211 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9212 if test "${lt_cv_dlopen_self_static+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215 if test "$cross_compiling" = yes; then :
9216 lt_cv_dlopen_self_static=cross
9217 else
9218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9219 lt_status=$lt_dlunknown
9220 cat > conftest.$ac_ext <<EOF
9221 #line 9221 "configure"
9222 #include "confdefs.h"
9223
9224 #if HAVE_DLFCN_H
9225 #include <dlfcn.h>
9226 #endif
9227
9228 #include <stdio.h>
9229
9230 #ifdef RTLD_GLOBAL
9231 # define LT_DLGLOBAL RTLD_GLOBAL
9232 #else
9233 # ifdef DL_GLOBAL
9234 # define LT_DLGLOBAL DL_GLOBAL
9235 # else
9236 # define LT_DLGLOBAL 0
9237 # endif
9238 #endif
9239
9240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9241 find out it does not work in some platform. */
9242 #ifndef LT_DLLAZY_OR_NOW
9243 # ifdef RTLD_LAZY
9244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9245 # else
9246 # ifdef DL_LAZY
9247 # define LT_DLLAZY_OR_NOW DL_LAZY
9248 # else
9249 # ifdef RTLD_NOW
9250 # define LT_DLLAZY_OR_NOW RTLD_NOW
9251 # else
9252 # ifdef DL_NOW
9253 # define LT_DLLAZY_OR_NOW DL_NOW
9254 # else
9255 # define LT_DLLAZY_OR_NOW 0
9256 # endif
9257 # endif
9258 # endif
9259 # endif
9260 #endif
9261
9262 #ifdef __cplusplus
9263 extern "C" void exit (int);
9264 #endif
9265
9266 void fnord() { int i=42;}
9267 int main ()
9268 {
9269 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9270 int status = $lt_dlunknown;
9271
9272 if (self)
9273 {
9274 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9275 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9276 /* dlclose (self); */
9277 }
9278 else
9279 puts (dlerror ());
9280
9281 exit (status);
9282 }
9283 EOF
9284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9285 (eval $ac_link) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9289 (./conftest; exit; ) >&5 2>/dev/null
9290 lt_status=$?
9291 case x$lt_status in
9292 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9293 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9294 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9295 esac
9296 else :
9297 # compilation failed
9298 lt_cv_dlopen_self_static=no
9299 fi
9300 fi
9301 rm -fr conftest*
9302
9303
9304 fi
9305 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9306 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9307 fi
9308
9309 CPPFLAGS="$save_CPPFLAGS"
9310 LDFLAGS="$save_LDFLAGS"
9311 LIBS="$save_LIBS"
9312 ;;
9313 esac
9314
9315 case $lt_cv_dlopen_self in
9316 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9317 *) enable_dlopen_self=unknown ;;
9318 esac
9319
9320 case $lt_cv_dlopen_self_static in
9321 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9322 *) enable_dlopen_self_static=unknown ;;
9323 esac
9324 fi
9325
9326
9327 # Report which library types will actually be built
9328 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9329 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9330 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9331 echo "${ECHO_T}$can_build_shared" >&6
9332
9333 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9334 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9335 test "$can_build_shared" = "no" && enable_shared=no
9336
9337 # On AIX, shared libraries and static libraries use the same namespace, and
9338 # are all built from PIC.
9339 case $host_os in
9340 aix3*)
9341 test "$enable_shared" = yes && enable_static=no
9342 if test -n "$RANLIB"; then
9343 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9344 postinstall_cmds='$RANLIB $lib'
9345 fi
9346 ;;
9347
9348 aix4* | aix5*)
9349 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9350 test "$enable_shared" = yes && enable_static=no
9351 fi
9352 ;;
9353 esac
9354 echo "$as_me:$LINENO: result: $enable_shared" >&5
9355 echo "${ECHO_T}$enable_shared" >&6
9356
9357 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9358 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9359 # Make sure either enable_shared or enable_static is yes.
9360 test "$enable_shared" = yes || enable_static=yes
9361 echo "$as_me:$LINENO: result: $enable_static" >&5
9362 echo "${ECHO_T}$enable_static" >&6
9363
9364 # The else clause should only fire when bootstrapping the
9365 # libtool distribution, otherwise you forgot to ship ltmain.sh
9366 # with your package, and you will get complaints that there are
9367 # no rules to generate ltmain.sh.
9368 if test -f "$ltmain"; then
9369 # See if we are running on zsh, and set the options which allow our commands through
9370 # without removal of \ escapes.
9371 if test -n "${ZSH_VERSION+set}" ; then
9372 setopt NO_GLOB_SUBST
9373 fi
9374 # Now quote all the things that may contain metacharacters while being
9375 # careful not to overquote the AC_SUBSTed values. We take copies of the
9376 # variables and quote the copies for generation of the libtool script.
9377 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9378 SED SHELL STRIP \
9379 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9380 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9381 deplibs_check_method reload_flag reload_cmds need_locks \
9382 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9383 lt_cv_sys_global_symbol_to_c_name_address \
9384 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9385 old_postinstall_cmds old_postuninstall_cmds \
9386 compiler \
9387 CC \
9388 LD \
9389 lt_prog_compiler_wl \
9390 lt_prog_compiler_pic \
9391 lt_prog_compiler_static \
9392 lt_prog_compiler_no_builtin_flag \
9393 export_dynamic_flag_spec \
9394 thread_safe_flag_spec \
9395 whole_archive_flag_spec \
9396 enable_shared_with_static_runtimes \
9397 old_archive_cmds \
9398 old_archive_from_new_cmds \
9399 predep_objects \
9400 postdep_objects \
9401 predeps \
9402 postdeps \
9403 compiler_lib_search_path \
9404 archive_cmds \
9405 archive_expsym_cmds \
9406 postinstall_cmds \
9407 postuninstall_cmds \
9408 old_archive_from_expsyms_cmds \
9409 allow_undefined_flag \
9410 no_undefined_flag \
9411 export_symbols_cmds \
9412 hardcode_libdir_flag_spec \
9413 hardcode_libdir_flag_spec_ld \
9414 hardcode_libdir_separator \
9415 hardcode_automatic \
9416 module_cmds \
9417 module_expsym_cmds \
9418 lt_cv_prog_compiler_c_o \
9419 exclude_expsyms \
9420 include_expsyms; do
9421
9422 case $var in
9423 old_archive_cmds | \
9424 old_archive_from_new_cmds | \
9425 archive_cmds | \
9426 archive_expsym_cmds | \
9427 module_cmds | \
9428 module_expsym_cmds | \
9429 old_archive_from_expsyms_cmds | \
9430 export_symbols_cmds | \
9431 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9432 postinstall_cmds | postuninstall_cmds | \
9433 old_postinstall_cmds | old_postuninstall_cmds | \
9434 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9435 # Double-quote double-evaled strings.
9436 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9437 ;;
9438 *)
9439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9440 ;;
9441 esac
9442 done
9443
9444 case $lt_echo in
9445 *'\$0 --fallback-echo"')
9446 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9447 ;;
9448 esac
9449
9450 cfgfile="${ofile}T"
9451 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9452 $rm -f "$cfgfile"
9453 { echo "$as_me:$LINENO: creating $ofile" >&5
9454 echo "$as_me: creating $ofile" >&6;}
9455
9456 cat <<__EOF__ >> "$cfgfile"
9457 #! $SHELL
9458
9459 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9460 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9461 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9462 #
9463 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9464 # Free Software Foundation, Inc.
9465 #
9466 # This file is part of GNU Libtool:
9467 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
9468 #
9469 # This program is free software; you can redistribute it and/or modify
9470 # it under the terms of the GNU General Public License as published by
9471 # the Free Software Foundation; either version 2 of the License, or
9472 # (at your option) any later version.
9473 #
9474 # This program is distributed in the hope that it will be useful, but
9475 # WITHOUT ANY WARRANTY; without even the implied warranty of
9476 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9477 # General Public License for more details.
9478 #
9479 # You should have received a copy of the GNU General Public License
9480 # along with this program; if not, write to the Free Software
9481 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9482 #
9483 # As a special exception to the GNU General Public License, if you
9484 # distribute this file as part of a program that contains a
9485 # configuration script generated by Autoconf, you may include it under
9486 # the same distribution terms that you use for the rest of that program.
9487
9488 # A sed program that does not truncate output.
9489 SED=$lt_SED
9490
9491 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9492 Xsed="$SED -e 1s/^X//"
9493
9494 # The HP-UX ksh and POSIX shell print the target directory to stdout
9495 # if CDPATH is set.
9496 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9497
9498 # The names of the tagged configurations supported by this script.
9499 available_tags=
9500
9501 # ### BEGIN LIBTOOL CONFIG
9502
9503 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9504
9505 # Shell to use when invoking shell scripts.
9506 SHELL=$lt_SHELL
9507
9508 # Whether or not to build shared libraries.
9509 build_libtool_libs=$enable_shared
9510
9511 # Whether or not to build static libraries.
9512 build_old_libs=$enable_static
9513
9514 # Whether or not to add -lc for building shared libraries.
9515 build_libtool_need_lc=$archive_cmds_need_lc
9516
9517 # Whether or not to disallow shared libs when runtime libs are static
9518 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9519
9520 # Whether or not to optimize for fast installation.
9521 fast_install=$enable_fast_install
9522
9523 # The host system.
9524 host_alias=$host_alias
9525 host=$host
9526 host_os=$host_os
9527
9528 # The build system.
9529 build_alias=$build_alias
9530 build=$build
9531 build_os=$build_os
9532
9533 # An echo program that does not interpret backslashes.
9534 echo=$lt_echo
9535
9536 # The archiver.
9537 AR=$lt_AR
9538 AR_FLAGS=$lt_AR_FLAGS
9539
9540 # A C compiler.
9541 LTCC=$lt_LTCC
9542
9543 # LTCC compiler flags.
9544 LTCFLAGS=$lt_LTCFLAGS
9545
9546 # A language-specific compiler.
9547 CC=$lt_compiler
9548
9549 # Is the compiler the GNU C compiler?
9550 with_gcc=$GCC
9551
9552 # An ERE matcher.
9553 EGREP=$lt_EGREP
9554
9555 # The linker used to build libraries.
9556 LD=$lt_LD
9557
9558 # Whether we need hard or soft links.
9559 LN_S=$lt_LN_S
9560
9561 # A BSD-compatible nm program.
9562 NM=$lt_NM
9563
9564 # A symbol stripping program
9565 STRIP=$lt_STRIP
9566
9567 # Used to examine libraries when file_magic_cmd begins "file"
9568 MAGIC_CMD=$MAGIC_CMD
9569
9570 # Used on cygwin: DLL creation program.
9571 DLLTOOL="$DLLTOOL"
9572
9573 # Used on cygwin: object dumper.
9574 OBJDUMP="$OBJDUMP"
9575
9576 # Used on cygwin: assembler.
9577 AS="$AS"
9578
9579 # The name of the directory that contains temporary libtool files.
9580 objdir=$objdir
9581
9582 # How to create reloadable object files.
9583 reload_flag=$lt_reload_flag
9584 reload_cmds=$lt_reload_cmds
9585
9586 # How to pass a linker flag through the compiler.
9587 wl=$lt_lt_prog_compiler_wl
9588
9589 # Object file suffix (normally "o").
9590 objext="$ac_objext"
9591
9592 # Old archive suffix (normally "a").
9593 libext="$libext"
9594
9595 # Shared library suffix (normally ".so").
9596 shrext_cmds='$shrext_cmds'
9597
9598 # Executable file suffix (normally "").
9599 exeext="$exeext"
9600
9601 # Additional compiler flags for building library objects.
9602 pic_flag=$lt_lt_prog_compiler_pic
9603 pic_mode=$pic_mode
9604
9605 # What is the maximum length of a command?
9606 max_cmd_len=$lt_cv_sys_max_cmd_len
9607
9608 # Does compiler simultaneously support -c and -o options?
9609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9610
9611 # Must we lock files when doing compilation?
9612 need_locks=$lt_need_locks
9613
9614 # Do we need the lib prefix for modules?
9615 need_lib_prefix=$need_lib_prefix
9616
9617 # Do we need a version for libraries?
9618 need_version=$need_version
9619
9620 # Whether dlopen is supported.
9621 dlopen_support=$enable_dlopen
9622
9623 # Whether dlopen of programs is supported.
9624 dlopen_self=$enable_dlopen_self
9625
9626 # Whether dlopen of statically linked programs is supported.
9627 dlopen_self_static=$enable_dlopen_self_static
9628
9629 # Compiler flag to prevent dynamic linking.
9630 link_static_flag=$lt_lt_prog_compiler_static
9631
9632 # Compiler flag to turn off builtin functions.
9633 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9634
9635 # Compiler flag to allow reflexive dlopens.
9636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9637
9638 # Compiler flag to generate shared objects directly from archives.
9639 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9640
9641 # Compiler flag to generate thread-safe objects.
9642 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9643
9644 # Library versioning type.
9645 version_type=$version_type
9646
9647 # Format of library name prefix.
9648 libname_spec=$lt_libname_spec
9649
9650 # List of archive names. First name is the real one, the rest are links.
9651 # The last name is the one that the linker finds with -lNAME.
9652 library_names_spec=$lt_library_names_spec
9653
9654 # The coded name of the library, if different from the real name.
9655 soname_spec=$lt_soname_spec
9656
9657 # Commands used to build and install an old-style archive.
9658 RANLIB=$lt_RANLIB
9659 old_archive_cmds=$lt_old_archive_cmds
9660 old_postinstall_cmds=$lt_old_postinstall_cmds
9661 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9662
9663 # Create an old-style archive from a shared archive.
9664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9665
9666 # Create a temporary old-style archive to link instead of a shared archive.
9667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9668
9669 # Commands used to build and install a shared archive.
9670 archive_cmds=$lt_archive_cmds
9671 archive_expsym_cmds=$lt_archive_expsym_cmds
9672 postinstall_cmds=$lt_postinstall_cmds
9673 postuninstall_cmds=$lt_postuninstall_cmds
9674
9675 # Commands used to build a loadable module (assumed same as above if empty)
9676 module_cmds=$lt_module_cmds
9677 module_expsym_cmds=$lt_module_expsym_cmds
9678
9679 # Commands to strip libraries.
9680 old_striplib=$lt_old_striplib
9681 striplib=$lt_striplib
9682
9683 # Dependencies to place before the objects being linked to create a
9684 # shared library.
9685 predep_objects=$lt_predep_objects
9686
9687 # Dependencies to place after the objects being linked to create a
9688 # shared library.
9689 postdep_objects=$lt_postdep_objects
9690
9691 # Dependencies to place before the objects being linked to create a
9692 # shared library.
9693 predeps=$lt_predeps
9694
9695 # Dependencies to place after the objects being linked to create a
9696 # shared library.
9697 postdeps=$lt_postdeps
9698
9699 # The library search path used internally by the compiler when linking
9700 # a shared library.
9701 compiler_lib_search_path=$lt_compiler_lib_search_path
9702
9703 # Method to check whether dependent libraries are shared objects.
9704 deplibs_check_method=$lt_deplibs_check_method
9705
9706 # Command to use when deplibs_check_method == file_magic.
9707 file_magic_cmd=$lt_file_magic_cmd
9708
9709 # Flag that allows shared libraries with undefined symbols to be built.
9710 allow_undefined_flag=$lt_allow_undefined_flag
9711
9712 # Flag that forces no undefined symbols.
9713 no_undefined_flag=$lt_no_undefined_flag
9714
9715 # Commands used to finish a libtool library installation in a directory.
9716 finish_cmds=$lt_finish_cmds
9717
9718 # Same as above, but a single script fragment to be evaled but not shown.
9719 finish_eval=$lt_finish_eval
9720
9721 # Take the output of nm and produce a listing of raw symbols and C names.
9722 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9723
9724 # Transform the output of nm in a proper C declaration
9725 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9726
9727 # Transform the output of nm in a C name address pair
9728 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9729
9730 # This is the shared library runtime path variable.
9731 runpath_var=$runpath_var
9732
9733 # This is the shared library path variable.
9734 shlibpath_var=$shlibpath_var
9735
9736 # Is shlibpath searched before the hard-coded library search path?
9737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9738
9739 # How to hardcode a shared library path into an executable.
9740 hardcode_action=$hardcode_action
9741
9742 # Whether we should hardcode library paths into libraries.
9743 hardcode_into_libs=$hardcode_into_libs
9744
9745 # Flag to hardcode \$libdir into a binary during linking.
9746 # This must work even if \$libdir does not exist.
9747 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9748
9749 # If ld is used when linking, flag to hardcode \$libdir into
9750 # a binary during linking. This must work even if \$libdir does
9751 # not exist.
9752 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9753
9754 # Whether we need a single -rpath flag with a separated argument.
9755 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9756
9757 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9758 # resulting binary.
9759 hardcode_direct=$hardcode_direct
9760
9761 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9762 # resulting binary.
9763 hardcode_minus_L=$hardcode_minus_L
9764
9765 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9766 # the resulting binary.
9767 hardcode_shlibpath_var=$hardcode_shlibpath_var
9768
9769 # Set to yes if building a shared library automatically hardcodes DIR into the library
9770 # and all subsequent libraries and executables linked against it.
9771 hardcode_automatic=$hardcode_automatic
9772
9773 # Variables whose values should be saved in libtool wrapper scripts and
9774 # restored at relink time.
9775 variables_saved_for_relink="$variables_saved_for_relink"
9776
9777 # Whether libtool must link a program against all its dependency libraries.
9778 link_all_deplibs=$link_all_deplibs
9779
9780 # Compile-time system search path for libraries
9781 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9782
9783 # Run-time system search path for libraries
9784 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9785
9786 # Fix the shell variable \$srcfile for the compiler.
9787 fix_srcfile_path="$fix_srcfile_path"
9788
9789 # Set to yes if exported symbols are required.
9790 always_export_symbols=$always_export_symbols
9791
9792 # The commands to list exported symbols.
9793 export_symbols_cmds=$lt_export_symbols_cmds
9794
9795 # The commands to extract the exported symbol list from a shared archive.
9796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9797
9798 # Symbols that should not be listed in the preloaded symbols.
9799 exclude_expsyms=$lt_exclude_expsyms
9800
9801 # Symbols that must always be exported.
9802 include_expsyms=$lt_include_expsyms
9803
9804 # ### END LIBTOOL CONFIG
9805
9806 __EOF__
9807
9808
9809 case $host_os in
9810 aix3*)
9811 cat <<\EOF >> "$cfgfile"
9812
9813 # AIX sometimes has problems with the GCC collect2 program. For some
9814 # reason, if we set the COLLECT_NAMES environment variable, the problems
9815 # vanish in a puff of smoke.
9816 if test "X${COLLECT_NAMES+set}" != Xset; then
9817 COLLECT_NAMES=
9818 export COLLECT_NAMES
9819 fi
9820 EOF
9821 ;;
9822 esac
9823
9824 # We use sed instead of cat because bash on DJGPP gets confused if
9825 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9826 # text mode, it properly converts lines to CR/LF. This bash problem
9827 # is reportedly fixed, but why not run on old versions too?
9828 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9829
9830 mv -f "$cfgfile" "$ofile" || \
9831 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9832 chmod +x "$ofile"
9833
9834 else
9835 # If there is no Makefile yet, we rely on a make rule to execute
9836 # `config.status --recheck' to rerun these tests and create the
9837 # libtool script then.
9838 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9839 if test -f "$ltmain_in"; then
9840 test -f Makefile && make "$ltmain"
9841 fi
9842 fi
9843
9844
9845 ac_ext=c
9846 ac_cpp='$CPP $CPPFLAGS'
9847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9850
9851 CC="$lt_save_CC"
9852
9853
9854 # Check whether --with-tags or --without-tags was given.
9855 if test "${with_tags+set}" = set; then
9856 withval="$with_tags"
9857 tagnames="$withval"
9858 fi;
9859
9860 if test -f "$ltmain" && test -n "$tagnames"; then
9861 if test ! -f "${ofile}"; then
9862 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9863 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9864 fi
9865
9866 if test -z "$LTCC"; then
9867 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9868 if test -z "$LTCC"; then
9869 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9870 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9871 else
9872 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9873 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9874 fi
9875 fi
9876 if test -z "$LTCFLAGS"; then
9877 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9878 fi
9879
9880 # Extract list of available tagged configurations in $ofile.
9881 # Note that this assumes the entire list is on one line.
9882 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9883
9884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9885 for tagname in $tagnames; do
9886 IFS="$lt_save_ifs"
9887 # Check whether tagname contains only valid characters
9888 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9889 "") ;;
9890 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9891 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9892 { (exit 1); exit 1; }; }
9893 ;;
9894 esac
9895
9896 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9897 then
9898 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9899 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9900 { (exit 1); exit 1; }; }
9901 fi
9902
9903 # Update the list of available tags.
9904 if test -n "$tagname"; then
9905 echo appending configuration tag \"$tagname\" to $ofile
9906
9907 case $tagname in
9908 CXX)
9909 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9910 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9911 (test "X$CXX" != "Xg++"))) ; then
9912 ac_ext=cc
9913 ac_cpp='$CXXCPP $CPPFLAGS'
9914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9917
9918
9919
9920
9921 archive_cmds_need_lc_CXX=no
9922 allow_undefined_flag_CXX=
9923 always_export_symbols_CXX=no
9924 archive_expsym_cmds_CXX=
9925 export_dynamic_flag_spec_CXX=
9926 hardcode_direct_CXX=no
9927 hardcode_libdir_flag_spec_CXX=
9928 hardcode_libdir_flag_spec_ld_CXX=
9929 hardcode_libdir_separator_CXX=
9930 hardcode_minus_L_CXX=no
9931 hardcode_shlibpath_var_CXX=unsupported
9932 hardcode_automatic_CXX=no
9933 module_cmds_CXX=
9934 module_expsym_cmds_CXX=
9935 link_all_deplibs_CXX=unknown
9936 old_archive_cmds_CXX=$old_archive_cmds
9937 no_undefined_flag_CXX=
9938 whole_archive_flag_spec_CXX=
9939 enable_shared_with_static_runtimes_CXX=no
9940
9941 # Dependencies to place before and after the object being linked:
9942 predep_objects_CXX=
9943 postdep_objects_CXX=
9944 predeps_CXX=
9945 postdeps_CXX=
9946 compiler_lib_search_path_CXX=
9947
9948 # Source file extension for C++ test sources.
9949 ac_ext=cpp
9950
9951 # Object file extension for compiled C++ test sources.
9952 objext=o
9953 objext_CXX=$objext
9954
9955 # Code to be used in simple compile tests
9956 lt_simple_compile_test_code="int some_variable = 0;\n"
9957
9958 # Code to be used in simple link tests
9959 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9960
9961 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9962
9963 # If no C compiler was specified, use CC.
9964 LTCC=${LTCC-"$CC"}
9965
9966 # If no C compiler flags were specified, use CFLAGS.
9967 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9968
9969 # Allow CC to be a program name with arguments.
9970 compiler=$CC
9971
9972
9973 # save warnings/boilerplate of simple test code
9974 ac_outfile=conftest.$ac_objext
9975 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9976 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9977 _lt_compiler_boilerplate=`cat conftest.err`
9978 $rm conftest*
9979
9980 ac_outfile=conftest.$ac_objext
9981 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9982 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9983 _lt_linker_boilerplate=`cat conftest.err`
9984 $rm conftest*
9985
9986
9987 # Allow CC to be a program name with arguments.
9988 lt_save_CC=$CC
9989 lt_save_LD=$LD
9990 lt_save_GCC=$GCC
9991 GCC=$GXX
9992 lt_save_with_gnu_ld=$with_gnu_ld
9993 lt_save_path_LD=$lt_cv_path_LD
9994 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9995 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9996 else
9997 $as_unset lt_cv_prog_gnu_ld
9998 fi
9999 if test -n "${lt_cv_path_LDCXX+set}"; then
10000 lt_cv_path_LD=$lt_cv_path_LDCXX
10001 else
10002 $as_unset lt_cv_path_LD
10003 fi
10004 test -z "${LDCXX+set}" || LD=$LDCXX
10005 CC=${CXX-"c++"}
10006 compiler=$CC
10007 compiler_CXX=$CC
10008 for cc_temp in $compiler""; do
10009 case $cc_temp in
10010 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10011 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10012 \-*) ;;
10013 *) break;;
10014 esac
10015 done
10016 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10017
10018
10019 # We don't want -fno-exception wen compiling C++ code, so set the
10020 # no_builtin_flag separately
10021 if test "$GXX" = yes; then
10022 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10023 else
10024 lt_prog_compiler_no_builtin_flag_CXX=
10025 fi
10026
10027 if test "$GXX" = yes; then
10028 # Set up default GNU C++ configuration
10029
10030
10031 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10032 if test "${with_gnu_ld+set}" = set; then
10033 withval="$with_gnu_ld"
10034 test "$withval" = no || with_gnu_ld=yes
10035 else
10036 with_gnu_ld=no
10037 fi;
10038 ac_prog=ld
10039 if test "$GCC" = yes; then
10040 # Check if gcc -print-prog-name=ld gives a path.
10041 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10042 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10043 case $host in
10044 *-*-mingw*)
10045 # gcc leaves a trailing carriage return which upsets mingw
10046 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10047 *)
10048 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10049 esac
10050 case $ac_prog in
10051 # Accept absolute paths.
10052 [\\/]* | ?:[\\/]*)
10053 re_direlt='/[^/][^/]*/\.\./'
10054 # Canonicalize the pathname of ld
10055 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10056 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10057 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10058 done
10059 test -z "$LD" && LD="$ac_prog"
10060 ;;
10061 "")
10062 # If it fails, then pretend we aren't using GCC.
10063 ac_prog=ld
10064 ;;
10065 *)
10066 # If it is relative, then search for the first ld in PATH.
10067 with_gnu_ld=unknown
10068 ;;
10069 esac
10070 elif test "$with_gnu_ld" = yes; then
10071 echo "$as_me:$LINENO: checking for GNU ld" >&5
10072 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10073 else
10074 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10075 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10076 fi
10077 if test "${lt_cv_path_LD+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080 if test -z "$LD"; then
10081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10082 for ac_dir in $PATH; do
10083 IFS="$lt_save_ifs"
10084 test -z "$ac_dir" && ac_dir=.
10085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10086 lt_cv_path_LD="$ac_dir/$ac_prog"
10087 # Check to see if the program is GNU ld. I'd rather use --version,
10088 # but apparently some variants of GNU ld only accept -v.
10089 # Break only if it was the GNU/non-GNU ld that we prefer.
10090 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10091 *GNU* | *'with BFD'*)
10092 test "$with_gnu_ld" != no && break
10093 ;;
10094 *)
10095 test "$with_gnu_ld" != yes && break
10096 ;;
10097 esac
10098 fi
10099 done
10100 IFS="$lt_save_ifs"
10101 else
10102 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10103 fi
10104 fi
10105
10106 LD="$lt_cv_path_LD"
10107 if test -n "$LD"; then
10108 echo "$as_me:$LINENO: result: $LD" >&5
10109 echo "${ECHO_T}$LD" >&6
10110 else
10111 echo "$as_me:$LINENO: result: no" >&5
10112 echo "${ECHO_T}no" >&6
10113 fi
10114 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10115 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10116 { (exit 1); exit 1; }; }
10117 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10118 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10119 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 else
10122 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10123 case `$LD -v 2>&1 </dev/null` in
10124 *GNU* | *'with BFD'*)
10125 lt_cv_prog_gnu_ld=yes
10126 ;;
10127 *)
10128 lt_cv_prog_gnu_ld=no
10129 ;;
10130 esac
10131 fi
10132 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10133 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10134 with_gnu_ld=$lt_cv_prog_gnu_ld
10135
10136
10137
10138 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10139 # archiving commands below assume that GNU ld is being used.
10140 if test "$with_gnu_ld" = yes; then
10141 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142 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'
10143
10144 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10145 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10146
10147 # If archive_cmds runs LD, not CC, wlarc should be empty
10148 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10149 # investigate it a little bit more. (MM)
10150 wlarc='${wl}'
10151
10152 # ancient GNU ld didn't support --whole-archive et. al.
10153 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10154 grep 'no-whole-archive' > /dev/null; then
10155 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10156 else
10157 whole_archive_flag_spec_CXX=
10158 fi
10159 else
10160 with_gnu_ld=no
10161 wlarc=
10162
10163 # A generic and very simple default shared library creation
10164 # command for GNU C++ for the case where it uses the native
10165 # linker, instead of GNU ld. If possible, this setting should
10166 # overridden to take advantage of the native linker features on
10167 # the platform it is being used on.
10168 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10169 fi
10170
10171 # Commands to make compiler produce verbose output that lists
10172 # what "hidden" libraries, object files and flags are used when
10173 # linking a shared library.
10174 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10175
10176 else
10177 GXX=no
10178 with_gnu_ld=no
10179 wlarc=
10180 fi
10181
10182 # PORTME: fill in a description of your system's C++ link characteristics
10183 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10184 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10185 ld_shlibs_CXX=yes
10186 case $host_os in
10187 aix3*)
10188 # FIXME: insert proper C++ library support
10189 ld_shlibs_CXX=no
10190 ;;
10191 aix4* | aix5*)
10192 if test "$host_cpu" = ia64; then
10193 # On IA64, the linker does run time linking by default, so we don't
10194 # have to do anything special.
10195 aix_use_runtimelinking=no
10196 exp_sym_flag='-Bexport'
10197 no_entry_flag=""
10198 else
10199 aix_use_runtimelinking=no
10200
10201 # Test if we are trying to use run time linking or normal
10202 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10203 # need to do runtime linking.
10204 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10205 for ld_flag in $LDFLAGS; do
10206 case $ld_flag in
10207 *-brtl*)
10208 aix_use_runtimelinking=yes
10209 break
10210 ;;
10211 esac
10212 done
10213 ;;
10214 esac
10215
10216 exp_sym_flag='-bexport'
10217 no_entry_flag='-bnoentry'
10218 fi
10219
10220 # When large executables or shared objects are built, AIX ld can
10221 # have problems creating the table of contents. If linking a library
10222 # or program results in "error TOC overflow" add -mminimal-toc to
10223 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10224 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10225
10226 archive_cmds_CXX=''
10227 hardcode_direct_CXX=yes
10228 hardcode_libdir_separator_CXX=':'
10229 link_all_deplibs_CXX=yes
10230
10231 if test "$GXX" = yes; then
10232 case $host_os in aix4.[012]|aix4.[012].*)
10233 # We only want to do this on AIX 4.2 and lower, the check
10234 # below for broken collect2 doesn't work under 4.3+
10235 collect2name=`${CC} -print-prog-name=collect2`
10236 if test -f "$collect2name" && \
10237 strings "$collect2name" | grep resolve_lib_name >/dev/null
10238 then
10239 # We have reworked collect2
10240 hardcode_direct_CXX=yes
10241 else
10242 # We have old collect2
10243 hardcode_direct_CXX=unsupported
10244 # It fails to find uninstalled libraries when the uninstalled
10245 # path is not listed in the libpath. Setting hardcode_minus_L
10246 # to unsupported forces relinking
10247 hardcode_minus_L_CXX=yes
10248 hardcode_libdir_flag_spec_CXX='-L$libdir'
10249 hardcode_libdir_separator_CXX=
10250 fi
10251 ;;
10252 esac
10253 shared_flag='-shared'
10254 if test "$aix_use_runtimelinking" = yes; then
10255 shared_flag="$shared_flag "'${wl}-G'
10256 fi
10257 else
10258 # not using gcc
10259 if test "$host_cpu" = ia64; then
10260 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10261 # chokes on -Wl,-G. The following line is correct:
10262 shared_flag='-G'
10263 else
10264 if test "$aix_use_runtimelinking" = yes; then
10265 shared_flag='${wl}-G'
10266 else
10267 shared_flag='${wl}-bM:SRE'
10268 fi
10269 fi
10270 fi
10271
10272 # It seems that -bexpall does not export symbols beginning with
10273 # underscore (_), so it is better to generate a list of symbols to export.
10274 always_export_symbols_CXX=yes
10275 if test "$aix_use_runtimelinking" = yes; then
10276 # Warning - without using the other runtime loading flags (-brtl),
10277 # -berok will link without error, but may produce a broken library.
10278 allow_undefined_flag_CXX='-berok'
10279 # Determine the default libpath from the value encoded in an empty executable.
10280 cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h. */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286
10287 int
10288 main ()
10289 {
10290
10291 ;
10292 return 0;
10293 }
10294 _ACEOF
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297 (eval $ac_link) 2>conftest.er1
10298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -z "$ac_cxx_werror_flag"
10305 || test ! -s conftest.err'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest$ac_exeext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317
10318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10319 }'`
10320 # Check for a 64-bit object if we didn't find anything.
10321 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; }
10322 }'`; fi
10323 else
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10326
10327 fi
10328 rm -f conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10331
10332 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10333
10334 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10335 else
10336 if test "$host_cpu" = ia64; then
10337 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10338 allow_undefined_flag_CXX="-z nodefs"
10339 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10340 else
10341 # Determine the default libpath from the value encoded in an empty executable.
10342 cat >conftest.$ac_ext <<_ACEOF
10343 /* confdefs.h. */
10344 _ACEOF
10345 cat confdefs.h >>conftest.$ac_ext
10346 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */
10348
10349 int
10350 main ()
10351 {
10352
10353 ;
10354 return 0;
10355 }
10356 _ACEOF
10357 rm -f conftest.$ac_objext conftest$ac_exeext
10358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10359 (eval $ac_link) 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } &&
10366 { ac_try='test -z "$ac_cxx_werror_flag"
10367 || test ! -s conftest.err'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; } &&
10373 { ac_try='test -s conftest$ac_exeext'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379
10380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10381 }'`
10382 # Check for a 64-bit object if we didn't find anything.
10383 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; }
10384 }'`; fi
10385 else
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389 fi
10390 rm -f conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10393
10394 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10395 # Warning - without using the other run time loading flags,
10396 # -berok will link without error, but may produce a broken library.
10397 no_undefined_flag_CXX=' ${wl}-bernotok'
10398 allow_undefined_flag_CXX=' ${wl}-berok'
10399 # Exported symbols can be pulled into shared objects from archives
10400 whole_archive_flag_spec_CXX='$convenience'
10401 archive_cmds_need_lc_CXX=yes
10402 # This is similar to how AIX traditionally builds its shared libraries.
10403 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10404 fi
10405 fi
10406 ;;
10407
10408 beos*)
10409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10410 allow_undefined_flag_CXX=unsupported
10411 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10412 # support --undefined. This deserves some investigation. FIXME
10413 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10414 else
10415 ld_shlibs_CXX=no
10416 fi
10417 ;;
10418
10419 chorus*)
10420 case $cc_basename in
10421 *)
10422 # FIXME: insert proper C++ library support
10423 ld_shlibs_CXX=no
10424 ;;
10425 esac
10426 ;;
10427
10428 cygwin* | mingw* | pw32*)
10429 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10430 # as there is no search path for DLLs.
10431 hardcode_libdir_flag_spec_CXX='-L$libdir'
10432 allow_undefined_flag_CXX=unsupported
10433 always_export_symbols_CXX=no
10434 enable_shared_with_static_runtimes_CXX=yes
10435
10436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10437 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10438 # If the export-symbols file already is a .def file (1st line
10439 # is EXPORTS), use it as is; otherwise, prepend...
10440 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10441 cp $export_symbols $output_objdir/$soname.def;
10442 else
10443 echo EXPORTS > $output_objdir/$soname.def;
10444 cat $export_symbols >> $output_objdir/$soname.def;
10445 fi~
10446 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10447 else
10448 ld_shlibs_CXX=no
10449 fi
10450 ;;
10451 darwin* | rhapsody*)
10452 case $host_os in
10453 rhapsody* | darwin1.[012])
10454 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10455 ;;
10456 *) # Darwin 1.3 on
10457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10458 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10459 else
10460 case ${MACOSX_DEPLOYMENT_TARGET} in
10461 10.[012])
10462 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10463 ;;
10464 10.*)
10465 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10466 ;;
10467 esac
10468 fi
10469 ;;
10470 esac
10471 archive_cmds_need_lc_CXX=no
10472 hardcode_direct_CXX=no
10473 hardcode_automatic_CXX=yes
10474 hardcode_shlibpath_var_CXX=unsupported
10475 whole_archive_flag_spec_CXX=''
10476 link_all_deplibs_CXX=yes
10477
10478 if test "$GXX" = yes ; then
10479 lt_int_apple_cc_single_mod=no
10480 output_verbose_link_cmd='echo'
10481 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10482 lt_int_apple_cc_single_mod=yes
10483 fi
10484 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10485 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10486 else
10487 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'
10488 fi
10489 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10491 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10492 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}'
10493 else
10494 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}'
10495 fi
10496 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}'
10497 else
10498 case $cc_basename in
10499 xlc*)
10500 output_verbose_link_cmd='echo'
10501 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'
10502 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10503 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10504 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}'
10505 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}'
10506 ;;
10507 *)
10508 ld_shlibs_CXX=no
10509 ;;
10510 esac
10511 fi
10512 ;;
10513
10514 dgux*)
10515 case $cc_basename in
10516 ec++*)
10517 # FIXME: insert proper C++ library support
10518 ld_shlibs_CXX=no
10519 ;;
10520 ghcx*)
10521 # Green Hills C++ Compiler
10522 # FIXME: insert proper C++ library support
10523 ld_shlibs_CXX=no
10524 ;;
10525 *)
10526 # FIXME: insert proper C++ library support
10527 ld_shlibs_CXX=no
10528 ;;
10529 esac
10530 ;;
10531 freebsd[12]*)
10532 # C++ shared libraries reported to be fairly broken before switch to ELF
10533 ld_shlibs_CXX=no
10534 ;;
10535 freebsd-elf*)
10536 archive_cmds_need_lc_CXX=no
10537 ;;
10538 freebsd* | kfreebsd*-gnu | dragonfly*)
10539 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10540 # conventions
10541 ld_shlibs_CXX=yes
10542 ;;
10543 gnu*)
10544 ;;
10545 hpux9*)
10546 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10547 hardcode_libdir_separator_CXX=:
10548 export_dynamic_flag_spec_CXX='${wl}-E'
10549 hardcode_direct_CXX=yes
10550 hardcode_minus_L_CXX=yes # Not in the search PATH,
10551 # but as the default
10552 # location of the library.
10553
10554 case $cc_basename in
10555 CC*)
10556 # FIXME: insert proper C++ library support
10557 ld_shlibs_CXX=no
10558 ;;
10559 aCC*)
10560 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'
10561 # Commands to make compiler produce verbose output that lists
10562 # what "hidden" libraries, object files and flags are used when
10563 # linking a shared library.
10564 #
10565 # There doesn't appear to be a way to prevent this compiler from
10566 # explicitly linking system object files so we need to strip them
10567 # from the output so that they don't get included in the library
10568 # dependencies.
10569 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'
10570 ;;
10571 *)
10572 if test "$GXX" = yes; then
10573 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'
10574 else
10575 # FIXME: insert proper C++ library support
10576 ld_shlibs_CXX=no
10577 fi
10578 ;;
10579 esac
10580 ;;
10581 hpux10*|hpux11*)
10582 if test $with_gnu_ld = no; then
10583 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10584 hardcode_libdir_separator_CXX=:
10585
10586 case $host_cpu in
10587 hppa*64*|ia64*)
10588 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10589 ;;
10590 *)
10591 export_dynamic_flag_spec_CXX='${wl}-E'
10592 ;;
10593 esac
10594 fi
10595 case $host_cpu in
10596 hppa*64*|ia64*)
10597 hardcode_direct_CXX=no
10598 hardcode_shlibpath_var_CXX=no
10599 ;;
10600 *)
10601 hardcode_direct_CXX=yes
10602 hardcode_minus_L_CXX=yes # Not in the search PATH,
10603 # but as the default
10604 # location of the library.
10605 ;;
10606 esac
10607
10608 case $cc_basename in
10609 CC*)
10610 # FIXME: insert proper C++ library support
10611 ld_shlibs_CXX=no
10612 ;;
10613 aCC*)
10614 case $host_cpu in
10615 hppa*64*)
10616 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10617 ;;
10618 ia64*)
10619 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10620 ;;
10621 *)
10622 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10623 ;;
10624 esac
10625 # Commands to make compiler produce verbose output that lists
10626 # what "hidden" libraries, object files and flags are used when
10627 # linking a shared library.
10628 #
10629 # There doesn't appear to be a way to prevent this compiler from
10630 # explicitly linking system object files so we need to strip them
10631 # from the output so that they don't get included in the library
10632 # dependencies.
10633 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'
10634 ;;
10635 *)
10636 if test "$GXX" = yes; then
10637 if test $with_gnu_ld = no; then
10638 case $host_cpu in
10639 hppa*64*)
10640 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10641 ;;
10642 ia64*)
10643 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10644 ;;
10645 *)
10646 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'
10647 ;;
10648 esac
10649 fi
10650 else
10651 # FIXME: insert proper C++ library support
10652 ld_shlibs_CXX=no
10653 fi
10654 ;;
10655 esac
10656 ;;
10657 interix3*)
10658 hardcode_direct_CXX=no
10659 hardcode_shlibpath_var_CXX=no
10660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10661 export_dynamic_flag_spec_CXX='${wl}-E'
10662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10663 # Instead, shared libraries are loaded at an image base (0x10000000 by
10664 # default) and relocated if they conflict, which is a slow very memory
10665 # consuming and fragmenting process. To avoid this, we pick a random,
10666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10667 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10668 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10669 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10670 ;;
10671 irix5* | irix6*)
10672 case $cc_basename in
10673 CC*)
10674 # SGI C++
10675 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'
10676
10677 # Archives containing C++ object files must be created using
10678 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10679 # necessary to make sure instantiated templates are included
10680 # in the archive.
10681 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10682 ;;
10683 *)
10684 if test "$GXX" = yes; then
10685 if test "$with_gnu_ld" = no; then
10686 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'
10687 else
10688 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'
10689 fi
10690 fi
10691 link_all_deplibs_CXX=yes
10692 ;;
10693 esac
10694 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10695 hardcode_libdir_separator_CXX=:
10696 ;;
10697 linux*)
10698 case $cc_basename in
10699 KCC*)
10700 # Kuck and Associates, Inc. (KAI) C++ Compiler
10701
10702 # KCC will only create a shared library if the output file
10703 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10704 # to its proper name (with version) after linking.
10705 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'
10706 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'
10707 # Commands to make compiler produce verbose output that lists
10708 # what "hidden" libraries, object files and flags are used when
10709 # linking a shared library.
10710 #
10711 # There doesn't appear to be a way to prevent this compiler from
10712 # explicitly linking system object files so we need to strip them
10713 # from the output so that they don't get included in the library
10714 # dependencies.
10715 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'
10716
10717 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10719
10720 # Archives containing C++ object files must be created using
10721 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10722 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10723 ;;
10724 icpc*)
10725 # Intel C++
10726 with_gnu_ld=yes
10727 # version 8.0 and above of icpc choke on multiply defined symbols
10728 # if we add $predep_objects and $postdep_objects, however 7.1 and
10729 # earlier do not add the objects themselves.
10730 case `$CC -V 2>&1` in
10731 *"Version 7."*)
10732 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10733 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'
10734 ;;
10735 *) # Version 8.0 or newer
10736 tmp_idyn=
10737 case $host_cpu in
10738 ia64*) tmp_idyn=' -i_dynamic';;
10739 esac
10740 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10741 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'
10742 ;;
10743 esac
10744 archive_cmds_need_lc_CXX=no
10745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10747 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10748 ;;
10749 pgCC*)
10750 # Portland Group C++ compiler
10751 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10752 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'
10753
10754 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10756 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'
10757 ;;
10758 cxx*)
10759 # Compaq C++
10760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10761 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'
10762
10763 runpath_var=LD_RUN_PATH
10764 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10765 hardcode_libdir_separator_CXX=:
10766
10767 # Commands to make compiler produce verbose output that lists
10768 # what "hidden" libraries, object files and flags are used when
10769 # linking a shared library.
10770 #
10771 # There doesn't appear to be a way to prevent this compiler from
10772 # explicitly linking system object files so we need to strip them
10773 # from the output so that they don't get included in the library
10774 # dependencies.
10775 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'
10776 ;;
10777 esac
10778 ;;
10779 lynxos*)
10780 # FIXME: insert proper C++ library support
10781 ld_shlibs_CXX=no
10782 ;;
10783 m88k*)
10784 # FIXME: insert proper C++ library support
10785 ld_shlibs_CXX=no
10786 ;;
10787 mvs*)
10788 case $cc_basename in
10789 cxx*)
10790 # FIXME: insert proper C++ library support
10791 ld_shlibs_CXX=no
10792 ;;
10793 *)
10794 # FIXME: insert proper C++ library support
10795 ld_shlibs_CXX=no
10796 ;;
10797 esac
10798 ;;
10799 netbsd*)
10800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10801 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10802 wlarc=
10803 hardcode_libdir_flag_spec_CXX='-R$libdir'
10804 hardcode_direct_CXX=yes
10805 hardcode_shlibpath_var_CXX=no
10806 fi
10807 # Workaround some broken pre-1.5 toolchains
10808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10809 ;;
10810 openbsd2*)
10811 # C++ shared libraries are fairly broken
10812 ld_shlibs_CXX=no
10813 ;;
10814 openbsd*)
10815 hardcode_direct_CXX=yes
10816 hardcode_shlibpath_var_CXX=no
10817 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10819 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10820 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10821 export_dynamic_flag_spec_CXX='${wl}-E'
10822 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10823 fi
10824 output_verbose_link_cmd='echo'
10825 ;;
10826 osf3*)
10827 case $cc_basename in
10828 KCC*)
10829 # Kuck and Associates, Inc. (KAI) C++ Compiler
10830
10831 # KCC will only create a shared library if the output file
10832 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10833 # to its proper name (with version) after linking.
10834 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'
10835
10836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10837 hardcode_libdir_separator_CXX=:
10838
10839 # Archives containing C++ object files must be created using
10840 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10841 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10842
10843 ;;
10844 RCC*)
10845 # Rational C++ 2.4.1
10846 # FIXME: insert proper C++ library support
10847 ld_shlibs_CXX=no
10848 ;;
10849 cxx*)
10850 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10851 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'
10852
10853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10854 hardcode_libdir_separator_CXX=:
10855
10856 # Commands to make compiler produce verbose output that lists
10857 # what "hidden" libraries, object files and flags are used when
10858 # linking a shared library.
10859 #
10860 # There doesn't appear to be a way to prevent this compiler from
10861 # explicitly linking system object files so we need to strip them
10862 # from the output so that they don't get included in the library
10863 # dependencies.
10864 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'
10865 ;;
10866 *)
10867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10869 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'
10870
10871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10872 hardcode_libdir_separator_CXX=:
10873
10874 # Commands to make compiler produce verbose output that lists
10875 # what "hidden" libraries, object files and flags are used when
10876 # linking a shared library.
10877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10878
10879 else
10880 # FIXME: insert proper C++ library support
10881 ld_shlibs_CXX=no
10882 fi
10883 ;;
10884 esac
10885 ;;
10886 osf4* | osf5*)
10887 case $cc_basename in
10888 KCC*)
10889 # Kuck and Associates, Inc. (KAI) C++ Compiler
10890
10891 # KCC will only create a shared library if the output file
10892 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10893 # to its proper name (with version) after linking.
10894 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'
10895
10896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10897 hardcode_libdir_separator_CXX=:
10898
10899 # Archives containing C++ object files must be created using
10900 # the KAI C++ compiler.
10901 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10902 ;;
10903 RCC*)
10904 # Rational C++ 2.4.1
10905 # FIXME: insert proper C++ library support
10906 ld_shlibs_CXX=no
10907 ;;
10908 cxx*)
10909 allow_undefined_flag_CXX=' -expect_unresolved \*'
10910 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'
10911 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10912 echo "-hidden">> $lib.exp~
10913 $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~
10914 $rm $lib.exp'
10915
10916 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10917 hardcode_libdir_separator_CXX=:
10918
10919 # Commands to make compiler produce verbose output that lists
10920 # what "hidden" libraries, object files and flags are used when
10921 # linking a shared library.
10922 #
10923 # There doesn't appear to be a way to prevent this compiler from
10924 # explicitly linking system object files so we need to strip them
10925 # from the output so that they don't get included in the library
10926 # dependencies.
10927 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'
10928 ;;
10929 *)
10930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10932 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'
10933
10934 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10935 hardcode_libdir_separator_CXX=:
10936
10937 # Commands to make compiler produce verbose output that lists
10938 # what "hidden" libraries, object files and flags are used when
10939 # linking a shared library.
10940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10941
10942 else
10943 # FIXME: insert proper C++ library support
10944 ld_shlibs_CXX=no
10945 fi
10946 ;;
10947 esac
10948 ;;
10949 psos*)
10950 # FIXME: insert proper C++ library support
10951 ld_shlibs_CXX=no
10952 ;;
10953 sunos4*)
10954 case $cc_basename in
10955 CC*)
10956 # Sun C++ 4.x
10957 # FIXME: insert proper C++ library support
10958 ld_shlibs_CXX=no
10959 ;;
10960 lcc*)
10961 # Lucid
10962 # FIXME: insert proper C++ library support
10963 ld_shlibs_CXX=no
10964 ;;
10965 *)
10966 # FIXME: insert proper C++ library support
10967 ld_shlibs_CXX=no
10968 ;;
10969 esac
10970 ;;
10971 solaris*)
10972 case $cc_basename in
10973 CC*)
10974 # Sun C++ 4.2, 5.x and Centerline C++
10975 archive_cmds_need_lc_CXX=yes
10976 no_undefined_flag_CXX=' -zdefs'
10977 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10978 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10979 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10980
10981 hardcode_libdir_flag_spec_CXX='-R$libdir'
10982 hardcode_shlibpath_var_CXX=no
10983 case $host_os in
10984 solaris2.[0-5] | solaris2.[0-5].*) ;;
10985 *)
10986 # The C++ compiler is used as linker so we must use $wl
10987 # flag to pass the commands to the underlying system
10988 # linker. We must also pass each convience library through
10989 # to the system linker between allextract/defaultextract.
10990 # The C++ compiler will combine linker options so we
10991 # cannot just pass the convience library names through
10992 # without $wl.
10993 # Supported since Solaris 2.6 (maybe 2.5.1?)
10994 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'
10995 ;;
10996 esac
10997 link_all_deplibs_CXX=yes
10998
10999 output_verbose_link_cmd='echo'
11000
11001 # Archives containing C++ object files must be created using
11002 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11003 # necessary to make sure instantiated templates are included
11004 # in the archive.
11005 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11006 ;;
11007 gcx*)
11008 # Green Hills C++ Compiler
11009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11010
11011 # The C++ compiler must be used to create the archive.
11012 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11013 ;;
11014 *)
11015 # GNU C++ compiler with Solaris linker
11016 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11017 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11018 if $CC --version | grep -v '^2\.7' > /dev/null; then
11019 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11020 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11021 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11022
11023 # Commands to make compiler produce verbose output that lists
11024 # what "hidden" libraries, object files and flags are used when
11025 # linking a shared library.
11026 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11027 else
11028 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11029 # platform.
11030 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11031 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11032 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11033
11034 # Commands to make compiler produce verbose output that lists
11035 # what "hidden" libraries, object files and flags are used when
11036 # linking a shared library.
11037 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11038 fi
11039
11040 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11041 fi
11042 ;;
11043 esac
11044 ;;
11045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11046 no_undefined_flag_CXX='${wl}-z,text'
11047 archive_cmds_need_lc_CXX=no
11048 hardcode_shlibpath_var_CXX=no
11049 runpath_var='LD_RUN_PATH'
11050
11051 case $cc_basename in
11052 CC*)
11053 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11054 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 ;;
11056 *)
11057 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11058 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059 ;;
11060 esac
11061 ;;
11062 sysv5* | sco3.2v5* | sco5v6*)
11063 # Note: We can NOT use -z defs as we might desire, because we do not
11064 # link with -lc, and that would cause any symbols used from libc to
11065 # always be unresolved, which means just about no library would
11066 # ever link correctly. If we're not using GNU ld we use -z text
11067 # though, which does catch some bad symbols but isn't as heavy-handed
11068 # as -z defs.
11069 # For security reasons, it is highly recommended that you always
11070 # use absolute paths for naming shared libraries, and exclude the
11071 # DT_RUNPATH tag from executables and libraries. But doing so
11072 # requires that you compile everything twice, which is a pain.
11073 # So that behaviour is only enabled if SCOABSPATH is set to a
11074 # non-empty value in the environment. Most likely only useful for
11075 # creating official distributions of packages.
11076 # This is a hack until libtool officially supports absolute path
11077 # names for shared libraries.
11078 no_undefined_flag_CXX='${wl}-z,text'
11079 allow_undefined_flag_CXX='${wl}-z,nodefs'
11080 archive_cmds_need_lc_CXX=no
11081 hardcode_shlibpath_var_CXX=no
11082 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11083 hardcode_libdir_separator_CXX=':'
11084 link_all_deplibs_CXX=yes
11085 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11086 runpath_var='LD_RUN_PATH'
11087
11088 case $cc_basename in
11089 CC*)
11090 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11091 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11092 ;;
11093 *)
11094 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11095 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11096 ;;
11097 esac
11098 ;;
11099 tandem*)
11100 case $cc_basename in
11101 NCC*)
11102 # NonStop-UX NCC 3.20
11103 # FIXME: insert proper C++ library support
11104 ld_shlibs_CXX=no
11105 ;;
11106 *)
11107 # FIXME: insert proper C++ library support
11108 ld_shlibs_CXX=no
11109 ;;
11110 esac
11111 ;;
11112 vxworks*)
11113 # FIXME: insert proper C++ library support
11114 ld_shlibs_CXX=no
11115 ;;
11116 *)
11117 # FIXME: insert proper C++ library support
11118 ld_shlibs_CXX=no
11119 ;;
11120 esac
11121 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11122 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11123 test "$ld_shlibs_CXX" = no && can_build_shared=no
11124
11125 GCC_CXX="$GXX"
11126 LD_CXX="$LD"
11127
11128
11129 cat > conftest.$ac_ext <<EOF
11130 class Foo
11131 {
11132 public:
11133 Foo (void) { a = 0; }
11134 private:
11135 int a;
11136 };
11137 EOF
11138
11139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140 (eval $ac_compile) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; then
11144 # Parse the compiler output and extract the necessary
11145 # objects, libraries and library flags.
11146
11147 # Sentinel used to keep track of whether or not we are before
11148 # the conftest object file.
11149 pre_test_object_deps_done=no
11150
11151 # The `*' in the case matches for architectures that use `case' in
11152 # $output_verbose_cmd can trigger glob expansion during the loop
11153 # eval without this substitution.
11154 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11155
11156 for p in `eval $output_verbose_link_cmd`; do
11157 case $p in
11158
11159 -L* | -R* | -l*)
11160 # Some compilers place space between "-{L,R}" and the path.
11161 # Remove the space.
11162 if test $p = "-L" \
11163 || test $p = "-R"; then
11164 prev=$p
11165 continue
11166 else
11167 prev=
11168 fi
11169
11170 if test "$pre_test_object_deps_done" = no; then
11171 case $p in
11172 -L* | -R*)
11173 # Internal compiler library paths should come after those
11174 # provided the user. The postdeps already come after the
11175 # user supplied libs so there is no need to process them.
11176 if test -z "$compiler_lib_search_path_CXX"; then
11177 compiler_lib_search_path_CXX="${prev}${p}"
11178 else
11179 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11180 fi
11181 ;;
11182 # The "-l" case would never come before the object being
11183 # linked, so don't bother handling this case.
11184 esac
11185 else
11186 if test -z "$postdeps_CXX"; then
11187 postdeps_CXX="${prev}${p}"
11188 else
11189 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11190 fi
11191 fi
11192 ;;
11193
11194 *.$objext)
11195 # This assumes that the test object file only shows up
11196 # once in the compiler output.
11197 if test "$p" = "conftest.$objext"; then
11198 pre_test_object_deps_done=yes
11199 continue
11200 fi
11201
11202 if test "$pre_test_object_deps_done" = no; then
11203 if test -z "$predep_objects_CXX"; then
11204 predep_objects_CXX="$p"
11205 else
11206 predep_objects_CXX="$predep_objects_CXX $p"
11207 fi
11208 else
11209 if test -z "$postdep_objects_CXX"; then
11210 postdep_objects_CXX="$p"
11211 else
11212 postdep_objects_CXX="$postdep_objects_CXX $p"
11213 fi
11214 fi
11215 ;;
11216
11217 *) ;; # Ignore the rest.
11218
11219 esac
11220 done
11221
11222 # Clean up.
11223 rm -f a.out a.exe
11224 else
11225 echo "libtool.m4: error: problem compiling CXX test program"
11226 fi
11227
11228 $rm -f confest.$objext
11229
11230 # PORTME: override above test on systems where it is broken
11231 case $host_os in
11232 interix3*)
11233 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11234 # hack all around it, let's just trust "g++" to DTRT.
11235 predep_objects_CXX=
11236 postdep_objects_CXX=
11237 postdeps_CXX=
11238 ;;
11239
11240 solaris*)
11241 case $cc_basename in
11242 CC*)
11243 # Adding this requires a known-good setup of shared libraries for
11244 # Sun compiler versions before 5.6, else PIC objects from an old
11245 # archive will be linked into the output, leading to subtle bugs.
11246 postdeps_CXX='-lCstd -lCrun'
11247 ;;
11248 esac
11249 ;;
11250 esac
11251
11252
11253 case " $postdeps_CXX " in
11254 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11255 esac
11256
11257 lt_prog_compiler_wl_CXX=
11258 lt_prog_compiler_pic_CXX=
11259 lt_prog_compiler_static_CXX=
11260
11261 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11262 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11263
11264 # C++ specific cases for pic, static, wl, etc.
11265 if test "$GXX" = yes; then
11266 lt_prog_compiler_wl_CXX='-Wl,'
11267 lt_prog_compiler_static_CXX='-static'
11268
11269 case $host_os in
11270 aix*)
11271 # All AIX code is PIC.
11272 if test "$host_cpu" = ia64; then
11273 # AIX 5 now supports IA64 processor
11274 lt_prog_compiler_static_CXX='-Bstatic'
11275 fi
11276 ;;
11277 amigaos*)
11278 # FIXME: we need at least 68020 code to build shared libraries, but
11279 # adding the `-m68020' flag to GCC prevents building anything better,
11280 # like `-m68040'.
11281 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11282 ;;
11283 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11284 # PIC is the default for these OSes.
11285 ;;
11286 mingw* | os2* | pw32*)
11287 # This hack is so that the source file can tell whether it is being
11288 # built for inclusion in a dll (and should export symbols for example).
11289 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11290 ;;
11291 darwin* | rhapsody*)
11292 # PIC is the default on this platform
11293 # Common symbols not allowed in MH_DYLIB files
11294 lt_prog_compiler_pic_CXX='-fno-common'
11295 ;;
11296 *djgpp*)
11297 # DJGPP does not support shared libraries at all
11298 lt_prog_compiler_pic_CXX=
11299 ;;
11300 interix3*)
11301 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11302 # Instead, we relocate shared libraries at runtime.
11303 ;;
11304 sysv4*MP*)
11305 if test -d /usr/nec; then
11306 lt_prog_compiler_pic_CXX=-Kconform_pic
11307 fi
11308 ;;
11309 hpux*)
11310 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11311 # not for PA HP-UX.
11312 case $host_cpu in
11313 hppa*64*|ia64*)
11314 ;;
11315 *)
11316 lt_prog_compiler_pic_CXX='-fPIC'
11317 ;;
11318 esac
11319 ;;
11320 *)
11321 lt_prog_compiler_pic_CXX='-fPIC'
11322 ;;
11323 esac
11324 else
11325 case $host_os in
11326 aix4* | aix5*)
11327 # All AIX code is PIC.
11328 if test "$host_cpu" = ia64; then
11329 # AIX 5 now supports IA64 processor
11330 lt_prog_compiler_static_CXX='-Bstatic'
11331 else
11332 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11333 fi
11334 ;;
11335 chorus*)
11336 case $cc_basename in
11337 cxch68*)
11338 # Green Hills C++ Compiler
11339 # _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"
11340 ;;
11341 esac
11342 ;;
11343 darwin*)
11344 # PIC is the default on this platform
11345 # Common symbols not allowed in MH_DYLIB files
11346 case $cc_basename in
11347 xlc*)
11348 lt_prog_compiler_pic_CXX='-qnocommon'
11349 lt_prog_compiler_wl_CXX='-Wl,'
11350 ;;
11351 esac
11352 ;;
11353 dgux*)
11354 case $cc_basename in
11355 ec++*)
11356 lt_prog_compiler_pic_CXX='-KPIC'
11357 ;;
11358 ghcx*)
11359 # Green Hills C++ Compiler
11360 lt_prog_compiler_pic_CXX='-pic'
11361 ;;
11362 *)
11363 ;;
11364 esac
11365 ;;
11366 freebsd* | kfreebsd*-gnu | dragonfly*)
11367 # FreeBSD uses GNU C++
11368 ;;
11369 hpux9* | hpux10* | hpux11*)
11370 case $cc_basename in
11371 CC*)
11372 lt_prog_compiler_wl_CXX='-Wl,'
11373 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11374 if test "$host_cpu" != ia64; then
11375 lt_prog_compiler_pic_CXX='+Z'
11376 fi
11377 ;;
11378 aCC*)
11379 lt_prog_compiler_wl_CXX='-Wl,'
11380 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11381 case $host_cpu in
11382 hppa*64*|ia64*)
11383 # +Z the default
11384 ;;
11385 *)
11386 lt_prog_compiler_pic_CXX='+Z'
11387 ;;
11388 esac
11389 ;;
11390 *)
11391 ;;
11392 esac
11393 ;;
11394 interix*)
11395 # This is c89, which is MS Visual C++ (no shared libs)
11396 # Anyone wants to do a port?
11397 ;;
11398 irix5* | irix6* | nonstopux*)
11399 case $cc_basename in
11400 CC*)
11401 lt_prog_compiler_wl_CXX='-Wl,'
11402 lt_prog_compiler_static_CXX='-non_shared'
11403 # CC pic flag -KPIC is the default.
11404 ;;
11405 *)
11406 ;;
11407 esac
11408 ;;
11409 linux*)
11410 case $cc_basename in
11411 KCC*)
11412 # KAI C++ Compiler
11413 lt_prog_compiler_wl_CXX='--backend -Wl,'
11414 lt_prog_compiler_pic_CXX='-fPIC'
11415 ;;
11416 icpc* | ecpc*)
11417 # Intel C++
11418 lt_prog_compiler_wl_CXX='-Wl,'
11419 lt_prog_compiler_pic_CXX='-KPIC'
11420 lt_prog_compiler_static_CXX='-static'
11421 ;;
11422 pgCC*)
11423 # Portland Group C++ compiler.
11424 lt_prog_compiler_wl_CXX='-Wl,'
11425 lt_prog_compiler_pic_CXX='-fpic'
11426 lt_prog_compiler_static_CXX='-Bstatic'
11427 ;;
11428 cxx*)
11429 # Compaq C++
11430 # Make sure the PIC flag is empty. It appears that all Alpha
11431 # Linux and Compaq Tru64 Unix objects are PIC.
11432 lt_prog_compiler_pic_CXX=
11433 lt_prog_compiler_static_CXX='-non_shared'
11434 ;;
11435 *)
11436 ;;
11437 esac
11438 ;;
11439 lynxos*)
11440 ;;
11441 m88k*)
11442 ;;
11443 mvs*)
11444 case $cc_basename in
11445 cxx*)
11446 lt_prog_compiler_pic_CXX='-W c,exportall'
11447 ;;
11448 *)
11449 ;;
11450 esac
11451 ;;
11452 netbsd*)
11453 ;;
11454 osf3* | osf4* | osf5*)
11455 case $cc_basename in
11456 KCC*)
11457 lt_prog_compiler_wl_CXX='--backend -Wl,'
11458 ;;
11459 RCC*)
11460 # Rational C++ 2.4.1
11461 lt_prog_compiler_pic_CXX='-pic'
11462 ;;
11463 cxx*)
11464 # Digital/Compaq C++
11465 lt_prog_compiler_wl_CXX='-Wl,'
11466 # Make sure the PIC flag is empty. It appears that all Alpha
11467 # Linux and Compaq Tru64 Unix objects are PIC.
11468 lt_prog_compiler_pic_CXX=
11469 lt_prog_compiler_static_CXX='-non_shared'
11470 ;;
11471 *)
11472 ;;
11473 esac
11474 ;;
11475 psos*)
11476 ;;
11477 solaris*)
11478 case $cc_basename in
11479 CC*)
11480 # Sun C++ 4.2, 5.x and Centerline C++
11481 lt_prog_compiler_pic_CXX='-KPIC'
11482 lt_prog_compiler_static_CXX='-Bstatic'
11483 lt_prog_compiler_wl_CXX='-Qoption ld '
11484 ;;
11485 gcx*)
11486 # Green Hills C++ Compiler
11487 lt_prog_compiler_pic_CXX='-PIC'
11488 ;;
11489 *)
11490 ;;
11491 esac
11492 ;;
11493 sunos4*)
11494 case $cc_basename in
11495 CC*)
11496 # Sun C++ 4.x
11497 lt_prog_compiler_pic_CXX='-pic'
11498 lt_prog_compiler_static_CXX='-Bstatic'
11499 ;;
11500 lcc*)
11501 # Lucid
11502 lt_prog_compiler_pic_CXX='-pic'
11503 ;;
11504 *)
11505 ;;
11506 esac
11507 ;;
11508 tandem*)
11509 case $cc_basename in
11510 NCC*)
11511 # NonStop-UX NCC 3.20
11512 lt_prog_compiler_pic_CXX='-KPIC'
11513 ;;
11514 *)
11515 ;;
11516 esac
11517 ;;
11518 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11519 case $cc_basename in
11520 CC*)
11521 lt_prog_compiler_wl_CXX='-Wl,'
11522 lt_prog_compiler_pic_CXX='-KPIC'
11523 lt_prog_compiler_static_CXX='-Bstatic'
11524 ;;
11525 esac
11526 ;;
11527 vxworks*)
11528 ;;
11529 *)
11530 lt_prog_compiler_can_build_shared_CXX=no
11531 ;;
11532 esac
11533 fi
11534
11535 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11536 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11537
11538 #
11539 # Check to make sure the PIC flag actually works.
11540 #
11541 if test -n "$lt_prog_compiler_pic_CXX"; then
11542
11543 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11544 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11545 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548 lt_prog_compiler_pic_works_CXX=no
11549 ac_outfile=conftest.$ac_objext
11550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11551 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11552 # Insert the option either (1) after the last *FLAGS variable, or
11553 # (2) before a word containing "conftest.", or (3) at the end.
11554 # Note that $ac_compile itself does not contain backslashes and begins
11555 # with a dollar sign (not a hyphen), so the echo should work correctly.
11556 # The option is referenced via a variable to avoid confusing sed.
11557 lt_compile=`echo "$ac_compile" | $SED \
11558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11560 -e 's:$: $lt_compiler_flag:'`
11561 (eval echo "\"\$as_me:11561: $lt_compile\"" >&5)
11562 (eval "$lt_compile" 2>conftest.err)
11563 ac_status=$?
11564 cat conftest.err >&5
11565 echo "$as_me:11565: \$? = $ac_status" >&5
11566 if (exit $ac_status) && test -s "$ac_outfile"; then
11567 # The compiler can only warn and ignore the option if not recognized
11568 # So say no if there are warnings other than the usual output.
11569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11572 lt_prog_compiler_pic_works_CXX=yes
11573 fi
11574 fi
11575 $rm conftest*
11576
11577 fi
11578 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11579 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11580
11581 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11582 case $lt_prog_compiler_pic_CXX in
11583 "" | " "*) ;;
11584 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11585 esac
11586 else
11587 lt_prog_compiler_pic_CXX=
11588 lt_prog_compiler_can_build_shared_CXX=no
11589 fi
11590
11591 fi
11592 case $host_os in
11593 # For platforms which do not support PIC, -DPIC is meaningless:
11594 *djgpp*)
11595 lt_prog_compiler_pic_CXX=
11596 ;;
11597 *)
11598 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11599 ;;
11600 esac
11601
11602 #
11603 # Check to make sure the static flag actually works.
11604 #
11605 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11606 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11607 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11608 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611 lt_prog_compiler_static_works_CXX=no
11612 save_LDFLAGS="$LDFLAGS"
11613 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11614 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11616 # The linker can only warn and ignore the option if not recognized
11617 # So say no if there are warnings
11618 if test -s conftest.err; then
11619 # Append any errors to the config.log.
11620 cat conftest.err 1>&5
11621 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11623 if diff conftest.exp conftest.er2 >/dev/null; then
11624 lt_prog_compiler_static_works_CXX=yes
11625 fi
11626 else
11627 lt_prog_compiler_static_works_CXX=yes
11628 fi
11629 fi
11630 $rm conftest*
11631 LDFLAGS="$save_LDFLAGS"
11632
11633 fi
11634 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11635 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11636
11637 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11638 :
11639 else
11640 lt_prog_compiler_static_CXX=
11641 fi
11642
11643
11644 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11645 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11646 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649 lt_cv_prog_compiler_c_o_CXX=no
11650 $rm -r conftest 2>/dev/null
11651 mkdir conftest
11652 cd conftest
11653 mkdir out
11654 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11655
11656 lt_compiler_flag="-o out/conftest2.$ac_objext"
11657 # Insert the option either (1) after the last *FLAGS variable, or
11658 # (2) before a word containing "conftest.", or (3) at the end.
11659 # Note that $ac_compile itself does not contain backslashes and begins
11660 # with a dollar sign (not a hyphen), so the echo should work correctly.
11661 lt_compile=`echo "$ac_compile" | $SED \
11662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11664 -e 's:$: $lt_compiler_flag:'`
11665 (eval echo "\"\$as_me:11665: $lt_compile\"" >&5)
11666 (eval "$lt_compile" 2>out/conftest.err)
11667 ac_status=$?
11668 cat out/conftest.err >&5
11669 echo "$as_me:11669: \$? = $ac_status" >&5
11670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11671 then
11672 # The compiler can only warn and ignore the option if not recognized
11673 # So say no if there are warnings
11674 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11677 lt_cv_prog_compiler_c_o_CXX=yes
11678 fi
11679 fi
11680 chmod u+w . 2>&5
11681 $rm conftest*
11682 # SGI C++ compiler will create directory out/ii_files/ for
11683 # template instantiation
11684 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11685 $rm out/* && rmdir out
11686 cd ..
11687 rmdir conftest
11688 $rm conftest*
11689
11690 fi
11691 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11692 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11693
11694
11695 hard_links="nottested"
11696 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11697 # do not overwrite the value of need_locks provided by the user
11698 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11699 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11700 hard_links=yes
11701 $rm conftest*
11702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11703 touch conftest.a
11704 ln conftest.a conftest.b 2>&5 || hard_links=no
11705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11706 echo "$as_me:$LINENO: result: $hard_links" >&5
11707 echo "${ECHO_T}$hard_links" >&6
11708 if test "$hard_links" = no; then
11709 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11710 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11711 need_locks=warn
11712 fi
11713 else
11714 need_locks=no
11715 fi
11716
11717 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11718 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11719
11720 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11721 case $host_os in
11722 aix4* | aix5*)
11723 # If we're using GNU nm, then we don't want the "-C" option.
11724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11726 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'
11727 else
11728 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'
11729 fi
11730 ;;
11731 pw32*)
11732 export_symbols_cmds_CXX="$ltdll_cmds"
11733 ;;
11734 cygwin* | mingw*)
11735 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'
11736 ;;
11737 *)
11738 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11739 ;;
11740 esac
11741
11742 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11743 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11744 test "$ld_shlibs_CXX" = no && can_build_shared=no
11745
11746 #
11747 # Do we need to explicitly link libc?
11748 #
11749 case "x$archive_cmds_need_lc_CXX" in
11750 x|xyes)
11751 # Assume -lc should be added
11752 archive_cmds_need_lc_CXX=yes
11753
11754 if test "$enable_shared" = yes && test "$GCC" = yes; then
11755 case $archive_cmds_CXX in
11756 *'~'*)
11757 # FIXME: we may have to deal with multi-command sequences.
11758 ;;
11759 '$CC '*)
11760 # Test whether the compiler implicitly links with -lc since on some
11761 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11762 # to ld, don't add -lc before -lgcc.
11763 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11764 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11765 $rm conftest*
11766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11767
11768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11769 (eval $ac_compile) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } 2>conftest.err; then
11773 soname=conftest
11774 lib=conftest
11775 libobjs=conftest.$ac_objext
11776 deplibs=
11777 wl=$lt_prog_compiler_wl_CXX
11778 pic_flag=$lt_prog_compiler_pic_CXX
11779 compiler_flags=-v
11780 linker_flags=-v
11781 verstring=
11782 output_objdir=.
11783 libname=conftest
11784 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11785 allow_undefined_flag_CXX=
11786 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11787 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }
11791 then
11792 archive_cmds_need_lc_CXX=no
11793 else
11794 archive_cmds_need_lc_CXX=yes
11795 fi
11796 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11797 else
11798 cat conftest.err 1>&5
11799 fi
11800 $rm conftest*
11801 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11802 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11803 ;;
11804 esac
11805 fi
11806 ;;
11807 esac
11808
11809 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11810 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11811 library_names_spec=
11812 libname_spec='lib$name'
11813 soname_spec=
11814 shrext_cmds=".so"
11815 postinstall_cmds=
11816 postuninstall_cmds=
11817 finish_cmds=
11818 finish_eval=
11819 shlibpath_var=
11820 shlibpath_overrides_runpath=unknown
11821 version_type=none
11822 dynamic_linker="$host_os ld.so"
11823 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11824 if test "$GCC" = yes; then
11825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11826 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11827 # if the path contains ";" then we assume it to be the separator
11828 # otherwise default to the standard path separator (i.e. ":") - it is
11829 # assumed that no part of a normal pathname contains ";" but that should
11830 # okay in the real world where ";" in dirpaths is itself problematic.
11831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11832 else
11833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11834 fi
11835 else
11836 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11837 fi
11838 need_lib_prefix=unknown
11839 hardcode_into_libs=no
11840
11841 # when you set need_version to no, make sure it does not cause -set_version
11842 # flags to be left without arguments
11843 need_version=unknown
11844
11845 case $host_os in
11846 aix3*)
11847 version_type=linux
11848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11849 shlibpath_var=LIBPATH
11850
11851 # AIX 3 has no versioning support, so we append a major version to the name.
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 ;;
11854
11855 aix4* | aix5*)
11856 version_type=linux
11857 need_lib_prefix=no
11858 need_version=no
11859 hardcode_into_libs=yes
11860 if test "$host_cpu" = ia64; then
11861 # AIX 5 supports IA64
11862 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 else
11865 # With GCC up to 2.95.x, collect2 would create an import file
11866 # for dependence libraries. The import file would start with
11867 # the line `#! .'. This would cause the generated library to
11868 # depend on `.', always an invalid library. This was fixed in
11869 # development snapshots of GCC prior to 3.0.
11870 case $host_os in
11871 aix4 | aix4.[01] | aix4.[01].*)
11872 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11873 echo ' yes '
11874 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11875 :
11876 else
11877 can_build_shared=no
11878 fi
11879 ;;
11880 esac
11881 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11882 # soname into executable. Probably we can add versioning support to
11883 # collect2, so additional links can be useful in future.
11884 if test "$aix_use_runtimelinking" = yes; then
11885 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11886 # instead of lib<name>.a to let people know that these are not
11887 # typical AIX shared libraries.
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11889 else
11890 # We preserve .a as extension for shared libraries through AIX4.2
11891 # and later when we are not doing run time linking.
11892 library_names_spec='${libname}${release}.a $libname.a'
11893 soname_spec='${libname}${release}${shared_ext}$major'
11894 fi
11895 shlibpath_var=LIBPATH
11896 fi
11897 ;;
11898
11899 amigaos*)
11900 library_names_spec='$libname.ixlibrary $libname.a'
11901 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11902 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'
11903 ;;
11904
11905 beos*)
11906 library_names_spec='${libname}${shared_ext}'
11907 dynamic_linker="$host_os ld.so"
11908 shlibpath_var=LIBRARY_PATH
11909 ;;
11910
11911 bsdi[45]*)
11912 version_type=linux
11913 need_version=no
11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11915 soname_spec='${libname}${release}${shared_ext}$major'
11916 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11917 shlibpath_var=LD_LIBRARY_PATH
11918 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11919 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11920 # the default ld.so.conf also contains /usr/contrib/lib and
11921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11922 # libtool to hard-code these into programs
11923 ;;
11924
11925 cygwin* | mingw* | pw32*)
11926 version_type=windows
11927 shrext_cmds=".dll"
11928 need_version=no
11929 need_lib_prefix=no
11930
11931 case $GCC,$host_os in
11932 yes,cygwin* | yes,mingw* | yes,pw32*)
11933 library_names_spec='$libname.dll.a'
11934 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11935 postinstall_cmds='base_file=`basename \${file}`~
11936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11937 dldir=$destdir/`dirname \$dlpath`~
11938 test -d \$dldir || mkdir -p \$dldir~
11939 $install_prog $dir/$dlname \$dldir/$dlname~
11940 chmod a+x \$dldir/$dlname'
11941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11942 dlpath=$dir/\$dldll~
11943 $rm \$dlpath'
11944 shlibpath_overrides_runpath=yes
11945
11946 case $host_os in
11947 cygwin*)
11948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11950 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11951 ;;
11952 mingw*)
11953 # MinGW DLLs use traditional 'lib' prefix
11954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11956 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11957 # It is most probably a Windows format PATH printed by
11958 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11959 # path with ; separators, and with drive letters. We can handle the
11960 # drive letters (cygwin fileutils understands them), so leave them,
11961 # especially as we might pass files found there to a mingw objdump,
11962 # which wouldn't understand a cygwinified path. Ahh.
11963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11964 else
11965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11966 fi
11967 ;;
11968 pw32*)
11969 # pw32 DLLs use 'pw' prefix rather than 'lib'
11970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11971 ;;
11972 esac
11973 ;;
11974
11975 *)
11976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11977 ;;
11978 esac
11979 dynamic_linker='Win32 ld.exe'
11980 # FIXME: first we should search . and the directory the executable is in
11981 shlibpath_var=PATH
11982 ;;
11983
11984 darwin* | rhapsody*)
11985 dynamic_linker="$host_os dyld"
11986 version_type=darwin
11987 need_lib_prefix=no
11988 need_version=no
11989 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11990 soname_spec='${libname}${release}${major}$shared_ext'
11991 shlibpath_overrides_runpath=yes
11992 shlibpath_var=DYLD_LIBRARY_PATH
11993 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11994 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11995 if test "$GCC" = yes; then
11996 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"`
11997 else
11998 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11999 fi
12000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12001 ;;
12002
12003 dgux*)
12004 version_type=linux
12005 need_lib_prefix=no
12006 need_version=no
12007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12008 soname_spec='${libname}${release}${shared_ext}$major'
12009 shlibpath_var=LD_LIBRARY_PATH
12010 ;;
12011
12012 freebsd1*)
12013 dynamic_linker=no
12014 ;;
12015
12016 kfreebsd*-gnu)
12017 version_type=linux
12018 need_lib_prefix=no
12019 need_version=no
12020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12021 soname_spec='${libname}${release}${shared_ext}$major'
12022 shlibpath_var=LD_LIBRARY_PATH
12023 shlibpath_overrides_runpath=no
12024 hardcode_into_libs=yes
12025 dynamic_linker='GNU ld.so'
12026 ;;
12027
12028 freebsd* | dragonfly*)
12029 # DragonFly does not have aout. When/if they implement a new
12030 # versioning mechanism, adjust this.
12031 if test -x /usr/bin/objformat; then
12032 objformat=`/usr/bin/objformat`
12033 else
12034 case $host_os in
12035 freebsd[123]*) objformat=aout ;;
12036 *) objformat=elf ;;
12037 esac
12038 fi
12039 version_type=freebsd-$objformat
12040 case $version_type in
12041 freebsd-elf*)
12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12043 need_version=no
12044 need_lib_prefix=no
12045 ;;
12046 freebsd-*)
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12048 need_version=yes
12049 ;;
12050 esac
12051 shlibpath_var=LD_LIBRARY_PATH
12052 case $host_os in
12053 freebsd2*)
12054 shlibpath_overrides_runpath=yes
12055 ;;
12056 freebsd3.[01]* | freebsdelf3.[01]*)
12057 shlibpath_overrides_runpath=yes
12058 hardcode_into_libs=yes
12059 ;;
12060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12062 shlibpath_overrides_runpath=no
12063 hardcode_into_libs=yes
12064 ;;
12065 freebsd*) # from 4.6 on
12066 shlibpath_overrides_runpath=yes
12067 hardcode_into_libs=yes
12068 ;;
12069 esac
12070 ;;
12071
12072 gnu*)
12073 version_type=linux
12074 need_lib_prefix=no
12075 need_version=no
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12077 soname_spec='${libname}${release}${shared_ext}$major'
12078 shlibpath_var=LD_LIBRARY_PATH
12079 hardcode_into_libs=yes
12080 ;;
12081
12082 hpux9* | hpux10* | hpux11*)
12083 # Give a soname corresponding to the major version so that dld.sl refuses to
12084 # link against other versions.
12085 version_type=sunos
12086 need_lib_prefix=no
12087 need_version=no
12088 case $host_cpu in
12089 ia64*)
12090 shrext_cmds='.so'
12091 hardcode_into_libs=yes
12092 dynamic_linker="$host_os dld.so"
12093 shlibpath_var=LD_LIBRARY_PATH
12094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12096 soname_spec='${libname}${release}${shared_ext}$major'
12097 if test "X$HPUX_IA64_MODE" = X32; then
12098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12099 else
12100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12101 fi
12102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12103 ;;
12104 hppa*64*)
12105 shrext_cmds='.sl'
12106 hardcode_into_libs=yes
12107 dynamic_linker="$host_os dld.sl"
12108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12111 soname_spec='${libname}${release}${shared_ext}$major'
12112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12114 ;;
12115 *)
12116 shrext_cmds='.sl'
12117 dynamic_linker="$host_os dld.sl"
12118 shlibpath_var=SHLIB_PATH
12119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12121 soname_spec='${libname}${release}${shared_ext}$major'
12122 ;;
12123 esac
12124 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12125 postinstall_cmds='chmod 555 $lib'
12126 ;;
12127
12128 interix3*)
12129 version_type=linux
12130 need_lib_prefix=no
12131 need_version=no
12132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12133 soname_spec='${libname}${release}${shared_ext}$major'
12134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12135 shlibpath_var=LD_LIBRARY_PATH
12136 shlibpath_overrides_runpath=no
12137 hardcode_into_libs=yes
12138 ;;
12139
12140 irix5* | irix6* | nonstopux*)
12141 case $host_os in
12142 nonstopux*) version_type=nonstopux ;;
12143 *)
12144 if test "$lt_cv_prog_gnu_ld" = yes; then
12145 version_type=linux
12146 else
12147 version_type=irix
12148 fi ;;
12149 esac
12150 need_lib_prefix=no
12151 need_version=no
12152 soname_spec='${libname}${release}${shared_ext}$major'
12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12154 case $host_os in
12155 irix5* | nonstopux*)
12156 libsuff= shlibsuff=
12157 ;;
12158 *)
12159 case $LD in # libtool.m4 will add one of these switches to LD
12160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12161 libsuff= shlibsuff= libmagic=32-bit;;
12162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12163 libsuff=32 shlibsuff=N32 libmagic=N32;;
12164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12166 *) libsuff= shlibsuff= libmagic=never-match;;
12167 esac
12168 ;;
12169 esac
12170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12171 shlibpath_overrides_runpath=no
12172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12174 hardcode_into_libs=yes
12175 ;;
12176
12177 # No shared lib support for Linux oldld, aout, or coff.
12178 linux*oldld* | linux*aout* | linux*coff*)
12179 dynamic_linker=no
12180 ;;
12181
12182 # This must be Linux ELF.
12183 linux*)
12184 version_type=linux
12185 need_lib_prefix=no
12186 need_version=no
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12190 shlibpath_var=LD_LIBRARY_PATH
12191 shlibpath_overrides_runpath=no
12192 # This implies no fast_install, which is unacceptable.
12193 # Some rework will be needed to allow for fast_install
12194 # before this can be enabled.
12195 hardcode_into_libs=yes
12196
12197 # find out which ABI we are using
12198 libsuff=
12199 case "$host_cpu" in
12200 x86_64*|s390x*|powerpc64*)
12201 echo '#line 12201 "configure"' > conftest.$ac_ext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12203 (eval $ac_compile) 2>&5
12204 ac_status=$?
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; then
12207 case `/usr/bin/file conftest.$ac_objext` in
12208 *64-bit*)
12209 libsuff=64
12210 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12211 ;;
12212 esac
12213 fi
12214 rm -rf conftest*
12215 ;;
12216 esac
12217
12218 # Append ld.so.conf contents to the search path
12219 if test -f /etc/ld.so.conf; then
12220 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' ' '`
12221 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12222 fi
12223
12224 # We used to test for /lib/ld.so.1 and disable shared libraries on
12225 # powerpc, because MkLinux only supported shared libraries with the
12226 # GNU dynamic linker. Since this was broken with cross compilers,
12227 # most powerpc-linux boxes support dynamic linking these days and
12228 # people can always --disable-shared, the test was removed, and we
12229 # assume the GNU/Linux dynamic linker is in use.
12230 dynamic_linker='GNU/Linux ld.so'
12231 ;;
12232
12233 knetbsd*-gnu)
12234 version_type=linux
12235 need_lib_prefix=no
12236 need_version=no
12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12238 soname_spec='${libname}${release}${shared_ext}$major'
12239 shlibpath_var=LD_LIBRARY_PATH
12240 shlibpath_overrides_runpath=no
12241 hardcode_into_libs=yes
12242 dynamic_linker='GNU ld.so'
12243 ;;
12244
12245 netbsd*)
12246 version_type=sunos
12247 need_lib_prefix=no
12248 need_version=no
12249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12252 dynamic_linker='NetBSD (a.out) ld.so'
12253 else
12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12255 soname_spec='${libname}${release}${shared_ext}$major'
12256 dynamic_linker='NetBSD ld.elf_so'
12257 fi
12258 shlibpath_var=LD_LIBRARY_PATH
12259 shlibpath_overrides_runpath=yes
12260 hardcode_into_libs=yes
12261 ;;
12262
12263 newsos6)
12264 version_type=linux
12265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 shlibpath_overrides_runpath=yes
12268 ;;
12269
12270 nto-qnx*)
12271 version_type=linux
12272 need_lib_prefix=no
12273 need_version=no
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12275 soname_spec='${libname}${release}${shared_ext}$major'
12276 shlibpath_var=LD_LIBRARY_PATH
12277 shlibpath_overrides_runpath=yes
12278 ;;
12279
12280 openbsd*)
12281 version_type=sunos
12282 sys_lib_dlsearch_path_spec="/usr/lib"
12283 need_lib_prefix=no
12284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12285 case $host_os in
12286 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12287 *) need_version=no ;;
12288 esac
12289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12291 shlibpath_var=LD_LIBRARY_PATH
12292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12293 case $host_os in
12294 openbsd2.[89] | openbsd2.[89].*)
12295 shlibpath_overrides_runpath=no
12296 ;;
12297 *)
12298 shlibpath_overrides_runpath=yes
12299 ;;
12300 esac
12301 else
12302 shlibpath_overrides_runpath=yes
12303 fi
12304 ;;
12305
12306 os2*)
12307 libname_spec='$name'
12308 shrext_cmds=".dll"
12309 need_lib_prefix=no
12310 library_names_spec='$libname${shared_ext} $libname.a'
12311 dynamic_linker='OS/2 ld.exe'
12312 shlibpath_var=LIBPATH
12313 ;;
12314
12315 osf3* | osf4* | osf5*)
12316 version_type=osf
12317 need_lib_prefix=no
12318 need_version=no
12319 soname_spec='${libname}${release}${shared_ext}$major'
12320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12321 shlibpath_var=LD_LIBRARY_PATH
12322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12324 ;;
12325
12326 solaris*)
12327 version_type=linux
12328 need_lib_prefix=no
12329 need_version=no
12330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12331 soname_spec='${libname}${release}${shared_ext}$major'
12332 shlibpath_var=LD_LIBRARY_PATH
12333 shlibpath_overrides_runpath=yes
12334 hardcode_into_libs=yes
12335 # ldd complains unless libraries are executable
12336 postinstall_cmds='chmod +x $lib'
12337 ;;
12338
12339 sunos4*)
12340 version_type=sunos
12341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12342 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12343 shlibpath_var=LD_LIBRARY_PATH
12344 shlibpath_overrides_runpath=yes
12345 if test "$with_gnu_ld" = yes; then
12346 need_lib_prefix=no
12347 fi
12348 need_version=yes
12349 ;;
12350
12351 sysv4 | sysv4.3*)
12352 version_type=linux
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354 soname_spec='${libname}${release}${shared_ext}$major'
12355 shlibpath_var=LD_LIBRARY_PATH
12356 case $host_vendor in
12357 sni)
12358 shlibpath_overrides_runpath=no
12359 need_lib_prefix=no
12360 export_dynamic_flag_spec='${wl}-Blargedynsym'
12361 runpath_var=LD_RUN_PATH
12362 ;;
12363 siemens)
12364 need_lib_prefix=no
12365 ;;
12366 motorola)
12367 need_lib_prefix=no
12368 need_version=no
12369 shlibpath_overrides_runpath=no
12370 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12371 ;;
12372 esac
12373 ;;
12374
12375 sysv4*MP*)
12376 if test -d /usr/nec ;then
12377 version_type=linux
12378 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12379 soname_spec='$libname${shared_ext}.$major'
12380 shlibpath_var=LD_LIBRARY_PATH
12381 fi
12382 ;;
12383
12384 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12385 version_type=freebsd-elf
12386 need_lib_prefix=no
12387 need_version=no
12388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12389 soname_spec='${libname}${release}${shared_ext}$major'
12390 shlibpath_var=LD_LIBRARY_PATH
12391 hardcode_into_libs=yes
12392 if test "$with_gnu_ld" = yes; then
12393 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12394 shlibpath_overrides_runpath=no
12395 else
12396 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12397 shlibpath_overrides_runpath=yes
12398 case $host_os in
12399 sco3.2v5*)
12400 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12401 ;;
12402 esac
12403 fi
12404 sys_lib_dlsearch_path_spec='/usr/lib'
12405 ;;
12406
12407 uts4*)
12408 version_type=linux
12409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410 soname_spec='${libname}${release}${shared_ext}$major'
12411 shlibpath_var=LD_LIBRARY_PATH
12412 ;;
12413
12414 *)
12415 dynamic_linker=no
12416 ;;
12417 esac
12418 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12419 echo "${ECHO_T}$dynamic_linker" >&6
12420 test "$dynamic_linker" = no && can_build_shared=no
12421
12422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12423 if test "$GCC" = yes; then
12424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12425 fi
12426
12427 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12428 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12429 hardcode_action_CXX=
12430 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12431 test -n "$runpath_var_CXX" || \
12432 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12433
12434 # We can hardcode non-existant directories.
12435 if test "$hardcode_direct_CXX" != no &&
12436 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12437 # have to relink, otherwise we might link with an installed library
12438 # when we should be linking with a yet-to-be-installed one
12439 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12440 test "$hardcode_minus_L_CXX" != no; then
12441 # Linking always hardcodes the temporary library directory.
12442 hardcode_action_CXX=relink
12443 else
12444 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12445 hardcode_action_CXX=immediate
12446 fi
12447 else
12448 # We cannot hardcode anything, or else we can only hardcode existing
12449 # directories.
12450 hardcode_action_CXX=unsupported
12451 fi
12452 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12453 echo "${ECHO_T}$hardcode_action_CXX" >&6
12454
12455 if test "$hardcode_action_CXX" = relink; then
12456 # Fast installation is not supported
12457 enable_fast_install=no
12458 elif test "$shlibpath_overrides_runpath" = yes ||
12459 test "$enable_shared" = no; then
12460 # Fast installation is not necessary
12461 enable_fast_install=needless
12462 fi
12463
12464
12465 # The else clause should only fire when bootstrapping the
12466 # libtool distribution, otherwise you forgot to ship ltmain.sh
12467 # with your package, and you will get complaints that there are
12468 # no rules to generate ltmain.sh.
12469 if test -f "$ltmain"; then
12470 # See if we are running on zsh, and set the options which allow our commands through
12471 # without removal of \ escapes.
12472 if test -n "${ZSH_VERSION+set}" ; then
12473 setopt NO_GLOB_SUBST
12474 fi
12475 # Now quote all the things that may contain metacharacters while being
12476 # careful not to overquote the AC_SUBSTed values. We take copies of the
12477 # variables and quote the copies for generation of the libtool script.
12478 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12479 SED SHELL STRIP \
12480 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12481 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12482 deplibs_check_method reload_flag reload_cmds need_locks \
12483 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12484 lt_cv_sys_global_symbol_to_c_name_address \
12485 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12486 old_postinstall_cmds old_postuninstall_cmds \
12487 compiler_CXX \
12488 CC_CXX \
12489 LD_CXX \
12490 lt_prog_compiler_wl_CXX \
12491 lt_prog_compiler_pic_CXX \
12492 lt_prog_compiler_static_CXX \
12493 lt_prog_compiler_no_builtin_flag_CXX \
12494 export_dynamic_flag_spec_CXX \
12495 thread_safe_flag_spec_CXX \
12496 whole_archive_flag_spec_CXX \
12497 enable_shared_with_static_runtimes_CXX \
12498 old_archive_cmds_CXX \
12499 old_archive_from_new_cmds_CXX \
12500 predep_objects_CXX \
12501 postdep_objects_CXX \
12502 predeps_CXX \
12503 postdeps_CXX \
12504 compiler_lib_search_path_CXX \
12505 archive_cmds_CXX \
12506 archive_expsym_cmds_CXX \
12507 postinstall_cmds_CXX \
12508 postuninstall_cmds_CXX \
12509 old_archive_from_expsyms_cmds_CXX \
12510 allow_undefined_flag_CXX \
12511 no_undefined_flag_CXX \
12512 export_symbols_cmds_CXX \
12513 hardcode_libdir_flag_spec_CXX \
12514 hardcode_libdir_flag_spec_ld_CXX \
12515 hardcode_libdir_separator_CXX \
12516 hardcode_automatic_CXX \
12517 module_cmds_CXX \
12518 module_expsym_cmds_CXX \
12519 lt_cv_prog_compiler_c_o_CXX \
12520 exclude_expsyms_CXX \
12521 include_expsyms_CXX; do
12522
12523 case $var in
12524 old_archive_cmds_CXX | \
12525 old_archive_from_new_cmds_CXX | \
12526 archive_cmds_CXX | \
12527 archive_expsym_cmds_CXX | \
12528 module_cmds_CXX | \
12529 module_expsym_cmds_CXX | \
12530 old_archive_from_expsyms_cmds_CXX | \
12531 export_symbols_cmds_CXX | \
12532 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12533 postinstall_cmds | postuninstall_cmds | \
12534 old_postinstall_cmds | old_postuninstall_cmds | \
12535 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12536 # Double-quote double-evaled strings.
12537 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12538 ;;
12539 *)
12540 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12541 ;;
12542 esac
12543 done
12544
12545 case $lt_echo in
12546 *'\$0 --fallback-echo"')
12547 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12548 ;;
12549 esac
12550
12551 cfgfile="$ofile"
12552
12553 cat <<__EOF__ >> "$cfgfile"
12554 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12555
12556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12557
12558 # Shell to use when invoking shell scripts.
12559 SHELL=$lt_SHELL
12560
12561 # Whether or not to build shared libraries.
12562 build_libtool_libs=$enable_shared
12563
12564 # Whether or not to build static libraries.
12565 build_old_libs=$enable_static
12566
12567 # Whether or not to add -lc for building shared libraries.
12568 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12569
12570 # Whether or not to disallow shared libs when runtime libs are static
12571 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12572
12573 # Whether or not to optimize for fast installation.
12574 fast_install=$enable_fast_install
12575
12576 # The host system.
12577 host_alias=$host_alias
12578 host=$host
12579 host_os=$host_os
12580
12581 # The build system.
12582 build_alias=$build_alias
12583 build=$build
12584 build_os=$build_os
12585
12586 # An echo program that does not interpret backslashes.
12587 echo=$lt_echo
12588
12589 # The archiver.
12590 AR=$lt_AR
12591 AR_FLAGS=$lt_AR_FLAGS
12592
12593 # A C compiler.
12594 LTCC=$lt_LTCC
12595
12596 # LTCC compiler flags.
12597 LTCFLAGS=$lt_LTCFLAGS
12598
12599 # A language-specific compiler.
12600 CC=$lt_compiler_CXX
12601
12602 # Is the compiler the GNU C compiler?
12603 with_gcc=$GCC_CXX
12604
12605 # An ERE matcher.
12606 EGREP=$lt_EGREP
12607
12608 # The linker used to build libraries.
12609 LD=$lt_LD_CXX
12610
12611 # Whether we need hard or soft links.
12612 LN_S=$lt_LN_S
12613
12614 # A BSD-compatible nm program.
12615 NM=$lt_NM
12616
12617 # A symbol stripping program
12618 STRIP=$lt_STRIP
12619
12620 # Used to examine libraries when file_magic_cmd begins "file"
12621 MAGIC_CMD=$MAGIC_CMD
12622
12623 # Used on cygwin: DLL creation program.
12624 DLLTOOL="$DLLTOOL"
12625
12626 # Used on cygwin: object dumper.
12627 OBJDUMP="$OBJDUMP"
12628
12629 # Used on cygwin: assembler.
12630 AS="$AS"
12631
12632 # The name of the directory that contains temporary libtool files.
12633 objdir=$objdir
12634
12635 # How to create reloadable object files.
12636 reload_flag=$lt_reload_flag
12637 reload_cmds=$lt_reload_cmds
12638
12639 # How to pass a linker flag through the compiler.
12640 wl=$lt_lt_prog_compiler_wl_CXX
12641
12642 # Object file suffix (normally "o").
12643 objext="$ac_objext"
12644
12645 # Old archive suffix (normally "a").
12646 libext="$libext"
12647
12648 # Shared library suffix (normally ".so").
12649 shrext_cmds='$shrext_cmds'
12650
12651 # Executable file suffix (normally "").
12652 exeext="$exeext"
12653
12654 # Additional compiler flags for building library objects.
12655 pic_flag=$lt_lt_prog_compiler_pic_CXX
12656 pic_mode=$pic_mode
12657
12658 # What is the maximum length of a command?
12659 max_cmd_len=$lt_cv_sys_max_cmd_len
12660
12661 # Does compiler simultaneously support -c and -o options?
12662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12663
12664 # Must we lock files when doing compilation?
12665 need_locks=$lt_need_locks
12666
12667 # Do we need the lib prefix for modules?
12668 need_lib_prefix=$need_lib_prefix
12669
12670 # Do we need a version for libraries?
12671 need_version=$need_version
12672
12673 # Whether dlopen is supported.
12674 dlopen_support=$enable_dlopen
12675
12676 # Whether dlopen of programs is supported.
12677 dlopen_self=$enable_dlopen_self
12678
12679 # Whether dlopen of statically linked programs is supported.
12680 dlopen_self_static=$enable_dlopen_self_static
12681
12682 # Compiler flag to prevent dynamic linking.
12683 link_static_flag=$lt_lt_prog_compiler_static_CXX
12684
12685 # Compiler flag to turn off builtin functions.
12686 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12687
12688 # Compiler flag to allow reflexive dlopens.
12689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12690
12691 # Compiler flag to generate shared objects directly from archives.
12692 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12693
12694 # Compiler flag to generate thread-safe objects.
12695 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12696
12697 # Library versioning type.
12698 version_type=$version_type
12699
12700 # Format of library name prefix.
12701 libname_spec=$lt_libname_spec
12702
12703 # List of archive names. First name is the real one, the rest are links.
12704 # The last name is the one that the linker finds with -lNAME.
12705 library_names_spec=$lt_library_names_spec
12706
12707 # The coded name of the library, if different from the real name.
12708 soname_spec=$lt_soname_spec
12709
12710 # Commands used to build and install an old-style archive.
12711 RANLIB=$lt_RANLIB
12712 old_archive_cmds=$lt_old_archive_cmds_CXX
12713 old_postinstall_cmds=$lt_old_postinstall_cmds
12714 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12715
12716 # Create an old-style archive from a shared archive.
12717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12718
12719 # Create a temporary old-style archive to link instead of a shared archive.
12720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12721
12722 # Commands used to build and install a shared archive.
12723 archive_cmds=$lt_archive_cmds_CXX
12724 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12725 postinstall_cmds=$lt_postinstall_cmds
12726 postuninstall_cmds=$lt_postuninstall_cmds
12727
12728 # Commands used to build a loadable module (assumed same as above if empty)
12729 module_cmds=$lt_module_cmds_CXX
12730 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12731
12732 # Commands to strip libraries.
12733 old_striplib=$lt_old_striplib
12734 striplib=$lt_striplib
12735
12736 # Dependencies to place before the objects being linked to create a
12737 # shared library.
12738 predep_objects=$lt_predep_objects_CXX
12739
12740 # Dependencies to place after the objects being linked to create a
12741 # shared library.
12742 postdep_objects=$lt_postdep_objects_CXX
12743
12744 # Dependencies to place before the objects being linked to create a
12745 # shared library.
12746 predeps=$lt_predeps_CXX
12747
12748 # Dependencies to place after the objects being linked to create a
12749 # shared library.
12750 postdeps=$lt_postdeps_CXX
12751
12752 # The library search path used internally by the compiler when linking
12753 # a shared library.
12754 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12755
12756 # Method to check whether dependent libraries are shared objects.
12757 deplibs_check_method=$lt_deplibs_check_method
12758
12759 # Command to use when deplibs_check_method == file_magic.
12760 file_magic_cmd=$lt_file_magic_cmd
12761
12762 # Flag that allows shared libraries with undefined symbols to be built.
12763 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12764
12765 # Flag that forces no undefined symbols.
12766 no_undefined_flag=$lt_no_undefined_flag_CXX
12767
12768 # Commands used to finish a libtool library installation in a directory.
12769 finish_cmds=$lt_finish_cmds
12770
12771 # Same as above, but a single script fragment to be evaled but not shown.
12772 finish_eval=$lt_finish_eval
12773
12774 # Take the output of nm and produce a listing of raw symbols and C names.
12775 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12776
12777 # Transform the output of nm in a proper C declaration
12778 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12779
12780 # Transform the output of nm in a C name address pair
12781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12782
12783 # This is the shared library runtime path variable.
12784 runpath_var=$runpath_var
12785
12786 # This is the shared library path variable.
12787 shlibpath_var=$shlibpath_var
12788
12789 # Is shlibpath searched before the hard-coded library search path?
12790 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12791
12792 # How to hardcode a shared library path into an executable.
12793 hardcode_action=$hardcode_action_CXX
12794
12795 # Whether we should hardcode library paths into libraries.
12796 hardcode_into_libs=$hardcode_into_libs
12797
12798 # Flag to hardcode \$libdir into a binary during linking.
12799 # This must work even if \$libdir does not exist.
12800 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12801
12802 # If ld is used when linking, flag to hardcode \$libdir into
12803 # a binary during linking. This must work even if \$libdir does
12804 # not exist.
12805 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12806
12807 # Whether we need a single -rpath flag with a separated argument.
12808 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12809
12810 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12811 # resulting binary.
12812 hardcode_direct=$hardcode_direct_CXX
12813
12814 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12815 # resulting binary.
12816 hardcode_minus_L=$hardcode_minus_L_CXX
12817
12818 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12819 # the resulting binary.
12820 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12821
12822 # Set to yes if building a shared library automatically hardcodes DIR into the library
12823 # and all subsequent libraries and executables linked against it.
12824 hardcode_automatic=$hardcode_automatic_CXX
12825
12826 # Variables whose values should be saved in libtool wrapper scripts and
12827 # restored at relink time.
12828 variables_saved_for_relink="$variables_saved_for_relink"
12829
12830 # Whether libtool must link a program against all its dependency libraries.
12831 link_all_deplibs=$link_all_deplibs_CXX
12832
12833 # Compile-time system search path for libraries
12834 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12835
12836 # Run-time system search path for libraries
12837 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12838
12839 # Fix the shell variable \$srcfile for the compiler.
12840 fix_srcfile_path="$fix_srcfile_path_CXX"
12841
12842 # Set to yes if exported symbols are required.
12843 always_export_symbols=$always_export_symbols_CXX
12844
12845 # The commands to list exported symbols.
12846 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12847
12848 # The commands to extract the exported symbol list from a shared archive.
12849 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12850
12851 # Symbols that should not be listed in the preloaded symbols.
12852 exclude_expsyms=$lt_exclude_expsyms_CXX
12853
12854 # Symbols that must always be exported.
12855 include_expsyms=$lt_include_expsyms_CXX
12856
12857 # ### END LIBTOOL TAG CONFIG: $tagname
12858
12859 __EOF__
12860
12861
12862 else
12863 # If there is no Makefile yet, we rely on a make rule to execute
12864 # `config.status --recheck' to rerun these tests and create the
12865 # libtool script then.
12866 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12867 if test -f "$ltmain_in"; then
12868 test -f Makefile && make "$ltmain"
12869 fi
12870 fi
12871
12872
12873 ac_ext=c
12874 ac_cpp='$CPP $CPPFLAGS'
12875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12878
12879 CC=$lt_save_CC
12880 LDCXX=$LD
12881 LD=$lt_save_LD
12882 GCC=$lt_save_GCC
12883 with_gnu_ldcxx=$with_gnu_ld
12884 with_gnu_ld=$lt_save_with_gnu_ld
12885 lt_cv_path_LDCXX=$lt_cv_path_LD
12886 lt_cv_path_LD=$lt_save_path_LD
12887 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12888 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12889
12890 else
12891 tagname=""
12892 fi
12893 ;;
12894
12895 F77)
12896 if test -n "$F77" && test "X$F77" != "Xno"; then
12897
12898 ac_ext=f
12899 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12900 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12901 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12902
12903
12904 archive_cmds_need_lc_F77=no
12905 allow_undefined_flag_F77=
12906 always_export_symbols_F77=no
12907 archive_expsym_cmds_F77=
12908 export_dynamic_flag_spec_F77=
12909 hardcode_direct_F77=no
12910 hardcode_libdir_flag_spec_F77=
12911 hardcode_libdir_flag_spec_ld_F77=
12912 hardcode_libdir_separator_F77=
12913 hardcode_minus_L_F77=no
12914 hardcode_automatic_F77=no
12915 module_cmds_F77=
12916 module_expsym_cmds_F77=
12917 link_all_deplibs_F77=unknown
12918 old_archive_cmds_F77=$old_archive_cmds
12919 no_undefined_flag_F77=
12920 whole_archive_flag_spec_F77=
12921 enable_shared_with_static_runtimes_F77=no
12922
12923 # Source file extension for f77 test sources.
12924 ac_ext=f
12925
12926 # Object file extension for compiled f77 test sources.
12927 objext=o
12928 objext_F77=$objext
12929
12930 # Code to be used in simple compile tests
12931 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12932
12933 # Code to be used in simple link tests
12934 lt_simple_link_test_code=" program t\n end\n"
12935
12936 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12937
12938 # If no C compiler was specified, use CC.
12939 LTCC=${LTCC-"$CC"}
12940
12941 # If no C compiler flags were specified, use CFLAGS.
12942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12943
12944 # Allow CC to be a program name with arguments.
12945 compiler=$CC
12946
12947
12948 # save warnings/boilerplate of simple test code
12949 ac_outfile=conftest.$ac_objext
12950 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12952 _lt_compiler_boilerplate=`cat conftest.err`
12953 $rm conftest*
12954
12955 ac_outfile=conftest.$ac_objext
12956 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12958 _lt_linker_boilerplate=`cat conftest.err`
12959 $rm conftest*
12960
12961
12962 # Allow CC to be a program name with arguments.
12963 lt_save_CC="$CC"
12964 CC=${F77-"f77"}
12965 compiler=$CC
12966 compiler_F77=$CC
12967 for cc_temp in $compiler""; do
12968 case $cc_temp in
12969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12971 \-*) ;;
12972 *) break;;
12973 esac
12974 done
12975 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12976
12977
12978 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12979 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12980 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12981 echo "${ECHO_T}$can_build_shared" >&6
12982
12983 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12984 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12985 test "$can_build_shared" = "no" && enable_shared=no
12986
12987 # On AIX, shared libraries and static libraries use the same namespace, and
12988 # are all built from PIC.
12989 case $host_os in
12990 aix3*)
12991 test "$enable_shared" = yes && enable_static=no
12992 if test -n "$RANLIB"; then
12993 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12994 postinstall_cmds='$RANLIB $lib'
12995 fi
12996 ;;
12997 aix4* | aix5*)
12998 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12999 test "$enable_shared" = yes && enable_static=no
13000 fi
13001 ;;
13002 esac
13003 echo "$as_me:$LINENO: result: $enable_shared" >&5
13004 echo "${ECHO_T}$enable_shared" >&6
13005
13006 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13007 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13008 # Make sure either enable_shared or enable_static is yes.
13009 test "$enable_shared" = yes || enable_static=yes
13010 echo "$as_me:$LINENO: result: $enable_static" >&5
13011 echo "${ECHO_T}$enable_static" >&6
13012
13013 GCC_F77="$G77"
13014 LD_F77="$LD"
13015
13016 lt_prog_compiler_wl_F77=
13017 lt_prog_compiler_pic_F77=
13018 lt_prog_compiler_static_F77=
13019
13020 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13021 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13022
13023 if test "$GCC" = yes; then
13024 lt_prog_compiler_wl_F77='-Wl,'
13025 lt_prog_compiler_static_F77='-static'
13026
13027 case $host_os in
13028 aix*)
13029 # All AIX code is PIC.
13030 if test "$host_cpu" = ia64; then
13031 # AIX 5 now supports IA64 processor
13032 lt_prog_compiler_static_F77='-Bstatic'
13033 fi
13034 ;;
13035
13036 amigaos*)
13037 # FIXME: we need at least 68020 code to build shared libraries, but
13038 # adding the `-m68020' flag to GCC prevents building anything better,
13039 # like `-m68040'.
13040 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13041 ;;
13042
13043 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13044 # PIC is the default for these OSes.
13045 ;;
13046
13047 mingw* | pw32* | os2*)
13048 # This hack is so that the source file can tell whether it is being
13049 # built for inclusion in a dll (and should export symbols for example).
13050 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13051 ;;
13052
13053 darwin* | rhapsody*)
13054 # PIC is the default on this platform
13055 # Common symbols not allowed in MH_DYLIB files
13056 lt_prog_compiler_pic_F77='-fno-common'
13057 ;;
13058
13059 interix3*)
13060 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13061 # Instead, we relocate shared libraries at runtime.
13062 ;;
13063
13064 msdosdjgpp*)
13065 # Just because we use GCC doesn't mean we suddenly get shared libraries
13066 # on systems that don't support them.
13067 lt_prog_compiler_can_build_shared_F77=no
13068 enable_shared=no
13069 ;;
13070
13071 sysv4*MP*)
13072 if test -d /usr/nec; then
13073 lt_prog_compiler_pic_F77=-Kconform_pic
13074 fi
13075 ;;
13076
13077 hpux*)
13078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13079 # not for PA HP-UX.
13080 case $host_cpu in
13081 hppa*64*|ia64*)
13082 # +Z the default
13083 ;;
13084 *)
13085 lt_prog_compiler_pic_F77='-fPIC'
13086 ;;
13087 esac
13088 ;;
13089
13090 *)
13091 lt_prog_compiler_pic_F77='-fPIC'
13092 ;;
13093 esac
13094 else
13095 # PORTME Check for flag to pass linker flags through the system compiler.
13096 case $host_os in
13097 aix*)
13098 lt_prog_compiler_wl_F77='-Wl,'
13099 if test "$host_cpu" = ia64; then
13100 # AIX 5 now supports IA64 processor
13101 lt_prog_compiler_static_F77='-Bstatic'
13102 else
13103 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13104 fi
13105 ;;
13106 darwin*)
13107 # PIC is the default on this platform
13108 # Common symbols not allowed in MH_DYLIB files
13109 case $cc_basename in
13110 xlc*)
13111 lt_prog_compiler_pic_F77='-qnocommon'
13112 lt_prog_compiler_wl_F77='-Wl,'
13113 ;;
13114 esac
13115 ;;
13116
13117 mingw* | pw32* | os2*)
13118 # This hack is so that the source file can tell whether it is being
13119 # built for inclusion in a dll (and should export symbols for example).
13120 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13121 ;;
13122
13123 hpux9* | hpux10* | hpux11*)
13124 lt_prog_compiler_wl_F77='-Wl,'
13125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13126 # not for PA HP-UX.
13127 case $host_cpu in
13128 hppa*64*|ia64*)
13129 # +Z the default
13130 ;;
13131 *)
13132 lt_prog_compiler_pic_F77='+Z'
13133 ;;
13134 esac
13135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13136 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13137 ;;
13138
13139 irix5* | irix6* | nonstopux*)
13140 lt_prog_compiler_wl_F77='-Wl,'
13141 # PIC (with -KPIC) is the default.
13142 lt_prog_compiler_static_F77='-non_shared'
13143 ;;
13144
13145 newsos6)
13146 lt_prog_compiler_pic_F77='-KPIC'
13147 lt_prog_compiler_static_F77='-Bstatic'
13148 ;;
13149
13150 linux*)
13151 case $cc_basename in
13152 icc* | ecc*)
13153 lt_prog_compiler_wl_F77='-Wl,'
13154 lt_prog_compiler_pic_F77='-KPIC'
13155 lt_prog_compiler_static_F77='-static'
13156 ;;
13157 pgcc* | pgf77* | pgf90* | pgf95*)
13158 # Portland Group compilers (*not* the Pentium gcc compiler,
13159 # which looks to be a dead project)
13160 lt_prog_compiler_wl_F77='-Wl,'
13161 lt_prog_compiler_pic_F77='-fpic'
13162 lt_prog_compiler_static_F77='-Bstatic'
13163 ;;
13164 ccc*)
13165 lt_prog_compiler_wl_F77='-Wl,'
13166 # All Alpha code is PIC.
13167 lt_prog_compiler_static_F77='-non_shared'
13168 ;;
13169 esac
13170 ;;
13171
13172 osf3* | osf4* | osf5*)
13173 lt_prog_compiler_wl_F77='-Wl,'
13174 # All OSF/1 code is PIC.
13175 lt_prog_compiler_static_F77='-non_shared'
13176 ;;
13177
13178 solaris*)
13179 lt_prog_compiler_pic_F77='-KPIC'
13180 lt_prog_compiler_static_F77='-Bstatic'
13181 case $cc_basename in
13182 f77* | f90* | f95*)
13183 lt_prog_compiler_wl_F77='-Qoption ld ';;
13184 *)
13185 lt_prog_compiler_wl_F77='-Wl,';;
13186 esac
13187 ;;
13188
13189 sunos4*)
13190 lt_prog_compiler_wl_F77='-Qoption ld '
13191 lt_prog_compiler_pic_F77='-PIC'
13192 lt_prog_compiler_static_F77='-Bstatic'
13193 ;;
13194
13195 sysv4 | sysv4.2uw2* | sysv4.3*)
13196 lt_prog_compiler_wl_F77='-Wl,'
13197 lt_prog_compiler_pic_F77='-KPIC'
13198 lt_prog_compiler_static_F77='-Bstatic'
13199 ;;
13200
13201 sysv4*MP*)
13202 if test -d /usr/nec ;then
13203 lt_prog_compiler_pic_F77='-Kconform_pic'
13204 lt_prog_compiler_static_F77='-Bstatic'
13205 fi
13206 ;;
13207
13208 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13209 lt_prog_compiler_wl_F77='-Wl,'
13210 lt_prog_compiler_pic_F77='-KPIC'
13211 lt_prog_compiler_static_F77='-Bstatic'
13212 ;;
13213
13214 unicos*)
13215 lt_prog_compiler_wl_F77='-Wl,'
13216 lt_prog_compiler_can_build_shared_F77=no
13217 ;;
13218
13219 uts4*)
13220 lt_prog_compiler_pic_F77='-pic'
13221 lt_prog_compiler_static_F77='-Bstatic'
13222 ;;
13223
13224 *)
13225 lt_prog_compiler_can_build_shared_F77=no
13226 ;;
13227 esac
13228 fi
13229
13230 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13231 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13232
13233 #
13234 # Check to make sure the PIC flag actually works.
13235 #
13236 if test -n "$lt_prog_compiler_pic_F77"; then
13237
13238 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13239 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13240 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 else
13243 lt_prog_compiler_pic_works_F77=no
13244 ac_outfile=conftest.$ac_objext
13245 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13246 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13247 # Insert the option either (1) after the last *FLAGS variable, or
13248 # (2) before a word containing "conftest.", or (3) at the end.
13249 # Note that $ac_compile itself does not contain backslashes and begins
13250 # with a dollar sign (not a hyphen), so the echo should work correctly.
13251 # The option is referenced via a variable to avoid confusing sed.
13252 lt_compile=`echo "$ac_compile" | $SED \
13253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13255 -e 's:$: $lt_compiler_flag:'`
13256 (eval echo "\"\$as_me:13256: $lt_compile\"" >&5)
13257 (eval "$lt_compile" 2>conftest.err)
13258 ac_status=$?
13259 cat conftest.err >&5
13260 echo "$as_me:13260: \$? = $ac_status" >&5
13261 if (exit $ac_status) && test -s "$ac_outfile"; then
13262 # The compiler can only warn and ignore the option if not recognized
13263 # So say no if there are warnings other than the usual output.
13264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13267 lt_prog_compiler_pic_works_F77=yes
13268 fi
13269 fi
13270 $rm conftest*
13271
13272 fi
13273 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13274 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13275
13276 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13277 case $lt_prog_compiler_pic_F77 in
13278 "" | " "*) ;;
13279 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13280 esac
13281 else
13282 lt_prog_compiler_pic_F77=
13283 lt_prog_compiler_can_build_shared_F77=no
13284 fi
13285
13286 fi
13287 case $host_os in
13288 # For platforms which do not support PIC, -DPIC is meaningless:
13289 *djgpp*)
13290 lt_prog_compiler_pic_F77=
13291 ;;
13292 *)
13293 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13294 ;;
13295 esac
13296
13297 #
13298 # Check to make sure the static flag actually works.
13299 #
13300 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13301 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13302 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13303 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306 lt_prog_compiler_static_works_F77=no
13307 save_LDFLAGS="$LDFLAGS"
13308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13309 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13311 # The linker can only warn and ignore the option if not recognized
13312 # So say no if there are warnings
13313 if test -s conftest.err; then
13314 # Append any errors to the config.log.
13315 cat conftest.err 1>&5
13316 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13318 if diff conftest.exp conftest.er2 >/dev/null; then
13319 lt_prog_compiler_static_works_F77=yes
13320 fi
13321 else
13322 lt_prog_compiler_static_works_F77=yes
13323 fi
13324 fi
13325 $rm conftest*
13326 LDFLAGS="$save_LDFLAGS"
13327
13328 fi
13329 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13330 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13331
13332 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13333 :
13334 else
13335 lt_prog_compiler_static_F77=
13336 fi
13337
13338
13339 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13340 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13341 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344 lt_cv_prog_compiler_c_o_F77=no
13345 $rm -r conftest 2>/dev/null
13346 mkdir conftest
13347 cd conftest
13348 mkdir out
13349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13350
13351 lt_compiler_flag="-o out/conftest2.$ac_objext"
13352 # Insert the option either (1) after the last *FLAGS variable, or
13353 # (2) before a word containing "conftest.", or (3) at the end.
13354 # Note that $ac_compile itself does not contain backslashes and begins
13355 # with a dollar sign (not a hyphen), so the echo should work correctly.
13356 lt_compile=`echo "$ac_compile" | $SED \
13357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13359 -e 's:$: $lt_compiler_flag:'`
13360 (eval echo "\"\$as_me:13360: $lt_compile\"" >&5)
13361 (eval "$lt_compile" 2>out/conftest.err)
13362 ac_status=$?
13363 cat out/conftest.err >&5
13364 echo "$as_me:13364: \$? = $ac_status" >&5
13365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13366 then
13367 # The compiler can only warn and ignore the option if not recognized
13368 # So say no if there are warnings
13369 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13372 lt_cv_prog_compiler_c_o_F77=yes
13373 fi
13374 fi
13375 chmod u+w . 2>&5
13376 $rm conftest*
13377 # SGI C++ compiler will create directory out/ii_files/ for
13378 # template instantiation
13379 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13380 $rm out/* && rmdir out
13381 cd ..
13382 rmdir conftest
13383 $rm conftest*
13384
13385 fi
13386 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13387 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13388
13389
13390 hard_links="nottested"
13391 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13392 # do not overwrite the value of need_locks provided by the user
13393 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13394 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13395 hard_links=yes
13396 $rm conftest*
13397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13398 touch conftest.a
13399 ln conftest.a conftest.b 2>&5 || hard_links=no
13400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13401 echo "$as_me:$LINENO: result: $hard_links" >&5
13402 echo "${ECHO_T}$hard_links" >&6
13403 if test "$hard_links" = no; then
13404 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13405 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13406 need_locks=warn
13407 fi
13408 else
13409 need_locks=no
13410 fi
13411
13412 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13413 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13414
13415 runpath_var=
13416 allow_undefined_flag_F77=
13417 enable_shared_with_static_runtimes_F77=no
13418 archive_cmds_F77=
13419 archive_expsym_cmds_F77=
13420 old_archive_From_new_cmds_F77=
13421 old_archive_from_expsyms_cmds_F77=
13422 export_dynamic_flag_spec_F77=
13423 whole_archive_flag_spec_F77=
13424 thread_safe_flag_spec_F77=
13425 hardcode_libdir_flag_spec_F77=
13426 hardcode_libdir_flag_spec_ld_F77=
13427 hardcode_libdir_separator_F77=
13428 hardcode_direct_F77=no
13429 hardcode_minus_L_F77=no
13430 hardcode_shlibpath_var_F77=unsupported
13431 link_all_deplibs_F77=unknown
13432 hardcode_automatic_F77=no
13433 module_cmds_F77=
13434 module_expsym_cmds_F77=
13435 always_export_symbols_F77=no
13436 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13437 # include_expsyms should be a list of space-separated symbols to be *always*
13438 # included in the symbol list
13439 include_expsyms_F77=
13440 # exclude_expsyms can be an extended regexp of symbols to exclude
13441 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13442 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13443 # as well as any symbol that contains `d'.
13444 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13445 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13446 # platforms (ab)use it in PIC code, but their linkers get confused if
13447 # the symbol is explicitly referenced. Since portable code cannot
13448 # rely on this symbol name, it's probably fine to never include it in
13449 # preloaded symbol tables.
13450 extract_expsyms_cmds=
13451 # Just being paranoid about ensuring that cc_basename is set.
13452 for cc_temp in $compiler""; do
13453 case $cc_temp in
13454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13456 \-*) ;;
13457 *) break;;
13458 esac
13459 done
13460 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13461
13462 case $host_os in
13463 cygwin* | mingw* | pw32*)
13464 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13465 # When not using gcc, we currently assume that we are using
13466 # Microsoft Visual C++.
13467 if test "$GCC" != yes; then
13468 with_gnu_ld=no
13469 fi
13470 ;;
13471 interix*)
13472 # we just hope/assume this is gcc and not c89 (= MSVC++)
13473 with_gnu_ld=yes
13474 ;;
13475 openbsd*)
13476 with_gnu_ld=no
13477 ;;
13478 esac
13479
13480 ld_shlibs_F77=yes
13481 if test "$with_gnu_ld" = yes; then
13482 # If archive_cmds runs LD, not CC, wlarc should be empty
13483 wlarc='${wl}'
13484
13485 # Set some defaults for GNU ld with shared library support. These
13486 # are reset later if shared libraries are not supported. Putting them
13487 # here allows them to be overridden if necessary.
13488 runpath_var=LD_RUN_PATH
13489 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13490 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13491 # ancient GNU ld didn't support --whole-archive et. al.
13492 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13493 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13494 else
13495 whole_archive_flag_spec_F77=
13496 fi
13497 supports_anon_versioning=no
13498 case `$LD -v 2>/dev/null` in
13499 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13502 *\ 2.11.*) ;; # other 2.11 versions
13503 *) supports_anon_versioning=yes ;;
13504 esac
13505
13506 # See if GNU ld supports shared libraries.
13507 case $host_os in
13508 aix3* | aix4* | aix5*)
13509 # On AIX/PPC, the GNU linker is very broken
13510 if test "$host_cpu" != ia64; then
13511 ld_shlibs_F77=no
13512 cat <<EOF 1>&2
13513
13514 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13515 *** to be unable to reliably create shared libraries on AIX.
13516 *** Therefore, libtool is disabling shared libraries support. If you
13517 *** really care for shared libraries, you may want to modify your PATH
13518 *** so that a non-GNU linker is found, and then restart.
13519
13520 EOF
13521 fi
13522 ;;
13523
13524 amigaos*)
13525 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)'
13526 hardcode_libdir_flag_spec_F77='-L$libdir'
13527 hardcode_minus_L_F77=yes
13528
13529 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
13530 # that the semantics of dynamic libraries on AmigaOS, at least up
13531 # to version 4, is to share data among multiple programs linked
13532 # with the same dynamic library. Since this doesn't match the
13533 # behavior of shared libraries on other platforms, we can't use
13534 # them.
13535 ld_shlibs_F77=no
13536 ;;
13537
13538 beos*)
13539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13540 allow_undefined_flag_F77=unsupported
13541 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
13542 # support --undefined. This deserves some investigation. FIXME
13543 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13544 else
13545 ld_shlibs_F77=no
13546 fi
13547 ;;
13548
13549 cygwin* | mingw* | pw32*)
13550 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13551 # as there is no search path for DLLs.
13552 hardcode_libdir_flag_spec_F77='-L$libdir'
13553 allow_undefined_flag_F77=unsupported
13554 always_export_symbols_F77=no
13555 enable_shared_with_static_runtimes_F77=yes
13556 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13557
13558 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13559 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13560 # If the export-symbols file already is a .def file (1st line
13561 # is EXPORTS), use it as is; otherwise, prepend...
13562 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13563 cp $export_symbols $output_objdir/$soname.def;
13564 else
13565 echo EXPORTS > $output_objdir/$soname.def;
13566 cat $export_symbols >> $output_objdir/$soname.def;
13567 fi~
13568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13569 else
13570 ld_shlibs_F77=no
13571 fi
13572 ;;
13573
13574 interix3*)
13575 hardcode_direct_F77=no
13576 hardcode_shlibpath_var_F77=no
13577 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13578 export_dynamic_flag_spec_F77='${wl}-E'
13579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13580 # Instead, shared libraries are loaded at an image base (0x10000000 by
13581 # default) and relocated if they conflict, which is a slow very memory
13582 # consuming and fragmenting process. To avoid this, we pick a random,
13583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13584 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13585 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13586 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13587 ;;
13588
13589 linux*)
13590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13591 tmp_addflag=
13592 case $cc_basename,$host_cpu in
13593 pgcc*) # Portland Group C compiler
13594 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'
13595 tmp_addflag=' $pic_flag'
13596 ;;
13597 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13598 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'
13599 tmp_addflag=' $pic_flag -Mnomain' ;;
13600 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13601 tmp_addflag=' -i_dynamic' ;;
13602 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13603 tmp_addflag=' -i_dynamic -nofor_main' ;;
13604 ifc* | ifort*) # Intel Fortran compiler
13605 tmp_addflag=' -nofor_main' ;;
13606 esac
13607 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13608
13609 if test $supports_anon_versioning = yes; then
13610 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13611 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13612 $echo "local: *; };" >> $output_objdir/$libname.ver~
13613 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13614 fi
13615 else
13616 ld_shlibs_F77=no
13617 fi
13618 ;;
13619
13620 netbsd*)
13621 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13622 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13623 wlarc=
13624 else
13625 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13627 fi
13628 ;;
13629
13630 solaris*)
13631 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13632 ld_shlibs_F77=no
13633 cat <<EOF 1>&2
13634
13635 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13636 *** create shared libraries on Solaris systems. Therefore, libtool
13637 *** is disabling shared libraries support. We urge you to upgrade GNU
13638 *** binutils to release 2.9.1 or newer. Another option is to modify
13639 *** your PATH or compiler configuration so that the native linker is
13640 *** used, and then restart.
13641
13642 EOF
13643 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13644 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13645 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13646 else
13647 ld_shlibs_F77=no
13648 fi
13649 ;;
13650
13651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13652 case `$LD -v 2>&1` in
13653 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13654 ld_shlibs_F77=no
13655 cat <<_LT_EOF 1>&2
13656
13657 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13658 *** reliably create shared libraries on SCO systems. Therefore, libtool
13659 *** is disabling shared libraries support. We urge you to upgrade GNU
13660 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13661 *** your PATH or compiler configuration so that the native linker is
13662 *** used, and then restart.
13663
13664 _LT_EOF
13665 ;;
13666 *)
13667 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13668 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13670 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13671 else
13672 ld_shlibs_F77=no
13673 fi
13674 ;;
13675 esac
13676 ;;
13677
13678 sunos4*)
13679 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13680 wlarc=
13681 hardcode_direct_F77=yes
13682 hardcode_shlibpath_var_F77=no
13683 ;;
13684
13685 *)
13686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13687 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13688 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13689 else
13690 ld_shlibs_F77=no
13691 fi
13692 ;;
13693 esac
13694
13695 if test "$ld_shlibs_F77" = no; then
13696 runpath_var=
13697 hardcode_libdir_flag_spec_F77=
13698 export_dynamic_flag_spec_F77=
13699 whole_archive_flag_spec_F77=
13700 fi
13701 else
13702 # PORTME fill in a description of your system's linker (not GNU ld)
13703 case $host_os in
13704 aix3*)
13705 allow_undefined_flag_F77=unsupported
13706 always_export_symbols_F77=yes
13707 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'
13708 # Note: this linker hardcodes the directories in LIBPATH if there
13709 # are no directories specified by -L.
13710 hardcode_minus_L_F77=yes
13711 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13712 # Neither direct hardcoding nor static linking is supported with a
13713 # broken collect2.
13714 hardcode_direct_F77=unsupported
13715 fi
13716 ;;
13717
13718 aix4* | aix5*)
13719 if test "$host_cpu" = ia64; then
13720 # On IA64, the linker does run time linking by default, so we don't
13721 # have to do anything special.
13722 aix_use_runtimelinking=no
13723 exp_sym_flag='-Bexport'
13724 no_entry_flag=""
13725 else
13726 # If we're using GNU nm, then we don't want the "-C" option.
13727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13728 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13729 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'
13730 else
13731 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'
13732 fi
13733 aix_use_runtimelinking=no
13734
13735 # Test if we are trying to use run time linking or normal
13736 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13737 # need to do runtime linking.
13738 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13739 for ld_flag in $LDFLAGS; do
13740 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13741 aix_use_runtimelinking=yes
13742 break
13743 fi
13744 done
13745 ;;
13746 esac
13747
13748 exp_sym_flag='-bexport'
13749 no_entry_flag='-bnoentry'
13750 fi
13751
13752 # When large executables or shared objects are built, AIX ld can
13753 # have problems creating the table of contents. If linking a library
13754 # or program results in "error TOC overflow" add -mminimal-toc to
13755 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13756 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13757
13758 archive_cmds_F77=''
13759 hardcode_direct_F77=yes
13760 hardcode_libdir_separator_F77=':'
13761 link_all_deplibs_F77=yes
13762
13763 if test "$GCC" = yes; then
13764 case $host_os in aix4.[012]|aix4.[012].*)
13765 # We only want to do this on AIX 4.2 and lower, the check
13766 # below for broken collect2 doesn't work under 4.3+
13767 collect2name=`${CC} -print-prog-name=collect2`
13768 if test -f "$collect2name" && \
13769 strings "$collect2name" | grep resolve_lib_name >/dev/null
13770 then
13771 # We have reworked collect2
13772 hardcode_direct_F77=yes
13773 else
13774 # We have old collect2
13775 hardcode_direct_F77=unsupported
13776 # It fails to find uninstalled libraries when the uninstalled
13777 # path is not listed in the libpath. Setting hardcode_minus_L
13778 # to unsupported forces relinking
13779 hardcode_minus_L_F77=yes
13780 hardcode_libdir_flag_spec_F77='-L$libdir'
13781 hardcode_libdir_separator_F77=
13782 fi
13783 ;;
13784 esac
13785 shared_flag='-shared'
13786 if test "$aix_use_runtimelinking" = yes; then
13787 shared_flag="$shared_flag "'${wl}-G'
13788 fi
13789 else
13790 # not using gcc
13791 if test "$host_cpu" = ia64; then
13792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13793 # chokes on -Wl,-G. The following line is correct:
13794 shared_flag='-G'
13795 else
13796 if test "$aix_use_runtimelinking" = yes; then
13797 shared_flag='${wl}-G'
13798 else
13799 shared_flag='${wl}-bM:SRE'
13800 fi
13801 fi
13802 fi
13803
13804 # It seems that -bexpall does not export symbols beginning with
13805 # underscore (_), so it is better to generate a list of symbols to export.
13806 always_export_symbols_F77=yes
13807 if test "$aix_use_runtimelinking" = yes; then
13808 # Warning - without using the other runtime loading flags (-brtl),
13809 # -berok will link without error, but may produce a broken library.
13810 allow_undefined_flag_F77='-berok'
13811 # Determine the default libpath from the value encoded in an empty executable.
13812 cat >conftest.$ac_ext <<_ACEOF
13813 program main
13814
13815 end
13816 _ACEOF
13817 rm -f conftest.$ac_objext conftest$ac_exeext
13818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13819 (eval $ac_link) 2>conftest.er1
13820 ac_status=$?
13821 grep -v '^ *+' conftest.er1 >conftest.err
13822 rm -f conftest.er1
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -z "$ac_f77_werror_flag"
13827 || test ! -s conftest.err'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13830 ac_status=$?
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; } &&
13833 { ac_try='test -s conftest$ac_exeext'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13839
13840 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13841 }'`
13842 # Check for a 64-bit object if we didn't find anything.
13843 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; }
13844 }'`; fi
13845 else
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13848
13849 fi
13850 rm -f conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13852 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13853
13854 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13855 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13856 else
13857 if test "$host_cpu" = ia64; then
13858 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13859 allow_undefined_flag_F77="-z nodefs"
13860 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13861 else
13862 # Determine the default libpath from the value encoded in an empty executable.
13863 cat >conftest.$ac_ext <<_ACEOF
13864 program main
13865
13866 end
13867 _ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870 (eval $ac_link) 2>conftest.er1
13871 ac_status=$?
13872 grep -v '^ *+' conftest.er1 >conftest.err
13873 rm -f conftest.er1
13874 cat conftest.err >&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } &&
13877 { ac_try='test -z "$ac_f77_werror_flag"
13878 || test ! -s conftest.err'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13881 ac_status=$?
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; } &&
13884 { ac_try='test -s conftest$ac_exeext'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890
13891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13892 }'`
13893 # Check for a 64-bit object if we didn't find anything.
13894 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; }
13895 }'`; fi
13896 else
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900 fi
13901 rm -f conftest.err conftest.$ac_objext \
13902 conftest$ac_exeext conftest.$ac_ext
13903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13904
13905 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13906 # Warning - without using the other run time loading flags,
13907 # -berok will link without error, but may produce a broken library.
13908 no_undefined_flag_F77=' ${wl}-bernotok'
13909 allow_undefined_flag_F77=' ${wl}-berok'
13910 # Exported symbols can be pulled into shared objects from archives
13911 whole_archive_flag_spec_F77='$convenience'
13912 archive_cmds_need_lc_F77=yes
13913 # This is similar to how AIX traditionally builds its shared libraries.
13914 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13915 fi
13916 fi
13917 ;;
13918
13919 amigaos*)
13920 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)'
13921 hardcode_libdir_flag_spec_F77='-L$libdir'
13922 hardcode_minus_L_F77=yes
13923 # see comment about different semantics on the GNU ld section
13924 ld_shlibs_F77=no
13925 ;;
13926
13927 bsdi[45]*)
13928 export_dynamic_flag_spec_F77=-rdynamic
13929 ;;
13930
13931 cygwin* | mingw* | pw32*)
13932 # When not using gcc, we currently assume that we are using
13933 # Microsoft Visual C++.
13934 # hardcode_libdir_flag_spec is actually meaningless, as there is
13935 # no search path for DLLs.
13936 hardcode_libdir_flag_spec_F77=' '
13937 allow_undefined_flag_F77=unsupported
13938 # Tell ltmain to make .lib files, not .a files.
13939 libext=lib
13940 # Tell ltmain to make .dll files, not .so files.
13941 shrext_cmds=".dll"
13942 # FIXME: Setting linknames here is a bad hack.
13943 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13944 # The linker will automatically build a .lib file if we build a DLL.
13945 old_archive_From_new_cmds_F77='true'
13946 # FIXME: Should let the user specify the lib program.
13947 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13948 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13949 enable_shared_with_static_runtimes_F77=yes
13950 ;;
13951
13952 darwin* | rhapsody*)
13953 case $host_os in
13954 rhapsody* | darwin1.[012])
13955 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13956 ;;
13957 *) # Darwin 1.3 on
13958 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13959 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13960 else
13961 case ${MACOSX_DEPLOYMENT_TARGET} in
13962 10.[012])
13963 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13964 ;;
13965 10.*)
13966 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13967 ;;
13968 esac
13969 fi
13970 ;;
13971 esac
13972 archive_cmds_need_lc_F77=no
13973 hardcode_direct_F77=no
13974 hardcode_automatic_F77=yes
13975 hardcode_shlibpath_var_F77=unsupported
13976 whole_archive_flag_spec_F77=''
13977 link_all_deplibs_F77=yes
13978 if test "$GCC" = yes ; then
13979 output_verbose_link_cmd='echo'
13980 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13981 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13982 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13983 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}'
13984 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}'
13985 else
13986 case $cc_basename in
13987 xlc*)
13988 output_verbose_link_cmd='echo'
13989 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13990 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13991 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13992 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}'
13993 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}'
13994 ;;
13995 *)
13996 ld_shlibs_F77=no
13997 ;;
13998 esac
13999 fi
14000 ;;
14001
14002 dgux*)
14003 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14004 hardcode_libdir_flag_spec_F77='-L$libdir'
14005 hardcode_shlibpath_var_F77=no
14006 ;;
14007
14008 freebsd1*)
14009 ld_shlibs_F77=no
14010 ;;
14011
14012 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14013 # support. Future versions do this automatically, but an explicit c++rt0.o
14014 # does not break anything, and helps significantly (at the cost of a little
14015 # extra space).
14016 freebsd2.2*)
14017 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14018 hardcode_libdir_flag_spec_F77='-R$libdir'
14019 hardcode_direct_F77=yes
14020 hardcode_shlibpath_var_F77=no
14021 ;;
14022
14023 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14024 freebsd2*)
14025 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14026 hardcode_direct_F77=yes
14027 hardcode_minus_L_F77=yes
14028 hardcode_shlibpath_var_F77=no
14029 ;;
14030
14031 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14032 freebsd* | kfreebsd*-gnu | dragonfly*)
14033 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14034 hardcode_libdir_flag_spec_F77='-R$libdir'
14035 hardcode_direct_F77=yes
14036 hardcode_shlibpath_var_F77=no
14037 ;;
14038
14039 hpux9*)
14040 if test "$GCC" = yes; then
14041 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'
14042 else
14043 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'
14044 fi
14045 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14046 hardcode_libdir_separator_F77=:
14047 hardcode_direct_F77=yes
14048
14049 # hardcode_minus_L: Not really in the search PATH,
14050 # but as the default location of the library.
14051 hardcode_minus_L_F77=yes
14052 export_dynamic_flag_spec_F77='${wl}-E'
14053 ;;
14054
14055 hpux10*)
14056 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14057 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14058 else
14059 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14060 fi
14061 if test "$with_gnu_ld" = no; then
14062 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14063 hardcode_libdir_separator_F77=:
14064
14065 hardcode_direct_F77=yes
14066 export_dynamic_flag_spec_F77='${wl}-E'
14067
14068 # hardcode_minus_L: Not really in the search PATH,
14069 # but as the default location of the library.
14070 hardcode_minus_L_F77=yes
14071 fi
14072 ;;
14073
14074 hpux11*)
14075 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14076 case $host_cpu in
14077 hppa*64*)
14078 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14079 ;;
14080 ia64*)
14081 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14082 ;;
14083 *)
14084 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14085 ;;
14086 esac
14087 else
14088 case $host_cpu in
14089 hppa*64*)
14090 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14091 ;;
14092 ia64*)
14093 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14094 ;;
14095 *)
14096 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14097 ;;
14098 esac
14099 fi
14100 if test "$with_gnu_ld" = no; then
14101 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14102 hardcode_libdir_separator_F77=:
14103
14104 case $host_cpu in
14105 hppa*64*|ia64*)
14106 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14107 hardcode_direct_F77=no
14108 hardcode_shlibpath_var_F77=no
14109 ;;
14110 *)
14111 hardcode_direct_F77=yes
14112 export_dynamic_flag_spec_F77='${wl}-E'
14113
14114 # hardcode_minus_L: Not really in the search PATH,
14115 # but as the default location of the library.
14116 hardcode_minus_L_F77=yes
14117 ;;
14118 esac
14119 fi
14120 ;;
14121
14122 irix5* | irix6* | nonstopux*)
14123 if test "$GCC" = yes; then
14124 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'
14125 else
14126 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'
14127 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14128 fi
14129 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14130 hardcode_libdir_separator_F77=:
14131 link_all_deplibs_F77=yes
14132 ;;
14133
14134 netbsd*)
14135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14136 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14137 else
14138 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14139 fi
14140 hardcode_libdir_flag_spec_F77='-R$libdir'
14141 hardcode_direct_F77=yes
14142 hardcode_shlibpath_var_F77=no
14143 ;;
14144
14145 newsos6)
14146 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14147 hardcode_direct_F77=yes
14148 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14149 hardcode_libdir_separator_F77=:
14150 hardcode_shlibpath_var_F77=no
14151 ;;
14152
14153 openbsd*)
14154 hardcode_direct_F77=yes
14155 hardcode_shlibpath_var_F77=no
14156 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14157 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14158 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14159 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14160 export_dynamic_flag_spec_F77='${wl}-E'
14161 else
14162 case $host_os in
14163 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14164 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14165 hardcode_libdir_flag_spec_F77='-R$libdir'
14166 ;;
14167 *)
14168 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14169 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14170 ;;
14171 esac
14172 fi
14173 ;;
14174
14175 os2*)
14176 hardcode_libdir_flag_spec_F77='-L$libdir'
14177 hardcode_minus_L_F77=yes
14178 allow_undefined_flag_F77=unsupported
14179 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'
14180 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14181 ;;
14182
14183 osf3*)
14184 if test "$GCC" = yes; then
14185 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14186 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'
14187 else
14188 allow_undefined_flag_F77=' -expect_unresolved \*'
14189 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'
14190 fi
14191 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14192 hardcode_libdir_separator_F77=:
14193 ;;
14194
14195 osf4* | osf5*) # as osf3* with the addition of -msym flag
14196 if test "$GCC" = yes; then
14197 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14198 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'
14199 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14200 else
14201 allow_undefined_flag_F77=' -expect_unresolved \*'
14202 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'
14203 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~
14204 $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'
14205
14206 # Both c and cxx compiler support -rpath directly
14207 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14208 fi
14209 hardcode_libdir_separator_F77=:
14210 ;;
14211
14212 solaris*)
14213 no_undefined_flag_F77=' -z text'
14214 if test "$GCC" = yes; then
14215 wlarc='${wl}'
14216 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14217 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14218 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14219 else
14220 wlarc=''
14221 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14222 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14223 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14224 fi
14225 hardcode_libdir_flag_spec_F77='-R$libdir'
14226 hardcode_shlibpath_var_F77=no
14227 case $host_os in
14228 solaris2.[0-5] | solaris2.[0-5].*) ;;
14229 *)
14230 # The compiler driver will combine linker options so we
14231 # cannot just pass the convience library names through
14232 # without $wl, iff we do not link with $LD.
14233 # Luckily, gcc supports the same syntax we need for Sun Studio.
14234 # Supported since Solaris 2.6 (maybe 2.5.1?)
14235 case $wlarc in
14236 '')
14237 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14238 *)
14239 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' ;;
14240 esac ;;
14241 esac
14242 link_all_deplibs_F77=yes
14243 ;;
14244
14245 sunos4*)
14246 if test "x$host_vendor" = xsequent; then
14247 # Use $CC to link under sequent, because it throws in some extra .o
14248 # files that make .init and .fini sections work.
14249 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14250 else
14251 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14252 fi
14253 hardcode_libdir_flag_spec_F77='-L$libdir'
14254 hardcode_direct_F77=yes
14255 hardcode_minus_L_F77=yes
14256 hardcode_shlibpath_var_F77=no
14257 ;;
14258
14259 sysv4)
14260 case $host_vendor in
14261 sni)
14262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14263 hardcode_direct_F77=yes # is this really true???
14264 ;;
14265 siemens)
14266 ## LD is ld it makes a PLAMLIB
14267 ## CC just makes a GrossModule.
14268 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14269 reload_cmds_F77='$CC -r -o $output$reload_objs'
14270 hardcode_direct_F77=no
14271 ;;
14272 motorola)
14273 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14274 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14275 ;;
14276 esac
14277 runpath_var='LD_RUN_PATH'
14278 hardcode_shlibpath_var_F77=no
14279 ;;
14280
14281 sysv4.3*)
14282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283 hardcode_shlibpath_var_F77=no
14284 export_dynamic_flag_spec_F77='-Bexport'
14285 ;;
14286
14287 sysv4*MP*)
14288 if test -d /usr/nec; then
14289 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14290 hardcode_shlibpath_var_F77=no
14291 runpath_var=LD_RUN_PATH
14292 hardcode_runpath_var=yes
14293 ld_shlibs_F77=yes
14294 fi
14295 ;;
14296
14297 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14298 no_undefined_flag_F77='${wl}-z,text'
14299 archive_cmds_need_lc_F77=no
14300 hardcode_shlibpath_var_F77=no
14301 runpath_var='LD_RUN_PATH'
14302
14303 if test "$GCC" = yes; then
14304 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14305 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14306 else
14307 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14308 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14309 fi
14310 ;;
14311
14312 sysv5* | sco3.2v5* | sco5v6*)
14313 # Note: We can NOT use -z defs as we might desire, because we do not
14314 # link with -lc, and that would cause any symbols used from libc to
14315 # always be unresolved, which means just about no library would
14316 # ever link correctly. If we're not using GNU ld we use -z text
14317 # though, which does catch some bad symbols but isn't as heavy-handed
14318 # as -z defs.
14319 no_undefined_flag_F77='${wl}-z,text'
14320 allow_undefined_flag_F77='${wl}-z,nodefs'
14321 archive_cmds_need_lc_F77=no
14322 hardcode_shlibpath_var_F77=no
14323 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14324 hardcode_libdir_separator_F77=':'
14325 link_all_deplibs_F77=yes
14326 export_dynamic_flag_spec_F77='${wl}-Bexport'
14327 runpath_var='LD_RUN_PATH'
14328
14329 if test "$GCC" = yes; then
14330 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14331 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14332 else
14333 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14334 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14335 fi
14336 ;;
14337
14338 uts4*)
14339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14340 hardcode_libdir_flag_spec_F77='-L$libdir'
14341 hardcode_shlibpath_var_F77=no
14342 ;;
14343
14344 *)
14345 ld_shlibs_F77=no
14346 ;;
14347 esac
14348 fi
14349
14350 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14351 echo "${ECHO_T}$ld_shlibs_F77" >&6
14352 test "$ld_shlibs_F77" = no && can_build_shared=no
14353
14354 #
14355 # Do we need to explicitly link libc?
14356 #
14357 case "x$archive_cmds_need_lc_F77" in
14358 x|xyes)
14359 # Assume -lc should be added
14360 archive_cmds_need_lc_F77=yes
14361
14362 if test "$enable_shared" = yes && test "$GCC" = yes; then
14363 case $archive_cmds_F77 in
14364 *'~'*)
14365 # FIXME: we may have to deal with multi-command sequences.
14366 ;;
14367 '$CC '*)
14368 # Test whether the compiler implicitly links with -lc since on some
14369 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14370 # to ld, don't add -lc before -lgcc.
14371 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14372 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14373 $rm conftest*
14374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14375
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } 2>conftest.err; then
14381 soname=conftest
14382 lib=conftest
14383 libobjs=conftest.$ac_objext
14384 deplibs=
14385 wl=$lt_prog_compiler_wl_F77
14386 pic_flag=$lt_prog_compiler_pic_F77
14387 compiler_flags=-v
14388 linker_flags=-v
14389 verstring=
14390 output_objdir=.
14391 libname=conftest
14392 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14393 allow_undefined_flag_F77=
14394 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14395 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }
14399 then
14400 archive_cmds_need_lc_F77=no
14401 else
14402 archive_cmds_need_lc_F77=yes
14403 fi
14404 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14405 else
14406 cat conftest.err 1>&5
14407 fi
14408 $rm conftest*
14409 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14410 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14411 ;;
14412 esac
14413 fi
14414 ;;
14415 esac
14416
14417 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14418 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14419 library_names_spec=
14420 libname_spec='lib$name'
14421 soname_spec=
14422 shrext_cmds=".so"
14423 postinstall_cmds=
14424 postuninstall_cmds=
14425 finish_cmds=
14426 finish_eval=
14427 shlibpath_var=
14428 shlibpath_overrides_runpath=unknown
14429 version_type=none
14430 dynamic_linker="$host_os ld.so"
14431 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14432 if test "$GCC" = yes; then
14433 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14434 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14435 # if the path contains ";" then we assume it to be the separator
14436 # otherwise default to the standard path separator (i.e. ":") - it is
14437 # assumed that no part of a normal pathname contains ";" but that should
14438 # okay in the real world where ";" in dirpaths is itself problematic.
14439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14440 else
14441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14442 fi
14443 else
14444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14445 fi
14446 need_lib_prefix=unknown
14447 hardcode_into_libs=no
14448
14449 # when you set need_version to no, make sure it does not cause -set_version
14450 # flags to be left without arguments
14451 need_version=unknown
14452
14453 case $host_os in
14454 aix3*)
14455 version_type=linux
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14457 shlibpath_var=LIBPATH
14458
14459 # AIX 3 has no versioning support, so we append a major version to the name.
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 ;;
14462
14463 aix4* | aix5*)
14464 version_type=linux
14465 need_lib_prefix=no
14466 need_version=no
14467 hardcode_into_libs=yes
14468 if test "$host_cpu" = ia64; then
14469 # AIX 5 supports IA64
14470 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14471 shlibpath_var=LD_LIBRARY_PATH
14472 else
14473 # With GCC up to 2.95.x, collect2 would create an import file
14474 # for dependence libraries. The import file would start with
14475 # the line `#! .'. This would cause the generated library to
14476 # depend on `.', always an invalid library. This was fixed in
14477 # development snapshots of GCC prior to 3.0.
14478 case $host_os in
14479 aix4 | aix4.[01] | aix4.[01].*)
14480 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14481 echo ' yes '
14482 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14483 :
14484 else
14485 can_build_shared=no
14486 fi
14487 ;;
14488 esac
14489 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14490 # soname into executable. Probably we can add versioning support to
14491 # collect2, so additional links can be useful in future.
14492 if test "$aix_use_runtimelinking" = yes; then
14493 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14494 # instead of lib<name>.a to let people know that these are not
14495 # typical AIX shared libraries.
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14497 else
14498 # We preserve .a as extension for shared libraries through AIX4.2
14499 # and later when we are not doing run time linking.
14500 library_names_spec='${libname}${release}.a $libname.a'
14501 soname_spec='${libname}${release}${shared_ext}$major'
14502 fi
14503 shlibpath_var=LIBPATH
14504 fi
14505 ;;
14506
14507 amigaos*)
14508 library_names_spec='$libname.ixlibrary $libname.a'
14509 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14510 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'
14511 ;;
14512
14513 beos*)
14514 library_names_spec='${libname}${shared_ext}'
14515 dynamic_linker="$host_os ld.so"
14516 shlibpath_var=LIBRARY_PATH
14517 ;;
14518
14519 bsdi[45]*)
14520 version_type=linux
14521 need_version=no
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14527 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14528 # the default ld.so.conf also contains /usr/contrib/lib and
14529 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14530 # libtool to hard-code these into programs
14531 ;;
14532
14533 cygwin* | mingw* | pw32*)
14534 version_type=windows
14535 shrext_cmds=".dll"
14536 need_version=no
14537 need_lib_prefix=no
14538
14539 case $GCC,$host_os in
14540 yes,cygwin* | yes,mingw* | yes,pw32*)
14541 library_names_spec='$libname.dll.a'
14542 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14543 postinstall_cmds='base_file=`basename \${file}`~
14544 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14545 dldir=$destdir/`dirname \$dlpath`~
14546 test -d \$dldir || mkdir -p \$dldir~
14547 $install_prog $dir/$dlname \$dldir/$dlname~
14548 chmod a+x \$dldir/$dlname'
14549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14550 dlpath=$dir/\$dldll~
14551 $rm \$dlpath'
14552 shlibpath_overrides_runpath=yes
14553
14554 case $host_os in
14555 cygwin*)
14556 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14557 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14558 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14559 ;;
14560 mingw*)
14561 # MinGW DLLs use traditional 'lib' prefix
14562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14563 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14564 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14565 # It is most probably a Windows format PATH printed by
14566 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14567 # path with ; separators, and with drive letters. We can handle the
14568 # drive letters (cygwin fileutils understands them), so leave them,
14569 # especially as we might pass files found there to a mingw objdump,
14570 # which wouldn't understand a cygwinified path. Ahh.
14571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14572 else
14573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14574 fi
14575 ;;
14576 pw32*)
14577 # pw32 DLLs use 'pw' prefix rather than 'lib'
14578 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14579 ;;
14580 esac
14581 ;;
14582
14583 *)
14584 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14585 ;;
14586 esac
14587 dynamic_linker='Win32 ld.exe'
14588 # FIXME: first we should search . and the directory the executable is in
14589 shlibpath_var=PATH
14590 ;;
14591
14592 darwin* | rhapsody*)
14593 dynamic_linker="$host_os dyld"
14594 version_type=darwin
14595 need_lib_prefix=no
14596 need_version=no
14597 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14598 soname_spec='${libname}${release}${major}$shared_ext'
14599 shlibpath_overrides_runpath=yes
14600 shlibpath_var=DYLD_LIBRARY_PATH
14601 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14602 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14603 if test "$GCC" = yes; then
14604 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"`
14605 else
14606 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14607 fi
14608 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14609 ;;
14610
14611 dgux*)
14612 version_type=linux
14613 need_lib_prefix=no
14614 need_version=no
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 ;;
14619
14620 freebsd1*)
14621 dynamic_linker=no
14622 ;;
14623
14624 kfreebsd*-gnu)
14625 version_type=linux
14626 need_lib_prefix=no
14627 need_version=no
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14630 shlibpath_var=LD_LIBRARY_PATH
14631 shlibpath_overrides_runpath=no
14632 hardcode_into_libs=yes
14633 dynamic_linker='GNU ld.so'
14634 ;;
14635
14636 freebsd* | dragonfly*)
14637 # DragonFly does not have aout. When/if they implement a new
14638 # versioning mechanism, adjust this.
14639 if test -x /usr/bin/objformat; then
14640 objformat=`/usr/bin/objformat`
14641 else
14642 case $host_os in
14643 freebsd[123]*) objformat=aout ;;
14644 *) objformat=elf ;;
14645 esac
14646 fi
14647 version_type=freebsd-$objformat
14648 case $version_type in
14649 freebsd-elf*)
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14651 need_version=no
14652 need_lib_prefix=no
14653 ;;
14654 freebsd-*)
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14656 need_version=yes
14657 ;;
14658 esac
14659 shlibpath_var=LD_LIBRARY_PATH
14660 case $host_os in
14661 freebsd2*)
14662 shlibpath_overrides_runpath=yes
14663 ;;
14664 freebsd3.[01]* | freebsdelf3.[01]*)
14665 shlibpath_overrides_runpath=yes
14666 hardcode_into_libs=yes
14667 ;;
14668 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14669 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14670 shlibpath_overrides_runpath=no
14671 hardcode_into_libs=yes
14672 ;;
14673 freebsd*) # from 4.6 on
14674 shlibpath_overrides_runpath=yes
14675 hardcode_into_libs=yes
14676 ;;
14677 esac
14678 ;;
14679
14680 gnu*)
14681 version_type=linux
14682 need_lib_prefix=no
14683 need_version=no
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 hardcode_into_libs=yes
14688 ;;
14689
14690 hpux9* | hpux10* | hpux11*)
14691 # Give a soname corresponding to the major version so that dld.sl refuses to
14692 # link against other versions.
14693 version_type=sunos
14694 need_lib_prefix=no
14695 need_version=no
14696 case $host_cpu in
14697 ia64*)
14698 shrext_cmds='.so'
14699 hardcode_into_libs=yes
14700 dynamic_linker="$host_os dld.so"
14701 shlibpath_var=LD_LIBRARY_PATH
14702 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14704 soname_spec='${libname}${release}${shared_ext}$major'
14705 if test "X$HPUX_IA64_MODE" = X32; then
14706 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14707 else
14708 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14709 fi
14710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14711 ;;
14712 hppa*64*)
14713 shrext_cmds='.sl'
14714 hardcode_into_libs=yes
14715 dynamic_linker="$host_os dld.sl"
14716 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14722 ;;
14723 *)
14724 shrext_cmds='.sl'
14725 dynamic_linker="$host_os dld.sl"
14726 shlibpath_var=SHLIB_PATH
14727 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729 soname_spec='${libname}${release}${shared_ext}$major'
14730 ;;
14731 esac
14732 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14733 postinstall_cmds='chmod 555 $lib'
14734 ;;
14735
14736 interix3*)
14737 version_type=linux
14738 need_lib_prefix=no
14739 need_version=no
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 shlibpath_overrides_runpath=no
14745 hardcode_into_libs=yes
14746 ;;
14747
14748 irix5* | irix6* | nonstopux*)
14749 case $host_os in
14750 nonstopux*) version_type=nonstopux ;;
14751 *)
14752 if test "$lt_cv_prog_gnu_ld" = yes; then
14753 version_type=linux
14754 else
14755 version_type=irix
14756 fi ;;
14757 esac
14758 need_lib_prefix=no
14759 need_version=no
14760 soname_spec='${libname}${release}${shared_ext}$major'
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14762 case $host_os in
14763 irix5* | nonstopux*)
14764 libsuff= shlibsuff=
14765 ;;
14766 *)
14767 case $LD in # libtool.m4 will add one of these switches to LD
14768 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14769 libsuff= shlibsuff= libmagic=32-bit;;
14770 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14771 libsuff=32 shlibsuff=N32 libmagic=N32;;
14772 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14773 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14774 *) libsuff= shlibsuff= libmagic=never-match;;
14775 esac
14776 ;;
14777 esac
14778 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14779 shlibpath_overrides_runpath=no
14780 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14781 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14782 hardcode_into_libs=yes
14783 ;;
14784
14785 # No shared lib support for Linux oldld, aout, or coff.
14786 linux*oldld* | linux*aout* | linux*coff*)
14787 dynamic_linker=no
14788 ;;
14789
14790 # This must be Linux ELF.
14791 linux*)
14792 version_type=linux
14793 need_lib_prefix=no
14794 need_version=no
14795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796 soname_spec='${libname}${release}${shared_ext}$major'
14797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 shlibpath_overrides_runpath=no
14800 # This implies no fast_install, which is unacceptable.
14801 # Some rework will be needed to allow for fast_install
14802 # before this can be enabled.
14803 hardcode_into_libs=yes
14804
14805 # find out which ABI we are using
14806 libsuff=
14807 case "$host_cpu" in
14808 x86_64*|s390x*|powerpc64*)
14809 echo '#line 14809 "configure"' > conftest.$ac_ext
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); }; then
14815 case `/usr/bin/file conftest.$ac_objext` in
14816 *64-bit*)
14817 libsuff=64
14818 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14819 ;;
14820 esac
14821 fi
14822 rm -rf conftest*
14823 ;;
14824 esac
14825
14826 # Append ld.so.conf contents to the search path
14827 if test -f /etc/ld.so.conf; then
14828 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' ' '`
14829 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14830 fi
14831
14832 # We used to test for /lib/ld.so.1 and disable shared libraries on
14833 # powerpc, because MkLinux only supported shared libraries with the
14834 # GNU dynamic linker. Since this was broken with cross compilers,
14835 # most powerpc-linux boxes support dynamic linking these days and
14836 # people can always --disable-shared, the test was removed, and we
14837 # assume the GNU/Linux dynamic linker is in use.
14838 dynamic_linker='GNU/Linux ld.so'
14839 ;;
14840
14841 knetbsd*-gnu)
14842 version_type=linux
14843 need_lib_prefix=no
14844 need_version=no
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14846 soname_spec='${libname}${release}${shared_ext}$major'
14847 shlibpath_var=LD_LIBRARY_PATH
14848 shlibpath_overrides_runpath=no
14849 hardcode_into_libs=yes
14850 dynamic_linker='GNU ld.so'
14851 ;;
14852
14853 netbsd*)
14854 version_type=sunos
14855 need_lib_prefix=no
14856 need_version=no
14857 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14860 dynamic_linker='NetBSD (a.out) ld.so'
14861 else
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 dynamic_linker='NetBSD ld.elf_so'
14865 fi
14866 shlibpath_var=LD_LIBRARY_PATH
14867 shlibpath_overrides_runpath=yes
14868 hardcode_into_libs=yes
14869 ;;
14870
14871 newsos6)
14872 version_type=linux
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=yes
14876 ;;
14877
14878 nto-qnx*)
14879 version_type=linux
14880 need_lib_prefix=no
14881 need_version=no
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883 soname_spec='${libname}${release}${shared_ext}$major'
14884 shlibpath_var=LD_LIBRARY_PATH
14885 shlibpath_overrides_runpath=yes
14886 ;;
14887
14888 openbsd*)
14889 version_type=sunos
14890 sys_lib_dlsearch_path_spec="/usr/lib"
14891 need_lib_prefix=no
14892 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14893 case $host_os in
14894 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14895 *) need_version=no ;;
14896 esac
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14899 shlibpath_var=LD_LIBRARY_PATH
14900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14901 case $host_os in
14902 openbsd2.[89] | openbsd2.[89].*)
14903 shlibpath_overrides_runpath=no
14904 ;;
14905 *)
14906 shlibpath_overrides_runpath=yes
14907 ;;
14908 esac
14909 else
14910 shlibpath_overrides_runpath=yes
14911 fi
14912 ;;
14913
14914 os2*)
14915 libname_spec='$name'
14916 shrext_cmds=".dll"
14917 need_lib_prefix=no
14918 library_names_spec='$libname${shared_ext} $libname.a'
14919 dynamic_linker='OS/2 ld.exe'
14920 shlibpath_var=LIBPATH
14921 ;;
14922
14923 osf3* | osf4* | osf5*)
14924 version_type=osf
14925 need_lib_prefix=no
14926 need_version=no
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 shlibpath_var=LD_LIBRARY_PATH
14930 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14931 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14932 ;;
14933
14934 solaris*)
14935 version_type=linux
14936 need_lib_prefix=no
14937 need_version=no
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 shlibpath_var=LD_LIBRARY_PATH
14941 shlibpath_overrides_runpath=yes
14942 hardcode_into_libs=yes
14943 # ldd complains unless libraries are executable
14944 postinstall_cmds='chmod +x $lib'
14945 ;;
14946
14947 sunos4*)
14948 version_type=sunos
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14950 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes
14953 if test "$with_gnu_ld" = yes; then
14954 need_lib_prefix=no
14955 fi
14956 need_version=yes
14957 ;;
14958
14959 sysv4 | sysv4.3*)
14960 version_type=linux
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 shlibpath_var=LD_LIBRARY_PATH
14964 case $host_vendor in
14965 sni)
14966 shlibpath_overrides_runpath=no
14967 need_lib_prefix=no
14968 export_dynamic_flag_spec='${wl}-Blargedynsym'
14969 runpath_var=LD_RUN_PATH
14970 ;;
14971 siemens)
14972 need_lib_prefix=no
14973 ;;
14974 motorola)
14975 need_lib_prefix=no
14976 need_version=no
14977 shlibpath_overrides_runpath=no
14978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14979 ;;
14980 esac
14981 ;;
14982
14983 sysv4*MP*)
14984 if test -d /usr/nec ;then
14985 version_type=linux
14986 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14987 soname_spec='$libname${shared_ext}.$major'
14988 shlibpath_var=LD_LIBRARY_PATH
14989 fi
14990 ;;
14991
14992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14993 version_type=freebsd-elf
14994 need_lib_prefix=no
14995 need_version=no
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 shlibpath_var=LD_LIBRARY_PATH
14999 hardcode_into_libs=yes
15000 if test "$with_gnu_ld" = yes; then
15001 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15002 shlibpath_overrides_runpath=no
15003 else
15004 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15005 shlibpath_overrides_runpath=yes
15006 case $host_os in
15007 sco3.2v5*)
15008 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15009 ;;
15010 esac
15011 fi
15012 sys_lib_dlsearch_path_spec='/usr/lib'
15013 ;;
15014
15015 uts4*)
15016 version_type=linux
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15018 soname_spec='${libname}${release}${shared_ext}$major'
15019 shlibpath_var=LD_LIBRARY_PATH
15020 ;;
15021
15022 *)
15023 dynamic_linker=no
15024 ;;
15025 esac
15026 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15027 echo "${ECHO_T}$dynamic_linker" >&6
15028 test "$dynamic_linker" = no && can_build_shared=no
15029
15030 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15031 if test "$GCC" = yes; then
15032 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15033 fi
15034
15035 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15036 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15037 hardcode_action_F77=
15038 if test -n "$hardcode_libdir_flag_spec_F77" || \
15039 test -n "$runpath_var_F77" || \
15040 test "X$hardcode_automatic_F77" = "Xyes" ; then
15041
15042 # We can hardcode non-existant directories.
15043 if test "$hardcode_direct_F77" != no &&
15044 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15045 # have to relink, otherwise we might link with an installed library
15046 # when we should be linking with a yet-to-be-installed one
15047 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15048 test "$hardcode_minus_L_F77" != no; then
15049 # Linking always hardcodes the temporary library directory.
15050 hardcode_action_F77=relink
15051 else
15052 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15053 hardcode_action_F77=immediate
15054 fi
15055 else
15056 # We cannot hardcode anything, or else we can only hardcode existing
15057 # directories.
15058 hardcode_action_F77=unsupported
15059 fi
15060 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15061 echo "${ECHO_T}$hardcode_action_F77" >&6
15062
15063 if test "$hardcode_action_F77" = relink; then
15064 # Fast installation is not supported
15065 enable_fast_install=no
15066 elif test "$shlibpath_overrides_runpath" = yes ||
15067 test "$enable_shared" = no; then
15068 # Fast installation is not necessary
15069 enable_fast_install=needless
15070 fi
15071
15072
15073 # The else clause should only fire when bootstrapping the
15074 # libtool distribution, otherwise you forgot to ship ltmain.sh
15075 # with your package, and you will get complaints that there are
15076 # no rules to generate ltmain.sh.
15077 if test -f "$ltmain"; then
15078 # See if we are running on zsh, and set the options which allow our commands through
15079 # without removal of \ escapes.
15080 if test -n "${ZSH_VERSION+set}" ; then
15081 setopt NO_GLOB_SUBST
15082 fi
15083 # Now quote all the things that may contain metacharacters while being
15084 # careful not to overquote the AC_SUBSTed values. We take copies of the
15085 # variables and quote the copies for generation of the libtool script.
15086 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15087 SED SHELL STRIP \
15088 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15089 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15090 deplibs_check_method reload_flag reload_cmds need_locks \
15091 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15092 lt_cv_sys_global_symbol_to_c_name_address \
15093 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15094 old_postinstall_cmds old_postuninstall_cmds \
15095 compiler_F77 \
15096 CC_F77 \
15097 LD_F77 \
15098 lt_prog_compiler_wl_F77 \
15099 lt_prog_compiler_pic_F77 \
15100 lt_prog_compiler_static_F77 \
15101 lt_prog_compiler_no_builtin_flag_F77 \
15102 export_dynamic_flag_spec_F77 \
15103 thread_safe_flag_spec_F77 \
15104 whole_archive_flag_spec_F77 \
15105 enable_shared_with_static_runtimes_F77 \
15106 old_archive_cmds_F77 \
15107 old_archive_from_new_cmds_F77 \
15108 predep_objects_F77 \
15109 postdep_objects_F77 \
15110 predeps_F77 \
15111 postdeps_F77 \
15112 compiler_lib_search_path_F77 \
15113 archive_cmds_F77 \
15114 archive_expsym_cmds_F77 \
15115 postinstall_cmds_F77 \
15116 postuninstall_cmds_F77 \
15117 old_archive_from_expsyms_cmds_F77 \
15118 allow_undefined_flag_F77 \
15119 no_undefined_flag_F77 \
15120 export_symbols_cmds_F77 \
15121 hardcode_libdir_flag_spec_F77 \
15122 hardcode_libdir_flag_spec_ld_F77 \
15123 hardcode_libdir_separator_F77 \
15124 hardcode_automatic_F77 \
15125 module_cmds_F77 \
15126 module_expsym_cmds_F77 \
15127 lt_cv_prog_compiler_c_o_F77 \
15128 exclude_expsyms_F77 \
15129 include_expsyms_F77; do
15130
15131 case $var in
15132 old_archive_cmds_F77 | \
15133 old_archive_from_new_cmds_F77 | \
15134 archive_cmds_F77 | \
15135 archive_expsym_cmds_F77 | \
15136 module_cmds_F77 | \
15137 module_expsym_cmds_F77 | \
15138 old_archive_from_expsyms_cmds_F77 | \
15139 export_symbols_cmds_F77 | \
15140 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15141 postinstall_cmds | postuninstall_cmds | \
15142 old_postinstall_cmds | old_postuninstall_cmds | \
15143 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15144 # Double-quote double-evaled strings.
15145 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15146 ;;
15147 *)
15148 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15149 ;;
15150 esac
15151 done
15152
15153 case $lt_echo in
15154 *'\$0 --fallback-echo"')
15155 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15156 ;;
15157 esac
15158
15159 cfgfile="$ofile"
15160
15161 cat <<__EOF__ >> "$cfgfile"
15162 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15163
15164 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15165
15166 # Shell to use when invoking shell scripts.
15167 SHELL=$lt_SHELL
15168
15169 # Whether or not to build shared libraries.
15170 build_libtool_libs=$enable_shared
15171
15172 # Whether or not to build static libraries.
15173 build_old_libs=$enable_static
15174
15175 # Whether or not to add -lc for building shared libraries.
15176 build_libtool_need_lc=$archive_cmds_need_lc_F77
15177
15178 # Whether or not to disallow shared libs when runtime libs are static
15179 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15180
15181 # Whether or not to optimize for fast installation.
15182 fast_install=$enable_fast_install
15183
15184 # The host system.
15185 host_alias=$host_alias
15186 host=$host
15187 host_os=$host_os
15188
15189 # The build system.
15190 build_alias=$build_alias
15191 build=$build
15192 build_os=$build_os
15193
15194 # An echo program that does not interpret backslashes.
15195 echo=$lt_echo
15196
15197 # The archiver.
15198 AR=$lt_AR
15199 AR_FLAGS=$lt_AR_FLAGS
15200
15201 # A C compiler.
15202 LTCC=$lt_LTCC
15203
15204 # LTCC compiler flags.
15205 LTCFLAGS=$lt_LTCFLAGS
15206
15207 # A language-specific compiler.
15208 CC=$lt_compiler_F77
15209
15210 # Is the compiler the GNU C compiler?
15211 with_gcc=$GCC_F77
15212
15213 # An ERE matcher.
15214 EGREP=$lt_EGREP
15215
15216 # The linker used to build libraries.
15217 LD=$lt_LD_F77
15218
15219 # Whether we need hard or soft links.
15220 LN_S=$lt_LN_S
15221
15222 # A BSD-compatible nm program.
15223 NM=$lt_NM
15224
15225 # A symbol stripping program
15226 STRIP=$lt_STRIP
15227
15228 # Used to examine libraries when file_magic_cmd begins "file"
15229 MAGIC_CMD=$MAGIC_CMD
15230
15231 # Used on cygwin: DLL creation program.
15232 DLLTOOL="$DLLTOOL"
15233
15234 # Used on cygwin: object dumper.
15235 OBJDUMP="$OBJDUMP"
15236
15237 # Used on cygwin: assembler.
15238 AS="$AS"
15239
15240 # The name of the directory that contains temporary libtool files.
15241 objdir=$objdir
15242
15243 # How to create reloadable object files.
15244 reload_flag=$lt_reload_flag
15245 reload_cmds=$lt_reload_cmds
15246
15247 # How to pass a linker flag through the compiler.
15248 wl=$lt_lt_prog_compiler_wl_F77
15249
15250 # Object file suffix (normally "o").
15251 objext="$ac_objext"
15252
15253 # Old archive suffix (normally "a").
15254 libext="$libext"
15255
15256 # Shared library suffix (normally ".so").
15257 shrext_cmds='$shrext_cmds'
15258
15259 # Executable file suffix (normally "").
15260 exeext="$exeext"
15261
15262 # Additional compiler flags for building library objects.
15263 pic_flag=$lt_lt_prog_compiler_pic_F77
15264 pic_mode=$pic_mode
15265
15266 # What is the maximum length of a command?
15267 max_cmd_len=$lt_cv_sys_max_cmd_len
15268
15269 # Does compiler simultaneously support -c and -o options?
15270 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15271
15272 # Must we lock files when doing compilation?
15273 need_locks=$lt_need_locks
15274
15275 # Do we need the lib prefix for modules?
15276 need_lib_prefix=$need_lib_prefix
15277
15278 # Do we need a version for libraries?
15279 need_version=$need_version
15280
15281 # Whether dlopen is supported.
15282 dlopen_support=$enable_dlopen
15283
15284 # Whether dlopen of programs is supported.
15285 dlopen_self=$enable_dlopen_self
15286
15287 # Whether dlopen of statically linked programs is supported.
15288 dlopen_self_static=$enable_dlopen_self_static
15289
15290 # Compiler flag to prevent dynamic linking.
15291 link_static_flag=$lt_lt_prog_compiler_static_F77
15292
15293 # Compiler flag to turn off builtin functions.
15294 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15295
15296 # Compiler flag to allow reflexive dlopens.
15297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15298
15299 # Compiler flag to generate shared objects directly from archives.
15300 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15301
15302 # Compiler flag to generate thread-safe objects.
15303 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15304
15305 # Library versioning type.
15306 version_type=$version_type
15307
15308 # Format of library name prefix.
15309 libname_spec=$lt_libname_spec
15310
15311 # List of archive names. First name is the real one, the rest are links.
15312 # The last name is the one that the linker finds with -lNAME.
15313 library_names_spec=$lt_library_names_spec
15314
15315 # The coded name of the library, if different from the real name.
15316 soname_spec=$lt_soname_spec
15317
15318 # Commands used to build and install an old-style archive.
15319 RANLIB=$lt_RANLIB
15320 old_archive_cmds=$lt_old_archive_cmds_F77
15321 old_postinstall_cmds=$lt_old_postinstall_cmds
15322 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15323
15324 # Create an old-style archive from a shared archive.
15325 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15326
15327 # Create a temporary old-style archive to link instead of a shared archive.
15328 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15329
15330 # Commands used to build and install a shared archive.
15331 archive_cmds=$lt_archive_cmds_F77
15332 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15333 postinstall_cmds=$lt_postinstall_cmds
15334 postuninstall_cmds=$lt_postuninstall_cmds
15335
15336 # Commands used to build a loadable module (assumed same as above if empty)
15337 module_cmds=$lt_module_cmds_F77
15338 module_expsym_cmds=$lt_module_expsym_cmds_F77
15339
15340 # Commands to strip libraries.
15341 old_striplib=$lt_old_striplib
15342 striplib=$lt_striplib
15343
15344 # Dependencies to place before the objects being linked to create a
15345 # shared library.
15346 predep_objects=$lt_predep_objects_F77
15347
15348 # Dependencies to place after the objects being linked to create a
15349 # shared library.
15350 postdep_objects=$lt_postdep_objects_F77
15351
15352 # Dependencies to place before the objects being linked to create a
15353 # shared library.
15354 predeps=$lt_predeps_F77
15355
15356 # Dependencies to place after the objects being linked to create a
15357 # shared library.
15358 postdeps=$lt_postdeps_F77
15359
15360 # The library search path used internally by the compiler when linking
15361 # a shared library.
15362 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15363
15364 # Method to check whether dependent libraries are shared objects.
15365 deplibs_check_method=$lt_deplibs_check_method
15366
15367 # Command to use when deplibs_check_method == file_magic.
15368 file_magic_cmd=$lt_file_magic_cmd
15369
15370 # Flag that allows shared libraries with undefined symbols to be built.
15371 allow_undefined_flag=$lt_allow_undefined_flag_F77
15372
15373 # Flag that forces no undefined symbols.
15374 no_undefined_flag=$lt_no_undefined_flag_F77
15375
15376 # Commands used to finish a libtool library installation in a directory.
15377 finish_cmds=$lt_finish_cmds
15378
15379 # Same as above, but a single script fragment to be evaled but not shown.
15380 finish_eval=$lt_finish_eval
15381
15382 # Take the output of nm and produce a listing of raw symbols and C names.
15383 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15384
15385 # Transform the output of nm in a proper C declaration
15386 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15387
15388 # Transform the output of nm in a C name address pair
15389 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15390
15391 # This is the shared library runtime path variable.
15392 runpath_var=$runpath_var
15393
15394 # This is the shared library path variable.
15395 shlibpath_var=$shlibpath_var
15396
15397 # Is shlibpath searched before the hard-coded library search path?
15398 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15399
15400 # How to hardcode a shared library path into an executable.
15401 hardcode_action=$hardcode_action_F77
15402
15403 # Whether we should hardcode library paths into libraries.
15404 hardcode_into_libs=$hardcode_into_libs
15405
15406 # Flag to hardcode \$libdir into a binary during linking.
15407 # This must work even if \$libdir does not exist.
15408 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15409
15410 # If ld is used when linking, flag to hardcode \$libdir into
15411 # a binary during linking. This must work even if \$libdir does
15412 # not exist.
15413 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15414
15415 # Whether we need a single -rpath flag with a separated argument.
15416 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15417
15418 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15419 # resulting binary.
15420 hardcode_direct=$hardcode_direct_F77
15421
15422 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15423 # resulting binary.
15424 hardcode_minus_L=$hardcode_minus_L_F77
15425
15426 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15427 # the resulting binary.
15428 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15429
15430 # Set to yes if building a shared library automatically hardcodes DIR into the library
15431 # and all subsequent libraries and executables linked against it.
15432 hardcode_automatic=$hardcode_automatic_F77
15433
15434 # Variables whose values should be saved in libtool wrapper scripts and
15435 # restored at relink time.
15436 variables_saved_for_relink="$variables_saved_for_relink"
15437
15438 # Whether libtool must link a program against all its dependency libraries.
15439 link_all_deplibs=$link_all_deplibs_F77
15440
15441 # Compile-time system search path for libraries
15442 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15443
15444 # Run-time system search path for libraries
15445 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15446
15447 # Fix the shell variable \$srcfile for the compiler.
15448 fix_srcfile_path="$fix_srcfile_path_F77"
15449
15450 # Set to yes if exported symbols are required.
15451 always_export_symbols=$always_export_symbols_F77
15452
15453 # The commands to list exported symbols.
15454 export_symbols_cmds=$lt_export_symbols_cmds_F77
15455
15456 # The commands to extract the exported symbol list from a shared archive.
15457 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15458
15459 # Symbols that should not be listed in the preloaded symbols.
15460 exclude_expsyms=$lt_exclude_expsyms_F77
15461
15462 # Symbols that must always be exported.
15463 include_expsyms=$lt_include_expsyms_F77
15464
15465 # ### END LIBTOOL TAG CONFIG: $tagname
15466
15467 __EOF__
15468
15469
15470 else
15471 # If there is no Makefile yet, we rely on a make rule to execute
15472 # `config.status --recheck' to rerun these tests and create the
15473 # libtool script then.
15474 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15475 if test -f "$ltmain_in"; then
15476 test -f Makefile && make "$ltmain"
15477 fi
15478 fi
15479
15480
15481 ac_ext=c
15482 ac_cpp='$CPP $CPPFLAGS'
15483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15486
15487 CC="$lt_save_CC"
15488
15489 else
15490 tagname=""
15491 fi
15492 ;;
15493
15494 GCJ)
15495 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15496
15497
15498
15499 # Source file extension for Java test sources.
15500 ac_ext=java
15501
15502 # Object file extension for compiled Java test sources.
15503 objext=o
15504 objext_GCJ=$objext
15505
15506 # Code to be used in simple compile tests
15507 lt_simple_compile_test_code="class foo {}\n"
15508
15509 # Code to be used in simple link tests
15510 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15511
15512 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15513
15514 # If no C compiler was specified, use CC.
15515 LTCC=${LTCC-"$CC"}
15516
15517 # If no C compiler flags were specified, use CFLAGS.
15518 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15519
15520 # Allow CC to be a program name with arguments.
15521 compiler=$CC
15522
15523
15524 # save warnings/boilerplate of simple test code
15525 ac_outfile=conftest.$ac_objext
15526 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15528 _lt_compiler_boilerplate=`cat conftest.err`
15529 $rm conftest*
15530
15531 ac_outfile=conftest.$ac_objext
15532 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15534 _lt_linker_boilerplate=`cat conftest.err`
15535 $rm conftest*
15536
15537
15538 # Allow CC to be a program name with arguments.
15539 lt_save_CC="$CC"
15540 CC=${GCJ-"gcj"}
15541 compiler=$CC
15542 compiler_GCJ=$CC
15543 for cc_temp in $compiler""; do
15544 case $cc_temp in
15545 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15546 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15547 \-*) ;;
15548 *) break;;
15549 esac
15550 done
15551 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15552
15553
15554 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15555 archive_cmds_need_lc_GCJ=no
15556
15557 old_archive_cmds_GCJ=$old_archive_cmds
15558
15559
15560 lt_prog_compiler_no_builtin_flag_GCJ=
15561
15562 if test "$GCC" = yes; then
15563 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15564
15565
15566 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15567 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15568 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 else
15571 lt_cv_prog_compiler_rtti_exceptions=no
15572 ac_outfile=conftest.$ac_objext
15573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15574 lt_compiler_flag="-fno-rtti -fno-exceptions"
15575 # Insert the option either (1) after the last *FLAGS variable, or
15576 # (2) before a word containing "conftest.", or (3) at the end.
15577 # Note that $ac_compile itself does not contain backslashes and begins
15578 # with a dollar sign (not a hyphen), so the echo should work correctly.
15579 # The option is referenced via a variable to avoid confusing sed.
15580 lt_compile=`echo "$ac_compile" | $SED \
15581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15583 -e 's:$: $lt_compiler_flag:'`
15584 (eval echo "\"\$as_me:15584: $lt_compile\"" >&5)
15585 (eval "$lt_compile" 2>conftest.err)
15586 ac_status=$?
15587 cat conftest.err >&5
15588 echo "$as_me:15588: \$? = $ac_status" >&5
15589 if (exit $ac_status) && test -s "$ac_outfile"; then
15590 # The compiler can only warn and ignore the option if not recognized
15591 # So say no if there are warnings other than the usual output.
15592 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15595 lt_cv_prog_compiler_rtti_exceptions=yes
15596 fi
15597 fi
15598 $rm conftest*
15599
15600 fi
15601 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15602 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15603
15604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15605 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15606 else
15607 :
15608 fi
15609
15610 fi
15611
15612 lt_prog_compiler_wl_GCJ=
15613 lt_prog_compiler_pic_GCJ=
15614 lt_prog_compiler_static_GCJ=
15615
15616 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15617 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15618
15619 if test "$GCC" = yes; then
15620 lt_prog_compiler_wl_GCJ='-Wl,'
15621 lt_prog_compiler_static_GCJ='-static'
15622
15623 case $host_os in
15624 aix*)
15625 # All AIX code is PIC.
15626 if test "$host_cpu" = ia64; then
15627 # AIX 5 now supports IA64 processor
15628 lt_prog_compiler_static_GCJ='-Bstatic'
15629 fi
15630 ;;
15631
15632 amigaos*)
15633 # FIXME: we need at least 68020 code to build shared libraries, but
15634 # adding the `-m68020' flag to GCC prevents building anything better,
15635 # like `-m68040'.
15636 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15637 ;;
15638
15639 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15640 # PIC is the default for these OSes.
15641 ;;
15642
15643 mingw* | pw32* | os2*)
15644 # This hack is so that the source file can tell whether it is being
15645 # built for inclusion in a dll (and should export symbols for example).
15646 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15647 ;;
15648
15649 darwin* | rhapsody*)
15650 # PIC is the default on this platform
15651 # Common symbols not allowed in MH_DYLIB files
15652 lt_prog_compiler_pic_GCJ='-fno-common'
15653 ;;
15654
15655 interix3*)
15656 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15657 # Instead, we relocate shared libraries at runtime.
15658 ;;
15659
15660 msdosdjgpp*)
15661 # Just because we use GCC doesn't mean we suddenly get shared libraries
15662 # on systems that don't support them.
15663 lt_prog_compiler_can_build_shared_GCJ=no
15664 enable_shared=no
15665 ;;
15666
15667 sysv4*MP*)
15668 if test -d /usr/nec; then
15669 lt_prog_compiler_pic_GCJ=-Kconform_pic
15670 fi
15671 ;;
15672
15673 hpux*)
15674 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15675 # not for PA HP-UX.
15676 case $host_cpu in
15677 hppa*64*|ia64*)
15678 # +Z the default
15679 ;;
15680 *)
15681 lt_prog_compiler_pic_GCJ='-fPIC'
15682 ;;
15683 esac
15684 ;;
15685
15686 *)
15687 lt_prog_compiler_pic_GCJ='-fPIC'
15688 ;;
15689 esac
15690 else
15691 # PORTME Check for flag to pass linker flags through the system compiler.
15692 case $host_os in
15693 aix*)
15694 lt_prog_compiler_wl_GCJ='-Wl,'
15695 if test "$host_cpu" = ia64; then
15696 # AIX 5 now supports IA64 processor
15697 lt_prog_compiler_static_GCJ='-Bstatic'
15698 else
15699 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15700 fi
15701 ;;
15702 darwin*)
15703 # PIC is the default on this platform
15704 # Common symbols not allowed in MH_DYLIB files
15705 case $cc_basename in
15706 xlc*)
15707 lt_prog_compiler_pic_GCJ='-qnocommon'
15708 lt_prog_compiler_wl_GCJ='-Wl,'
15709 ;;
15710 esac
15711 ;;
15712
15713 mingw* | pw32* | os2*)
15714 # This hack is so that the source file can tell whether it is being
15715 # built for inclusion in a dll (and should export symbols for example).
15716 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15717 ;;
15718
15719 hpux9* | hpux10* | hpux11*)
15720 lt_prog_compiler_wl_GCJ='-Wl,'
15721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15722 # not for PA HP-UX.
15723 case $host_cpu in
15724 hppa*64*|ia64*)
15725 # +Z the default
15726 ;;
15727 *)
15728 lt_prog_compiler_pic_GCJ='+Z'
15729 ;;
15730 esac
15731 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15732 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15733 ;;
15734
15735 irix5* | irix6* | nonstopux*)
15736 lt_prog_compiler_wl_GCJ='-Wl,'
15737 # PIC (with -KPIC) is the default.
15738 lt_prog_compiler_static_GCJ='-non_shared'
15739 ;;
15740
15741 newsos6)
15742 lt_prog_compiler_pic_GCJ='-KPIC'
15743 lt_prog_compiler_static_GCJ='-Bstatic'
15744 ;;
15745
15746 linux*)
15747 case $cc_basename in
15748 icc* | ecc*)
15749 lt_prog_compiler_wl_GCJ='-Wl,'
15750 lt_prog_compiler_pic_GCJ='-KPIC'
15751 lt_prog_compiler_static_GCJ='-static'
15752 ;;
15753 pgcc* | pgf77* | pgf90* | pgf95*)
15754 # Portland Group compilers (*not* the Pentium gcc compiler,
15755 # which looks to be a dead project)
15756 lt_prog_compiler_wl_GCJ='-Wl,'
15757 lt_prog_compiler_pic_GCJ='-fpic'
15758 lt_prog_compiler_static_GCJ='-Bstatic'
15759 ;;
15760 ccc*)
15761 lt_prog_compiler_wl_GCJ='-Wl,'
15762 # All Alpha code is PIC.
15763 lt_prog_compiler_static_GCJ='-non_shared'
15764 ;;
15765 esac
15766 ;;
15767
15768 osf3* | osf4* | osf5*)
15769 lt_prog_compiler_wl_GCJ='-Wl,'
15770 # All OSF/1 code is PIC.
15771 lt_prog_compiler_static_GCJ='-non_shared'
15772 ;;
15773
15774 solaris*)
15775 lt_prog_compiler_pic_GCJ='-KPIC'
15776 lt_prog_compiler_static_GCJ='-Bstatic'
15777 case $cc_basename in
15778 f77* | f90* | f95*)
15779 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15780 *)
15781 lt_prog_compiler_wl_GCJ='-Wl,';;
15782 esac
15783 ;;
15784
15785 sunos4*)
15786 lt_prog_compiler_wl_GCJ='-Qoption ld '
15787 lt_prog_compiler_pic_GCJ='-PIC'
15788 lt_prog_compiler_static_GCJ='-Bstatic'
15789 ;;
15790
15791 sysv4 | sysv4.2uw2* | sysv4.3*)
15792 lt_prog_compiler_wl_GCJ='-Wl,'
15793 lt_prog_compiler_pic_GCJ='-KPIC'
15794 lt_prog_compiler_static_GCJ='-Bstatic'
15795 ;;
15796
15797 sysv4*MP*)
15798 if test -d /usr/nec ;then
15799 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15800 lt_prog_compiler_static_GCJ='-Bstatic'
15801 fi
15802 ;;
15803
15804 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15805 lt_prog_compiler_wl_GCJ='-Wl,'
15806 lt_prog_compiler_pic_GCJ='-KPIC'
15807 lt_prog_compiler_static_GCJ='-Bstatic'
15808 ;;
15809
15810 unicos*)
15811 lt_prog_compiler_wl_GCJ='-Wl,'
15812 lt_prog_compiler_can_build_shared_GCJ=no
15813 ;;
15814
15815 uts4*)
15816 lt_prog_compiler_pic_GCJ='-pic'
15817 lt_prog_compiler_static_GCJ='-Bstatic'
15818 ;;
15819
15820 *)
15821 lt_prog_compiler_can_build_shared_GCJ=no
15822 ;;
15823 esac
15824 fi
15825
15826 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15827 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15828
15829 #
15830 # Check to make sure the PIC flag actually works.
15831 #
15832 if test -n "$lt_prog_compiler_pic_GCJ"; then
15833
15834 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15835 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15836 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839 lt_prog_compiler_pic_works_GCJ=no
15840 ac_outfile=conftest.$ac_objext
15841 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15842 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15843 # Insert the option either (1) after the last *FLAGS variable, or
15844 # (2) before a word containing "conftest.", or (3) at the end.
15845 # Note that $ac_compile itself does not contain backslashes and begins
15846 # with a dollar sign (not a hyphen), so the echo should work correctly.
15847 # The option is referenced via a variable to avoid confusing sed.
15848 lt_compile=`echo "$ac_compile" | $SED \
15849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15851 -e 's:$: $lt_compiler_flag:'`
15852 (eval echo "\"\$as_me:15852: $lt_compile\"" >&5)
15853 (eval "$lt_compile" 2>conftest.err)
15854 ac_status=$?
15855 cat conftest.err >&5
15856 echo "$as_me:15856: \$? = $ac_status" >&5
15857 if (exit $ac_status) && test -s "$ac_outfile"; then
15858 # The compiler can only warn and ignore the option if not recognized
15859 # So say no if there are warnings other than the usual output.
15860 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15863 lt_prog_compiler_pic_works_GCJ=yes
15864 fi
15865 fi
15866 $rm conftest*
15867
15868 fi
15869 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15870 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15871
15872 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15873 case $lt_prog_compiler_pic_GCJ in
15874 "" | " "*) ;;
15875 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15876 esac
15877 else
15878 lt_prog_compiler_pic_GCJ=
15879 lt_prog_compiler_can_build_shared_GCJ=no
15880 fi
15881
15882 fi
15883 case $host_os in
15884 # For platforms which do not support PIC, -DPIC is meaningless:
15885 *djgpp*)
15886 lt_prog_compiler_pic_GCJ=
15887 ;;
15888 *)
15889 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15890 ;;
15891 esac
15892
15893 #
15894 # Check to make sure the static flag actually works.
15895 #
15896 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15897 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15898 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15899 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902 lt_prog_compiler_static_works_GCJ=no
15903 save_LDFLAGS="$LDFLAGS"
15904 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15905 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15906 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15907 # The linker can only warn and ignore the option if not recognized
15908 # So say no if there are warnings
15909 if test -s conftest.err; then
15910 # Append any errors to the config.log.
15911 cat conftest.err 1>&5
15912 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15914 if diff conftest.exp conftest.er2 >/dev/null; then
15915 lt_prog_compiler_static_works_GCJ=yes
15916 fi
15917 else
15918 lt_prog_compiler_static_works_GCJ=yes
15919 fi
15920 fi
15921 $rm conftest*
15922 LDFLAGS="$save_LDFLAGS"
15923
15924 fi
15925 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15926 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15927
15928 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15929 :
15930 else
15931 lt_prog_compiler_static_GCJ=
15932 fi
15933
15934
15935 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15936 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15937 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15938 echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940 lt_cv_prog_compiler_c_o_GCJ=no
15941 $rm -r conftest 2>/dev/null
15942 mkdir conftest
15943 cd conftest
15944 mkdir out
15945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15946
15947 lt_compiler_flag="-o out/conftest2.$ac_objext"
15948 # Insert the option either (1) after the last *FLAGS variable, or
15949 # (2) before a word containing "conftest.", or (3) at the end.
15950 # Note that $ac_compile itself does not contain backslashes and begins
15951 # with a dollar sign (not a hyphen), so the echo should work correctly.
15952 lt_compile=`echo "$ac_compile" | $SED \
15953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15955 -e 's:$: $lt_compiler_flag:'`
15956 (eval echo "\"\$as_me:15956: $lt_compile\"" >&5)
15957 (eval "$lt_compile" 2>out/conftest.err)
15958 ac_status=$?
15959 cat out/conftest.err >&5
15960 echo "$as_me:15960: \$? = $ac_status" >&5
15961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15962 then
15963 # The compiler can only warn and ignore the option if not recognized
15964 # So say no if there are warnings
15965 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15966 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15967 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15968 lt_cv_prog_compiler_c_o_GCJ=yes
15969 fi
15970 fi
15971 chmod u+w . 2>&5
15972 $rm conftest*
15973 # SGI C++ compiler will create directory out/ii_files/ for
15974 # template instantiation
15975 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15976 $rm out/* && rmdir out
15977 cd ..
15978 rmdir conftest
15979 $rm conftest*
15980
15981 fi
15982 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15983 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15984
15985
15986 hard_links="nottested"
15987 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15988 # do not overwrite the value of need_locks provided by the user
15989 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15990 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15991 hard_links=yes
15992 $rm conftest*
15993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15994 touch conftest.a
15995 ln conftest.a conftest.b 2>&5 || hard_links=no
15996 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15997 echo "$as_me:$LINENO: result: $hard_links" >&5
15998 echo "${ECHO_T}$hard_links" >&6
15999 if test "$hard_links" = no; then
16000 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16001 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16002 need_locks=warn
16003 fi
16004 else
16005 need_locks=no
16006 fi
16007
16008 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16009 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16010
16011 runpath_var=
16012 allow_undefined_flag_GCJ=
16013 enable_shared_with_static_runtimes_GCJ=no
16014 archive_cmds_GCJ=
16015 archive_expsym_cmds_GCJ=
16016 old_archive_From_new_cmds_GCJ=
16017 old_archive_from_expsyms_cmds_GCJ=
16018 export_dynamic_flag_spec_GCJ=
16019 whole_archive_flag_spec_GCJ=
16020 thread_safe_flag_spec_GCJ=
16021 hardcode_libdir_flag_spec_GCJ=
16022 hardcode_libdir_flag_spec_ld_GCJ=
16023 hardcode_libdir_separator_GCJ=
16024 hardcode_direct_GCJ=no
16025 hardcode_minus_L_GCJ=no
16026 hardcode_shlibpath_var_GCJ=unsupported
16027 link_all_deplibs_GCJ=unknown
16028 hardcode_automatic_GCJ=no
16029 module_cmds_GCJ=
16030 module_expsym_cmds_GCJ=
16031 always_export_symbols_GCJ=no
16032 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16033 # include_expsyms should be a list of space-separated symbols to be *always*
16034 # included in the symbol list
16035 include_expsyms_GCJ=
16036 # exclude_expsyms can be an extended regexp of symbols to exclude
16037 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16038 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16039 # as well as any symbol that contains `d'.
16040 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16041 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16042 # platforms (ab)use it in PIC code, but their linkers get confused if
16043 # the symbol is explicitly referenced. Since portable code cannot
16044 # rely on this symbol name, it's probably fine to never include it in
16045 # preloaded symbol tables.
16046 extract_expsyms_cmds=
16047 # Just being paranoid about ensuring that cc_basename is set.
16048 for cc_temp in $compiler""; do
16049 case $cc_temp in
16050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16052 \-*) ;;
16053 *) break;;
16054 esac
16055 done
16056 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16057
16058 case $host_os in
16059 cygwin* | mingw* | pw32*)
16060 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16061 # When not using gcc, we currently assume that we are using
16062 # Microsoft Visual C++.
16063 if test "$GCC" != yes; then
16064 with_gnu_ld=no
16065 fi
16066 ;;
16067 interix*)
16068 # we just hope/assume this is gcc and not c89 (= MSVC++)
16069 with_gnu_ld=yes
16070 ;;
16071 openbsd*)
16072 with_gnu_ld=no
16073 ;;
16074 esac
16075
16076 ld_shlibs_GCJ=yes
16077 if test "$with_gnu_ld" = yes; then
16078 # If archive_cmds runs LD, not CC, wlarc should be empty
16079 wlarc='${wl}'
16080
16081 # Set some defaults for GNU ld with shared library support. These
16082 # are reset later if shared libraries are not supported. Putting them
16083 # here allows them to be overridden if necessary.
16084 runpath_var=LD_RUN_PATH
16085 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16086 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16087 # ancient GNU ld didn't support --whole-archive et. al.
16088 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16089 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16090 else
16091 whole_archive_flag_spec_GCJ=
16092 fi
16093 supports_anon_versioning=no
16094 case `$LD -v 2>/dev/null` in
16095 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16096 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16097 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16098 *\ 2.11.*) ;; # other 2.11 versions
16099 *) supports_anon_versioning=yes ;;
16100 esac
16101
16102 # See if GNU ld supports shared libraries.
16103 case $host_os in
16104 aix3* | aix4* | aix5*)
16105 # On AIX/PPC, the GNU linker is very broken
16106 if test "$host_cpu" != ia64; then
16107 ld_shlibs_GCJ=no
16108 cat <<EOF 1>&2
16109
16110 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16111 *** to be unable to reliably create shared libraries on AIX.
16112 *** Therefore, libtool is disabling shared libraries support. If you
16113 *** really care for shared libraries, you may want to modify your PATH
16114 *** so that a non-GNU linker is found, and then restart.
16115
16116 EOF
16117 fi
16118 ;;
16119
16120 amigaos*)
16121 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)'
16122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16123 hardcode_minus_L_GCJ=yes
16124
16125 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16126 # that the semantics of dynamic libraries on AmigaOS, at least up
16127 # to version 4, is to share data among multiple programs linked
16128 # with the same dynamic library. Since this doesn't match the
16129 # behavior of shared libraries on other platforms, we can't use
16130 # them.
16131 ld_shlibs_GCJ=no
16132 ;;
16133
16134 beos*)
16135 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16136 allow_undefined_flag_GCJ=unsupported
16137 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16138 # support --undefined. This deserves some investigation. FIXME
16139 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16140 else
16141 ld_shlibs_GCJ=no
16142 fi
16143 ;;
16144
16145 cygwin* | mingw* | pw32*)
16146 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16147 # as there is no search path for DLLs.
16148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16149 allow_undefined_flag_GCJ=unsupported
16150 always_export_symbols_GCJ=no
16151 enable_shared_with_static_runtimes_GCJ=yes
16152 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16153
16154 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16155 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16156 # If the export-symbols file already is a .def file (1st line
16157 # is EXPORTS), use it as is; otherwise, prepend...
16158 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16159 cp $export_symbols $output_objdir/$soname.def;
16160 else
16161 echo EXPORTS > $output_objdir/$soname.def;
16162 cat $export_symbols >> $output_objdir/$soname.def;
16163 fi~
16164 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16165 else
16166 ld_shlibs_GCJ=no
16167 fi
16168 ;;
16169
16170 interix3*)
16171 hardcode_direct_GCJ=no
16172 hardcode_shlibpath_var_GCJ=no
16173 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16174 export_dynamic_flag_spec_GCJ='${wl}-E'
16175 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16176 # Instead, shared libraries are loaded at an image base (0x10000000 by
16177 # default) and relocated if they conflict, which is a slow very memory
16178 # consuming and fragmenting process. To avoid this, we pick a random,
16179 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16180 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16181 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16182 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16183 ;;
16184
16185 linux*)
16186 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16187 tmp_addflag=
16188 case $cc_basename,$host_cpu in
16189 pgcc*) # Portland Group C compiler
16190 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'
16191 tmp_addflag=' $pic_flag'
16192 ;;
16193 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16194 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'
16195 tmp_addflag=' $pic_flag -Mnomain' ;;
16196 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16197 tmp_addflag=' -i_dynamic' ;;
16198 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16199 tmp_addflag=' -i_dynamic -nofor_main' ;;
16200 ifc* | ifort*) # Intel Fortran compiler
16201 tmp_addflag=' -nofor_main' ;;
16202 esac
16203 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16204
16205 if test $supports_anon_versioning = yes; then
16206 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16207 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16208 $echo "local: *; };" >> $output_objdir/$libname.ver~
16209 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16210 fi
16211 else
16212 ld_shlibs_GCJ=no
16213 fi
16214 ;;
16215
16216 netbsd*)
16217 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16218 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16219 wlarc=
16220 else
16221 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16222 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16223 fi
16224 ;;
16225
16226 solaris*)
16227 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16228 ld_shlibs_GCJ=no
16229 cat <<EOF 1>&2
16230
16231 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16232 *** create shared libraries on Solaris systems. Therefore, libtool
16233 *** is disabling shared libraries support. We urge you to upgrade GNU
16234 *** binutils to release 2.9.1 or newer. Another option is to modify
16235 *** your PATH or compiler configuration so that the native linker is
16236 *** used, and then restart.
16237
16238 EOF
16239 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16240 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16241 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16242 else
16243 ld_shlibs_GCJ=no
16244 fi
16245 ;;
16246
16247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16248 case `$LD -v 2>&1` in
16249 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16250 ld_shlibs_GCJ=no
16251 cat <<_LT_EOF 1>&2
16252
16253 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16254 *** reliably create shared libraries on SCO systems. Therefore, libtool
16255 *** is disabling shared libraries support. We urge you to upgrade GNU
16256 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16257 *** your PATH or compiler configuration so that the native linker is
16258 *** used, and then restart.
16259
16260 _LT_EOF
16261 ;;
16262 *)
16263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16264 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16265 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16266 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16267 else
16268 ld_shlibs_GCJ=no
16269 fi
16270 ;;
16271 esac
16272 ;;
16273
16274 sunos4*)
16275 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16276 wlarc=
16277 hardcode_direct_GCJ=yes
16278 hardcode_shlibpath_var_GCJ=no
16279 ;;
16280
16281 *)
16282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16283 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16284 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16285 else
16286 ld_shlibs_GCJ=no
16287 fi
16288 ;;
16289 esac
16290
16291 if test "$ld_shlibs_GCJ" = no; then
16292 runpath_var=
16293 hardcode_libdir_flag_spec_GCJ=
16294 export_dynamic_flag_spec_GCJ=
16295 whole_archive_flag_spec_GCJ=
16296 fi
16297 else
16298 # PORTME fill in a description of your system's linker (not GNU ld)
16299 case $host_os in
16300 aix3*)
16301 allow_undefined_flag_GCJ=unsupported
16302 always_export_symbols_GCJ=yes
16303 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'
16304 # Note: this linker hardcodes the directories in LIBPATH if there
16305 # are no directories specified by -L.
16306 hardcode_minus_L_GCJ=yes
16307 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16308 # Neither direct hardcoding nor static linking is supported with a
16309 # broken collect2.
16310 hardcode_direct_GCJ=unsupported
16311 fi
16312 ;;
16313
16314 aix4* | aix5*)
16315 if test "$host_cpu" = ia64; then
16316 # On IA64, the linker does run time linking by default, so we don't
16317 # have to do anything special.
16318 aix_use_runtimelinking=no
16319 exp_sym_flag='-Bexport'
16320 no_entry_flag=""
16321 else
16322 # If we're using GNU nm, then we don't want the "-C" option.
16323 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16324 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16325 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'
16326 else
16327 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'
16328 fi
16329 aix_use_runtimelinking=no
16330
16331 # Test if we are trying to use run time linking or normal
16332 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16333 # need to do runtime linking.
16334 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16335 for ld_flag in $LDFLAGS; do
16336 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16337 aix_use_runtimelinking=yes
16338 break
16339 fi
16340 done
16341 ;;
16342 esac
16343
16344 exp_sym_flag='-bexport'
16345 no_entry_flag='-bnoentry'
16346 fi
16347
16348 # When large executables or shared objects are built, AIX ld can
16349 # have problems creating the table of contents. If linking a library
16350 # or program results in "error TOC overflow" add -mminimal-toc to
16351 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16352 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16353
16354 archive_cmds_GCJ=''
16355 hardcode_direct_GCJ=yes
16356 hardcode_libdir_separator_GCJ=':'
16357 link_all_deplibs_GCJ=yes
16358
16359 if test "$GCC" = yes; then
16360 case $host_os in aix4.[012]|aix4.[012].*)
16361 # We only want to do this on AIX 4.2 and lower, the check
16362 # below for broken collect2 doesn't work under 4.3+
16363 collect2name=`${CC} -print-prog-name=collect2`
16364 if test -f "$collect2name" && \
16365 strings "$collect2name" | grep resolve_lib_name >/dev/null
16366 then
16367 # We have reworked collect2
16368 hardcode_direct_GCJ=yes
16369 else
16370 # We have old collect2
16371 hardcode_direct_GCJ=unsupported
16372 # It fails to find uninstalled libraries when the uninstalled
16373 # path is not listed in the libpath. Setting hardcode_minus_L
16374 # to unsupported forces relinking
16375 hardcode_minus_L_GCJ=yes
16376 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16377 hardcode_libdir_separator_GCJ=
16378 fi
16379 ;;
16380 esac
16381 shared_flag='-shared'
16382 if test "$aix_use_runtimelinking" = yes; then
16383 shared_flag="$shared_flag "'${wl}-G'
16384 fi
16385 else
16386 # not using gcc
16387 if test "$host_cpu" = ia64; then
16388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16389 # chokes on -Wl,-G. The following line is correct:
16390 shared_flag='-G'
16391 else
16392 if test "$aix_use_runtimelinking" = yes; then
16393 shared_flag='${wl}-G'
16394 else
16395 shared_flag='${wl}-bM:SRE'
16396 fi
16397 fi
16398 fi
16399
16400 # It seems that -bexpall does not export symbols beginning with
16401 # underscore (_), so it is better to generate a list of symbols to export.
16402 always_export_symbols_GCJ=yes
16403 if test "$aix_use_runtimelinking" = yes; then
16404 # Warning - without using the other runtime loading flags (-brtl),
16405 # -berok will link without error, but may produce a broken library.
16406 allow_undefined_flag_GCJ='-berok'
16407 # Determine the default libpath from the value encoded in an empty executable.
16408 cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h. */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16414
16415 int
16416 main ()
16417 {
16418
16419 ;
16420 return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16425 (eval $ac_link) 2>conftest.er1
16426 ac_status=$?
16427 grep -v '^ *+' conftest.er1 >conftest.err
16428 rm -f conftest.er1
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } &&
16432 { ac_try='test -z "$ac_c_werror_flag"
16433 || test ! -s conftest.err'
16434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435 (eval $ac_try) 2>&5
16436 ac_status=$?
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); }; } &&
16439 { ac_try='test -s conftest$ac_exeext'
16440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16441 (eval $ac_try) 2>&5
16442 ac_status=$?
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); }; }; then
16445
16446 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16447 }'`
16448 # Check for a 64-bit object if we didn't find anything.
16449 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; }
16450 }'`; fi
16451 else
16452 echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16454
16455 fi
16456 rm -f conftest.err conftest.$ac_objext \
16457 conftest$ac_exeext conftest.$ac_ext
16458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16459
16460 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16461 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16462 else
16463 if test "$host_cpu" = ia64; then
16464 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16465 allow_undefined_flag_GCJ="-z nodefs"
16466 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16467 else
16468 # Determine the default libpath from the value encoded in an empty executable.
16469 cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h. */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h. */
16475
16476 int
16477 main ()
16478 {
16479
16480 ;
16481 return 0;
16482 }
16483 _ACEOF
16484 rm -f conftest.$ac_objext conftest$ac_exeext
16485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16486 (eval $ac_link) 2>conftest.er1
16487 ac_status=$?
16488 grep -v '^ *+' conftest.er1 >conftest.err
16489 rm -f conftest.er1
16490 cat conftest.err >&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } &&
16493 { ac_try='test -z "$ac_c_werror_flag"
16494 || test ! -s conftest.err'
16495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; } &&
16500 { ac_try='test -s conftest$ac_exeext'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506
16507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16508 }'`
16509 # Check for a 64-bit object if we didn't find anything.
16510 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; }
16511 }'`; fi
16512 else
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16515
16516 fi
16517 rm -f conftest.err conftest.$ac_objext \
16518 conftest$ac_exeext conftest.$ac_ext
16519 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16520
16521 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16522 # Warning - without using the other run time loading flags,
16523 # -berok will link without error, but may produce a broken library.
16524 no_undefined_flag_GCJ=' ${wl}-bernotok'
16525 allow_undefined_flag_GCJ=' ${wl}-berok'
16526 # Exported symbols can be pulled into shared objects from archives
16527 whole_archive_flag_spec_GCJ='$convenience'
16528 archive_cmds_need_lc_GCJ=yes
16529 # This is similar to how AIX traditionally builds its shared libraries.
16530 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16531 fi
16532 fi
16533 ;;
16534
16535 amigaos*)
16536 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)'
16537 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16538 hardcode_minus_L_GCJ=yes
16539 # see comment about different semantics on the GNU ld section
16540 ld_shlibs_GCJ=no
16541 ;;
16542
16543 bsdi[45]*)
16544 export_dynamic_flag_spec_GCJ=-rdynamic
16545 ;;
16546
16547 cygwin* | mingw* | pw32*)
16548 # When not using gcc, we currently assume that we are using
16549 # Microsoft Visual C++.
16550 # hardcode_libdir_flag_spec is actually meaningless, as there is
16551 # no search path for DLLs.
16552 hardcode_libdir_flag_spec_GCJ=' '
16553 allow_undefined_flag_GCJ=unsupported
16554 # Tell ltmain to make .lib files, not .a files.
16555 libext=lib
16556 # Tell ltmain to make .dll files, not .so files.
16557 shrext_cmds=".dll"
16558 # FIXME: Setting linknames here is a bad hack.
16559 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16560 # The linker will automatically build a .lib file if we build a DLL.
16561 old_archive_From_new_cmds_GCJ='true'
16562 # FIXME: Should let the user specify the lib program.
16563 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16564 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16565 enable_shared_with_static_runtimes_GCJ=yes
16566 ;;
16567
16568 darwin* | rhapsody*)
16569 case $host_os in
16570 rhapsody* | darwin1.[012])
16571 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16572 ;;
16573 *) # Darwin 1.3 on
16574 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16575 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16576 else
16577 case ${MACOSX_DEPLOYMENT_TARGET} in
16578 10.[012])
16579 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16580 ;;
16581 10.*)
16582 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16583 ;;
16584 esac
16585 fi
16586 ;;
16587 esac
16588 archive_cmds_need_lc_GCJ=no
16589 hardcode_direct_GCJ=no
16590 hardcode_automatic_GCJ=yes
16591 hardcode_shlibpath_var_GCJ=unsupported
16592 whole_archive_flag_spec_GCJ=''
16593 link_all_deplibs_GCJ=yes
16594 if test "$GCC" = yes ; then
16595 output_verbose_link_cmd='echo'
16596 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16597 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16599 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}'
16600 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}'
16601 else
16602 case $cc_basename in
16603 xlc*)
16604 output_verbose_link_cmd='echo'
16605 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16606 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16607 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16608 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}'
16609 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}'
16610 ;;
16611 *)
16612 ld_shlibs_GCJ=no
16613 ;;
16614 esac
16615 fi
16616 ;;
16617
16618 dgux*)
16619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16621 hardcode_shlibpath_var_GCJ=no
16622 ;;
16623
16624 freebsd1*)
16625 ld_shlibs_GCJ=no
16626 ;;
16627
16628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16629 # support. Future versions do this automatically, but an explicit c++rt0.o
16630 # does not break anything, and helps significantly (at the cost of a little
16631 # extra space).
16632 freebsd2.2*)
16633 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16634 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16635 hardcode_direct_GCJ=yes
16636 hardcode_shlibpath_var_GCJ=no
16637 ;;
16638
16639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16640 freebsd2*)
16641 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16642 hardcode_direct_GCJ=yes
16643 hardcode_minus_L_GCJ=yes
16644 hardcode_shlibpath_var_GCJ=no
16645 ;;
16646
16647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16648 freebsd* | kfreebsd*-gnu | dragonfly*)
16649 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16650 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16651 hardcode_direct_GCJ=yes
16652 hardcode_shlibpath_var_GCJ=no
16653 ;;
16654
16655 hpux9*)
16656 if test "$GCC" = yes; then
16657 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'
16658 else
16659 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'
16660 fi
16661 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16662 hardcode_libdir_separator_GCJ=:
16663 hardcode_direct_GCJ=yes
16664
16665 # hardcode_minus_L: Not really in the search PATH,
16666 # but as the default location of the library.
16667 hardcode_minus_L_GCJ=yes
16668 export_dynamic_flag_spec_GCJ='${wl}-E'
16669 ;;
16670
16671 hpux10*)
16672 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16673 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16674 else
16675 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16676 fi
16677 if test "$with_gnu_ld" = no; then
16678 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16679 hardcode_libdir_separator_GCJ=:
16680
16681 hardcode_direct_GCJ=yes
16682 export_dynamic_flag_spec_GCJ='${wl}-E'
16683
16684 # hardcode_minus_L: Not really in the search PATH,
16685 # but as the default location of the library.
16686 hardcode_minus_L_GCJ=yes
16687 fi
16688 ;;
16689
16690 hpux11*)
16691 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16692 case $host_cpu in
16693 hppa*64*)
16694 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16695 ;;
16696 ia64*)
16697 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16698 ;;
16699 *)
16700 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16701 ;;
16702 esac
16703 else
16704 case $host_cpu in
16705 hppa*64*)
16706 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16707 ;;
16708 ia64*)
16709 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16710 ;;
16711 *)
16712 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16713 ;;
16714 esac
16715 fi
16716 if test "$with_gnu_ld" = no; then
16717 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16718 hardcode_libdir_separator_GCJ=:
16719
16720 case $host_cpu in
16721 hppa*64*|ia64*)
16722 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16723 hardcode_direct_GCJ=no
16724 hardcode_shlibpath_var_GCJ=no
16725 ;;
16726 *)
16727 hardcode_direct_GCJ=yes
16728 export_dynamic_flag_spec_GCJ='${wl}-E'
16729
16730 # hardcode_minus_L: Not really in the search PATH,
16731 # but as the default location of the library.
16732 hardcode_minus_L_GCJ=yes
16733 ;;
16734 esac
16735 fi
16736 ;;
16737
16738 irix5* | irix6* | nonstopux*)
16739 if test "$GCC" = yes; then
16740 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'
16741 else
16742 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'
16743 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16744 fi
16745 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16746 hardcode_libdir_separator_GCJ=:
16747 link_all_deplibs_GCJ=yes
16748 ;;
16749
16750 netbsd*)
16751 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16752 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16753 else
16754 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16755 fi
16756 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16757 hardcode_direct_GCJ=yes
16758 hardcode_shlibpath_var_GCJ=no
16759 ;;
16760
16761 newsos6)
16762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16763 hardcode_direct_GCJ=yes
16764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16765 hardcode_libdir_separator_GCJ=:
16766 hardcode_shlibpath_var_GCJ=no
16767 ;;
16768
16769 openbsd*)
16770 hardcode_direct_GCJ=yes
16771 hardcode_shlibpath_var_GCJ=no
16772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16773 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16774 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16775 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16776 export_dynamic_flag_spec_GCJ='${wl}-E'
16777 else
16778 case $host_os in
16779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16780 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16781 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16782 ;;
16783 *)
16784 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16785 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16786 ;;
16787 esac
16788 fi
16789 ;;
16790
16791 os2*)
16792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16793 hardcode_minus_L_GCJ=yes
16794 allow_undefined_flag_GCJ=unsupported
16795 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'
16796 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16797 ;;
16798
16799 osf3*)
16800 if test "$GCC" = yes; then
16801 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16802 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'
16803 else
16804 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16805 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'
16806 fi
16807 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16808 hardcode_libdir_separator_GCJ=:
16809 ;;
16810
16811 osf4* | osf5*) # as osf3* with the addition of -msym flag
16812 if test "$GCC" = yes; then
16813 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16814 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'
16815 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16816 else
16817 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16818 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'
16819 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~
16820 $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'
16821
16822 # Both c and cxx compiler support -rpath directly
16823 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16824 fi
16825 hardcode_libdir_separator_GCJ=:
16826 ;;
16827
16828 solaris*)
16829 no_undefined_flag_GCJ=' -z text'
16830 if test "$GCC" = yes; then
16831 wlarc='${wl}'
16832 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16833 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16834 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16835 else
16836 wlarc=''
16837 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16838 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16839 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16840 fi
16841 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16842 hardcode_shlibpath_var_GCJ=no
16843 case $host_os in
16844 solaris2.[0-5] | solaris2.[0-5].*) ;;
16845 *)
16846 # The compiler driver will combine linker options so we
16847 # cannot just pass the convience library names through
16848 # without $wl, iff we do not link with $LD.
16849 # Luckily, gcc supports the same syntax we need for Sun Studio.
16850 # Supported since Solaris 2.6 (maybe 2.5.1?)
16851 case $wlarc in
16852 '')
16853 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16854 *)
16855 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' ;;
16856 esac ;;
16857 esac
16858 link_all_deplibs_GCJ=yes
16859 ;;
16860
16861 sunos4*)
16862 if test "x$host_vendor" = xsequent; then
16863 # Use $CC to link under sequent, because it throws in some extra .o
16864 # files that make .init and .fini sections work.
16865 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16866 else
16867 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16868 fi
16869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16870 hardcode_direct_GCJ=yes
16871 hardcode_minus_L_GCJ=yes
16872 hardcode_shlibpath_var_GCJ=no
16873 ;;
16874
16875 sysv4)
16876 case $host_vendor in
16877 sni)
16878 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16879 hardcode_direct_GCJ=yes # is this really true???
16880 ;;
16881 siemens)
16882 ## LD is ld it makes a PLAMLIB
16883 ## CC just makes a GrossModule.
16884 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16885 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16886 hardcode_direct_GCJ=no
16887 ;;
16888 motorola)
16889 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16890 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16891 ;;
16892 esac
16893 runpath_var='LD_RUN_PATH'
16894 hardcode_shlibpath_var_GCJ=no
16895 ;;
16896
16897 sysv4.3*)
16898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16899 hardcode_shlibpath_var_GCJ=no
16900 export_dynamic_flag_spec_GCJ='-Bexport'
16901 ;;
16902
16903 sysv4*MP*)
16904 if test -d /usr/nec; then
16905 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16906 hardcode_shlibpath_var_GCJ=no
16907 runpath_var=LD_RUN_PATH
16908 hardcode_runpath_var=yes
16909 ld_shlibs_GCJ=yes
16910 fi
16911 ;;
16912
16913 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16914 no_undefined_flag_GCJ='${wl}-z,text'
16915 archive_cmds_need_lc_GCJ=no
16916 hardcode_shlibpath_var_GCJ=no
16917 runpath_var='LD_RUN_PATH'
16918
16919 if test "$GCC" = yes; then
16920 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16921 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16922 else
16923 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16924 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16925 fi
16926 ;;
16927
16928 sysv5* | sco3.2v5* | sco5v6*)
16929 # Note: We can NOT use -z defs as we might desire, because we do not
16930 # link with -lc, and that would cause any symbols used from libc to
16931 # always be unresolved, which means just about no library would
16932 # ever link correctly. If we're not using GNU ld we use -z text
16933 # though, which does catch some bad symbols but isn't as heavy-handed
16934 # as -z defs.
16935 no_undefined_flag_GCJ='${wl}-z,text'
16936 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16937 archive_cmds_need_lc_GCJ=no
16938 hardcode_shlibpath_var_GCJ=no
16939 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16940 hardcode_libdir_separator_GCJ=':'
16941 link_all_deplibs_GCJ=yes
16942 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16943 runpath_var='LD_RUN_PATH'
16944
16945 if test "$GCC" = yes; then
16946 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16947 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16948 else
16949 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16950 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16951 fi
16952 ;;
16953
16954 uts4*)
16955 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16956 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16957 hardcode_shlibpath_var_GCJ=no
16958 ;;
16959
16960 *)
16961 ld_shlibs_GCJ=no
16962 ;;
16963 esac
16964 fi
16965
16966 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16967 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16968 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16969
16970 #
16971 # Do we need to explicitly link libc?
16972 #
16973 case "x$archive_cmds_need_lc_GCJ" in
16974 x|xyes)
16975 # Assume -lc should be added
16976 archive_cmds_need_lc_GCJ=yes
16977
16978 if test "$enable_shared" = yes && test "$GCC" = yes; then
16979 case $archive_cmds_GCJ in
16980 *'~'*)
16981 # FIXME: we may have to deal with multi-command sequences.
16982 ;;
16983 '$CC '*)
16984 # Test whether the compiler implicitly links with -lc since on some
16985 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16986 # to ld, don't add -lc before -lgcc.
16987 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16988 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16989 $rm conftest*
16990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16991
16992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16993 (eval $ac_compile) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } 2>conftest.err; then
16997 soname=conftest
16998 lib=conftest
16999 libobjs=conftest.$ac_objext
17000 deplibs=
17001 wl=$lt_prog_compiler_wl_GCJ
17002 pic_flag=$lt_prog_compiler_pic_GCJ
17003 compiler_flags=-v
17004 linker_flags=-v
17005 verstring=
17006 output_objdir=.
17007 libname=conftest
17008 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17009 allow_undefined_flag_GCJ=
17010 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17011 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17012 ac_status=$?
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }
17015 then
17016 archive_cmds_need_lc_GCJ=no
17017 else
17018 archive_cmds_need_lc_GCJ=yes
17019 fi
17020 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17021 else
17022 cat conftest.err 1>&5
17023 fi
17024 $rm conftest*
17025 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17026 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17027 ;;
17028 esac
17029 fi
17030 ;;
17031 esac
17032
17033 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17034 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17035 library_names_spec=
17036 libname_spec='lib$name'
17037 soname_spec=
17038 shrext_cmds=".so"
17039 postinstall_cmds=
17040 postuninstall_cmds=
17041 finish_cmds=
17042 finish_eval=
17043 shlibpath_var=
17044 shlibpath_overrides_runpath=unknown
17045 version_type=none
17046 dynamic_linker="$host_os ld.so"
17047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17048 if test "$GCC" = yes; then
17049 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17050 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17051 # if the path contains ";" then we assume it to be the separator
17052 # otherwise default to the standard path separator (i.e. ":") - it is
17053 # assumed that no part of a normal pathname contains ";" but that should
17054 # okay in the real world where ";" in dirpaths is itself problematic.
17055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17056 else
17057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17058 fi
17059 else
17060 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17061 fi
17062 need_lib_prefix=unknown
17063 hardcode_into_libs=no
17064
17065 # when you set need_version to no, make sure it does not cause -set_version
17066 # flags to be left without arguments
17067 need_version=unknown
17068
17069 case $host_os in
17070 aix3*)
17071 version_type=linux
17072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17073 shlibpath_var=LIBPATH
17074
17075 # AIX 3 has no versioning support, so we append a major version to the name.
17076 soname_spec='${libname}${release}${shared_ext}$major'
17077 ;;
17078
17079 aix4* | aix5*)
17080 version_type=linux
17081 need_lib_prefix=no
17082 need_version=no
17083 hardcode_into_libs=yes
17084 if test "$host_cpu" = ia64; then
17085 # AIX 5 supports IA64
17086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17087 shlibpath_var=LD_LIBRARY_PATH
17088 else
17089 # With GCC up to 2.95.x, collect2 would create an import file
17090 # for dependence libraries. The import file would start with
17091 # the line `#! .'. This would cause the generated library to
17092 # depend on `.', always an invalid library. This was fixed in
17093 # development snapshots of GCC prior to 3.0.
17094 case $host_os in
17095 aix4 | aix4.[01] | aix4.[01].*)
17096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17097 echo ' yes '
17098 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17099 :
17100 else
17101 can_build_shared=no
17102 fi
17103 ;;
17104 esac
17105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17106 # soname into executable. Probably we can add versioning support to
17107 # collect2, so additional links can be useful in future.
17108 if test "$aix_use_runtimelinking" = yes; then
17109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17110 # instead of lib<name>.a to let people know that these are not
17111 # typical AIX shared libraries.
17112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17113 else
17114 # We preserve .a as extension for shared libraries through AIX4.2
17115 # and later when we are not doing run time linking.
17116 library_names_spec='${libname}${release}.a $libname.a'
17117 soname_spec='${libname}${release}${shared_ext}$major'
17118 fi
17119 shlibpath_var=LIBPATH
17120 fi
17121 ;;
17122
17123 amigaos*)
17124 library_names_spec='$libname.ixlibrary $libname.a'
17125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17126 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'
17127 ;;
17128
17129 beos*)
17130 library_names_spec='${libname}${shared_ext}'
17131 dynamic_linker="$host_os ld.so"
17132 shlibpath_var=LIBRARY_PATH
17133 ;;
17134
17135 bsdi[45]*)
17136 version_type=linux
17137 need_version=no
17138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17139 soname_spec='${libname}${release}${shared_ext}$major'
17140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17141 shlibpath_var=LD_LIBRARY_PATH
17142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17144 # the default ld.so.conf also contains /usr/contrib/lib and
17145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17146 # libtool to hard-code these into programs
17147 ;;
17148
17149 cygwin* | mingw* | pw32*)
17150 version_type=windows
17151 shrext_cmds=".dll"
17152 need_version=no
17153 need_lib_prefix=no
17154
17155 case $GCC,$host_os in
17156 yes,cygwin* | yes,mingw* | yes,pw32*)
17157 library_names_spec='$libname.dll.a'
17158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17159 postinstall_cmds='base_file=`basename \${file}`~
17160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17161 dldir=$destdir/`dirname \$dlpath`~
17162 test -d \$dldir || mkdir -p \$dldir~
17163 $install_prog $dir/$dlname \$dldir/$dlname~
17164 chmod a+x \$dldir/$dlname'
17165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17166 dlpath=$dir/\$dldll~
17167 $rm \$dlpath'
17168 shlibpath_overrides_runpath=yes
17169
17170 case $host_os in
17171 cygwin*)
17172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17175 ;;
17176 mingw*)
17177 # MinGW DLLs use traditional 'lib' prefix
17178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17181 # It is most probably a Windows format PATH printed by
17182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17183 # path with ; separators, and with drive letters. We can handle the
17184 # drive letters (cygwin fileutils understands them), so leave them,
17185 # especially as we might pass files found there to a mingw objdump,
17186 # which wouldn't understand a cygwinified path. Ahh.
17187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17188 else
17189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17190 fi
17191 ;;
17192 pw32*)
17193 # pw32 DLLs use 'pw' prefix rather than 'lib'
17194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17195 ;;
17196 esac
17197 ;;
17198
17199 *)
17200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17201 ;;
17202 esac
17203 dynamic_linker='Win32 ld.exe'
17204 # FIXME: first we should search . and the directory the executable is in
17205 shlibpath_var=PATH
17206 ;;
17207
17208 darwin* | rhapsody*)
17209 dynamic_linker="$host_os dyld"
17210 version_type=darwin
17211 need_lib_prefix=no
17212 need_version=no
17213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17214 soname_spec='${libname}${release}${major}$shared_ext'
17215 shlibpath_overrides_runpath=yes
17216 shlibpath_var=DYLD_LIBRARY_PATH
17217 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17218 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17219 if test "$GCC" = yes; then
17220 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"`
17221 else
17222 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17223 fi
17224 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17225 ;;
17226
17227 dgux*)
17228 version_type=linux
17229 need_lib_prefix=no
17230 need_version=no
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 shlibpath_var=LD_LIBRARY_PATH
17234 ;;
17235
17236 freebsd1*)
17237 dynamic_linker=no
17238 ;;
17239
17240 kfreebsd*-gnu)
17241 version_type=linux
17242 need_lib_prefix=no
17243 need_version=no
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17245 soname_spec='${libname}${release}${shared_ext}$major'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=no
17248 hardcode_into_libs=yes
17249 dynamic_linker='GNU ld.so'
17250 ;;
17251
17252 freebsd* | dragonfly*)
17253 # DragonFly does not have aout. When/if they implement a new
17254 # versioning mechanism, adjust this.
17255 if test -x /usr/bin/objformat; then
17256 objformat=`/usr/bin/objformat`
17257 else
17258 case $host_os in
17259 freebsd[123]*) objformat=aout ;;
17260 *) objformat=elf ;;
17261 esac
17262 fi
17263 version_type=freebsd-$objformat
17264 case $version_type in
17265 freebsd-elf*)
17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17267 need_version=no
17268 need_lib_prefix=no
17269 ;;
17270 freebsd-*)
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17272 need_version=yes
17273 ;;
17274 esac
17275 shlibpath_var=LD_LIBRARY_PATH
17276 case $host_os in
17277 freebsd2*)
17278 shlibpath_overrides_runpath=yes
17279 ;;
17280 freebsd3.[01]* | freebsdelf3.[01]*)
17281 shlibpath_overrides_runpath=yes
17282 hardcode_into_libs=yes
17283 ;;
17284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17286 shlibpath_overrides_runpath=no
17287 hardcode_into_libs=yes
17288 ;;
17289 freebsd*) # from 4.6 on
17290 shlibpath_overrides_runpath=yes
17291 hardcode_into_libs=yes
17292 ;;
17293 esac
17294 ;;
17295
17296 gnu*)
17297 version_type=linux
17298 need_lib_prefix=no
17299 need_version=no
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 hardcode_into_libs=yes
17304 ;;
17305
17306 hpux9* | hpux10* | hpux11*)
17307 # Give a soname corresponding to the major version so that dld.sl refuses to
17308 # link against other versions.
17309 version_type=sunos
17310 need_lib_prefix=no
17311 need_version=no
17312 case $host_cpu in
17313 ia64*)
17314 shrext_cmds='.so'
17315 hardcode_into_libs=yes
17316 dynamic_linker="$host_os dld.so"
17317 shlibpath_var=LD_LIBRARY_PATH
17318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17320 soname_spec='${libname}${release}${shared_ext}$major'
17321 if test "X$HPUX_IA64_MODE" = X32; then
17322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17323 else
17324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17325 fi
17326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17327 ;;
17328 hppa*64*)
17329 shrext_cmds='.sl'
17330 hardcode_into_libs=yes
17331 dynamic_linker="$host_os dld.sl"
17332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17338 ;;
17339 *)
17340 shrext_cmds='.sl'
17341 dynamic_linker="$host_os dld.sl"
17342 shlibpath_var=SHLIB_PATH
17343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17345 soname_spec='${libname}${release}${shared_ext}$major'
17346 ;;
17347 esac
17348 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17349 postinstall_cmds='chmod 555 $lib'
17350 ;;
17351
17352 interix3*)
17353 version_type=linux
17354 need_lib_prefix=no
17355 need_version=no
17356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 shlibpath_overrides_runpath=no
17361 hardcode_into_libs=yes
17362 ;;
17363
17364 irix5* | irix6* | nonstopux*)
17365 case $host_os in
17366 nonstopux*) version_type=nonstopux ;;
17367 *)
17368 if test "$lt_cv_prog_gnu_ld" = yes; then
17369 version_type=linux
17370 else
17371 version_type=irix
17372 fi ;;
17373 esac
17374 need_lib_prefix=no
17375 need_version=no
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17378 case $host_os in
17379 irix5* | nonstopux*)
17380 libsuff= shlibsuff=
17381 ;;
17382 *)
17383 case $LD in # libtool.m4 will add one of these switches to LD
17384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17385 libsuff= shlibsuff= libmagic=32-bit;;
17386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17387 libsuff=32 shlibsuff=N32 libmagic=N32;;
17388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17390 *) libsuff= shlibsuff= libmagic=never-match;;
17391 esac
17392 ;;
17393 esac
17394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17395 shlibpath_overrides_runpath=no
17396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17398 hardcode_into_libs=yes
17399 ;;
17400
17401 # No shared lib support for Linux oldld, aout, or coff.
17402 linux*oldld* | linux*aout* | linux*coff*)
17403 dynamic_linker=no
17404 ;;
17405
17406 # This must be Linux ELF.
17407 linux*)
17408 version_type=linux
17409 need_lib_prefix=no
17410 need_version=no
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412 soname_spec='${libname}${release}${shared_ext}$major'
17413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 shlibpath_overrides_runpath=no
17416 # This implies no fast_install, which is unacceptable.
17417 # Some rework will be needed to allow for fast_install
17418 # before this can be enabled.
17419 hardcode_into_libs=yes
17420
17421 # find out which ABI we are using
17422 libsuff=
17423 case "$host_cpu" in
17424 x86_64*|s390x*|powerpc64*)
17425 echo '#line 17425 "configure"' > conftest.$ac_ext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427 (eval $ac_compile) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; then
17431 case `/usr/bin/file conftest.$ac_objext` in
17432 *64-bit*)
17433 libsuff=64
17434 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17435 ;;
17436 esac
17437 fi
17438 rm -rf conftest*
17439 ;;
17440 esac
17441
17442 # Append ld.so.conf contents to the search path
17443 if test -f /etc/ld.so.conf; then
17444 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' ' '`
17445 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17446 fi
17447
17448 # We used to test for /lib/ld.so.1 and disable shared libraries on
17449 # powerpc, because MkLinux only supported shared libraries with the
17450 # GNU dynamic linker. Since this was broken with cross compilers,
17451 # most powerpc-linux boxes support dynamic linking these days and
17452 # people can always --disable-shared, the test was removed, and we
17453 # assume the GNU/Linux dynamic linker is in use.
17454 dynamic_linker='GNU/Linux ld.so'
17455 ;;
17456
17457 knetbsd*-gnu)
17458 version_type=linux
17459 need_lib_prefix=no
17460 need_version=no
17461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17462 soname_spec='${libname}${release}${shared_ext}$major'
17463 shlibpath_var=LD_LIBRARY_PATH
17464 shlibpath_overrides_runpath=no
17465 hardcode_into_libs=yes
17466 dynamic_linker='GNU ld.so'
17467 ;;
17468
17469 netbsd*)
17470 version_type=sunos
17471 need_lib_prefix=no
17472 need_version=no
17473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17476 dynamic_linker='NetBSD (a.out) ld.so'
17477 else
17478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17479 soname_spec='${libname}${release}${shared_ext}$major'
17480 dynamic_linker='NetBSD ld.elf_so'
17481 fi
17482 shlibpath_var=LD_LIBRARY_PATH
17483 shlibpath_overrides_runpath=yes
17484 hardcode_into_libs=yes
17485 ;;
17486
17487 newsos6)
17488 version_type=linux
17489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17490 shlibpath_var=LD_LIBRARY_PATH
17491 shlibpath_overrides_runpath=yes
17492 ;;
17493
17494 nto-qnx*)
17495 version_type=linux
17496 need_lib_prefix=no
17497 need_version=no
17498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17499 soname_spec='${libname}${release}${shared_ext}$major'
17500 shlibpath_var=LD_LIBRARY_PATH
17501 shlibpath_overrides_runpath=yes
17502 ;;
17503
17504 openbsd*)
17505 version_type=sunos
17506 sys_lib_dlsearch_path_spec="/usr/lib"
17507 need_lib_prefix=no
17508 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17509 case $host_os in
17510 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17511 *) need_version=no ;;
17512 esac
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17517 case $host_os in
17518 openbsd2.[89] | openbsd2.[89].*)
17519 shlibpath_overrides_runpath=no
17520 ;;
17521 *)
17522 shlibpath_overrides_runpath=yes
17523 ;;
17524 esac
17525 else
17526 shlibpath_overrides_runpath=yes
17527 fi
17528 ;;
17529
17530 os2*)
17531 libname_spec='$name'
17532 shrext_cmds=".dll"
17533 need_lib_prefix=no
17534 library_names_spec='$libname${shared_ext} $libname.a'
17535 dynamic_linker='OS/2 ld.exe'
17536 shlibpath_var=LIBPATH
17537 ;;
17538
17539 osf3* | osf4* | osf5*)
17540 version_type=osf
17541 need_lib_prefix=no
17542 need_version=no
17543 soname_spec='${libname}${release}${shared_ext}$major'
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17545 shlibpath_var=LD_LIBRARY_PATH
17546 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17547 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17548 ;;
17549
17550 solaris*)
17551 version_type=linux
17552 need_lib_prefix=no
17553 need_version=no
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17555 soname_spec='${libname}${release}${shared_ext}$major'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 shlibpath_overrides_runpath=yes
17558 hardcode_into_libs=yes
17559 # ldd complains unless libraries are executable
17560 postinstall_cmds='chmod +x $lib'
17561 ;;
17562
17563 sunos4*)
17564 version_type=sunos
17565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17566 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17567 shlibpath_var=LD_LIBRARY_PATH
17568 shlibpath_overrides_runpath=yes
17569 if test "$with_gnu_ld" = yes; then
17570 need_lib_prefix=no
17571 fi
17572 need_version=yes
17573 ;;
17574
17575 sysv4 | sysv4.3*)
17576 version_type=linux
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 case $host_vendor in
17581 sni)
17582 shlibpath_overrides_runpath=no
17583 need_lib_prefix=no
17584 export_dynamic_flag_spec='${wl}-Blargedynsym'
17585 runpath_var=LD_RUN_PATH
17586 ;;
17587 siemens)
17588 need_lib_prefix=no
17589 ;;
17590 motorola)
17591 need_lib_prefix=no
17592 need_version=no
17593 shlibpath_overrides_runpath=no
17594 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17595 ;;
17596 esac
17597 ;;
17598
17599 sysv4*MP*)
17600 if test -d /usr/nec ;then
17601 version_type=linux
17602 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17603 soname_spec='$libname${shared_ext}.$major'
17604 shlibpath_var=LD_LIBRARY_PATH
17605 fi
17606 ;;
17607
17608 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17609 version_type=freebsd-elf
17610 need_lib_prefix=no
17611 need_version=no
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17613 soname_spec='${libname}${release}${shared_ext}$major'
17614 shlibpath_var=LD_LIBRARY_PATH
17615 hardcode_into_libs=yes
17616 if test "$with_gnu_ld" = yes; then
17617 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17618 shlibpath_overrides_runpath=no
17619 else
17620 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17621 shlibpath_overrides_runpath=yes
17622 case $host_os in
17623 sco3.2v5*)
17624 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17625 ;;
17626 esac
17627 fi
17628 sys_lib_dlsearch_path_spec='/usr/lib'
17629 ;;
17630
17631 uts4*)
17632 version_type=linux
17633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17634 soname_spec='${libname}${release}${shared_ext}$major'
17635 shlibpath_var=LD_LIBRARY_PATH
17636 ;;
17637
17638 *)
17639 dynamic_linker=no
17640 ;;
17641 esac
17642 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17643 echo "${ECHO_T}$dynamic_linker" >&6
17644 test "$dynamic_linker" = no && can_build_shared=no
17645
17646 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17647 if test "$GCC" = yes; then
17648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17649 fi
17650
17651 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17652 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17653 hardcode_action_GCJ=
17654 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17655 test -n "$runpath_var_GCJ" || \
17656 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17657
17658 # We can hardcode non-existant directories.
17659 if test "$hardcode_direct_GCJ" != no &&
17660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17661 # have to relink, otherwise we might link with an installed library
17662 # when we should be linking with a yet-to-be-installed one
17663 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17664 test "$hardcode_minus_L_GCJ" != no; then
17665 # Linking always hardcodes the temporary library directory.
17666 hardcode_action_GCJ=relink
17667 else
17668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17669 hardcode_action_GCJ=immediate
17670 fi
17671 else
17672 # We cannot hardcode anything, or else we can only hardcode existing
17673 # directories.
17674 hardcode_action_GCJ=unsupported
17675 fi
17676 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17677 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17678
17679 if test "$hardcode_action_GCJ" = relink; then
17680 # Fast installation is not supported
17681 enable_fast_install=no
17682 elif test "$shlibpath_overrides_runpath" = yes ||
17683 test "$enable_shared" = no; then
17684 # Fast installation is not necessary
17685 enable_fast_install=needless
17686 fi
17687
17688
17689 # The else clause should only fire when bootstrapping the
17690 # libtool distribution, otherwise you forgot to ship ltmain.sh
17691 # with your package, and you will get complaints that there are
17692 # no rules to generate ltmain.sh.
17693 if test -f "$ltmain"; then
17694 # See if we are running on zsh, and set the options which allow our commands through
17695 # without removal of \ escapes.
17696 if test -n "${ZSH_VERSION+set}" ; then
17697 setopt NO_GLOB_SUBST
17698 fi
17699 # Now quote all the things that may contain metacharacters while being
17700 # careful not to overquote the AC_SUBSTed values. We take copies of the
17701 # variables and quote the copies for generation of the libtool script.
17702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17703 SED SHELL STRIP \
17704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17706 deplibs_check_method reload_flag reload_cmds need_locks \
17707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17708 lt_cv_sys_global_symbol_to_c_name_address \
17709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17710 old_postinstall_cmds old_postuninstall_cmds \
17711 compiler_GCJ \
17712 CC_GCJ \
17713 LD_GCJ \
17714 lt_prog_compiler_wl_GCJ \
17715 lt_prog_compiler_pic_GCJ \
17716 lt_prog_compiler_static_GCJ \
17717 lt_prog_compiler_no_builtin_flag_GCJ \
17718 export_dynamic_flag_spec_GCJ \
17719 thread_safe_flag_spec_GCJ \
17720 whole_archive_flag_spec_GCJ \
17721 enable_shared_with_static_runtimes_GCJ \
17722 old_archive_cmds_GCJ \
17723 old_archive_from_new_cmds_GCJ \
17724 predep_objects_GCJ \
17725 postdep_objects_GCJ \
17726 predeps_GCJ \
17727 postdeps_GCJ \
17728 compiler_lib_search_path_GCJ \
17729 archive_cmds_GCJ \
17730 archive_expsym_cmds_GCJ \
17731 postinstall_cmds_GCJ \
17732 postuninstall_cmds_GCJ \
17733 old_archive_from_expsyms_cmds_GCJ \
17734 allow_undefined_flag_GCJ \
17735 no_undefined_flag_GCJ \
17736 export_symbols_cmds_GCJ \
17737 hardcode_libdir_flag_spec_GCJ \
17738 hardcode_libdir_flag_spec_ld_GCJ \
17739 hardcode_libdir_separator_GCJ \
17740 hardcode_automatic_GCJ \
17741 module_cmds_GCJ \
17742 module_expsym_cmds_GCJ \
17743 lt_cv_prog_compiler_c_o_GCJ \
17744 exclude_expsyms_GCJ \
17745 include_expsyms_GCJ; do
17746
17747 case $var in
17748 old_archive_cmds_GCJ | \
17749 old_archive_from_new_cmds_GCJ | \
17750 archive_cmds_GCJ | \
17751 archive_expsym_cmds_GCJ | \
17752 module_cmds_GCJ | \
17753 module_expsym_cmds_GCJ | \
17754 old_archive_from_expsyms_cmds_GCJ | \
17755 export_symbols_cmds_GCJ | \
17756 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17757 postinstall_cmds | postuninstall_cmds | \
17758 old_postinstall_cmds | old_postuninstall_cmds | \
17759 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17760 # Double-quote double-evaled strings.
17761 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17762 ;;
17763 *)
17764 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17765 ;;
17766 esac
17767 done
17768
17769 case $lt_echo in
17770 *'\$0 --fallback-echo"')
17771 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17772 ;;
17773 esac
17774
17775 cfgfile="$ofile"
17776
17777 cat <<__EOF__ >> "$cfgfile"
17778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17779
17780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17781
17782 # Shell to use when invoking shell scripts.
17783 SHELL=$lt_SHELL
17784
17785 # Whether or not to build shared libraries.
17786 build_libtool_libs=$enable_shared
17787
17788 # Whether or not to build static libraries.
17789 build_old_libs=$enable_static
17790
17791 # Whether or not to add -lc for building shared libraries.
17792 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17793
17794 # Whether or not to disallow shared libs when runtime libs are static
17795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17796
17797 # Whether or not to optimize for fast installation.
17798 fast_install=$enable_fast_install
17799
17800 # The host system.
17801 host_alias=$host_alias
17802 host=$host
17803 host_os=$host_os
17804
17805 # The build system.
17806 build_alias=$build_alias
17807 build=$build
17808 build_os=$build_os
17809
17810 # An echo program that does not interpret backslashes.
17811 echo=$lt_echo
17812
17813 # The archiver.
17814 AR=$lt_AR
17815 AR_FLAGS=$lt_AR_FLAGS
17816
17817 # A C compiler.
17818 LTCC=$lt_LTCC
17819
17820 # LTCC compiler flags.
17821 LTCFLAGS=$lt_LTCFLAGS
17822
17823 # A language-specific compiler.
17824 CC=$lt_compiler_GCJ
17825
17826 # Is the compiler the GNU C compiler?
17827 with_gcc=$GCC_GCJ
17828
17829 # An ERE matcher.
17830 EGREP=$lt_EGREP
17831
17832 # The linker used to build libraries.
17833 LD=$lt_LD_GCJ
17834
17835 # Whether we need hard or soft links.
17836 LN_S=$lt_LN_S
17837
17838 # A BSD-compatible nm program.
17839 NM=$lt_NM
17840
17841 # A symbol stripping program
17842 STRIP=$lt_STRIP
17843
17844 # Used to examine libraries when file_magic_cmd begins "file"
17845 MAGIC_CMD=$MAGIC_CMD
17846
17847 # Used on cygwin: DLL creation program.
17848 DLLTOOL="$DLLTOOL"
17849
17850 # Used on cygwin: object dumper.
17851 OBJDUMP="$OBJDUMP"
17852
17853 # Used on cygwin: assembler.
17854 AS="$AS"
17855
17856 # The name of the directory that contains temporary libtool files.
17857 objdir=$objdir
17858
17859 # How to create reloadable object files.
17860 reload_flag=$lt_reload_flag
17861 reload_cmds=$lt_reload_cmds
17862
17863 # How to pass a linker flag through the compiler.
17864 wl=$lt_lt_prog_compiler_wl_GCJ
17865
17866 # Object file suffix (normally "o").
17867 objext="$ac_objext"
17868
17869 # Old archive suffix (normally "a").
17870 libext="$libext"
17871
17872 # Shared library suffix (normally ".so").
17873 shrext_cmds='$shrext_cmds'
17874
17875 # Executable file suffix (normally "").
17876 exeext="$exeext"
17877
17878 # Additional compiler flags for building library objects.
17879 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17880 pic_mode=$pic_mode
17881
17882 # What is the maximum length of a command?
17883 max_cmd_len=$lt_cv_sys_max_cmd_len
17884
17885 # Does compiler simultaneously support -c and -o options?
17886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17887
17888 # Must we lock files when doing compilation?
17889 need_locks=$lt_need_locks
17890
17891 # Do we need the lib prefix for modules?
17892 need_lib_prefix=$need_lib_prefix
17893
17894 # Do we need a version for libraries?
17895 need_version=$need_version
17896
17897 # Whether dlopen is supported.
17898 dlopen_support=$enable_dlopen
17899
17900 # Whether dlopen of programs is supported.
17901 dlopen_self=$enable_dlopen_self
17902
17903 # Whether dlopen of statically linked programs is supported.
17904 dlopen_self_static=$enable_dlopen_self_static
17905
17906 # Compiler flag to prevent dynamic linking.
17907 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17908
17909 # Compiler flag to turn off builtin functions.
17910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17911
17912 # Compiler flag to allow reflexive dlopens.
17913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17914
17915 # Compiler flag to generate shared objects directly from archives.
17916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17917
17918 # Compiler flag to generate thread-safe objects.
17919 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17920
17921 # Library versioning type.
17922 version_type=$version_type
17923
17924 # Format of library name prefix.
17925 libname_spec=$lt_libname_spec
17926
17927 # List of archive names. First name is the real one, the rest are links.
17928 # The last name is the one that the linker finds with -lNAME.
17929 library_names_spec=$lt_library_names_spec
17930
17931 # The coded name of the library, if different from the real name.
17932 soname_spec=$lt_soname_spec
17933
17934 # Commands used to build and install an old-style archive.
17935 RANLIB=$lt_RANLIB
17936 old_archive_cmds=$lt_old_archive_cmds_GCJ
17937 old_postinstall_cmds=$lt_old_postinstall_cmds
17938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17939
17940 # Create an old-style archive from a shared archive.
17941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17942
17943 # Create a temporary old-style archive to link instead of a shared archive.
17944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17945
17946 # Commands used to build and install a shared archive.
17947 archive_cmds=$lt_archive_cmds_GCJ
17948 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17949 postinstall_cmds=$lt_postinstall_cmds
17950 postuninstall_cmds=$lt_postuninstall_cmds
17951
17952 # Commands used to build a loadable module (assumed same as above if empty)
17953 module_cmds=$lt_module_cmds_GCJ
17954 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17955
17956 # Commands to strip libraries.
17957 old_striplib=$lt_old_striplib
17958 striplib=$lt_striplib
17959
17960 # Dependencies to place before the objects being linked to create a
17961 # shared library.
17962 predep_objects=$lt_predep_objects_GCJ
17963
17964 # Dependencies to place after the objects being linked to create a
17965 # shared library.
17966 postdep_objects=$lt_postdep_objects_GCJ
17967
17968 # Dependencies to place before the objects being linked to create a
17969 # shared library.
17970 predeps=$lt_predeps_GCJ
17971
17972 # Dependencies to place after the objects being linked to create a
17973 # shared library.
17974 postdeps=$lt_postdeps_GCJ
17975
17976 # The library search path used internally by the compiler when linking
17977 # a shared library.
17978 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17979
17980 # Method to check whether dependent libraries are shared objects.
17981 deplibs_check_method=$lt_deplibs_check_method
17982
17983 # Command to use when deplibs_check_method == file_magic.
17984 file_magic_cmd=$lt_file_magic_cmd
17985
17986 # Flag that allows shared libraries with undefined symbols to be built.
17987 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17988
17989 # Flag that forces no undefined symbols.
17990 no_undefined_flag=$lt_no_undefined_flag_GCJ
17991
17992 # Commands used to finish a libtool library installation in a directory.
17993 finish_cmds=$lt_finish_cmds
17994
17995 # Same as above, but a single script fragment to be evaled but not shown.
17996 finish_eval=$lt_finish_eval
17997
17998 # Take the output of nm and produce a listing of raw symbols and C names.
17999 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18000
18001 # Transform the output of nm in a proper C declaration
18002 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18003
18004 # Transform the output of nm in a C name address pair
18005 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18006
18007 # This is the shared library runtime path variable.
18008 runpath_var=$runpath_var
18009
18010 # This is the shared library path variable.
18011 shlibpath_var=$shlibpath_var
18012
18013 # Is shlibpath searched before the hard-coded library search path?
18014 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18015
18016 # How to hardcode a shared library path into an executable.
18017 hardcode_action=$hardcode_action_GCJ
18018
18019 # Whether we should hardcode library paths into libraries.
18020 hardcode_into_libs=$hardcode_into_libs
18021
18022 # Flag to hardcode \$libdir into a binary during linking.
18023 # This must work even if \$libdir does not exist.
18024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18025
18026 # If ld is used when linking, flag to hardcode \$libdir into
18027 # a binary during linking. This must work even if \$libdir does
18028 # not exist.
18029 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18030
18031 # Whether we need a single -rpath flag with a separated argument.
18032 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18033
18034 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18035 # resulting binary.
18036 hardcode_direct=$hardcode_direct_GCJ
18037
18038 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18039 # resulting binary.
18040 hardcode_minus_L=$hardcode_minus_L_GCJ
18041
18042 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18043 # the resulting binary.
18044 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18045
18046 # Set to yes if building a shared library automatically hardcodes DIR into the library
18047 # and all subsequent libraries and executables linked against it.
18048 hardcode_automatic=$hardcode_automatic_GCJ
18049
18050 # Variables whose values should be saved in libtool wrapper scripts and
18051 # restored at relink time.
18052 variables_saved_for_relink="$variables_saved_for_relink"
18053
18054 # Whether libtool must link a program against all its dependency libraries.
18055 link_all_deplibs=$link_all_deplibs_GCJ
18056
18057 # Compile-time system search path for libraries
18058 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18059
18060 # Run-time system search path for libraries
18061 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18062
18063 # Fix the shell variable \$srcfile for the compiler.
18064 fix_srcfile_path="$fix_srcfile_path_GCJ"
18065
18066 # Set to yes if exported symbols are required.
18067 always_export_symbols=$always_export_symbols_GCJ
18068
18069 # The commands to list exported symbols.
18070 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18071
18072 # The commands to extract the exported symbol list from a shared archive.
18073 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18074
18075 # Symbols that should not be listed in the preloaded symbols.
18076 exclude_expsyms=$lt_exclude_expsyms_GCJ
18077
18078 # Symbols that must always be exported.
18079 include_expsyms=$lt_include_expsyms_GCJ
18080
18081 # ### END LIBTOOL TAG CONFIG: $tagname
18082
18083 __EOF__
18084
18085
18086 else
18087 # If there is no Makefile yet, we rely on a make rule to execute
18088 # `config.status --recheck' to rerun these tests and create the
18089 # libtool script then.
18090 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18091 if test -f "$ltmain_in"; then
18092 test -f Makefile && make "$ltmain"
18093 fi
18094 fi
18095
18096
18097 ac_ext=c
18098 ac_cpp='$CPP $CPPFLAGS'
18099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18102
18103 CC="$lt_save_CC"
18104
18105 else
18106 tagname=""
18107 fi
18108 ;;
18109
18110 RC)
18111
18112
18113
18114 # Source file extension for RC test sources.
18115 ac_ext=rc
18116
18117 # Object file extension for compiled RC test sources.
18118 objext=o
18119 objext_RC=$objext
18120
18121 # Code to be used in simple compile tests
18122 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18123
18124 # Code to be used in simple link tests
18125 lt_simple_link_test_code="$lt_simple_compile_test_code"
18126
18127 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18128
18129 # If no C compiler was specified, use CC.
18130 LTCC=${LTCC-"$CC"}
18131
18132 # If no C compiler flags were specified, use CFLAGS.
18133 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18134
18135 # Allow CC to be a program name with arguments.
18136 compiler=$CC
18137
18138
18139 # save warnings/boilerplate of simple test code
18140 ac_outfile=conftest.$ac_objext
18141 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18142 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18143 _lt_compiler_boilerplate=`cat conftest.err`
18144 $rm conftest*
18145
18146 ac_outfile=conftest.$ac_objext
18147 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18148 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18149 _lt_linker_boilerplate=`cat conftest.err`
18150 $rm conftest*
18151
18152
18153 # Allow CC to be a program name with arguments.
18154 lt_save_CC="$CC"
18155 CC=${RC-"windres"}
18156 compiler=$CC
18157 compiler_RC=$CC
18158 for cc_temp in $compiler""; do
18159 case $cc_temp in
18160 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18161 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18162 \-*) ;;
18163 *) break;;
18164 esac
18165 done
18166 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18167
18168 lt_cv_prog_compiler_c_o_RC=yes
18169
18170 # The else clause should only fire when bootstrapping the
18171 # libtool distribution, otherwise you forgot to ship ltmain.sh
18172 # with your package, and you will get complaints that there are
18173 # no rules to generate ltmain.sh.
18174 if test -f "$ltmain"; then
18175 # See if we are running on zsh, and set the options which allow our commands through
18176 # without removal of \ escapes.
18177 if test -n "${ZSH_VERSION+set}" ; then
18178 setopt NO_GLOB_SUBST
18179 fi
18180 # Now quote all the things that may contain metacharacters while being
18181 # careful not to overquote the AC_SUBSTed values. We take copies of the
18182 # variables and quote the copies for generation of the libtool script.
18183 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18184 SED SHELL STRIP \
18185 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18186 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18187 deplibs_check_method reload_flag reload_cmds need_locks \
18188 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18189 lt_cv_sys_global_symbol_to_c_name_address \
18190 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18191 old_postinstall_cmds old_postuninstall_cmds \
18192 compiler_RC \
18193 CC_RC \
18194 LD_RC \
18195 lt_prog_compiler_wl_RC \
18196 lt_prog_compiler_pic_RC \
18197 lt_prog_compiler_static_RC \
18198 lt_prog_compiler_no_builtin_flag_RC \
18199 export_dynamic_flag_spec_RC \
18200 thread_safe_flag_spec_RC \
18201 whole_archive_flag_spec_RC \
18202 enable_shared_with_static_runtimes_RC \
18203 old_archive_cmds_RC \
18204 old_archive_from_new_cmds_RC \
18205 predep_objects_RC \
18206 postdep_objects_RC \
18207 predeps_RC \
18208 postdeps_RC \
18209 compiler_lib_search_path_RC \
18210 archive_cmds_RC \
18211 archive_expsym_cmds_RC \
18212 postinstall_cmds_RC \
18213 postuninstall_cmds_RC \
18214 old_archive_from_expsyms_cmds_RC \
18215 allow_undefined_flag_RC \
18216 no_undefined_flag_RC \
18217 export_symbols_cmds_RC \
18218 hardcode_libdir_flag_spec_RC \
18219 hardcode_libdir_flag_spec_ld_RC \
18220 hardcode_libdir_separator_RC \
18221 hardcode_automatic_RC \
18222 module_cmds_RC \
18223 module_expsym_cmds_RC \
18224 lt_cv_prog_compiler_c_o_RC \
18225 exclude_expsyms_RC \
18226 include_expsyms_RC; do
18227
18228 case $var in
18229 old_archive_cmds_RC | \
18230 old_archive_from_new_cmds_RC | \
18231 archive_cmds_RC | \
18232 archive_expsym_cmds_RC | \
18233 module_cmds_RC | \
18234 module_expsym_cmds_RC | \
18235 old_archive_from_expsyms_cmds_RC | \
18236 export_symbols_cmds_RC | \
18237 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18238 postinstall_cmds | postuninstall_cmds | \
18239 old_postinstall_cmds | old_postuninstall_cmds | \
18240 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18241 # Double-quote double-evaled strings.
18242 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18243 ;;
18244 *)
18245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18246 ;;
18247 esac
18248 done
18249
18250 case $lt_echo in
18251 *'\$0 --fallback-echo"')
18252 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18253 ;;
18254 esac
18255
18256 cfgfile="$ofile"
18257
18258 cat <<__EOF__ >> "$cfgfile"
18259 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18260
18261 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18262
18263 # Shell to use when invoking shell scripts.
18264 SHELL=$lt_SHELL
18265
18266 # Whether or not to build shared libraries.
18267 build_libtool_libs=$enable_shared
18268
18269 # Whether or not to build static libraries.
18270 build_old_libs=$enable_static
18271
18272 # Whether or not to add -lc for building shared libraries.
18273 build_libtool_need_lc=$archive_cmds_need_lc_RC
18274
18275 # Whether or not to disallow shared libs when runtime libs are static
18276 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18277
18278 # Whether or not to optimize for fast installation.
18279 fast_install=$enable_fast_install
18280
18281 # The host system.
18282 host_alias=$host_alias
18283 host=$host
18284 host_os=$host_os
18285
18286 # The build system.
18287 build_alias=$build_alias
18288 build=$build
18289 build_os=$build_os
18290
18291 # An echo program that does not interpret backslashes.
18292 echo=$lt_echo
18293
18294 # The archiver.
18295 AR=$lt_AR
18296 AR_FLAGS=$lt_AR_FLAGS
18297
18298 # A C compiler.
18299 LTCC=$lt_LTCC
18300
18301 # LTCC compiler flags.
18302 LTCFLAGS=$lt_LTCFLAGS
18303
18304 # A language-specific compiler.
18305 CC=$lt_compiler_RC
18306
18307 # Is the compiler the GNU C compiler?
18308 with_gcc=$GCC_RC
18309
18310 # An ERE matcher.
18311 EGREP=$lt_EGREP
18312
18313 # The linker used to build libraries.
18314 LD=$lt_LD_RC
18315
18316 # Whether we need hard or soft links.
18317 LN_S=$lt_LN_S
18318
18319 # A BSD-compatible nm program.
18320 NM=$lt_NM
18321
18322 # A symbol stripping program
18323 STRIP=$lt_STRIP
18324
18325 # Used to examine libraries when file_magic_cmd begins "file"
18326 MAGIC_CMD=$MAGIC_CMD
18327
18328 # Used on cygwin: DLL creation program.
18329 DLLTOOL="$DLLTOOL"
18330
18331 # Used on cygwin: object dumper.
18332 OBJDUMP="$OBJDUMP"
18333
18334 # Used on cygwin: assembler.
18335 AS="$AS"
18336
18337 # The name of the directory that contains temporary libtool files.
18338 objdir=$objdir
18339
18340 # How to create reloadable object files.
18341 reload_flag=$lt_reload_flag
18342 reload_cmds=$lt_reload_cmds
18343
18344 # How to pass a linker flag through the compiler.
18345 wl=$lt_lt_prog_compiler_wl_RC
18346
18347 # Object file suffix (normally "o").
18348 objext="$ac_objext"
18349
18350 # Old archive suffix (normally "a").
18351 libext="$libext"
18352
18353 # Shared library suffix (normally ".so").
18354 shrext_cmds='$shrext_cmds'
18355
18356 # Executable file suffix (normally "").
18357 exeext="$exeext"
18358
18359 # Additional compiler flags for building library objects.
18360 pic_flag=$lt_lt_prog_compiler_pic_RC
18361 pic_mode=$pic_mode
18362
18363 # What is the maximum length of a command?
18364 max_cmd_len=$lt_cv_sys_max_cmd_len
18365
18366 # Does compiler simultaneously support -c and -o options?
18367 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18368
18369 # Must we lock files when doing compilation?
18370 need_locks=$lt_need_locks
18371
18372 # Do we need the lib prefix for modules?
18373 need_lib_prefix=$need_lib_prefix
18374
18375 # Do we need a version for libraries?
18376 need_version=$need_version
18377
18378 # Whether dlopen is supported.
18379 dlopen_support=$enable_dlopen
18380
18381 # Whether dlopen of programs is supported.
18382 dlopen_self=$enable_dlopen_self
18383
18384 # Whether dlopen of statically linked programs is supported.
18385 dlopen_self_static=$enable_dlopen_self_static
18386
18387 # Compiler flag to prevent dynamic linking.
18388 link_static_flag=$lt_lt_prog_compiler_static_RC
18389
18390 # Compiler flag to turn off builtin functions.
18391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18392
18393 # Compiler flag to allow reflexive dlopens.
18394 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18395
18396 # Compiler flag to generate shared objects directly from archives.
18397 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18398
18399 # Compiler flag to generate thread-safe objects.
18400 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18401
18402 # Library versioning type.
18403 version_type=$version_type
18404
18405 # Format of library name prefix.
18406 libname_spec=$lt_libname_spec
18407
18408 # List of archive names. First name is the real one, the rest are links.
18409 # The last name is the one that the linker finds with -lNAME.
18410 library_names_spec=$lt_library_names_spec
18411
18412 # The coded name of the library, if different from the real name.
18413 soname_spec=$lt_soname_spec
18414
18415 # Commands used to build and install an old-style archive.
18416 RANLIB=$lt_RANLIB
18417 old_archive_cmds=$lt_old_archive_cmds_RC
18418 old_postinstall_cmds=$lt_old_postinstall_cmds
18419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18420
18421 # Create an old-style archive from a shared archive.
18422 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18423
18424 # Create a temporary old-style archive to link instead of a shared archive.
18425 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18426
18427 # Commands used to build and install a shared archive.
18428 archive_cmds=$lt_archive_cmds_RC
18429 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18430 postinstall_cmds=$lt_postinstall_cmds
18431 postuninstall_cmds=$lt_postuninstall_cmds
18432
18433 # Commands used to build a loadable module (assumed same as above if empty)
18434 module_cmds=$lt_module_cmds_RC
18435 module_expsym_cmds=$lt_module_expsym_cmds_RC
18436
18437 # Commands to strip libraries.
18438 old_striplib=$lt_old_striplib
18439 striplib=$lt_striplib
18440
18441 # Dependencies to place before the objects being linked to create a
18442 # shared library.
18443 predep_objects=$lt_predep_objects_RC
18444
18445 # Dependencies to place after the objects being linked to create a
18446 # shared library.
18447 postdep_objects=$lt_postdep_objects_RC
18448
18449 # Dependencies to place before the objects being linked to create a
18450 # shared library.
18451 predeps=$lt_predeps_RC
18452
18453 # Dependencies to place after the objects being linked to create a
18454 # shared library.
18455 postdeps=$lt_postdeps_RC
18456
18457 # The library search path used internally by the compiler when linking
18458 # a shared library.
18459 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18460
18461 # Method to check whether dependent libraries are shared objects.
18462 deplibs_check_method=$lt_deplibs_check_method
18463
18464 # Command to use when deplibs_check_method == file_magic.
18465 file_magic_cmd=$lt_file_magic_cmd
18466
18467 # Flag that allows shared libraries with undefined symbols to be built.
18468 allow_undefined_flag=$lt_allow_undefined_flag_RC
18469
18470 # Flag that forces no undefined symbols.
18471 no_undefined_flag=$lt_no_undefined_flag_RC
18472
18473 # Commands used to finish a libtool library installation in a directory.
18474 finish_cmds=$lt_finish_cmds
18475
18476 # Same as above, but a single script fragment to be evaled but not shown.
18477 finish_eval=$lt_finish_eval
18478
18479 # Take the output of nm and produce a listing of raw symbols and C names.
18480 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18481
18482 # Transform the output of nm in a proper C declaration
18483 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18484
18485 # Transform the output of nm in a C name address pair
18486 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18487
18488 # This is the shared library runtime path variable.
18489 runpath_var=$runpath_var
18490
18491 # This is the shared library path variable.
18492 shlibpath_var=$shlibpath_var
18493
18494 # Is shlibpath searched before the hard-coded library search path?
18495 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18496
18497 # How to hardcode a shared library path into an executable.
18498 hardcode_action=$hardcode_action_RC
18499
18500 # Whether we should hardcode library paths into libraries.
18501 hardcode_into_libs=$hardcode_into_libs
18502
18503 # Flag to hardcode \$libdir into a binary during linking.
18504 # This must work even if \$libdir does not exist.
18505 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18506
18507 # If ld is used when linking, flag to hardcode \$libdir into
18508 # a binary during linking. This must work even if \$libdir does
18509 # not exist.
18510 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18511
18512 # Whether we need a single -rpath flag with a separated argument.
18513 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18514
18515 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18516 # resulting binary.
18517 hardcode_direct=$hardcode_direct_RC
18518
18519 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18520 # resulting binary.
18521 hardcode_minus_L=$hardcode_minus_L_RC
18522
18523 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18524 # the resulting binary.
18525 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18526
18527 # Set to yes if building a shared library automatically hardcodes DIR into the library
18528 # and all subsequent libraries and executables linked against it.
18529 hardcode_automatic=$hardcode_automatic_RC
18530
18531 # Variables whose values should be saved in libtool wrapper scripts and
18532 # restored at relink time.
18533 variables_saved_for_relink="$variables_saved_for_relink"
18534
18535 # Whether libtool must link a program against all its dependency libraries.
18536 link_all_deplibs=$link_all_deplibs_RC
18537
18538 # Compile-time system search path for libraries
18539 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18540
18541 # Run-time system search path for libraries
18542 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18543
18544 # Fix the shell variable \$srcfile for the compiler.
18545 fix_srcfile_path="$fix_srcfile_path_RC"
18546
18547 # Set to yes if exported symbols are required.
18548 always_export_symbols=$always_export_symbols_RC
18549
18550 # The commands to list exported symbols.
18551 export_symbols_cmds=$lt_export_symbols_cmds_RC
18552
18553 # The commands to extract the exported symbol list from a shared archive.
18554 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18555
18556 # Symbols that should not be listed in the preloaded symbols.
18557 exclude_expsyms=$lt_exclude_expsyms_RC
18558
18559 # Symbols that must always be exported.
18560 include_expsyms=$lt_include_expsyms_RC
18561
18562 # ### END LIBTOOL TAG CONFIG: $tagname
18563
18564 __EOF__
18565
18566
18567 else
18568 # If there is no Makefile yet, we rely on a make rule to execute
18569 # `config.status --recheck' to rerun these tests and create the
18570 # libtool script then.
18571 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18572 if test -f "$ltmain_in"; then
18573 test -f Makefile && make "$ltmain"
18574 fi
18575 fi
18576
18577
18578 ac_ext=c
18579 ac_cpp='$CPP $CPPFLAGS'
18580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18583
18584 CC="$lt_save_CC"
18585
18586 ;;
18587
18588 *)
18589 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18590 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18591 { (exit 1); exit 1; }; }
18592 ;;
18593 esac
18594
18595 # Append the new tag name to the list of available tags.
18596 if test -n "$tagname" ; then
18597 available_tags="$available_tags $tagname"
18598 fi
18599 fi
18600 done
18601 IFS="$lt_save_ifs"
18602
18603 # Now substitute the updated list of available tags.
18604 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18605 mv "${ofile}T" "$ofile"
18606 chmod +x "$ofile"
18607 else
18608 rm -f "${ofile}T"
18609 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18610 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18611 { (exit 1); exit 1; }; }
18612 fi
18613 fi
18614
18615
18616
18617 # This can be used to rebuild libtool when needed
18618 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18619
18620 # Always use our own libtool.
18621 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18622
18623 # Prevent multiple expansion
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645 # Check for dependencies
18646
18647
18648 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18649 if test -n "$ac_tool_prefix"; then
18650 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18651 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18652 echo "$as_me:$LINENO: checking for $ac_word" >&5
18653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18654 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657 case $PKG_CONFIG in
18658 [\\/]* | ?:[\\/]*)
18659 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18660 ;;
18661 *)
18662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18663 for as_dir in $PATH
18664 do
18665 IFS=$as_save_IFS
18666 test -z "$as_dir" && as_dir=.
18667 for ac_exec_ext in '' $ac_executable_extensions; do
18668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18669 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18671 break 2
18672 fi
18673 done
18674 done
18675
18676 ;;
18677 esac
18678 fi
18679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18680
18681 if test -n "$PKG_CONFIG"; then
18682 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18683 echo "${ECHO_T}$PKG_CONFIG" >&6
18684 else
18685 echo "$as_me:$LINENO: result: no" >&5
18686 echo "${ECHO_T}no" >&6
18687 fi
18688
18689 fi
18690 if test -z "$ac_cv_path_PKG_CONFIG"; then
18691 ac_pt_PKG_CONFIG=$PKG_CONFIG
18692 # Extract the first word of "pkg-config", so it can be a program name with args.
18693 set dummy pkg-config; ac_word=$2
18694 echo "$as_me:$LINENO: checking for $ac_word" >&5
18695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18696 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699 case $ac_pt_PKG_CONFIG in
18700 [\\/]* | ?:[\\/]*)
18701 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18702 ;;
18703 *)
18704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18705 for as_dir in $PATH
18706 do
18707 IFS=$as_save_IFS
18708 test -z "$as_dir" && as_dir=.
18709 for ac_exec_ext in '' $ac_executable_extensions; do
18710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18711 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18713 break 2
18714 fi
18715 done
18716 done
18717
18718 ;;
18719 esac
18720 fi
18721 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18722
18723 if test -n "$ac_pt_PKG_CONFIG"; then
18724 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
18725 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
18726 else
18727 echo "$as_me:$LINENO: result: no" >&5
18728 echo "${ECHO_T}no" >&6
18729 fi
18730
18731 PKG_CONFIG=$ac_pt_PKG_CONFIG
18732 else
18733 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18734 fi
18735
18736 fi
18737 if test -n "$PKG_CONFIG"; then
18738 _pkg_min_version=0.9.0
18739 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
18740 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
18741 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18742 echo "$as_me:$LINENO: result: yes" >&5
18743 echo "${ECHO_T}yes" >&6
18744 else
18745 echo "$as_me:$LINENO: result: no" >&5
18746 echo "${ECHO_T}no" >&6
18747 PKG_CONFIG=""
18748 fi
18749
18750 fi
18751
18752 pkg_failed=no
18753 echo "$as_me:$LINENO: checking for XKBUI" >&5
18754 echo $ECHO_N "checking for XKBUI... $ECHO_C" >&6
18755
18756 if test -n "$PKG_CONFIG"; then
18757 if test -n "$XKBUI_CFLAGS"; then
18758 pkg_cv_XKBUI_CFLAGS="$XKBUI_CFLAGS"
18759 else
18760 if test -n "$PKG_CONFIG" && \
18761 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt xkbfile\"") >&5
18762 ($PKG_CONFIG --exists --print-errors "x11 xt xkbfile") 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; then
18766 pkg_cv_XKBUI_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xkbfile" 2>/dev/null`
18767 else
18768 pkg_failed=yes
18769 fi
18770 fi
18771 else
18772 pkg_failed=untried
18773 fi
18774 if test -n "$PKG_CONFIG"; then
18775 if test -n "$XKBUI_LIBS"; then
18776 pkg_cv_XKBUI_LIBS="$XKBUI_LIBS"
18777 else
18778 if test -n "$PKG_CONFIG" && \
18779 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt xkbfile\"") >&5
18780 ($PKG_CONFIG --exists --print-errors "x11 xt xkbfile") 2>&5
18781 ac_status=$?
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; then
18784 pkg_cv_XKBUI_LIBS=`$PKG_CONFIG --libs "x11 xt xkbfile" 2>/dev/null`
18785 else
18786 pkg_failed=yes
18787 fi
18788 fi
18789 else
18790 pkg_failed=untried
18791 fi
18792
18793
18794
18795 if test $pkg_failed = yes; then
18796
18797 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18798 _pkg_short_errors_supported=yes
18799 else
18800 _pkg_short_errors_supported=no
18801 fi
18802 if test $_pkg_short_errors_supported = yes; then
18803 XKBUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xt xkbfile"`
18804 else
18805 XKBUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xt xkbfile"`
18806 fi
18807 # Put the nasty error message in config.log where it belongs
18808 echo "$XKBUI_PKG_ERRORS" >&5
18809
18810 { { echo "$as_me:$LINENO: error: Package requirements (x11 xt xkbfile) were not met:
18811
18812 $XKBUI_PKG_ERRORS
18813
18814 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18815 installed software in a non-standard prefix.
18816
18817 Alternatively, you may set the environment variables XKBUI_CFLAGS
18818 and XKBUI_LIBS to avoid the need to call pkg-config.
18819 See the pkg-config man page for more details.
18820 " >&5
18821 echo "$as_me: error: Package requirements (x11 xt xkbfile) were not met:
18822
18823 $XKBUI_PKG_ERRORS
18824
18825 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18826 installed software in a non-standard prefix.
18827
18828 Alternatively, you may set the environment variables XKBUI_CFLAGS
18829 and XKBUI_LIBS to avoid the need to call pkg-config.
18830 See the pkg-config man page for more details.
18831 " >&2;}
18832 { (exit 1); exit 1; }; }
18833 elif test $pkg_failed = untried; then
18834 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
18835 is in your PATH or set the PKG_CONFIG environment variable to the full
18836 path to pkg-config.
18837
18838 Alternatively, you may set the environment variables XKBUI_CFLAGS
18839 and XKBUI_LIBS to avoid the need to call pkg-config.
18840 See the pkg-config man page for more details.
18841
18842 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18843 See \`config.log' for more details." >&5
18844 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
18845 is in your PATH or set the PKG_CONFIG environment variable to the full
18846 path to pkg-config.
18847
18848 Alternatively, you may set the environment variables XKBUI_CFLAGS
18849 and XKBUI_LIBS to avoid the need to call pkg-config.
18850 See the pkg-config man page for more details.
18851
18852 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18853 See \`config.log' for more details." >&2;}
18854 { (exit 1); exit 1; }; }
18855 else
18856 XKBUI_CFLAGS=$pkg_cv_XKBUI_CFLAGS
18857 XKBUI_LIBS=$pkg_cv_XKBUI_LIBS
18858 echo "$as_me:$LINENO: result: yes" >&5
18859 echo "${ECHO_T}yes" >&6
18860 :
18861 fi
18862 echo "$as_me:$LINENO: checking for library containing hypot" >&5
18863 echo $ECHO_N "checking for library containing hypot... $ECHO_C" >&6
18864 if test "${ac_cv_search_hypot+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867 ac_func_search_save_LIBS=$LIBS
18868 ac_cv_search_hypot=no
18869 cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h. */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875
18876 /* Override any gcc2 internal prototype to avoid an error. */
18877 #ifdef __cplusplus
18878 extern "C"
18879 #endif
18880 /* We use char because int might match the return type of a gcc2
18881 builtin and then its argument prototype would still apply. */
18882 char hypot ();
18883 int
18884 main ()
18885 {
18886 hypot ();
18887 ;
18888 return 0;
18889 }
18890 _ACEOF
18891 rm -f conftest.$ac_objext conftest$ac_exeext
18892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18893 (eval $ac_link) 2>conftest.er1
18894 ac_status=$?
18895 grep -v '^ *+' conftest.er1 >conftest.err
18896 rm -f conftest.er1
18897 cat conftest.err >&5
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); } &&
18900 { ac_try='test -z "$ac_c_werror_flag"
18901 || test ! -s conftest.err'
18902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18903 (eval $ac_try) 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); }; } &&
18907 { ac_try='test -s conftest$ac_exeext'
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; }; then
18913 ac_cv_search_hypot="none required"
18914 else
18915 echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18917
18918 fi
18919 rm -f conftest.err conftest.$ac_objext \
18920 conftest$ac_exeext conftest.$ac_ext
18921 if test "$ac_cv_search_hypot" = no; then
18922 for ac_lib in m; do
18923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18924 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h. */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930
18931 /* Override any gcc2 internal prototype to avoid an error. */
18932 #ifdef __cplusplus
18933 extern "C"
18934 #endif
18935 /* We use char because int might match the return type of a gcc2
18936 builtin and then its argument prototype would still apply. */
18937 char hypot ();
18938 int
18939 main ()
18940 {
18941 hypot ();
18942 ;
18943 return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext conftest$ac_exeext
18947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18948 (eval $ac_link) 2>conftest.er1
18949 ac_status=$?
18950 grep -v '^ *+' conftest.er1 >conftest.err
18951 rm -f conftest.er1
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_c_werror_flag"
18956 || test ! -s conftest.err'
18957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958 (eval $ac_try) 2>&5
18959 ac_status=$?
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest$ac_exeext'
18963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 ac_cv_search_hypot="-l$ac_lib"
18969 break
18970 else
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 fi
18975 rm -f conftest.err conftest.$ac_objext \
18976 conftest$ac_exeext conftest.$ac_ext
18977 done
18978 fi
18979 LIBS=$ac_func_search_save_LIBS
18980 fi
18981 echo "$as_me:$LINENO: result: $ac_cv_search_hypot" >&5
18982 echo "${ECHO_T}$ac_cv_search_hypot" >&6
18983 if test "$ac_cv_search_hypot" != no; then
18984 test "$ac_cv_search_hypot" = "none required" || LIBS="$ac_cv_search_hypot $LIBS"
18985
18986 fi
18987
18988
18989
18990
18991
18992
18993
18994 # Check whether --with-release-version or --without-release-version was given.
18995 if test "${with_release_version+set}" = set; then
18996 withval="$with_release_version"
18997 RELEASE_VERSION="$withval"
18998 else
18999 RELEASE_VERSION=""
19000 fi;
19001 if test "x$RELEASE_VERSION" != "x"; then
19002 PACKAGE="$PACKAGE-$RELEASE_VERSION"
19003 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19004 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19005 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19006 fi
19007
19008
19009 ac_config_files="$ac_config_files Makefile src/Makefile xkbui.pc"
19010 cat >confcache <<\_ACEOF
19011 # This file is a shell script that caches the results of configure
19012 # tests run on this system so they can be shared between configure
19013 # scripts and configure runs, see configure's option --config-cache.
19014 # It is not useful on other systems. If it contains results you don't
19015 # want to keep, you may remove or edit it.
19016 #
19017 # config.status only pays attention to the cache file if you give it
19018 # the --recheck option to rerun configure.
19019 #
19020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19022 # following values.
19023
19024 _ACEOF
19025
19026 # The following way of writing the cache mishandles newlines in values,
19027 # but we know of no workaround that is simple, portable, and efficient.
19028 # So, don't put newlines in cache variables' values.
19029 # Ultrix sh set writes to stderr and can't be redirected directly,
19030 # and sets the high bit in the cache file unless we assign to the vars.
19031 {
19032 (set) 2>&1 |
19033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19034 *ac_space=\ *)
19035 # `set' does not quote correctly, so add quotes (double-quote
19036 # substitution turns \\\\ into \\, and sed turns \\ into \).
19037 sed -n \
19038 "s/'/'\\\\''/g;
19039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19040 ;;
19041 *)
19042 # `set' quotes correctly as required by POSIX, so do not add quotes.
19043 sed -n \
19044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19045 ;;
19046 esac;
19047 } |
19048 sed '
19049 t clear
19050 : clear
19051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19052 t end
19053 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19054 : end' >>confcache
19055 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19056 if test -w $cache_file; then
19057 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19058 cat confcache >$cache_file
19059 else
19060 echo "not updating unwritable cache $cache_file"
19061 fi
19062 fi
19063 rm -f confcache
19064
19065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19066 # Let make expand exec_prefix.
19067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19068
19069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19071 # trailing colons and then remove the whole line if VPATH becomes empty
19072 # (actually we leave an empty line to preserve line numbers).
19073 if test "x$srcdir" = x.; then
19074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19075 s/:*\$(srcdir):*/:/;
19076 s/:*\${srcdir}:*/:/;
19077 s/:*@srcdir@:*/:/;
19078 s/^\([^=]*=[ ]*\):*/\1/;
19079 s/:*$//;
19080 s/^[^=]*=[ ]*$//;
19081 }'
19082 fi
19083
19084 DEFS=-DHAVE_CONFIG_H
19085
19086 ac_libobjs=
19087 ac_ltlibobjs=
19088 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19089 # 1. Remove the extension, and $U if already installed.
19090 ac_i=`echo "$ac_i" |
19091 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19092 # 2. Add them.
19093 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19094 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19095 done
19096 LIBOBJS=$ac_libobjs
19097
19098 LTLIBOBJS=$ac_ltlibobjs
19099
19100
19101 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19102 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19103 Usually this means the macro was only invoked conditionally." >&5
19104 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19105 Usually this means the macro was only invoked conditionally." >&2;}
19106 { (exit 1); exit 1; }; }
19107 fi
19108 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19109 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19110 Usually this means the macro was only invoked conditionally." >&5
19111 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19112 Usually this means the macro was only invoked conditionally." >&2;}
19113 { (exit 1); exit 1; }; }
19114 fi
19115 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19116 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19117 Usually this means the macro was only invoked conditionally." >&5
19118 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19119 Usually this means the macro was only invoked conditionally." >&2;}
19120 { (exit 1); exit 1; }; }
19121 fi
19122 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19123 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19124 Usually this means the macro was only invoked conditionally." >&5
19125 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19126 Usually this means the macro was only invoked conditionally." >&2;}
19127 { (exit 1); exit 1; }; }
19128 fi
19129
19130 : ${CONFIG_STATUS=./config.status}
19131 ac_clean_files_save=$ac_clean_files
19132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19133 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19134 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19135 cat >$CONFIG_STATUS <<_ACEOF
19136 #! $SHELL
19137 # Generated by $as_me.
19138 # Run this file to recreate the current configuration.
19139 # Compiler output produced by configure, useful for debugging
19140 # configure, is in config.log if it exists.
19141
19142 debug=false
19143 ac_cs_recheck=false
19144 ac_cs_silent=false
19145 SHELL=\${CONFIG_SHELL-$SHELL}
19146 _ACEOF
19147
19148 cat >>$CONFIG_STATUS <<\_ACEOF
19149 ## --------------------- ##
19150 ## M4sh Initialization. ##
19151 ## --------------------- ##
19152
19153 # Be Bourne compatible
19154 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19155 emulate sh
19156 NULLCMD=:
19157 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19158 # is contrary to our usage. Disable this feature.
19159 alias -g '${1+"$@"}'='"$@"'
19160 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19161 set -o posix
19162 fi
19163 DUALCASE=1; export DUALCASE # for MKS sh
19164
19165 # Support unset when possible.
19166 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19167 as_unset=unset
19168 else
19169 as_unset=false
19170 fi
19171
19172
19173 # Work around bugs in pre-3.0 UWIN ksh.
19174 $as_unset ENV MAIL MAILPATH
19175 PS1='$ '
19176 PS2='> '
19177 PS4='+ '
19178
19179 # NLS nuisances.
19180 for as_var in \
19181 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19182 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19183 LC_TELEPHONE LC_TIME
19184 do
19185 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19186 eval $as_var=C; export $as_var
19187 else
19188 $as_unset $as_var
19189 fi
19190 done
19191
19192 # Required to use basename.
19193 if expr a : '\(a\)' >/dev/null 2>&1; then
19194 as_expr=expr
19195 else
19196 as_expr=false
19197 fi
19198
19199 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19200 as_basename=basename
19201 else
19202 as_basename=false
19203 fi
19204
19205
19206 # Name of the executable.
19207 as_me=`$as_basename "$0" ||
19208 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19209 X"$0" : 'X\(//\)$' \| \
19210 X"$0" : 'X\(/\)$' \| \
19211 . : '\(.\)' 2>/dev/null ||
19212 echo X/"$0" |
19213 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19214 /^X\/\(\/\/\)$/{ s//\1/; q; }
19215 /^X\/\(\/\).*/{ s//\1/; q; }
19216 s/.*/./; q'`
19217
19218
19219 # PATH needs CR, and LINENO needs CR and PATH.
19220 # Avoid depending upon Character Ranges.
19221 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19222 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19223 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19224 as_cr_digits='0123456789'
19225 as_cr_alnum=$as_cr_Letters$as_cr_digits
19226
19227 # The user is always right.
19228 if test "${PATH_SEPARATOR+set}" != set; then
19229 echo "#! /bin/sh" >conf$$.sh
19230 echo "exit 0" >>conf$$.sh
19231 chmod +x conf$$.sh
19232 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19233 PATH_SEPARATOR=';'
19234 else
19235 PATH_SEPARATOR=:
19236 fi
19237 rm -f conf$$.sh
19238 fi
19239
19240
19241 as_lineno_1=$LINENO
19242 as_lineno_2=$LINENO
19243 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19244 test "x$as_lineno_1" != "x$as_lineno_2" &&
19245 test "x$as_lineno_3" = "x$as_lineno_2" || {
19246 # Find who we are. Look in the path if we contain no path at all
19247 # relative or not.
19248 case $0 in
19249 *[\\/]* ) as_myself=$0 ;;
19250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19251 for as_dir in $PATH
19252 do
19253 IFS=$as_save_IFS
19254 test -z "$as_dir" && as_dir=.
19255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19256 done
19257
19258 ;;
19259 esac
19260 # We did not find ourselves, most probably we were run as `sh COMMAND'
19261 # in which case we are not to be found in the path.
19262 if test "x$as_myself" = x; then
19263 as_myself=$0
19264 fi
19265 if test ! -f "$as_myself"; then
19266 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19267 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19268 { (exit 1); exit 1; }; }
19269 fi
19270 case $CONFIG_SHELL in
19271 '')
19272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19273 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19274 do
19275 IFS=$as_save_IFS
19276 test -z "$as_dir" && as_dir=.
19277 for as_base in sh bash ksh sh5; do
19278 case $as_dir in
19279 /*)
19280 if ("$as_dir/$as_base" -c '
19281 as_lineno_1=$LINENO
19282 as_lineno_2=$LINENO
19283 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19284 test "x$as_lineno_1" != "x$as_lineno_2" &&
19285 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19286 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19287 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19288 CONFIG_SHELL=$as_dir/$as_base
19289 export CONFIG_SHELL
19290 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19291 fi;;
19292 esac
19293 done
19294 done
19295 ;;
19296 esac
19297
19298 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19299 # uniformly replaced by the line number. The first 'sed' inserts a
19300 # line-number line before each line; the second 'sed' does the real
19301 # work. The second script uses 'N' to pair each line-number line
19302 # with the numbered line, and appends trailing '-' during
19303 # substitution so that $LINENO is not a special case at line end.
19304 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19305 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19306 sed '=' <$as_myself |
19307 sed '
19308 N
19309 s,$,-,
19310 : loop
19311 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19312 t loop
19313 s,-$,,
19314 s,^['$as_cr_digits']*\n,,
19315 ' >$as_me.lineno &&
19316 chmod +x $as_me.lineno ||
19317 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19318 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19319 { (exit 1); exit 1; }; }
19320
19321 # Don't try to exec as it changes $[0], causing all sort of problems
19322 # (the dirname of $[0] is not the place where we might find the
19323 # original and so on. Autoconf is especially sensible to this).
19324 . ./$as_me.lineno
19325 # Exit status is that of the last command.
19326 exit
19327 }
19328
19329
19330 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19331 *c*,-n*) ECHO_N= ECHO_C='
19332 ' ECHO_T=' ' ;;
19333 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19334 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19335 esac
19336
19337 if expr a : '\(a\)' >/dev/null 2>&1; then
19338 as_expr=expr
19339 else
19340 as_expr=false
19341 fi
19342
19343 rm -f conf$$ conf$$.exe conf$$.file
19344 echo >conf$$.file
19345 if ln -s conf$$.file conf$$ 2>/dev/null; then
19346 # We could just check for DJGPP; but this test a) works b) is more generic
19347 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19348 if test -f conf$$.exe; then
19349 # Don't use ln at all; we don't have any links
19350 as_ln_s='cp -p'
19351 else
19352 as_ln_s='ln -s'
19353 fi
19354 elif ln conf$$.file conf$$ 2>/dev/null; then
19355 as_ln_s=ln
19356 else
19357 as_ln_s='cp -p'
19358 fi
19359 rm -f conf$$ conf$$.exe conf$$.file
19360
19361 if mkdir -p . 2>/dev/null; then
19362 as_mkdir_p=:
19363 else
19364 test -d ./-p && rmdir ./-p
19365 as_mkdir_p=false
19366 fi
19367
19368 as_executable_p="test -f"
19369
19370 # Sed expression to map a string onto a valid CPP name.
19371 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19372
19373 # Sed expression to map a string onto a valid variable name.
19374 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19375
19376
19377 # IFS
19378 # We need space, tab and new line, in precisely that order.
19379 as_nl='
19380 '
19381 IFS=" $as_nl"
19382
19383 # CDPATH.
19384 $as_unset CDPATH
19385
19386 exec 6>&1
19387
19388 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19389 # report actual input values of CONFIG_FILES etc. instead of their
19390 # values after options handling. Logging --version etc. is OK.
19391 exec 5>>config.log
19392 {
19393 echo
19394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19395 ## Running $as_me. ##
19396 _ASBOX
19397 } >&5
19398 cat >&5 <<_CSEOF
19399
19400 This file was extended by libxkbui $as_me 1.0.2, which was
19401 generated by GNU Autoconf 2.59. Invocation command line was
19402
19403 CONFIG_FILES = $CONFIG_FILES
19404 CONFIG_HEADERS = $CONFIG_HEADERS
19405 CONFIG_LINKS = $CONFIG_LINKS
19406 CONFIG_COMMANDS = $CONFIG_COMMANDS
19407 $ $0 $@
19408
19409 _CSEOF
19410 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19411 echo >&5
19412 _ACEOF
19413
19414 # Files that config.status was made for.
19415 if test -n "$ac_config_files"; then
19416 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19417 fi
19418
19419 if test -n "$ac_config_headers"; then
19420 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19421 fi
19422
19423 if test -n "$ac_config_links"; then
19424 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19425 fi
19426
19427 if test -n "$ac_config_commands"; then
19428 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19429 fi
19430
19431 cat >>$CONFIG_STATUS <<\_ACEOF
19432
19433 ac_cs_usage="\
19434 \`$as_me' instantiates files from templates according to the
19435 current configuration.
19436
19437 Usage: $0 [OPTIONS] [FILE]...
19438
19439 -h, --help print this help, then exit
19440 -V, --version print version number, then exit
19441 -q, --quiet do not print progress messages
19442 -d, --debug don't remove temporary files
19443 --recheck update $as_me by reconfiguring in the same conditions
19444 --file=FILE[:TEMPLATE]
19445 instantiate the configuration file FILE
19446 --header=FILE[:TEMPLATE]
19447 instantiate the configuration header FILE
19448
19449 Configuration files:
19450 $config_files
19451
19452 Configuration headers:
19453 $config_headers
19454
19455 Configuration commands:
19456 $config_commands
19457
19458 Report bugs to <bug-autoconf@gnu.org>."
19459 _ACEOF
19460
19461 cat >>$CONFIG_STATUS <<_ACEOF
19462 ac_cs_version="\\
19463 libxkbui config.status 1.0.2
19464 configured by $0, generated by GNU Autoconf 2.59,
19465 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19466
19467 Copyright (C) 2003 Free Software Foundation, Inc.
19468 This config.status script is free software; the Free Software Foundation
19469 gives unlimited permission to copy, distribute and modify it."
19470 srcdir=$srcdir
19471 INSTALL="$INSTALL"
19472 _ACEOF
19473
19474 cat >>$CONFIG_STATUS <<\_ACEOF
19475 # If no file are specified by the user, then we need to provide default
19476 # value. By we need to know if files were specified by the user.
19477 ac_need_defaults=:
19478 while test $# != 0
19479 do
19480 case $1 in
19481 --*=*)
19482 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19483 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19484 ac_shift=:
19485 ;;
19486 -*)
19487 ac_option=$1
19488 ac_optarg=$2
19489 ac_shift=shift
19490 ;;
19491 *) # This is not an option, so the user has probably given explicit
19492 # arguments.
19493 ac_option=$1
19494 ac_need_defaults=false;;
19495 esac
19496
19497 case $ac_option in
19498 # Handling of the options.
19499 _ACEOF
19500 cat >>$CONFIG_STATUS <<\_ACEOF
19501 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19502 ac_cs_recheck=: ;;
19503 --version | --vers* | -V )
19504 echo "$ac_cs_version"; exit 0 ;;
19505 --he | --h)
19506 # Conflict between --help and --header
19507 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19508 Try \`$0 --help' for more information." >&5
19509 echo "$as_me: error: ambiguous option: $1
19510 Try \`$0 --help' for more information." >&2;}
19511 { (exit 1); exit 1; }; };;
19512 --help | --hel | -h )
19513 echo "$ac_cs_usage"; exit 0 ;;
19514 --debug | --d* | -d )
19515 debug=: ;;
19516 --file | --fil | --fi | --f )
19517 $ac_shift
19518 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19519 ac_need_defaults=false;;
19520 --header | --heade | --head | --hea )
19521 $ac_shift
19522 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19523 ac_need_defaults=false;;
19524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19525 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19526 ac_cs_silent=: ;;
19527
19528 # This is an error.
19529 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19530 Try \`$0 --help' for more information." >&5
19531 echo "$as_me: error: unrecognized option: $1
19532 Try \`$0 --help' for more information." >&2;}
19533 { (exit 1); exit 1; }; } ;;
19534
19535 *) ac_config_targets="$ac_config_targets $1" ;;
19536
19537 esac
19538 shift
19539 done
19540
19541 ac_configure_extra_args=
19542
19543 if $ac_cs_silent; then
19544 exec 6>/dev/null
19545 ac_configure_extra_args="$ac_configure_extra_args --silent"
19546 fi
19547
19548 _ACEOF
19549 cat >>$CONFIG_STATUS <<_ACEOF
19550 if \$ac_cs_recheck; then
19551 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19552 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19553 fi
19554
19555 _ACEOF
19556
19557 cat >>$CONFIG_STATUS <<_ACEOF
19558 #
19559 # INIT-COMMANDS section.
19560 #
19561
19562 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19563
19564 _ACEOF
19565
19566
19567
19568 cat >>$CONFIG_STATUS <<\_ACEOF
19569 for ac_config_target in $ac_config_targets
19570 do
19571 case "$ac_config_target" in
19572 # Handling of arguments.
19573 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19574 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19575 "xkbui.pc" ) CONFIG_FILES="$CONFIG_FILES xkbui.pc" ;;
19576 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19577 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19578 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19579 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19580 { (exit 1); exit 1; }; };;
19581 esac
19582 done
19583
19584 # If the user did not use the arguments to specify the items to instantiate,
19585 # then the envvar interface is used. Set only those that are not.
19586 # We use the long form for the default assignment because of an extremely
19587 # bizarre bug on SunOS 4.1.3.
19588 if $ac_need_defaults; then
19589 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19590 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19591 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19592 fi
19593
19594 # Have a temporary directory for convenience. Make it in the build tree
19595 # simply because there is no reason to put it here, and in addition,
19596 # creating and moving files from /tmp can sometimes cause problems.
19597 # Create a temporary directory, and hook for its removal unless debugging.
19598 $debug ||
19599 {
19600 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19601 trap '{ (exit 1); exit 1; }' 1 2 13 15
19602 }
19603
19604 # Create a (secure) tmp directory for tmp files.
19605
19606 {
19607 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19608 test -n "$tmp" && test -d "$tmp"
19609 } ||
19610 {
19611 tmp=./confstat$$-$RANDOM
19612 (umask 077 && mkdir $tmp)
19613 } ||
19614 {
19615 echo "$me: cannot create a temporary directory in ." >&2
19616 { (exit 1); exit 1; }
19617 }
19618
19619 _ACEOF
19620
19621 cat >>$CONFIG_STATUS <<_ACEOF
19622
19623 #
19624 # CONFIG_FILES section.
19625 #
19626
19627 # No need to generate the scripts if there are no CONFIG_FILES.
19628 # This happens for instance when ./config.status config.h
19629 if test -n "\$CONFIG_FILES"; then
19630 # Protect against being on the right side of a sed subst in config.status.
19631 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19632 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19633 s,@SHELL@,$SHELL,;t t
19634 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19635 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19636 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19637 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19638 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19639 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19640 s,@exec_prefix@,$exec_prefix,;t t
19641 s,@prefix@,$prefix,;t t
19642 s,@program_transform_name@,$program_transform_name,;t t
19643 s,@bindir@,$bindir,;t t
19644 s,@sbindir@,$sbindir,;t t
19645 s,@libexecdir@,$libexecdir,;t t
19646 s,@datadir@,$datadir,;t t
19647 s,@sysconfdir@,$sysconfdir,;t t
19648 s,@sharedstatedir@,$sharedstatedir,;t t
19649 s,@localstatedir@,$localstatedir,;t t
19650 s,@libdir@,$libdir,;t t
19651 s,@includedir@,$includedir,;t t
19652 s,@oldincludedir@,$oldincludedir,;t t
19653 s,@infodir@,$infodir,;t t
19654 s,@mandir@,$mandir,;t t
19655 s,@build_alias@,$build_alias,;t t
19656 s,@host_alias@,$host_alias,;t t
19657 s,@target_alias@,$target_alias,;t t
19658 s,@DEFS@,$DEFS,;t t
19659 s,@ECHO_C@,$ECHO_C,;t t
19660 s,@ECHO_N@,$ECHO_N,;t t
19661 s,@ECHO_T@,$ECHO_T,;t t
19662 s,@LIBS@,$LIBS,;t t
19663 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19664 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19665 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19666 s,@CYGPATH_W@,$CYGPATH_W,;t t
19667 s,@PACKAGE@,$PACKAGE,;t t
19668 s,@VERSION@,$VERSION,;t t
19669 s,@ACLOCAL@,$ACLOCAL,;t t
19670 s,@AUTOCONF@,$AUTOCONF,;t t
19671 s,@AUTOMAKE@,$AUTOMAKE,;t t
19672 s,@AUTOHEADER@,$AUTOHEADER,;t t
19673 s,@MAKEINFO@,$MAKEINFO,;t t
19674 s,@install_sh@,$install_sh,;t t
19675 s,@STRIP@,$STRIP,;t t
19676 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19677 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19678 s,@mkdir_p@,$mkdir_p,;t t
19679 s,@AWK@,$AWK,;t t
19680 s,@SET_MAKE@,$SET_MAKE,;t t
19681 s,@am__leading_dot@,$am__leading_dot,;t t
19682 s,@AMTAR@,$AMTAR,;t t
19683 s,@am__tar@,$am__tar,;t t
19684 s,@am__untar@,$am__untar,;t t
19685 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
19686 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
19687 s,@MAINT@,$MAINT,;t t
19688 s,@CC@,$CC,;t t
19689 s,@CFLAGS@,$CFLAGS,;t t
19690 s,@LDFLAGS@,$LDFLAGS,;t t
19691 s,@CPPFLAGS@,$CPPFLAGS,;t t
19692 s,@ac_ct_CC@,$ac_ct_CC,;t t
19693 s,@EXEEXT@,$EXEEXT,;t t
19694 s,@OBJEXT@,$OBJEXT,;t t
19695 s,@DEPDIR@,$DEPDIR,;t t
19696 s,@am__include@,$am__include,;t t
19697 s,@am__quote@,$am__quote,;t t
19698 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19699 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19700 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19701 s,@CCDEPMODE@,$CCDEPMODE,;t t
19702 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19703 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19704 s,@build@,$build,;t t
19705 s,@build_cpu@,$build_cpu,;t t
19706 s,@build_vendor@,$build_vendor,;t t
19707 s,@build_os@,$build_os,;t t
19708 s,@host@,$host,;t t
19709 s,@host_cpu@,$host_cpu,;t t
19710 s,@host_vendor@,$host_vendor,;t t
19711 s,@host_os@,$host_os,;t t
19712 s,@EGREP@,$EGREP,;t t
19713 s,@LN_S@,$LN_S,;t t
19714 s,@ECHO@,$ECHO,;t t
19715 s,@AR@,$AR,;t t
19716 s,@ac_ct_AR@,$ac_ct_AR,;t t
19717 s,@RANLIB@,$RANLIB,;t t
19718 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19719 s,@CPP@,$CPP,;t t
19720 s,@CXX@,$CXX,;t t
19721 s,@CXXFLAGS@,$CXXFLAGS,;t t
19722 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19723 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19724 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19725 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19726 s,@CXXCPP@,$CXXCPP,;t t
19727 s,@F77@,$F77,;t t
19728 s,@FFLAGS@,$FFLAGS,;t t
19729 s,@ac_ct_F77@,$ac_ct_F77,;t t
19730 s,@LIBTOOL@,$LIBTOOL,;t t
19731 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19732 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19733 s,@XKBUI_CFLAGS@,$XKBUI_CFLAGS,;t t
19734 s,@XKBUI_LIBS@,$XKBUI_LIBS,;t t
19735 s,@LIBOBJS@,$LIBOBJS,;t t
19736 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19737 CEOF
19738
19739 _ACEOF
19740
19741 cat >>$CONFIG_STATUS <<\_ACEOF
19742 # Split the substitutions into bite-sized pieces for seds with
19743 # small command number limits, like on Digital OSF/1 and HP-UX.
19744 ac_max_sed_lines=48
19745 ac_sed_frag=1 # Number of current file.
19746 ac_beg=1 # First line for current file.
19747 ac_end=$ac_max_sed_lines # Line after last line for current file.
19748 ac_more_lines=:
19749 ac_sed_cmds=
19750 while $ac_more_lines; do
19751 if test $ac_beg -gt 1; then
19752 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19753 else
19754 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19755 fi
19756 if test ! -s $tmp/subs.frag; then
19757 ac_more_lines=false
19758 else
19759 # The purpose of the label and of the branching condition is to
19760 # speed up the sed processing (if there are no `@' at all, there
19761 # is no need to browse any of the substitutions).
19762 # These are the two extra sed commands mentioned above.
19763 (echo ':t
19764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19765 if test -z "$ac_sed_cmds"; then
19766 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19767 else
19768 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19769 fi
19770 ac_sed_frag=`expr $ac_sed_frag + 1`
19771 ac_beg=$ac_end
19772 ac_end=`expr $ac_end + $ac_max_sed_lines`
19773 fi
19774 done
19775 if test -z "$ac_sed_cmds"; then
19776 ac_sed_cmds=cat
19777 fi
19778 fi # test -n "$CONFIG_FILES"
19779
19780 _ACEOF
19781 cat >>$CONFIG_STATUS <<\_ACEOF
19782 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19783 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19784 case $ac_file in
19785 - | *:- | *:-:* ) # input from stdin
19786 cat >$tmp/stdin
19787 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19788 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19789 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19791 * ) ac_file_in=$ac_file.in ;;
19792 esac
19793
19794 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19795 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19796 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19797 X"$ac_file" : 'X\(//\)[^/]' \| \
19798 X"$ac_file" : 'X\(//\)$' \| \
19799 X"$ac_file" : 'X\(/\)' \| \
19800 . : '\(.\)' 2>/dev/null ||
19801 echo X"$ac_file" |
19802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19804 /^X\(\/\/\)$/{ s//\1/; q; }
19805 /^X\(\/\).*/{ s//\1/; q; }
19806 s/.*/./; q'`
19807 { if $as_mkdir_p; then
19808 mkdir -p "$ac_dir"
19809 else
19810 as_dir="$ac_dir"
19811 as_dirs=
19812 while test ! -d "$as_dir"; do
19813 as_dirs="$as_dir $as_dirs"
19814 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19816 X"$as_dir" : 'X\(//\)[^/]' \| \
19817 X"$as_dir" : 'X\(//\)$' \| \
19818 X"$as_dir" : 'X\(/\)' \| \
19819 . : '\(.\)' 2>/dev/null ||
19820 echo X"$as_dir" |
19821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19823 /^X\(\/\/\)$/{ s//\1/; q; }
19824 /^X\(\/\).*/{ s//\1/; q; }
19825 s/.*/./; q'`
19826 done
19827 test ! -n "$as_dirs" || mkdir $as_dirs
19828 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19830 { (exit 1); exit 1; }; }; }
19831
19832 ac_builddir=.
19833
19834 if test "$ac_dir" != .; then
19835 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19836 # A "../" for each directory in $ac_dir_suffix.
19837 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19838 else
19839 ac_dir_suffix= ac_top_builddir=
19840 fi
19841
19842 case $srcdir in
19843 .) # No --srcdir option. We are building in place.
19844 ac_srcdir=.
19845 if test -z "$ac_top_builddir"; then
19846 ac_top_srcdir=.
19847 else
19848 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19849 fi ;;
19850 [\\/]* | ?:[\\/]* ) # Absolute path.
19851 ac_srcdir=$srcdir$ac_dir_suffix;
19852 ac_top_srcdir=$srcdir ;;
19853 *) # Relative path.
19854 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19855 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19856 esac
19857
19858 # Do not use `cd foo && pwd` to compute absolute paths, because
19859 # the directories may not exist.
19860 case `pwd` in
19861 .) ac_abs_builddir="$ac_dir";;
19862 *)
19863 case "$ac_dir" in
19864 .) ac_abs_builddir=`pwd`;;
19865 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19866 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19867 esac;;
19868 esac
19869 case $ac_abs_builddir in
19870 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19871 *)
19872 case ${ac_top_builddir}. in
19873 .) ac_abs_top_builddir=$ac_abs_builddir;;
19874 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19875 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19876 esac;;
19877 esac
19878 case $ac_abs_builddir in
19879 .) ac_abs_srcdir=$ac_srcdir;;
19880 *)
19881 case $ac_srcdir in
19882 .) ac_abs_srcdir=$ac_abs_builddir;;
19883 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19884 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19885 esac;;
19886 esac
19887 case $ac_abs_builddir in
19888 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19889 *)
19890 case $ac_top_srcdir in
19891 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19892 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19893 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19894 esac;;
19895 esac
19896
19897
19898 case $INSTALL in
19899 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19900 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19901 esac
19902
19903 if test x"$ac_file" != x-; then
19904 { echo "$as_me:$LINENO: creating $ac_file" >&5
19905 echo "$as_me: creating $ac_file" >&6;}
19906 rm -f "$ac_file"
19907 fi
19908 # Let's still pretend it is `configure' which instantiates (i.e., don't
19909 # use $as_me), people would be surprised to read:
19910 # /* config.h. Generated by config.status. */
19911 if test x"$ac_file" = x-; then
19912 configure_input=
19913 else
19914 configure_input="$ac_file. "
19915 fi
19916 configure_input=$configure_input"Generated from `echo $ac_file_in |
19917 sed 's,.*/,,'` by configure."
19918
19919 # First look for the input files in the build tree, otherwise in the
19920 # src tree.
19921 ac_file_inputs=`IFS=:
19922 for f in $ac_file_in; do
19923 case $f in
19924 -) echo $tmp/stdin ;;
19925 [\\/$]*)
19926 # Absolute (can't be DOS-style, as IFS=:)
19927 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19928 echo "$as_me: error: cannot find input file: $f" >&2;}
19929 { (exit 1); exit 1; }; }
19930 echo "$f";;
19931 *) # Relative
19932 if test -f "$f"; then
19933 # Build tree
19934 echo "$f"
19935 elif test -f "$srcdir/$f"; then
19936 # Source tree
19937 echo "$srcdir/$f"
19938 else
19939 # /dev/null tree
19940 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19941 echo "$as_me: error: cannot find input file: $f" >&2;}
19942 { (exit 1); exit 1; }; }
19943 fi;;
19944 esac
19945 done` || { (exit 1); exit 1; }
19946 _ACEOF
19947 cat >>$CONFIG_STATUS <<_ACEOF
19948 sed "$ac_vpsub
19949 $extrasub
19950 _ACEOF
19951 cat >>$CONFIG_STATUS <<\_ACEOF
19952 :t
19953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19954 s,@configure_input@,$configure_input,;t t
19955 s,@srcdir@,$ac_srcdir,;t t
19956 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19957 s,@top_srcdir@,$ac_top_srcdir,;t t
19958 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19959 s,@builddir@,$ac_builddir,;t t
19960 s,@abs_builddir@,$ac_abs_builddir,;t t
19961 s,@top_builddir@,$ac_top_builddir,;t t
19962 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19963 s,@INSTALL@,$ac_INSTALL,;t t
19964 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19965 rm -f $tmp/stdin
19966 if test x"$ac_file" != x-; then
19967 mv $tmp/out $ac_file
19968 else
19969 cat $tmp/out
19970 rm -f $tmp/out
19971 fi
19972
19973 done
19974 _ACEOF
19975 cat >>$CONFIG_STATUS <<\_ACEOF
19976
19977 #
19978 # CONFIG_HEADER section.
19979 #
19980
19981 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19982 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19983 #
19984 # ac_d sets the value in "#define NAME VALUE" lines.
19985 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19986 ac_dB='[ ].*$,\1#\2'
19987 ac_dC=' '
19988 ac_dD=',;t'
19989 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19990 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19991 ac_uB='$,\1#\2define\3'
19992 ac_uC=' '
19993 ac_uD=',;t'
19994
19995 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19996 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19997 case $ac_file in
19998 - | *:- | *:-:* ) # input from stdin
19999 cat >$tmp/stdin
20000 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20002 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20003 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20004 * ) ac_file_in=$ac_file.in ;;
20005 esac
20006
20007 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20008 echo "$as_me: creating $ac_file" >&6;}
20009
20010 # First look for the input files in the build tree, otherwise in the
20011 # src tree.
20012 ac_file_inputs=`IFS=:
20013 for f in $ac_file_in; do
20014 case $f in
20015 -) echo $tmp/stdin ;;
20016 [\\/$]*)
20017 # Absolute (can't be DOS-style, as IFS=:)
20018 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20019 echo "$as_me: error: cannot find input file: $f" >&2;}
20020 { (exit 1); exit 1; }; }
20021 # Do quote $f, to prevent DOS paths from being IFS'd.
20022 echo "$f";;
20023 *) # Relative
20024 if test -f "$f"; then
20025 # Build tree
20026 echo "$f"
20027 elif test -f "$srcdir/$f"; then
20028 # Source tree
20029 echo "$srcdir/$f"
20030 else
20031 # /dev/null tree
20032 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20033 echo "$as_me: error: cannot find input file: $f" >&2;}
20034 { (exit 1); exit 1; }; }
20035 fi;;
20036 esac
20037 done` || { (exit 1); exit 1; }
20038 # Remove the trailing spaces.
20039 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20040
20041 _ACEOF
20042
20043 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20044 # `conftest.undefs', that substitutes the proper values into
20045 # config.h.in to produce config.h. The first handles `#define'
20046 # templates, and the second `#undef' templates.
20047 # And first: Protect against being on the right side of a sed subst in
20048 # config.status. Protect against being in an unquoted here document
20049 # in config.status.
20050 rm -f conftest.defines conftest.undefs
20051 # Using a here document instead of a string reduces the quoting nightmare.
20052 # Putting comments in sed scripts is not portable.
20053 #
20054 # `end' is used to avoid that the second main sed command (meant for
20055 # 0-ary CPP macros) applies to n-ary macro definitions.
20056 # See the Autoconf documentation for `clear'.
20057 cat >confdef2sed.sed <<\_ACEOF
20058 s/[\\&,]/\\&/g
20059 s,[\\$`],\\&,g
20060 t clear
20061 : clear
20062 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20063 t end
20064 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20065 : end
20066 _ACEOF
20067 # If some macros were called several times there might be several times
20068 # the same #defines, which is useless. Nevertheless, we may not want to
20069 # sort them, since we want the *last* AC-DEFINE to be honored.
20070 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20071 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20072 rm -f confdef2sed.sed
20073
20074 # This sed command replaces #undef with comments. This is necessary, for
20075 # example, in the case of _POSIX_SOURCE, which is predefined and required
20076 # on some systems where configure will not decide to define it.
20077 cat >>conftest.undefs <<\_ACEOF
20078 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20079 _ACEOF
20080
20081 # Break up conftest.defines because some shells have a limit on the size
20082 # of here documents, and old seds have small limits too (100 cmds).
20083 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20084 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20085 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20086 echo ' :' >>$CONFIG_STATUS
20087 rm -f conftest.tail
20088 while grep . conftest.defines >/dev/null
20089 do
20090 # Write a limited-size here document to $tmp/defines.sed.
20091 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20092 # Speed up: don't consider the non `#define' lines.
20093 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20094 # Work around the forget-to-reset-the-flag bug.
20095 echo 't clr' >>$CONFIG_STATUS
20096 echo ': clr' >>$CONFIG_STATUS
20097 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20098 echo 'CEOF
20099 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20100 rm -f $tmp/in
20101 mv $tmp/out $tmp/in
20102 ' >>$CONFIG_STATUS
20103 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20104 rm -f conftest.defines
20105 mv conftest.tail conftest.defines
20106 done
20107 rm -f conftest.defines
20108 echo ' fi # grep' >>$CONFIG_STATUS
20109 echo >>$CONFIG_STATUS
20110
20111 # Break up conftest.undefs because some shells have a limit on the size
20112 # of here documents, and old seds have small limits too (100 cmds).
20113 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20114 rm -f conftest.tail
20115 while grep . conftest.undefs >/dev/null
20116 do
20117 # Write a limited-size here document to $tmp/undefs.sed.
20118 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20119 # Speed up: don't consider the non `#undef'
20120 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20121 # Work around the forget-to-reset-the-flag bug.
20122 echo 't clr' >>$CONFIG_STATUS
20123 echo ': clr' >>$CONFIG_STATUS
20124 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20125 echo 'CEOF
20126 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20127 rm -f $tmp/in
20128 mv $tmp/out $tmp/in
20129 ' >>$CONFIG_STATUS
20130 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20131 rm -f conftest.undefs
20132 mv conftest.tail conftest.undefs
20133 done
20134 rm -f conftest.undefs
20135
20136 cat >>$CONFIG_STATUS <<\_ACEOF
20137 # Let's still pretend it is `configure' which instantiates (i.e., don't
20138 # use $as_me), people would be surprised to read:
20139 # /* config.h. Generated by config.status. */
20140 if test x"$ac_file" = x-; then
20141 echo "/* Generated by configure. */" >$tmp/config.h
20142 else
20143 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20144 fi
20145 cat $tmp/in >>$tmp/config.h
20146 rm -f $tmp/in
20147 if test x"$ac_file" != x-; then
20148 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20150 echo "$as_me: $ac_file is unchanged" >&6;}
20151 else
20152 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20153 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20154 X"$ac_file" : 'X\(//\)[^/]' \| \
20155 X"$ac_file" : 'X\(//\)$' \| \
20156 X"$ac_file" : 'X\(/\)' \| \
20157 . : '\(.\)' 2>/dev/null ||
20158 echo X"$ac_file" |
20159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20160 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20161 /^X\(\/\/\)$/{ s//\1/; q; }
20162 /^X\(\/\).*/{ s//\1/; q; }
20163 s/.*/./; q'`
20164 { if $as_mkdir_p; then
20165 mkdir -p "$ac_dir"
20166 else
20167 as_dir="$ac_dir"
20168 as_dirs=
20169 while test ! -d "$as_dir"; do
20170 as_dirs="$as_dir $as_dirs"
20171 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20172 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20173 X"$as_dir" : 'X\(//\)[^/]' \| \
20174 X"$as_dir" : 'X\(//\)$' \| \
20175 X"$as_dir" : 'X\(/\)' \| \
20176 . : '\(.\)' 2>/dev/null ||
20177 echo X"$as_dir" |
20178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20180 /^X\(\/\/\)$/{ s//\1/; q; }
20181 /^X\(\/\).*/{ s//\1/; q; }
20182 s/.*/./; q'`
20183 done
20184 test ! -n "$as_dirs" || mkdir $as_dirs
20185 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20186 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20187 { (exit 1); exit 1; }; }; }
20188
20189 rm -f $ac_file
20190 mv $tmp/config.h $ac_file
20191 fi
20192 else
20193 cat $tmp/config.h
20194 rm -f $tmp/config.h
20195 fi
20196 # Compute $ac_file's index in $config_headers.
20197 _am_stamp_count=1
20198 for _am_header in $config_headers :; do
20199 case $_am_header in
20200 $ac_file | $ac_file:* )
20201 break ;;
20202 * )
20203 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20204 esac
20205 done
20206 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20207 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20208 X$ac_file : 'X\(//\)[^/]' \| \
20209 X$ac_file : 'X\(//\)$' \| \
20210 X$ac_file : 'X\(/\)' \| \
20211 . : '\(.\)' 2>/dev/null ||
20212 echo X$ac_file |
20213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20215 /^X\(\/\/\)$/{ s//\1/; q; }
20216 /^X\(\/\).*/{ s//\1/; q; }
20217 s/.*/./; q'`/stamp-h$_am_stamp_count
20218 done
20219 _ACEOF
20220 cat >>$CONFIG_STATUS <<\_ACEOF
20221
20222 #
20223 # CONFIG_COMMANDS section.
20224 #
20225 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20226 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20227 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20228 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20229 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20230 X"$ac_dest" : 'X\(//\)[^/]' \| \
20231 X"$ac_dest" : 'X\(//\)$' \| \
20232 X"$ac_dest" : 'X\(/\)' \| \
20233 . : '\(.\)' 2>/dev/null ||
20234 echo X"$ac_dest" |
20235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20237 /^X\(\/\/\)$/{ s//\1/; q; }
20238 /^X\(\/\).*/{ s//\1/; q; }
20239 s/.*/./; q'`
20240 { if $as_mkdir_p; then
20241 mkdir -p "$ac_dir"
20242 else
20243 as_dir="$ac_dir"
20244 as_dirs=
20245 while test ! -d "$as_dir"; do
20246 as_dirs="$as_dir $as_dirs"
20247 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20249 X"$as_dir" : 'X\(//\)[^/]' \| \
20250 X"$as_dir" : 'X\(//\)$' \| \
20251 X"$as_dir" : 'X\(/\)' \| \
20252 . : '\(.\)' 2>/dev/null ||
20253 echo X"$as_dir" |
20254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20256 /^X\(\/\/\)$/{ s//\1/; q; }
20257 /^X\(\/\).*/{ s//\1/; q; }
20258 s/.*/./; q'`
20259 done
20260 test ! -n "$as_dirs" || mkdir $as_dirs
20261 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20262 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20263 { (exit 1); exit 1; }; }; }
20264
20265 ac_builddir=.
20266
20267 if test "$ac_dir" != .; then
20268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20269 # A "../" for each directory in $ac_dir_suffix.
20270 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20271 else
20272 ac_dir_suffix= ac_top_builddir=
20273 fi
20274
20275 case $srcdir in
20276 .) # No --srcdir option. We are building in place.
20277 ac_srcdir=.
20278 if test -z "$ac_top_builddir"; then
20279 ac_top_srcdir=.
20280 else
20281 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20282 fi ;;
20283 [\\/]* | ?:[\\/]* ) # Absolute path.
20284 ac_srcdir=$srcdir$ac_dir_suffix;
20285 ac_top_srcdir=$srcdir ;;
20286 *) # Relative path.
20287 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20288 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20289 esac
20290
20291 # Do not use `cd foo && pwd` to compute absolute paths, because
20292 # the directories may not exist.
20293 case `pwd` in
20294 .) ac_abs_builddir="$ac_dir";;
20295 *)
20296 case "$ac_dir" in
20297 .) ac_abs_builddir=`pwd`;;
20298 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20299 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20300 esac;;
20301 esac
20302 case $ac_abs_builddir in
20303 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20304 *)
20305 case ${ac_top_builddir}. in
20306 .) ac_abs_top_builddir=$ac_abs_builddir;;
20307 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20308 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20309 esac;;
20310 esac
20311 case $ac_abs_builddir in
20312 .) ac_abs_srcdir=$ac_srcdir;;
20313 *)
20314 case $ac_srcdir in
20315 .) ac_abs_srcdir=$ac_abs_builddir;;
20316 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20317 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20318 esac;;
20319 esac
20320 case $ac_abs_builddir in
20321 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20322 *)
20323 case $ac_top_srcdir in
20324 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20325 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20326 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20327 esac;;
20328 esac
20329
20330
20331 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20332 echo "$as_me: executing $ac_dest commands" >&6;}
20333 case $ac_dest in
20334 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20335 # Strip MF so we end up with the name of the file.
20336 mf=`echo "$mf" | sed -e 's/:.*$//'`
20337 # Check whether this is an Automake generated Makefile or not.
20338 # We used to match only the files named `Makefile.in', but
20339 # some people rename them; so instead we look at the file content.
20340 # Grep'ing the first line is not enough: some people post-process
20341 # each Makefile.in and add a new line on top of each file to say so.
20342 # So let's grep whole file.
20343 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20344 dirpart=`(dirname "$mf") 2>/dev/null ||
20345 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20346 X"$mf" : 'X\(//\)[^/]' \| \
20347 X"$mf" : 'X\(//\)$' \| \
20348 X"$mf" : 'X\(/\)' \| \
20349 . : '\(.\)' 2>/dev/null ||
20350 echo X"$mf" |
20351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20352 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20353 /^X\(\/\/\)$/{ s//\1/; q; }
20354 /^X\(\/\).*/{ s//\1/; q; }
20355 s/.*/./; q'`
20356 else
20357 continue
20358 fi
20359 # Extract the definition of DEPDIR, am__include, and am__quote
20360 # from the Makefile without running `make'.
20361 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20362 test -z "$DEPDIR" && continue
20363 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20364 test -z "am__include" && continue
20365 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20366 # When using ansi2knr, U may be empty or an underscore; expand it
20367 U=`sed -n 's/^U = //p' < "$mf"`
20368 # Find all dependency output files, they are included files with
20369 # $(DEPDIR) in their names. We invoke sed twice because it is the
20370 # simplest approach to changing $(DEPDIR) to its actual value in the
20371 # expansion.
20372 for file in `sed -n "
20373 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20374 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20375 # Make sure the directory exists.
20376 test -f "$dirpart/$file" && continue
20377 fdir=`(dirname "$file") 2>/dev/null ||
20378 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20379 X"$file" : 'X\(//\)[^/]' \| \
20380 X"$file" : 'X\(//\)$' \| \
20381 X"$file" : 'X\(/\)' \| \
20382 . : '\(.\)' 2>/dev/null ||
20383 echo X"$file" |
20384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20386 /^X\(\/\/\)$/{ s//\1/; q; }
20387 /^X\(\/\).*/{ s//\1/; q; }
20388 s/.*/./; q'`
20389 { if $as_mkdir_p; then
20390 mkdir -p $dirpart/$fdir
20391 else
20392 as_dir=$dirpart/$fdir
20393 as_dirs=
20394 while test ! -d "$as_dir"; do
20395 as_dirs="$as_dir $as_dirs"
20396 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20397 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20398 X"$as_dir" : 'X\(//\)[^/]' \| \
20399 X"$as_dir" : 'X\(//\)$' \| \
20400 X"$as_dir" : 'X\(/\)' \| \
20401 . : '\(.\)' 2>/dev/null ||
20402 echo X"$as_dir" |
20403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20404 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20405 /^X\(\/\/\)$/{ s//\1/; q; }
20406 /^X\(\/\).*/{ s//\1/; q; }
20407 s/.*/./; q'`
20408 done
20409 test ! -n "$as_dirs" || mkdir $as_dirs
20410 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20411 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20412 { (exit 1); exit 1; }; }; }
20413
20414 # echo "creating $dirpart/$file"
20415 echo '# dummy' > "$dirpart/$file"
20416 done
20417 done
20418 ;;
20419 esac
20420 done
20421 _ACEOF
20422
20423 cat >>$CONFIG_STATUS <<\_ACEOF
20424
20425 { (exit 0); exit 0; }
20426 _ACEOF
20427 chmod +x $CONFIG_STATUS
20428 ac_clean_files=$ac_clean_files_save
20429
20430
20431 # configure is writing to config.log, and then calls config.status.
20432 # config.status does its own redirection, appending to config.log.
20433 # Unfortunately, on DOS this fails, as config.log is still kept open
20434 # by configure, so config.status won't be able to write to it; its
20435 # output is simply discarded. So we exec the FD to /dev/null,
20436 # effectively closing config.log, so it can be properly (re)opened and
20437 # appended to by config.status. When coming back to configure, we
20438 # need to make the FD available again.
20439 if test "$no_create" != yes; then
20440 ac_cs_success=:
20441 ac_config_status_args=
20442 test "$silent" = yes &&
20443 ac_config_status_args="$ac_config_status_args --quiet"
20444 exec 5>/dev/null
20445 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20446 exec 5>>config.log
20447 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20448 # would make configure fail if this is the last instruction.
20449 $ac_cs_success || { (exit 1); exit 1; }
20450 fi
20451
20452