configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libXdamage 1.1.1.
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='libXdamage'
425 PACKAGE_TARNAME='libXdamage'
426 PACKAGE_VERSION='1.1.1'
427 PACKAGE_STRING='libXdamage 1.1.1'
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 X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS DAMAGEEXT_VERSION XDAMAGE_CFLAGS XDAMAGE_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_X_CFLAGS_set=${X_CFLAGS+set}
953 ac_env_X_CFLAGS_value=$X_CFLAGS
954 ac_cv_env_X_CFLAGS_set=${X_CFLAGS+set}
955 ac_cv_env_X_CFLAGS_value=$X_CFLAGS
956 ac_env_X_LIBS_set=${X_LIBS+set}
957 ac_env_X_LIBS_value=$X_LIBS
958 ac_cv_env_X_LIBS_set=${X_LIBS+set}
959 ac_cv_env_X_LIBS_value=$X_LIBS
960 ac_env_XDAMAGE_CFLAGS_set=${XDAMAGE_CFLAGS+set}
961 ac_env_XDAMAGE_CFLAGS_value=$XDAMAGE_CFLAGS
962 ac_cv_env_XDAMAGE_CFLAGS_set=${XDAMAGE_CFLAGS+set}
963 ac_cv_env_XDAMAGE_CFLAGS_value=$XDAMAGE_CFLAGS
964 ac_env_XDAMAGE_LIBS_set=${XDAMAGE_LIBS+set}
965 ac_env_XDAMAGE_LIBS_value=$XDAMAGE_LIBS
966 ac_cv_env_XDAMAGE_LIBS_set=${XDAMAGE_LIBS+set}
967 ac_cv_env_XDAMAGE_LIBS_value=$XDAMAGE_LIBS
968
969 #
970 # Report the --help message.
971 #
972 if test "$ac_init_help" = "long"; then
973 # Omit some internal or obsolete options to make the list less imposing.
974 # This message is too long to be a string in the A/UX 3.1 sh.
975 cat <<_ACEOF
976 \`configure' configures libXdamage 1.1.1 to adapt to many kinds of systems.
977
978 Usage: $0 [OPTION]... [VAR=VALUE]...
979
980 To assign environment variables (e.g., CC, CFLAGS...), specify them as
981 VAR=VALUE. See below for descriptions of some of the useful variables.
982
983 Defaults for the options are specified in brackets.
984
985 Configuration:
986 -h, --help display this help and exit
987 --help=short display options specific to this package
988 --help=recursive display the short help of all the included packages
989 -V, --version display version information and exit
990 -q, --quiet, --silent do not print \`checking...' messages
991 --cache-file=FILE cache test results in FILE [disabled]
992 -C, --config-cache alias for \`--cache-file=config.cache'
993 -n, --no-create do not create output files
994 --srcdir=DIR find the sources in DIR [configure dir or \`..']
995
996 _ACEOF
997
998 cat <<_ACEOF
999 Installation directories:
1000 --prefix=PREFIX install architecture-independent files in PREFIX
1001 [$ac_default_prefix]
1002 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1003 [PREFIX]
1004
1005 By default, \`make install' will install all the files in
1006 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1007 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1008 for instance \`--prefix=\$HOME'.
1009
1010 For better control, use the options below.
1011
1012 Fine tuning of the installation directories:
1013 --bindir=DIR user executables [EPREFIX/bin]
1014 --sbindir=DIR system admin executables [EPREFIX/sbin]
1015 --libexecdir=DIR program executables [EPREFIX/libexec]
1016 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1017 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1018 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1019 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1020 --libdir=DIR object code libraries [EPREFIX/lib]
1021 --includedir=DIR C header files [PREFIX/include]
1022 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1023 --infodir=DIR info documentation [PREFIX/info]
1024 --mandir=DIR man documentation [PREFIX/man]
1025 _ACEOF
1026
1027 cat <<\_ACEOF
1028
1029 Program names:
1030 --program-prefix=PREFIX prepend PREFIX to installed program names
1031 --program-suffix=SUFFIX append SUFFIX to installed program names
1032 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1033
1034 X features:
1035 --x-includes=DIR X include files are in DIR
1036 --x-libraries=DIR X library files are in DIR
1037
1038 System types:
1039 --build=BUILD configure for building on BUILD [guessed]
1040 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1041 _ACEOF
1042 fi
1043
1044 if test -n "$ac_init_help"; then
1045 case $ac_init_help in
1046 short | recursive ) echo "Configuration of libXdamage 1.1.1:";;
1047 esac
1048 cat <<\_ACEOF
1049
1050 Optional Features:
1051 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1052 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1053 --enable-maintainer-mode enable make rules and dependencies not useful
1054 (and sometimes confusing) to the casual installer
1055 --disable-dependency-tracking speeds up one-time build
1056 --enable-dependency-tracking do not reject slow dependency extractors
1057 --enable-shared[=PKGS]
1058 build shared libraries [default=yes]
1059 --enable-static[=PKGS]
1060 build static libraries [default=yes]
1061 --enable-fast-install[=PKGS]
1062 optimize for fast installation [default=yes]
1063 --disable-libtool-lock avoid locking (might break parallel builds)
1064
1065 Optional Packages:
1066 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1067 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1068 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1069 --with-pic try to use only PIC/non-PIC objects [default=use
1070 both]
1071 --with-tags[=TAGS]
1072 include additional configurations [automatic]
1073 --with-x use the X Window System
1074 --with-release-version=STRING
1075 Use release version string in package name
1076
1077 Some influential environment variables:
1078 CC C compiler command
1079 CFLAGS C compiler flags
1080 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1081 nonstandard directory <lib dir>
1082 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1083 headers in a nonstandard directory <include dir>
1084 CPP C preprocessor
1085 CXX C++ compiler command
1086 CXXFLAGS C++ compiler flags
1087 CXXCPP C++ preprocessor
1088 F77 Fortran 77 compiler command
1089 FFLAGS Fortran 77 compiler flags
1090 PKG_CONFIG path to pkg-config utility
1091 X_CFLAGS C compiler flags for X, overriding pkg-config
1092 X_LIBS linker flags for X, overriding pkg-config
1093 XDAMAGE_CFLAGS
1094 C compiler flags for XDAMAGE, overriding pkg-config
1095 XDAMAGE_LIBS
1096 linker flags for XDAMAGE, overriding pkg-config
1097
1098 Use these variables to override the choices made by `configure' or to help
1099 it to find libraries and programs with nonstandard names/locations.
1100
1101 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1102 _ACEOF
1103 fi
1104
1105 if test "$ac_init_help" = "recursive"; then
1106 # If there are subdirs, report their specific --help.
1107 ac_popdir=`pwd`
1108 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1109 test -d $ac_dir || continue
1110 ac_builddir=.
1111
1112 if test "$ac_dir" != .; then
1113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1114 # A "../" for each directory in $ac_dir_suffix.
1115 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1116 else
1117 ac_dir_suffix= ac_top_builddir=
1118 fi
1119
1120 case $srcdir in
1121 .) # No --srcdir option. We are building in place.
1122 ac_srcdir=.
1123 if test -z "$ac_top_builddir"; then
1124 ac_top_srcdir=.
1125 else
1126 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1127 fi ;;
1128 [\\/]* | ?:[\\/]* ) # Absolute path.
1129 ac_srcdir=$srcdir$ac_dir_suffix;
1130 ac_top_srcdir=$srcdir ;;
1131 *) # Relative path.
1132 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1133 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1134 esac
1135
1136 # Do not use `cd foo && pwd` to compute absolute paths, because
1137 # the directories may not exist.
1138 case `pwd` in
1139 .) ac_abs_builddir="$ac_dir";;
1140 *)
1141 case "$ac_dir" in
1142 .) ac_abs_builddir=`pwd`;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1144 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1145 esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1149 *)
1150 case ${ac_top_builddir}. in
1151 .) ac_abs_top_builddir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1153 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1154 esac;;
1155 esac
1156 case $ac_abs_builddir in
1157 .) ac_abs_srcdir=$ac_srcdir;;
1158 *)
1159 case $ac_srcdir in
1160 .) ac_abs_srcdir=$ac_abs_builddir;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1162 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1163 esac;;
1164 esac
1165 case $ac_abs_builddir in
1166 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1167 *)
1168 case $ac_top_srcdir in
1169 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1171 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1172 esac;;
1173 esac
1174
1175 cd $ac_dir
1176 # Check for guested configure; otherwise get Cygnus style configure.
1177 if test -f $ac_srcdir/configure.gnu; then
1178 echo
1179 $SHELL $ac_srcdir/configure.gnu --help=recursive
1180 elif test -f $ac_srcdir/configure; then
1181 echo
1182 $SHELL $ac_srcdir/configure --help=recursive
1183 elif test -f $ac_srcdir/configure.ac ||
1184 test -f $ac_srcdir/configure.in; then
1185 echo
1186 $ac_configure --help
1187 else
1188 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1189 fi
1190 cd $ac_popdir
1191 done
1192 fi
1193
1194 test -n "$ac_init_help" && exit 0
1195 if $ac_init_version; then
1196 cat <<\_ACEOF
1197 libXdamage configure 1.1.1
1198 generated by GNU Autoconf 2.59
1199
1200 Copyright (C) 2003 Free Software Foundation, Inc.
1201 This configure script is free software; the Free Software Foundation
1202 gives unlimited permission to copy, distribute and modify it.
1203 _ACEOF
1204 exit 0
1205 fi
1206 exec 5>config.log
1207 cat >&5 <<_ACEOF
1208 This file contains any messages produced by compilers while
1209 running configure, to aid debugging if configure makes a mistake.
1210
1211 It was created by libXdamage $as_me 1.1.1, which was
1212 generated by GNU Autoconf 2.59. Invocation command line was
1213
1214 $ $0 $@
1215
1216 _ACEOF
1217 {
1218 cat <<_ASUNAME
1219 ## --------- ##
1220 ## Platform. ##
1221 ## --------- ##
1222
1223 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1224 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1225 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1226 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1227 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1228
1229 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1230 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1231
1232 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1233 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1234 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1235 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1236 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1237 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1238 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1239
1240 _ASUNAME
1241
1242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1243 for as_dir in $PATH
1244 do
1245 IFS=$as_save_IFS
1246 test -z "$as_dir" && as_dir=.
1247 echo "PATH: $as_dir"
1248 done
1249
1250 } >&5
1251
1252 cat >&5 <<_ACEOF
1253
1254
1255 ## ----------- ##
1256 ## Core tests. ##
1257 ## ----------- ##
1258
1259 _ACEOF
1260
1261
1262 # Keep a trace of the command line.
1263 # Strip out --no-create and --no-recursion so they do not pile up.
1264 # Strip out --silent because we don't want to record it for future runs.
1265 # Also quote any args containing shell meta-characters.
1266 # Make two passes to allow for proper duplicate-argument suppression.
1267 ac_configure_args=
1268 ac_configure_args0=
1269 ac_configure_args1=
1270 ac_sep=
1271 ac_must_keep_next=false
1272 for ac_pass in 1 2
1273 do
1274 for ac_arg
1275 do
1276 case $ac_arg in
1277 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1279 | -silent | --silent | --silen | --sile | --sil)
1280 continue ;;
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 esac
1284 case $ac_pass in
1285 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1286 2)
1287 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1288 if test $ac_must_keep_next = true; then
1289 ac_must_keep_next=false # Got value, back to normal.
1290 else
1291 case $ac_arg in
1292 *=* | --config-cache | -C | -disable-* | --disable-* \
1293 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1294 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1295 | -with-* | --with-* | -without-* | --without-* | --x)
1296 case "$ac_configure_args0 " in
1297 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1298 esac
1299 ;;
1300 -* ) ac_must_keep_next=true ;;
1301 esac
1302 fi
1303 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1304 # Get rid of the leading space.
1305 ac_sep=" "
1306 ;;
1307 esac
1308 done
1309 done
1310 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1311 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1312
1313 # When interrupted or exit'd, cleanup temporary files, and complete
1314 # config.log. We remove comments because anyway the quotes in there
1315 # would cause problems or look ugly.
1316 # WARNING: Be sure not to use single quotes in there, as some shells,
1317 # such as our DU 5.0 friend, will then `close' the trap.
1318 trap 'exit_status=$?
1319 # Save into config.log some information that might help in debugging.
1320 {
1321 echo
1322
1323 cat <<\_ASBOX
1324 ## ---------------- ##
1325 ## Cache variables. ##
1326 ## ---------------- ##
1327 _ASBOX
1328 echo
1329 # The following way of writing the cache mishandles newlines in values,
1330 {
1331 (set) 2>&1 |
1332 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1333 *ac_space=\ *)
1334 sed -n \
1335 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1337 ;;
1338 *)
1339 sed -n \
1340 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1341 ;;
1342 esac;
1343 }
1344 echo
1345
1346 cat <<\_ASBOX
1347 ## ----------------- ##
1348 ## Output variables. ##
1349 ## ----------------- ##
1350 _ASBOX
1351 echo
1352 for ac_var in $ac_subst_vars
1353 do
1354 eval ac_val=$`echo $ac_var`
1355 echo "$ac_var='"'"'$ac_val'"'"'"
1356 done | sort
1357 echo
1358
1359 if test -n "$ac_subst_files"; then
1360 cat <<\_ASBOX
1361 ## ------------- ##
1362 ## Output files. ##
1363 ## ------------- ##
1364 _ASBOX
1365 echo
1366 for ac_var in $ac_subst_files
1367 do
1368 eval ac_val=$`echo $ac_var`
1369 echo "$ac_var='"'"'$ac_val'"'"'"
1370 done | sort
1371 echo
1372 fi
1373
1374 if test -s confdefs.h; then
1375 cat <<\_ASBOX
1376 ## ----------- ##
1377 ## confdefs.h. ##
1378 ## ----------- ##
1379 _ASBOX
1380 echo
1381 sed "/^$/d" confdefs.h | sort
1382 echo
1383 fi
1384 test "$ac_signal" != 0 &&
1385 echo "$as_me: caught signal $ac_signal"
1386 echo "$as_me: exit $exit_status"
1387 } >&5
1388 rm -f core *.core &&
1389 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1390 exit $exit_status
1391 ' 0
1392 for ac_signal in 1 2 13 15; do
1393 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1394 done
1395 ac_signal=0
1396
1397 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1398 rm -rf conftest* confdefs.h
1399 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1400 echo >confdefs.h
1401
1402 # Predefined preprocessor variables.
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_NAME "$PACKAGE_NAME"
1406 _ACEOF
1407
1408
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1411 _ACEOF
1412
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1416 _ACEOF
1417
1418
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_STRING "$PACKAGE_STRING"
1421 _ACEOF
1422
1423
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1426 _ACEOF
1427
1428
1429 # Let the site file select an alternate cache file if it wants to.
1430 # Prefer explicitly selected file to automatically selected ones.
1431 if test -z "$CONFIG_SITE"; then
1432 if test "x$prefix" != xNONE; then
1433 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1434 else
1435 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1436 fi
1437 fi
1438 for ac_site_file in $CONFIG_SITE; do
1439 if test -r "$ac_site_file"; then
1440 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1441 echo "$as_me: loading site script $ac_site_file" >&6;}
1442 sed 's/^/| /' "$ac_site_file" >&5
1443 . "$ac_site_file"
1444 fi
1445 done
1446
1447 if test -r "$cache_file"; then
1448 # Some versions of bash will fail to source /dev/null (special
1449 # files actually), so we avoid doing that.
1450 if test -f "$cache_file"; then
1451 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1452 echo "$as_me: loading cache $cache_file" >&6;}
1453 case $cache_file in
1454 [\\/]* | ?:[\\/]* ) . $cache_file;;
1455 *) . ./$cache_file;;
1456 esac
1457 fi
1458 else
1459 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1460 echo "$as_me: creating cache $cache_file" >&6;}
1461 >$cache_file
1462 fi
1463
1464 # Check that the precious variables saved in the cache have kept the same
1465 # value.
1466 ac_cache_corrupted=false
1467 for ac_var in `(set) 2>&1 |
1468 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1469 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1470 eval ac_new_set=\$ac_env_${ac_var}_set
1471 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1472 eval ac_new_val="\$ac_env_${ac_var}_value"
1473 case $ac_old_set,$ac_new_set in
1474 set,)
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1478 ,set)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1480 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,);;
1483 *)
1484 if test "x$ac_old_val" != "x$ac_new_val"; then
1485 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1486 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1487 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1488 echo "$as_me: former value: $ac_old_val" >&2;}
1489 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1490 echo "$as_me: current value: $ac_new_val" >&2;}
1491 ac_cache_corrupted=:
1492 fi;;
1493 esac
1494 # Pass precious variables to config.status.
1495 if test "$ac_new_set" = set; then
1496 case $ac_new_val in
1497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1498 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1499 *) ac_arg=$ac_var=$ac_new_val ;;
1500 esac
1501 case " $ac_configure_args " in
1502 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1503 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1504 esac
1505 fi
1506 done
1507 if $ac_cache_corrupted; then
1508 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1509 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1510 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1511 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1512 { (exit 1); exit 1; }; }
1513 fi
1514
1515 ac_ext=c
1516 ac_cpp='$CPP $CPPFLAGS'
1517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547 am__api_version="1.9"
1548 ac_aux_dir=
1549 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1550 if test -f $ac_dir/install-sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install-sh -c"
1553 break
1554 elif test -f $ac_dir/install.sh; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/install.sh -c"
1557 break
1558 elif test -f $ac_dir/shtool; then
1559 ac_aux_dir=$ac_dir
1560 ac_install_sh="$ac_aux_dir/shtool install -c"
1561 break
1562 fi
1563 done
1564 if test -z "$ac_aux_dir"; then
1565 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1566 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1567 { (exit 1); exit 1; }; }
1568 fi
1569 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1570 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1571 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572
1573 # Find a good install program. We prefer a C program (faster),
1574 # so one script is as good as another. But avoid the broken or
1575 # incompatible versions:
1576 # SysV /etc/install, /usr/sbin/install
1577 # SunOS /usr/etc/install
1578 # IRIX /sbin/install
1579 # AIX /bin/install
1580 # AmigaOS /C/install, which installs bootblocks on floppy discs
1581 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1582 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1583 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1584 # OS/2's system install, which has a completely different semantic
1585 # ./install, which can be erroneously created by make from ./install.sh.
1586 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1587 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1588 if test -z "$INSTALL"; then
1589 if test "${ac_cv_path_install+set}" = set; then
1590 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 # Account for people who put trailing slashes in PATH elements.
1598 case $as_dir/ in
1599 ./ | .// | /cC/* | \
1600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1601 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1602 /usr/ucb/* ) ;;
1603 *)
1604 # OSF1 and SCO ODT 3.0 have their own names for install.
1605 # Don't use installbsd from OSF since it installs stuff as root
1606 # by default.
1607 for ac_prog in ginstall scoinst install; do
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1610 if test $ac_prog = install &&
1611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1612 # AIX install. It has an incompatible calling convention.
1613 :
1614 elif test $ac_prog = install &&
1615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1616 # program-specific install script used by HP pwplus--don't use.
1617 :
1618 else
1619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1620 break 3
1621 fi
1622 fi
1623 done
1624 done
1625 ;;
1626 esac
1627 done
1628
1629
1630 fi
1631 if test "${ac_cv_path_install+set}" = set; then
1632 INSTALL=$ac_cv_path_install
1633 else
1634 # As a last resort, use the slow shell script. We don't cache a
1635 # path for INSTALL within a source directory, because that will
1636 # break other packages using the cache if that directory is
1637 # removed, or if the path is relative.
1638 INSTALL=$ac_install_sh
1639 fi
1640 fi
1641 echo "$as_me:$LINENO: result: $INSTALL" >&5
1642 echo "${ECHO_T}$INSTALL" >&6
1643
1644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1645 # It thinks the first close brace ends the variable substitution.
1646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1647
1648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1649
1650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1651
1652 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1653 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1654 # Just in case
1655 sleep 1
1656 echo timestamp > conftest.file
1657 # Do `set' in a subshell so we don't clobber the current shell's
1658 # arguments. Must try -L first in case configure is actually a
1659 # symlink; some systems play weird games with the mod time of symlinks
1660 # (eg FreeBSD returns the mod time of the symlink's containing
1661 # directory).
1662 if (
1663 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1664 if test "$*" = "X"; then
1665 # -L didn't work.
1666 set X `ls -t $srcdir/configure conftest.file`
1667 fi
1668 rm -f conftest.file
1669 if test "$*" != "X $srcdir/configure conftest.file" \
1670 && test "$*" != "X conftest.file $srcdir/configure"; then
1671
1672 # If neither matched, then we have a broken ls. This can happen
1673 # if, for instance, CONFIG_SHELL is bash and it inherits a
1674 # broken ls alias from the environment. This has actually
1675 # happened. Such a system could not be considered "sane".
1676 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1677 alias in your environment" >&5
1678 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1679 alias in your environment" >&2;}
1680 { (exit 1); exit 1; }; }
1681 fi
1682
1683 test "$2" = conftest.file
1684 )
1685 then
1686 # Ok.
1687 :
1688 else
1689 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1690 Check your system clock" >&5
1691 echo "$as_me: error: newly created file is older than distributed files!
1692 Check your system clock" >&2;}
1693 { (exit 1); exit 1; }; }
1694 fi
1695 echo "$as_me:$LINENO: result: yes" >&5
1696 echo "${ECHO_T}yes" >&6
1697 test "$program_prefix" != NONE &&
1698 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1699 # Use a double $ so make ignores it.
1700 test "$program_suffix" != NONE &&
1701 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1702 # Double any \ or $. echo might interpret backslashes.
1703 # By default was `s,x,x', remove it if useless.
1704 cat <<\_ACEOF >conftest.sed
1705 s/[\\$]/&&/g;s/;s,x,x,$//
1706 _ACEOF
1707 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1708 rm conftest.sed
1709
1710 # expand $ac_aux_dir to an absolute path
1711 am_aux_dir=`cd $ac_aux_dir && pwd`
1712
1713 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1714 # Use eval to expand $SHELL
1715 if eval "$MISSING --run true"; then
1716 am_missing_run="$MISSING --run "
1717 else
1718 am_missing_run=
1719 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1720 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1721 fi
1722
1723 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1724 # We used to keeping the `.' as first argument, in order to
1725 # allow $(mkdir_p) to be used without argument. As in
1726 # $(mkdir_p) $(somedir)
1727 # where $(somedir) is conditionally defined. However this is wrong
1728 # for two reasons:
1729 # 1. if the package is installed by a user who cannot write `.'
1730 # make install will fail,
1731 # 2. the above comment should most certainly read
1732 # $(mkdir_p) $(DESTDIR)$(somedir)
1733 # so it does not work when $(somedir) is undefined and
1734 # $(DESTDIR) is not.
1735 # To support the latter case, we have to write
1736 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1737 # so the `.' trick is pointless.
1738 mkdir_p='mkdir -p --'
1739 else
1740 # On NextStep and OpenStep, the `mkdir' command does not
1741 # recognize any option. It will interpret all options as
1742 # directories to create, and then abort because `.' already
1743 # exists.
1744 for d in ./-p ./--version;
1745 do
1746 test -d $d && rmdir $d
1747 done
1748 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1749 if test -f "$ac_aux_dir/mkinstalldirs"; then
1750 mkdir_p='$(mkinstalldirs)'
1751 else
1752 mkdir_p='$(install_sh) -d'
1753 fi
1754 fi
1755
1756 for ac_prog in gawk mawk nawk awk
1757 do
1758 # Extract the first word of "$ac_prog", so it can be a program name with args.
1759 set dummy $ac_prog; ac_word=$2
1760 echo "$as_me:$LINENO: checking for $ac_word" >&5
1761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762 if test "${ac_cv_prog_AWK+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 if test -n "$AWK"; then
1766 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1767 else
1768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 for as_dir in $PATH
1770 do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_AWK="$ac_prog"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1778 fi
1779 done
1780 done
1781
1782 fi
1783 fi
1784 AWK=$ac_cv_prog_AWK
1785 if test -n "$AWK"; then
1786 echo "$as_me:$LINENO: result: $AWK" >&5
1787 echo "${ECHO_T}$AWK" >&6
1788 else
1789 echo "$as_me:$LINENO: result: no" >&5
1790 echo "${ECHO_T}no" >&6
1791 fi
1792
1793 test -n "$AWK" && break
1794 done
1795
1796 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1797 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1798 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1799 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 cat >conftest.make <<\_ACEOF
1803 all:
1804 @echo 'ac_maketemp="$(MAKE)"'
1805 _ACEOF
1806 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1807 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1808 if test -n "$ac_maketemp"; then
1809 eval ac_cv_prog_make_${ac_make}_set=yes
1810 else
1811 eval ac_cv_prog_make_${ac_make}_set=no
1812 fi
1813 rm -f conftest.make
1814 fi
1815 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1816 echo "$as_me:$LINENO: result: yes" >&5
1817 echo "${ECHO_T}yes" >&6
1818 SET_MAKE=
1819 else
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1822 SET_MAKE="MAKE=${MAKE-make}"
1823 fi
1824
1825 rm -rf .tst 2>/dev/null
1826 mkdir .tst 2>/dev/null
1827 if test -d .tst; then
1828 am__leading_dot=.
1829 else
1830 am__leading_dot=_
1831 fi
1832 rmdir .tst 2>/dev/null
1833
1834 # test to see if srcdir already configured
1835 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1836 test -f $srcdir/config.status; then
1837 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1838 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1839 { (exit 1); exit 1; }; }
1840 fi
1841
1842 # test whether we have cygpath
1843 if test -z "$CYGPATH_W"; then
1844 if (cygpath --version) >/dev/null 2>/dev/null; then
1845 CYGPATH_W='cygpath -w'
1846 else
1847 CYGPATH_W=echo
1848 fi
1849 fi
1850
1851
1852 # Define the identity of the package.
1853 PACKAGE='libXdamage'
1854 VERSION='1.1.1'
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE "$PACKAGE"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define VERSION "$VERSION"
1864 _ACEOF
1865
1866 # Some tools Automake needs.
1867
1868 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1869
1870
1871 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1872
1873
1874 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1875
1876
1877 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1878
1879
1880 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1881
1882 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1883
1884 # Installed binaries are usually stripped using `strip' when the user
1885 # run `make install-strip'. However `strip' might not be the right
1886 # tool to use in cross-compilation environments, therefore Automake
1887 # will honor the `STRIP' environment variable to overrule this program.
1888 if test "$cross_compiling" != no; then
1889 if test -n "$ac_tool_prefix"; then
1890 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1891 set dummy ${ac_tool_prefix}strip; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_STRIP+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897 if test -n "$STRIP"; then
1898 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1899 else
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1902 do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1910 fi
1911 done
1912 done
1913
1914 fi
1915 fi
1916 STRIP=$ac_cv_prog_STRIP
1917 if test -n "$STRIP"; then
1918 echo "$as_me:$LINENO: result: $STRIP" >&5
1919 echo "${ECHO_T}$STRIP" >&6
1920 else
1921 echo "$as_me:$LINENO: result: no" >&5
1922 echo "${ECHO_T}no" >&6
1923 fi
1924
1925 fi
1926 if test -z "$ac_cv_prog_STRIP"; then
1927 ac_ct_STRIP=$STRIP
1928 # Extract the first word of "strip", so it can be a program name with args.
1929 set dummy strip; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935 if test -n "$ac_ct_STRIP"; then
1936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_ac_ct_STRIP="strip"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 break 2
1948 fi
1949 done
1950 done
1951
1952 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1953 fi
1954 fi
1955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1956 if test -n "$ac_ct_STRIP"; then
1957 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1958 echo "${ECHO_T}$ac_ct_STRIP" >&6
1959 else
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1962 fi
1963
1964 STRIP=$ac_ct_STRIP
1965 else
1966 STRIP="$ac_cv_prog_STRIP"
1967 fi
1968
1969 fi
1970 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1971
1972 # We need awk for the "check" target. The system "awk" is bad on
1973 # some platforms.
1974 # Always define AMTAR for backward compatibility.
1975
1976 AMTAR=${AMTAR-"${am_missing_run}tar"}
1977
1978 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1979
1980
1981
1982
1983
1984 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1985 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1986 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1987 if test "${enable_maintainer_mode+set}" = set; then
1988 enableval="$enable_maintainer_mode"
1989 USE_MAINTAINER_MODE=$enableval
1990 else
1991 USE_MAINTAINER_MODE=no
1992 fi;
1993 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1994 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1995
1996
1997 if test $USE_MAINTAINER_MODE = yes; then
1998 MAINTAINER_MODE_TRUE=
1999 MAINTAINER_MODE_FALSE='#'
2000 else
2001 MAINTAINER_MODE_TRUE='#'
2002 MAINTAINER_MODE_FALSE=
2003 fi
2004
2005 MAINT=$MAINTAINER_MODE_TRUE
2006
2007
2008
2009 ac_config_headers="$ac_config_headers config.h"
2010
2011
2012 # Check for progs
2013 ac_ext=c
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018 if test -n "$ac_tool_prefix"; then
2019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2021 echo "$as_me:$LINENO: checking for $ac_word" >&5
2022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023 if test "${ac_cv_prog_CC+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026 if test -n "$CC"; then
2027 ac_cv_prog_CC="$CC" # Let the user override the test.
2028 else
2029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 for as_dir in $PATH
2031 do
2032 IFS=$as_save_IFS
2033 test -z "$as_dir" && as_dir=.
2034 for ac_exec_ext in '' $ac_executable_extensions; do
2035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 break 2
2039 fi
2040 done
2041 done
2042
2043 fi
2044 fi
2045 CC=$ac_cv_prog_CC
2046 if test -n "$CC"; then
2047 echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6
2049 else
2050 echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6
2052 fi
2053
2054 fi
2055 if test -z "$ac_cv_prog_CC"; then
2056 ac_ct_CC=$CC
2057 # Extract the first word of "gcc", so it can be a program name with args.
2058 set dummy gcc; ac_word=$2
2059 echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064 if test -n "$ac_ct_CC"; then
2065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2066 else
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070 IFS=$as_save_IFS
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074 ac_cv_prog_ac_ct_CC="gcc"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 break 2
2077 fi
2078 done
2079 done
2080
2081 fi
2082 fi
2083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2084 if test -n "$ac_ct_CC"; then
2085 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2086 echo "${ECHO_T}$ac_ct_CC" >&6
2087 else
2088 echo "$as_me:$LINENO: result: no" >&5
2089 echo "${ECHO_T}no" >&6
2090 fi
2091
2092 CC=$ac_ct_CC
2093 else
2094 CC="$ac_cv_prog_CC"
2095 fi
2096
2097 if test -z "$CC"; then
2098 if test -n "$ac_tool_prefix"; then
2099 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2100 set dummy ${ac_tool_prefix}cc; ac_word=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 if test -n "$CC"; then
2107 ac_cv_prog_CC="$CC" # Let the user override the test.
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 for ac_exec_ext in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 ac_cv_prog_CC="${ac_tool_prefix}cc"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 break 2
2119 fi
2120 done
2121 done
2122
2123 fi
2124 fi
2125 CC=$ac_cv_prog_CC
2126 if test -n "$CC"; then
2127 echo "$as_me:$LINENO: result: $CC" >&5
2128 echo "${ECHO_T}$CC" >&6
2129 else
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2132 fi
2133
2134 fi
2135 if test -z "$ac_cv_prog_CC"; then
2136 ac_ct_CC=$CC
2137 # Extract the first word of "cc", so it can be a program name with args.
2138 set dummy cc; ac_word=$2
2139 echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144 if test -n "$ac_ct_CC"; then
2145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2146 else
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150 IFS=$as_save_IFS
2151 test -z "$as_dir" && as_dir=.
2152 for ac_exec_ext in '' $ac_executable_extensions; do
2153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2154 ac_cv_prog_ac_ct_CC="cc"
2155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 break 2
2157 fi
2158 done
2159 done
2160
2161 fi
2162 fi
2163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2164 if test -n "$ac_ct_CC"; then
2165 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2166 echo "${ECHO_T}$ac_ct_CC" >&6
2167 else
2168 echo "$as_me:$LINENO: result: no" >&5
2169 echo "${ECHO_T}no" >&6
2170 fi
2171
2172 CC=$ac_ct_CC
2173 else
2174 CC="$ac_cv_prog_CC"
2175 fi
2176
2177 fi
2178 if test -z "$CC"; then
2179 # Extract the first word of "cc", so it can be a program name with args.
2180 set dummy cc; ac_word=$2
2181 echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2188 else
2189 ac_prog_rejected=no
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2198 ac_prog_rejected=yes
2199 continue
2200 fi
2201 ac_cv_prog_CC="cc"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2204 fi
2205 done
2206 done
2207
2208 if test $ac_prog_rejected = yes; then
2209 # We found a bogon in the path, so make sure we never use it.
2210 set dummy $ac_cv_prog_CC
2211 shift
2212 if test $# != 0; then
2213 # We chose a different compiler from the bogus one.
2214 # However, it has the same basename, so the bogon will be chosen
2215 # first if we set CC to just the basename; use the full file name.
2216 shift
2217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2218 fi
2219 fi
2220 fi
2221 fi
2222 CC=$ac_cv_prog_CC
2223 if test -n "$CC"; then
2224 echo "$as_me:$LINENO: result: $CC" >&5
2225 echo "${ECHO_T}$CC" >&6
2226 else
2227 echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6
2229 fi
2230
2231 fi
2232 if test -z "$CC"; then
2233 if test -n "$ac_tool_prefix"; then
2234 for ac_prog in cl
2235 do
2236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2256 fi
2257 done
2258 done
2259
2260 fi
2261 fi
2262 CC=$ac_cv_prog_CC
2263 if test -n "$CC"; then
2264 echo "$as_me:$LINENO: result: $CC" >&5
2265 echo "${ECHO_T}$CC" >&6
2266 else
2267 echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2269 fi
2270
2271 test -n "$CC" && break
2272 done
2273 fi
2274 if test -z "$CC"; then
2275 ac_ct_CC=$CC
2276 for ac_prog in cl
2277 do
2278 # Extract the first word of "$ac_prog", so it can be a program name with args.
2279 set dummy $ac_prog; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 if test -n "$ac_ct_CC"; then
2286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_prog_ac_ct_CC="$ac_prog"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 break 2
2298 fi
2299 done
2300 done
2301
2302 fi
2303 fi
2304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2305 if test -n "$ac_ct_CC"; then
2306 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2307 echo "${ECHO_T}$ac_ct_CC" >&6
2308 else
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2311 fi
2312
2313 test -n "$ac_ct_CC" && break
2314 done
2315
2316 CC=$ac_ct_CC
2317 fi
2318
2319 fi
2320
2321
2322 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: no acceptable C compiler found in \$PATH
2325 See \`config.log' for more details." >&2;}
2326 { (exit 1); exit 1; }; }
2327
2328 # Provide some information about the compiler.
2329 echo "$as_me:$LINENO:" \
2330 "checking for C compiler version" >&5
2331 ac_compiler=`set X $ac_compile; echo $2`
2332 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2333 (eval $ac_compiler --version </dev/null >&5) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }
2337 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2338 (eval $ac_compiler -v </dev/null >&5) 2>&5
2339 ac_status=$?
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }
2342 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2343 (eval $ac_compiler -V </dev/null >&5) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }
2347
2348 cat >conftest.$ac_ext <<_ACEOF
2349 /* confdefs.h. */
2350 _ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2354
2355 int
2356 main ()
2357 {
2358
2359 ;
2360 return 0;
2361 }
2362 _ACEOF
2363 ac_clean_files_save=$ac_clean_files
2364 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2365 # Try to create an executable without -o first, disregard a.out.
2366 # It will help us diagnose broken compilers, and finding out an intuition
2367 # of exeext.
2368 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2369 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2370 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2371 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2372 (eval $ac_link_default) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; then
2376 # Find the output, starting from the most likely. This scheme is
2377 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2378 # resort.
2379
2380 # Be careful to initialize this variable, since it used to be cached.
2381 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2382 ac_cv_exeext=
2383 # b.out is created by i960 compilers.
2384 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2385 do
2386 test -f "$ac_file" || continue
2387 case $ac_file in
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2389 ;;
2390 conftest.$ac_ext )
2391 # This is the source file.
2392 ;;
2393 [ab].out )
2394 # We found the default executable, but exeext='' is most
2395 # certainly right.
2396 break;;
2397 *.* )
2398 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2399 # FIXME: I believe we export ac_cv_exeext for Libtool,
2400 # but it would be cool to find out if it's true. Does anybody
2401 # maintain Libtool? --akim.
2402 export ac_cv_exeext
2403 break;;
2404 * )
2405 break;;
2406 esac
2407 done
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2413 See \`config.log' for more details." >&5
2414 echo "$as_me: error: C compiler cannot create executables
2415 See \`config.log' for more details." >&2;}
2416 { (exit 77); exit 77; }; }
2417 fi
2418
2419 ac_exeext=$ac_cv_exeext
2420 echo "$as_me:$LINENO: result: $ac_file" >&5
2421 echo "${ECHO_T}$ac_file" >&6
2422
2423 # Check the compiler produces executables we can run. If not, either
2424 # the compiler is broken, or we cross compile.
2425 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2426 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2427 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2428 # If not cross compiling, check that we can run a simple program.
2429 if test "$cross_compiling" != yes; then
2430 if { ac_try='./$ac_file'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 (eval $ac_try) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 cross_compiling=no
2437 else
2438 if test "$cross_compiling" = maybe; then
2439 cross_compiling=yes
2440 else
2441 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2442 If you meant to cross compile, use \`--host'.
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: cannot run C compiled programs.
2445 If you meant to cross compile, use \`--host'.
2446 See \`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }
2448 fi
2449 fi
2450 fi
2451 echo "$as_me:$LINENO: result: yes" >&5
2452 echo "${ECHO_T}yes" >&6
2453
2454 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2455 ac_clean_files=$ac_clean_files_save
2456 # Check the compiler produces executables we can run. If not, either
2457 # the compiler is broken, or we cross compile.
2458 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2459 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2460 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2461 echo "${ECHO_T}$cross_compiling" >&6
2462
2463 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2464 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2466 (eval $ac_link) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; then
2470 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2471 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2472 # work properly (i.e., refer to `conftest.exe'), while it won't with
2473 # `rm'.
2474 for ac_file in conftest.exe conftest conftest.*; do
2475 test -f "$ac_file" || continue
2476 case $ac_file in
2477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2478 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479 export ac_cv_exeext
2480 break;;
2481 * ) break;;
2482 esac
2483 done
2484 else
2485 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2486 See \`config.log' for more details." >&5
2487 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2488 See \`config.log' for more details." >&2;}
2489 { (exit 1); exit 1; }; }
2490 fi
2491
2492 rm -f conftest$ac_cv_exeext
2493 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2494 echo "${ECHO_T}$ac_cv_exeext" >&6
2495
2496 rm -f conftest.$ac_ext
2497 EXEEXT=$ac_cv_exeext
2498 ac_exeext=$EXEEXT
2499 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2500 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2501 if test "${ac_cv_objext+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 cat >conftest.$ac_ext <<_ACEOF
2505 /* confdefs.h. */
2506 _ACEOF
2507 cat confdefs.h >>conftest.$ac_ext
2508 cat >>conftest.$ac_ext <<_ACEOF
2509 /* end confdefs.h. */
2510
2511 int
2512 main ()
2513 {
2514
2515 ;
2516 return 0;
2517 }
2518 _ACEOF
2519 rm -f conftest.o conftest.obj
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; then
2525 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2526 case $ac_file in
2527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2528 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2529 break;;
2530 esac
2531 done
2532 else
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2541 fi
2542
2543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2544 fi
2545 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2546 echo "${ECHO_T}$ac_cv_objext" >&6
2547 OBJEXT=$ac_cv_objext
2548 ac_objext=$OBJEXT
2549 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2550 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2551 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554 cat >conftest.$ac_ext <<_ACEOF
2555 /* confdefs.h. */
2556 _ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2560
2561 int
2562 main ()
2563 {
2564 #ifndef __GNUC__
2565 choke me
2566 #endif
2567
2568 ;
2569 return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2575 ac_status=$?
2576 grep -v '^ *+' conftest.er1 >conftest.err
2577 rm -f conftest.er1
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590 (eval $ac_try) 2>&5
2591 ac_status=$?
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 ac_compiler_gnu=yes
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 ac_compiler_gnu=no
2600 fi
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2603
2604 fi
2605 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2606 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2607 GCC=`test $ac_compiler_gnu = yes && echo yes`
2608 ac_test_CFLAGS=${CFLAGS+set}
2609 ac_save_CFLAGS=$CFLAGS
2610 CFLAGS="-g"
2611 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2612 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2613 if test "${ac_cv_prog_cc_g+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616 cat >conftest.$ac_ext <<_ACEOF
2617 /* confdefs.h. */
2618 _ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2622
2623 int
2624 main ()
2625 {
2626
2627 ;
2628 return 0;
2629 }
2630 _ACEOF
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>conftest.er1
2634 ac_status=$?
2635 grep -v '^ *+' conftest.er1 >conftest.err
2636 rm -f conftest.er1
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } &&
2640 { ac_try='test -z "$ac_c_werror_flag"
2641 || test ! -s conftest.err'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; } &&
2647 { ac_try='test -s conftest.$ac_objext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 (eval $ac_try) 2>&5
2650 ac_status=$?
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 ac_cv_prog_cc_g=yes
2654 else
2655 echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 ac_cv_prog_cc_g=no
2659 fi
2660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2661 fi
2662 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2663 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2664 if test "$ac_test_CFLAGS" = set; then
2665 CFLAGS=$ac_save_CFLAGS
2666 elif test $ac_cv_prog_cc_g = yes; then
2667 if test "$GCC" = yes; then
2668 CFLAGS="-g -O2"
2669 else
2670 CFLAGS="-g"
2671 fi
2672 else
2673 if test "$GCC" = yes; then
2674 CFLAGS="-O2"
2675 else
2676 CFLAGS=
2677 fi
2678 fi
2679 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2680 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2681 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 ac_cv_prog_cc_stdc=no
2685 ac_save_CC=$CC
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2692 #include <stdarg.h>
2693 #include <stdio.h>
2694 #include <sys/types.h>
2695 #include <sys/stat.h>
2696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2697 struct buf { int x; };
2698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2699 static char *e (p, i)
2700 char **p;
2701 int i;
2702 {
2703 return p[i];
2704 }
2705 static char *f (char * (*g) (char **, int), char **p, ...)
2706 {
2707 char *s;
2708 va_list v;
2709 va_start (v,p);
2710 s = g (p, va_arg (v,int));
2711 va_end (v);
2712 return s;
2713 }
2714
2715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2716 function prototypes and stuff, but not '\xHH' hex character constants.
2717 These don't provoke an error unfortunately, instead are silently treated
2718 as 'x'. The following induces an error, until -std1 is added to get
2719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2720 array size at least. It's necessary to write '\x00'==0 to get something
2721 that's true only with -std1. */
2722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2723
2724 int test (int i, double x);
2725 struct s1 {int (*f) (int a);};
2726 struct s2 {int (*f) (double a);};
2727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2728 int argc;
2729 char **argv;
2730 int
2731 main ()
2732 {
2733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2734 ;
2735 return 0;
2736 }
2737 _ACEOF
2738 # Don't try gcc -ansi; that turns off useful extensions and
2739 # breaks some systems' header files.
2740 # AIX -qlanglvl=ansi
2741 # Ultrix and OSF/1 -std1
2742 # HP-UX 10.20 and later -Ae
2743 # HP-UX older versions -Aa -D_HPUX_SOURCE
2744 # SVR4 -Xc -D__EXTENSIONS__
2745 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2746 do
2747 CC="$ac_save_CC $ac_arg"
2748 rm -f conftest.$ac_objext
2749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750 (eval $ac_compile) 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -z "$ac_c_werror_flag"
2758 || test ! -s conftest.err'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; } &&
2764 { ac_try='test -s conftest.$ac_objext'
2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; }; then
2770 ac_cv_prog_cc_stdc=$ac_arg
2771 break
2772 else
2773 echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776 fi
2777 rm -f conftest.err conftest.$ac_objext
2778 done
2779 rm -f conftest.$ac_ext conftest.$ac_objext
2780 CC=$ac_save_CC
2781
2782 fi
2783
2784 case "x$ac_cv_prog_cc_stdc" in
2785 x|xno)
2786 echo "$as_me:$LINENO: result: none needed" >&5
2787 echo "${ECHO_T}none needed" >&6 ;;
2788 *)
2789 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2790 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2791 CC="$CC $ac_cv_prog_cc_stdc" ;;
2792 esac
2793
2794 # Some people use a C++ compiler to compile C. Since we use `exit',
2795 # in C++ we need to declare it. In case someone uses the same compiler
2796 # for both compiling C and C++ we need to have the C++ compiler decide
2797 # the declaration of exit, since it's the most demanding environment.
2798 cat >conftest.$ac_ext <<_ACEOF
2799 #ifndef __cplusplus
2800 choke me
2801 #endif
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2806 ac_status=$?
2807 grep -v '^ *+' conftest.er1 >conftest.err
2808 rm -f conftest.er1
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag"
2813 || test ! -s conftest.err'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815 (eval $ac_try) 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 for ac_declaration in \
2826 '' \
2827 'extern "C" void std::exit (int) throw (); using std::exit;' \
2828 'extern "C" void std::exit (int); using std::exit;' \
2829 'extern "C" void exit (int) throw ();' \
2830 'extern "C" void exit (int);' \
2831 'void exit (int);'
2832 do
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839 $ac_declaration
2840 #include <stdlib.h>
2841 int
2842 main ()
2843 {
2844 exit (42);
2845 ;
2846 return 0;
2847 }
2848 _ACEOF
2849 rm -f conftest.$ac_objext
2850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2851 (eval $ac_compile) 2>conftest.er1
2852 ac_status=$?
2853 grep -v '^ *+' conftest.er1 >conftest.err
2854 rm -f conftest.er1
2855 cat conftest.err >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -z "$ac_c_werror_flag"
2859 || test ! -s conftest.err'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; } &&
2865 { ac_try='test -s conftest.$ac_objext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 :
2872 else
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876 continue
2877 fi
2878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2879 cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h. */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2885 $ac_declaration
2886 int
2887 main ()
2888 {
2889 exit (42);
2890 ;
2891 return 0;
2892 }
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>conftest.er1
2897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -z "$ac_c_werror_flag"
2904 || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest.$ac_objext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 break
2917 else
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 fi
2922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2923 done
2924 rm -f conftest*
2925 if test -n "$ac_declaration"; then
2926 echo '#ifdef __cplusplus' >>confdefs.h
2927 echo $ac_declaration >>confdefs.h
2928 echo '#endif' >>confdefs.h
2929 fi
2930
2931 else
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2934
2935 fi
2936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2937 ac_ext=c
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 DEPDIR="${am__leading_dot}deps"
2943
2944 ac_config_commands="$ac_config_commands depfiles"
2945
2946
2947 am_make=${MAKE-make}
2948 cat > confinc << 'END'
2949 am__doit:
2950 @echo done
2951 .PHONY: am__doit
2952 END
2953 # If we don't find an include directive, just comment out the code.
2954 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2955 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2956 am__include="#"
2957 am__quote=
2958 _am_result=none
2959 # First try GNU make style include.
2960 echo "include confinc" > confmf
2961 # We grep out `Entering directory' and `Leaving directory'
2962 # messages which can occur if `w' ends up in MAKEFLAGS.
2963 # In particular we don't look at `^make:' because GNU make might
2964 # be invoked under some other name (usually "gmake"), in which
2965 # case it prints its new name instead of `make'.
2966 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2967 am__include=include
2968 am__quote=
2969 _am_result=GNU
2970 fi
2971 # Now try BSD make style include.
2972 if test "$am__include" = "#"; then
2973 echo '.include "confinc"' > confmf
2974 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2975 am__include=.include
2976 am__quote="\""
2977 _am_result=BSD
2978 fi
2979 fi
2980
2981
2982 echo "$as_me:$LINENO: result: $_am_result" >&5
2983 echo "${ECHO_T}$_am_result" >&6
2984 rm -f confinc confmf
2985
2986 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2987 if test "${enable_dependency_tracking+set}" = set; then
2988 enableval="$enable_dependency_tracking"
2989
2990 fi;
2991 if test "x$enable_dependency_tracking" != xno; then
2992 am_depcomp="$ac_aux_dir/depcomp"
2993 AMDEPBACKSLASH='\'
2994 fi
2995
2996
2997 if test "x$enable_dependency_tracking" != xno; then
2998 AMDEP_TRUE=
2999 AMDEP_FALSE='#'
3000 else
3001 AMDEP_TRUE='#'
3002 AMDEP_FALSE=
3003 fi
3004
3005
3006
3007
3008 depcc="$CC" am_compiler_list=
3009
3010 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3011 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3012 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3016 # We make a subdir and do the tests there. Otherwise we can end up
3017 # making bogus files that we don't know about and never remove. For
3018 # instance it was reported that on HP-UX the gcc test will end up
3019 # making a dummy file named `D' -- because `-MD' means `put the output
3020 # in D'.
3021 mkdir conftest.dir
3022 # Copy depcomp to subdir because otherwise we won't find it if we're
3023 # using a relative directory.
3024 cp "$am_depcomp" conftest.dir
3025 cd conftest.dir
3026 # We will build objects and dependencies in a subdirectory because
3027 # it helps to detect inapplicable dependency modes. For instance
3028 # both Tru64's cc and ICC support -MD to output dependencies as a
3029 # side effect of compilation, but ICC will put the dependencies in
3030 # the current directory while Tru64 will put them in the object
3031 # directory.
3032 mkdir sub
3033
3034 am_cv_CC_dependencies_compiler_type=none
3035 if test "$am_compiler_list" = ""; then
3036 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3037 fi
3038 for depmode in $am_compiler_list; do
3039 # Setup a source with many dependencies, because some compilers
3040 # like to wrap large dependency lists on column 80 (with \), and
3041 # we should not choose a depcomp mode which is confused by this.
3042 #
3043 # We need to recreate these files for each test, as the compiler may
3044 # overwrite some of them when testing with obscure command lines.
3045 # This happens at least with the AIX C compiler.
3046 : > sub/conftest.c
3047 for i in 1 2 3 4 5 6; do
3048 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3049 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3050 # Solaris 8's {/usr,}/bin/sh.
3051 touch sub/conftst$i.h
3052 done
3053 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3054
3055 case $depmode in
3056 nosideeffect)
3057 # after this tag, mechanisms are not by side-effect, so they'll
3058 # only be used when explicitly requested
3059 if test "x$enable_dependency_tracking" = xyes; then
3060 continue
3061 else
3062 break
3063 fi
3064 ;;
3065 none) break ;;
3066 esac
3067 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3068 # mode. It turns out that the SunPro C++ compiler does not properly
3069 # handle `-M -o', and we need to detect this.
3070 if depmode=$depmode \
3071 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3072 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3073 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3074 >/dev/null 2>conftest.err &&
3075 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3076 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3077 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3078 # icc doesn't choke on unknown options, it will just issue warnings
3079 # or remarks (even with -Werror). So we grep stderr for any message
3080 # that says an option was ignored or not supported.
3081 # When given -MP, icc 7.0 and 7.1 complain thusly:
3082 # icc: Command line warning: ignoring option '-M'; no argument required
3083 # The diagnosis changed in icc 8.0:
3084 # icc: Command line remark: option '-MP' not supported
3085 if (grep 'ignoring option' conftest.err ||
3086 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3087 am_cv_CC_dependencies_compiler_type=$depmode
3088 break
3089 fi
3090 fi
3091 done
3092
3093 cd ..
3094 rm -rf conftest.dir
3095 else
3096 am_cv_CC_dependencies_compiler_type=none
3097 fi
3098
3099 fi
3100 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3101 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3102 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3103
3104
3105
3106 if
3107 test "x$enable_dependency_tracking" != xno \
3108 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3109 am__fastdepCC_TRUE=
3110 am__fastdepCC_FALSE='#'
3111 else
3112 am__fastdepCC_TRUE='#'
3113 am__fastdepCC_FALSE=
3114 fi
3115
3116
3117 # Check whether --enable-shared or --disable-shared was given.
3118 if test "${enable_shared+set}" = set; then
3119 enableval="$enable_shared"
3120 p=${PACKAGE-default}
3121 case $enableval in
3122 yes) enable_shared=yes ;;
3123 no) enable_shared=no ;;
3124 *)
3125 enable_shared=no
3126 # Look at the argument we got. We use all the common list separators.
3127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3128 for pkg in $enableval; do
3129 IFS="$lt_save_ifs"
3130 if test "X$pkg" = "X$p"; then
3131 enable_shared=yes
3132 fi
3133 done
3134 IFS="$lt_save_ifs"
3135 ;;
3136 esac
3137 else
3138 enable_shared=yes
3139 fi;
3140
3141 # Check whether --enable-static or --disable-static was given.
3142 if test "${enable_static+set}" = set; then
3143 enableval="$enable_static"
3144 p=${PACKAGE-default}
3145 case $enableval in
3146 yes) enable_static=yes ;;
3147 no) enable_static=no ;;
3148 *)
3149 enable_static=no
3150 # Look at the argument we got. We use all the common list separators.
3151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3152 for pkg in $enableval; do
3153 IFS="$lt_save_ifs"
3154 if test "X$pkg" = "X$p"; then
3155 enable_static=yes
3156 fi
3157 done
3158 IFS="$lt_save_ifs"
3159 ;;
3160 esac
3161 else
3162 enable_static=yes
3163 fi;
3164
3165 # Check whether --enable-fast-install or --disable-fast-install was given.
3166 if test "${enable_fast_install+set}" = set; then
3167 enableval="$enable_fast_install"
3168 p=${PACKAGE-default}
3169 case $enableval in
3170 yes) enable_fast_install=yes ;;
3171 no) enable_fast_install=no ;;
3172 *)
3173 enable_fast_install=no
3174 # Look at the argument we got. We use all the common list separators.
3175 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3176 for pkg in $enableval; do
3177 IFS="$lt_save_ifs"
3178 if test "X$pkg" = "X$p"; then
3179 enable_fast_install=yes
3180 fi
3181 done
3182 IFS="$lt_save_ifs"
3183 ;;
3184 esac
3185 else
3186 enable_fast_install=yes
3187 fi;
3188
3189 # Make sure we can run config.sub.
3190 $ac_config_sub sun4 >/dev/null 2>&1 ||
3191 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3192 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3193 { (exit 1); exit 1; }; }
3194
3195 echo "$as_me:$LINENO: checking build system type" >&5
3196 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3197 if test "${ac_cv_build+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 ac_cv_build_alias=$build_alias
3201 test -z "$ac_cv_build_alias" &&
3202 ac_cv_build_alias=`$ac_config_guess`
3203 test -z "$ac_cv_build_alias" &&
3204 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3205 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3206 { (exit 1); exit 1; }; }
3207 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3208 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3209 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3210 { (exit 1); exit 1; }; }
3211
3212 fi
3213 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3214 echo "${ECHO_T}$ac_cv_build" >&6
3215 build=$ac_cv_build
3216 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3217 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3218 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3219
3220
3221 echo "$as_me:$LINENO: checking host system type" >&5
3222 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3223 if test "${ac_cv_host+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 ac_cv_host_alias=$host_alias
3227 test -z "$ac_cv_host_alias" &&
3228 ac_cv_host_alias=$ac_cv_build_alias
3229 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3230 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3231 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3232 { (exit 1); exit 1; }; }
3233
3234 fi
3235 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3236 echo "${ECHO_T}$ac_cv_host" >&6
3237 host=$ac_cv_host
3238 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3239 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3240 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3241
3242
3243 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3244 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3245 if test "${lt_cv_path_SED+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 # Loop through the user's path and test for sed and gsed.
3249 # Then use that list of sed's as ones to test for truncation.
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
3255 for lt_ac_prog in sed gsed; do
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3258 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3259 fi
3260 done
3261 done
3262 done
3263 lt_ac_max=0
3264 lt_ac_count=0
3265 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3266 # along with /bin/sed that truncates output.
3267 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3268 test ! -f $lt_ac_sed && continue
3269 cat /dev/null > conftest.in
3270 lt_ac_count=0
3271 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3272 # Check for GNU sed and select it if it is found.
3273 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3274 lt_cv_path_SED=$lt_ac_sed
3275 break
3276 fi
3277 while true; do
3278 cat conftest.in conftest.in >conftest.tmp
3279 mv conftest.tmp conftest.in
3280 cp conftest.in conftest.nl
3281 echo >>conftest.nl
3282 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3283 cmp -s conftest.out conftest.nl || break
3284 # 10000 chars as input seems more than enough
3285 test $lt_ac_count -gt 10 && break
3286 lt_ac_count=`expr $lt_ac_count + 1`
3287 if test $lt_ac_count -gt $lt_ac_max; then
3288 lt_ac_max=$lt_ac_count
3289 lt_cv_path_SED=$lt_ac_sed
3290 fi
3291 done
3292 done
3293
3294 fi
3295
3296 SED=$lt_cv_path_SED
3297 echo "$as_me:$LINENO: result: $SED" >&5
3298 echo "${ECHO_T}$SED" >&6
3299
3300 echo "$as_me:$LINENO: checking for egrep" >&5
3301 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3302 if test "${ac_cv_prog_egrep+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3306 then ac_cv_prog_egrep='grep -E'
3307 else ac_cv_prog_egrep='egrep'
3308 fi
3309 fi
3310 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3311 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3312 EGREP=$ac_cv_prog_egrep
3313
3314
3315
3316 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3317 if test "${with_gnu_ld+set}" = set; then
3318 withval="$with_gnu_ld"
3319 test "$withval" = no || with_gnu_ld=yes
3320 else
3321 with_gnu_ld=no
3322 fi;
3323 ac_prog=ld
3324 if test "$GCC" = yes; then
3325 # Check if gcc -print-prog-name=ld gives a path.
3326 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3327 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3328 case $host in
3329 *-*-mingw*)
3330 # gcc leaves a trailing carriage return which upsets mingw
3331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3332 *)
3333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3334 esac
3335 case $ac_prog in
3336 # Accept absolute paths.
3337 [\\/]* | ?:[\\/]*)
3338 re_direlt='/[^/][^/]*/\.\./'
3339 # Canonicalize the pathname of ld
3340 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3341 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3342 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3343 done
3344 test -z "$LD" && LD="$ac_prog"
3345 ;;
3346 "")
3347 # If it fails, then pretend we aren't using GCC.
3348 ac_prog=ld
3349 ;;
3350 *)
3351 # If it is relative, then search for the first ld in PATH.
3352 with_gnu_ld=unknown
3353 ;;
3354 esac
3355 elif test "$with_gnu_ld" = yes; then
3356 echo "$as_me:$LINENO: checking for GNU ld" >&5
3357 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3358 else
3359 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3360 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3361 fi
3362 if test "${lt_cv_path_LD+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 if test -z "$LD"; then
3366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3367 for ac_dir in $PATH; do
3368 IFS="$lt_save_ifs"
3369 test -z "$ac_dir" && ac_dir=.
3370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3371 lt_cv_path_LD="$ac_dir/$ac_prog"
3372 # Check to see if the program is GNU ld. I'd rather use --version,
3373 # but apparently some variants of GNU ld only accept -v.
3374 # Break only if it was the GNU/non-GNU ld that we prefer.
3375 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3376 *GNU* | *'with BFD'*)
3377 test "$with_gnu_ld" != no && break
3378 ;;
3379 *)
3380 test "$with_gnu_ld" != yes && break
3381 ;;
3382 esac
3383 fi
3384 done
3385 IFS="$lt_save_ifs"
3386 else
3387 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3388 fi
3389 fi
3390
3391 LD="$lt_cv_path_LD"
3392 if test -n "$LD"; then
3393 echo "$as_me:$LINENO: result: $LD" >&5
3394 echo "${ECHO_T}$LD" >&6
3395 else
3396 echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6
3398 fi
3399 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3400 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3401 { (exit 1); exit 1; }; }
3402 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3403 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3404 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3408 case `$LD -v 2>&1 </dev/null` in
3409 *GNU* | *'with BFD'*)
3410 lt_cv_prog_gnu_ld=yes
3411 ;;
3412 *)
3413 lt_cv_prog_gnu_ld=no
3414 ;;
3415 esac
3416 fi
3417 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3418 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3419 with_gnu_ld=$lt_cv_prog_gnu_ld
3420
3421
3422 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3423 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3424 if test "${lt_cv_ld_reload_flag+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427 lt_cv_ld_reload_flag='-r'
3428 fi
3429 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3430 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3431 reload_flag=$lt_cv_ld_reload_flag
3432 case $reload_flag in
3433 "" | " "*) ;;
3434 *) reload_flag=" $reload_flag" ;;
3435 esac
3436 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3437 case $host_os in
3438 darwin*)
3439 if test "$GCC" = yes; then
3440 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3441 else
3442 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3443 fi
3444 ;;
3445 esac
3446
3447 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3448 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3449 if test "${lt_cv_path_NM+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$NM"; then
3453 # Let the user override the test.
3454 lt_cv_path_NM="$NM"
3455 else
3456 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3457 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3458 IFS="$lt_save_ifs"
3459 test -z "$ac_dir" && ac_dir=.
3460 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3461 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3462 # Check to see if the nm accepts a BSD-compat flag.
3463 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3464 # nm: unknown option "B" ignored
3465 # Tru64's nm complains that /dev/null is an invalid object file
3466 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3467 */dev/null* | *'Invalid file or object type'*)
3468 lt_cv_path_NM="$tmp_nm -B"
3469 break
3470 ;;
3471 *)
3472 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3473 */dev/null*)
3474 lt_cv_path_NM="$tmp_nm -p"
3475 break
3476 ;;
3477 *)
3478 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3479 continue # so that we can try to find one that supports BSD flags
3480 ;;
3481 esac
3482 esac
3483 fi
3484 done
3485 IFS="$lt_save_ifs"
3486 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3487 fi
3488 fi
3489 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3490 echo "${ECHO_T}$lt_cv_path_NM" >&6
3491 NM="$lt_cv_path_NM"
3492
3493 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3494 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3495 LN_S=$as_ln_s
3496 if test "$LN_S" = "ln -s"; then
3497 echo "$as_me:$LINENO: result: yes" >&5
3498 echo "${ECHO_T}yes" >&6
3499 else
3500 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3501 echo "${ECHO_T}no, using $LN_S" >&6
3502 fi
3503
3504 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3505 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3506 if test "${lt_cv_deplibs_check_method+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 lt_cv_file_magic_cmd='$MAGIC_CMD'
3510 lt_cv_file_magic_test_file=
3511 lt_cv_deplibs_check_method='unknown'
3512 # Need to set the preceding variable on all platforms that support
3513 # interlibrary dependencies.
3514 # 'none' -- dependencies not supported.
3515 # `unknown' -- same as none, but documents that we really don't know.
3516 # 'pass_all' -- all dependencies passed with no checks.
3517 # 'test_compile' -- check by making test program.
3518 # 'file_magic [[regex]]' -- check by looking for files in library path
3519 # which responds to the $file_magic_cmd with a given extended regex.
3520 # If you have `file' or equivalent on your system and you're not sure
3521 # whether `pass_all' will *always* work, you probably want this one.
3522
3523 case $host_os in
3524 aix4* | aix5*)
3525 lt_cv_deplibs_check_method=pass_all
3526 ;;
3527
3528 beos*)
3529 lt_cv_deplibs_check_method=pass_all
3530 ;;
3531
3532 bsdi[45]*)
3533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3534 lt_cv_file_magic_cmd='/usr/bin/file -L'
3535 lt_cv_file_magic_test_file=/shlib/libc.so
3536 ;;
3537
3538 cygwin*)
3539 # func_win32_libid is a shell function defined in ltmain.sh
3540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3541 lt_cv_file_magic_cmd='func_win32_libid'
3542 ;;
3543
3544 mingw* | pw32*)
3545 # Base MSYS/MinGW do not provide the 'file' command needed by
3546 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3547 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3548 lt_cv_file_magic_cmd='$OBJDUMP -f'
3549 ;;
3550
3551 darwin* | rhapsody*)
3552 lt_cv_deplibs_check_method=pass_all
3553 ;;
3554
3555 freebsd* | kfreebsd*-gnu | dragonfly*)
3556 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3557 case $host_cpu in
3558 i*86 )
3559 # Not sure whether the presence of OpenBSD here was a mistake.
3560 # Let's accept both of them until this is cleared up.
3561 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3562 lt_cv_file_magic_cmd=/usr/bin/file
3563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3564 ;;
3565 esac
3566 else
3567 lt_cv_deplibs_check_method=pass_all
3568 fi
3569 ;;
3570
3571 gnu*)
3572 lt_cv_deplibs_check_method=pass_all
3573 ;;
3574
3575 hpux10.20* | hpux11*)
3576 lt_cv_file_magic_cmd=/usr/bin/file
3577 case $host_cpu in
3578 ia64*)
3579 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3580 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3581 ;;
3582 hppa*64*)
3583 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]'
3584 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3585 ;;
3586 *)
3587 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3588 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3589 ;;
3590 esac
3591 ;;
3592
3593 irix5* | irix6* | nonstopux*)
3594 case $LD in
3595 *-32|*"-32 ") libmagic=32-bit;;
3596 *-n32|*"-n32 ") libmagic=N32;;
3597 *-64|*"-64 ") libmagic=64-bit;;
3598 *) libmagic=never-match;;
3599 esac
3600 lt_cv_deplibs_check_method=pass_all
3601 ;;
3602
3603 # This must be Linux ELF.
3604 linux*)
3605 lt_cv_deplibs_check_method=pass_all
3606 ;;
3607
3608 netbsd*)
3609 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3611 else
3612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3613 fi
3614 ;;
3615
3616 newos6*)
3617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3618 lt_cv_file_magic_cmd=/usr/bin/file
3619 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3620 ;;
3621
3622 nto-qnx*)
3623 lt_cv_deplibs_check_method=unknown
3624 ;;
3625
3626 openbsd*)
3627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3629 else
3630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3631 fi
3632 ;;
3633
3634 osf3* | osf4* | osf5*)
3635 lt_cv_deplibs_check_method=pass_all
3636 ;;
3637
3638 sco3.2v5*)
3639 lt_cv_deplibs_check_method=pass_all
3640 ;;
3641
3642 solaris*)
3643 lt_cv_deplibs_check_method=pass_all
3644 ;;
3645
3646 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3647 case $host_vendor in
3648 motorola)
3649 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]'
3650 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3651 ;;
3652 ncr)
3653 lt_cv_deplibs_check_method=pass_all
3654 ;;
3655 sequent)
3656 lt_cv_file_magic_cmd='/bin/file'
3657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3658 ;;
3659 sni)
3660 lt_cv_file_magic_cmd='/bin/file'
3661 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3662 lt_cv_file_magic_test_file=/lib/libc.so
3663 ;;
3664 siemens)
3665 lt_cv_deplibs_check_method=pass_all
3666 ;;
3667 esac
3668 ;;
3669
3670 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3671 lt_cv_deplibs_check_method=pass_all
3672 ;;
3673 esac
3674
3675 fi
3676 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3677 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3678 file_magic_cmd=$lt_cv_file_magic_cmd
3679 deplibs_check_method=$lt_cv_deplibs_check_method
3680 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3681
3682
3683
3684
3685 # If no C compiler was specified, use CC.
3686 LTCC=${LTCC-"$CC"}
3687
3688 # Allow CC to be a program name with arguments.
3689 compiler=$CC
3690
3691
3692 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3693 if test "${enable_libtool_lock+set}" = set; then
3694 enableval="$enable_libtool_lock"
3695
3696 fi;
3697 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3698
3699 # Some flags need to be propagated to the compiler or linker for good
3700 # libtool support.
3701 case $host in
3702 ia64-*-hpux*)
3703 # Find out which ABI we are using.
3704 echo 'int i;' > conftest.$ac_ext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; then
3710 case `/usr/bin/file conftest.$ac_objext` in
3711 *ELF-32*)
3712 HPUX_IA64_MODE="32"
3713 ;;
3714 *ELF-64*)
3715 HPUX_IA64_MODE="64"
3716 ;;
3717 esac
3718 fi
3719 rm -rf conftest*
3720 ;;
3721 *-*-irix6*)
3722 # Find out which ABI we are using.
3723 echo '#line 3723 "configure"' > conftest.$ac_ext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; then
3729 if test "$lt_cv_prog_gnu_ld" = yes; then
3730 case `/usr/bin/file conftest.$ac_objext` in
3731 *32-bit*)
3732 LD="${LD-ld} -melf32bsmip"
3733 ;;
3734 *N32*)
3735 LD="${LD-ld} -melf32bmipn32"
3736 ;;
3737 *64-bit*)
3738 LD="${LD-ld} -melf64bmip"
3739 ;;
3740 esac
3741 else
3742 case `/usr/bin/file conftest.$ac_objext` in
3743 *32-bit*)
3744 LD="${LD-ld} -32"
3745 ;;
3746 *N32*)
3747 LD="${LD-ld} -n32"
3748 ;;
3749 *64-bit*)
3750 LD="${LD-ld} -64"
3751 ;;
3752 esac
3753 fi
3754 fi
3755 rm -rf conftest*
3756 ;;
3757
3758 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3759 # Find out which ABI we are using.
3760 echo 'int i;' > conftest.$ac_ext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>&5
3763 ac_status=$?
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; then
3766 case `/usr/bin/file conftest.o` in
3767 *32-bit*)
3768 case $host in
3769 x86_64-*linux*)
3770 LD="${LD-ld} -m elf_i386"
3771 ;;
3772 ppc64-*linux*|powerpc64-*linux*)
3773 LD="${LD-ld} -m elf32ppclinux"
3774 ;;
3775 s390x-*linux*)
3776 LD="${LD-ld} -m elf_s390"
3777 ;;
3778 sparc64-*linux*)
3779 LD="${LD-ld} -m elf32_sparc"
3780 ;;
3781 esac
3782 ;;
3783 *64-bit*)
3784 case $host in
3785 x86_64-*linux*)
3786 LD="${LD-ld} -m elf_x86_64"
3787 ;;
3788 ppc*-*linux*|powerpc*-*linux*)
3789 LD="${LD-ld} -m elf64ppc"
3790 ;;
3791 s390*-*linux*)
3792 LD="${LD-ld} -m elf64_s390"
3793 ;;
3794 sparc*-*linux*)
3795 LD="${LD-ld} -m elf64_sparc"
3796 ;;
3797 esac
3798 ;;
3799 esac
3800 fi
3801 rm -rf conftest*
3802 ;;
3803
3804 *-*-sco3.2v5*)
3805 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3806 SAVE_CFLAGS="$CFLAGS"
3807 CFLAGS="$CFLAGS -belf"
3808 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3809 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3810 if test "${lt_cv_cc_needs_belf+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
3819 cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h. */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825
3826 int
3827 main ()
3828 {
3829
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>conftest.er1
3837 ac_status=$?
3838 grep -v '^ *+' conftest.er1 >conftest.err
3839 rm -f conftest.er1
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
3843 { ac_try='test -z "$ac_c_werror_flag"
3844 || test ! -s conftest.err'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 lt_cv_cc_needs_belf=yes
3857 else
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 lt_cv_cc_needs_belf=no
3862 fi
3863 rm -f conftest.err conftest.$ac_objext \
3864 conftest$ac_exeext conftest.$ac_ext
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
3871 fi
3872 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3873 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3874 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3875 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3876 CFLAGS="$SAVE_CFLAGS"
3877 fi
3878 ;;
3879
3880 esac
3881
3882 need_locks="$enable_libtool_lock"
3883
3884
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3892 # On Suns, sometimes $CPP names a directory.
3893 if test -n "$CPP" && test -d "$CPP"; then
3894 CPP=
3895 fi
3896 if test -z "$CPP"; then
3897 if test "${ac_cv_prog_CPP+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900 # Double quotes because CPP needs to be expanded
3901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3902 do
3903 ac_preproc_ok=false
3904 for ac_c_preproc_warn_flag in '' yes
3905 do
3906 # Use a header file that comes with gcc, so configuring glibc
3907 # with a fresh cross-compiler works.
3908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909 # <limits.h> exists even on freestanding compilers.
3910 # On the NeXT, cc -E runs the code through the compiler's parser,
3911 # not just through cpp. "Syntax error" is here to catch this case.
3912 cat >conftest.$ac_ext <<_ACEOF
3913 /* confdefs.h. */
3914 _ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #ifdef __STDC__
3919 # include <limits.h>
3920 #else
3921 # include <assert.h>
3922 #endif
3923 Syntax error
3924 _ACEOF
3925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } >/dev/null; then
3933 if test -s conftest.err; then
3934 ac_cpp_err=$ac_c_preproc_warn_flag
3935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3936 else
3937 ac_cpp_err=
3938 fi
3939 else
3940 ac_cpp_err=yes
3941 fi
3942 if test -z "$ac_cpp_err"; then
3943 :
3944 else
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.$ac_ext >&5
3947
3948 # Broken: fails on valid input.
3949 continue
3950 fi
3951 rm -f conftest.err conftest.$ac_ext
3952
3953 # OK, works on sane cases. Now check whether non-existent headers
3954 # can be detected and how.
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 #include <ac_nonexistent.h>
3962 _ACEOF
3963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } >/dev/null; then
3971 if test -s conftest.err; then
3972 ac_cpp_err=$ac_c_preproc_warn_flag
3973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3974 else
3975 ac_cpp_err=
3976 fi
3977 else
3978 ac_cpp_err=yes
3979 fi
3980 if test -z "$ac_cpp_err"; then
3981 # Broken: success on invalid input.
3982 continue
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987 # Passes both tests.
3988 ac_preproc_ok=:
3989 break
3990 fi
3991 rm -f conftest.err conftest.$ac_ext
3992
3993 done
3994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3995 rm -f conftest.err conftest.$ac_ext
3996 if $ac_preproc_ok; then
3997 break
3998 fi
3999
4000 done
4001 ac_cv_prog_CPP=$CPP
4002
4003 fi
4004 CPP=$ac_cv_prog_CPP
4005 else
4006 ac_cv_prog_CPP=$CPP
4007 fi
4008 echo "$as_me:$LINENO: result: $CPP" >&5
4009 echo "${ECHO_T}$CPP" >&6
4010 ac_preproc_ok=false
4011 for ac_c_preproc_warn_flag in '' yes
4012 do
4013 # Use a header file that comes with gcc, so configuring glibc
4014 # with a fresh cross-compiler works.
4015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4016 # <limits.h> exists even on freestanding compilers.
4017 # On the NeXT, cc -E runs the code through the compiler's parser,
4018 # not just through cpp. "Syntax error" is here to catch this case.
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h. */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 #ifdef __STDC__
4026 # include <limits.h>
4027 #else
4028 # include <assert.h>
4029 #endif
4030 Syntax error
4031 _ACEOF
4032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4034 ac_status=$?
4035 grep -v '^ *+' conftest.er1 >conftest.err
4036 rm -f conftest.er1
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } >/dev/null; then
4040 if test -s conftest.err; then
4041 ac_cpp_err=$ac_c_preproc_warn_flag
4042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4043 else
4044 ac_cpp_err=
4045 fi
4046 else
4047 ac_cpp_err=yes
4048 fi
4049 if test -z "$ac_cpp_err"; then
4050 :
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4054
4055 # Broken: fails on valid input.
4056 continue
4057 fi
4058 rm -f conftest.err conftest.$ac_ext
4059
4060 # OK, works on sane cases. Now check whether non-existent headers
4061 # can be detected and how.
4062 cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h. */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 #include <ac_nonexistent.h>
4069 _ACEOF
4070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } >/dev/null; then
4078 if test -s conftest.err; then
4079 ac_cpp_err=$ac_c_preproc_warn_flag
4080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4081 else
4082 ac_cpp_err=
4083 fi
4084 else
4085 ac_cpp_err=yes
4086 fi
4087 if test -z "$ac_cpp_err"; then
4088 # Broken: success on invalid input.
4089 continue
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 # Passes both tests.
4095 ac_preproc_ok=:
4096 break
4097 fi
4098 rm -f conftest.err conftest.$ac_ext
4099
4100 done
4101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4102 rm -f conftest.err conftest.$ac_ext
4103 if $ac_preproc_ok; then
4104 :
4105 else
4106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4107 See \`config.log' for more details." >&5
4108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4109 See \`config.log' for more details." >&2;}
4110 { (exit 1); exit 1; }; }
4111 fi
4112
4113 ac_ext=c
4114 ac_cpp='$CPP $CPPFLAGS'
4115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118
4119
4120 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4121 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4122 if test "${ac_cv_header_stdc+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 #include <stdlib.h>
4132 #include <stdarg.h>
4133 #include <string.h>
4134 #include <float.h>
4135
4136 int
4137 main ()
4138 {
4139
4140 ;
4141 return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest.$ac_objext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_c_werror_flag"
4154 || test ! -s conftest.err'
4155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 (eval $ac_try) 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 (eval $ac_try) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 ac_cv_header_stdc=yes
4167 else
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4170
4171 ac_cv_header_stdc=no
4172 fi
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174
4175 if test $ac_cv_header_stdc = yes; then
4176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4177 cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h. */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 #include <string.h>
4184
4185 _ACEOF
4186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4187 $EGREP "memchr" >/dev/null 2>&1; then
4188 :
4189 else
4190 ac_cv_header_stdc=no
4191 fi
4192 rm -f conftest*
4193
4194 fi
4195
4196 if test $ac_cv_header_stdc = yes; then
4197 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #include <stdlib.h>
4205
4206 _ACEOF
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208 $EGREP "free" >/dev/null 2>&1; then
4209 :
4210 else
4211 ac_cv_header_stdc=no
4212 fi
4213 rm -f conftest*
4214
4215 fi
4216
4217 if test $ac_cv_header_stdc = yes; then
4218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4219 if test "$cross_compiling" = yes; then
4220 :
4221 else
4222 cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h. */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <ctype.h>
4229 #if ((' ' & 0x0FF) == 0x020)
4230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4232 #else
4233 # define ISLOWER(c) \
4234 (('a' <= (c) && (c) <= 'i') \
4235 || ('j' <= (c) && (c) <= 'r') \
4236 || ('s' <= (c) && (c) <= 'z'))
4237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4238 #endif
4239
4240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4241 int
4242 main ()
4243 {
4244 int i;
4245 for (i = 0; i < 256; i++)
4246 if (XOR (islower (i), ISLOWER (i))
4247 || toupper (i) != TOUPPER (i))
4248 exit(2);
4249 exit (0);
4250 }
4251 _ACEOF
4252 rm -f conftest$ac_exeext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 :
4264 else
4265 echo "$as_me: program exited with status $ac_status" >&5
4266 echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 ( exit $ac_status )
4270 ac_cv_header_stdc=no
4271 fi
4272 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4273 fi
4274 fi
4275 fi
4276 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4277 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4278 if test $ac_cv_header_stdc = yes; then
4279
4280 cat >>confdefs.h <<\_ACEOF
4281 #define STDC_HEADERS 1
4282 _ACEOF
4283
4284 fi
4285
4286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4297 inttypes.h stdint.h unistd.h
4298 do
4299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4300 echo "$as_me:$LINENO: checking for $ac_header" >&5
4301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 $ac_includes_default
4312
4313 #include <$ac_header>
4314 _ACEOF
4315 rm -f conftest.$ac_objext
4316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4317 (eval $ac_compile) 2>conftest.er1
4318 ac_status=$?
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -z "$ac_c_werror_flag"
4325 || test ! -s conftest.err'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; } &&
4331 { ac_try='test -s conftest.$ac_objext'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 (eval $ac_try) 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; }; then
4337 eval "$as_ac_Header=yes"
4338 else
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 eval "$as_ac_Header=no"
4343 fi
4344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4345 fi
4346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4349 cat >>confdefs.h <<_ACEOF
4350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4351 _ACEOF
4352
4353 fi
4354
4355 done
4356
4357
4358
4359 for ac_header in dlfcn.h
4360 do
4361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4363 echo "$as_me:$LINENO: checking for $ac_header" >&5
4364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 fi
4368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4370 else
4371 # Is the header compilable?
4372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4374 cat >conftest.$ac_ext <<_ACEOF
4375 /* confdefs.h. */
4376 _ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 $ac_includes_default
4381 #include <$ac_header>
4382 _ACEOF
4383 rm -f conftest.$ac_objext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385 (eval $ac_compile) 2>conftest.er1
4386 ac_status=$?
4387 grep -v '^ *+' conftest.er1 >conftest.err
4388 rm -f conftest.er1
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } &&
4392 { ac_try='test -z "$ac_c_werror_flag"
4393 || test ! -s conftest.err'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; } &&
4399 { ac_try='test -s conftest.$ac_objext'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; }; then
4405 ac_header_compiler=yes
4406 else
4407 echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410 ac_header_compiler=no
4411 fi
4412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4414 echo "${ECHO_T}$ac_header_compiler" >&6
4415
4416 # Is the header present?
4417 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4419 cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h. */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <$ac_header>
4426 _ACEOF
4427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4429 ac_status=$?
4430 grep -v '^ *+' conftest.er1 >conftest.err
4431 rm -f conftest.er1
4432 cat conftest.err >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); } >/dev/null; then
4435 if test -s conftest.err; then
4436 ac_cpp_err=$ac_c_preproc_warn_flag
4437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4438 else
4439 ac_cpp_err=
4440 fi
4441 else
4442 ac_cpp_err=yes
4443 fi
4444 if test -z "$ac_cpp_err"; then
4445 ac_header_preproc=yes
4446 else
4447 echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4449
4450 ac_header_preproc=no
4451 fi
4452 rm -f conftest.err conftest.$ac_ext
4453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4454 echo "${ECHO_T}$ac_header_preproc" >&6
4455
4456 # So? What about this header?
4457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4458 yes:no: )
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4463 ac_header_preproc=yes
4464 ;;
4465 no:yes:* )
4466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4478 (
4479 cat <<\_ASBOX
4480 ## ---------------------------------------------------------------------- ##
4481 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4482 ## ---------------------------------------------------------------------- ##
4483 _ASBOX
4484 ) |
4485 sed "s/^/$as_me: WARNING: /" >&2
4486 ;;
4487 esac
4488 echo "$as_me:$LINENO: checking for $ac_header" >&5
4489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493 eval "$as_ac_Header=\$ac_header_preproc"
4494 fi
4495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4497
4498 fi
4499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4500 cat >>confdefs.h <<_ACEOF
4501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4502 _ACEOF
4503
4504 fi
4505
4506 done
4507
4508 ac_ext=cc
4509 ac_cpp='$CXXCPP $CPPFLAGS'
4510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4513 if test -n "$ac_tool_prefix"; then
4514 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4515 do
4516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_prog_CXX+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 if test -n "$CXX"; then
4524 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4528 do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4536 fi
4537 done
4538 done
4539
4540 fi
4541 fi
4542 CXX=$ac_cv_prog_CXX
4543 if test -n "$CXX"; then
4544 echo "$as_me:$LINENO: result: $CXX" >&5
4545 echo "${ECHO_T}$CXX" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4549 fi
4550
4551 test -n "$CXX" && break
4552 done
4553 fi
4554 if test -z "$CXX"; then
4555 ac_ct_CXX=$CXX
4556 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4557 do
4558 # Extract the first word of "$ac_prog", so it can be a program name with args.
4559 set dummy $ac_prog; ac_word=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 if test -n "$ac_ct_CXX"; then
4566 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_prog_ac_ct_CXX="$ac_prog"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579 done
4580 done
4581
4582 fi
4583 fi
4584 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4585 if test -n "$ac_ct_CXX"; then
4586 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4587 echo "${ECHO_T}$ac_ct_CXX" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4591 fi
4592
4593 test -n "$ac_ct_CXX" && break
4594 done
4595 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4596
4597 CXX=$ac_ct_CXX
4598 fi
4599
4600
4601 # Provide some information about the compiler.
4602 echo "$as_me:$LINENO:" \
4603 "checking for C++ compiler version" >&5
4604 ac_compiler=`set X $ac_compile; echo $2`
4605 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4606 (eval $ac_compiler --version </dev/null >&5) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }
4610 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4611 (eval $ac_compiler -v </dev/null >&5) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }
4615 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4616 (eval $ac_compiler -V </dev/null >&5) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }
4620
4621 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4622 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4623 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h. */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632
4633 int
4634 main ()
4635 {
4636 #ifndef __GNUC__
4637 choke me
4638 #endif
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 rm -f conftest.$ac_objext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -z "$ac_cxx_werror_flag"
4654 || test ! -s conftest.err'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest.$ac_objext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 (eval $ac_try) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 ac_compiler_gnu=yes
4667 else
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4670
4671 ac_compiler_gnu=no
4672 fi
4673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4675
4676 fi
4677 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4678 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4679 GXX=`test $ac_compiler_gnu = yes && echo yes`
4680 ac_test_CXXFLAGS=${CXXFLAGS+set}
4681 ac_save_CXXFLAGS=$CXXFLAGS
4682 CXXFLAGS="-g"
4683 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4684 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4685 if test "${ac_cv_prog_cxx_g+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h. */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h. */
4694
4695 int
4696 main ()
4697 {
4698
4699 ;
4700 return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705 (eval $ac_compile) 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } &&
4712 { ac_try='test -z "$ac_cxx_werror_flag"
4713 || test ! -s conftest.err'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 (eval $ac_try) 2>&5
4716 ac_status=$?
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; } &&
4719 { ac_try='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 (eval $ac_try) 2>&5
4722 ac_status=$?
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 ac_cv_prog_cxx_g=yes
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 ac_cv_prog_cxx_g=no
4731 fi
4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 fi
4734 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4735 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4736 if test "$ac_test_CXXFLAGS" = set; then
4737 CXXFLAGS=$ac_save_CXXFLAGS
4738 elif test $ac_cv_prog_cxx_g = yes; then
4739 if test "$GXX" = yes; then
4740 CXXFLAGS="-g -O2"
4741 else
4742 CXXFLAGS="-g"
4743 fi
4744 else
4745 if test "$GXX" = yes; then
4746 CXXFLAGS="-O2"
4747 else
4748 CXXFLAGS=
4749 fi
4750 fi
4751 for ac_declaration in \
4752 '' \
4753 'extern "C" void std::exit (int) throw (); using std::exit;' \
4754 'extern "C" void std::exit (int); using std::exit;' \
4755 'extern "C" void exit (int) throw ();' \
4756 'extern "C" void exit (int);' \
4757 'void exit (int);'
4758 do
4759 cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h. */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 $ac_declaration
4766 #include <stdlib.h>
4767 int
4768 main ()
4769 {
4770 exit (42);
4771 ;
4772 return 0;
4773 }
4774 _ACEOF
4775 rm -f conftest.$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -z "$ac_cxx_werror_flag"
4785 || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try='test -s conftest.$ac_objext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 :
4798 else
4799 echo "$as_me: failed program was:" >&5
4800 sed 's/^/| /' conftest.$ac_ext >&5
4801
4802 continue
4803 fi
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 $ac_declaration
4812 int
4813 main ()
4814 {
4815 exit (42);
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4823 ac_status=$?
4824 grep -v '^ *+' conftest.er1 >conftest.err
4825 rm -f conftest.er1
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -z "$ac_cxx_werror_flag"
4830 || test ! -s conftest.err'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; } &&
4836 { ac_try='test -s conftest.$ac_objext'
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 (eval $ac_try) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; }; then
4842 break
4843 else
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 fi
4848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4849 done
4850 rm -f conftest*
4851 if test -n "$ac_declaration"; then
4852 echo '#ifdef __cplusplus' >>confdefs.h
4853 echo $ac_declaration >>confdefs.h
4854 echo '#endif' >>confdefs.h
4855 fi
4856
4857 ac_ext=cc
4858 ac_cpp='$CXXCPP $CPPFLAGS'
4859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4862
4863 depcc="$CXX" am_compiler_list=
4864
4865 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4866 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4867 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4871 # We make a subdir and do the tests there. Otherwise we can end up
4872 # making bogus files that we don't know about and never remove. For
4873 # instance it was reported that on HP-UX the gcc test will end up
4874 # making a dummy file named `D' -- because `-MD' means `put the output
4875 # in D'.
4876 mkdir conftest.dir
4877 # Copy depcomp to subdir because otherwise we won't find it if we're
4878 # using a relative directory.
4879 cp "$am_depcomp" conftest.dir
4880 cd conftest.dir
4881 # We will build objects and dependencies in a subdirectory because
4882 # it helps to detect inapplicable dependency modes. For instance
4883 # both Tru64's cc and ICC support -MD to output dependencies as a
4884 # side effect of compilation, but ICC will put the dependencies in
4885 # the current directory while Tru64 will put them in the object
4886 # directory.
4887 mkdir sub
4888
4889 am_cv_CXX_dependencies_compiler_type=none
4890 if test "$am_compiler_list" = ""; then
4891 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4892 fi
4893 for depmode in $am_compiler_list; do
4894 # Setup a source with many dependencies, because some compilers
4895 # like to wrap large dependency lists on column 80 (with \), and
4896 # we should not choose a depcomp mode which is confused by this.
4897 #
4898 # We need to recreate these files for each test, as the compiler may
4899 # overwrite some of them when testing with obscure command lines.
4900 # This happens at least with the AIX C compiler.
4901 : > sub/conftest.c
4902 for i in 1 2 3 4 5 6; do
4903 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4904 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4905 # Solaris 8's {/usr,}/bin/sh.
4906 touch sub/conftst$i.h
4907 done
4908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4909
4910 case $depmode in
4911 nosideeffect)
4912 # after this tag, mechanisms are not by side-effect, so they'll
4913 # only be used when explicitly requested
4914 if test "x$enable_dependency_tracking" = xyes; then
4915 continue
4916 else
4917 break
4918 fi
4919 ;;
4920 none) break ;;
4921 esac
4922 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4923 # mode. It turns out that the SunPro C++ compiler does not properly
4924 # handle `-M -o', and we need to detect this.
4925 if depmode=$depmode \
4926 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4927 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4928 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4929 >/dev/null 2>conftest.err &&
4930 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4931 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4932 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4933 # icc doesn't choke on unknown options, it will just issue warnings
4934 # or remarks (even with -Werror). So we grep stderr for any message
4935 # that says an option was ignored or not supported.
4936 # When given -MP, icc 7.0 and 7.1 complain thusly:
4937 # icc: Command line warning: ignoring option '-M'; no argument required
4938 # The diagnosis changed in icc 8.0:
4939 # icc: Command line remark: option '-MP' not supported
4940 if (grep 'ignoring option' conftest.err ||
4941 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4942 am_cv_CXX_dependencies_compiler_type=$depmode
4943 break
4944 fi
4945 fi
4946 done
4947
4948 cd ..
4949 rm -rf conftest.dir
4950 else
4951 am_cv_CXX_dependencies_compiler_type=none
4952 fi
4953
4954 fi
4955 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4956 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4957 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4958
4959
4960
4961 if
4962 test "x$enable_dependency_tracking" != xno \
4963 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4964 am__fastdepCXX_TRUE=
4965 am__fastdepCXX_FALSE='#'
4966 else
4967 am__fastdepCXX_TRUE='#'
4968 am__fastdepCXX_FALSE=
4969 fi
4970
4971
4972
4973
4974 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4975 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4976 (test "X$CXX" != "Xg++"))) ; then
4977 ac_ext=cc
4978 ac_cpp='$CXXCPP $CPPFLAGS'
4979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4982 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4983 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4984 if test -z "$CXXCPP"; then
4985 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988 # Double quotes because CXXCPP needs to be expanded
4989 for CXXCPP in "$CXX -E" "/lib/cpp"
4990 do
4991 ac_preproc_ok=false
4992 for ac_cxx_preproc_warn_flag in '' yes
4993 do
4994 # Use a header file that comes with gcc, so configuring glibc
4995 # with a fresh cross-compiler works.
4996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 # <limits.h> exists even on freestanding compilers.
4998 # On the NeXT, cc -E runs the code through the compiler's parser,
4999 # not just through cpp. "Syntax error" is here to catch this case.
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 #ifdef __STDC__
5007 # include <limits.h>
5008 #else
5009 # include <assert.h>
5010 #endif
5011 Syntax error
5012 _ACEOF
5013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } >/dev/null; then
5021 if test -s conftest.err; then
5022 ac_cpp_err=$ac_cxx_preproc_warn_flag
5023 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5024 else
5025 ac_cpp_err=
5026 fi
5027 else
5028 ac_cpp_err=yes
5029 fi
5030 if test -z "$ac_cpp_err"; then
5031 :
5032 else
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5035
5036 # Broken: fails on valid input.
5037 continue
5038 fi
5039 rm -f conftest.err conftest.$ac_ext
5040
5041 # OK, works on sane cases. Now check whether non-existent headers
5042 # can be detected and how.
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 #include <ac_nonexistent.h>
5050 _ACEOF
5051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } >/dev/null; then
5059 if test -s conftest.err; then
5060 ac_cpp_err=$ac_cxx_preproc_warn_flag
5061 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5062 else
5063 ac_cpp_err=
5064 fi
5065 else
5066 ac_cpp_err=yes
5067 fi
5068 if test -z "$ac_cpp_err"; then
5069 # Broken: success on invalid input.
5070 continue
5071 else
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075 # Passes both tests.
5076 ac_preproc_ok=:
5077 break
5078 fi
5079 rm -f conftest.err conftest.$ac_ext
5080
5081 done
5082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5083 rm -f conftest.err conftest.$ac_ext
5084 if $ac_preproc_ok; then
5085 break
5086 fi
5087
5088 done
5089 ac_cv_prog_CXXCPP=$CXXCPP
5090
5091 fi
5092 CXXCPP=$ac_cv_prog_CXXCPP
5093 else
5094 ac_cv_prog_CXXCPP=$CXXCPP
5095 fi
5096 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5097 echo "${ECHO_T}$CXXCPP" >&6
5098 ac_preproc_ok=false
5099 for ac_cxx_preproc_warn_flag in '' yes
5100 do
5101 # Use a header file that comes with gcc, so configuring glibc
5102 # with a fresh cross-compiler works.
5103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5104 # <limits.h> exists even on freestanding compilers.
5105 # On the NeXT, cc -E runs the code through the compiler's parser,
5106 # not just through cpp. "Syntax error" is here to catch this case.
5107 cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h. */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 #ifdef __STDC__
5114 # include <limits.h>
5115 #else
5116 # include <assert.h>
5117 #endif
5118 Syntax error
5119 _ACEOF
5120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } >/dev/null; then
5128 if test -s conftest.err; then
5129 ac_cpp_err=$ac_cxx_preproc_warn_flag
5130 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5131 else
5132 ac_cpp_err=
5133 fi
5134 else
5135 ac_cpp_err=yes
5136 fi
5137 if test -z "$ac_cpp_err"; then
5138 :
5139 else
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143 # Broken: fails on valid input.
5144 continue
5145 fi
5146 rm -f conftest.err conftest.$ac_ext
5147
5148 # OK, works on sane cases. Now check whether non-existent headers
5149 # can be detected and how.
5150 cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h. */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5156 #include <ac_nonexistent.h>
5157 _ACEOF
5158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } >/dev/null; then
5166 if test -s conftest.err; then
5167 ac_cpp_err=$ac_cxx_preproc_warn_flag
5168 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5169 else
5170 ac_cpp_err=
5171 fi
5172 else
5173 ac_cpp_err=yes
5174 fi
5175 if test -z "$ac_cpp_err"; then
5176 # Broken: success on invalid input.
5177 continue
5178 else
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 # Passes both tests.
5183 ac_preproc_ok=:
5184 break
5185 fi
5186 rm -f conftest.err conftest.$ac_ext
5187
5188 done
5189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5190 rm -f conftest.err conftest.$ac_ext
5191 if $ac_preproc_ok; then
5192 :
5193 else
5194 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5195 See \`config.log' for more details." >&5
5196 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5197 See \`config.log' for more details." >&2;}
5198 { (exit 1); exit 1; }; }
5199 fi
5200
5201 ac_ext=cc
5202 ac_cpp='$CXXCPP $CPPFLAGS'
5203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206
5207 fi
5208
5209
5210 ac_ext=f
5211 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5212 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5214 if test -n "$ac_tool_prefix"; then
5215 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5216 do
5217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5219 echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221 if test "${ac_cv_prog_F77+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224 if test -n "$F77"; then
5225 ac_cv_prog_F77="$F77" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238 done
5239 done
5240
5241 fi
5242 fi
5243 F77=$ac_cv_prog_F77
5244 if test -n "$F77"; then
5245 echo "$as_me:$LINENO: result: $F77" >&5
5246 echo "${ECHO_T}$F77" >&6
5247 else
5248 echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5250 fi
5251
5252 test -n "$F77" && break
5253 done
5254 fi
5255 if test -z "$F77"; then
5256 ac_ct_F77=$F77
5257 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5258 do
5259 # Extract the first word of "$ac_prog", so it can be a program name with args.
5260 set dummy $ac_prog; ac_word=$2
5261 echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 if test -n "$ac_ct_F77"; then
5267 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_ac_ct_F77="$ac_prog"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5279 fi
5280 done
5281 done
5282
5283 fi
5284 fi
5285 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5286 if test -n "$ac_ct_F77"; then
5287 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5288 echo "${ECHO_T}$ac_ct_F77" >&6
5289 else
5290 echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6
5292 fi
5293
5294 test -n "$ac_ct_F77" && break
5295 done
5296
5297 F77=$ac_ct_F77
5298 fi
5299
5300
5301 # Provide some information about the compiler.
5302 echo "$as_me:5302:" \
5303 "checking for Fortran 77 compiler version" >&5
5304 ac_compiler=`set X $ac_compile; echo $2`
5305 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5306 (eval $ac_compiler --version </dev/null >&5) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }
5310 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5311 (eval $ac_compiler -v </dev/null >&5) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5315 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5316 (eval $ac_compiler -V </dev/null >&5) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }
5320 rm -f a.out
5321
5322 # If we don't use `.F' as extension, the preprocessor is not run on the
5323 # input file. (Note that this only needs to work for GNU compilers.)
5324 ac_save_ext=$ac_ext
5325 ac_ext=F
5326 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5327 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5328 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331 cat >conftest.$ac_ext <<_ACEOF
5332 program main
5333 #ifndef __GNUC__
5334 choke me
5335 #endif
5336
5337 end
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>conftest.er1
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } &&
5348 { ac_try='test -z "$ac_f77_werror_flag"
5349 || test ! -s conftest.err'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try='test -s conftest.$ac_objext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 (eval $ac_try) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5361 ac_compiler_gnu=yes
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 ac_compiler_gnu=no
5367 fi
5368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5369 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5370
5371 fi
5372 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5373 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5374 ac_ext=$ac_save_ext
5375 ac_test_FFLAGS=${FFLAGS+set}
5376 ac_save_FFLAGS=$FFLAGS
5377 FFLAGS=
5378 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5379 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5380 if test "${ac_cv_prog_f77_g+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 FFLAGS=-g
5384 cat >conftest.$ac_ext <<_ACEOF
5385 program main
5386
5387 end
5388 _ACEOF
5389 rm -f conftest.$ac_objext
5390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5391 (eval $ac_compile) 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -z "$ac_f77_werror_flag"
5399 || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 (eval $ac_try) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest.$ac_objext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_cv_prog_f77_g=yes
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416 ac_cv_prog_f77_g=no
5417 fi
5418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419
5420 fi
5421 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5422 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5423 if test "$ac_test_FFLAGS" = set; then
5424 FFLAGS=$ac_save_FFLAGS
5425 elif test $ac_cv_prog_f77_g = yes; then
5426 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5427 FFLAGS="-g -O2"
5428 else
5429 FFLAGS="-g"
5430 fi
5431 else
5432 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5433 FFLAGS="-O2"
5434 else
5435 FFLAGS=
5436 fi
5437 fi
5438
5439 G77=`test $ac_compiler_gnu = yes && echo yes`
5440 ac_ext=c
5441 ac_cpp='$CPP $CPPFLAGS'
5442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5445
5446
5447
5448 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5449
5450 # find the maximum length of command line arguments
5451 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5452 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5453 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 i=0
5457 teststring="ABCD"
5458
5459 case $build_os in
5460 msdosdjgpp*)
5461 # On DJGPP, this test can blow up pretty badly due to problems in libc
5462 # (any single argument exceeding 2000 bytes causes a buffer overrun
5463 # during glob expansion). Even if it were fixed, the result of this
5464 # check would be larger than it should be.
5465 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5466 ;;
5467
5468 gnu*)
5469 # Under GNU Hurd, this test is not required because there is
5470 # no limit to the length of command line arguments.
5471 # Libtool will interpret -1 as no limit whatsoever
5472 lt_cv_sys_max_cmd_len=-1;
5473 ;;
5474
5475 cygwin* | mingw*)
5476 # On Win9x/ME, this test blows up -- it succeeds, but takes
5477 # about 5 minutes as the teststring grows exponentially.
5478 # Worse, since 9x/ME are not pre-emptively multitasking,
5479 # you end up with a "frozen" computer, even though with patience
5480 # the test eventually succeeds (with a max line length of 256k).
5481 # Instead, let's just punt: use the minimum linelength reported by
5482 # all of the supported platforms: 8192 (on NT/2K/XP).
5483 lt_cv_sys_max_cmd_len=8192;
5484 ;;
5485
5486 amigaos*)
5487 # On AmigaOS with pdksh, this test takes hours, literally.
5488 # So we just punt and use a minimum line length of 8192.
5489 lt_cv_sys_max_cmd_len=8192;
5490 ;;
5491
5492 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5493 # This has been around since 386BSD, at least. Likely further.
5494 if test -x /sbin/sysctl; then
5495 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5496 elif test -x /usr/sbin/sysctl; then
5497 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5498 else
5499 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5500 fi
5501 # And add a safety zone
5502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5504 ;;
5505 osf*)
5506 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5507 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5508 # nice to cause kernel panics so lets avoid the loop below.
5509 # First set a reasonable default.
5510 lt_cv_sys_max_cmd_len=16384
5511 #
5512 if test -x /sbin/sysconfig; then
5513 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5514 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5515 esac
5516 fi
5517 ;;
5518 *)
5519 # If test is not a shell built-in, we'll probably end up computing a
5520 # maximum length that is only half of the actual maximum length, but
5521 # we can't tell.
5522 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5523 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5524 = "XX$teststring") >/dev/null 2>&1 &&
5525 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5526 lt_cv_sys_max_cmd_len=$new_result &&
5527 test $i != 17 # 1/2 MB should be enough
5528 do
5529 i=`expr $i + 1`
5530 teststring=$teststring$teststring
5531 done
5532 teststring=
5533 # Add a significant safety factor because C++ compilers can tack on massive
5534 # amounts of additional arguments before passing them to the linker.
5535 # It appears as though 1/2 is a usable value.
5536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5537 ;;
5538 esac
5539
5540 fi
5541
5542 if test -n $lt_cv_sys_max_cmd_len ; then
5543 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5544 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5545 else
5546 echo "$as_me:$LINENO: result: none" >&5
5547 echo "${ECHO_T}none" >&6
5548 fi
5549
5550
5551
5552
5553 # Check for command to grab the raw symbol name followed by C symbol from nm.
5554 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5555 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5556 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559
5560 # These are sane defaults that work on at least a few old systems.
5561 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5562
5563 # Character class describing NM global symbol codes.
5564 symcode='[BCDEGRST]'
5565
5566 # Regexp to match symbols that can be accessed directly from C.
5567 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5568
5569 # Transform an extracted symbol line into a proper C declaration
5570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5571
5572 # Transform an extracted symbol line into symbol name and symbol address
5573 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'"
5574
5575 # Define system-specific variables.
5576 case $host_os in
5577 aix*)
5578 symcode='[BCDT]'
5579 ;;
5580 cygwin* | mingw* | pw32*)
5581 symcode='[ABCDGISTW]'
5582 ;;
5583 hpux*) # Its linker distinguishes data from code symbols
5584 if test "$host_cpu" = ia64; then
5585 symcode='[ABCDEGRST]'
5586 fi
5587 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5588 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'"
5589 ;;
5590 linux*)
5591 if test "$host_cpu" = ia64; then
5592 symcode='[ABCDGIRSTW]'
5593 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5594 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'"
5595 fi
5596 ;;
5597 irix* | nonstopux*)
5598 symcode='[BCDEGRST]'
5599 ;;
5600 osf*)
5601 symcode='[BCDEGQRST]'
5602 ;;
5603 solaris* | sysv5*)
5604 symcode='[BDRT]'
5605 ;;
5606 sysv4)
5607 symcode='[DFNSTU]'
5608 ;;
5609 esac
5610
5611 # Handle CRLF in mingw tool chain
5612 opt_cr=
5613 case $build_os in
5614 mingw*)
5615 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5616 ;;
5617 esac
5618
5619 # If we're using GNU nm, then use its standard symbol codes.
5620 case `$NM -V 2>&1` in
5621 *GNU* | *'with BFD'*)
5622 symcode='[ABCDGIRSTW]' ;;
5623 esac
5624
5625 # Try without a prefix undercore, then with it.
5626 for ac_symprfx in "" "_"; do
5627
5628 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5629 symxfrm="\\1 $ac_symprfx\\2 \\2"
5630
5631 # Write the raw and C identifiers.
5632 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5633
5634 # Check to see that the pipe works correctly.
5635 pipe_works=no
5636
5637 rm -f conftest*
5638 cat > conftest.$ac_ext <<EOF
5639 #ifdef __cplusplus
5640 extern "C" {
5641 #endif
5642 char nm_test_var;
5643 void nm_test_func(){}
5644 #ifdef __cplusplus
5645 }
5646 #endif
5647 int main(){nm_test_var='a';nm_test_func();return(0);}
5648 EOF
5649
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; then
5655 # Now try to grab the symbols.
5656 nlist=conftest.nm
5657 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5658 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && test -s "$nlist"; then
5662 # Try sorting and uniquifying the output.
5663 if sort "$nlist" | uniq > "$nlist"T; then
5664 mv -f "$nlist"T "$nlist"
5665 else
5666 rm -f "$nlist"T
5667 fi
5668
5669 # Make sure that we snagged all the symbols we need.
5670 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5671 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5672 cat <<EOF > conftest.$ac_ext
5673 #ifdef __cplusplus
5674 extern "C" {
5675 #endif
5676
5677 EOF
5678 # Now generate the symbol file.
5679 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5680
5681 cat <<EOF >> conftest.$ac_ext
5682 #if defined (__STDC__) && __STDC__
5683 # define lt_ptr_t void *
5684 #else
5685 # define lt_ptr_t char *
5686 # define const
5687 #endif
5688
5689 /* The mapping between symbol names and symbols. */
5690 const struct {
5691 const char *name;
5692 lt_ptr_t address;
5693 }
5694 lt_preloaded_symbols[] =
5695 {
5696 EOF
5697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5698 cat <<\EOF >> conftest.$ac_ext
5699 {0, (lt_ptr_t) 0}
5700 };
5701
5702 #ifdef __cplusplus
5703 }
5704 #endif
5705 EOF
5706 # Now try linking the two files.
5707 mv conftest.$ac_objext conftstm.$ac_objext
5708 lt_save_LIBS="$LIBS"
5709 lt_save_CFLAGS="$CFLAGS"
5710 LIBS="conftstm.$ac_objext"
5711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5713 (eval $ac_link) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5717 pipe_works=yes
5718 fi
5719 LIBS="$lt_save_LIBS"
5720 CFLAGS="$lt_save_CFLAGS"
5721 else
5722 echo "cannot find nm_test_func in $nlist" >&5
5723 fi
5724 else
5725 echo "cannot find nm_test_var in $nlist" >&5
5726 fi
5727 else
5728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5729 fi
5730 else
5731 echo "$progname: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5733 fi
5734 rm -f conftest* conftst*
5735
5736 # Do not use the global_symbol_pipe unless it works.
5737 if test "$pipe_works" = yes; then
5738 break
5739 else
5740 lt_cv_sys_global_symbol_pipe=
5741 fi
5742 done
5743
5744 fi
5745
5746 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5747 lt_cv_sys_global_symbol_to_cdecl=
5748 fi
5749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5750 echo "$as_me:$LINENO: result: failed" >&5
5751 echo "${ECHO_T}failed" >&6
5752 else
5753 echo "$as_me:$LINENO: result: ok" >&5
5754 echo "${ECHO_T}ok" >&6
5755 fi
5756
5757 echo "$as_me:$LINENO: checking for objdir" >&5
5758 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5759 if test "${lt_cv_objdir+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 rm -f .libs 2>/dev/null
5763 mkdir .libs 2>/dev/null
5764 if test -d .libs; then
5765 lt_cv_objdir=.libs
5766 else
5767 # MS-DOS does not allow filenames that begin with a dot.
5768 lt_cv_objdir=_libs
5769 fi
5770 rmdir .libs 2>/dev/null
5771 fi
5772 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5773 echo "${ECHO_T}$lt_cv_objdir" >&6
5774 objdir=$lt_cv_objdir
5775
5776
5777
5778
5779
5780 case $host_os in
5781 aix3*)
5782 # AIX sometimes has problems with the GCC collect2 program. For some
5783 # reason, if we set the COLLECT_NAMES environment variable, the problems
5784 # vanish in a puff of smoke.
5785 if test "X${COLLECT_NAMES+set}" != Xset; then
5786 COLLECT_NAMES=
5787 export COLLECT_NAMES
5788 fi
5789 ;;
5790 esac
5791
5792 # Sed substitution that helps us do robust quoting. It backslashifies
5793 # metacharacters that are still active within double-quoted strings.
5794 Xsed='sed -e 1s/^X//'
5795 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5796
5797 # Same as above, but do not quote variable references.
5798 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5799
5800 # Sed substitution to delay expansion of an escaped shell variable in a
5801 # double_quote_subst'ed string.
5802 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5803
5804 # Sed substitution to avoid accidental globbing in evaled expressions
5805 no_glob_subst='s/\*/\\\*/g'
5806
5807 # Constants:
5808 rm="rm -f"
5809
5810 # Global variables:
5811 default_ofile=libtool
5812 can_build_shared=yes
5813
5814 # All known linkers require a `.a' archive for static linking (except MSVC,
5815 # which needs '.lib').
5816 libext=a
5817 ltmain="$ac_aux_dir/ltmain.sh"
5818 ofile="$default_ofile"
5819 with_gnu_ld="$lt_cv_prog_gnu_ld"
5820
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}ar; ac_word=$2
5824 echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5826 if test "${ac_cv_prog_AR+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829 if test -n "$AR"; then
5830 ac_cv_prog_AR="$AR" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_AR="${ac_tool_prefix}ar"
5840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 break 2
5842 fi
5843 done
5844 done
5845
5846 fi
5847 fi
5848 AR=$ac_cv_prog_AR
5849 if test -n "$AR"; then
5850 echo "$as_me:$LINENO: result: $AR" >&5
5851 echo "${ECHO_T}$AR" >&6
5852 else
5853 echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6
5855 fi
5856
5857 fi
5858 if test -z "$ac_cv_prog_AR"; then
5859 ac_ct_AR=$AR
5860 # Extract the first word of "ar", so it can be a program name with args.
5861 set dummy ar; ac_word=$2
5862 echo "$as_me:$LINENO: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 if test -n "$ac_ct_AR"; then
5868 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877 ac_cv_prog_ac_ct_AR="ar"
5878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881 done
5882 done
5883
5884 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5885 fi
5886 fi
5887 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5888 if test -n "$ac_ct_AR"; then
5889 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5890 echo "${ECHO_T}$ac_ct_AR" >&6
5891 else
5892 echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6
5894 fi
5895
5896 AR=$ac_ct_AR
5897 else
5898 AR="$ac_cv_prog_AR"
5899 fi
5900
5901 if test -n "$ac_tool_prefix"; then
5902 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_RANLIB+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909 if test -n "$RANLIB"; then
5910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923 done
5924 done
5925
5926 fi
5927 fi
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930 echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6
5932 else
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5935 fi
5936
5937 fi
5938 if test -z "$ac_cv_prog_RANLIB"; then
5939 ac_ct_RANLIB=$RANLIB
5940 # Extract the first word of "ranlib", so it can be a program name with args.
5941 set dummy ranlib; ac_word=$2
5942 echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 else
5947 if test -n "$ac_ct_RANLIB"; then
5948 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957 ac_cv_prog_ac_ct_RANLIB="ranlib"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5960 fi
5961 done
5962 done
5963
5964 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5965 fi
5966 fi
5967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5968 if test -n "$ac_ct_RANLIB"; then
5969 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5970 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5971 else
5972 echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6
5974 fi
5975
5976 RANLIB=$ac_ct_RANLIB
5977 else
5978 RANLIB="$ac_cv_prog_RANLIB"
5979 fi
5980
5981 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}strip; ac_word=$2
5984 echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5986 if test "${ac_cv_prog_STRIP+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989 if test -n "$STRIP"; then
5990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005
6006 fi
6007 fi
6008 STRIP=$ac_cv_prog_STRIP
6009 if test -n "$STRIP"; then
6010 echo "$as_me:$LINENO: result: $STRIP" >&5
6011 echo "${ECHO_T}$STRIP" >&6
6012 else
6013 echo "$as_me:$LINENO: result: no" >&5
6014 echo "${ECHO_T}no" >&6
6015 fi
6016
6017 fi
6018 if test -z "$ac_cv_prog_STRIP"; then
6019 ac_ct_STRIP=$STRIP
6020 # Extract the first word of "strip", so it can be a program name with args.
6021 set dummy strip; ac_word=$2
6022 echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6024 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027 if test -n "$ac_ct_STRIP"; then
6028 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_ac_ct_STRIP="strip"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041 done
6042 done
6043
6044 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6045 fi
6046 fi
6047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6048 if test -n "$ac_ct_STRIP"; then
6049 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6050 echo "${ECHO_T}$ac_ct_STRIP" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6
6054 fi
6055
6056 STRIP=$ac_ct_STRIP
6057 else
6058 STRIP="$ac_cv_prog_STRIP"
6059 fi
6060
6061
6062 old_CC="$CC"
6063 old_CFLAGS="$CFLAGS"
6064
6065 # Set sane defaults for various variables
6066 test -z "$AR" && AR=ar
6067 test -z "$AR_FLAGS" && AR_FLAGS=cru
6068 test -z "$AS" && AS=as
6069 test -z "$CC" && CC=cc
6070 test -z "$LTCC" && LTCC=$CC
6071 test -z "$DLLTOOL" && DLLTOOL=dlltool
6072 test -z "$LD" && LD=ld
6073 test -z "$LN_S" && LN_S="ln -s"
6074 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6075 test -z "$NM" && NM=nm
6076 test -z "$SED" && SED=sed
6077 test -z "$OBJDUMP" && OBJDUMP=objdump
6078 test -z "$RANLIB" && RANLIB=:
6079 test -z "$STRIP" && STRIP=:
6080 test -z "$ac_objext" && ac_objext=o
6081
6082 # Determine commands to create old-style static archives.
6083 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6084 old_postinstall_cmds='chmod 644 $oldlib'
6085 old_postuninstall_cmds=
6086
6087 if test -n "$RANLIB"; then
6088 case $host_os in
6089 openbsd*)
6090 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6091 ;;
6092 *)
6093 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6094 ;;
6095 esac
6096 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6097 fi
6098
6099 for cc_temp in $compiler""; do
6100 case $cc_temp in
6101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6103 \-*) ;;
6104 *) break;;
6105 esac
6106 done
6107 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6108
6109
6110 # Only perform the check for file, if the check method requires it
6111 case $deplibs_check_method in
6112 file_magic*)
6113 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6114 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6115 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6116 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119 case $MAGIC_CMD in
6120 [\\/*] | ?:[\\/]*)
6121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6122 ;;
6123 *)
6124 lt_save_MAGIC_CMD="$MAGIC_CMD"
6125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6127 for ac_dir in $ac_dummy; do
6128 IFS="$lt_save_ifs"
6129 test -z "$ac_dir" && ac_dir=.
6130 if test -f $ac_dir/${ac_tool_prefix}file; then
6131 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6132 if test -n "$file_magic_test_file"; then
6133 case $deplibs_check_method in
6134 "file_magic "*)
6135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6138 $EGREP "$file_magic_regex" > /dev/null; then
6139 :
6140 else
6141 cat <<EOF 1>&2
6142
6143 *** Warning: the command libtool uses to detect shared libraries,
6144 *** $file_magic_cmd, produces output that libtool cannot recognize.
6145 *** The result is that libtool may fail to recognize shared libraries
6146 *** as such. This will affect the creation of libtool libraries that
6147 *** depend on shared libraries, but programs linked with such libtool
6148 *** libraries will work regardless of this problem. Nevertheless, you
6149 *** may want to report the problem to your system manager and/or to
6150 *** bug-libtool@gnu.org
6151
6152 EOF
6153 fi ;;
6154 esac
6155 fi
6156 break
6157 fi
6158 done
6159 IFS="$lt_save_ifs"
6160 MAGIC_CMD="$lt_save_MAGIC_CMD"
6161 ;;
6162 esac
6163 fi
6164
6165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6166 if test -n "$MAGIC_CMD"; then
6167 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6168 echo "${ECHO_T}$MAGIC_CMD" >&6
6169 else
6170 echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6
6172 fi
6173
6174 if test -z "$lt_cv_path_MAGIC_CMD"; then
6175 if test -n "$ac_tool_prefix"; then
6176 echo "$as_me:$LINENO: checking for file" >&5
6177 echo $ECHO_N "checking for file... $ECHO_C" >&6
6178 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 case $MAGIC_CMD in
6182 [\\/*] | ?:[\\/]*)
6183 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6184 ;;
6185 *)
6186 lt_save_MAGIC_CMD="$MAGIC_CMD"
6187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6188 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6189 for ac_dir in $ac_dummy; do
6190 IFS="$lt_save_ifs"
6191 test -z "$ac_dir" && ac_dir=.
6192 if test -f $ac_dir/file; then
6193 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6194 if test -n "$file_magic_test_file"; then
6195 case $deplibs_check_method in
6196 "file_magic "*)
6197 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6200 $EGREP "$file_magic_regex" > /dev/null; then
6201 :
6202 else
6203 cat <<EOF 1>&2
6204
6205 *** Warning: the command libtool uses to detect shared libraries,
6206 *** $file_magic_cmd, produces output that libtool cannot recognize.
6207 *** The result is that libtool may fail to recognize shared libraries
6208 *** as such. This will affect the creation of libtool libraries that
6209 *** depend on shared libraries, but programs linked with such libtool
6210 *** libraries will work regardless of this problem. Nevertheless, you
6211 *** may want to report the problem to your system manager and/or to
6212 *** bug-libtool@gnu.org
6213
6214 EOF
6215 fi ;;
6216 esac
6217 fi
6218 break
6219 fi
6220 done
6221 IFS="$lt_save_ifs"
6222 MAGIC_CMD="$lt_save_MAGIC_CMD"
6223 ;;
6224 esac
6225 fi
6226
6227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6228 if test -n "$MAGIC_CMD"; then
6229 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6230 echo "${ECHO_T}$MAGIC_CMD" >&6
6231 else
6232 echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6
6234 fi
6235
6236 else
6237 MAGIC_CMD=:
6238 fi
6239 fi
6240
6241 fi
6242 ;;
6243 esac
6244
6245 enable_dlopen=no
6246 enable_win32_dll=no
6247
6248 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6249 if test "${enable_libtool_lock+set}" = set; then
6250 enableval="$enable_libtool_lock"
6251
6252 fi;
6253 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6254
6255
6256 # Check whether --with-pic or --without-pic was given.
6257 if test "${with_pic+set}" = set; then
6258 withval="$with_pic"
6259 pic_mode="$withval"
6260 else
6261 pic_mode=default
6262 fi;
6263 test -z "$pic_mode" && pic_mode=default
6264
6265 # Use C for the default configuration in the libtool script
6266 tagname=
6267 lt_save_CC="$CC"
6268 ac_ext=c
6269 ac_cpp='$CPP $CPPFLAGS'
6270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6273
6274
6275 # Source file extension for C test sources.
6276 ac_ext=c
6277
6278 # Object file extension for compiled C test sources.
6279 objext=o
6280 objext=$objext
6281
6282 # Code to be used in simple compile tests
6283 lt_simple_compile_test_code="int some_variable = 0;\n"
6284
6285 # Code to be used in simple link tests
6286 lt_simple_link_test_code='int main(){return(0);}\n'
6287
6288
6289 # If no C compiler was specified, use CC.
6290 LTCC=${LTCC-"$CC"}
6291
6292 # Allow CC to be a program name with arguments.
6293 compiler=$CC
6294
6295
6296 # save warnings/boilerplate of simple test code
6297 ac_outfile=conftest.$ac_objext
6298 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6299 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6300 _lt_compiler_boilerplate=`cat conftest.err`
6301 $rm conftest*
6302
6303 ac_outfile=conftest.$ac_objext
6304 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6305 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6306 _lt_linker_boilerplate=`cat conftest.err`
6307 $rm conftest*
6308
6309
6310 #
6311 # Check for any special shared library compilation flags.
6312 #
6313 lt_prog_cc_shlib=
6314 if test "$GCC" = no; then
6315 case $host_os in
6316 sco3.2v5*)
6317 lt_prog_cc_shlib='-belf'
6318 ;;
6319 esac
6320 fi
6321 if test -n "$lt_prog_cc_shlib"; then
6322 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6323 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6324 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6325 else
6326 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6327 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6328 lt_cv_prog_cc_can_build_shared=no
6329 fi
6330 fi
6331
6332
6333 #
6334 # Check to make sure the static flag actually works.
6335 #
6336 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6337 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6338 if test "${lt_prog_compiler_static_works+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 else
6341 lt_prog_compiler_static_works=no
6342 save_LDFLAGS="$LDFLAGS"
6343 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6344 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6345 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6346 # The linker can only warn and ignore the option if not recognized
6347 # So say no if there are warnings
6348 if test -s conftest.err; then
6349 # Append any errors to the config.log.
6350 cat conftest.err 1>&5
6351 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6352 $SED '/^$/d' conftest.err >conftest.er2
6353 if diff conftest.exp conftest.er2 >/dev/null; then
6354 lt_prog_compiler_static_works=yes
6355 fi
6356 else
6357 lt_prog_compiler_static_works=yes
6358 fi
6359 fi
6360 $rm conftest*
6361 LDFLAGS="$save_LDFLAGS"
6362
6363 fi
6364 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6365 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6366
6367 if test x"$lt_prog_compiler_static_works" = xyes; then
6368 :
6369 else
6370 lt_prog_compiler_static=
6371 fi
6372
6373
6374
6375
6376 lt_prog_compiler_no_builtin_flag=
6377
6378 if test "$GCC" = yes; then
6379 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6380
6381
6382 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6383 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6384 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 lt_cv_prog_compiler_rtti_exceptions=no
6388 ac_outfile=conftest.$ac_objext
6389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6390 lt_compiler_flag="-fno-rtti -fno-exceptions"
6391 # Insert the option either (1) after the last *FLAGS variable, or
6392 # (2) before a word containing "conftest.", or (3) at the end.
6393 # Note that $ac_compile itself does not contain backslashes and begins
6394 # with a dollar sign (not a hyphen), so the echo should work correctly.
6395 # The option is referenced via a variable to avoid confusing sed.
6396 lt_compile=`echo "$ac_compile" | $SED \
6397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6399 -e 's:$: $lt_compiler_flag:'`
6400 (eval echo "\"\$as_me:6400: $lt_compile\"" >&5)
6401 (eval "$lt_compile" 2>conftest.err)
6402 ac_status=$?
6403 cat conftest.err >&5
6404 echo "$as_me:6404: \$? = $ac_status" >&5
6405 if (exit $ac_status) && test -s "$ac_outfile"; then
6406 # The compiler can only warn and ignore the option if not recognized
6407 # So say no if there are warnings other than the usual output.
6408 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6409 $SED '/^$/d' conftest.err >conftest.er2
6410 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6411 lt_cv_prog_compiler_rtti_exceptions=yes
6412 fi
6413 fi
6414 $rm conftest*
6415
6416 fi
6417 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6418 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6419
6420 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6421 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6422 else
6423 :
6424 fi
6425
6426 fi
6427
6428 lt_prog_compiler_wl=
6429 lt_prog_compiler_pic=
6430 lt_prog_compiler_static=
6431
6432 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6433 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6434
6435 if test "$GCC" = yes; then
6436 lt_prog_compiler_wl='-Wl,'
6437 lt_prog_compiler_static='-static'
6438
6439 case $host_os in
6440 aix*)
6441 # All AIX code is PIC.
6442 if test "$host_cpu" = ia64; then
6443 # AIX 5 now supports IA64 processor
6444 lt_prog_compiler_static='-Bstatic'
6445 fi
6446 ;;
6447
6448 amigaos*)
6449 # FIXME: we need at least 68020 code to build shared libraries, but
6450 # adding the `-m68020' flag to GCC prevents building anything better,
6451 # like `-m68040'.
6452 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6453 ;;
6454
6455 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6456 # PIC is the default for these OSes.
6457 ;;
6458
6459 mingw* | pw32* | os2*)
6460 # This hack is so that the source file can tell whether it is being
6461 # built for inclusion in a dll (and should export symbols for example).
6462 lt_prog_compiler_pic='-DDLL_EXPORT'
6463 ;;
6464
6465 darwin* | rhapsody*)
6466 # PIC is the default on this platform
6467 # Common symbols not allowed in MH_DYLIB files
6468 lt_prog_compiler_pic='-fno-common'
6469 ;;
6470
6471 msdosdjgpp*)
6472 # Just because we use GCC doesn't mean we suddenly get shared libraries
6473 # on systems that don't support them.
6474 lt_prog_compiler_can_build_shared=no
6475 enable_shared=no
6476 ;;
6477
6478 sysv4*MP*)
6479 if test -d /usr/nec; then
6480 lt_prog_compiler_pic=-Kconform_pic
6481 fi
6482 ;;
6483
6484 hpux*)
6485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6486 # not for PA HP-UX.
6487 case $host_cpu in
6488 hppa*64*|ia64*)
6489 # +Z the default
6490 ;;
6491 *)
6492 lt_prog_compiler_pic='-fPIC'
6493 ;;
6494 esac
6495 ;;
6496
6497 *)
6498 lt_prog_compiler_pic='-fPIC'
6499 ;;
6500 esac
6501 else
6502 # PORTME Check for flag to pass linker flags through the system compiler.
6503 case $host_os in
6504 aix*)
6505 lt_prog_compiler_wl='-Wl,'
6506 if test "$host_cpu" = ia64; then
6507 # AIX 5 now supports IA64 processor
6508 lt_prog_compiler_static='-Bstatic'
6509 else
6510 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6511 fi
6512 ;;
6513 darwin*)
6514 # PIC is the default on this platform
6515 # Common symbols not allowed in MH_DYLIB files
6516 case $cc_basename in
6517 xlc*)
6518 lt_prog_compiler_pic='-qnocommon'
6519 lt_prog_compiler_wl='-Wl,'
6520 ;;
6521 esac
6522 ;;
6523
6524 mingw* | pw32* | os2*)
6525 # This hack is so that the source file can tell whether it is being
6526 # built for inclusion in a dll (and should export symbols for example).
6527 lt_prog_compiler_pic='-DDLL_EXPORT'
6528 ;;
6529
6530 hpux9* | hpux10* | hpux11*)
6531 lt_prog_compiler_wl='-Wl,'
6532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6533 # not for PA HP-UX.
6534 case $host_cpu in
6535 hppa*64*|ia64*)
6536 # +Z the default
6537 ;;
6538 *)
6539 lt_prog_compiler_pic='+Z'
6540 ;;
6541 esac
6542 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6543 lt_prog_compiler_static='${wl}-a ${wl}archive'
6544 ;;
6545
6546 irix5* | irix6* | nonstopux*)
6547 lt_prog_compiler_wl='-Wl,'
6548 # PIC (with -KPIC) is the default.
6549 lt_prog_compiler_static='-non_shared'
6550 ;;
6551
6552 newsos6)
6553 lt_prog_compiler_pic='-KPIC'
6554 lt_prog_compiler_static='-Bstatic'
6555 ;;
6556
6557 linux*)
6558 case $cc_basename in
6559 icc* | ecc*)
6560 lt_prog_compiler_wl='-Wl,'
6561 lt_prog_compiler_pic='-KPIC'
6562 lt_prog_compiler_static='-static'
6563 ;;
6564 pgcc* | pgf77* | pgf90* | pgf95*)
6565 # Portland Group compilers (*not* the Pentium gcc compiler,
6566 # which looks to be a dead project)
6567 lt_prog_compiler_wl='-Wl,'
6568 lt_prog_compiler_pic='-fpic'
6569 lt_prog_compiler_static='-Bstatic'
6570 ;;
6571 ccc*)
6572 lt_prog_compiler_wl='-Wl,'
6573 # All Alpha code is PIC.
6574 lt_prog_compiler_static='-non_shared'
6575 ;;
6576 esac
6577 ;;
6578
6579 osf3* | osf4* | osf5*)
6580 lt_prog_compiler_wl='-Wl,'
6581 # All OSF/1 code is PIC.
6582 lt_prog_compiler_static='-non_shared'
6583 ;;
6584
6585 sco3.2v5*)
6586 lt_prog_compiler_pic='-Kpic'
6587 lt_prog_compiler_static='-dn'
6588 ;;
6589
6590 solaris*)
6591 lt_prog_compiler_pic='-KPIC'
6592 lt_prog_compiler_static='-Bstatic'
6593 case $cc_basename in
6594 f77* | f90* | f95*)
6595 lt_prog_compiler_wl='-Qoption ld ';;
6596 *)
6597 lt_prog_compiler_wl='-Wl,';;
6598 esac
6599 ;;
6600
6601 sunos4*)
6602 lt_prog_compiler_wl='-Qoption ld '
6603 lt_prog_compiler_pic='-PIC'
6604 lt_prog_compiler_static='-Bstatic'
6605 ;;
6606
6607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6608 lt_prog_compiler_wl='-Wl,'
6609 lt_prog_compiler_pic='-KPIC'
6610 lt_prog_compiler_static='-Bstatic'
6611 ;;
6612
6613 sysv4*MP*)
6614 if test -d /usr/nec ;then
6615 lt_prog_compiler_pic='-Kconform_pic'
6616 lt_prog_compiler_static='-Bstatic'
6617 fi
6618 ;;
6619
6620 unicos*)
6621 lt_prog_compiler_wl='-Wl,'
6622 lt_prog_compiler_can_build_shared=no
6623 ;;
6624
6625 uts4*)
6626 lt_prog_compiler_pic='-pic'
6627 lt_prog_compiler_static='-Bstatic'
6628 ;;
6629
6630 *)
6631 lt_prog_compiler_can_build_shared=no
6632 ;;
6633 esac
6634 fi
6635
6636 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6637 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6638
6639 #
6640 # Check to make sure the PIC flag actually works.
6641 #
6642 if test -n "$lt_prog_compiler_pic"; then
6643
6644 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6645 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6646 if test "${lt_prog_compiler_pic_works+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649 lt_prog_compiler_pic_works=no
6650 ac_outfile=conftest.$ac_objext
6651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6652 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6653 # Insert the option either (1) after the last *FLAGS variable, or
6654 # (2) before a word containing "conftest.", or (3) at the end.
6655 # Note that $ac_compile itself does not contain backslashes and begins
6656 # with a dollar sign (not a hyphen), so the echo should work correctly.
6657 # The option is referenced via a variable to avoid confusing sed.
6658 lt_compile=`echo "$ac_compile" | $SED \
6659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6661 -e 's:$: $lt_compiler_flag:'`
6662 (eval echo "\"\$as_me:6662: $lt_compile\"" >&5)
6663 (eval "$lt_compile" 2>conftest.err)
6664 ac_status=$?
6665 cat conftest.err >&5
6666 echo "$as_me:6666: \$? = $ac_status" >&5
6667 if (exit $ac_status) && test -s "$ac_outfile"; then
6668 # The compiler can only warn and ignore the option if not recognized
6669 # So say no if there are warnings other than the usual output.
6670 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6671 $SED '/^$/d' conftest.err >conftest.er2
6672 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6673 lt_prog_compiler_pic_works=yes
6674 fi
6675 fi
6676 $rm conftest*
6677
6678 fi
6679 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6680 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6681
6682 if test x"$lt_prog_compiler_pic_works" = xyes; then
6683 case $lt_prog_compiler_pic in
6684 "" | " "*) ;;
6685 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6686 esac
6687 else
6688 lt_prog_compiler_pic=
6689 lt_prog_compiler_can_build_shared=no
6690 fi
6691
6692 fi
6693 case $host_os in
6694 # For platforms which do not support PIC, -DPIC is meaningless:
6695 *djgpp*)
6696 lt_prog_compiler_pic=
6697 ;;
6698 *)
6699 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6700 ;;
6701 esac
6702
6703 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6704 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6705 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708 lt_cv_prog_compiler_c_o=no
6709 $rm -r conftest 2>/dev/null
6710 mkdir conftest
6711 cd conftest
6712 mkdir out
6713 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6714
6715 lt_compiler_flag="-o out/conftest2.$ac_objext"
6716 # Insert the option either (1) after the last *FLAGS variable, or
6717 # (2) before a word containing "conftest.", or (3) at the end.
6718 # Note that $ac_compile itself does not contain backslashes and begins
6719 # with a dollar sign (not a hyphen), so the echo should work correctly.
6720 lt_compile=`echo "$ac_compile" | $SED \
6721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6723 -e 's:$: $lt_compiler_flag:'`
6724 (eval echo "\"\$as_me:6724: $lt_compile\"" >&5)
6725 (eval "$lt_compile" 2>out/conftest.err)
6726 ac_status=$?
6727 cat out/conftest.err >&5
6728 echo "$as_me:6728: \$? = $ac_status" >&5
6729 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6730 then
6731 # The compiler can only warn and ignore the option if not recognized
6732 # So say no if there are warnings
6733 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6734 $SED '/^$/d' out/conftest.err >out/conftest.er2
6735 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6736 lt_cv_prog_compiler_c_o=yes
6737 fi
6738 fi
6739 chmod u+w . 2>&5
6740 $rm conftest*
6741 # SGI C++ compiler will create directory out/ii_files/ for
6742 # template instantiation
6743 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6744 $rm out/* && rmdir out
6745 cd ..
6746 rmdir conftest
6747 $rm conftest*
6748
6749 fi
6750 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6751 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6752
6753
6754 hard_links="nottested"
6755 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6756 # do not overwrite the value of need_locks provided by the user
6757 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6758 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6759 hard_links=yes
6760 $rm conftest*
6761 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6762 touch conftest.a
6763 ln conftest.a conftest.b 2>&5 || hard_links=no
6764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6765 echo "$as_me:$LINENO: result: $hard_links" >&5
6766 echo "${ECHO_T}$hard_links" >&6
6767 if test "$hard_links" = no; then
6768 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6769 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6770 need_locks=warn
6771 fi
6772 else
6773 need_locks=no
6774 fi
6775
6776 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6777 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6778
6779 runpath_var=
6780 allow_undefined_flag=
6781 enable_shared_with_static_runtimes=no
6782 archive_cmds=
6783 archive_expsym_cmds=
6784 old_archive_From_new_cmds=
6785 old_archive_from_expsyms_cmds=
6786 export_dynamic_flag_spec=
6787 whole_archive_flag_spec=
6788 thread_safe_flag_spec=
6789 hardcode_libdir_flag_spec=
6790 hardcode_libdir_flag_spec_ld=
6791 hardcode_libdir_separator=
6792 hardcode_direct=no
6793 hardcode_minus_L=no
6794 hardcode_shlibpath_var=unsupported
6795 link_all_deplibs=unknown
6796 hardcode_automatic=no
6797 module_cmds=
6798 module_expsym_cmds=
6799 always_export_symbols=no
6800 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6801 # include_expsyms should be a list of space-separated symbols to be *always*
6802 # included in the symbol list
6803 include_expsyms=
6804 # exclude_expsyms can be an extended regexp of symbols to exclude
6805 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6806 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6807 # as well as any symbol that contains `d'.
6808 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6809 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6810 # platforms (ab)use it in PIC code, but their linkers get confused if
6811 # the symbol is explicitly referenced. Since portable code cannot
6812 # rely on this symbol name, it's probably fine to never include it in
6813 # preloaded symbol tables.
6814 extract_expsyms_cmds=
6815 # Just being paranoid about ensuring that cc_basename is set.
6816 for cc_temp in $compiler""; do
6817 case $cc_temp in
6818 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6819 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6820 \-*) ;;
6821 *) break;;
6822 esac
6823 done
6824 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6825
6826 case $host_os in
6827 cygwin* | mingw* | pw32*)
6828 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6829 # When not using gcc, we currently assume that we are using
6830 # Microsoft Visual C++.
6831 if test "$GCC" != yes; then
6832 with_gnu_ld=no
6833 fi
6834 ;;
6835 openbsd*)
6836 with_gnu_ld=no
6837 ;;
6838 esac
6839
6840 ld_shlibs=yes
6841 if test "$with_gnu_ld" = yes; then
6842 # If archive_cmds runs LD, not CC, wlarc should be empty
6843 wlarc='${wl}'
6844
6845 # Set some defaults for GNU ld with shared library support. These
6846 # are reset later if shared libraries are not supported. Putting them
6847 # here allows them to be overridden if necessary.
6848 runpath_var=LD_RUN_PATH
6849 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6850 export_dynamic_flag_spec='${wl}--export-dynamic'
6851 # ancient GNU ld didn't support --whole-archive et. al.
6852 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6853 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6854 else
6855 whole_archive_flag_spec=
6856 fi
6857 supports_anon_versioning=no
6858 case `$LD -v 2>/dev/null` in
6859 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6860 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6861 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6862 *\ 2.11.*) ;; # other 2.11 versions
6863 *) supports_anon_versioning=yes ;;
6864 esac
6865
6866 # See if GNU ld supports shared libraries.
6867 case $host_os in
6868 aix3* | aix4* | aix5*)
6869 # On AIX/PPC, the GNU linker is very broken
6870 if test "$host_cpu" != ia64; then
6871 ld_shlibs=no
6872 cat <<EOF 1>&2
6873
6874 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6875 *** to be unable to reliably create shared libraries on AIX.
6876 *** Therefore, libtool is disabling shared libraries support. If you
6877 *** really care for shared libraries, you may want to modify your PATH
6878 *** so that a non-GNU linker is found, and then restart.
6879
6880 EOF
6881 fi
6882 ;;
6883
6884 amigaos*)
6885 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)'
6886 hardcode_libdir_flag_spec='-L$libdir'
6887 hardcode_minus_L=yes
6888
6889 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
6890 # that the semantics of dynamic libraries on AmigaOS, at least up
6891 # to version 4, is to share data among multiple programs linked
6892 # with the same dynamic library. Since this doesn't match the
6893 # behavior of shared libraries on other platforms, we can't use
6894 # them.
6895 ld_shlibs=no
6896 ;;
6897
6898 beos*)
6899 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6900 allow_undefined_flag=unsupported
6901 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
6902 # support --undefined. This deserves some investigation. FIXME
6903 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6904 else
6905 ld_shlibs=no
6906 fi
6907 ;;
6908
6909 cygwin* | mingw* | pw32*)
6910 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6911 # as there is no search path for DLLs.
6912 hardcode_libdir_flag_spec='-L$libdir'
6913 allow_undefined_flag=unsupported
6914 always_export_symbols=no
6915 enable_shared_with_static_runtimes=yes
6916 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6917
6918 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6920 # If the export-symbols file already is a .def file (1st line
6921 # is EXPORTS), use it as is; otherwise, prepend...
6922 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6923 cp $export_symbols $output_objdir/$soname.def;
6924 else
6925 echo EXPORTS > $output_objdir/$soname.def;
6926 cat $export_symbols >> $output_objdir/$soname.def;
6927 fi~
6928 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6929 else
6930 ld_shlibs=no
6931 fi
6932 ;;
6933
6934 linux*)
6935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6936 tmp_addflag=
6937 case $cc_basename,$host_cpu in
6938 pgcc*) # Portland Group C compiler
6939 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'
6940 tmp_addflag=' $pic_flag'
6941 ;;
6942 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6943 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'
6944 tmp_addflag=' $pic_flag -Mnomain' ;;
6945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6946 tmp_addflag=' -i_dynamic' ;;
6947 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6948 tmp_addflag=' -i_dynamic -nofor_main' ;;
6949 ifc* | ifort*) # Intel Fortran compiler
6950 tmp_addflag=' -nofor_main' ;;
6951 esac
6952 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6953
6954 if test $supports_anon_versioning = yes; then
6955 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6956 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6957 $echo "local: *; };" >> $output_objdir/$libname.ver~
6958 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6959 fi
6960 else
6961 ld_shlibs=no
6962 fi
6963 ;;
6964
6965 netbsd*)
6966 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6967 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6968 wlarc=
6969 else
6970 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6971 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6972 fi
6973 ;;
6974
6975 solaris* | sysv5*)
6976 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6977 ld_shlibs=no
6978 cat <<EOF 1>&2
6979
6980 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6981 *** create shared libraries on Solaris systems. Therefore, libtool
6982 *** is disabling shared libraries support. We urge you to upgrade GNU
6983 *** binutils to release 2.9.1 or newer. Another option is to modify
6984 *** your PATH or compiler configuration so that the native linker is
6985 *** used, and then restart.
6986
6987 EOF
6988 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6991 else
6992 ld_shlibs=no
6993 fi
6994 ;;
6995
6996 sunos4*)
6997 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6998 wlarc=
6999 hardcode_direct=yes
7000 hardcode_shlibpath_var=no
7001 ;;
7002
7003 *)
7004 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7007 else
7008 ld_shlibs=no
7009 fi
7010 ;;
7011 esac
7012
7013 if test "$ld_shlibs" = no; then
7014 runpath_var=
7015 hardcode_libdir_flag_spec=
7016 export_dynamic_flag_spec=
7017 whole_archive_flag_spec=
7018 fi
7019 else
7020 # PORTME fill in a description of your system's linker (not GNU ld)
7021 case $host_os in
7022 aix3*)
7023 allow_undefined_flag=unsupported
7024 always_export_symbols=yes
7025 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'
7026 # Note: this linker hardcodes the directories in LIBPATH if there
7027 # are no directories specified by -L.
7028 hardcode_minus_L=yes
7029 if test "$GCC" = yes && test -z "$link_static_flag"; then
7030 # Neither direct hardcoding nor static linking is supported with a
7031 # broken collect2.
7032 hardcode_direct=unsupported
7033 fi
7034 ;;
7035
7036 aix4* | aix5*)
7037 if test "$host_cpu" = ia64; then
7038 # On IA64, the linker does run time linking by default, so we don't
7039 # have to do anything special.
7040 aix_use_runtimelinking=no
7041 exp_sym_flag='-Bexport'
7042 no_entry_flag=""
7043 else
7044 # If we're using GNU nm, then we don't want the "-C" option.
7045 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7046 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7047 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'
7048 else
7049 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'
7050 fi
7051 aix_use_runtimelinking=no
7052
7053 # Test if we are trying to use run time linking or normal
7054 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7055 # need to do runtime linking.
7056 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7057 for ld_flag in $LDFLAGS; do
7058 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7059 aix_use_runtimelinking=yes
7060 break
7061 fi
7062 done
7063 esac
7064
7065 exp_sym_flag='-bexport'
7066 no_entry_flag='-bnoentry'
7067 fi
7068
7069 # When large executables or shared objects are built, AIX ld can
7070 # have problems creating the table of contents. If linking a library
7071 # or program results in "error TOC overflow" add -mminimal-toc to
7072 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7073 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7074
7075 archive_cmds=''
7076 hardcode_direct=yes
7077 hardcode_libdir_separator=':'
7078 link_all_deplibs=yes
7079
7080 if test "$GCC" = yes; then
7081 case $host_os in aix4.[012]|aix4.[012].*)
7082 # We only want to do this on AIX 4.2 and lower, the check
7083 # below for broken collect2 doesn't work under 4.3+
7084 collect2name=`${CC} -print-prog-name=collect2`
7085 if test -f "$collect2name" && \
7086 strings "$collect2name" | grep resolve_lib_name >/dev/null
7087 then
7088 # We have reworked collect2
7089 hardcode_direct=yes
7090 else
7091 # We have old collect2
7092 hardcode_direct=unsupported
7093 # It fails to find uninstalled libraries when the uninstalled
7094 # path is not listed in the libpath. Setting hardcode_minus_L
7095 # to unsupported forces relinking
7096 hardcode_minus_L=yes
7097 hardcode_libdir_flag_spec='-L$libdir'
7098 hardcode_libdir_separator=
7099 fi
7100 esac
7101 shared_flag='-shared'
7102 if test "$aix_use_runtimelinking" = yes; then
7103 shared_flag="$shared_flag "'${wl}-G'
7104 fi
7105 else
7106 # not using gcc
7107 if test "$host_cpu" = ia64; then
7108 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7109 # chokes on -Wl,-G. The following line is correct:
7110 shared_flag='-G'
7111 else
7112 if test "$aix_use_runtimelinking" = yes; then
7113 shared_flag='${wl}-G'
7114 else
7115 shared_flag='${wl}-bM:SRE'
7116 fi
7117 fi
7118 fi
7119
7120 # It seems that -bexpall does not export symbols beginning with
7121 # underscore (_), so it is better to generate a list of symbols to export.
7122 always_export_symbols=yes
7123 if test "$aix_use_runtimelinking" = yes; then
7124 # Warning - without using the other runtime loading flags (-brtl),
7125 # -berok will link without error, but may produce a broken library.
7126 allow_undefined_flag='-berok'
7127 # Determine the default libpath from the value encoded in an empty executable.
7128 cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h. */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134
7135 int
7136 main ()
7137 {
7138
7139 ;
7140 return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext conftest$ac_exeext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7145 (eval $ac_link) 2>conftest.er1
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -z "$ac_c_werror_flag"
7153 || test ! -s conftest.err'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; } &&
7159 { ac_try='test -s conftest$ac_exeext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 (eval $ac_try) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165
7166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7167 }'`
7168 # Check for a 64-bit object if we didn't find anything.
7169 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; }
7170 }'`; fi
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 fi
7176 rm -f conftest.err conftest.$ac_objext \
7177 conftest$ac_exeext conftest.$ac_ext
7178 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7179
7180 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7181 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7182 else
7183 if test "$host_cpu" = ia64; then
7184 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7185 allow_undefined_flag="-z nodefs"
7186 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7187 else
7188 # Determine the default libpath from the value encoded in an empty executable.
7189 cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h. */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195
7196 int
7197 main ()
7198 {
7199
7200 ;
7201 return 0;
7202 }
7203 _ACEOF
7204 rm -f conftest.$ac_objext conftest$ac_exeext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7206 (eval $ac_link) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest$ac_exeext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226
7227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7228 }'`
7229 # Check for a 64-bit object if we didn't find anything.
7230 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; }
7231 }'`; fi
7232 else
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236 fi
7237 rm -f conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7240
7241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7242 # Warning - without using the other run time loading flags,
7243 # -berok will link without error, but may produce a broken library.
7244 no_undefined_flag=' ${wl}-bernotok'
7245 allow_undefined_flag=' ${wl}-berok'
7246 # -bexpall does not export symbols beginning with underscore (_)
7247 always_export_symbols=yes
7248 # Exported symbols can be pulled into shared objects from archives
7249 whole_archive_flag_spec=' '
7250 archive_cmds_need_lc=yes
7251 # This is similar to how AIX traditionally builds its shared libraries.
7252 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7253 fi
7254 fi
7255 ;;
7256
7257 amigaos*)
7258 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)'
7259 hardcode_libdir_flag_spec='-L$libdir'
7260 hardcode_minus_L=yes
7261 # see comment about different semantics on the GNU ld section
7262 ld_shlibs=no
7263 ;;
7264
7265 bsdi[45]*)
7266 export_dynamic_flag_spec=-rdynamic
7267 ;;
7268
7269 cygwin* | mingw* | pw32*)
7270 # When not using gcc, we currently assume that we are using
7271 # Microsoft Visual C++.
7272 # hardcode_libdir_flag_spec is actually meaningless, as there is
7273 # no search path for DLLs.
7274 hardcode_libdir_flag_spec=' '
7275 allow_undefined_flag=unsupported
7276 # Tell ltmain to make .lib files, not .a files.
7277 libext=lib
7278 # Tell ltmain to make .dll files, not .so files.
7279 shrext_cmds=".dll"
7280 # FIXME: Setting linknames here is a bad hack.
7281 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7282 # The linker will automatically build a .lib file if we build a DLL.
7283 old_archive_From_new_cmds='true'
7284 # FIXME: Should let the user specify the lib program.
7285 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7286 fix_srcfile_path='`cygpath -w "$srcfile"`'
7287 enable_shared_with_static_runtimes=yes
7288 ;;
7289
7290 darwin* | rhapsody*)
7291 case $host_os in
7292 rhapsody* | darwin1.[012])
7293 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7294 ;;
7295 *) # Darwin 1.3 on
7296 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7297 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7298 else
7299 case ${MACOSX_DEPLOYMENT_TARGET} in
7300 10.[012])
7301 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7302 ;;
7303 10.*)
7304 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7305 ;;
7306 esac
7307 fi
7308 ;;
7309 esac
7310 archive_cmds_need_lc=no
7311 hardcode_direct=no
7312 hardcode_automatic=yes
7313 hardcode_shlibpath_var=unsupported
7314 whole_archive_flag_spec=''
7315 link_all_deplibs=yes
7316 if test "$GCC" = yes ; then
7317 output_verbose_link_cmd='echo'
7318 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7319 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7320 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7321 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}'
7322 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}'
7323 else
7324 case $cc_basename in
7325 xlc*)
7326 output_verbose_link_cmd='echo'
7327 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7328 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7330 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}'
7331 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}'
7332 ;;
7333 *)
7334 ld_shlibs=no
7335 ;;
7336 esac
7337 fi
7338 ;;
7339
7340 dgux*)
7341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_libdir_flag_spec='-L$libdir'
7343 hardcode_shlibpath_var=no
7344 ;;
7345
7346 freebsd1*)
7347 ld_shlibs=no
7348 ;;
7349
7350 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7351 # support. Future versions do this automatically, but an explicit c++rt0.o
7352 # does not break anything, and helps significantly (at the cost of a little
7353 # extra space).
7354 freebsd2.2*)
7355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7356 hardcode_libdir_flag_spec='-R$libdir'
7357 hardcode_direct=yes
7358 hardcode_shlibpath_var=no
7359 ;;
7360
7361 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7362 freebsd2*)
7363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7364 hardcode_direct=yes
7365 hardcode_minus_L=yes
7366 hardcode_shlibpath_var=no
7367 ;;
7368
7369 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7370 freebsd* | kfreebsd*-gnu | dragonfly*)
7371 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7372 hardcode_libdir_flag_spec='-R$libdir'
7373 hardcode_direct=yes
7374 hardcode_shlibpath_var=no
7375 ;;
7376
7377 hpux9*)
7378 if test "$GCC" = yes; then
7379 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'
7380 else
7381 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'
7382 fi
7383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7384 hardcode_libdir_separator=:
7385 hardcode_direct=yes
7386
7387 # hardcode_minus_L: Not really in the search PATH,
7388 # but as the default location of the library.
7389 hardcode_minus_L=yes
7390 export_dynamic_flag_spec='${wl}-E'
7391 ;;
7392
7393 hpux10* | hpux11*)
7394 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7395 case $host_cpu in
7396 hppa*64*|ia64*)
7397 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7398 ;;
7399 *)
7400 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7401 ;;
7402 esac
7403 else
7404 case $host_cpu in
7405 hppa*64*|ia64*)
7406 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7407 ;;
7408 *)
7409 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7410 ;;
7411 esac
7412 fi
7413 if test "$with_gnu_ld" = no; then
7414 case $host_cpu in
7415 hppa*64*)
7416 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7417 hardcode_libdir_flag_spec_ld='+b $libdir'
7418 hardcode_libdir_separator=:
7419 hardcode_direct=no
7420 hardcode_shlibpath_var=no
7421 ;;
7422 ia64*)
7423 hardcode_libdir_flag_spec='-L$libdir'
7424 hardcode_direct=no
7425 hardcode_shlibpath_var=no
7426
7427 # hardcode_minus_L: Not really in the search PATH,
7428 # but as the default location of the library.
7429 hardcode_minus_L=yes
7430 ;;
7431 *)
7432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7433 hardcode_libdir_separator=:
7434 hardcode_direct=yes
7435 export_dynamic_flag_spec='${wl}-E'
7436
7437 # hardcode_minus_L: Not really in the search PATH,
7438 # but as the default location of the library.
7439 hardcode_minus_L=yes
7440 ;;
7441 esac
7442 fi
7443 ;;
7444
7445 irix5* | irix6* | nonstopux*)
7446 if test "$GCC" = yes; then
7447 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'
7448 else
7449 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'
7450 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7451 fi
7452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7453 hardcode_libdir_separator=:
7454 link_all_deplibs=yes
7455 ;;
7456
7457 netbsd*)
7458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7460 else
7461 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7462 fi
7463 hardcode_libdir_flag_spec='-R$libdir'
7464 hardcode_direct=yes
7465 hardcode_shlibpath_var=no
7466 ;;
7467
7468 newsos6)
7469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7470 hardcode_direct=yes
7471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7472 hardcode_libdir_separator=:
7473 hardcode_shlibpath_var=no
7474 ;;
7475
7476 openbsd*)
7477 hardcode_direct=yes
7478 hardcode_shlibpath_var=no
7479 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7480 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7481 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7482 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7483 export_dynamic_flag_spec='${wl}-E'
7484 else
7485 case $host_os in
7486 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7488 hardcode_libdir_flag_spec='-R$libdir'
7489 ;;
7490 *)
7491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7492 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7493 ;;
7494 esac
7495 fi
7496 ;;
7497
7498 os2*)
7499 hardcode_libdir_flag_spec='-L$libdir'
7500 hardcode_minus_L=yes
7501 allow_undefined_flag=unsupported
7502 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'
7503 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7504 ;;
7505
7506 osf3*)
7507 if test "$GCC" = yes; then
7508 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7509 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'
7510 else
7511 allow_undefined_flag=' -expect_unresolved \*'
7512 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'
7513 fi
7514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7515 hardcode_libdir_separator=:
7516 ;;
7517
7518 osf4* | osf5*) # as osf3* with the addition of -msym flag
7519 if test "$GCC" = yes; then
7520 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7521 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'
7522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7523 else
7524 allow_undefined_flag=' -expect_unresolved \*'
7525 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'
7526 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7527 $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'
7528
7529 # Both c and cxx compiler support -rpath directly
7530 hardcode_libdir_flag_spec='-rpath $libdir'
7531 fi
7532 hardcode_libdir_separator=:
7533 ;;
7534
7535 sco3.2v5*)
7536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7537 hardcode_shlibpath_var=no
7538 export_dynamic_flag_spec='${wl}-Bexport'
7539 runpath_var=LD_RUN_PATH
7540 hardcode_runpath_var=yes
7541 ;;
7542
7543 solaris*)
7544 no_undefined_flag=' -z text'
7545 if test "$GCC" = yes; then
7546 wlarc='${wl}'
7547 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7548 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7549 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7550 else
7551 wlarc=''
7552 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7553 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7554 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7555 fi
7556 hardcode_libdir_flag_spec='-R$libdir'
7557 hardcode_shlibpath_var=no
7558 case $host_os in
7559 solaris2.[0-5] | solaris2.[0-5].*) ;;
7560 *)
7561 # The compiler driver will combine linker options so we
7562 # cannot just pass the convience library names through
7563 # without $wl, iff we do not link with $LD.
7564 # Luckily, gcc supports the same syntax we need for Sun Studio.
7565 # Supported since Solaris 2.6 (maybe 2.5.1?)
7566 case $wlarc in
7567 '')
7568 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7569 *)
7570 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' ;;
7571 esac ;;
7572 esac
7573 link_all_deplibs=yes
7574 ;;
7575
7576 sunos4*)
7577 if test "x$host_vendor" = xsequent; then
7578 # Use $CC to link under sequent, because it throws in some extra .o
7579 # files that make .init and .fini sections work.
7580 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7581 else
7582 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7583 fi
7584 hardcode_libdir_flag_spec='-L$libdir'
7585 hardcode_direct=yes
7586 hardcode_minus_L=yes
7587 hardcode_shlibpath_var=no
7588 ;;
7589
7590 sysv4)
7591 case $host_vendor in
7592 sni)
7593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7594 hardcode_direct=yes # is this really true???
7595 ;;
7596 siemens)
7597 ## LD is ld it makes a PLAMLIB
7598 ## CC just makes a GrossModule.
7599 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7600 reload_cmds='$CC -r -o $output$reload_objs'
7601 hardcode_direct=no
7602 ;;
7603 motorola)
7604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7605 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7606 ;;
7607 esac
7608 runpath_var='LD_RUN_PATH'
7609 hardcode_shlibpath_var=no
7610 ;;
7611
7612 sysv4.3*)
7613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7614 hardcode_shlibpath_var=no
7615 export_dynamic_flag_spec='-Bexport'
7616 ;;
7617
7618 sysv4*MP*)
7619 if test -d /usr/nec; then
7620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7621 hardcode_shlibpath_var=no
7622 runpath_var=LD_RUN_PATH
7623 hardcode_runpath_var=yes
7624 ld_shlibs=yes
7625 fi
7626 ;;
7627
7628 sysv4.2uw2*)
7629 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7630 hardcode_direct=yes
7631 hardcode_minus_L=no
7632 hardcode_shlibpath_var=no
7633 hardcode_runpath_var=yes
7634 runpath_var=LD_RUN_PATH
7635 ;;
7636
7637 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7638 no_undefined_flag='${wl}-z ${wl}text'
7639 if test "$GCC" = yes; then
7640 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7641 else
7642 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7643 fi
7644 runpath_var='LD_RUN_PATH'
7645 hardcode_shlibpath_var=no
7646 ;;
7647
7648 sysv5*)
7649 no_undefined_flag=' -z text'
7650 # $CC -shared without GNU ld will not create a library from C++
7651 # object files and a static libstdc++, better avoid it by now
7652 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7653 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7655 hardcode_libdir_flag_spec=
7656 hardcode_shlibpath_var=no
7657 runpath_var='LD_RUN_PATH'
7658 ;;
7659
7660 uts4*)
7661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7662 hardcode_libdir_flag_spec='-L$libdir'
7663 hardcode_shlibpath_var=no
7664 ;;
7665
7666 *)
7667 ld_shlibs=no
7668 ;;
7669 esac
7670 fi
7671
7672 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7673 echo "${ECHO_T}$ld_shlibs" >&6
7674 test "$ld_shlibs" = no && can_build_shared=no
7675
7676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7677 if test "$GCC" = yes; then
7678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7679 fi
7680
7681 #
7682 # Do we need to explicitly link libc?
7683 #
7684 case "x$archive_cmds_need_lc" in
7685 x|xyes)
7686 # Assume -lc should be added
7687 archive_cmds_need_lc=yes
7688
7689 if test "$enable_shared" = yes && test "$GCC" = yes; then
7690 case $archive_cmds in
7691 *'~'*)
7692 # FIXME: we may have to deal with multi-command sequences.
7693 ;;
7694 '$CC '*)
7695 # Test whether the compiler implicitly links with -lc since on some
7696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7697 # to ld, don't add -lc before -lgcc.
7698 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7699 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7700 $rm conftest*
7701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7702
7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } 2>conftest.err; then
7708 soname=conftest
7709 lib=conftest
7710 libobjs=conftest.$ac_objext
7711 deplibs=
7712 wl=$lt_prog_compiler_wl
7713 compiler_flags=-v
7714 linker_flags=-v
7715 verstring=
7716 output_objdir=.
7717 libname=conftest
7718 lt_save_allow_undefined_flag=$allow_undefined_flag
7719 allow_undefined_flag=
7720 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7721 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }
7725 then
7726 archive_cmds_need_lc=no
7727 else
7728 archive_cmds_need_lc=yes
7729 fi
7730 allow_undefined_flag=$lt_save_allow_undefined_flag
7731 else
7732 cat conftest.err 1>&5
7733 fi
7734 $rm conftest*
7735 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7736 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7737 ;;
7738 esac
7739 fi
7740 ;;
7741 esac
7742
7743 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7744 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7745 library_names_spec=
7746 libname_spec='lib$name'
7747 soname_spec=
7748 shrext_cmds=".so"
7749 postinstall_cmds=
7750 postuninstall_cmds=
7751 finish_cmds=
7752 finish_eval=
7753 shlibpath_var=
7754 shlibpath_overrides_runpath=unknown
7755 version_type=none
7756 dynamic_linker="$host_os ld.so"
7757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7758 if test "$GCC" = yes; then
7759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7760 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7761 # if the path contains ";" then we assume it to be the separator
7762 # otherwise default to the standard path separator (i.e. ":") - it is
7763 # assumed that no part of a normal pathname contains ";" but that should
7764 # okay in the real world where ";" in dirpaths is itself problematic.
7765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7766 else
7767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7768 fi
7769 else
7770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7771 fi
7772 need_lib_prefix=unknown
7773 hardcode_into_libs=no
7774
7775 # when you set need_version to no, make sure it does not cause -set_version
7776 # flags to be left without arguments
7777 need_version=unknown
7778
7779 case $host_os in
7780 aix3*)
7781 version_type=linux
7782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7783 shlibpath_var=LIBPATH
7784
7785 # AIX 3 has no versioning support, so we append a major version to the name.
7786 soname_spec='${libname}${release}${shared_ext}$major'
7787 ;;
7788
7789 aix4* | aix5*)
7790 version_type=linux
7791 need_lib_prefix=no
7792 need_version=no
7793 hardcode_into_libs=yes
7794 if test "$host_cpu" = ia64; then
7795 # AIX 5 supports IA64
7796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7797 shlibpath_var=LD_LIBRARY_PATH
7798 else
7799 # With GCC up to 2.95.x, collect2 would create an import file
7800 # for dependence libraries. The import file would start with
7801 # the line `#! .'. This would cause the generated library to
7802 # depend on `.', always an invalid library. This was fixed in
7803 # development snapshots of GCC prior to 3.0.
7804 case $host_os in
7805 aix4 | aix4.[01] | aix4.[01].*)
7806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7807 echo ' yes '
7808 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7809 :
7810 else
7811 can_build_shared=no
7812 fi
7813 ;;
7814 esac
7815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7816 # soname into executable. Probably we can add versioning support to
7817 # collect2, so additional links can be useful in future.
7818 if test "$aix_use_runtimelinking" = yes; then
7819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7820 # instead of lib<name>.a to let people know that these are not
7821 # typical AIX shared libraries.
7822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7823 else
7824 # We preserve .a as extension for shared libraries through AIX4.2
7825 # and later when we are not doing run time linking.
7826 library_names_spec='${libname}${release}.a $libname.a'
7827 soname_spec='${libname}${release}${shared_ext}$major'
7828 fi
7829 shlibpath_var=LIBPATH
7830 fi
7831 ;;
7832
7833 amigaos*)
7834 library_names_spec='$libname.ixlibrary $libname.a'
7835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7836 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'
7837 ;;
7838
7839 beos*)
7840 library_names_spec='${libname}${shared_ext}'
7841 dynamic_linker="$host_os ld.so"
7842 shlibpath_var=LIBRARY_PATH
7843 ;;
7844
7845 bsdi[45]*)
7846 version_type=linux
7847 need_version=no
7848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849 soname_spec='${libname}${release}${shared_ext}$major'
7850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7851 shlibpath_var=LD_LIBRARY_PATH
7852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7854 # the default ld.so.conf also contains /usr/contrib/lib and
7855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7856 # libtool to hard-code these into programs
7857 ;;
7858
7859 cygwin* | mingw* | pw32*)
7860 version_type=windows
7861 shrext_cmds=".dll"
7862 need_version=no
7863 need_lib_prefix=no
7864
7865 case $GCC,$host_os in
7866 yes,cygwin* | yes,mingw* | yes,pw32*)
7867 library_names_spec='$libname.dll.a'
7868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7869 postinstall_cmds='base_file=`basename \${file}`~
7870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7871 dldir=$destdir/`dirname \$dlpath`~
7872 test -d \$dldir || mkdir -p \$dldir~
7873 $install_prog $dir/$dlname \$dldir/$dlname~
7874 chmod a+x \$dldir/$dlname'
7875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7876 dlpath=$dir/\$dldll~
7877 $rm \$dlpath'
7878 shlibpath_overrides_runpath=yes
7879
7880 case $host_os in
7881 cygwin*)
7882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7884 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7885 ;;
7886 mingw*)
7887 # MinGW DLLs use traditional 'lib' prefix
7888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7890 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7891 # It is most probably a Windows format PATH printed by
7892 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7893 # path with ; separators, and with drive letters. We can handle the
7894 # drive letters (cygwin fileutils understands them), so leave them,
7895 # especially as we might pass files found there to a mingw objdump,
7896 # which wouldn't understand a cygwinified path. Ahh.
7897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7898 else
7899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7900 fi
7901 ;;
7902 pw32*)
7903 # pw32 DLLs use 'pw' prefix rather than 'lib'
7904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7905 ;;
7906 esac
7907 ;;
7908
7909 *)
7910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7911 ;;
7912 esac
7913 dynamic_linker='Win32 ld.exe'
7914 # FIXME: first we should search . and the directory the executable is in
7915 shlibpath_var=PATH
7916 ;;
7917
7918 darwin* | rhapsody*)
7919 dynamic_linker="$host_os dyld"
7920 version_type=darwin
7921 need_lib_prefix=no
7922 need_version=no
7923 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7924 soname_spec='${libname}${release}${major}$shared_ext'
7925 shlibpath_overrides_runpath=yes
7926 shlibpath_var=DYLD_LIBRARY_PATH
7927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7928 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7929 if test "$GCC" = yes; then
7930 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"`
7931 else
7932 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7933 fi
7934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7935 ;;
7936
7937 dgux*)
7938 version_type=linux
7939 need_lib_prefix=no
7940 need_version=no
7941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7942 soname_spec='${libname}${release}${shared_ext}$major'
7943 shlibpath_var=LD_LIBRARY_PATH
7944 ;;
7945
7946 freebsd1*)
7947 dynamic_linker=no
7948 ;;
7949
7950 kfreebsd*-gnu)
7951 version_type=linux
7952 need_lib_prefix=no
7953 need_version=no
7954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7955 soname_spec='${libname}${release}${shared_ext}$major'
7956 shlibpath_var=LD_LIBRARY_PATH
7957 shlibpath_overrides_runpath=no
7958 hardcode_into_libs=yes
7959 dynamic_linker='GNU ld.so'
7960 ;;
7961
7962 freebsd* | dragonfly*)
7963 # DragonFly does not have aout. When/if they implement a new
7964 # versioning mechanism, adjust this.
7965 if test -x /usr/bin/objformat; then
7966 objformat=`/usr/bin/objformat`
7967 else
7968 case $host_os in
7969 freebsd[123]*) objformat=aout ;;
7970 *) objformat=elf ;;
7971 esac
7972 fi
7973 version_type=freebsd-$objformat
7974 case $version_type in
7975 freebsd-elf*)
7976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7977 need_version=no
7978 need_lib_prefix=no
7979 ;;
7980 freebsd-*)
7981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7982 need_version=yes
7983 ;;
7984 esac
7985 shlibpath_var=LD_LIBRARY_PATH
7986 case $host_os in
7987 freebsd2*)
7988 shlibpath_overrides_runpath=yes
7989 ;;
7990 freebsd3.[01]* | freebsdelf3.[01]*)
7991 shlibpath_overrides_runpath=yes
7992 hardcode_into_libs=yes
7993 ;;
7994 *) # from 3.2 on
7995 shlibpath_overrides_runpath=no
7996 hardcode_into_libs=yes
7997 ;;
7998 esac
7999 ;;
8000
8001 gnu*)
8002 version_type=linux
8003 need_lib_prefix=no
8004 need_version=no
8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8006 soname_spec='${libname}${release}${shared_ext}$major'
8007 shlibpath_var=LD_LIBRARY_PATH
8008 hardcode_into_libs=yes
8009 ;;
8010
8011 hpux9* | hpux10* | hpux11*)
8012 # Give a soname corresponding to the major version so that dld.sl refuses to
8013 # link against other versions.
8014 version_type=sunos
8015 need_lib_prefix=no
8016 need_version=no
8017 case $host_cpu in
8018 ia64*)
8019 shrext_cmds='.so'
8020 hardcode_into_libs=yes
8021 dynamic_linker="$host_os dld.so"
8022 shlibpath_var=LD_LIBRARY_PATH
8023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8025 soname_spec='${libname}${release}${shared_ext}$major'
8026 if test "X$HPUX_IA64_MODE" = X32; then
8027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8028 else
8029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8030 fi
8031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8032 ;;
8033 hppa*64*)
8034 shrext_cmds='.sl'
8035 hardcode_into_libs=yes
8036 dynamic_linker="$host_os dld.sl"
8037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040 soname_spec='${libname}${release}${shared_ext}$major'
8041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8043 ;;
8044 *)
8045 shrext_cmds='.sl'
8046 dynamic_linker="$host_os dld.sl"
8047 shlibpath_var=SHLIB_PATH
8048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8050 soname_spec='${libname}${release}${shared_ext}$major'
8051 ;;
8052 esac
8053 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8054 postinstall_cmds='chmod 555 $lib'
8055 ;;
8056
8057 irix5* | irix6* | nonstopux*)
8058 case $host_os in
8059 nonstopux*) version_type=nonstopux ;;
8060 *)
8061 if test "$lt_cv_prog_gnu_ld" = yes; then
8062 version_type=linux
8063 else
8064 version_type=irix
8065 fi ;;
8066 esac
8067 need_lib_prefix=no
8068 need_version=no
8069 soname_spec='${libname}${release}${shared_ext}$major'
8070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8071 case $host_os in
8072 irix5* | nonstopux*)
8073 libsuff= shlibsuff=
8074 ;;
8075 *)
8076 case $LD in # libtool.m4 will add one of these switches to LD
8077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8078 libsuff= shlibsuff= libmagic=32-bit;;
8079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8080 libsuff=32 shlibsuff=N32 libmagic=N32;;
8081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8082 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8083 *) libsuff= shlibsuff= libmagic=never-match;;
8084 esac
8085 ;;
8086 esac
8087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8088 shlibpath_overrides_runpath=no
8089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8091 hardcode_into_libs=yes
8092 ;;
8093
8094 # No shared lib support for Linux oldld, aout, or coff.
8095 linux*oldld* | linux*aout* | linux*coff*)
8096 dynamic_linker=no
8097 ;;
8098
8099 # This must be Linux ELF.
8100 linux*)
8101 version_type=linux
8102 need_lib_prefix=no
8103 need_version=no
8104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8105 soname_spec='${libname}${release}${shared_ext}$major'
8106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8107 shlibpath_var=LD_LIBRARY_PATH
8108 shlibpath_overrides_runpath=no
8109 # This implies no fast_install, which is unacceptable.
8110 # Some rework will be needed to allow for fast_install
8111 # before this can be enabled.
8112 hardcode_into_libs=yes
8113
8114 # Append ld.so.conf contents to the search path
8115 if test -f /etc/ld.so.conf; then
8116 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' ' '`
8117 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8118 fi
8119
8120 # We used to test for /lib/ld.so.1 and disable shared libraries on
8121 # powerpc, because MkLinux only supported shared libraries with the
8122 # GNU dynamic linker. Since this was broken with cross compilers,
8123 # most powerpc-linux boxes support dynamic linking these days and
8124 # people can always --disable-shared, the test was removed, and we
8125 # assume the GNU/Linux dynamic linker is in use.
8126 dynamic_linker='GNU/Linux ld.so'
8127 ;;
8128
8129 knetbsd*-gnu)
8130 version_type=linux
8131 need_lib_prefix=no
8132 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
8136 shlibpath_overrides_runpath=no
8137 hardcode_into_libs=yes
8138 dynamic_linker='GNU ld.so'
8139 ;;
8140
8141 netbsd*)
8142 version_type=sunos
8143 need_lib_prefix=no
8144 need_version=no
8145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8148 dynamic_linker='NetBSD (a.out) ld.so'
8149 else
8150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8151 soname_spec='${libname}${release}${shared_ext}$major'
8152 dynamic_linker='NetBSD ld.elf_so'
8153 fi
8154 shlibpath_var=LD_LIBRARY_PATH
8155 shlibpath_overrides_runpath=yes
8156 hardcode_into_libs=yes
8157 ;;
8158
8159 newsos6)
8160 version_type=linux
8161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8162 shlibpath_var=LD_LIBRARY_PATH
8163 shlibpath_overrides_runpath=yes
8164 ;;
8165
8166 nto-qnx*)
8167 version_type=linux
8168 need_lib_prefix=no
8169 need_version=no
8170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8171 soname_spec='${libname}${release}${shared_ext}$major'
8172 shlibpath_var=LD_LIBRARY_PATH
8173 shlibpath_overrides_runpath=yes
8174 ;;
8175
8176 openbsd*)
8177 version_type=sunos
8178 need_lib_prefix=no
8179 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8180 case $host_os in
8181 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8182 *) need_version=no ;;
8183 esac
8184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8186 shlibpath_var=LD_LIBRARY_PATH
8187 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8188 case $host_os in
8189 openbsd2.[89] | openbsd2.[89].*)
8190 shlibpath_overrides_runpath=no
8191 ;;
8192 *)
8193 shlibpath_overrides_runpath=yes
8194 ;;
8195 esac
8196 else
8197 shlibpath_overrides_runpath=yes
8198 fi
8199 ;;
8200
8201 os2*)
8202 libname_spec='$name'
8203 shrext_cmds=".dll"
8204 need_lib_prefix=no
8205 library_names_spec='$libname${shared_ext} $libname.a'
8206 dynamic_linker='OS/2 ld.exe'
8207 shlibpath_var=LIBPATH
8208 ;;
8209
8210 osf3* | osf4* | osf5*)
8211 version_type=osf
8212 need_lib_prefix=no
8213 need_version=no
8214 soname_spec='${libname}${release}${shared_ext}$major'
8215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8216 shlibpath_var=LD_LIBRARY_PATH
8217 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8218 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8219 ;;
8220
8221 sco3.2v5*)
8222 version_type=osf
8223 soname_spec='${libname}${release}${shared_ext}$major'
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8225 shlibpath_var=LD_LIBRARY_PATH
8226 ;;
8227
8228 solaris*)
8229 version_type=linux
8230 need_lib_prefix=no
8231 need_version=no
8232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8233 soname_spec='${libname}${release}${shared_ext}$major'
8234 shlibpath_var=LD_LIBRARY_PATH
8235 shlibpath_overrides_runpath=yes
8236 hardcode_into_libs=yes
8237 # ldd complains unless libraries are executable
8238 postinstall_cmds='chmod +x $lib'
8239 ;;
8240
8241 sunos4*)
8242 version_type=sunos
8243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8244 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8245 shlibpath_var=LD_LIBRARY_PATH
8246 shlibpath_overrides_runpath=yes
8247 if test "$with_gnu_ld" = yes; then
8248 need_lib_prefix=no
8249 fi
8250 need_version=yes
8251 ;;
8252
8253 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8254 version_type=linux
8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8256 soname_spec='${libname}${release}${shared_ext}$major'
8257 shlibpath_var=LD_LIBRARY_PATH
8258 case $host_vendor in
8259 sni)
8260 shlibpath_overrides_runpath=no
8261 need_lib_prefix=no
8262 export_dynamic_flag_spec='${wl}-Blargedynsym'
8263 runpath_var=LD_RUN_PATH
8264 ;;
8265 siemens)
8266 need_lib_prefix=no
8267 ;;
8268 motorola)
8269 need_lib_prefix=no
8270 need_version=no
8271 shlibpath_overrides_runpath=no
8272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8273 ;;
8274 esac
8275 ;;
8276
8277 sysv4*MP*)
8278 if test -d /usr/nec ;then
8279 version_type=linux
8280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8281 soname_spec='$libname${shared_ext}.$major'
8282 shlibpath_var=LD_LIBRARY_PATH
8283 fi
8284 ;;
8285
8286 uts4*)
8287 version_type=linux
8288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8289 soname_spec='${libname}${release}${shared_ext}$major'
8290 shlibpath_var=LD_LIBRARY_PATH
8291 ;;
8292
8293 *)
8294 dynamic_linker=no
8295 ;;
8296 esac
8297 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8298 echo "${ECHO_T}$dynamic_linker" >&6
8299 test "$dynamic_linker" = no && can_build_shared=no
8300
8301 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8302 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8303 hardcode_action=
8304 if test -n "$hardcode_libdir_flag_spec" || \
8305 test -n "$runpath_var" || \
8306 test "X$hardcode_automatic" = "Xyes" ; then
8307
8308 # We can hardcode non-existant directories.
8309 if test "$hardcode_direct" != no &&
8310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8311 # have to relink, otherwise we might link with an installed library
8312 # when we should be linking with a yet-to-be-installed one
8313 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8314 test "$hardcode_minus_L" != no; then
8315 # Linking always hardcodes the temporary library directory.
8316 hardcode_action=relink
8317 else
8318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8319 hardcode_action=immediate
8320 fi
8321 else
8322 # We cannot hardcode anything, or else we can only hardcode existing
8323 # directories.
8324 hardcode_action=unsupported
8325 fi
8326 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8327 echo "${ECHO_T}$hardcode_action" >&6
8328
8329 if test "$hardcode_action" = relink; then
8330 # Fast installation is not supported
8331 enable_fast_install=no
8332 elif test "$shlibpath_overrides_runpath" = yes ||
8333 test "$enable_shared" = no; then
8334 # Fast installation is not necessary
8335 enable_fast_install=needless
8336 fi
8337
8338 striplib=
8339 old_striplib=
8340 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8341 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8342 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8343 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8344 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8345 echo "$as_me:$LINENO: result: yes" >&5
8346 echo "${ECHO_T}yes" >&6
8347 else
8348 # FIXME - insert some real tests, host_os isn't really good enough
8349 case $host_os in
8350 darwin*)
8351 if test -n "$STRIP" ; then
8352 striplib="$STRIP -x"
8353 echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8355 else
8356 echo "$as_me:$LINENO: result: no" >&5
8357 echo "${ECHO_T}no" >&6
8358 fi
8359 ;;
8360 *)
8361 echo "$as_me:$LINENO: result: no" >&5
8362 echo "${ECHO_T}no" >&6
8363 ;;
8364 esac
8365 fi
8366
8367 if test "x$enable_dlopen" != xyes; then
8368 enable_dlopen=unknown
8369 enable_dlopen_self=unknown
8370 enable_dlopen_self_static=unknown
8371 else
8372 lt_cv_dlopen=no
8373 lt_cv_dlopen_libs=
8374
8375 case $host_os in
8376 beos*)
8377 lt_cv_dlopen="load_add_on"
8378 lt_cv_dlopen_libs=
8379 lt_cv_dlopen_self=yes
8380 ;;
8381
8382 mingw* | pw32*)
8383 lt_cv_dlopen="LoadLibrary"
8384 lt_cv_dlopen_libs=
8385 ;;
8386
8387 cygwin*)
8388 lt_cv_dlopen="dlopen"
8389 lt_cv_dlopen_libs=
8390 ;;
8391
8392 darwin*)
8393 # if libdl is installed we need to link against it
8394 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8395 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399 ac_check_lib_save_LIBS=$LIBS
8400 LIBS="-ldl $LIBS"
8401 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407
8408 /* Override any gcc2 internal prototype to avoid an error. */
8409 #ifdef __cplusplus
8410 extern "C"
8411 #endif
8412 /* We use char because int might match the return type of a gcc2
8413 builtin and then its argument prototype would still apply. */
8414 char dlopen ();
8415 int
8416 main ()
8417 {
8418 dlopen ();
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425 (eval $ac_link) 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag"
8433 || test ! -s conftest.err'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest$ac_exeext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 ac_cv_lib_dl_dlopen=yes
8446 else
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450 ac_cv_lib_dl_dlopen=no
8451 fi
8452 rm -f conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8454 LIBS=$ac_check_lib_save_LIBS
8455 fi
8456 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8457 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8458 if test $ac_cv_lib_dl_dlopen = yes; then
8459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8460 else
8461
8462 lt_cv_dlopen="dyld"
8463 lt_cv_dlopen_libs=
8464 lt_cv_dlopen_self=yes
8465
8466 fi
8467
8468 ;;
8469
8470 *)
8471 echo "$as_me:$LINENO: checking for shl_load" >&5
8472 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8473 if test "${ac_cv_func_shl_load+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476 cat >conftest.$ac_ext <<_ACEOF
8477 /* confdefs.h. */
8478 _ACEOF
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8482 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8484 #define shl_load innocuous_shl_load
8485
8486 /* System header to define __stub macros and hopefully few prototypes,
8487 which can conflict with char shl_load (); below.
8488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8489 <limits.h> exists even on freestanding compilers. */
8490
8491 #ifdef __STDC__
8492 # include <limits.h>
8493 #else
8494 # include <assert.h>
8495 #endif
8496
8497 #undef shl_load
8498
8499 /* Override any gcc2 internal prototype to avoid an error. */
8500 #ifdef __cplusplus
8501 extern "C"
8502 {
8503 #endif
8504 /* We use char because int might match the return type of a gcc2
8505 builtin and then its argument prototype would still apply. */
8506 char shl_load ();
8507 /* The GNU C library defines this for functions which it implements
8508 to always fail with ENOSYS. Some functions are actually named
8509 something starting with __ and the normal name is an alias. */
8510 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8511 choke me
8512 #else
8513 char (*f) () = shl_load;
8514 #endif
8515 #ifdef __cplusplus
8516 }
8517 #endif
8518
8519 int
8520 main ()
8521 {
8522 return f != shl_load;
8523 ;
8524 return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529 (eval $ac_link) 2>conftest.er1
8530 ac_status=$?
8531 grep -v '^ *+' conftest.er1 >conftest.err
8532 rm -f conftest.er1
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try='test -z "$ac_c_werror_flag"
8537 || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 (eval $ac_try) 2>&5
8540 ac_status=$?
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest$ac_exeext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 (eval $ac_try) 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_cv_func_shl_load=yes
8550 else
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 ac_cv_func_shl_load=no
8555 fi
8556 rm -f conftest.err conftest.$ac_objext \
8557 conftest$ac_exeext conftest.$ac_ext
8558 fi
8559 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8560 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8561 if test $ac_cv_func_shl_load = yes; then
8562 lt_cv_dlopen="shl_load"
8563 else
8564 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8565 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8566 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 ac_check_lib_save_LIBS=$LIBS
8570 LIBS="-ldld $LIBS"
8571 cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h. */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577
8578 /* Override any gcc2 internal prototype to avoid an error. */
8579 #ifdef __cplusplus
8580 extern "C"
8581 #endif
8582 /* We use char because int might match the return type of a gcc2
8583 builtin and then its argument prototype would still apply. */
8584 char shl_load ();
8585 int
8586 main ()
8587 {
8588 shl_load ();
8589 ;
8590 return 0;
8591 }
8592 _ACEOF
8593 rm -f conftest.$ac_objext conftest$ac_exeext
8594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8595 (eval $ac_link) 2>conftest.er1
8596 ac_status=$?
8597 grep -v '^ *+' conftest.er1 >conftest.err
8598 rm -f conftest.er1
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } &&
8602 { ac_try='test -z "$ac_c_werror_flag"
8603 || test ! -s conftest.err'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } &&
8609 { ac_try='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_cv_lib_dld_shl_load=yes
8616 else
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_cv_lib_dld_shl_load=no
8621 fi
8622 rm -f conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
8624 LIBS=$ac_check_lib_save_LIBS
8625 fi
8626 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8627 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8628 if test $ac_cv_lib_dld_shl_load = yes; then
8629 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8630 else
8631 echo "$as_me:$LINENO: checking for dlopen" >&5
8632 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8633 if test "${ac_cv_func_dlopen+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 else
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8644 #define dlopen innocuous_dlopen
8645
8646 /* System header to define __stub macros and hopefully few prototypes,
8647 which can conflict with char dlopen (); below.
8648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8649 <limits.h> exists even on freestanding compilers. */
8650
8651 #ifdef __STDC__
8652 # include <limits.h>
8653 #else
8654 # include <assert.h>
8655 #endif
8656
8657 #undef dlopen
8658
8659 /* Override any gcc2 internal prototype to avoid an error. */
8660 #ifdef __cplusplus
8661 extern "C"
8662 {
8663 #endif
8664 /* We use char because int might match the return type of a gcc2
8665 builtin and then its argument prototype would still apply. */
8666 char dlopen ();
8667 /* The GNU C library defines this for functions which it implements
8668 to always fail with ENOSYS. Some functions are actually named
8669 something starting with __ and the normal name is an alias. */
8670 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8671 choke me
8672 #else
8673 char (*f) () = dlopen;
8674 #endif
8675 #ifdef __cplusplus
8676 }
8677 #endif
8678
8679 int
8680 main ()
8681 {
8682 return f != dlopen;
8683 ;
8684 return 0;
8685 }
8686 _ACEOF
8687 rm -f conftest.$ac_objext conftest$ac_exeext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8689 (eval $ac_link) 2>conftest.er1
8690 ac_status=$?
8691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try='test -z "$ac_c_werror_flag"
8697 || test ! -s conftest.err'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 (eval $ac_try) 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest$ac_exeext'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 ac_cv_func_dlopen=yes
8710 else
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714 ac_cv_func_dlopen=no
8715 fi
8716 rm -f conftest.err conftest.$ac_objext \
8717 conftest$ac_exeext conftest.$ac_ext
8718 fi
8719 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8720 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8721 if test $ac_cv_func_dlopen = yes; then
8722 lt_cv_dlopen="dlopen"
8723 else
8724 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8725 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8726 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 ac_check_lib_save_LIBS=$LIBS
8730 LIBS="-ldl $LIBS"
8731 cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h. */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737
8738 /* Override any gcc2 internal prototype to avoid an error. */
8739 #ifdef __cplusplus
8740 extern "C"
8741 #endif
8742 /* We use char because int might match the return type of a gcc2
8743 builtin and then its argument prototype would still apply. */
8744 char dlopen ();
8745 int
8746 main ()
8747 {
8748 dlopen ();
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8755 (eval $ac_link) 2>conftest.er1
8756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } &&
8762 { ac_try='test -z "$ac_c_werror_flag"
8763 || test ! -s conftest.err'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 (eval $ac_try) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest$ac_exeext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 (eval $ac_try) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_cv_lib_dl_dlopen=yes
8776 else
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 ac_cv_lib_dl_dlopen=no
8781 fi
8782 rm -f conftest.err conftest.$ac_objext \
8783 conftest$ac_exeext conftest.$ac_ext
8784 LIBS=$ac_check_lib_save_LIBS
8785 fi
8786 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8787 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8788 if test $ac_cv_lib_dl_dlopen = yes; then
8789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8790 else
8791 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8792 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8793 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796 ac_check_lib_save_LIBS=$LIBS
8797 LIBS="-lsvld $LIBS"
8798 cat >conftest.$ac_ext <<_ACEOF
8799 /* confdefs.h. */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h. */
8804
8805 /* Override any gcc2 internal prototype to avoid an error. */
8806 #ifdef __cplusplus
8807 extern "C"
8808 #endif
8809 /* We use char because int might match the return type of a gcc2
8810 builtin and then its argument prototype would still apply. */
8811 char dlopen ();
8812 int
8813 main ()
8814 {
8815 dlopen ();
8816 ;
8817 return 0;
8818 }
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag"
8830 || test ! -s conftest.err'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; } &&
8836 { ac_try='test -s conftest$ac_exeext'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 ac_cv_lib_svld_dlopen=yes
8843 else
8844 echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8846
8847 ac_cv_lib_svld_dlopen=no
8848 fi
8849 rm -f conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8851 LIBS=$ac_check_lib_save_LIBS
8852 fi
8853 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8854 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8855 if test $ac_cv_lib_svld_dlopen = yes; then
8856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8857 else
8858 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8859 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8860 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863 ac_check_lib_save_LIBS=$LIBS
8864 LIBS="-ldld $LIBS"
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871
8872 /* Override any gcc2 internal prototype to avoid an error. */
8873 #ifdef __cplusplus
8874 extern "C"
8875 #endif
8876 /* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8878 char dld_link ();
8879 int
8880 main ()
8881 {
8882 dld_link ();
8883 ;
8884 return 0;
8885 }
8886 _ACEOF
8887 rm -f conftest.$ac_objext conftest$ac_exeext
8888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889 (eval $ac_link) 2>conftest.er1
8890 ac_status=$?
8891 grep -v '^ *+' conftest.er1 >conftest.err
8892 rm -f conftest.er1
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } &&
8896 { ac_try='test -z "$ac_c_werror_flag"
8897 || test ! -s conftest.err'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899 (eval $ac_try) 2>&5
8900 ac_status=$?
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; } &&
8903 { ac_try='test -s conftest$ac_exeext'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 (eval $ac_try) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 ac_cv_lib_dld_dld_link=yes
8910 else
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8913
8914 ac_cv_lib_dld_dld_link=no
8915 fi
8916 rm -f conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 LIBS=$ac_check_lib_save_LIBS
8919 fi
8920 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8921 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8922 if test $ac_cv_lib_dld_dld_link = yes; then
8923 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8924 fi
8925
8926
8927 fi
8928
8929
8930 fi
8931
8932
8933 fi
8934
8935
8936 fi
8937
8938
8939 fi
8940
8941 ;;
8942 esac
8943
8944 if test "x$lt_cv_dlopen" != xno; then
8945 enable_dlopen=yes
8946 else
8947 enable_dlopen=no
8948 fi
8949
8950 case $lt_cv_dlopen in
8951 dlopen)
8952 save_CPPFLAGS="$CPPFLAGS"
8953 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8954
8955 save_LDFLAGS="$LDFLAGS"
8956 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8957
8958 save_LIBS="$LIBS"
8959 LIBS="$lt_cv_dlopen_libs $LIBS"
8960
8961 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8962 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8963 if test "${lt_cv_dlopen_self+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966 if test "$cross_compiling" = yes; then :
8967 lt_cv_dlopen_self=cross
8968 else
8969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8970 lt_status=$lt_dlunknown
8971 cat > conftest.$ac_ext <<EOF
8972 #line 8972 "configure"
8973 #include "confdefs.h"
8974
8975 #if HAVE_DLFCN_H
8976 #include <dlfcn.h>
8977 #endif
8978
8979 #include <stdio.h>
8980
8981 #ifdef RTLD_GLOBAL
8982 # define LT_DLGLOBAL RTLD_GLOBAL
8983 #else
8984 # ifdef DL_GLOBAL
8985 # define LT_DLGLOBAL DL_GLOBAL
8986 # else
8987 # define LT_DLGLOBAL 0
8988 # endif
8989 #endif
8990
8991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8992 find out it does not work in some platform. */
8993 #ifndef LT_DLLAZY_OR_NOW
8994 # ifdef RTLD_LAZY
8995 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8996 # else
8997 # ifdef DL_LAZY
8998 # define LT_DLLAZY_OR_NOW DL_LAZY
8999 # else
9000 # ifdef RTLD_NOW
9001 # define LT_DLLAZY_OR_NOW RTLD_NOW
9002 # else
9003 # ifdef DL_NOW
9004 # define LT_DLLAZY_OR_NOW DL_NOW
9005 # else
9006 # define LT_DLLAZY_OR_NOW 0
9007 # endif
9008 # endif
9009 # endif
9010 # endif
9011 #endif
9012
9013 #ifdef __cplusplus
9014 extern "C" void exit (int);
9015 #endif
9016
9017 void fnord() { int i=42;}
9018 int main ()
9019 {
9020 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9021 int status = $lt_dlunknown;
9022
9023 if (self)
9024 {
9025 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9026 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9027 /* dlclose (self); */
9028 }
9029
9030 exit (status);
9031 }
9032 EOF
9033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034 (eval $ac_link) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9038 (./conftest; exit; ) >&5 2>/dev/null
9039 lt_status=$?
9040 case x$lt_status in
9041 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9042 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9043 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9044 esac
9045 else :
9046 # compilation failed
9047 lt_cv_dlopen_self=no
9048 fi
9049 fi
9050 rm -fr conftest*
9051
9052
9053 fi
9054 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9055 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9056
9057 if test "x$lt_cv_dlopen_self" = xyes; then
9058 LDFLAGS="$LDFLAGS $link_static_flag"
9059 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9060 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9061 if test "${lt_cv_dlopen_self_static+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064 if test "$cross_compiling" = yes; then :
9065 lt_cv_dlopen_self_static=cross
9066 else
9067 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9068 lt_status=$lt_dlunknown
9069 cat > conftest.$ac_ext <<EOF
9070 #line 9070 "configure"
9071 #include "confdefs.h"
9072
9073 #if HAVE_DLFCN_H
9074 #include <dlfcn.h>
9075 #endif
9076
9077 #include <stdio.h>
9078
9079 #ifdef RTLD_GLOBAL
9080 # define LT_DLGLOBAL RTLD_GLOBAL
9081 #else
9082 # ifdef DL_GLOBAL
9083 # define LT_DLGLOBAL DL_GLOBAL
9084 # else
9085 # define LT_DLGLOBAL 0
9086 # endif
9087 #endif
9088
9089 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9090 find out it does not work in some platform. */
9091 #ifndef LT_DLLAZY_OR_NOW
9092 # ifdef RTLD_LAZY
9093 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9094 # else
9095 # ifdef DL_LAZY
9096 # define LT_DLLAZY_OR_NOW DL_LAZY
9097 # else
9098 # ifdef RTLD_NOW
9099 # define LT_DLLAZY_OR_NOW RTLD_NOW
9100 # else
9101 # ifdef DL_NOW
9102 # define LT_DLLAZY_OR_NOW DL_NOW
9103 # else
9104 # define LT_DLLAZY_OR_NOW 0
9105 # endif
9106 # endif
9107 # endif
9108 # endif
9109 #endif
9110
9111 #ifdef __cplusplus
9112 extern "C" void exit (int);
9113 #endif
9114
9115 void fnord() { int i=42;}
9116 int main ()
9117 {
9118 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9119 int status = $lt_dlunknown;
9120
9121 if (self)
9122 {
9123 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9124 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9125 /* dlclose (self); */
9126 }
9127
9128 exit (status);
9129 }
9130 EOF
9131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9136 (./conftest; exit; ) >&5 2>/dev/null
9137 lt_status=$?
9138 case x$lt_status in
9139 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9140 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9141 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9142 esac
9143 else :
9144 # compilation failed
9145 lt_cv_dlopen_self_static=no
9146 fi
9147 fi
9148 rm -fr conftest*
9149
9150
9151 fi
9152 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9153 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9154 fi
9155
9156 CPPFLAGS="$save_CPPFLAGS"
9157 LDFLAGS="$save_LDFLAGS"
9158 LIBS="$save_LIBS"
9159 ;;
9160 esac
9161
9162 case $lt_cv_dlopen_self in
9163 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9164 *) enable_dlopen_self=unknown ;;
9165 esac
9166
9167 case $lt_cv_dlopen_self_static in
9168 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9169 *) enable_dlopen_self_static=unknown ;;
9170 esac
9171 fi
9172
9173
9174 # Report which librarie types wil actually be built
9175 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9176 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9177 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9178 echo "${ECHO_T}$can_build_shared" >&6
9179
9180 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9181 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9182 test "$can_build_shared" = "no" && enable_shared=no
9183
9184 # On AIX, shared libraries and static libraries use the same namespace, and
9185 # are all built from PIC.
9186 case $host_os in
9187 aix3*)
9188 test "$enable_shared" = yes && enable_static=no
9189 if test -n "$RANLIB"; then
9190 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9191 postinstall_cmds='$RANLIB $lib'
9192 fi
9193 ;;
9194
9195 aix4* | aix5*)
9196 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9197 test "$enable_shared" = yes && enable_static=no
9198 fi
9199 ;;
9200 esac
9201 echo "$as_me:$LINENO: result: $enable_shared" >&5
9202 echo "${ECHO_T}$enable_shared" >&6
9203
9204 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9205 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9206 # Make sure either enable_shared or enable_static is yes.
9207 test "$enable_shared" = yes || enable_static=yes
9208 echo "$as_me:$LINENO: result: $enable_static" >&5
9209 echo "${ECHO_T}$enable_static" >&6
9210
9211 # The else clause should only fire when bootstrapping the
9212 # libtool distribution, otherwise you forgot to ship ltmain.sh
9213 # with your package, and you will get complaints that there are
9214 # no rules to generate ltmain.sh.
9215 if test -f "$ltmain"; then
9216 # See if we are running on zsh, and set the options which allow our commands through
9217 # without removal of \ escapes.
9218 if test -n "${ZSH_VERSION+set}" ; then
9219 setopt NO_GLOB_SUBST
9220 fi
9221 # Now quote all the things that may contain metacharacters while being
9222 # careful not to overquote the AC_SUBSTed values. We take copies of the
9223 # variables and quote the copies for generation of the libtool script.
9224 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9225 SED SHELL STRIP \
9226 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9227 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9228 deplibs_check_method reload_flag reload_cmds need_locks \
9229 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9230 lt_cv_sys_global_symbol_to_c_name_address \
9231 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9232 old_postinstall_cmds old_postuninstall_cmds \
9233 compiler \
9234 CC \
9235 LD \
9236 lt_prog_compiler_wl \
9237 lt_prog_compiler_pic \
9238 lt_prog_compiler_static \
9239 lt_prog_compiler_no_builtin_flag \
9240 export_dynamic_flag_spec \
9241 thread_safe_flag_spec \
9242 whole_archive_flag_spec \
9243 enable_shared_with_static_runtimes \
9244 old_archive_cmds \
9245 old_archive_from_new_cmds \
9246 predep_objects \
9247 postdep_objects \
9248 predeps \
9249 postdeps \
9250 compiler_lib_search_path \
9251 archive_cmds \
9252 archive_expsym_cmds \
9253 postinstall_cmds \
9254 postuninstall_cmds \
9255 old_archive_from_expsyms_cmds \
9256 allow_undefined_flag \
9257 no_undefined_flag \
9258 export_symbols_cmds \
9259 hardcode_libdir_flag_spec \
9260 hardcode_libdir_flag_spec_ld \
9261 hardcode_libdir_separator \
9262 hardcode_automatic \
9263 module_cmds \
9264 module_expsym_cmds \
9265 lt_cv_prog_compiler_c_o \
9266 exclude_expsyms \
9267 include_expsyms; do
9268
9269 case $var in
9270 old_archive_cmds | \
9271 old_archive_from_new_cmds | \
9272 archive_cmds | \
9273 archive_expsym_cmds | \
9274 module_cmds | \
9275 module_expsym_cmds | \
9276 old_archive_from_expsyms_cmds | \
9277 export_symbols_cmds | \
9278 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9279 postinstall_cmds | postuninstall_cmds | \
9280 old_postinstall_cmds | old_postuninstall_cmds | \
9281 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9282 # Double-quote double-evaled strings.
9283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9284 ;;
9285 *)
9286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9287 ;;
9288 esac
9289 done
9290
9291 case $lt_echo in
9292 *'\$0 --fallback-echo"')
9293 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9294 ;;
9295 esac
9296
9297 cfgfile="${ofile}T"
9298 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9299 $rm -f "$cfgfile"
9300 { echo "$as_me:$LINENO: creating $ofile" >&5
9301 echo "$as_me: creating $ofile" >&6;}
9302
9303 cat <<__EOF__ >> "$cfgfile"
9304 #! $SHELL
9305
9306 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9307 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9308 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9309 #
9310 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9311 # Free Software Foundation, Inc.
9312 #
9313 # This file is part of GNU Libtool:
9314 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
9315 #
9316 # This program is free software; you can redistribute it and/or modify
9317 # it under the terms of the GNU General Public License as published by
9318 # the Free Software Foundation; either version 2 of the License, or
9319 # (at your option) any later version.
9320 #
9321 # This program is distributed in the hope that it will be useful, but
9322 # WITHOUT ANY WARRANTY; without even the implied warranty of
9323 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9324 # General Public License for more details.
9325 #
9326 # You should have received a copy of the GNU General Public License
9327 # along with this program; if not, write to the Free Software
9328 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9329 #
9330 # As a special exception to the GNU General Public License, if you
9331 # distribute this file as part of a program that contains a
9332 # configuration script generated by Autoconf, you may include it under
9333 # the same distribution terms that you use for the rest of that program.
9334
9335 # A sed program that does not truncate output.
9336 SED=$lt_SED
9337
9338 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9339 Xsed="$SED -e 1s/^X//"
9340
9341 # The HP-UX ksh and POSIX shell print the target directory to stdout
9342 # if CDPATH is set.
9343 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9344
9345 # The names of the tagged configurations supported by this script.
9346 available_tags=
9347
9348 # ### BEGIN LIBTOOL CONFIG
9349
9350 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9351
9352 # Shell to use when invoking shell scripts.
9353 SHELL=$lt_SHELL
9354
9355 # Whether or not to build shared libraries.
9356 build_libtool_libs=$enable_shared
9357
9358 # Whether or not to build static libraries.
9359 build_old_libs=$enable_static
9360
9361 # Whether or not to add -lc for building shared libraries.
9362 build_libtool_need_lc=$archive_cmds_need_lc
9363
9364 # Whether or not to disallow shared libs when runtime libs are static
9365 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9366
9367 # Whether or not to optimize for fast installation.
9368 fast_install=$enable_fast_install
9369
9370 # The host system.
9371 host_alias=$host_alias
9372 host=$host
9373 host_os=$host_os
9374
9375 # The build system.
9376 build_alias=$build_alias
9377 build=$build
9378 build_os=$build_os
9379
9380 # An echo program that does not interpret backslashes.
9381 echo=$lt_echo
9382
9383 # The archiver.
9384 AR=$lt_AR
9385 AR_FLAGS=$lt_AR_FLAGS
9386
9387 # A C compiler.
9388 LTCC=$lt_LTCC
9389
9390 # A language-specific compiler.
9391 CC=$lt_compiler
9392
9393 # Is the compiler the GNU C compiler?
9394 with_gcc=$GCC
9395
9396 # An ERE matcher.
9397 EGREP=$lt_EGREP
9398
9399 # The linker used to build libraries.
9400 LD=$lt_LD
9401
9402 # Whether we need hard or soft links.
9403 LN_S=$lt_LN_S
9404
9405 # A BSD-compatible nm program.
9406 NM=$lt_NM
9407
9408 # A symbol stripping program
9409 STRIP=$lt_STRIP
9410
9411 # Used to examine libraries when file_magic_cmd begins "file"
9412 MAGIC_CMD=$MAGIC_CMD
9413
9414 # Used on cygwin: DLL creation program.
9415 DLLTOOL="$DLLTOOL"
9416
9417 # Used on cygwin: object dumper.
9418 OBJDUMP="$OBJDUMP"
9419
9420 # Used on cygwin: assembler.
9421 AS="$AS"
9422
9423 # The name of the directory that contains temporary libtool files.
9424 objdir=$objdir
9425
9426 # How to create reloadable object files.
9427 reload_flag=$lt_reload_flag
9428 reload_cmds=$lt_reload_cmds
9429
9430 # How to pass a linker flag through the compiler.
9431 wl=$lt_lt_prog_compiler_wl
9432
9433 # Object file suffix (normally "o").
9434 objext="$ac_objext"
9435
9436 # Old archive suffix (normally "a").
9437 libext="$libext"
9438
9439 # Shared library suffix (normally ".so").
9440 shrext_cmds='$shrext_cmds'
9441
9442 # Executable file suffix (normally "").
9443 exeext="$exeext"
9444
9445 # Additional compiler flags for building library objects.
9446 pic_flag=$lt_lt_prog_compiler_pic
9447 pic_mode=$pic_mode
9448
9449 # What is the maximum length of a command?
9450 max_cmd_len=$lt_cv_sys_max_cmd_len
9451
9452 # Does compiler simultaneously support -c and -o options?
9453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9454
9455 # Must we lock files when doing compilation?
9456 need_locks=$lt_need_locks
9457
9458 # Do we need the lib prefix for modules?
9459 need_lib_prefix=$need_lib_prefix
9460
9461 # Do we need a version for libraries?
9462 need_version=$need_version
9463
9464 # Whether dlopen is supported.
9465 dlopen_support=$enable_dlopen
9466
9467 # Whether dlopen of programs is supported.
9468 dlopen_self=$enable_dlopen_self
9469
9470 # Whether dlopen of statically linked programs is supported.
9471 dlopen_self_static=$enable_dlopen_self_static
9472
9473 # Compiler flag to prevent dynamic linking.
9474 link_static_flag=$lt_lt_prog_compiler_static
9475
9476 # Compiler flag to turn off builtin functions.
9477 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9478
9479 # Compiler flag to allow reflexive dlopens.
9480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9481
9482 # Compiler flag to generate shared objects directly from archives.
9483 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9484
9485 # Compiler flag to generate thread-safe objects.
9486 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9487
9488 # Library versioning type.
9489 version_type=$version_type
9490
9491 # Format of library name prefix.
9492 libname_spec=$lt_libname_spec
9493
9494 # List of archive names. First name is the real one, the rest are links.
9495 # The last name is the one that the linker finds with -lNAME.
9496 library_names_spec=$lt_library_names_spec
9497
9498 # The coded name of the library, if different from the real name.
9499 soname_spec=$lt_soname_spec
9500
9501 # Commands used to build and install an old-style archive.
9502 RANLIB=$lt_RANLIB
9503 old_archive_cmds=$lt_old_archive_cmds
9504 old_postinstall_cmds=$lt_old_postinstall_cmds
9505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9506
9507 # Create an old-style archive from a shared archive.
9508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9509
9510 # Create a temporary old-style archive to link instead of a shared archive.
9511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9512
9513 # Commands used to build and install a shared archive.
9514 archive_cmds=$lt_archive_cmds
9515 archive_expsym_cmds=$lt_archive_expsym_cmds
9516 postinstall_cmds=$lt_postinstall_cmds
9517 postuninstall_cmds=$lt_postuninstall_cmds
9518
9519 # Commands used to build a loadable module (assumed same as above if empty)
9520 module_cmds=$lt_module_cmds
9521 module_expsym_cmds=$lt_module_expsym_cmds
9522
9523 # Commands to strip libraries.
9524 old_striplib=$lt_old_striplib
9525 striplib=$lt_striplib
9526
9527 # Dependencies to place before the objects being linked to create a
9528 # shared library.
9529 predep_objects=$lt_predep_objects
9530
9531 # Dependencies to place after the objects being linked to create a
9532 # shared library.
9533 postdep_objects=$lt_postdep_objects
9534
9535 # Dependencies to place before the objects being linked to create a
9536 # shared library.
9537 predeps=$lt_predeps
9538
9539 # Dependencies to place after the objects being linked to create a
9540 # shared library.
9541 postdeps=$lt_postdeps
9542
9543 # The library search path used internally by the compiler when linking
9544 # a shared library.
9545 compiler_lib_search_path=$lt_compiler_lib_search_path
9546
9547 # Method to check whether dependent libraries are shared objects.
9548 deplibs_check_method=$lt_deplibs_check_method
9549
9550 # Command to use when deplibs_check_method == file_magic.
9551 file_magic_cmd=$lt_file_magic_cmd
9552
9553 # Flag that allows shared libraries with undefined symbols to be built.
9554 allow_undefined_flag=$lt_allow_undefined_flag
9555
9556 # Flag that forces no undefined symbols.
9557 no_undefined_flag=$lt_no_undefined_flag
9558
9559 # Commands used to finish a libtool library installation in a directory.
9560 finish_cmds=$lt_finish_cmds
9561
9562 # Same as above, but a single script fragment to be evaled but not shown.
9563 finish_eval=$lt_finish_eval
9564
9565 # Take the output of nm and produce a listing of raw symbols and C names.
9566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9567
9568 # Transform the output of nm in a proper C declaration
9569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9570
9571 # Transform the output of nm in a C name address pair
9572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9573
9574 # This is the shared library runtime path variable.
9575 runpath_var=$runpath_var
9576
9577 # This is the shared library path variable.
9578 shlibpath_var=$shlibpath_var
9579
9580 # Is shlibpath searched before the hard-coded library search path?
9581 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9582
9583 # How to hardcode a shared library path into an executable.
9584 hardcode_action=$hardcode_action
9585
9586 # Whether we should hardcode library paths into libraries.
9587 hardcode_into_libs=$hardcode_into_libs
9588
9589 # Flag to hardcode \$libdir into a binary during linking.
9590 # This must work even if \$libdir does not exist.
9591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9592
9593 # If ld is used when linking, flag to hardcode \$libdir into
9594 # a binary during linking. This must work even if \$libdir does
9595 # not exist.
9596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9597
9598 # Whether we need a single -rpath flag with a separated argument.
9599 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9600
9601 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9602 # resulting binary.
9603 hardcode_direct=$hardcode_direct
9604
9605 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9606 # resulting binary.
9607 hardcode_minus_L=$hardcode_minus_L
9608
9609 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9610 # the resulting binary.
9611 hardcode_shlibpath_var=$hardcode_shlibpath_var
9612
9613 # Set to yes if building a shared library automatically hardcodes DIR into the library
9614 # and all subsequent libraries and executables linked against it.
9615 hardcode_automatic=$hardcode_automatic
9616
9617 # Variables whose values should be saved in libtool wrapper scripts and
9618 # restored at relink time.
9619 variables_saved_for_relink="$variables_saved_for_relink"
9620
9621 # Whether libtool must link a program against all its dependency libraries.
9622 link_all_deplibs=$link_all_deplibs
9623
9624 # Compile-time system search path for libraries
9625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9626
9627 # Run-time system search path for libraries
9628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9629
9630 # Fix the shell variable \$srcfile for the compiler.
9631 fix_srcfile_path="$fix_srcfile_path"
9632
9633 # Set to yes if exported symbols are required.
9634 always_export_symbols=$always_export_symbols
9635
9636 # The commands to list exported symbols.
9637 export_symbols_cmds=$lt_export_symbols_cmds
9638
9639 # The commands to extract the exported symbol list from a shared archive.
9640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9641
9642 # Symbols that should not be listed in the preloaded symbols.
9643 exclude_expsyms=$lt_exclude_expsyms
9644
9645 # Symbols that must always be exported.
9646 include_expsyms=$lt_include_expsyms
9647
9648 # ### END LIBTOOL CONFIG
9649
9650 __EOF__
9651
9652
9653 case $host_os in
9654 aix3*)
9655 cat <<\EOF >> "$cfgfile"
9656
9657 # AIX sometimes has problems with the GCC collect2 program. For some
9658 # reason, if we set the COLLECT_NAMES environment variable, the problems
9659 # vanish in a puff of smoke.
9660 if test "X${COLLECT_NAMES+set}" != Xset; then
9661 COLLECT_NAMES=
9662 export COLLECT_NAMES
9663 fi
9664 EOF
9665 ;;
9666 esac
9667
9668 # We use sed instead of cat because bash on DJGPP gets confused if
9669 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9670 # text mode, it properly converts lines to CR/LF. This bash problem
9671 # is reportedly fixed, but why not run on old versions too?
9672 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9673
9674 mv -f "$cfgfile" "$ofile" || \
9675 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9676 chmod +x "$ofile"
9677
9678 else
9679 # If there is no Makefile yet, we rely on a make rule to execute
9680 # `config.status --recheck' to rerun these tests and create the
9681 # libtool script then.
9682 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9683 if test -f "$ltmain_in"; then
9684 test -f Makefile && make "$ltmain"
9685 fi
9686 fi
9687
9688
9689 ac_ext=c
9690 ac_cpp='$CPP $CPPFLAGS'
9691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9694
9695 CC="$lt_save_CC"
9696
9697
9698 # Check whether --with-tags or --without-tags was given.
9699 if test "${with_tags+set}" = set; then
9700 withval="$with_tags"
9701 tagnames="$withval"
9702 fi;
9703
9704 if test -f "$ltmain" && test -n "$tagnames"; then
9705 if test ! -f "${ofile}"; then
9706 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9707 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9708 fi
9709
9710 if test -z "$LTCC"; then
9711 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9712 if test -z "$LTCC"; then
9713 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9714 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9715 else
9716 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9717 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9718 fi
9719 fi
9720
9721 # Extract list of available tagged configurations in $ofile.
9722 # Note that this assumes the entire list is on one line.
9723 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9724
9725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9726 for tagname in $tagnames; do
9727 IFS="$lt_save_ifs"
9728 # Check whether tagname contains only valid characters
9729 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9730 "") ;;
9731 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9732 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9733 { (exit 1); exit 1; }; }
9734 ;;
9735 esac
9736
9737 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9738 then
9739 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9740 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9741 { (exit 1); exit 1; }; }
9742 fi
9743
9744 # Update the list of available tags.
9745 if test -n "$tagname"; then
9746 echo appending configuration tag \"$tagname\" to $ofile
9747
9748 case $tagname in
9749 CXX)
9750 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9751 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9752 (test "X$CXX" != "Xg++"))) ; then
9753 ac_ext=cc
9754 ac_cpp='$CXXCPP $CPPFLAGS'
9755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9758
9759
9760
9761
9762 archive_cmds_need_lc_CXX=no
9763 allow_undefined_flag_CXX=
9764 always_export_symbols_CXX=no
9765 archive_expsym_cmds_CXX=
9766 export_dynamic_flag_spec_CXX=
9767 hardcode_direct_CXX=no
9768 hardcode_libdir_flag_spec_CXX=
9769 hardcode_libdir_flag_spec_ld_CXX=
9770 hardcode_libdir_separator_CXX=
9771 hardcode_minus_L_CXX=no
9772 hardcode_automatic_CXX=no
9773 module_cmds_CXX=
9774 module_expsym_cmds_CXX=
9775 link_all_deplibs_CXX=unknown
9776 old_archive_cmds_CXX=$old_archive_cmds
9777 no_undefined_flag_CXX=
9778 whole_archive_flag_spec_CXX=
9779 enable_shared_with_static_runtimes_CXX=no
9780
9781 # Dependencies to place before and after the object being linked:
9782 predep_objects_CXX=
9783 postdep_objects_CXX=
9784 predeps_CXX=
9785 postdeps_CXX=
9786 compiler_lib_search_path_CXX=
9787
9788 # Source file extension for C++ test sources.
9789 ac_ext=cpp
9790
9791 # Object file extension for compiled C++ test sources.
9792 objext=o
9793 objext_CXX=$objext
9794
9795 # Code to be used in simple compile tests
9796 lt_simple_compile_test_code="int some_variable = 0;\n"
9797
9798 # Code to be used in simple link tests
9799 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9800
9801 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9802
9803 # If no C compiler was specified, use CC.
9804 LTCC=${LTCC-"$CC"}
9805
9806 # Allow CC to be a program name with arguments.
9807 compiler=$CC
9808
9809
9810 # save warnings/boilerplate of simple test code
9811 ac_outfile=conftest.$ac_objext
9812 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9813 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9814 _lt_compiler_boilerplate=`cat conftest.err`
9815 $rm conftest*
9816
9817 ac_outfile=conftest.$ac_objext
9818 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9819 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9820 _lt_linker_boilerplate=`cat conftest.err`
9821 $rm conftest*
9822
9823
9824 # Allow CC to be a program name with arguments.
9825 lt_save_CC=$CC
9826 lt_save_LD=$LD
9827 lt_save_GCC=$GCC
9828 GCC=$GXX
9829 lt_save_with_gnu_ld=$with_gnu_ld
9830 lt_save_path_LD=$lt_cv_path_LD
9831 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9832 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9833 else
9834 unset lt_cv_prog_gnu_ld
9835 fi
9836 if test -n "${lt_cv_path_LDCXX+set}"; then
9837 lt_cv_path_LD=$lt_cv_path_LDCXX
9838 else
9839 unset lt_cv_path_LD
9840 fi
9841 test -z "${LDCXX+set}" || LD=$LDCXX
9842 CC=${CXX-"c++"}
9843 compiler=$CC
9844 compiler_CXX=$CC
9845 for cc_temp in $compiler""; do
9846 case $cc_temp in
9847 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9848 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9849 \-*) ;;
9850 *) break;;
9851 esac
9852 done
9853 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9854
9855
9856 # We don't want -fno-exception wen compiling C++ code, so set the
9857 # no_builtin_flag separately
9858 if test "$GXX" = yes; then
9859 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9860 else
9861 lt_prog_compiler_no_builtin_flag_CXX=
9862 fi
9863
9864 if test "$GXX" = yes; then
9865 # Set up default GNU C++ configuration
9866
9867
9868 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9869 if test "${with_gnu_ld+set}" = set; then
9870 withval="$with_gnu_ld"
9871 test "$withval" = no || with_gnu_ld=yes
9872 else
9873 with_gnu_ld=no
9874 fi;
9875 ac_prog=ld
9876 if test "$GCC" = yes; then
9877 # Check if gcc -print-prog-name=ld gives a path.
9878 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9879 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9880 case $host in
9881 *-*-mingw*)
9882 # gcc leaves a trailing carriage return which upsets mingw
9883 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9884 *)
9885 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9886 esac
9887 case $ac_prog in
9888 # Accept absolute paths.
9889 [\\/]* | ?:[\\/]*)
9890 re_direlt='/[^/][^/]*/\.\./'
9891 # Canonicalize the pathname of ld
9892 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9893 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9894 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9895 done
9896 test -z "$LD" && LD="$ac_prog"
9897 ;;
9898 "")
9899 # If it fails, then pretend we aren't using GCC.
9900 ac_prog=ld
9901 ;;
9902 *)
9903 # If it is relative, then search for the first ld in PATH.
9904 with_gnu_ld=unknown
9905 ;;
9906 esac
9907 elif test "$with_gnu_ld" = yes; then
9908 echo "$as_me:$LINENO: checking for GNU ld" >&5
9909 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9910 else
9911 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9912 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9913 fi
9914 if test "${lt_cv_path_LD+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917 if test -z "$LD"; then
9918 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9919 for ac_dir in $PATH; do
9920 IFS="$lt_save_ifs"
9921 test -z "$ac_dir" && ac_dir=.
9922 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9923 lt_cv_path_LD="$ac_dir/$ac_prog"
9924 # Check to see if the program is GNU ld. I'd rather use --version,
9925 # but apparently some variants of GNU ld only accept -v.
9926 # Break only if it was the GNU/non-GNU ld that we prefer.
9927 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9928 *GNU* | *'with BFD'*)
9929 test "$with_gnu_ld" != no && break
9930 ;;
9931 *)
9932 test "$with_gnu_ld" != yes && break
9933 ;;
9934 esac
9935 fi
9936 done
9937 IFS="$lt_save_ifs"
9938 else
9939 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9940 fi
9941 fi
9942
9943 LD="$lt_cv_path_LD"
9944 if test -n "$LD"; then
9945 echo "$as_me:$LINENO: result: $LD" >&5
9946 echo "${ECHO_T}$LD" >&6
9947 else
9948 echo "$as_me:$LINENO: result: no" >&5
9949 echo "${ECHO_T}no" >&6
9950 fi
9951 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9952 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9953 { (exit 1); exit 1; }; }
9954 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9955 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9956 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9960 case `$LD -v 2>&1 </dev/null` in
9961 *GNU* | *'with BFD'*)
9962 lt_cv_prog_gnu_ld=yes
9963 ;;
9964 *)
9965 lt_cv_prog_gnu_ld=no
9966 ;;
9967 esac
9968 fi
9969 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9970 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9971 with_gnu_ld=$lt_cv_prog_gnu_ld
9972
9973
9974
9975 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9976 # archiving commands below assume that GNU ld is being used.
9977 if test "$with_gnu_ld" = yes; then
9978 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9979 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'
9980
9981 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9983
9984 # If archive_cmds runs LD, not CC, wlarc should be empty
9985 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9986 # investigate it a little bit more. (MM)
9987 wlarc='${wl}'
9988
9989 # ancient GNU ld didn't support --whole-archive et. al.
9990 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9991 grep 'no-whole-archive' > /dev/null; then
9992 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9993 else
9994 whole_archive_flag_spec_CXX=
9995 fi
9996 else
9997 with_gnu_ld=no
9998 wlarc=
9999
10000 # A generic and very simple default shared library creation
10001 # command for GNU C++ for the case where it uses the native
10002 # linker, instead of GNU ld. If possible, this setting should
10003 # overridden to take advantage of the native linker features on
10004 # the platform it is being used on.
10005 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10006 fi
10007
10008 # Commands to make compiler produce verbose output that lists
10009 # what "hidden" libraries, object files and flags are used when
10010 # linking a shared library.
10011 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10012
10013 else
10014 GXX=no
10015 with_gnu_ld=no
10016 wlarc=
10017 fi
10018
10019 # PORTME: fill in a description of your system's C++ link characteristics
10020 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10021 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10022 ld_shlibs_CXX=yes
10023 case $host_os in
10024 aix3*)
10025 # FIXME: insert proper C++ library support
10026 ld_shlibs_CXX=no
10027 ;;
10028 aix4* | aix5*)
10029 if test "$host_cpu" = ia64; then
10030 # On IA64, the linker does run time linking by default, so we don't
10031 # have to do anything special.
10032 aix_use_runtimelinking=no
10033 exp_sym_flag='-Bexport'
10034 no_entry_flag=""
10035 else
10036 aix_use_runtimelinking=no
10037
10038 # Test if we are trying to use run time linking or normal
10039 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10040 # need to do runtime linking.
10041 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10042 for ld_flag in $LDFLAGS; do
10043 case $ld_flag in
10044 *-brtl*)
10045 aix_use_runtimelinking=yes
10046 break
10047 ;;
10048 esac
10049 done
10050 esac
10051
10052 exp_sym_flag='-bexport'
10053 no_entry_flag='-bnoentry'
10054 fi
10055
10056 # When large executables or shared objects are built, AIX ld can
10057 # have problems creating the table of contents. If linking a library
10058 # or program results in "error TOC overflow" add -mminimal-toc to
10059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10061
10062 archive_cmds_CXX=''
10063 hardcode_direct_CXX=yes
10064 hardcode_libdir_separator_CXX=':'
10065 link_all_deplibs_CXX=yes
10066
10067 if test "$GXX" = yes; then
10068 case $host_os in aix4.[012]|aix4.[012].*)
10069 # We only want to do this on AIX 4.2 and lower, the check
10070 # below for broken collect2 doesn't work under 4.3+
10071 collect2name=`${CC} -print-prog-name=collect2`
10072 if test -f "$collect2name" && \
10073 strings "$collect2name" | grep resolve_lib_name >/dev/null
10074 then
10075 # We have reworked collect2
10076 hardcode_direct_CXX=yes
10077 else
10078 # We have old collect2
10079 hardcode_direct_CXX=unsupported
10080 # It fails to find uninstalled libraries when the uninstalled
10081 # path is not listed in the libpath. Setting hardcode_minus_L
10082 # to unsupported forces relinking
10083 hardcode_minus_L_CXX=yes
10084 hardcode_libdir_flag_spec_CXX='-L$libdir'
10085 hardcode_libdir_separator_CXX=
10086 fi
10087 esac
10088 shared_flag='-shared'
10089 if test "$aix_use_runtimelinking" = yes; then
10090 shared_flag="$shared_flag "'${wl}-G'
10091 fi
10092 else
10093 # not using gcc
10094 if test "$host_cpu" = ia64; then
10095 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10096 # chokes on -Wl,-G. The following line is correct:
10097 shared_flag='-G'
10098 else
10099 if test "$aix_use_runtimelinking" = yes; then
10100 shared_flag='${wl}-G'
10101 else
10102 shared_flag='${wl}-bM:SRE'
10103 fi
10104 fi
10105 fi
10106
10107 # It seems that -bexpall does not export symbols beginning with
10108 # underscore (_), so it is better to generate a list of symbols to export.
10109 always_export_symbols_CXX=yes
10110 if test "$aix_use_runtimelinking" = yes; then
10111 # Warning - without using the other runtime loading flags (-brtl),
10112 # -berok will link without error, but may produce a broken library.
10113 allow_undefined_flag_CXX='-berok'
10114 # Determine the default libpath from the value encoded in an empty executable.
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121
10122 int
10123 main ()
10124 {
10125
10126 ;
10127 return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>conftest.er1
10133 ac_status=$?
10134 grep -v '^ *+' conftest.er1 >conftest.err
10135 rm -f conftest.er1
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } &&
10139 { ac_try='test -z "$ac_cxx_werror_flag"
10140 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10143 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } &&
10146 { ac_try='test -s conftest$ac_exeext'
10147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152
10153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10154 }'`
10155 # Check for a 64-bit object if we didn't find anything.
10156 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; }
10157 }'`; fi
10158 else
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 fi
10163 rm -f conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10166
10167 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10168
10169 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10170 else
10171 if test "$host_cpu" = ia64; then
10172 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10173 allow_undefined_flag_CXX="-z nodefs"
10174 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10175 else
10176 # Determine the default libpath from the value encoded in an empty executable.
10177 cat >conftest.$ac_ext <<_ACEOF
10178 /* confdefs.h. */
10179 _ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183
10184 int
10185 main ()
10186 {
10187
10188 ;
10189 return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10194 (eval $ac_link) 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_cxx_werror_flag"
10202 || test ! -s conftest.err'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; } &&
10208 { ac_try='test -s conftest$ac_exeext'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
10214
10215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10216 }'`
10217 # Check for a 64-bit object if we didn't find anything.
10218 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; }
10219 }'`; fi
10220 else
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224 fi
10225 rm -f conftest.err conftest.$ac_objext \
10226 conftest$ac_exeext conftest.$ac_ext
10227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10228
10229 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10230 # Warning - without using the other run time loading flags,
10231 # -berok will link without error, but may produce a broken library.
10232 no_undefined_flag_CXX=' ${wl}-bernotok'
10233 allow_undefined_flag_CXX=' ${wl}-berok'
10234 # -bexpall does not export symbols beginning with underscore (_)
10235 always_export_symbols_CXX=yes
10236 # Exported symbols can be pulled into shared objects from archives
10237 whole_archive_flag_spec_CXX=' '
10238 archive_cmds_need_lc_CXX=yes
10239 # This is similar to how AIX traditionally builds its shared libraries.
10240 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10241 fi
10242 fi
10243 ;;
10244 chorus*)
10245 case $cc_basename in
10246 *)
10247 # FIXME: insert proper C++ library support
10248 ld_shlibs_CXX=no
10249 ;;
10250 esac
10251 ;;
10252
10253
10254 cygwin* | mingw* | pw32*)
10255 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10256 # as there is no search path for DLLs.
10257 hardcode_libdir_flag_spec_CXX='-L$libdir'
10258 allow_undefined_flag_CXX=unsupported
10259 always_export_symbols_CXX=no
10260 enable_shared_with_static_runtimes_CXX=yes
10261
10262 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10263 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10264 # If the export-symbols file already is a .def file (1st line
10265 # is EXPORTS), use it as is; otherwise, prepend...
10266 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10267 cp $export_symbols $output_objdir/$soname.def;
10268 else
10269 echo EXPORTS > $output_objdir/$soname.def;
10270 cat $export_symbols >> $output_objdir/$soname.def;
10271 fi~
10272 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10273 else
10274 ld_shlibs_CXX=no
10275 fi
10276 ;;
10277 darwin* | rhapsody*)
10278 case $host_os in
10279 rhapsody* | darwin1.[012])
10280 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10281 ;;
10282 *) # Darwin 1.3 on
10283 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10284 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10285 else
10286 case ${MACOSX_DEPLOYMENT_TARGET} in
10287 10.[012])
10288 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10289 ;;
10290 10.*)
10291 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10292 ;;
10293 esac
10294 fi
10295 ;;
10296 esac
10297 archive_cmds_need_lc_CXX=no
10298 hardcode_direct_CXX=no
10299 hardcode_automatic_CXX=yes
10300 hardcode_shlibpath_var_CXX=unsupported
10301 whole_archive_flag_spec_CXX=''
10302 link_all_deplibs_CXX=yes
10303
10304 if test "$GXX" = yes ; then
10305 lt_int_apple_cc_single_mod=no
10306 output_verbose_link_cmd='echo'
10307 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10308 lt_int_apple_cc_single_mod=yes
10309 fi
10310 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10311 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10312 else
10313 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'
10314 fi
10315 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10316 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10317 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10318 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}'
10319 else
10320 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}'
10321 fi
10322 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}'
10323 else
10324 case $cc_basename in
10325 xlc*)
10326 output_verbose_link_cmd='echo'
10327 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'
10328 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10330 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}'
10331 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}'
10332 ;;
10333 *)
10334 ld_shlibs_CXX=no
10335 ;;
10336 esac
10337 fi
10338 ;;
10339
10340 dgux*)
10341 case $cc_basename in
10342 ec++*)
10343 # FIXME: insert proper C++ library support
10344 ld_shlibs_CXX=no
10345 ;;
10346 ghcx*)
10347 # Green Hills C++ Compiler
10348 # FIXME: insert proper C++ library support
10349 ld_shlibs_CXX=no
10350 ;;
10351 *)
10352 # FIXME: insert proper C++ library support
10353 ld_shlibs_CXX=no
10354 ;;
10355 esac
10356 ;;
10357 freebsd[12]*)
10358 # C++ shared libraries reported to be fairly broken before switch to ELF
10359 ld_shlibs_CXX=no
10360 ;;
10361 freebsd-elf*)
10362 archive_cmds_need_lc_CXX=no
10363 ;;
10364 freebsd* | kfreebsd*-gnu | dragonfly*)
10365 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10366 # conventions
10367 ld_shlibs_CXX=yes
10368 ;;
10369 gnu*)
10370 ;;
10371 hpux9*)
10372 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10373 hardcode_libdir_separator_CXX=:
10374 export_dynamic_flag_spec_CXX='${wl}-E'
10375 hardcode_direct_CXX=yes
10376 hardcode_minus_L_CXX=yes # Not in the search PATH,
10377 # but as the default
10378 # location of the library.
10379
10380 case $cc_basename in
10381 CC*)
10382 # FIXME: insert proper C++ library support
10383 ld_shlibs_CXX=no
10384 ;;
10385 aCC*)
10386 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'
10387 # Commands to make compiler produce verbose output that lists
10388 # what "hidden" libraries, object files and flags are used when
10389 # linking a shared library.
10390 #
10391 # There doesn't appear to be a way to prevent this compiler from
10392 # explicitly linking system object files so we need to strip them
10393 # from the output so that they don't get included in the library
10394 # dependencies.
10395 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'
10396 ;;
10397 *)
10398 if test "$GXX" = yes; then
10399 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'
10400 else
10401 # FIXME: insert proper C++ library support
10402 ld_shlibs_CXX=no
10403 fi
10404 ;;
10405 esac
10406 ;;
10407 hpux10*|hpux11*)
10408 if test $with_gnu_ld = no; then
10409 case $host_cpu in
10410 hppa*64*)
10411 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10412 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10413 hardcode_libdir_separator_CXX=:
10414 ;;
10415 ia64*)
10416 hardcode_libdir_flag_spec_CXX='-L$libdir'
10417 ;;
10418 *)
10419 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10420 hardcode_libdir_separator_CXX=:
10421 export_dynamic_flag_spec_CXX='${wl}-E'
10422 ;;
10423 esac
10424 fi
10425 case $host_cpu in
10426 hppa*64*)
10427 hardcode_direct_CXX=no
10428 hardcode_shlibpath_var_CXX=no
10429 ;;
10430 ia64*)
10431 hardcode_direct_CXX=no
10432 hardcode_shlibpath_var_CXX=no
10433 hardcode_minus_L_CXX=yes # Not in the search PATH,
10434 # but as the default
10435 # location of the library.
10436 ;;
10437 *)
10438 hardcode_direct_CXX=yes
10439 hardcode_minus_L_CXX=yes # Not in the search PATH,
10440 # but as the default
10441 # location of the library.
10442 ;;
10443 esac
10444
10445 case $cc_basename in
10446 CC*)
10447 # FIXME: insert proper C++ library support
10448 ld_shlibs_CXX=no
10449 ;;
10450 aCC*)
10451 case $host_cpu in
10452 hppa*64*|ia64*)
10453 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10454 ;;
10455 *)
10456 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10457 ;;
10458 esac
10459 # Commands to make compiler produce verbose output that lists
10460 # what "hidden" libraries, object files and flags are used when
10461 # linking a shared library.
10462 #
10463 # There doesn't appear to be a way to prevent this compiler from
10464 # explicitly linking system object files so we need to strip them
10465 # from the output so that they don't get included in the library
10466 # dependencies.
10467 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'
10468 ;;
10469 *)
10470 if test "$GXX" = yes; then
10471 if test $with_gnu_ld = no; then
10472 case $host_cpu in
10473 ia64*|hppa*64*)
10474 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10475 ;;
10476 *)
10477 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'
10478 ;;
10479 esac
10480 fi
10481 else
10482 # FIXME: insert proper C++ library support
10483 ld_shlibs_CXX=no
10484 fi
10485 ;;
10486 esac
10487 ;;
10488 irix5* | irix6*)
10489 case $cc_basename in
10490 CC*)
10491 # SGI C++
10492 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'
10493
10494 # Archives containing C++ object files must be created using
10495 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10496 # necessary to make sure instantiated templates are included
10497 # in the archive.
10498 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10499 ;;
10500 *)
10501 if test "$GXX" = yes; then
10502 if test "$with_gnu_ld" = no; then
10503 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'
10504 else
10505 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'
10506 fi
10507 fi
10508 link_all_deplibs_CXX=yes
10509 ;;
10510 esac
10511 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10512 hardcode_libdir_separator_CXX=:
10513 ;;
10514 linux*)
10515 case $cc_basename in
10516 KCC*)
10517 # Kuck and Associates, Inc. (KAI) C++ Compiler
10518
10519 # KCC will only create a shared library if the output file
10520 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10521 # to its proper name (with version) after linking.
10522 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'
10523 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'
10524 # Commands to make compiler produce verbose output that lists
10525 # what "hidden" libraries, object files and flags are used when
10526 # linking a shared library.
10527 #
10528 # There doesn't appear to be a way to prevent this compiler from
10529 # explicitly linking system object files so we need to strip them
10530 # from the output so that they don't get included in the library
10531 # dependencies.
10532 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'
10533
10534 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10535 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10536
10537 # Archives containing C++ object files must be created using
10538 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10539 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10540 ;;
10541 icpc*)
10542 # Intel C++
10543 with_gnu_ld=yes
10544 # version 8.0 and above of icpc choke on multiply defined symbols
10545 # if we add $predep_objects and $postdep_objects, however 7.1 and
10546 # earlier do not add the objects themselves.
10547 case `$CC -V 2>&1` in
10548 *"Version 7."*)
10549 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10550 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'
10551 ;;
10552 *) # Version 8.0 or newer
10553 tmp_idyn=
10554 case $host_cpu in
10555 ia64*) tmp_idyn=' -i_dynamic';;
10556 esac
10557 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10558 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'
10559 ;;
10560 esac
10561 archive_cmds_need_lc_CXX=no
10562 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10563 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10564 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10565 ;;
10566 pgCC*)
10567 # Portland Group C++ compiler
10568 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10569 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'
10570
10571 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10572 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10573 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'
10574 ;;
10575 cxx*)
10576 # Compaq C++
10577 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10578 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'
10579
10580 runpath_var=LD_RUN_PATH
10581 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10582 hardcode_libdir_separator_CXX=:
10583
10584 # Commands to make compiler produce verbose output that lists
10585 # what "hidden" libraries, object files and flags are used when
10586 # linking a shared library.
10587 #
10588 # There doesn't appear to be a way to prevent this compiler from
10589 # explicitly linking system object files so we need to strip them
10590 # from the output so that they don't get included in the library
10591 # dependencies.
10592 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'
10593 ;;
10594 esac
10595 ;;
10596 lynxos*)
10597 # FIXME: insert proper C++ library support
10598 ld_shlibs_CXX=no
10599 ;;
10600 m88k*)
10601 # FIXME: insert proper C++ library support
10602 ld_shlibs_CXX=no
10603 ;;
10604 mvs*)
10605 case $cc_basename in
10606 cxx*)
10607 # FIXME: insert proper C++ library support
10608 ld_shlibs_CXX=no
10609 ;;
10610 *)
10611 # FIXME: insert proper C++ library support
10612 ld_shlibs_CXX=no
10613 ;;
10614 esac
10615 ;;
10616 netbsd*)
10617 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10618 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10619 wlarc=
10620 hardcode_libdir_flag_spec_CXX='-R$libdir'
10621 hardcode_direct_CXX=yes
10622 hardcode_shlibpath_var_CXX=no
10623 fi
10624 # Workaround some broken pre-1.5 toolchains
10625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10626 ;;
10627 openbsd2*)
10628 # C++ shared libraries are fairly broken
10629 ld_shlibs_CXX=no
10630 ;;
10631 openbsd*)
10632 hardcode_direct_CXX=yes
10633 hardcode_shlibpath_var_CXX=no
10634 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10635 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10637 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10638 export_dynamic_flag_spec_CXX='${wl}-E'
10639 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10640 fi
10641 output_verbose_link_cmd='echo'
10642 ;;
10643 osf3*)
10644 case $cc_basename in
10645 KCC*)
10646 # Kuck and Associates, Inc. (KAI) C++ Compiler
10647
10648 # KCC will only create a shared library if the output file
10649 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10650 # to its proper name (with version) after linking.
10651 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'
10652
10653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10654 hardcode_libdir_separator_CXX=:
10655
10656 # Archives containing C++ object files must be created using
10657 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10658 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10659
10660 ;;
10661 RCC*)
10662 # Rational C++ 2.4.1
10663 # FIXME: insert proper C++ library support
10664 ld_shlibs_CXX=no
10665 ;;
10666 cxx*)
10667 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10668 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'
10669
10670 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10671 hardcode_libdir_separator_CXX=:
10672
10673 # Commands to make compiler produce verbose output that lists
10674 # what "hidden" libraries, object files and flags are used when
10675 # linking a shared library.
10676 #
10677 # There doesn't appear to be a way to prevent this compiler from
10678 # explicitly linking system object files so we need to strip them
10679 # from the output so that they don't get included in the library
10680 # dependencies.
10681 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'
10682 ;;
10683 *)
10684 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10685 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10686 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'
10687
10688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10689 hardcode_libdir_separator_CXX=:
10690
10691 # Commands to make compiler produce verbose output that lists
10692 # what "hidden" libraries, object files and flags are used when
10693 # linking a shared library.
10694 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10695
10696 else
10697 # FIXME: insert proper C++ library support
10698 ld_shlibs_CXX=no
10699 fi
10700 ;;
10701 esac
10702 ;;
10703 osf4* | osf5*)
10704 case $cc_basename in
10705 KCC*)
10706 # Kuck and Associates, Inc. (KAI) C++ Compiler
10707
10708 # KCC will only create a shared library if the output file
10709 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10710 # to its proper name (with version) after linking.
10711 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'
10712
10713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10714 hardcode_libdir_separator_CXX=:
10715
10716 # Archives containing C++ object files must be created using
10717 # the KAI C++ compiler.
10718 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10719 ;;
10720 RCC*)
10721 # Rational C++ 2.4.1
10722 # FIXME: insert proper C++ library support
10723 ld_shlibs_CXX=no
10724 ;;
10725 cxx*)
10726 allow_undefined_flag_CXX=' -expect_unresolved \*'
10727 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'
10728 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10729 echo "-hidden">> $lib.exp~
10730 $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~
10731 $rm $lib.exp'
10732
10733 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10734 hardcode_libdir_separator_CXX=:
10735
10736 # Commands to make compiler produce verbose output that lists
10737 # what "hidden" libraries, object files and flags are used when
10738 # linking a shared library.
10739 #
10740 # There doesn't appear to be a way to prevent this compiler from
10741 # explicitly linking system object files so we need to strip them
10742 # from the output so that they don't get included in the library
10743 # dependencies.
10744 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'
10745 ;;
10746 *)
10747 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10748 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10749 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'
10750
10751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10752 hardcode_libdir_separator_CXX=:
10753
10754 # Commands to make compiler produce verbose output that lists
10755 # what "hidden" libraries, object files and flags are used when
10756 # linking a shared library.
10757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10758
10759 else
10760 # FIXME: insert proper C++ library support
10761 ld_shlibs_CXX=no
10762 fi
10763 ;;
10764 esac
10765 ;;
10766 psos*)
10767 # FIXME: insert proper C++ library support
10768 ld_shlibs_CXX=no
10769 ;;
10770 sco*)
10771 archive_cmds_need_lc_CXX=no
10772 case $cc_basename in
10773 CC*)
10774 # FIXME: insert proper C++ library support
10775 ld_shlibs_CXX=no
10776 ;;
10777 *)
10778 # FIXME: insert proper C++ library support
10779 ld_shlibs_CXX=no
10780 ;;
10781 esac
10782 ;;
10783 sunos4*)
10784 case $cc_basename in
10785 CC*)
10786 # Sun C++ 4.x
10787 # FIXME: insert proper C++ library support
10788 ld_shlibs_CXX=no
10789 ;;
10790 lcc*)
10791 # Lucid
10792 # FIXME: insert proper C++ library support
10793 ld_shlibs_CXX=no
10794 ;;
10795 *)
10796 # FIXME: insert proper C++ library support
10797 ld_shlibs_CXX=no
10798 ;;
10799 esac
10800 ;;
10801 solaris*)
10802 case $cc_basename in
10803 CC*)
10804 # Sun C++ 4.2, 5.x and Centerline C++
10805 archive_cmds_need_lc_CXX=yes
10806 no_undefined_flag_CXX=' -zdefs'
10807 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10808 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10809 $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'
10810
10811 hardcode_libdir_flag_spec_CXX='-R$libdir'
10812 hardcode_shlibpath_var_CXX=no
10813 case $host_os in
10814 solaris2.[0-5] | solaris2.[0-5].*) ;;
10815 *)
10816 # The C++ compiler is used as linker so we must use $wl
10817 # flag to pass the commands to the underlying system
10818 # linker. We must also pass each convience library through
10819 # to the system linker between allextract/defaultextract.
10820 # The C++ compiler will combine linker options so we
10821 # cannot just pass the convience library names through
10822 # without $wl.
10823 # Supported since Solaris 2.6 (maybe 2.5.1?)
10824 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'
10825 ;;
10826 esac
10827 link_all_deplibs_CXX=yes
10828
10829 output_verbose_link_cmd='echo'
10830
10831 # Archives containing C++ object files must be created using
10832 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10833 # necessary to make sure instantiated templates are included
10834 # in the archive.
10835 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10836 ;;
10837 gcx*)
10838 # Green Hills C++ Compiler
10839 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10840
10841 # The C++ compiler must be used to create the archive.
10842 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10843 ;;
10844 *)
10845 # GNU C++ compiler with Solaris linker
10846 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10847 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10848 if $CC --version | grep -v '^2\.7' > /dev/null; then
10849 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10850 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10851 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10852
10853 # Commands to make compiler produce verbose output that lists
10854 # what "hidden" libraries, object files and flags are used when
10855 # linking a shared library.
10856 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10857 else
10858 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10859 # platform.
10860 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10861 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10862 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10863
10864 # Commands to make compiler produce verbose output that lists
10865 # what "hidden" libraries, object files and flags are used when
10866 # linking a shared library.
10867 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10868 fi
10869
10870 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10871 fi
10872 ;;
10873 esac
10874 ;;
10875 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10876 archive_cmds_need_lc_CXX=no
10877 ;;
10878 tandem*)
10879 case $cc_basename in
10880 NCC*)
10881 # NonStop-UX NCC 3.20
10882 # FIXME: insert proper C++ library support
10883 ld_shlibs_CXX=no
10884 ;;
10885 *)
10886 # FIXME: insert proper C++ library support
10887 ld_shlibs_CXX=no
10888 ;;
10889 esac
10890 ;;
10891 vxworks*)
10892 # FIXME: insert proper C++ library support
10893 ld_shlibs_CXX=no
10894 ;;
10895 *)
10896 # FIXME: insert proper C++ library support
10897 ld_shlibs_CXX=no
10898 ;;
10899 esac
10900 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10901 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10902 test "$ld_shlibs_CXX" = no && can_build_shared=no
10903
10904 GCC_CXX="$GXX"
10905 LD_CXX="$LD"
10906
10907
10908 cat > conftest.$ac_ext <<EOF
10909 class Foo
10910 {
10911 public:
10912 Foo (void) { a = 0; }
10913 private:
10914 int a;
10915 };
10916 EOF
10917
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919 (eval $ac_compile) 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; then
10923 # Parse the compiler output and extract the necessary
10924 # objects, libraries and library flags.
10925
10926 # Sentinel used to keep track of whether or not we are before
10927 # the conftest object file.
10928 pre_test_object_deps_done=no
10929
10930 # The `*' in the case matches for architectures that use `case' in
10931 # $output_verbose_cmd can trigger glob expansion during the loop
10932 # eval without this substitution.
10933 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10934
10935 for p in `eval $output_verbose_link_cmd`; do
10936 case $p in
10937
10938 -L* | -R* | -l*)
10939 # Some compilers place space between "-{L,R}" and the path.
10940 # Remove the space.
10941 if test $p = "-L" \
10942 || test $p = "-R"; then
10943 prev=$p
10944 continue
10945 else
10946 prev=
10947 fi
10948
10949 if test "$pre_test_object_deps_done" = no; then
10950 case $p in
10951 -L* | -R*)
10952 # Internal compiler library paths should come after those
10953 # provided the user. The postdeps already come after the
10954 # user supplied libs so there is no need to process them.
10955 if test -z "$compiler_lib_search_path_CXX"; then
10956 compiler_lib_search_path_CXX="${prev}${p}"
10957 else
10958 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10959 fi
10960 ;;
10961 # The "-l" case would never come before the object being
10962 # linked, so don't bother handling this case.
10963 esac
10964 else
10965 if test -z "$postdeps_CXX"; then
10966 postdeps_CXX="${prev}${p}"
10967 else
10968 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10969 fi
10970 fi
10971 ;;
10972
10973 *.$objext)
10974 # This assumes that the test object file only shows up
10975 # once in the compiler output.
10976 if test "$p" = "conftest.$objext"; then
10977 pre_test_object_deps_done=yes
10978 continue
10979 fi
10980
10981 if test "$pre_test_object_deps_done" = no; then
10982 if test -z "$predep_objects_CXX"; then
10983 predep_objects_CXX="$p"
10984 else
10985 predep_objects_CXX="$predep_objects_CXX $p"
10986 fi
10987 else
10988 if test -z "$postdep_objects_CXX"; then
10989 postdep_objects_CXX="$p"
10990 else
10991 postdep_objects_CXX="$postdep_objects_CXX $p"
10992 fi
10993 fi
10994 ;;
10995
10996 *) ;; # Ignore the rest.
10997
10998 esac
10999 done
11000
11001 # Clean up.
11002 rm -f a.out a.exe
11003 else
11004 echo "libtool.m4: error: problem compiling CXX test program"
11005 fi
11006
11007 $rm -f confest.$objext
11008
11009 # PORTME: override above test on systems where it is broken
11010 case $host_os in
11011 solaris*)
11012 case $cc_basename in
11013 CC*)
11014 # Adding this requires a known-good setup of shared libraries for
11015 # Sun compiler versions before 5.6, else PIC objects from an old
11016 # archive will be linked into the output, leading to subtle bugs.
11017 postdeps_CXX='-lCstd -lCrun'
11018 ;;
11019 esac
11020 esac
11021
11022
11023 case " $postdeps_CXX " in
11024 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11025 esac
11026
11027 lt_prog_compiler_wl_CXX=
11028 lt_prog_compiler_pic_CXX=
11029 lt_prog_compiler_static_CXX=
11030
11031 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11032 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11033
11034 # C++ specific cases for pic, static, wl, etc.
11035 if test "$GXX" = yes; then
11036 lt_prog_compiler_wl_CXX='-Wl,'
11037 lt_prog_compiler_static_CXX='-static'
11038
11039 case $host_os in
11040 aix*)
11041 # All AIX code is PIC.
11042 if test "$host_cpu" = ia64; then
11043 # AIX 5 now supports IA64 processor
11044 lt_prog_compiler_static_CXX='-Bstatic'
11045 fi
11046 ;;
11047 amigaos*)
11048 # FIXME: we need at least 68020 code to build shared libraries, but
11049 # adding the `-m68020' flag to GCC prevents building anything better,
11050 # like `-m68040'.
11051 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11052 ;;
11053 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11054 # PIC is the default for these OSes.
11055 ;;
11056 mingw* | os2* | pw32*)
11057 # This hack is so that the source file can tell whether it is being
11058 # built for inclusion in a dll (and should export symbols for example).
11059 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11060 ;;
11061 darwin* | rhapsody*)
11062 # PIC is the default on this platform
11063 # Common symbols not allowed in MH_DYLIB files
11064 lt_prog_compiler_pic_CXX='-fno-common'
11065 ;;
11066 *djgpp*)
11067 # DJGPP does not support shared libraries at all
11068 lt_prog_compiler_pic_CXX=
11069 ;;
11070 sysv4*MP*)
11071 if test -d /usr/nec; then
11072 lt_prog_compiler_pic_CXX=-Kconform_pic
11073 fi
11074 ;;
11075 hpux*)
11076 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11077 # not for PA HP-UX.
11078 case $host_cpu in
11079 hppa*64*|ia64*)
11080 ;;
11081 *)
11082 lt_prog_compiler_pic_CXX='-fPIC'
11083 ;;
11084 esac
11085 ;;
11086 *)
11087 lt_prog_compiler_pic_CXX='-fPIC'
11088 ;;
11089 esac
11090 else
11091 case $host_os in
11092 aix4* | aix5*)
11093 # All AIX code is PIC.
11094 if test "$host_cpu" = ia64; then
11095 # AIX 5 now supports IA64 processor
11096 lt_prog_compiler_static_CXX='-Bstatic'
11097 else
11098 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11099 fi
11100 ;;
11101 chorus*)
11102 case $cc_basename in
11103 cxch68*)
11104 # Green Hills C++ Compiler
11105 # _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"
11106 ;;
11107 esac
11108 ;;
11109 darwin*)
11110 # PIC is the default on this platform
11111 # Common symbols not allowed in MH_DYLIB files
11112 case $cc_basename in
11113 xlc*)
11114 lt_prog_compiler_pic_CXX='-qnocommon'
11115 lt_prog_compiler_wl_CXX='-Wl,'
11116 ;;
11117 esac
11118 ;;
11119 dgux*)
11120 case $cc_basename in
11121 ec++*)
11122 lt_prog_compiler_pic_CXX='-KPIC'
11123 ;;
11124 ghcx*)
11125 # Green Hills C++ Compiler
11126 lt_prog_compiler_pic_CXX='-pic'
11127 ;;
11128 *)
11129 ;;
11130 esac
11131 ;;
11132 freebsd* | kfreebsd*-gnu | dragonfly*)
11133 # FreeBSD uses GNU C++
11134 ;;
11135 hpux9* | hpux10* | hpux11*)
11136 case $cc_basename in
11137 CC*)
11138 lt_prog_compiler_wl_CXX='-Wl,'
11139 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11140 if test "$host_cpu" != ia64; then
11141 lt_prog_compiler_pic_CXX='+Z'
11142 fi
11143 ;;
11144 aCC*)
11145 lt_prog_compiler_wl_CXX='-Wl,'
11146 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11147 case $host_cpu in
11148 hppa*64*|ia64*)
11149 # +Z the default
11150 ;;
11151 *)
11152 lt_prog_compiler_pic_CXX='+Z'
11153 ;;
11154 esac
11155 ;;
11156 *)
11157 ;;
11158 esac
11159 ;;
11160 irix5* | irix6* | nonstopux*)
11161 case $cc_basename in
11162 CC*)
11163 lt_prog_compiler_wl_CXX='-Wl,'
11164 lt_prog_compiler_static_CXX='-non_shared'
11165 # CC pic flag -KPIC is the default.
11166 ;;
11167 *)
11168 ;;
11169 esac
11170 ;;
11171 linux*)
11172 case $cc_basename in
11173 KCC*)
11174 # KAI C++ Compiler
11175 lt_prog_compiler_wl_CXX='--backend -Wl,'
11176 lt_prog_compiler_pic_CXX='-fPIC'
11177 ;;
11178 icpc* | ecpc*)
11179 # Intel C++
11180 lt_prog_compiler_wl_CXX='-Wl,'
11181 lt_prog_compiler_pic_CXX='-KPIC'
11182 lt_prog_compiler_static_CXX='-static'
11183 ;;
11184 pgCC*)
11185 # Portland Group C++ compiler.
11186 lt_prog_compiler_wl_CXX='-Wl,'
11187 lt_prog_compiler_pic_CXX='-fpic'
11188 lt_prog_compiler_static_CXX='-Bstatic'
11189 ;;
11190 cxx*)
11191 # Compaq C++
11192 # Make sure the PIC flag is empty. It appears that all Alpha
11193 # Linux and Compaq Tru64 Unix objects are PIC.
11194 lt_prog_compiler_pic_CXX=
11195 lt_prog_compiler_static_CXX='-non_shared'
11196 ;;
11197 *)
11198 ;;
11199 esac
11200 ;;
11201 lynxos*)
11202 ;;
11203 m88k*)
11204 ;;
11205 mvs*)
11206 case $cc_basename in
11207 cxx*)
11208 lt_prog_compiler_pic_CXX='-W c,exportall'
11209 ;;
11210 *)
11211 ;;
11212 esac
11213 ;;
11214 netbsd*)
11215 ;;
11216 osf3* | osf4* | osf5*)
11217 case $cc_basename in
11218 KCC*)
11219 lt_prog_compiler_wl_CXX='--backend -Wl,'
11220 ;;
11221 RCC*)
11222 # Rational C++ 2.4.1
11223 lt_prog_compiler_pic_CXX='-pic'
11224 ;;
11225 cxx*)
11226 # Digital/Compaq C++
11227 lt_prog_compiler_wl_CXX='-Wl,'
11228 # Make sure the PIC flag is empty. It appears that all Alpha
11229 # Linux and Compaq Tru64 Unix objects are PIC.
11230 lt_prog_compiler_pic_CXX=
11231 lt_prog_compiler_static_CXX='-non_shared'
11232 ;;
11233 *)
11234 ;;
11235 esac
11236 ;;
11237 psos*)
11238 ;;
11239 sco*)
11240 case $cc_basename in
11241 CC*)
11242 lt_prog_compiler_pic_CXX='-fPIC'
11243 ;;
11244 *)
11245 ;;
11246 esac
11247 ;;
11248 solaris*)
11249 case $cc_basename in
11250 CC*)
11251 # Sun C++ 4.2, 5.x and Centerline C++
11252 lt_prog_compiler_pic_CXX='-KPIC'
11253 lt_prog_compiler_static_CXX='-Bstatic'
11254 lt_prog_compiler_wl_CXX='-Qoption ld '
11255 ;;
11256 gcx*)
11257 # Green Hills C++ Compiler
11258 lt_prog_compiler_pic_CXX='-PIC'
11259 ;;
11260 *)
11261 ;;
11262 esac
11263 ;;
11264 sunos4*)
11265 case $cc_basename in
11266 CC*)
11267 # Sun C++ 4.x
11268 lt_prog_compiler_pic_CXX='-pic'
11269 lt_prog_compiler_static_CXX='-Bstatic'
11270 ;;
11271 lcc*)
11272 # Lucid
11273 lt_prog_compiler_pic_CXX='-pic'
11274 ;;
11275 *)
11276 ;;
11277 esac
11278 ;;
11279 tandem*)
11280 case $cc_basename in
11281 NCC*)
11282 # NonStop-UX NCC 3.20
11283 lt_prog_compiler_pic_CXX='-KPIC'
11284 ;;
11285 *)
11286 ;;
11287 esac
11288 ;;
11289 unixware*)
11290 ;;
11291 vxworks*)
11292 ;;
11293 *)
11294 lt_prog_compiler_can_build_shared_CXX=no
11295 ;;
11296 esac
11297 fi
11298
11299 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11300 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11301
11302 #
11303 # Check to make sure the PIC flag actually works.
11304 #
11305 if test -n "$lt_prog_compiler_pic_CXX"; then
11306
11307 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11308 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11309 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 else
11312 lt_prog_compiler_pic_works_CXX=no
11313 ac_outfile=conftest.$ac_objext
11314 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11315 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11316 # Insert the option either (1) after the last *FLAGS variable, or
11317 # (2) before a word containing "conftest.", or (3) at the end.
11318 # Note that $ac_compile itself does not contain backslashes and begins
11319 # with a dollar sign (not a hyphen), so the echo should work correctly.
11320 # The option is referenced via a variable to avoid confusing sed.
11321 lt_compile=`echo "$ac_compile" | $SED \
11322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11324 -e 's:$: $lt_compiler_flag:'`
11325 (eval echo "\"\$as_me:11325: $lt_compile\"" >&5)
11326 (eval "$lt_compile" 2>conftest.err)
11327 ac_status=$?
11328 cat conftest.err >&5
11329 echo "$as_me:11329: \$? = $ac_status" >&5
11330 if (exit $ac_status) && test -s "$ac_outfile"; then
11331 # The compiler can only warn and ignore the option if not recognized
11332 # So say no if there are warnings other than the usual output.
11333 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11334 $SED '/^$/d' conftest.err >conftest.er2
11335 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11336 lt_prog_compiler_pic_works_CXX=yes
11337 fi
11338 fi
11339 $rm conftest*
11340
11341 fi
11342 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11343 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11344
11345 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11346 case $lt_prog_compiler_pic_CXX in
11347 "" | " "*) ;;
11348 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11349 esac
11350 else
11351 lt_prog_compiler_pic_CXX=
11352 lt_prog_compiler_can_build_shared_CXX=no
11353 fi
11354
11355 fi
11356 case $host_os in
11357 # For platforms which do not support PIC, -DPIC is meaningless:
11358 *djgpp*)
11359 lt_prog_compiler_pic_CXX=
11360 ;;
11361 *)
11362 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11363 ;;
11364 esac
11365
11366 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11367 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11368 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 else
11371 lt_cv_prog_compiler_c_o_CXX=no
11372 $rm -r conftest 2>/dev/null
11373 mkdir conftest
11374 cd conftest
11375 mkdir out
11376 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11377
11378 lt_compiler_flag="-o out/conftest2.$ac_objext"
11379 # Insert the option either (1) after the last *FLAGS variable, or
11380 # (2) before a word containing "conftest.", or (3) at the end.
11381 # Note that $ac_compile itself does not contain backslashes and begins
11382 # with a dollar sign (not a hyphen), so the echo should work correctly.
11383 lt_compile=`echo "$ac_compile" | $SED \
11384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11386 -e 's:$: $lt_compiler_flag:'`
11387 (eval echo "\"\$as_me:11387: $lt_compile\"" >&5)
11388 (eval "$lt_compile" 2>out/conftest.err)
11389 ac_status=$?
11390 cat out/conftest.err >&5
11391 echo "$as_me:11391: \$? = $ac_status" >&5
11392 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11393 then
11394 # The compiler can only warn and ignore the option if not recognized
11395 # So say no if there are warnings
11396 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11397 $SED '/^$/d' out/conftest.err >out/conftest.er2
11398 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11399 lt_cv_prog_compiler_c_o_CXX=yes
11400 fi
11401 fi
11402 chmod u+w . 2>&5
11403 $rm conftest*
11404 # SGI C++ compiler will create directory out/ii_files/ for
11405 # template instantiation
11406 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11407 $rm out/* && rmdir out
11408 cd ..
11409 rmdir conftest
11410 $rm conftest*
11411
11412 fi
11413 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11414 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11415
11416
11417 hard_links="nottested"
11418 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11419 # do not overwrite the value of need_locks provided by the user
11420 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11421 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11422 hard_links=yes
11423 $rm conftest*
11424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11425 touch conftest.a
11426 ln conftest.a conftest.b 2>&5 || hard_links=no
11427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11428 echo "$as_me:$LINENO: result: $hard_links" >&5
11429 echo "${ECHO_T}$hard_links" >&6
11430 if test "$hard_links" = no; then
11431 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11432 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11433 need_locks=warn
11434 fi
11435 else
11436 need_locks=no
11437 fi
11438
11439 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11441
11442 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11443 case $host_os in
11444 aix4* | aix5*)
11445 # If we're using GNU nm, then we don't want the "-C" option.
11446 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11447 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11448 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'
11449 else
11450 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'
11451 fi
11452 ;;
11453 pw32*)
11454 export_symbols_cmds_CXX="$ltdll_cmds"
11455 ;;
11456 cygwin* | mingw*)
11457 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'
11458 ;;
11459 *)
11460 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11461 ;;
11462 esac
11463
11464 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11465 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11466 test "$ld_shlibs_CXX" = no && can_build_shared=no
11467
11468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11469 if test "$GCC" = yes; then
11470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11471 fi
11472
11473 #
11474 # Do we need to explicitly link libc?
11475 #
11476 case "x$archive_cmds_need_lc_CXX" in
11477 x|xyes)
11478 # Assume -lc should be added
11479 archive_cmds_need_lc_CXX=yes
11480
11481 if test "$enable_shared" = yes && test "$GCC" = yes; then
11482 case $archive_cmds_CXX in
11483 *'~'*)
11484 # FIXME: we may have to deal with multi-command sequences.
11485 ;;
11486 '$CC '*)
11487 # Test whether the compiler implicitly links with -lc since on some
11488 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11489 # to ld, don't add -lc before -lgcc.
11490 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11491 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11492 $rm conftest*
11493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11494
11495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11496 (eval $ac_compile) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } 2>conftest.err; then
11500 soname=conftest
11501 lib=conftest
11502 libobjs=conftest.$ac_objext
11503 deplibs=
11504 wl=$lt_prog_compiler_wl_CXX
11505 compiler_flags=-v
11506 linker_flags=-v
11507 verstring=
11508 output_objdir=.
11509 libname=conftest
11510 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11511 allow_undefined_flag_CXX=
11512 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11513 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }
11517 then
11518 archive_cmds_need_lc_CXX=no
11519 else
11520 archive_cmds_need_lc_CXX=yes
11521 fi
11522 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11523 else
11524 cat conftest.err 1>&5
11525 fi
11526 $rm conftest*
11527 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11528 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11529 ;;
11530 esac
11531 fi
11532 ;;
11533 esac
11534
11535 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11536 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11537 library_names_spec=
11538 libname_spec='lib$name'
11539 soname_spec=
11540 shrext_cmds=".so"
11541 postinstall_cmds=
11542 postuninstall_cmds=
11543 finish_cmds=
11544 finish_eval=
11545 shlibpath_var=
11546 shlibpath_overrides_runpath=unknown
11547 version_type=none
11548 dynamic_linker="$host_os ld.so"
11549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11550 if test "$GCC" = yes; then
11551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11552 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11553 # if the path contains ";" then we assume it to be the separator
11554 # otherwise default to the standard path separator (i.e. ":") - it is
11555 # assumed that no part of a normal pathname contains ";" but that should
11556 # okay in the real world where ";" in dirpaths is itself problematic.
11557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11558 else
11559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11560 fi
11561 else
11562 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11563 fi
11564 need_lib_prefix=unknown
11565 hardcode_into_libs=no
11566
11567 # when you set need_version to no, make sure it does not cause -set_version
11568 # flags to be left without arguments
11569 need_version=unknown
11570
11571 case $host_os in
11572 aix3*)
11573 version_type=linux
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11575 shlibpath_var=LIBPATH
11576
11577 # AIX 3 has no versioning support, so we append a major version to the name.
11578 soname_spec='${libname}${release}${shared_ext}$major'
11579 ;;
11580
11581 aix4* | aix5*)
11582 version_type=linux
11583 need_lib_prefix=no
11584 need_version=no
11585 hardcode_into_libs=yes
11586 if test "$host_cpu" = ia64; then
11587 # AIX 5 supports IA64
11588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11589 shlibpath_var=LD_LIBRARY_PATH
11590 else
11591 # With GCC up to 2.95.x, collect2 would create an import file
11592 # for dependence libraries. The import file would start with
11593 # the line `#! .'. This would cause the generated library to
11594 # depend on `.', always an invalid library. This was fixed in
11595 # development snapshots of GCC prior to 3.0.
11596 case $host_os in
11597 aix4 | aix4.[01] | aix4.[01].*)
11598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11599 echo ' yes '
11600 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11601 :
11602 else
11603 can_build_shared=no
11604 fi
11605 ;;
11606 esac
11607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11608 # soname into executable. Probably we can add versioning support to
11609 # collect2, so additional links can be useful in future.
11610 if test "$aix_use_runtimelinking" = yes; then
11611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11612 # instead of lib<name>.a to let people know that these are not
11613 # typical AIX shared libraries.
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615 else
11616 # We preserve .a as extension for shared libraries through AIX4.2
11617 # and later when we are not doing run time linking.
11618 library_names_spec='${libname}${release}.a $libname.a'
11619 soname_spec='${libname}${release}${shared_ext}$major'
11620 fi
11621 shlibpath_var=LIBPATH
11622 fi
11623 ;;
11624
11625 amigaos*)
11626 library_names_spec='$libname.ixlibrary $libname.a'
11627 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11628 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'
11629 ;;
11630
11631 beos*)
11632 library_names_spec='${libname}${shared_ext}'
11633 dynamic_linker="$host_os ld.so"
11634 shlibpath_var=LIBRARY_PATH
11635 ;;
11636
11637 bsdi[45]*)
11638 version_type=linux
11639 need_version=no
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11646 # the default ld.so.conf also contains /usr/contrib/lib and
11647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11648 # libtool to hard-code these into programs
11649 ;;
11650
11651 cygwin* | mingw* | pw32*)
11652 version_type=windows
11653 shrext_cmds=".dll"
11654 need_version=no
11655 need_lib_prefix=no
11656
11657 case $GCC,$host_os in
11658 yes,cygwin* | yes,mingw* | yes,pw32*)
11659 library_names_spec='$libname.dll.a'
11660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11661 postinstall_cmds='base_file=`basename \${file}`~
11662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11663 dldir=$destdir/`dirname \$dlpath`~
11664 test -d \$dldir || mkdir -p \$dldir~
11665 $install_prog $dir/$dlname \$dldir/$dlname~
11666 chmod a+x \$dldir/$dlname'
11667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11668 dlpath=$dir/\$dldll~
11669 $rm \$dlpath'
11670 shlibpath_overrides_runpath=yes
11671
11672 case $host_os in
11673 cygwin*)
11674 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11675 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11676 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11677 ;;
11678 mingw*)
11679 # MinGW DLLs use traditional 'lib' prefix
11680 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11681 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11682 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11683 # It is most probably a Windows format PATH printed by
11684 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11685 # path with ; separators, and with drive letters. We can handle the
11686 # drive letters (cygwin fileutils understands them), so leave them,
11687 # especially as we might pass files found there to a mingw objdump,
11688 # which wouldn't understand a cygwinified path. Ahh.
11689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11690 else
11691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11692 fi
11693 ;;
11694 pw32*)
11695 # pw32 DLLs use 'pw' prefix rather than 'lib'
11696 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11697 ;;
11698 esac
11699 ;;
11700
11701 *)
11702 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11703 ;;
11704 esac
11705 dynamic_linker='Win32 ld.exe'
11706 # FIXME: first we should search . and the directory the executable is in
11707 shlibpath_var=PATH
11708 ;;
11709
11710 darwin* | rhapsody*)
11711 dynamic_linker="$host_os dyld"
11712 version_type=darwin
11713 need_lib_prefix=no
11714 need_version=no
11715 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11716 soname_spec='${libname}${release}${major}$shared_ext'
11717 shlibpath_overrides_runpath=yes
11718 shlibpath_var=DYLD_LIBRARY_PATH
11719 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11720 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11721 if test "$GCC" = yes; then
11722 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"`
11723 else
11724 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11725 fi
11726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11727 ;;
11728
11729 dgux*)
11730 version_type=linux
11731 need_lib_prefix=no
11732 need_version=no
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11734 soname_spec='${libname}${release}${shared_ext}$major'
11735 shlibpath_var=LD_LIBRARY_PATH
11736 ;;
11737
11738 freebsd1*)
11739 dynamic_linker=no
11740 ;;
11741
11742 kfreebsd*-gnu)
11743 version_type=linux
11744 need_lib_prefix=no
11745 need_version=no
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11747 soname_spec='${libname}${release}${shared_ext}$major'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 shlibpath_overrides_runpath=no
11750 hardcode_into_libs=yes
11751 dynamic_linker='GNU ld.so'
11752 ;;
11753
11754 freebsd* | dragonfly*)
11755 # DragonFly does not have aout. When/if they implement a new
11756 # versioning mechanism, adjust this.
11757 if test -x /usr/bin/objformat; then
11758 objformat=`/usr/bin/objformat`
11759 else
11760 case $host_os in
11761 freebsd[123]*) objformat=aout ;;
11762 *) objformat=elf ;;
11763 esac
11764 fi
11765 version_type=freebsd-$objformat
11766 case $version_type in
11767 freebsd-elf*)
11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11769 need_version=no
11770 need_lib_prefix=no
11771 ;;
11772 freebsd-*)
11773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11774 need_version=yes
11775 ;;
11776 esac
11777 shlibpath_var=LD_LIBRARY_PATH
11778 case $host_os in
11779 freebsd2*)
11780 shlibpath_overrides_runpath=yes
11781 ;;
11782 freebsd3.[01]* | freebsdelf3.[01]*)
11783 shlibpath_overrides_runpath=yes
11784 hardcode_into_libs=yes
11785 ;;
11786 *) # from 3.2 on
11787 shlibpath_overrides_runpath=no
11788 hardcode_into_libs=yes
11789 ;;
11790 esac
11791 ;;
11792
11793 gnu*)
11794 version_type=linux
11795 need_lib_prefix=no
11796 need_version=no
11797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11798 soname_spec='${libname}${release}${shared_ext}$major'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 hardcode_into_libs=yes
11801 ;;
11802
11803 hpux9* | hpux10* | hpux11*)
11804 # Give a soname corresponding to the major version so that dld.sl refuses to
11805 # link against other versions.
11806 version_type=sunos
11807 need_lib_prefix=no
11808 need_version=no
11809 case $host_cpu in
11810 ia64*)
11811 shrext_cmds='.so'
11812 hardcode_into_libs=yes
11813 dynamic_linker="$host_os dld.so"
11814 shlibpath_var=LD_LIBRARY_PATH
11815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 if test "X$HPUX_IA64_MODE" = X32; then
11819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11820 else
11821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11822 fi
11823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11824 ;;
11825 hppa*64*)
11826 shrext_cmds='.sl'
11827 hardcode_into_libs=yes
11828 dynamic_linker="$host_os dld.sl"
11829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832 soname_spec='${libname}${release}${shared_ext}$major'
11833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11835 ;;
11836 *)
11837 shrext_cmds='.sl'
11838 dynamic_linker="$host_os dld.sl"
11839 shlibpath_var=SHLIB_PATH
11840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11842 soname_spec='${libname}${release}${shared_ext}$major'
11843 ;;
11844 esac
11845 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11846 postinstall_cmds='chmod 555 $lib'
11847 ;;
11848
11849 irix5* | irix6* | nonstopux*)
11850 case $host_os in
11851 nonstopux*) version_type=nonstopux ;;
11852 *)
11853 if test "$lt_cv_prog_gnu_ld" = yes; then
11854 version_type=linux
11855 else
11856 version_type=irix
11857 fi ;;
11858 esac
11859 need_lib_prefix=no
11860 need_version=no
11861 soname_spec='${libname}${release}${shared_ext}$major'
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11863 case $host_os in
11864 irix5* | nonstopux*)
11865 libsuff= shlibsuff=
11866 ;;
11867 *)
11868 case $LD in # libtool.m4 will add one of these switches to LD
11869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11870 libsuff= shlibsuff= libmagic=32-bit;;
11871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11872 libsuff=32 shlibsuff=N32 libmagic=N32;;
11873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11874 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11875 *) libsuff= shlibsuff= libmagic=never-match;;
11876 esac
11877 ;;
11878 esac
11879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11880 shlibpath_overrides_runpath=no
11881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11883 hardcode_into_libs=yes
11884 ;;
11885
11886 # No shared lib support for Linux oldld, aout, or coff.
11887 linux*oldld* | linux*aout* | linux*coff*)
11888 dynamic_linker=no
11889 ;;
11890
11891 # This must be Linux ELF.
11892 linux*)
11893 version_type=linux
11894 need_lib_prefix=no
11895 need_version=no
11896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11897 soname_spec='${libname}${release}${shared_ext}$major'
11898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11899 shlibpath_var=LD_LIBRARY_PATH
11900 shlibpath_overrides_runpath=no
11901 # This implies no fast_install, which is unacceptable.
11902 # Some rework will be needed to allow for fast_install
11903 # before this can be enabled.
11904 hardcode_into_libs=yes
11905
11906 # Append ld.so.conf contents to the search path
11907 if test -f /etc/ld.so.conf; then
11908 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' ' '`
11909 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11910 fi
11911
11912 # We used to test for /lib/ld.so.1 and disable shared libraries on
11913 # powerpc, because MkLinux only supported shared libraries with the
11914 # GNU dynamic linker. Since this was broken with cross compilers,
11915 # most powerpc-linux boxes support dynamic linking these days and
11916 # people can always --disable-shared, the test was removed, and we
11917 # assume the GNU/Linux dynamic linker is in use.
11918 dynamic_linker='GNU/Linux ld.so'
11919 ;;
11920
11921 knetbsd*-gnu)
11922 version_type=linux
11923 need_lib_prefix=no
11924 need_version=no
11925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11926 soname_spec='${libname}${release}${shared_ext}$major'
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=no
11929 hardcode_into_libs=yes
11930 dynamic_linker='GNU ld.so'
11931 ;;
11932
11933 netbsd*)
11934 version_type=sunos
11935 need_lib_prefix=no
11936 need_version=no
11937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11940 dynamic_linker='NetBSD (a.out) ld.so'
11941 else
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11943 soname_spec='${libname}${release}${shared_ext}$major'
11944 dynamic_linker='NetBSD ld.elf_so'
11945 fi
11946 shlibpath_var=LD_LIBRARY_PATH
11947 shlibpath_overrides_runpath=yes
11948 hardcode_into_libs=yes
11949 ;;
11950
11951 newsos6)
11952 version_type=linux
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11954 shlibpath_var=LD_LIBRARY_PATH
11955 shlibpath_overrides_runpath=yes
11956 ;;
11957
11958 nto-qnx*)
11959 version_type=linux
11960 need_lib_prefix=no
11961 need_version=no
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11963 soname_spec='${libname}${release}${shared_ext}$major'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 shlibpath_overrides_runpath=yes
11966 ;;
11967
11968 openbsd*)
11969 version_type=sunos
11970 need_lib_prefix=no
11971 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11972 case $host_os in
11973 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11974 *) need_version=no ;;
11975 esac
11976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11978 shlibpath_var=LD_LIBRARY_PATH
11979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11980 case $host_os in
11981 openbsd2.[89] | openbsd2.[89].*)
11982 shlibpath_overrides_runpath=no
11983 ;;
11984 *)
11985 shlibpath_overrides_runpath=yes
11986 ;;
11987 esac
11988 else
11989 shlibpath_overrides_runpath=yes
11990 fi
11991 ;;
11992
11993 os2*)
11994 libname_spec='$name'
11995 shrext_cmds=".dll"
11996 need_lib_prefix=no
11997 library_names_spec='$libname${shared_ext} $libname.a'
11998 dynamic_linker='OS/2 ld.exe'
11999 shlibpath_var=LIBPATH
12000 ;;
12001
12002 osf3* | osf4* | osf5*)
12003 version_type=osf
12004 need_lib_prefix=no
12005 need_version=no
12006 soname_spec='${libname}${release}${shared_ext}$major'
12007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12008 shlibpath_var=LD_LIBRARY_PATH
12009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12011 ;;
12012
12013 sco3.2v5*)
12014 version_type=osf
12015 soname_spec='${libname}${release}${shared_ext}$major'
12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12017 shlibpath_var=LD_LIBRARY_PATH
12018 ;;
12019
12020 solaris*)
12021 version_type=linux
12022 need_lib_prefix=no
12023 need_version=no
12024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12025 soname_spec='${libname}${release}${shared_ext}$major'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 shlibpath_overrides_runpath=yes
12028 hardcode_into_libs=yes
12029 # ldd complains unless libraries are executable
12030 postinstall_cmds='chmod +x $lib'
12031 ;;
12032
12033 sunos4*)
12034 version_type=sunos
12035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12037 shlibpath_var=LD_LIBRARY_PATH
12038 shlibpath_overrides_runpath=yes
12039 if test "$with_gnu_ld" = yes; then
12040 need_lib_prefix=no
12041 fi
12042 need_version=yes
12043 ;;
12044
12045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12046 version_type=linux
12047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048 soname_spec='${libname}${release}${shared_ext}$major'
12049 shlibpath_var=LD_LIBRARY_PATH
12050 case $host_vendor in
12051 sni)
12052 shlibpath_overrides_runpath=no
12053 need_lib_prefix=no
12054 export_dynamic_flag_spec='${wl}-Blargedynsym'
12055 runpath_var=LD_RUN_PATH
12056 ;;
12057 siemens)
12058 need_lib_prefix=no
12059 ;;
12060 motorola)
12061 need_lib_prefix=no
12062 need_version=no
12063 shlibpath_overrides_runpath=no
12064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12065 ;;
12066 esac
12067 ;;
12068
12069 sysv4*MP*)
12070 if test -d /usr/nec ;then
12071 version_type=linux
12072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12073 soname_spec='$libname${shared_ext}.$major'
12074 shlibpath_var=LD_LIBRARY_PATH
12075 fi
12076 ;;
12077
12078 uts4*)
12079 version_type=linux
12080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081 soname_spec='${libname}${release}${shared_ext}$major'
12082 shlibpath_var=LD_LIBRARY_PATH
12083 ;;
12084
12085 *)
12086 dynamic_linker=no
12087 ;;
12088 esac
12089 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12090 echo "${ECHO_T}$dynamic_linker" >&6
12091 test "$dynamic_linker" = no && can_build_shared=no
12092
12093 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12094 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12095 hardcode_action_CXX=
12096 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12097 test -n "$runpath_var_CXX" || \
12098 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12099
12100 # We can hardcode non-existant directories.
12101 if test "$hardcode_direct_CXX" != no &&
12102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12103 # have to relink, otherwise we might link with an installed library
12104 # when we should be linking with a yet-to-be-installed one
12105 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12106 test "$hardcode_minus_L_CXX" != no; then
12107 # Linking always hardcodes the temporary library directory.
12108 hardcode_action_CXX=relink
12109 else
12110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12111 hardcode_action_CXX=immediate
12112 fi
12113 else
12114 # We cannot hardcode anything, or else we can only hardcode existing
12115 # directories.
12116 hardcode_action_CXX=unsupported
12117 fi
12118 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12119 echo "${ECHO_T}$hardcode_action_CXX" >&6
12120
12121 if test "$hardcode_action_CXX" = relink; then
12122 # Fast installation is not supported
12123 enable_fast_install=no
12124 elif test "$shlibpath_overrides_runpath" = yes ||
12125 test "$enable_shared" = no; then
12126 # Fast installation is not necessary
12127 enable_fast_install=needless
12128 fi
12129
12130 striplib=
12131 old_striplib=
12132 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12133 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12134 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12135 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12136 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12137 echo "$as_me:$LINENO: result: yes" >&5
12138 echo "${ECHO_T}yes" >&6
12139 else
12140 # FIXME - insert some real tests, host_os isn't really good enough
12141 case $host_os in
12142 darwin*)
12143 if test -n "$STRIP" ; then
12144 striplib="$STRIP -x"
12145 echo "$as_me:$LINENO: result: yes" >&5
12146 echo "${ECHO_T}yes" >&6
12147 else
12148 echo "$as_me:$LINENO: result: no" >&5
12149 echo "${ECHO_T}no" >&6
12150 fi
12151 ;;
12152 *)
12153 echo "$as_me:$LINENO: result: no" >&5
12154 echo "${ECHO_T}no" >&6
12155 ;;
12156 esac
12157 fi
12158
12159 if test "x$enable_dlopen" != xyes; then
12160 enable_dlopen=unknown
12161 enable_dlopen_self=unknown
12162 enable_dlopen_self_static=unknown
12163 else
12164 lt_cv_dlopen=no
12165 lt_cv_dlopen_libs=
12166
12167 case $host_os in
12168 beos*)
12169 lt_cv_dlopen="load_add_on"
12170 lt_cv_dlopen_libs=
12171 lt_cv_dlopen_self=yes
12172 ;;
12173
12174 mingw* | pw32*)
12175 lt_cv_dlopen="LoadLibrary"
12176 lt_cv_dlopen_libs=
12177 ;;
12178
12179 cygwin*)
12180 lt_cv_dlopen="dlopen"
12181 lt_cv_dlopen_libs=
12182 ;;
12183
12184 darwin*)
12185 # if libdl is installed we need to link against it
12186 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12187 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191 ac_check_lib_save_LIBS=$LIBS
12192 LIBS="-ldl $LIBS"
12193 cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h. */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199
12200 /* Override any gcc2 internal prototype to avoid an error. */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 /* We use char because int might match the return type of a gcc2
12205 builtin and then its argument prototype would still apply. */
12206 char dlopen ();
12207 int
12208 main ()
12209 {
12210 dlopen ();
12211 ;
12212 return 0;
12213 }
12214 _ACEOF
12215 rm -f conftest.$ac_objext conftest$ac_exeext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12217 (eval $ac_link) 2>conftest.er1
12218 ac_status=$?
12219 grep -v '^ *+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
12224 { ac_try='test -z "$ac_cxx_werror_flag"
12225 || test ! -s conftest.err'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12228 ac_status=$?
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; } &&
12231 { ac_try='test -s conftest$ac_exeext'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12234 ac_status=$?
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; }; then
12237 ac_cv_lib_dl_dlopen=yes
12238 else
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12241
12242 ac_cv_lib_dl_dlopen=no
12243 fi
12244 rm -f conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_check_lib_save_LIBS
12247 fi
12248 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12249 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12250 if test $ac_cv_lib_dl_dlopen = yes; then
12251 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12252 else
12253
12254 lt_cv_dlopen="dyld"
12255 lt_cv_dlopen_libs=
12256 lt_cv_dlopen_self=yes
12257
12258 fi
12259
12260 ;;
12261
12262 *)
12263 echo "$as_me:$LINENO: checking for shl_load" >&5
12264 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12265 if test "${ac_cv_func_shl_load+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12276 #define shl_load innocuous_shl_load
12277
12278 /* System header to define __stub macros and hopefully few prototypes,
12279 which can conflict with char shl_load (); below.
12280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12281 <limits.h> exists even on freestanding compilers. */
12282
12283 #ifdef __STDC__
12284 # include <limits.h>
12285 #else
12286 # include <assert.h>
12287 #endif
12288
12289 #undef shl_load
12290
12291 /* Override any gcc2 internal prototype to avoid an error. */
12292 #ifdef __cplusplus
12293 extern "C"
12294 {
12295 #endif
12296 /* We use char because int might match the return type of a gcc2
12297 builtin and then its argument prototype would still apply. */
12298 char shl_load ();
12299 /* The GNU C library defines this for functions which it implements
12300 to always fail with ENOSYS. Some functions are actually named
12301 something starting with __ and the normal name is an alias. */
12302 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12303 choke me
12304 #else
12305 char (*f) () = shl_load;
12306 #endif
12307 #ifdef __cplusplus
12308 }
12309 #endif
12310
12311 int
12312 main ()
12313 {
12314 return f != shl_load;
12315 ;
12316 return 0;
12317 }
12318 _ACEOF
12319 rm -f conftest.$ac_objext conftest$ac_exeext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321 (eval $ac_link) 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } &&
12328 { ac_try='test -z "$ac_cxx_werror_flag"
12329 || test ! -s conftest.err'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); }; }; then
12341 ac_cv_func_shl_load=yes
12342 else
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12345
12346 ac_cv_func_shl_load=no
12347 fi
12348 rm -f conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 fi
12351 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12352 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12353 if test $ac_cv_func_shl_load = yes; then
12354 lt_cv_dlopen="shl_load"
12355 else
12356 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12357 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12358 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-ldld $LIBS"
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h. */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369
12370 /* Override any gcc2 internal prototype to avoid an error. */
12371 #ifdef __cplusplus
12372 extern "C"
12373 #endif
12374 /* We use char because int might match the return type of a gcc2
12375 builtin and then its argument prototype would still apply. */
12376 char shl_load ();
12377 int
12378 main ()
12379 {
12380 shl_load ();
12381 ;
12382 return 0;
12383 }
12384 _ACEOF
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12387 (eval $ac_link) 2>conftest.er1
12388 ac_status=$?
12389 grep -v '^ *+' conftest.er1 >conftest.err
12390 rm -f conftest.er1
12391 cat conftest.err >&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
12394 { ac_try='test -z "$ac_cxx_werror_flag"
12395 || test ! -s conftest.err'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; } &&
12401 { ac_try='test -s conftest$ac_exeext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12407 ac_cv_lib_dld_shl_load=yes
12408 else
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 ac_cv_lib_dld_shl_load=no
12413 fi
12414 rm -f conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12416 LIBS=$ac_check_lib_save_LIBS
12417 fi
12418 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12419 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12420 if test $ac_cv_lib_dld_shl_load = yes; then
12421 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12422 else
12423 echo "$as_me:$LINENO: checking for dlopen" >&5
12424 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12425 if test "${ac_cv_func_dlopen+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 else
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12436 #define dlopen innocuous_dlopen
12437
12438 /* System header to define __stub macros and hopefully few prototypes,
12439 which can conflict with char dlopen (); below.
12440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12441 <limits.h> exists even on freestanding compilers. */
12442
12443 #ifdef __STDC__
12444 # include <limits.h>
12445 #else
12446 # include <assert.h>
12447 #endif
12448
12449 #undef dlopen
12450
12451 /* Override any gcc2 internal prototype to avoid an error. */
12452 #ifdef __cplusplus
12453 extern "C"
12454 {
12455 #endif
12456 /* We use char because int might match the return type of a gcc2
12457 builtin and then its argument prototype would still apply. */
12458 char dlopen ();
12459 /* The GNU C library defines this for functions which it implements
12460 to always fail with ENOSYS. Some functions are actually named
12461 something starting with __ and the normal name is an alias. */
12462 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12463 choke me
12464 #else
12465 char (*f) () = dlopen;
12466 #endif
12467 #ifdef __cplusplus
12468 }
12469 #endif
12470
12471 int
12472 main ()
12473 {
12474 return f != dlopen;
12475 ;
12476 return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12481 (eval $ac_link) 2>conftest.er1
12482 ac_status=$?
12483 grep -v '^ *+' conftest.er1 >conftest.err
12484 rm -f conftest.er1
12485 cat conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -z "$ac_cxx_werror_flag"
12489 || test ! -s conftest.err'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; } &&
12495 { ac_try='test -s conftest$ac_exeext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12501 ac_cv_func_dlopen=yes
12502 else
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 ac_cv_func_dlopen=no
12507 fi
12508 rm -f conftest.err conftest.$ac_objext \
12509 conftest$ac_exeext conftest.$ac_ext
12510 fi
12511 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12512 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12513 if test $ac_cv_func_dlopen = yes; then
12514 lt_cv_dlopen="dlopen"
12515 else
12516 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12517 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12518 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-ldl $LIBS"
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529
12530 /* Override any gcc2 internal prototype to avoid an error. */
12531 #ifdef __cplusplus
12532 extern "C"
12533 #endif
12534 /* We use char because int might match the return type of a gcc2
12535 builtin and then its argument prototype would still apply. */
12536 char dlopen ();
12537 int
12538 main ()
12539 {
12540 dlopen ();
12541 ;
12542 return 0;
12543 }
12544 _ACEOF
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12547 (eval $ac_link) 2>conftest.er1
12548 ac_status=$?
12549 grep -v '^ *+' conftest.er1 >conftest.err
12550 rm -f conftest.er1
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } &&
12554 { ac_try='test -z "$ac_cxx_werror_flag"
12555 || test ! -s conftest.err'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } &&
12561 { ac_try='test -s conftest$ac_exeext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 ac_cv_lib_dl_dlopen=yes
12568 else
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12571
12572 ac_cv_lib_dl_dlopen=no
12573 fi
12574 rm -f conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 LIBS=$ac_check_lib_save_LIBS
12577 fi
12578 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12579 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12580 if test $ac_cv_lib_dl_dlopen = yes; then
12581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12582 else
12583 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12584 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12585 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588 ac_check_lib_save_LIBS=$LIBS
12589 LIBS="-lsvld $LIBS"
12590 cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h. */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h. */
12596
12597 /* Override any gcc2 internal prototype to avoid an error. */
12598 #ifdef __cplusplus
12599 extern "C"
12600 #endif
12601 /* We use char because int might match the return type of a gcc2
12602 builtin and then its argument prototype would still apply. */
12603 char dlopen ();
12604 int
12605 main ()
12606 {
12607 dlopen ();
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12614 (eval $ac_link) 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -z "$ac_cxx_werror_flag"
12622 || test ! -s conftest.err'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; } &&
12628 { ac_try='test -s conftest$ac_exeext'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; }; then
12634 ac_cv_lib_svld_dlopen=yes
12635 else
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 ac_cv_lib_svld_dlopen=no
12640 fi
12641 rm -f conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643 LIBS=$ac_check_lib_save_LIBS
12644 fi
12645 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12646 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12647 if test $ac_cv_lib_svld_dlopen = yes; then
12648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12649 else
12650 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12651 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12652 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12653 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
12655 ac_check_lib_save_LIBS=$LIBS
12656 LIBS="-ldld $LIBS"
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663
12664 /* Override any gcc2 internal prototype to avoid an error. */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */
12670 char dld_link ();
12671 int
12672 main ()
12673 {
12674 dld_link ();
12675 ;
12676 return 0;
12677 }
12678 _ACEOF
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12681 (eval $ac_link) 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_cxx_werror_flag"
12689 || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest$ac_exeext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_cv_lib_dld_dld_link=yes
12702 else
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706 ac_cv_lib_dld_dld_link=no
12707 fi
12708 rm -f conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12710 LIBS=$ac_check_lib_save_LIBS
12711 fi
12712 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12713 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12714 if test $ac_cv_lib_dld_dld_link = yes; then
12715 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12716 fi
12717
12718
12719 fi
12720
12721
12722 fi
12723
12724
12725 fi
12726
12727
12728 fi
12729
12730
12731 fi
12732
12733 ;;
12734 esac
12735
12736 if test "x$lt_cv_dlopen" != xno; then
12737 enable_dlopen=yes
12738 else
12739 enable_dlopen=no
12740 fi
12741
12742 case $lt_cv_dlopen in
12743 dlopen)
12744 save_CPPFLAGS="$CPPFLAGS"
12745 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12746
12747 save_LDFLAGS="$LDFLAGS"
12748 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12749
12750 save_LIBS="$LIBS"
12751 LIBS="$lt_cv_dlopen_libs $LIBS"
12752
12753 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12754 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12755 if test "${lt_cv_dlopen_self+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 else
12758 if test "$cross_compiling" = yes; then :
12759 lt_cv_dlopen_self=cross
12760 else
12761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12762 lt_status=$lt_dlunknown
12763 cat > conftest.$ac_ext <<EOF
12764 #line 12764 "configure"
12765 #include "confdefs.h"
12766
12767 #if HAVE_DLFCN_H
12768 #include <dlfcn.h>
12769 #endif
12770
12771 #include <stdio.h>
12772
12773 #ifdef RTLD_GLOBAL
12774 # define LT_DLGLOBAL RTLD_GLOBAL
12775 #else
12776 # ifdef DL_GLOBAL
12777 # define LT_DLGLOBAL DL_GLOBAL
12778 # else
12779 # define LT_DLGLOBAL 0
12780 # endif
12781 #endif
12782
12783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12784 find out it does not work in some platform. */
12785 #ifndef LT_DLLAZY_OR_NOW
12786 # ifdef RTLD_LAZY
12787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12788 # else
12789 # ifdef DL_LAZY
12790 # define LT_DLLAZY_OR_NOW DL_LAZY
12791 # else
12792 # ifdef RTLD_NOW
12793 # define LT_DLLAZY_OR_NOW RTLD_NOW
12794 # else
12795 # ifdef DL_NOW
12796 # define LT_DLLAZY_OR_NOW DL_NOW
12797 # else
12798 # define LT_DLLAZY_OR_NOW 0
12799 # endif
12800 # endif
12801 # endif
12802 # endif
12803 #endif
12804
12805 #ifdef __cplusplus
12806 extern "C" void exit (int);
12807 #endif
12808
12809 void fnord() { int i=42;}
12810 int main ()
12811 {
12812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12813 int status = $lt_dlunknown;
12814
12815 if (self)
12816 {
12817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12819 /* dlclose (self); */
12820 }
12821
12822 exit (status);
12823 }
12824 EOF
12825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12826 (eval $ac_link) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12830 (./conftest; exit; ) >&5 2>/dev/null
12831 lt_status=$?
12832 case x$lt_status in
12833 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12834 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12835 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12836 esac
12837 else :
12838 # compilation failed
12839 lt_cv_dlopen_self=no
12840 fi
12841 fi
12842 rm -fr conftest*
12843
12844
12845 fi
12846 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12847 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12848
12849 if test "x$lt_cv_dlopen_self" = xyes; then
12850 LDFLAGS="$LDFLAGS $link_static_flag"
12851 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12852 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12853 if test "${lt_cv_dlopen_self_static+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856 if test "$cross_compiling" = yes; then :
12857 lt_cv_dlopen_self_static=cross
12858 else
12859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12860 lt_status=$lt_dlunknown
12861 cat > conftest.$ac_ext <<EOF
12862 #line 12862 "configure"
12863 #include "confdefs.h"
12864
12865 #if HAVE_DLFCN_H
12866 #include <dlfcn.h>
12867 #endif
12868
12869 #include <stdio.h>
12870
12871 #ifdef RTLD_GLOBAL
12872 # define LT_DLGLOBAL RTLD_GLOBAL
12873 #else
12874 # ifdef DL_GLOBAL
12875 # define LT_DLGLOBAL DL_GLOBAL
12876 # else
12877 # define LT_DLGLOBAL 0
12878 # endif
12879 #endif
12880
12881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12882 find out it does not work in some platform. */
12883 #ifndef LT_DLLAZY_OR_NOW
12884 # ifdef RTLD_LAZY
12885 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12886 # else
12887 # ifdef DL_LAZY
12888 # define LT_DLLAZY_OR_NOW DL_LAZY
12889 # else
12890 # ifdef RTLD_NOW
12891 # define LT_DLLAZY_OR_NOW RTLD_NOW
12892 # else
12893 # ifdef DL_NOW
12894 # define LT_DLLAZY_OR_NOW DL_NOW
12895 # else
12896 # define LT_DLLAZY_OR_NOW 0
12897 # endif
12898 # endif
12899 # endif
12900 # endif
12901 #endif
12902
12903 #ifdef __cplusplus
12904 extern "C" void exit (int);
12905 #endif
12906
12907 void fnord() { int i=42;}
12908 int main ()
12909 {
12910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12911 int status = $lt_dlunknown;
12912
12913 if (self)
12914 {
12915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12916 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12917 /* dlclose (self); */
12918 }
12919
12920 exit (status);
12921 }
12922 EOF
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12928 (./conftest; exit; ) >&5 2>/dev/null
12929 lt_status=$?
12930 case x$lt_status in
12931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12933 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12934 esac
12935 else :
12936 # compilation failed
12937 lt_cv_dlopen_self_static=no
12938 fi
12939 fi
12940 rm -fr conftest*
12941
12942
12943 fi
12944 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12945 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12946 fi
12947
12948 CPPFLAGS="$save_CPPFLAGS"
12949 LDFLAGS="$save_LDFLAGS"
12950 LIBS="$save_LIBS"
12951 ;;
12952 esac
12953
12954 case $lt_cv_dlopen_self in
12955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12956 *) enable_dlopen_self=unknown ;;
12957 esac
12958
12959 case $lt_cv_dlopen_self_static in
12960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12961 *) enable_dlopen_self_static=unknown ;;
12962 esac
12963 fi
12964
12965
12966 # The else clause should only fire when bootstrapping the
12967 # libtool distribution, otherwise you forgot to ship ltmain.sh
12968 # with your package, and you will get complaints that there are
12969 # no rules to generate ltmain.sh.
12970 if test -f "$ltmain"; then
12971 # See if we are running on zsh, and set the options which allow our commands through
12972 # without removal of \ escapes.
12973 if test -n "${ZSH_VERSION+set}" ; then
12974 setopt NO_GLOB_SUBST
12975 fi
12976 # Now quote all the things that may contain metacharacters while being
12977 # careful not to overquote the AC_SUBSTed values. We take copies of the
12978 # variables and quote the copies for generation of the libtool script.
12979 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12980 SED SHELL STRIP \
12981 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12982 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12983 deplibs_check_method reload_flag reload_cmds need_locks \
12984 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12985 lt_cv_sys_global_symbol_to_c_name_address \
12986 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12987 old_postinstall_cmds old_postuninstall_cmds \
12988 compiler_CXX \
12989 CC_CXX \
12990 LD_CXX \
12991 lt_prog_compiler_wl_CXX \
12992 lt_prog_compiler_pic_CXX \
12993 lt_prog_compiler_static_CXX \
12994 lt_prog_compiler_no_builtin_flag_CXX \
12995 export_dynamic_flag_spec_CXX \
12996 thread_safe_flag_spec_CXX \
12997 whole_archive_flag_spec_CXX \
12998 enable_shared_with_static_runtimes_CXX \
12999 old_archive_cmds_CXX \
13000 old_archive_from_new_cmds_CXX \
13001 predep_objects_CXX \
13002 postdep_objects_CXX \
13003 predeps_CXX \
13004 postdeps_CXX \
13005 compiler_lib_search_path_CXX \
13006 archive_cmds_CXX \
13007 archive_expsym_cmds_CXX \
13008 postinstall_cmds_CXX \
13009 postuninstall_cmds_CXX \
13010 old_archive_from_expsyms_cmds_CXX \
13011 allow_undefined_flag_CXX \
13012 no_undefined_flag_CXX \
13013 export_symbols_cmds_CXX \
13014 hardcode_libdir_flag_spec_CXX \
13015 hardcode_libdir_flag_spec_ld_CXX \
13016 hardcode_libdir_separator_CXX \
13017 hardcode_automatic_CXX \
13018 module_cmds_CXX \
13019 module_expsym_cmds_CXX \
13020 lt_cv_prog_compiler_c_o_CXX \
13021 exclude_expsyms_CXX \
13022 include_expsyms_CXX; do
13023
13024 case $var in
13025 old_archive_cmds_CXX | \
13026 old_archive_from_new_cmds_CXX | \
13027 archive_cmds_CXX | \
13028 archive_expsym_cmds_CXX | \
13029 module_cmds_CXX | \
13030 module_expsym_cmds_CXX | \
13031 old_archive_from_expsyms_cmds_CXX | \
13032 export_symbols_cmds_CXX | \
13033 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13034 postinstall_cmds | postuninstall_cmds | \
13035 old_postinstall_cmds | old_postuninstall_cmds | \
13036 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13037 # Double-quote double-evaled strings.
13038 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13039 ;;
13040 *)
13041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13042 ;;
13043 esac
13044 done
13045
13046 case $lt_echo in
13047 *'\$0 --fallback-echo"')
13048 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13049 ;;
13050 esac
13051
13052 cfgfile="$ofile"
13053
13054 cat <<__EOF__ >> "$cfgfile"
13055 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13056
13057 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13058
13059 # Shell to use when invoking shell scripts.
13060 SHELL=$lt_SHELL
13061
13062 # Whether or not to build shared libraries.
13063 build_libtool_libs=$enable_shared
13064
13065 # Whether or not to build static libraries.
13066 build_old_libs=$enable_static
13067
13068 # Whether or not to add -lc for building shared libraries.
13069 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13070
13071 # Whether or not to disallow shared libs when runtime libs are static
13072 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13073
13074 # Whether or not to optimize for fast installation.
13075 fast_install=$enable_fast_install
13076
13077 # The host system.
13078 host_alias=$host_alias
13079 host=$host
13080 host_os=$host_os
13081
13082 # The build system.
13083 build_alias=$build_alias
13084 build=$build
13085 build_os=$build_os
13086
13087 # An echo program that does not interpret backslashes.
13088 echo=$lt_echo
13089
13090 # The archiver.
13091 AR=$lt_AR
13092 AR_FLAGS=$lt_AR_FLAGS
13093
13094 # A C compiler.
13095 LTCC=$lt_LTCC
13096
13097 # A language-specific compiler.
13098 CC=$lt_compiler_CXX
13099
13100 # Is the compiler the GNU C compiler?
13101 with_gcc=$GCC_CXX
13102
13103 # An ERE matcher.
13104 EGREP=$lt_EGREP
13105
13106 # The linker used to build libraries.
13107 LD=$lt_LD_CXX
13108
13109 # Whether we need hard or soft links.
13110 LN_S=$lt_LN_S
13111
13112 # A BSD-compatible nm program.
13113 NM=$lt_NM
13114
13115 # A symbol stripping program
13116 STRIP=$lt_STRIP
13117
13118 # Used to examine libraries when file_magic_cmd begins "file"
13119 MAGIC_CMD=$MAGIC_CMD
13120
13121 # Used on cygwin: DLL creation program.
13122 DLLTOOL="$DLLTOOL"
13123
13124 # Used on cygwin: object dumper.
13125 OBJDUMP="$OBJDUMP"
13126
13127 # Used on cygwin: assembler.
13128 AS="$AS"
13129
13130 # The name of the directory that contains temporary libtool files.
13131 objdir=$objdir
13132
13133 # How to create reloadable object files.
13134 reload_flag=$lt_reload_flag
13135 reload_cmds=$lt_reload_cmds
13136
13137 # How to pass a linker flag through the compiler.
13138 wl=$lt_lt_prog_compiler_wl_CXX
13139
13140 # Object file suffix (normally "o").
13141 objext="$ac_objext"
13142
13143 # Old archive suffix (normally "a").
13144 libext="$libext"
13145
13146 # Shared library suffix (normally ".so").
13147 shrext_cmds='$shrext_cmds'
13148
13149 # Executable file suffix (normally "").
13150 exeext="$exeext"
13151
13152 # Additional compiler flags for building library objects.
13153 pic_flag=$lt_lt_prog_compiler_pic_CXX
13154 pic_mode=$pic_mode
13155
13156 # What is the maximum length of a command?
13157 max_cmd_len=$lt_cv_sys_max_cmd_len
13158
13159 # Does compiler simultaneously support -c and -o options?
13160 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13161
13162 # Must we lock files when doing compilation?
13163 need_locks=$lt_need_locks
13164
13165 # Do we need the lib prefix for modules?
13166 need_lib_prefix=$need_lib_prefix
13167
13168 # Do we need a version for libraries?
13169 need_version=$need_version
13170
13171 # Whether dlopen is supported.
13172 dlopen_support=$enable_dlopen
13173
13174 # Whether dlopen of programs is supported.
13175 dlopen_self=$enable_dlopen_self
13176
13177 # Whether dlopen of statically linked programs is supported.
13178 dlopen_self_static=$enable_dlopen_self_static
13179
13180 # Compiler flag to prevent dynamic linking.
13181 link_static_flag=$lt_lt_prog_compiler_static_CXX
13182
13183 # Compiler flag to turn off builtin functions.
13184 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13185
13186 # Compiler flag to allow reflexive dlopens.
13187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13188
13189 # Compiler flag to generate shared objects directly from archives.
13190 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13191
13192 # Compiler flag to generate thread-safe objects.
13193 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13194
13195 # Library versioning type.
13196 version_type=$version_type
13197
13198 # Format of library name prefix.
13199 libname_spec=$lt_libname_spec
13200
13201 # List of archive names. First name is the real one, the rest are links.
13202 # The last name is the one that the linker finds with -lNAME.
13203 library_names_spec=$lt_library_names_spec
13204
13205 # The coded name of the library, if different from the real name.
13206 soname_spec=$lt_soname_spec
13207
13208 # Commands used to build and install an old-style archive.
13209 RANLIB=$lt_RANLIB
13210 old_archive_cmds=$lt_old_archive_cmds_CXX
13211 old_postinstall_cmds=$lt_old_postinstall_cmds
13212 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13213
13214 # Create an old-style archive from a shared archive.
13215 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13216
13217 # Create a temporary old-style archive to link instead of a shared archive.
13218 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13219
13220 # Commands used to build and install a shared archive.
13221 archive_cmds=$lt_archive_cmds_CXX
13222 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13223 postinstall_cmds=$lt_postinstall_cmds
13224 postuninstall_cmds=$lt_postuninstall_cmds
13225
13226 # Commands used to build a loadable module (assumed same as above if empty)
13227 module_cmds=$lt_module_cmds_CXX
13228 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13229
13230 # Commands to strip libraries.
13231 old_striplib=$lt_old_striplib
13232 striplib=$lt_striplib
13233
13234 # Dependencies to place before the objects being linked to create a
13235 # shared library.
13236 predep_objects=$lt_predep_objects_CXX
13237
13238 # Dependencies to place after the objects being linked to create a
13239 # shared library.
13240 postdep_objects=$lt_postdep_objects_CXX
13241
13242 # Dependencies to place before the objects being linked to create a
13243 # shared library.
13244 predeps=$lt_predeps_CXX
13245
13246 # Dependencies to place after the objects being linked to create a
13247 # shared library.
13248 postdeps=$lt_postdeps_CXX
13249
13250 # The library search path used internally by the compiler when linking
13251 # a shared library.
13252 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13253
13254 # Method to check whether dependent libraries are shared objects.
13255 deplibs_check_method=$lt_deplibs_check_method
13256
13257 # Command to use when deplibs_check_method == file_magic.
13258 file_magic_cmd=$lt_file_magic_cmd
13259
13260 # Flag that allows shared libraries with undefined symbols to be built.
13261 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13262
13263 # Flag that forces no undefined symbols.
13264 no_undefined_flag=$lt_no_undefined_flag_CXX
13265
13266 # Commands used to finish a libtool library installation in a directory.
13267 finish_cmds=$lt_finish_cmds
13268
13269 # Same as above, but a single script fragment to be evaled but not shown.
13270 finish_eval=$lt_finish_eval
13271
13272 # Take the output of nm and produce a listing of raw symbols and C names.
13273 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13274
13275 # Transform the output of nm in a proper C declaration
13276 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13277
13278 # Transform the output of nm in a C name address pair
13279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13280
13281 # This is the shared library runtime path variable.
13282 runpath_var=$runpath_var
13283
13284 # This is the shared library path variable.
13285 shlibpath_var=$shlibpath_var
13286
13287 # Is shlibpath searched before the hard-coded library search path?
13288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13289
13290 # How to hardcode a shared library path into an executable.
13291 hardcode_action=$hardcode_action_CXX
13292
13293 # Whether we should hardcode library paths into libraries.
13294 hardcode_into_libs=$hardcode_into_libs
13295
13296 # Flag to hardcode \$libdir into a binary during linking.
13297 # This must work even if \$libdir does not exist.
13298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13299
13300 # If ld is used when linking, flag to hardcode \$libdir into
13301 # a binary during linking. This must work even if \$libdir does
13302 # not exist.
13303 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13304
13305 # Whether we need a single -rpath flag with a separated argument.
13306 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13307
13308 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13309 # resulting binary.
13310 hardcode_direct=$hardcode_direct_CXX
13311
13312 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13313 # resulting binary.
13314 hardcode_minus_L=$hardcode_minus_L_CXX
13315
13316 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13317 # the resulting binary.
13318 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13319
13320 # Set to yes if building a shared library automatically hardcodes DIR into the library
13321 # and all subsequent libraries and executables linked against it.
13322 hardcode_automatic=$hardcode_automatic_CXX
13323
13324 # Variables whose values should be saved in libtool wrapper scripts and
13325 # restored at relink time.
13326 variables_saved_for_relink="$variables_saved_for_relink"
13327
13328 # Whether libtool must link a program against all its dependency libraries.
13329 link_all_deplibs=$link_all_deplibs_CXX
13330
13331 # Compile-time system search path for libraries
13332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13333
13334 # Run-time system search path for libraries
13335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13336
13337 # Fix the shell variable \$srcfile for the compiler.
13338 fix_srcfile_path="$fix_srcfile_path_CXX"
13339
13340 # Set to yes if exported symbols are required.
13341 always_export_symbols=$always_export_symbols_CXX
13342
13343 # The commands to list exported symbols.
13344 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13345
13346 # The commands to extract the exported symbol list from a shared archive.
13347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13348
13349 # Symbols that should not be listed in the preloaded symbols.
13350 exclude_expsyms=$lt_exclude_expsyms_CXX
13351
13352 # Symbols that must always be exported.
13353 include_expsyms=$lt_include_expsyms_CXX
13354
13355 # ### END LIBTOOL TAG CONFIG: $tagname
13356
13357 __EOF__
13358
13359
13360 else
13361 # If there is no Makefile yet, we rely on a make rule to execute
13362 # `config.status --recheck' to rerun these tests and create the
13363 # libtool script then.
13364 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13365 if test -f "$ltmain_in"; then
13366 test -f Makefile && make "$ltmain"
13367 fi
13368 fi
13369
13370
13371 ac_ext=c
13372 ac_cpp='$CPP $CPPFLAGS'
13373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13376
13377 CC=$lt_save_CC
13378 LDCXX=$LD
13379 LD=$lt_save_LD
13380 GCC=$lt_save_GCC
13381 with_gnu_ldcxx=$with_gnu_ld
13382 with_gnu_ld=$lt_save_with_gnu_ld
13383 lt_cv_path_LDCXX=$lt_cv_path_LD
13384 lt_cv_path_LD=$lt_save_path_LD
13385 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13386 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13387
13388 else
13389 tagname=""
13390 fi
13391 ;;
13392
13393 F77)
13394 if test -n "$F77" && test "X$F77" != "Xno"; then
13395
13396 ac_ext=f
13397 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13398 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13399 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13400
13401
13402 archive_cmds_need_lc_F77=no
13403 allow_undefined_flag_F77=
13404 always_export_symbols_F77=no
13405 archive_expsym_cmds_F77=
13406 export_dynamic_flag_spec_F77=
13407 hardcode_direct_F77=no
13408 hardcode_libdir_flag_spec_F77=
13409 hardcode_libdir_flag_spec_ld_F77=
13410 hardcode_libdir_separator_F77=
13411 hardcode_minus_L_F77=no
13412 hardcode_automatic_F77=no
13413 module_cmds_F77=
13414 module_expsym_cmds_F77=
13415 link_all_deplibs_F77=unknown
13416 old_archive_cmds_F77=$old_archive_cmds
13417 no_undefined_flag_F77=
13418 whole_archive_flag_spec_F77=
13419 enable_shared_with_static_runtimes_F77=no
13420
13421 # Source file extension for f77 test sources.
13422 ac_ext=f
13423
13424 # Object file extension for compiled f77 test sources.
13425 objext=o
13426 objext_F77=$objext
13427
13428 # Code to be used in simple compile tests
13429 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13430
13431 # Code to be used in simple link tests
13432 lt_simple_link_test_code=" program t\n end\n"
13433
13434 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13435
13436 # If no C compiler was specified, use CC.
13437 LTCC=${LTCC-"$CC"}
13438
13439 # Allow CC to be a program name with arguments.
13440 compiler=$CC
13441
13442
13443 # save warnings/boilerplate of simple test code
13444 ac_outfile=conftest.$ac_objext
13445 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13447 _lt_compiler_boilerplate=`cat conftest.err`
13448 $rm conftest*
13449
13450 ac_outfile=conftest.$ac_objext
13451 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13453 _lt_linker_boilerplate=`cat conftest.err`
13454 $rm conftest*
13455
13456
13457 # Allow CC to be a program name with arguments.
13458 lt_save_CC="$CC"
13459 CC=${F77-"f77"}
13460 compiler=$CC
13461 compiler_F77=$CC
13462 for cc_temp in $compiler""; do
13463 case $cc_temp in
13464 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13465 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13466 \-*) ;;
13467 *) break;;
13468 esac
13469 done
13470 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13471
13472
13473 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13474 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13475 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13476 echo "${ECHO_T}$can_build_shared" >&6
13477
13478 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13479 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13480 test "$can_build_shared" = "no" && enable_shared=no
13481
13482 # On AIX, shared libraries and static libraries use the same namespace, and
13483 # are all built from PIC.
13484 case $host_os in
13485 aix3*)
13486 test "$enable_shared" = yes && enable_static=no
13487 if test -n "$RANLIB"; then
13488 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13489 postinstall_cmds='$RANLIB $lib'
13490 fi
13491 ;;
13492 aix4* | aix5*)
13493 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13494 test "$enable_shared" = yes && enable_static=no
13495 fi
13496 ;;
13497 esac
13498 echo "$as_me:$LINENO: result: $enable_shared" >&5
13499 echo "${ECHO_T}$enable_shared" >&6
13500
13501 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13502 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13503 # Make sure either enable_shared or enable_static is yes.
13504 test "$enable_shared" = yes || enable_static=yes
13505 echo "$as_me:$LINENO: result: $enable_static" >&5
13506 echo "${ECHO_T}$enable_static" >&6
13507
13508 test "$ld_shlibs_F77" = no && can_build_shared=no
13509
13510 GCC_F77="$G77"
13511 LD_F77="$LD"
13512
13513 lt_prog_compiler_wl_F77=
13514 lt_prog_compiler_pic_F77=
13515 lt_prog_compiler_static_F77=
13516
13517 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13518 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13519
13520 if test "$GCC" = yes; then
13521 lt_prog_compiler_wl_F77='-Wl,'
13522 lt_prog_compiler_static_F77='-static'
13523
13524 case $host_os in
13525 aix*)
13526 # All AIX code is PIC.
13527 if test "$host_cpu" = ia64; then
13528 # AIX 5 now supports IA64 processor
13529 lt_prog_compiler_static_F77='-Bstatic'
13530 fi
13531 ;;
13532
13533 amigaos*)
13534 # FIXME: we need at least 68020 code to build shared libraries, but
13535 # adding the `-m68020' flag to GCC prevents building anything better,
13536 # like `-m68040'.
13537 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13538 ;;
13539
13540 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13541 # PIC is the default for these OSes.
13542 ;;
13543
13544 mingw* | pw32* | os2*)
13545 # This hack is so that the source file can tell whether it is being
13546 # built for inclusion in a dll (and should export symbols for example).
13547 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13548 ;;
13549
13550 darwin* | rhapsody*)
13551 # PIC is the default on this platform
13552 # Common symbols not allowed in MH_DYLIB files
13553 lt_prog_compiler_pic_F77='-fno-common'
13554 ;;
13555
13556 msdosdjgpp*)
13557 # Just because we use GCC doesn't mean we suddenly get shared libraries
13558 # on systems that don't support them.
13559 lt_prog_compiler_can_build_shared_F77=no
13560 enable_shared=no
13561 ;;
13562
13563 sysv4*MP*)
13564 if test -d /usr/nec; then
13565 lt_prog_compiler_pic_F77=-Kconform_pic
13566 fi
13567 ;;
13568
13569 hpux*)
13570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13571 # not for PA HP-UX.
13572 case $host_cpu in
13573 hppa*64*|ia64*)
13574 # +Z the default
13575 ;;
13576 *)
13577 lt_prog_compiler_pic_F77='-fPIC'
13578 ;;
13579 esac
13580 ;;
13581
13582 *)
13583 lt_prog_compiler_pic_F77='-fPIC'
13584 ;;
13585 esac
13586 else
13587 # PORTME Check for flag to pass linker flags through the system compiler.
13588 case $host_os in
13589 aix*)
13590 lt_prog_compiler_wl_F77='-Wl,'
13591 if test "$host_cpu" = ia64; then
13592 # AIX 5 now supports IA64 processor
13593 lt_prog_compiler_static_F77='-Bstatic'
13594 else
13595 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13596 fi
13597 ;;
13598 darwin*)
13599 # PIC is the default on this platform
13600 # Common symbols not allowed in MH_DYLIB files
13601 case $cc_basename in
13602 xlc*)
13603 lt_prog_compiler_pic_F77='-qnocommon'
13604 lt_prog_compiler_wl_F77='-Wl,'
13605 ;;
13606 esac
13607 ;;
13608
13609 mingw* | pw32* | os2*)
13610 # This hack is so that the source file can tell whether it is being
13611 # built for inclusion in a dll (and should export symbols for example).
13612 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13613 ;;
13614
13615 hpux9* | hpux10* | hpux11*)
13616 lt_prog_compiler_wl_F77='-Wl,'
13617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13618 # not for PA HP-UX.
13619 case $host_cpu in
13620 hppa*64*|ia64*)
13621 # +Z the default
13622 ;;
13623 *)
13624 lt_prog_compiler_pic_F77='+Z'
13625 ;;
13626 esac
13627 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13628 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13629 ;;
13630
13631 irix5* | irix6* | nonstopux*)
13632 lt_prog_compiler_wl_F77='-Wl,'
13633 # PIC (with -KPIC) is the default.
13634 lt_prog_compiler_static_F77='-non_shared'
13635 ;;
13636
13637 newsos6)
13638 lt_prog_compiler_pic_F77='-KPIC'
13639 lt_prog_compiler_static_F77='-Bstatic'
13640 ;;
13641
13642 linux*)
13643 case $cc_basename in
13644 icc* | ecc*)
13645 lt_prog_compiler_wl_F77='-Wl,'
13646 lt_prog_compiler_pic_F77='-KPIC'
13647 lt_prog_compiler_static_F77='-static'
13648 ;;
13649 pgcc* | pgf77* | pgf90* | pgf95*)
13650 # Portland Group compilers (*not* the Pentium gcc compiler,
13651 # which looks to be a dead project)
13652 lt_prog_compiler_wl_F77='-Wl,'
13653 lt_prog_compiler_pic_F77='-fpic'
13654 lt_prog_compiler_static_F77='-Bstatic'
13655 ;;
13656 ccc*)
13657 lt_prog_compiler_wl_F77='-Wl,'
13658 # All Alpha code is PIC.
13659 lt_prog_compiler_static_F77='-non_shared'
13660 ;;
13661 esac
13662 ;;
13663
13664 osf3* | osf4* | osf5*)
13665 lt_prog_compiler_wl_F77='-Wl,'
13666 # All OSF/1 code is PIC.
13667 lt_prog_compiler_static_F77='-non_shared'
13668 ;;
13669
13670 sco3.2v5*)
13671 lt_prog_compiler_pic_F77='-Kpic'
13672 lt_prog_compiler_static_F77='-dn'
13673 ;;
13674
13675 solaris*)
13676 lt_prog_compiler_pic_F77='-KPIC'
13677 lt_prog_compiler_static_F77='-Bstatic'
13678 case $cc_basename in
13679 f77* | f90* | f95*)
13680 lt_prog_compiler_wl_F77='-Qoption ld ';;
13681 *)
13682 lt_prog_compiler_wl_F77='-Wl,';;
13683 esac
13684 ;;
13685
13686 sunos4*)
13687 lt_prog_compiler_wl_F77='-Qoption ld '
13688 lt_prog_compiler_pic_F77='-PIC'
13689 lt_prog_compiler_static_F77='-Bstatic'
13690 ;;
13691
13692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13693 lt_prog_compiler_wl_F77='-Wl,'
13694 lt_prog_compiler_pic_F77='-KPIC'
13695 lt_prog_compiler_static_F77='-Bstatic'
13696 ;;
13697
13698 sysv4*MP*)
13699 if test -d /usr/nec ;then
13700 lt_prog_compiler_pic_F77='-Kconform_pic'
13701 lt_prog_compiler_static_F77='-Bstatic'
13702 fi
13703 ;;
13704
13705 unicos*)
13706 lt_prog_compiler_wl_F77='-Wl,'
13707 lt_prog_compiler_can_build_shared_F77=no
13708 ;;
13709
13710 uts4*)
13711 lt_prog_compiler_pic_F77='-pic'
13712 lt_prog_compiler_static_F77='-Bstatic'
13713 ;;
13714
13715 *)
13716 lt_prog_compiler_can_build_shared_F77=no
13717 ;;
13718 esac
13719 fi
13720
13721 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13722 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13723
13724 #
13725 # Check to make sure the PIC flag actually works.
13726 #
13727 if test -n "$lt_prog_compiler_pic_F77"; then
13728
13729 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13730 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13731 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734 lt_prog_compiler_pic_works_F77=no
13735 ac_outfile=conftest.$ac_objext
13736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13737 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13738 # Insert the option either (1) after the last *FLAGS variable, or
13739 # (2) before a word containing "conftest.", or (3) at the end.
13740 # Note that $ac_compile itself does not contain backslashes and begins
13741 # with a dollar sign (not a hyphen), so the echo should work correctly.
13742 # The option is referenced via a variable to avoid confusing sed.
13743 lt_compile=`echo "$ac_compile" | $SED \
13744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13746 -e 's:$: $lt_compiler_flag:'`
13747 (eval echo "\"\$as_me:13747: $lt_compile\"" >&5)
13748 (eval "$lt_compile" 2>conftest.err)
13749 ac_status=$?
13750 cat conftest.err >&5
13751 echo "$as_me:13751: \$? = $ac_status" >&5
13752 if (exit $ac_status) && test -s "$ac_outfile"; then
13753 # The compiler can only warn and ignore the option if not recognized
13754 # So say no if there are warnings other than the usual output.
13755 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13756 $SED '/^$/d' conftest.err >conftest.er2
13757 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13758 lt_prog_compiler_pic_works_F77=yes
13759 fi
13760 fi
13761 $rm conftest*
13762
13763 fi
13764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13765 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13766
13767 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13768 case $lt_prog_compiler_pic_F77 in
13769 "" | " "*) ;;
13770 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13771 esac
13772 else
13773 lt_prog_compiler_pic_F77=
13774 lt_prog_compiler_can_build_shared_F77=no
13775 fi
13776
13777 fi
13778 case $host_os in
13779 # For platforms which do not support PIC, -DPIC is meaningless:
13780 *djgpp*)
13781 lt_prog_compiler_pic_F77=
13782 ;;
13783 *)
13784 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13785 ;;
13786 esac
13787
13788 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13789 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13790 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793 lt_cv_prog_compiler_c_o_F77=no
13794 $rm -r conftest 2>/dev/null
13795 mkdir conftest
13796 cd conftest
13797 mkdir out
13798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13799
13800 lt_compiler_flag="-o out/conftest2.$ac_objext"
13801 # Insert the option either (1) after the last *FLAGS variable, or
13802 # (2) before a word containing "conftest.", or (3) at the end.
13803 # Note that $ac_compile itself does not contain backslashes and begins
13804 # with a dollar sign (not a hyphen), so the echo should work correctly.
13805 lt_compile=`echo "$ac_compile" | $SED \
13806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13808 -e 's:$: $lt_compiler_flag:'`
13809 (eval echo "\"\$as_me:13809: $lt_compile\"" >&5)
13810 (eval "$lt_compile" 2>out/conftest.err)
13811 ac_status=$?
13812 cat out/conftest.err >&5
13813 echo "$as_me:13813: \$? = $ac_status" >&5
13814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13815 then
13816 # The compiler can only warn and ignore the option if not recognized
13817 # So say no if there are warnings
13818 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13819 $SED '/^$/d' out/conftest.err >out/conftest.er2
13820 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13821 lt_cv_prog_compiler_c_o_F77=yes
13822 fi
13823 fi
13824 chmod u+w . 2>&5
13825 $rm conftest*
13826 # SGI C++ compiler will create directory out/ii_files/ for
13827 # template instantiation
13828 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13829 $rm out/* && rmdir out
13830 cd ..
13831 rmdir conftest
13832 $rm conftest*
13833
13834 fi
13835 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13836 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13837
13838
13839 hard_links="nottested"
13840 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13841 # do not overwrite the value of need_locks provided by the user
13842 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13843 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13844 hard_links=yes
13845 $rm conftest*
13846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13847 touch conftest.a
13848 ln conftest.a conftest.b 2>&5 || hard_links=no
13849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13850 echo "$as_me:$LINENO: result: $hard_links" >&5
13851 echo "${ECHO_T}$hard_links" >&6
13852 if test "$hard_links" = no; then
13853 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13854 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13855 need_locks=warn
13856 fi
13857 else
13858 need_locks=no
13859 fi
13860
13861 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13862 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13863
13864 runpath_var=
13865 allow_undefined_flag_F77=
13866 enable_shared_with_static_runtimes_F77=no
13867 archive_cmds_F77=
13868 archive_expsym_cmds_F77=
13869 old_archive_From_new_cmds_F77=
13870 old_archive_from_expsyms_cmds_F77=
13871 export_dynamic_flag_spec_F77=
13872 whole_archive_flag_spec_F77=
13873 thread_safe_flag_spec_F77=
13874 hardcode_libdir_flag_spec_F77=
13875 hardcode_libdir_flag_spec_ld_F77=
13876 hardcode_libdir_separator_F77=
13877 hardcode_direct_F77=no
13878 hardcode_minus_L_F77=no
13879 hardcode_shlibpath_var_F77=unsupported
13880 link_all_deplibs_F77=unknown
13881 hardcode_automatic_F77=no
13882 module_cmds_F77=
13883 module_expsym_cmds_F77=
13884 always_export_symbols_F77=no
13885 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13886 # include_expsyms should be a list of space-separated symbols to be *always*
13887 # included in the symbol list
13888 include_expsyms_F77=
13889 # exclude_expsyms can be an extended regexp of symbols to exclude
13890 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13891 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13892 # as well as any symbol that contains `d'.
13893 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13894 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13895 # platforms (ab)use it in PIC code, but their linkers get confused if
13896 # the symbol is explicitly referenced. Since portable code cannot
13897 # rely on this symbol name, it's probably fine to never include it in
13898 # preloaded symbol tables.
13899 extract_expsyms_cmds=
13900 # Just being paranoid about ensuring that cc_basename is set.
13901 for cc_temp in $compiler""; do
13902 case $cc_temp in
13903 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13904 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13905 \-*) ;;
13906 *) break;;
13907 esac
13908 done
13909 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13910
13911 case $host_os in
13912 cygwin* | mingw* | pw32*)
13913 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13914 # When not using gcc, we currently assume that we are using
13915 # Microsoft Visual C++.
13916 if test "$GCC" != yes; then
13917 with_gnu_ld=no
13918 fi
13919 ;;
13920 openbsd*)
13921 with_gnu_ld=no
13922 ;;
13923 esac
13924
13925 ld_shlibs_F77=yes
13926 if test "$with_gnu_ld" = yes; then
13927 # If archive_cmds runs LD, not CC, wlarc should be empty
13928 wlarc='${wl}'
13929
13930 # Set some defaults for GNU ld with shared library support. These
13931 # are reset later if shared libraries are not supported. Putting them
13932 # here allows them to be overridden if necessary.
13933 runpath_var=LD_RUN_PATH
13934 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13935 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13936 # ancient GNU ld didn't support --whole-archive et. al.
13937 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13938 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13939 else
13940 whole_archive_flag_spec_F77=
13941 fi
13942 supports_anon_versioning=no
13943 case `$LD -v 2>/dev/null` in
13944 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13945 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13946 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13947 *\ 2.11.*) ;; # other 2.11 versions
13948 *) supports_anon_versioning=yes ;;
13949 esac
13950
13951 # See if GNU ld supports shared libraries.
13952 case $host_os in
13953 aix3* | aix4* | aix5*)
13954 # On AIX/PPC, the GNU linker is very broken
13955 if test "$host_cpu" != ia64; then
13956 ld_shlibs_F77=no
13957 cat <<EOF 1>&2
13958
13959 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13960 *** to be unable to reliably create shared libraries on AIX.
13961 *** Therefore, libtool is disabling shared libraries support. If you
13962 *** really care for shared libraries, you may want to modify your PATH
13963 *** so that a non-GNU linker is found, and then restart.
13964
13965 EOF
13966 fi
13967 ;;
13968
13969 amigaos*)
13970 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)'
13971 hardcode_libdir_flag_spec_F77='-L$libdir'
13972 hardcode_minus_L_F77=yes
13973
13974 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
13975 # that the semantics of dynamic libraries on AmigaOS, at least up
13976 # to version 4, is to share data among multiple programs linked
13977 # with the same dynamic library. Since this doesn't match the
13978 # behavior of shared libraries on other platforms, we can't use
13979 # them.
13980 ld_shlibs_F77=no
13981 ;;
13982
13983 beos*)
13984 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13985 allow_undefined_flag_F77=unsupported
13986 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
13987 # support --undefined. This deserves some investigation. FIXME
13988 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13989 else
13990 ld_shlibs_F77=no
13991 fi
13992 ;;
13993
13994 cygwin* | mingw* | pw32*)
13995 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13996 # as there is no search path for DLLs.
13997 hardcode_libdir_flag_spec_F77='-L$libdir'
13998 allow_undefined_flag_F77=unsupported
13999 always_export_symbols_F77=no
14000 enable_shared_with_static_runtimes_F77=yes
14001 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14002
14003 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14004 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14005 # If the export-symbols file already is a .def file (1st line
14006 # is EXPORTS), use it as is; otherwise, prepend...
14007 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14008 cp $export_symbols $output_objdir/$soname.def;
14009 else
14010 echo EXPORTS > $output_objdir/$soname.def;
14011 cat $export_symbols >> $output_objdir/$soname.def;
14012 fi~
14013 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14014 else
14015 ld_shlibs_F77=no
14016 fi
14017 ;;
14018
14019 linux*)
14020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14021 tmp_addflag=
14022 case $cc_basename,$host_cpu in
14023 pgcc*) # Portland Group C compiler
14024 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'
14025 tmp_addflag=' $pic_flag'
14026 ;;
14027 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14028 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'
14029 tmp_addflag=' $pic_flag -Mnomain' ;;
14030 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14031 tmp_addflag=' -i_dynamic' ;;
14032 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14033 tmp_addflag=' -i_dynamic -nofor_main' ;;
14034 ifc* | ifort*) # Intel Fortran compiler
14035 tmp_addflag=' -nofor_main' ;;
14036 esac
14037 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14038
14039 if test $supports_anon_versioning = yes; then
14040 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14042 $echo "local: *; };" >> $output_objdir/$libname.ver~
14043 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14044 fi
14045 else
14046 ld_shlibs_F77=no
14047 fi
14048 ;;
14049
14050 netbsd*)
14051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14052 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14053 wlarc=
14054 else
14055 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14056 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14057 fi
14058 ;;
14059
14060 solaris* | sysv5*)
14061 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14062 ld_shlibs_F77=no
14063 cat <<EOF 1>&2
14064
14065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14066 *** create shared libraries on Solaris systems. Therefore, libtool
14067 *** is disabling shared libraries support. We urge you to upgrade GNU
14068 *** binutils to release 2.9.1 or newer. Another option is to modify
14069 *** your PATH or compiler configuration so that the native linker is
14070 *** used, and then restart.
14071
14072 EOF
14073 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14074 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14075 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14076 else
14077 ld_shlibs_F77=no
14078 fi
14079 ;;
14080
14081 sunos4*)
14082 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14083 wlarc=
14084 hardcode_direct_F77=yes
14085 hardcode_shlibpath_var_F77=no
14086 ;;
14087
14088 *)
14089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14090 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14091 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14092 else
14093 ld_shlibs_F77=no
14094 fi
14095 ;;
14096 esac
14097
14098 if test "$ld_shlibs_F77" = no; then
14099 runpath_var=
14100 hardcode_libdir_flag_spec_F77=
14101 export_dynamic_flag_spec_F77=
14102 whole_archive_flag_spec_F77=
14103 fi
14104 else
14105 # PORTME fill in a description of your system's linker (not GNU ld)
14106 case $host_os in
14107 aix3*)
14108 allow_undefined_flag_F77=unsupported
14109 always_export_symbols_F77=yes
14110 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'
14111 # Note: this linker hardcodes the directories in LIBPATH if there
14112 # are no directories specified by -L.
14113 hardcode_minus_L_F77=yes
14114 if test "$GCC" = yes && test -z "$link_static_flag"; then
14115 # Neither direct hardcoding nor static linking is supported with a
14116 # broken collect2.
14117 hardcode_direct_F77=unsupported
14118 fi
14119 ;;
14120
14121 aix4* | aix5*)
14122 if test "$host_cpu" = ia64; then
14123 # On IA64, the linker does run time linking by default, so we don't
14124 # have to do anything special.
14125 aix_use_runtimelinking=no
14126 exp_sym_flag='-Bexport'
14127 no_entry_flag=""
14128 else
14129 # If we're using GNU nm, then we don't want the "-C" option.
14130 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14131 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14132 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'
14133 else
14134 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'
14135 fi
14136 aix_use_runtimelinking=no
14137
14138 # Test if we are trying to use run time linking or normal
14139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14140 # need to do runtime linking.
14141 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14142 for ld_flag in $LDFLAGS; do
14143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14144 aix_use_runtimelinking=yes
14145 break
14146 fi
14147 done
14148 esac
14149
14150 exp_sym_flag='-bexport'
14151 no_entry_flag='-bnoentry'
14152 fi
14153
14154 # When large executables or shared objects are built, AIX ld can
14155 # have problems creating the table of contents. If linking a library
14156 # or program results in "error TOC overflow" add -mminimal-toc to
14157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14159
14160 archive_cmds_F77=''
14161 hardcode_direct_F77=yes
14162 hardcode_libdir_separator_F77=':'
14163 link_all_deplibs_F77=yes
14164
14165 if test "$GCC" = yes; then
14166 case $host_os in aix4.[012]|aix4.[012].*)
14167 # We only want to do this on AIX 4.2 and lower, the check
14168 # below for broken collect2 doesn't work under 4.3+
14169 collect2name=`${CC} -print-prog-name=collect2`
14170 if test -f "$collect2name" && \
14171 strings "$collect2name" | grep resolve_lib_name >/dev/null
14172 then
14173 # We have reworked collect2
14174 hardcode_direct_F77=yes
14175 else
14176 # We have old collect2
14177 hardcode_direct_F77=unsupported
14178 # It fails to find uninstalled libraries when the uninstalled
14179 # path is not listed in the libpath. Setting hardcode_minus_L
14180 # to unsupported forces relinking
14181 hardcode_minus_L_F77=yes
14182 hardcode_libdir_flag_spec_F77='-L$libdir'
14183 hardcode_libdir_separator_F77=
14184 fi
14185 esac
14186 shared_flag='-shared'
14187 if test "$aix_use_runtimelinking" = yes; then
14188 shared_flag="$shared_flag "'${wl}-G'
14189 fi
14190 else
14191 # not using gcc
14192 if test "$host_cpu" = ia64; then
14193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14194 # chokes on -Wl,-G. The following line is correct:
14195 shared_flag='-G'
14196 else
14197 if test "$aix_use_runtimelinking" = yes; then
14198 shared_flag='${wl}-G'
14199 else
14200 shared_flag='${wl}-bM:SRE'
14201 fi
14202 fi
14203 fi
14204
14205 # It seems that -bexpall does not export symbols beginning with
14206 # underscore (_), so it is better to generate a list of symbols to export.
14207 always_export_symbols_F77=yes
14208 if test "$aix_use_runtimelinking" = yes; then
14209 # Warning - without using the other runtime loading flags (-brtl),
14210 # -berok will link without error, but may produce a broken library.
14211 allow_undefined_flag_F77='-berok'
14212 # Determine the default libpath from the value encoded in an empty executable.
14213 cat >conftest.$ac_ext <<_ACEOF
14214 program main
14215
14216 end
14217 _ACEOF
14218 rm -f conftest.$ac_objext conftest$ac_exeext
14219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14220 (eval $ac_link) 2>conftest.er1
14221 ac_status=$?
14222 grep -v '^ *+' conftest.er1 >conftest.err
14223 rm -f conftest.er1
14224 cat conftest.err >&5
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
14227 { ac_try='test -z "$ac_f77_werror_flag"
14228 || test ! -s conftest.err'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; } &&
14234 { ac_try='test -s conftest$ac_exeext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240
14241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14242 }'`
14243 # Check for a 64-bit object if we didn't find anything.
14244 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; }
14245 }'`; fi
14246 else
14247 echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14249
14250 fi
14251 rm -f conftest.err conftest.$ac_objext \
14252 conftest$ac_exeext conftest.$ac_ext
14253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14254
14255 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14256 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14257 else
14258 if test "$host_cpu" = ia64; then
14259 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14260 allow_undefined_flag_F77="-z nodefs"
14261 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14262 else
14263 # Determine the default libpath from the value encoded in an empty executable.
14264 cat >conftest.$ac_ext <<_ACEOF
14265 program main
14266
14267 end
14268 _ACEOF
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14271 (eval $ac_link) 2>conftest.er1
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -z "$ac_f77_werror_flag"
14279 || test ! -s conftest.err'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest$ac_exeext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291
14292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14293 }'`
14294 # Check for a 64-bit object if we didn't find anything.
14295 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; }
14296 }'`; fi
14297 else
14298 echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.$ac_ext >&5
14300
14301 fi
14302 rm -f conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
14304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14305
14306 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14307 # Warning - without using the other run time loading flags,
14308 # -berok will link without error, but may produce a broken library.
14309 no_undefined_flag_F77=' ${wl}-bernotok'
14310 allow_undefined_flag_F77=' ${wl}-berok'
14311 # -bexpall does not export symbols beginning with underscore (_)
14312 always_export_symbols_F77=yes
14313 # Exported symbols can be pulled into shared objects from archives
14314 whole_archive_flag_spec_F77=' '
14315 archive_cmds_need_lc_F77=yes
14316 # This is similar to how AIX traditionally builds its shared libraries.
14317 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14318 fi
14319 fi
14320 ;;
14321
14322 amigaos*)
14323 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)'
14324 hardcode_libdir_flag_spec_F77='-L$libdir'
14325 hardcode_minus_L_F77=yes
14326 # see comment about different semantics on the GNU ld section
14327 ld_shlibs_F77=no
14328 ;;
14329
14330 bsdi[45]*)
14331 export_dynamic_flag_spec_F77=-rdynamic
14332 ;;
14333
14334 cygwin* | mingw* | pw32*)
14335 # When not using gcc, we currently assume that we are using
14336 # Microsoft Visual C++.
14337 # hardcode_libdir_flag_spec is actually meaningless, as there is
14338 # no search path for DLLs.
14339 hardcode_libdir_flag_spec_F77=' '
14340 allow_undefined_flag_F77=unsupported
14341 # Tell ltmain to make .lib files, not .a files.
14342 libext=lib
14343 # Tell ltmain to make .dll files, not .so files.
14344 shrext_cmds=".dll"
14345 # FIXME: Setting linknames here is a bad hack.
14346 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14347 # The linker will automatically build a .lib file if we build a DLL.
14348 old_archive_From_new_cmds_F77='true'
14349 # FIXME: Should let the user specify the lib program.
14350 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14351 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14352 enable_shared_with_static_runtimes_F77=yes
14353 ;;
14354
14355 darwin* | rhapsody*)
14356 case $host_os in
14357 rhapsody* | darwin1.[012])
14358 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14359 ;;
14360 *) # Darwin 1.3 on
14361 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14362 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14363 else
14364 case ${MACOSX_DEPLOYMENT_TARGET} in
14365 10.[012])
14366 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14367 ;;
14368 10.*)
14369 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14370 ;;
14371 esac
14372 fi
14373 ;;
14374 esac
14375 archive_cmds_need_lc_F77=no
14376 hardcode_direct_F77=no
14377 hardcode_automatic_F77=yes
14378 hardcode_shlibpath_var_F77=unsupported
14379 whole_archive_flag_spec_F77=''
14380 link_all_deplibs_F77=yes
14381 if test "$GCC" = yes ; then
14382 output_verbose_link_cmd='echo'
14383 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14384 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14385 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14386 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}'
14387 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}'
14388 else
14389 case $cc_basename in
14390 xlc*)
14391 output_verbose_link_cmd='echo'
14392 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14393 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14394 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14395 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}'
14396 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}'
14397 ;;
14398 *)
14399 ld_shlibs_F77=no
14400 ;;
14401 esac
14402 fi
14403 ;;
14404
14405 dgux*)
14406 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407 hardcode_libdir_flag_spec_F77='-L$libdir'
14408 hardcode_shlibpath_var_F77=no
14409 ;;
14410
14411 freebsd1*)
14412 ld_shlibs_F77=no
14413 ;;
14414
14415 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14416 # support. Future versions do this automatically, but an explicit c++rt0.o
14417 # does not break anything, and helps significantly (at the cost of a little
14418 # extra space).
14419 freebsd2.2*)
14420 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14421 hardcode_libdir_flag_spec_F77='-R$libdir'
14422 hardcode_direct_F77=yes
14423 hardcode_shlibpath_var_F77=no
14424 ;;
14425
14426 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14427 freebsd2*)
14428 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14429 hardcode_direct_F77=yes
14430 hardcode_minus_L_F77=yes
14431 hardcode_shlibpath_var_F77=no
14432 ;;
14433
14434 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14435 freebsd* | kfreebsd*-gnu | dragonfly*)
14436 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14437 hardcode_libdir_flag_spec_F77='-R$libdir'
14438 hardcode_direct_F77=yes
14439 hardcode_shlibpath_var_F77=no
14440 ;;
14441
14442 hpux9*)
14443 if test "$GCC" = yes; then
14444 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'
14445 else
14446 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'
14447 fi
14448 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14449 hardcode_libdir_separator_F77=:
14450 hardcode_direct_F77=yes
14451
14452 # hardcode_minus_L: Not really in the search PATH,
14453 # but as the default location of the library.
14454 hardcode_minus_L_F77=yes
14455 export_dynamic_flag_spec_F77='${wl}-E'
14456 ;;
14457
14458 hpux10* | hpux11*)
14459 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14460 case $host_cpu in
14461 hppa*64*|ia64*)
14462 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14463 ;;
14464 *)
14465 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14466 ;;
14467 esac
14468 else
14469 case $host_cpu in
14470 hppa*64*|ia64*)
14471 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14472 ;;
14473 *)
14474 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14475 ;;
14476 esac
14477 fi
14478 if test "$with_gnu_ld" = no; then
14479 case $host_cpu in
14480 hppa*64*)
14481 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14482 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14483 hardcode_libdir_separator_F77=:
14484 hardcode_direct_F77=no
14485 hardcode_shlibpath_var_F77=no
14486 ;;
14487 ia64*)
14488 hardcode_libdir_flag_spec_F77='-L$libdir'
14489 hardcode_direct_F77=no
14490 hardcode_shlibpath_var_F77=no
14491
14492 # hardcode_minus_L: Not really in the search PATH,
14493 # but as the default location of the library.
14494 hardcode_minus_L_F77=yes
14495 ;;
14496 *)
14497 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14498 hardcode_libdir_separator_F77=:
14499 hardcode_direct_F77=yes
14500 export_dynamic_flag_spec_F77='${wl}-E'
14501
14502 # hardcode_minus_L: Not really in the search PATH,
14503 # but as the default location of the library.
14504 hardcode_minus_L_F77=yes
14505 ;;
14506 esac
14507 fi
14508 ;;
14509
14510 irix5* | irix6* | nonstopux*)
14511 if test "$GCC" = yes; then
14512 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'
14513 else
14514 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'
14515 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14516 fi
14517 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14518 hardcode_libdir_separator_F77=:
14519 link_all_deplibs_F77=yes
14520 ;;
14521
14522 netbsd*)
14523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14524 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14525 else
14526 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14527 fi
14528 hardcode_libdir_flag_spec_F77='-R$libdir'
14529 hardcode_direct_F77=yes
14530 hardcode_shlibpath_var_F77=no
14531 ;;
14532
14533 newsos6)
14534 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14535 hardcode_direct_F77=yes
14536 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14537 hardcode_libdir_separator_F77=:
14538 hardcode_shlibpath_var_F77=no
14539 ;;
14540
14541 openbsd*)
14542 hardcode_direct_F77=yes
14543 hardcode_shlibpath_var_F77=no
14544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14545 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14546 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14547 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14548 export_dynamic_flag_spec_F77='${wl}-E'
14549 else
14550 case $host_os in
14551 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14552 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14553 hardcode_libdir_flag_spec_F77='-R$libdir'
14554 ;;
14555 *)
14556 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14557 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14558 ;;
14559 esac
14560 fi
14561 ;;
14562
14563 os2*)
14564 hardcode_libdir_flag_spec_F77='-L$libdir'
14565 hardcode_minus_L_F77=yes
14566 allow_undefined_flag_F77=unsupported
14567 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'
14568 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14569 ;;
14570
14571 osf3*)
14572 if test "$GCC" = yes; then
14573 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14574 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'
14575 else
14576 allow_undefined_flag_F77=' -expect_unresolved \*'
14577 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'
14578 fi
14579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14580 hardcode_libdir_separator_F77=:
14581 ;;
14582
14583 osf4* | osf5*) # as osf3* with the addition of -msym flag
14584 if test "$GCC" = yes; then
14585 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14586 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'
14587 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14588 else
14589 allow_undefined_flag_F77=' -expect_unresolved \*'
14590 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'
14591 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~
14592 $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'
14593
14594 # Both c and cxx compiler support -rpath directly
14595 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14596 fi
14597 hardcode_libdir_separator_F77=:
14598 ;;
14599
14600 sco3.2v5*)
14601 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602 hardcode_shlibpath_var_F77=no
14603 export_dynamic_flag_spec_F77='${wl}-Bexport'
14604 runpath_var=LD_RUN_PATH
14605 hardcode_runpath_var=yes
14606 ;;
14607
14608 solaris*)
14609 no_undefined_flag_F77=' -z text'
14610 if test "$GCC" = yes; then
14611 wlarc='${wl}'
14612 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14613 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14614 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14615 else
14616 wlarc=''
14617 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14618 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14620 fi
14621 hardcode_libdir_flag_spec_F77='-R$libdir'
14622 hardcode_shlibpath_var_F77=no
14623 case $host_os in
14624 solaris2.[0-5] | solaris2.[0-5].*) ;;
14625 *)
14626 # The compiler driver will combine linker options so we
14627 # cannot just pass the convience library names through
14628 # without $wl, iff we do not link with $LD.
14629 # Luckily, gcc supports the same syntax we need for Sun Studio.
14630 # Supported since Solaris 2.6 (maybe 2.5.1?)
14631 case $wlarc in
14632 '')
14633 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14634 *)
14635 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' ;;
14636 esac ;;
14637 esac
14638 link_all_deplibs_F77=yes
14639 ;;
14640
14641 sunos4*)
14642 if test "x$host_vendor" = xsequent; then
14643 # Use $CC to link under sequent, because it throws in some extra .o
14644 # files that make .init and .fini sections work.
14645 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14646 else
14647 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14648 fi
14649 hardcode_libdir_flag_spec_F77='-L$libdir'
14650 hardcode_direct_F77=yes
14651 hardcode_minus_L_F77=yes
14652 hardcode_shlibpath_var_F77=no
14653 ;;
14654
14655 sysv4)
14656 case $host_vendor in
14657 sni)
14658 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14659 hardcode_direct_F77=yes # is this really true???
14660 ;;
14661 siemens)
14662 ## LD is ld it makes a PLAMLIB
14663 ## CC just makes a GrossModule.
14664 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14665 reload_cmds_F77='$CC -r -o $output$reload_objs'
14666 hardcode_direct_F77=no
14667 ;;
14668 motorola)
14669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14670 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14671 ;;
14672 esac
14673 runpath_var='LD_RUN_PATH'
14674 hardcode_shlibpath_var_F77=no
14675 ;;
14676
14677 sysv4.3*)
14678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14679 hardcode_shlibpath_var_F77=no
14680 export_dynamic_flag_spec_F77='-Bexport'
14681 ;;
14682
14683 sysv4*MP*)
14684 if test -d /usr/nec; then
14685 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14686 hardcode_shlibpath_var_F77=no
14687 runpath_var=LD_RUN_PATH
14688 hardcode_runpath_var=yes
14689 ld_shlibs_F77=yes
14690 fi
14691 ;;
14692
14693 sysv4.2uw2*)
14694 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14695 hardcode_direct_F77=yes
14696 hardcode_minus_L_F77=no
14697 hardcode_shlibpath_var_F77=no
14698 hardcode_runpath_var=yes
14699 runpath_var=LD_RUN_PATH
14700 ;;
14701
14702 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14703 no_undefined_flag_F77='${wl}-z ${wl}text'
14704 if test "$GCC" = yes; then
14705 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14706 else
14707 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14708 fi
14709 runpath_var='LD_RUN_PATH'
14710 hardcode_shlibpath_var_F77=no
14711 ;;
14712
14713 sysv5*)
14714 no_undefined_flag_F77=' -z text'
14715 # $CC -shared without GNU ld will not create a library from C++
14716 # object files and a static libstdc++, better avoid it by now
14717 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14718 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14719 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14720 hardcode_libdir_flag_spec_F77=
14721 hardcode_shlibpath_var_F77=no
14722 runpath_var='LD_RUN_PATH'
14723 ;;
14724
14725 uts4*)
14726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14727 hardcode_libdir_flag_spec_F77='-L$libdir'
14728 hardcode_shlibpath_var_F77=no
14729 ;;
14730
14731 *)
14732 ld_shlibs_F77=no
14733 ;;
14734 esac
14735 fi
14736
14737 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14738 echo "${ECHO_T}$ld_shlibs_F77" >&6
14739 test "$ld_shlibs_F77" = no && can_build_shared=no
14740
14741 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14742 if test "$GCC" = yes; then
14743 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14744 fi
14745
14746 #
14747 # Do we need to explicitly link libc?
14748 #
14749 case "x$archive_cmds_need_lc_F77" in
14750 x|xyes)
14751 # Assume -lc should be added
14752 archive_cmds_need_lc_F77=yes
14753
14754 if test "$enable_shared" = yes && test "$GCC" = yes; then
14755 case $archive_cmds_F77 in
14756 *'~'*)
14757 # FIXME: we may have to deal with multi-command sequences.
14758 ;;
14759 '$CC '*)
14760 # Test whether the compiler implicitly links with -lc since on some
14761 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14762 # to ld, don't add -lc before -lgcc.
14763 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14764 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14765 $rm conftest*
14766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14767
14768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769 (eval $ac_compile) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } 2>conftest.err; then
14773 soname=conftest
14774 lib=conftest
14775 libobjs=conftest.$ac_objext
14776 deplibs=
14777 wl=$lt_prog_compiler_wl_F77
14778 compiler_flags=-v
14779 linker_flags=-v
14780 verstring=
14781 output_objdir=.
14782 libname=conftest
14783 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14784 allow_undefined_flag_F77=
14785 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14786 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14787 ac_status=$?
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }
14790 then
14791 archive_cmds_need_lc_F77=no
14792 else
14793 archive_cmds_need_lc_F77=yes
14794 fi
14795 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14796 else
14797 cat conftest.err 1>&5
14798 fi
14799 $rm conftest*
14800 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14801 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14802 ;;
14803 esac
14804 fi
14805 ;;
14806 esac
14807
14808 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14809 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14810 library_names_spec=
14811 libname_spec='lib$name'
14812 soname_spec=
14813 shrext_cmds=".so"
14814 postinstall_cmds=
14815 postuninstall_cmds=
14816 finish_cmds=
14817 finish_eval=
14818 shlibpath_var=
14819 shlibpath_overrides_runpath=unknown
14820 version_type=none
14821 dynamic_linker="$host_os ld.so"
14822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14823 if test "$GCC" = yes; then
14824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14825 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14826 # if the path contains ";" then we assume it to be the separator
14827 # otherwise default to the standard path separator (i.e. ":") - it is
14828 # assumed that no part of a normal pathname contains ";" but that should
14829 # okay in the real world where ";" in dirpaths is itself problematic.
14830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14831 else
14832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14833 fi
14834 else
14835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14836 fi
14837 need_lib_prefix=unknown
14838 hardcode_into_libs=no
14839
14840 # when you set need_version to no, make sure it does not cause -set_version
14841 # flags to be left without arguments
14842 need_version=unknown
14843
14844 case $host_os in
14845 aix3*)
14846 version_type=linux
14847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14848 shlibpath_var=LIBPATH
14849
14850 # AIX 3 has no versioning support, so we append a major version to the name.
14851 soname_spec='${libname}${release}${shared_ext}$major'
14852 ;;
14853
14854 aix4* | aix5*)
14855 version_type=linux
14856 need_lib_prefix=no
14857 need_version=no
14858 hardcode_into_libs=yes
14859 if test "$host_cpu" = ia64; then
14860 # AIX 5 supports IA64
14861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14862 shlibpath_var=LD_LIBRARY_PATH
14863 else
14864 # With GCC up to 2.95.x, collect2 would create an import file
14865 # for dependence libraries. The import file would start with
14866 # the line `#! .'. This would cause the generated library to
14867 # depend on `.', always an invalid library. This was fixed in
14868 # development snapshots of GCC prior to 3.0.
14869 case $host_os in
14870 aix4 | aix4.[01] | aix4.[01].*)
14871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14872 echo ' yes '
14873 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14874 :
14875 else
14876 can_build_shared=no
14877 fi
14878 ;;
14879 esac
14880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14881 # soname into executable. Probably we can add versioning support to
14882 # collect2, so additional links can be useful in future.
14883 if test "$aix_use_runtimelinking" = yes; then
14884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14885 # instead of lib<name>.a to let people know that these are not
14886 # typical AIX shared libraries.
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 else
14889 # We preserve .a as extension for shared libraries through AIX4.2
14890 # and later when we are not doing run time linking.
14891 library_names_spec='${libname}${release}.a $libname.a'
14892 soname_spec='${libname}${release}${shared_ext}$major'
14893 fi
14894 shlibpath_var=LIBPATH
14895 fi
14896 ;;
14897
14898 amigaos*)
14899 library_names_spec='$libname.ixlibrary $libname.a'
14900 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14901 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'
14902 ;;
14903
14904 beos*)
14905 library_names_spec='${libname}${shared_ext}'
14906 dynamic_linker="$host_os ld.so"
14907 shlibpath_var=LIBRARY_PATH
14908 ;;
14909
14910 bsdi[45]*)
14911 version_type=linux
14912 need_version=no
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14916 shlibpath_var=LD_LIBRARY_PATH
14917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14919 # the default ld.so.conf also contains /usr/contrib/lib and
14920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14921 # libtool to hard-code these into programs
14922 ;;
14923
14924 cygwin* | mingw* | pw32*)
14925 version_type=windows
14926 shrext_cmds=".dll"
14927 need_version=no
14928 need_lib_prefix=no
14929
14930 case $GCC,$host_os in
14931 yes,cygwin* | yes,mingw* | yes,pw32*)
14932 library_names_spec='$libname.dll.a'
14933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14934 postinstall_cmds='base_file=`basename \${file}`~
14935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14936 dldir=$destdir/`dirname \$dlpath`~
14937 test -d \$dldir || mkdir -p \$dldir~
14938 $install_prog $dir/$dlname \$dldir/$dlname~
14939 chmod a+x \$dldir/$dlname'
14940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14941 dlpath=$dir/\$dldll~
14942 $rm \$dlpath'
14943 shlibpath_overrides_runpath=yes
14944
14945 case $host_os in
14946 cygwin*)
14947 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14948 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14949 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14950 ;;
14951 mingw*)
14952 # MinGW DLLs use traditional 'lib' prefix
14953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14955 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14956 # It is most probably a Windows format PATH printed by
14957 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14958 # path with ; separators, and with drive letters. We can handle the
14959 # drive letters (cygwin fileutils understands them), so leave them,
14960 # especially as we might pass files found there to a mingw objdump,
14961 # which wouldn't understand a cygwinified path. Ahh.
14962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14963 else
14964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14965 fi
14966 ;;
14967 pw32*)
14968 # pw32 DLLs use 'pw' prefix rather than 'lib'
14969 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14970 ;;
14971 esac
14972 ;;
14973
14974 *)
14975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14976 ;;
14977 esac
14978 dynamic_linker='Win32 ld.exe'
14979 # FIXME: first we should search . and the directory the executable is in
14980 shlibpath_var=PATH
14981 ;;
14982
14983 darwin* | rhapsody*)
14984 dynamic_linker="$host_os dyld"
14985 version_type=darwin
14986 need_lib_prefix=no
14987 need_version=no
14988 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14989 soname_spec='${libname}${release}${major}$shared_ext'
14990 shlibpath_overrides_runpath=yes
14991 shlibpath_var=DYLD_LIBRARY_PATH
14992 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14993 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14994 if test "$GCC" = yes; then
14995 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"`
14996 else
14997 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14998 fi
14999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15000 ;;
15001
15002 dgux*)
15003 version_type=linux
15004 need_lib_prefix=no
15005 need_version=no
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15007 soname_spec='${libname}${release}${shared_ext}$major'
15008 shlibpath_var=LD_LIBRARY_PATH
15009 ;;
15010
15011 freebsd1*)
15012 dynamic_linker=no
15013 ;;
15014
15015 kfreebsd*-gnu)
15016 version_type=linux
15017 need_lib_prefix=no
15018 need_version=no
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15020 soname_spec='${libname}${release}${shared_ext}$major'
15021 shlibpath_var=LD_LIBRARY_PATH
15022 shlibpath_overrides_runpath=no
15023 hardcode_into_libs=yes
15024 dynamic_linker='GNU ld.so'
15025 ;;
15026
15027 freebsd* | dragonfly*)
15028 # DragonFly does not have aout. When/if they implement a new
15029 # versioning mechanism, adjust this.
15030 if test -x /usr/bin/objformat; then
15031 objformat=`/usr/bin/objformat`
15032 else
15033 case $host_os in
15034 freebsd[123]*) objformat=aout ;;
15035 *) objformat=elf ;;
15036 esac
15037 fi
15038 version_type=freebsd-$objformat
15039 case $version_type in
15040 freebsd-elf*)
15041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15042 need_version=no
15043 need_lib_prefix=no
15044 ;;
15045 freebsd-*)
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15047 need_version=yes
15048 ;;
15049 esac
15050 shlibpath_var=LD_LIBRARY_PATH
15051 case $host_os in
15052 freebsd2*)
15053 shlibpath_overrides_runpath=yes
15054 ;;
15055 freebsd3.[01]* | freebsdelf3.[01]*)
15056 shlibpath_overrides_runpath=yes
15057 hardcode_into_libs=yes
15058 ;;
15059 *) # from 3.2 on
15060 shlibpath_overrides_runpath=no
15061 hardcode_into_libs=yes
15062 ;;
15063 esac
15064 ;;
15065
15066 gnu*)
15067 version_type=linux
15068 need_lib_prefix=no
15069 need_version=no
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 hardcode_into_libs=yes
15074 ;;
15075
15076 hpux9* | hpux10* | hpux11*)
15077 # Give a soname corresponding to the major version so that dld.sl refuses to
15078 # link against other versions.
15079 version_type=sunos
15080 need_lib_prefix=no
15081 need_version=no
15082 case $host_cpu in
15083 ia64*)
15084 shrext_cmds='.so'
15085 hardcode_into_libs=yes
15086 dynamic_linker="$host_os dld.so"
15087 shlibpath_var=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 if test "X$HPUX_IA64_MODE" = X32; then
15092 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15093 else
15094 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15095 fi
15096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15097 ;;
15098 hppa*64*)
15099 shrext_cmds='.sl'
15100 hardcode_into_libs=yes
15101 dynamic_linker="$host_os dld.sl"
15102 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 soname_spec='${libname}${release}${shared_ext}$major'
15106 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15108 ;;
15109 *)
15110 shrext_cmds='.sl'
15111 dynamic_linker="$host_os dld.sl"
15112 shlibpath_var=SHLIB_PATH
15113 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 ;;
15117 esac
15118 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15119 postinstall_cmds='chmod 555 $lib'
15120 ;;
15121
15122 irix5* | irix6* | nonstopux*)
15123 case $host_os in
15124 nonstopux*) version_type=nonstopux ;;
15125 *)
15126 if test "$lt_cv_prog_gnu_ld" = yes; then
15127 version_type=linux
15128 else
15129 version_type=irix
15130 fi ;;
15131 esac
15132 need_lib_prefix=no
15133 need_version=no
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15136 case $host_os in
15137 irix5* | nonstopux*)
15138 libsuff= shlibsuff=
15139 ;;
15140 *)
15141 case $LD in # libtool.m4 will add one of these switches to LD
15142 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15143 libsuff= shlibsuff= libmagic=32-bit;;
15144 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15145 libsuff=32 shlibsuff=N32 libmagic=N32;;
15146 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15147 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15148 *) libsuff= shlibsuff= libmagic=never-match;;
15149 esac
15150 ;;
15151 esac
15152 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15153 shlibpath_overrides_runpath=no
15154 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15155 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15156 hardcode_into_libs=yes
15157 ;;
15158
15159 # No shared lib support for Linux oldld, aout, or coff.
15160 linux*oldld* | linux*aout* | linux*coff*)
15161 dynamic_linker=no
15162 ;;
15163
15164 # This must be Linux ELF.
15165 linux*)
15166 version_type=linux
15167 need_lib_prefix=no
15168 need_version=no
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15172 shlibpath_var=LD_LIBRARY_PATH
15173 shlibpath_overrides_runpath=no
15174 # This implies no fast_install, which is unacceptable.
15175 # Some rework will be needed to allow for fast_install
15176 # before this can be enabled.
15177 hardcode_into_libs=yes
15178
15179 # Append ld.so.conf contents to the search path
15180 if test -f /etc/ld.so.conf; then
15181 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' ' '`
15182 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15183 fi
15184
15185 # We used to test for /lib/ld.so.1 and disable shared libraries on
15186 # powerpc, because MkLinux only supported shared libraries with the
15187 # GNU dynamic linker. Since this was broken with cross compilers,
15188 # most powerpc-linux boxes support dynamic linking these days and
15189 # people can always --disable-shared, the test was removed, and we
15190 # assume the GNU/Linux dynamic linker is in use.
15191 dynamic_linker='GNU/Linux ld.so'
15192 ;;
15193
15194 knetbsd*-gnu)
15195 version_type=linux
15196 need_lib_prefix=no
15197 need_version=no
15198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=no
15202 hardcode_into_libs=yes
15203 dynamic_linker='GNU ld.so'
15204 ;;
15205
15206 netbsd*)
15207 version_type=sunos
15208 need_lib_prefix=no
15209 need_version=no
15210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15213 dynamic_linker='NetBSD (a.out) ld.so'
15214 else
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15217 dynamic_linker='NetBSD ld.elf_so'
15218 fi
15219 shlibpath_var=LD_LIBRARY_PATH
15220 shlibpath_overrides_runpath=yes
15221 hardcode_into_libs=yes
15222 ;;
15223
15224 newsos6)
15225 version_type=linux
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=yes
15229 ;;
15230
15231 nto-qnx*)
15232 version_type=linux
15233 need_lib_prefix=no
15234 need_version=no
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LD_LIBRARY_PATH
15238 shlibpath_overrides_runpath=yes
15239 ;;
15240
15241 openbsd*)
15242 version_type=sunos
15243 need_lib_prefix=no
15244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15245 case $host_os in
15246 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15247 *) need_version=no ;;
15248 esac
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15251 shlibpath_var=LD_LIBRARY_PATH
15252 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15253 case $host_os in
15254 openbsd2.[89] | openbsd2.[89].*)
15255 shlibpath_overrides_runpath=no
15256 ;;
15257 *)
15258 shlibpath_overrides_runpath=yes
15259 ;;
15260 esac
15261 else
15262 shlibpath_overrides_runpath=yes
15263 fi
15264 ;;
15265
15266 os2*)
15267 libname_spec='$name'
15268 shrext_cmds=".dll"
15269 need_lib_prefix=no
15270 library_names_spec='$libname${shared_ext} $libname.a'
15271 dynamic_linker='OS/2 ld.exe'
15272 shlibpath_var=LIBPATH
15273 ;;
15274
15275 osf3* | osf4* | osf5*)
15276 version_type=osf
15277 need_lib_prefix=no
15278 need_version=no
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15284 ;;
15285
15286 sco3.2v5*)
15287 version_type=osf
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290 shlibpath_var=LD_LIBRARY_PATH
15291 ;;
15292
15293 solaris*)
15294 version_type=linux
15295 need_lib_prefix=no
15296 need_version=no
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 shlibpath_overrides_runpath=yes
15301 hardcode_into_libs=yes
15302 # ldd complains unless libraries are executable
15303 postinstall_cmds='chmod +x $lib'
15304 ;;
15305
15306 sunos4*)
15307 version_type=sunos
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15309 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15310 shlibpath_var=LD_LIBRARY_PATH
15311 shlibpath_overrides_runpath=yes
15312 if test "$with_gnu_ld" = yes; then
15313 need_lib_prefix=no
15314 fi
15315 need_version=yes
15316 ;;
15317
15318 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15319 version_type=linux
15320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321 soname_spec='${libname}${release}${shared_ext}$major'
15322 shlibpath_var=LD_LIBRARY_PATH
15323 case $host_vendor in
15324 sni)
15325 shlibpath_overrides_runpath=no
15326 need_lib_prefix=no
15327 export_dynamic_flag_spec='${wl}-Blargedynsym'
15328 runpath_var=LD_RUN_PATH
15329 ;;
15330 siemens)
15331 need_lib_prefix=no
15332 ;;
15333 motorola)
15334 need_lib_prefix=no
15335 need_version=no
15336 shlibpath_overrides_runpath=no
15337 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15338 ;;
15339 esac
15340 ;;
15341
15342 sysv4*MP*)
15343 if test -d /usr/nec ;then
15344 version_type=linux
15345 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15346 soname_spec='$libname${shared_ext}.$major'
15347 shlibpath_var=LD_LIBRARY_PATH
15348 fi
15349 ;;
15350
15351 uts4*)
15352 version_type=linux
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 ;;
15357
15358 *)
15359 dynamic_linker=no
15360 ;;
15361 esac
15362 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15363 echo "${ECHO_T}$dynamic_linker" >&6
15364 test "$dynamic_linker" = no && can_build_shared=no
15365
15366 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15368 hardcode_action_F77=
15369 if test -n "$hardcode_libdir_flag_spec_F77" || \
15370 test -n "$runpath_var_F77" || \
15371 test "X$hardcode_automatic_F77" = "Xyes" ; then
15372
15373 # We can hardcode non-existant directories.
15374 if test "$hardcode_direct_F77" != no &&
15375 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15376 # have to relink, otherwise we might link with an installed library
15377 # when we should be linking with a yet-to-be-installed one
15378 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15379 test "$hardcode_minus_L_F77" != no; then
15380 # Linking always hardcodes the temporary library directory.
15381 hardcode_action_F77=relink
15382 else
15383 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15384 hardcode_action_F77=immediate
15385 fi
15386 else
15387 # We cannot hardcode anything, or else we can only hardcode existing
15388 # directories.
15389 hardcode_action_F77=unsupported
15390 fi
15391 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15392 echo "${ECHO_T}$hardcode_action_F77" >&6
15393
15394 if test "$hardcode_action_F77" = relink; then
15395 # Fast installation is not supported
15396 enable_fast_install=no
15397 elif test "$shlibpath_overrides_runpath" = yes ||
15398 test "$enable_shared" = no; then
15399 # Fast installation is not necessary
15400 enable_fast_install=needless
15401 fi
15402
15403 striplib=
15404 old_striplib=
15405 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15406 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15407 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15408 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15409 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15410 echo "$as_me:$LINENO: result: yes" >&5
15411 echo "${ECHO_T}yes" >&6
15412 else
15413 # FIXME - insert some real tests, host_os isn't really good enough
15414 case $host_os in
15415 darwin*)
15416 if test -n "$STRIP" ; then
15417 striplib="$STRIP -x"
15418 echo "$as_me:$LINENO: result: yes" >&5
15419 echo "${ECHO_T}yes" >&6
15420 else
15421 echo "$as_me:$LINENO: result: no" >&5
15422 echo "${ECHO_T}no" >&6
15423 fi
15424 ;;
15425 *)
15426 echo "$as_me:$LINENO: result: no" >&5
15427 echo "${ECHO_T}no" >&6
15428 ;;
15429 esac
15430 fi
15431
15432
15433
15434 # The else clause should only fire when bootstrapping the
15435 # libtool distribution, otherwise you forgot to ship ltmain.sh
15436 # with your package, and you will get complaints that there are
15437 # no rules to generate ltmain.sh.
15438 if test -f "$ltmain"; then
15439 # See if we are running on zsh, and set the options which allow our commands through
15440 # without removal of \ escapes.
15441 if test -n "${ZSH_VERSION+set}" ; then
15442 setopt NO_GLOB_SUBST
15443 fi
15444 # Now quote all the things that may contain metacharacters while being
15445 # careful not to overquote the AC_SUBSTed values. We take copies of the
15446 # variables and quote the copies for generation of the libtool script.
15447 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15448 SED SHELL STRIP \
15449 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15450 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15451 deplibs_check_method reload_flag reload_cmds need_locks \
15452 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15453 lt_cv_sys_global_symbol_to_c_name_address \
15454 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15455 old_postinstall_cmds old_postuninstall_cmds \
15456 compiler_F77 \
15457 CC_F77 \
15458 LD_F77 \
15459 lt_prog_compiler_wl_F77 \
15460 lt_prog_compiler_pic_F77 \
15461 lt_prog_compiler_static_F77 \
15462 lt_prog_compiler_no_builtin_flag_F77 \
15463 export_dynamic_flag_spec_F77 \
15464 thread_safe_flag_spec_F77 \
15465 whole_archive_flag_spec_F77 \
15466 enable_shared_with_static_runtimes_F77 \
15467 old_archive_cmds_F77 \
15468 old_archive_from_new_cmds_F77 \
15469 predep_objects_F77 \
15470 postdep_objects_F77 \
15471 predeps_F77 \
15472 postdeps_F77 \
15473 compiler_lib_search_path_F77 \
15474 archive_cmds_F77 \
15475 archive_expsym_cmds_F77 \
15476 postinstall_cmds_F77 \
15477 postuninstall_cmds_F77 \
15478 old_archive_from_expsyms_cmds_F77 \
15479 allow_undefined_flag_F77 \
15480 no_undefined_flag_F77 \
15481 export_symbols_cmds_F77 \
15482 hardcode_libdir_flag_spec_F77 \
15483 hardcode_libdir_flag_spec_ld_F77 \
15484 hardcode_libdir_separator_F77 \
15485 hardcode_automatic_F77 \
15486 module_cmds_F77 \
15487 module_expsym_cmds_F77 \
15488 lt_cv_prog_compiler_c_o_F77 \
15489 exclude_expsyms_F77 \
15490 include_expsyms_F77; do
15491
15492 case $var in
15493 old_archive_cmds_F77 | \
15494 old_archive_from_new_cmds_F77 | \
15495 archive_cmds_F77 | \
15496 archive_expsym_cmds_F77 | \
15497 module_cmds_F77 | \
15498 module_expsym_cmds_F77 | \
15499 old_archive_from_expsyms_cmds_F77 | \
15500 export_symbols_cmds_F77 | \
15501 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15502 postinstall_cmds | postuninstall_cmds | \
15503 old_postinstall_cmds | old_postuninstall_cmds | \
15504 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15505 # Double-quote double-evaled strings.
15506 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15507 ;;
15508 *)
15509 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15510 ;;
15511 esac
15512 done
15513
15514 case $lt_echo in
15515 *'\$0 --fallback-echo"')
15516 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15517 ;;
15518 esac
15519
15520 cfgfile="$ofile"
15521
15522 cat <<__EOF__ >> "$cfgfile"
15523 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15524
15525 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15526
15527 # Shell to use when invoking shell scripts.
15528 SHELL=$lt_SHELL
15529
15530 # Whether or not to build shared libraries.
15531 build_libtool_libs=$enable_shared
15532
15533 # Whether or not to build static libraries.
15534 build_old_libs=$enable_static
15535
15536 # Whether or not to add -lc for building shared libraries.
15537 build_libtool_need_lc=$archive_cmds_need_lc_F77
15538
15539 # Whether or not to disallow shared libs when runtime libs are static
15540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15541
15542 # Whether or not to optimize for fast installation.
15543 fast_install=$enable_fast_install
15544
15545 # The host system.
15546 host_alias=$host_alias
15547 host=$host
15548 host_os=$host_os
15549
15550 # The build system.
15551 build_alias=$build_alias
15552 build=$build
15553 build_os=$build_os
15554
15555 # An echo program that does not interpret backslashes.
15556 echo=$lt_echo
15557
15558 # The archiver.
15559 AR=$lt_AR
15560 AR_FLAGS=$lt_AR_FLAGS
15561
15562 # A C compiler.
15563 LTCC=$lt_LTCC
15564
15565 # A language-specific compiler.
15566 CC=$lt_compiler_F77
15567
15568 # Is the compiler the GNU C compiler?
15569 with_gcc=$GCC_F77
15570
15571 # An ERE matcher.
15572 EGREP=$lt_EGREP
15573
15574 # The linker used to build libraries.
15575 LD=$lt_LD_F77
15576
15577 # Whether we need hard or soft links.
15578 LN_S=$lt_LN_S
15579
15580 # A BSD-compatible nm program.
15581 NM=$lt_NM
15582
15583 # A symbol stripping program
15584 STRIP=$lt_STRIP
15585
15586 # Used to examine libraries when file_magic_cmd begins "file"
15587 MAGIC_CMD=$MAGIC_CMD
15588
15589 # Used on cygwin: DLL creation program.
15590 DLLTOOL="$DLLTOOL"
15591
15592 # Used on cygwin: object dumper.
15593 OBJDUMP="$OBJDUMP"
15594
15595 # Used on cygwin: assembler.
15596 AS="$AS"
15597
15598 # The name of the directory that contains temporary libtool files.
15599 objdir=$objdir
15600
15601 # How to create reloadable object files.
15602 reload_flag=$lt_reload_flag
15603 reload_cmds=$lt_reload_cmds
15604
15605 # How to pass a linker flag through the compiler.
15606 wl=$lt_lt_prog_compiler_wl_F77
15607
15608 # Object file suffix (normally "o").
15609 objext="$ac_objext"
15610
15611 # Old archive suffix (normally "a").
15612 libext="$libext"
15613
15614 # Shared library suffix (normally ".so").
15615 shrext_cmds='$shrext_cmds'
15616
15617 # Executable file suffix (normally "").
15618 exeext="$exeext"
15619
15620 # Additional compiler flags for building library objects.
15621 pic_flag=$lt_lt_prog_compiler_pic_F77
15622 pic_mode=$pic_mode
15623
15624 # What is the maximum length of a command?
15625 max_cmd_len=$lt_cv_sys_max_cmd_len
15626
15627 # Does compiler simultaneously support -c and -o options?
15628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15629
15630 # Must we lock files when doing compilation?
15631 need_locks=$lt_need_locks
15632
15633 # Do we need the lib prefix for modules?
15634 need_lib_prefix=$need_lib_prefix
15635
15636 # Do we need a version for libraries?
15637 need_version=$need_version
15638
15639 # Whether dlopen is supported.
15640 dlopen_support=$enable_dlopen
15641
15642 # Whether dlopen of programs is supported.
15643 dlopen_self=$enable_dlopen_self
15644
15645 # Whether dlopen of statically linked programs is supported.
15646 dlopen_self_static=$enable_dlopen_self_static
15647
15648 # Compiler flag to prevent dynamic linking.
15649 link_static_flag=$lt_lt_prog_compiler_static_F77
15650
15651 # Compiler flag to turn off builtin functions.
15652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15653
15654 # Compiler flag to allow reflexive dlopens.
15655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15656
15657 # Compiler flag to generate shared objects directly from archives.
15658 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15659
15660 # Compiler flag to generate thread-safe objects.
15661 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15662
15663 # Library versioning type.
15664 version_type=$version_type
15665
15666 # Format of library name prefix.
15667 libname_spec=$lt_libname_spec
15668
15669 # List of archive names. First name is the real one, the rest are links.
15670 # The last name is the one that the linker finds with -lNAME.
15671 library_names_spec=$lt_library_names_spec
15672
15673 # The coded name of the library, if different from the real name.
15674 soname_spec=$lt_soname_spec
15675
15676 # Commands used to build and install an old-style archive.
15677 RANLIB=$lt_RANLIB
15678 old_archive_cmds=$lt_old_archive_cmds_F77
15679 old_postinstall_cmds=$lt_old_postinstall_cmds
15680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15681
15682 # Create an old-style archive from a shared archive.
15683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15684
15685 # Create a temporary old-style archive to link instead of a shared archive.
15686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15687
15688 # Commands used to build and install a shared archive.
15689 archive_cmds=$lt_archive_cmds_F77
15690 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15691 postinstall_cmds=$lt_postinstall_cmds
15692 postuninstall_cmds=$lt_postuninstall_cmds
15693
15694 # Commands used to build a loadable module (assumed same as above if empty)
15695 module_cmds=$lt_module_cmds_F77
15696 module_expsym_cmds=$lt_module_expsym_cmds_F77
15697
15698 # Commands to strip libraries.
15699 old_striplib=$lt_old_striplib
15700 striplib=$lt_striplib
15701
15702 # Dependencies to place before the objects being linked to create a
15703 # shared library.
15704 predep_objects=$lt_predep_objects_F77
15705
15706 # Dependencies to place after the objects being linked to create a
15707 # shared library.
15708 postdep_objects=$lt_postdep_objects_F77
15709
15710 # Dependencies to place before the objects being linked to create a
15711 # shared library.
15712 predeps=$lt_predeps_F77
15713
15714 # Dependencies to place after the objects being linked to create a
15715 # shared library.
15716 postdeps=$lt_postdeps_F77
15717
15718 # The library search path used internally by the compiler when linking
15719 # a shared library.
15720 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15721
15722 # Method to check whether dependent libraries are shared objects.
15723 deplibs_check_method=$lt_deplibs_check_method
15724
15725 # Command to use when deplibs_check_method == file_magic.
15726 file_magic_cmd=$lt_file_magic_cmd
15727
15728 # Flag that allows shared libraries with undefined symbols to be built.
15729 allow_undefined_flag=$lt_allow_undefined_flag_F77
15730
15731 # Flag that forces no undefined symbols.
15732 no_undefined_flag=$lt_no_undefined_flag_F77
15733
15734 # Commands used to finish a libtool library installation in a directory.
15735 finish_cmds=$lt_finish_cmds
15736
15737 # Same as above, but a single script fragment to be evaled but not shown.
15738 finish_eval=$lt_finish_eval
15739
15740 # Take the output of nm and produce a listing of raw symbols and C names.
15741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15742
15743 # Transform the output of nm in a proper C declaration
15744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15745
15746 # Transform the output of nm in a C name address pair
15747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15748
15749 # This is the shared library runtime path variable.
15750 runpath_var=$runpath_var
15751
15752 # This is the shared library path variable.
15753 shlibpath_var=$shlibpath_var
15754
15755 # Is shlibpath searched before the hard-coded library search path?
15756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15757
15758 # How to hardcode a shared library path into an executable.
15759 hardcode_action=$hardcode_action_F77
15760
15761 # Whether we should hardcode library paths into libraries.
15762 hardcode_into_libs=$hardcode_into_libs
15763
15764 # Flag to hardcode \$libdir into a binary during linking.
15765 # This must work even if \$libdir does not exist.
15766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15767
15768 # If ld is used when linking, flag to hardcode \$libdir into
15769 # a binary during linking. This must work even if \$libdir does
15770 # not exist.
15771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15772
15773 # Whether we need a single -rpath flag with a separated argument.
15774 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15775
15776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15777 # resulting binary.
15778 hardcode_direct=$hardcode_direct_F77
15779
15780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15781 # resulting binary.
15782 hardcode_minus_L=$hardcode_minus_L_F77
15783
15784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15785 # the resulting binary.
15786 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15787
15788 # Set to yes if building a shared library automatically hardcodes DIR into the library
15789 # and all subsequent libraries and executables linked against it.
15790 hardcode_automatic=$hardcode_automatic_F77
15791
15792 # Variables whose values should be saved in libtool wrapper scripts and
15793 # restored at relink time.
15794 variables_saved_for_relink="$variables_saved_for_relink"
15795
15796 # Whether libtool must link a program against all its dependency libraries.
15797 link_all_deplibs=$link_all_deplibs_F77
15798
15799 # Compile-time system search path for libraries
15800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15801
15802 # Run-time system search path for libraries
15803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15804
15805 # Fix the shell variable \$srcfile for the compiler.
15806 fix_srcfile_path="$fix_srcfile_path_F77"
15807
15808 # Set to yes if exported symbols are required.
15809 always_export_symbols=$always_export_symbols_F77
15810
15811 # The commands to list exported symbols.
15812 export_symbols_cmds=$lt_export_symbols_cmds_F77
15813
15814 # The commands to extract the exported symbol list from a shared archive.
15815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15816
15817 # Symbols that should not be listed in the preloaded symbols.
15818 exclude_expsyms=$lt_exclude_expsyms_F77
15819
15820 # Symbols that must always be exported.
15821 include_expsyms=$lt_include_expsyms_F77
15822
15823 # ### END LIBTOOL TAG CONFIG: $tagname
15824
15825 __EOF__
15826
15827
15828 else
15829 # If there is no Makefile yet, we rely on a make rule to execute
15830 # `config.status --recheck' to rerun these tests and create the
15831 # libtool script then.
15832 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15833 if test -f "$ltmain_in"; then
15834 test -f Makefile && make "$ltmain"
15835 fi
15836 fi
15837
15838
15839 ac_ext=c
15840 ac_cpp='$CPP $CPPFLAGS'
15841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15844
15845 CC="$lt_save_CC"
15846
15847 else
15848 tagname=""
15849 fi
15850 ;;
15851
15852 GCJ)
15853 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15854
15855
15856
15857 # Source file extension for Java test sources.
15858 ac_ext=java
15859
15860 # Object file extension for compiled Java test sources.
15861 objext=o
15862 objext_GCJ=$objext
15863
15864 # Code to be used in simple compile tests
15865 lt_simple_compile_test_code="class foo {}\n"
15866
15867 # Code to be used in simple link tests
15868 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15869
15870 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15871
15872 # If no C compiler was specified, use CC.
15873 LTCC=${LTCC-"$CC"}
15874
15875 # Allow CC to be a program name with arguments.
15876 compiler=$CC
15877
15878
15879 # save warnings/boilerplate of simple test code
15880 ac_outfile=conftest.$ac_objext
15881 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15882 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15883 _lt_compiler_boilerplate=`cat conftest.err`
15884 $rm conftest*
15885
15886 ac_outfile=conftest.$ac_objext
15887 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15888 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15889 _lt_linker_boilerplate=`cat conftest.err`
15890 $rm conftest*
15891
15892
15893 # Allow CC to be a program name with arguments.
15894 lt_save_CC="$CC"
15895 CC=${GCJ-"gcj"}
15896 compiler=$CC
15897 compiler_GCJ=$CC
15898 for cc_temp in $compiler""; do
15899 case $cc_temp in
15900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15902 \-*) ;;
15903 *) break;;
15904 esac
15905 done
15906 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15907
15908
15909 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15910 archive_cmds_need_lc_GCJ=no
15911
15912 old_archive_cmds_GCJ=$old_archive_cmds
15913
15914
15915 lt_prog_compiler_no_builtin_flag_GCJ=
15916
15917 if test "$GCC" = yes; then
15918 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15919
15920
15921 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15922 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15923 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15924 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 else
15926 lt_cv_prog_compiler_rtti_exceptions=no
15927 ac_outfile=conftest.$ac_objext
15928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15929 lt_compiler_flag="-fno-rtti -fno-exceptions"
15930 # Insert the option either (1) after the last *FLAGS variable, or
15931 # (2) before a word containing "conftest.", or (3) at the end.
15932 # Note that $ac_compile itself does not contain backslashes and begins
15933 # with a dollar sign (not a hyphen), so the echo should work correctly.
15934 # The option is referenced via a variable to avoid confusing sed.
15935 lt_compile=`echo "$ac_compile" | $SED \
15936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15938 -e 's:$: $lt_compiler_flag:'`
15939 (eval echo "\"\$as_me:15939: $lt_compile\"" >&5)
15940 (eval "$lt_compile" 2>conftest.err)
15941 ac_status=$?
15942 cat conftest.err >&5
15943 echo "$as_me:15943: \$? = $ac_status" >&5
15944 if (exit $ac_status) && test -s "$ac_outfile"; then
15945 # The compiler can only warn and ignore the option if not recognized
15946 # So say no if there are warnings other than the usual output.
15947 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15948 $SED '/^$/d' conftest.err >conftest.er2
15949 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15950 lt_cv_prog_compiler_rtti_exceptions=yes
15951 fi
15952 fi
15953 $rm conftest*
15954
15955 fi
15956 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15957 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15958
15959 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15960 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15961 else
15962 :
15963 fi
15964
15965 fi
15966
15967 lt_prog_compiler_wl_GCJ=
15968 lt_prog_compiler_pic_GCJ=
15969 lt_prog_compiler_static_GCJ=
15970
15971 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15972 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15973
15974 if test "$GCC" = yes; then
15975 lt_prog_compiler_wl_GCJ='-Wl,'
15976 lt_prog_compiler_static_GCJ='-static'
15977
15978 case $host_os in
15979 aix*)
15980 # All AIX code is PIC.
15981 if test "$host_cpu" = ia64; then
15982 # AIX 5 now supports IA64 processor
15983 lt_prog_compiler_static_GCJ='-Bstatic'
15984 fi
15985 ;;
15986
15987 amigaos*)
15988 # FIXME: we need at least 68020 code to build shared libraries, but
15989 # adding the `-m68020' flag to GCC prevents building anything better,
15990 # like `-m68040'.
15991 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15992 ;;
15993
15994 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15995 # PIC is the default for these OSes.
15996 ;;
15997
15998 mingw* | pw32* | os2*)
15999 # This hack is so that the source file can tell whether it is being
16000 # built for inclusion in a dll (and should export symbols for example).
16001 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16002 ;;
16003
16004 darwin* | rhapsody*)
16005 # PIC is the default on this platform
16006 # Common symbols not allowed in MH_DYLIB files
16007 lt_prog_compiler_pic_GCJ='-fno-common'
16008 ;;
16009
16010 msdosdjgpp*)
16011 # Just because we use GCC doesn't mean we suddenly get shared libraries
16012 # on systems that don't support them.
16013 lt_prog_compiler_can_build_shared_GCJ=no
16014 enable_shared=no
16015 ;;
16016
16017 sysv4*MP*)
16018 if test -d /usr/nec; then
16019 lt_prog_compiler_pic_GCJ=-Kconform_pic
16020 fi
16021 ;;
16022
16023 hpux*)
16024 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16025 # not for PA HP-UX.
16026 case $host_cpu in
16027 hppa*64*|ia64*)
16028 # +Z the default
16029 ;;
16030 *)
16031 lt_prog_compiler_pic_GCJ='-fPIC'
16032 ;;
16033 esac
16034 ;;
16035
16036 *)
16037 lt_prog_compiler_pic_GCJ='-fPIC'
16038 ;;
16039 esac
16040 else
16041 # PORTME Check for flag to pass linker flags through the system compiler.
16042 case $host_os in
16043 aix*)
16044 lt_prog_compiler_wl_GCJ='-Wl,'
16045 if test "$host_cpu" = ia64; then
16046 # AIX 5 now supports IA64 processor
16047 lt_prog_compiler_static_GCJ='-Bstatic'
16048 else
16049 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16050 fi
16051 ;;
16052 darwin*)
16053 # PIC is the default on this platform
16054 # Common symbols not allowed in MH_DYLIB files
16055 case $cc_basename in
16056 xlc*)
16057 lt_prog_compiler_pic_GCJ='-qnocommon'
16058 lt_prog_compiler_wl_GCJ='-Wl,'
16059 ;;
16060 esac
16061 ;;
16062
16063 mingw* | pw32* | os2*)
16064 # This hack is so that the source file can tell whether it is being
16065 # built for inclusion in a dll (and should export symbols for example).
16066 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16067 ;;
16068
16069 hpux9* | hpux10* | hpux11*)
16070 lt_prog_compiler_wl_GCJ='-Wl,'
16071 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16072 # not for PA HP-UX.
16073 case $host_cpu in
16074 hppa*64*|ia64*)
16075 # +Z the default
16076 ;;
16077 *)
16078 lt_prog_compiler_pic_GCJ='+Z'
16079 ;;
16080 esac
16081 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16082 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16083 ;;
16084
16085 irix5* | irix6* | nonstopux*)
16086 lt_prog_compiler_wl_GCJ='-Wl,'
16087 # PIC (with -KPIC) is the default.
16088 lt_prog_compiler_static_GCJ='-non_shared'
16089 ;;
16090
16091 newsos6)
16092 lt_prog_compiler_pic_GCJ='-KPIC'
16093 lt_prog_compiler_static_GCJ='-Bstatic'
16094 ;;
16095
16096 linux*)
16097 case $cc_basename in
16098 icc* | ecc*)
16099 lt_prog_compiler_wl_GCJ='-Wl,'
16100 lt_prog_compiler_pic_GCJ='-KPIC'
16101 lt_prog_compiler_static_GCJ='-static'
16102 ;;
16103 pgcc* | pgf77* | pgf90* | pgf95*)
16104 # Portland Group compilers (*not* the Pentium gcc compiler,
16105 # which looks to be a dead project)
16106 lt_prog_compiler_wl_GCJ='-Wl,'
16107 lt_prog_compiler_pic_GCJ='-fpic'
16108 lt_prog_compiler_static_GCJ='-Bstatic'
16109 ;;
16110 ccc*)
16111 lt_prog_compiler_wl_GCJ='-Wl,'
16112 # All Alpha code is PIC.
16113 lt_prog_compiler_static_GCJ='-non_shared'
16114 ;;
16115 esac
16116 ;;
16117
16118 osf3* | osf4* | osf5*)
16119 lt_prog_compiler_wl_GCJ='-Wl,'
16120 # All OSF/1 code is PIC.
16121 lt_prog_compiler_static_GCJ='-non_shared'
16122 ;;
16123
16124 sco3.2v5*)
16125 lt_prog_compiler_pic_GCJ='-Kpic'
16126 lt_prog_compiler_static_GCJ='-dn'
16127 ;;
16128
16129 solaris*)
16130 lt_prog_compiler_pic_GCJ='-KPIC'
16131 lt_prog_compiler_static_GCJ='-Bstatic'
16132 case $cc_basename in
16133 f77* | f90* | f95*)
16134 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16135 *)
16136 lt_prog_compiler_wl_GCJ='-Wl,';;
16137 esac
16138 ;;
16139
16140 sunos4*)
16141 lt_prog_compiler_wl_GCJ='-Qoption ld '
16142 lt_prog_compiler_pic_GCJ='-PIC'
16143 lt_prog_compiler_static_GCJ='-Bstatic'
16144 ;;
16145
16146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16147 lt_prog_compiler_wl_GCJ='-Wl,'
16148 lt_prog_compiler_pic_GCJ='-KPIC'
16149 lt_prog_compiler_static_GCJ='-Bstatic'
16150 ;;
16151
16152 sysv4*MP*)
16153 if test -d /usr/nec ;then
16154 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16155 lt_prog_compiler_static_GCJ='-Bstatic'
16156 fi
16157 ;;
16158
16159 unicos*)
16160 lt_prog_compiler_wl_GCJ='-Wl,'
16161 lt_prog_compiler_can_build_shared_GCJ=no
16162 ;;
16163
16164 uts4*)
16165 lt_prog_compiler_pic_GCJ='-pic'
16166 lt_prog_compiler_static_GCJ='-Bstatic'
16167 ;;
16168
16169 *)
16170 lt_prog_compiler_can_build_shared_GCJ=no
16171 ;;
16172 esac
16173 fi
16174
16175 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16176 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16177
16178 #
16179 # Check to make sure the PIC flag actually works.
16180 #
16181 if test -n "$lt_prog_compiler_pic_GCJ"; then
16182
16183 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16184 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16185 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187 else
16188 lt_prog_compiler_pic_works_GCJ=no
16189 ac_outfile=conftest.$ac_objext
16190 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16191 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16192 # Insert the option either (1) after the last *FLAGS variable, or
16193 # (2) before a word containing "conftest.", or (3) at the end.
16194 # Note that $ac_compile itself does not contain backslashes and begins
16195 # with a dollar sign (not a hyphen), so the echo should work correctly.
16196 # The option is referenced via a variable to avoid confusing sed.
16197 lt_compile=`echo "$ac_compile" | $SED \
16198 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16199 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16200 -e 's:$: $lt_compiler_flag:'`
16201 (eval echo "\"\$as_me:16201: $lt_compile\"" >&5)
16202 (eval "$lt_compile" 2>conftest.err)
16203 ac_status=$?
16204 cat conftest.err >&5
16205 echo "$as_me:16205: \$? = $ac_status" >&5
16206 if (exit $ac_status) && test -s "$ac_outfile"; then
16207 # The compiler can only warn and ignore the option if not recognized
16208 # So say no if there are warnings other than the usual output.
16209 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16210 $SED '/^$/d' conftest.err >conftest.er2
16211 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16212 lt_prog_compiler_pic_works_GCJ=yes
16213 fi
16214 fi
16215 $rm conftest*
16216
16217 fi
16218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16219 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16220
16221 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16222 case $lt_prog_compiler_pic_GCJ in
16223 "" | " "*) ;;
16224 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16225 esac
16226 else
16227 lt_prog_compiler_pic_GCJ=
16228 lt_prog_compiler_can_build_shared_GCJ=no
16229 fi
16230
16231 fi
16232 case $host_os in
16233 # For platforms which do not support PIC, -DPIC is meaningless:
16234 *djgpp*)
16235 lt_prog_compiler_pic_GCJ=
16236 ;;
16237 *)
16238 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16239 ;;
16240 esac
16241
16242 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16243 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16244 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 else
16247 lt_cv_prog_compiler_c_o_GCJ=no
16248 $rm -r conftest 2>/dev/null
16249 mkdir conftest
16250 cd conftest
16251 mkdir out
16252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16253
16254 lt_compiler_flag="-o out/conftest2.$ac_objext"
16255 # Insert the option either (1) after the last *FLAGS variable, or
16256 # (2) before a word containing "conftest.", or (3) at the end.
16257 # Note that $ac_compile itself does not contain backslashes and begins
16258 # with a dollar sign (not a hyphen), so the echo should work correctly.
16259 lt_compile=`echo "$ac_compile" | $SED \
16260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16262 -e 's:$: $lt_compiler_flag:'`
16263 (eval echo "\"\$as_me:16263: $lt_compile\"" >&5)
16264 (eval "$lt_compile" 2>out/conftest.err)
16265 ac_status=$?
16266 cat out/conftest.err >&5
16267 echo "$as_me:16267: \$? = $ac_status" >&5
16268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16269 then
16270 # The compiler can only warn and ignore the option if not recognized
16271 # So say no if there are warnings
16272 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16273 $SED '/^$/d' out/conftest.err >out/conftest.er2
16274 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16275 lt_cv_prog_compiler_c_o_GCJ=yes
16276 fi
16277 fi
16278 chmod u+w . 2>&5
16279 $rm conftest*
16280 # SGI C++ compiler will create directory out/ii_files/ for
16281 # template instantiation
16282 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16283 $rm out/* && rmdir out
16284 cd ..
16285 rmdir conftest
16286 $rm conftest*
16287
16288 fi
16289 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16290 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16291
16292
16293 hard_links="nottested"
16294 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16295 # do not overwrite the value of need_locks provided by the user
16296 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16297 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16298 hard_links=yes
16299 $rm conftest*
16300 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16301 touch conftest.a
16302 ln conftest.a conftest.b 2>&5 || hard_links=no
16303 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16304 echo "$as_me:$LINENO: result: $hard_links" >&5
16305 echo "${ECHO_T}$hard_links" >&6
16306 if test "$hard_links" = no; then
16307 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16308 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16309 need_locks=warn
16310 fi
16311 else
16312 need_locks=no
16313 fi
16314
16315 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16316 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16317
16318 runpath_var=
16319 allow_undefined_flag_GCJ=
16320 enable_shared_with_static_runtimes_GCJ=no
16321 archive_cmds_GCJ=
16322 archive_expsym_cmds_GCJ=
16323 old_archive_From_new_cmds_GCJ=
16324 old_archive_from_expsyms_cmds_GCJ=
16325 export_dynamic_flag_spec_GCJ=
16326 whole_archive_flag_spec_GCJ=
16327 thread_safe_flag_spec_GCJ=
16328 hardcode_libdir_flag_spec_GCJ=
16329 hardcode_libdir_flag_spec_ld_GCJ=
16330 hardcode_libdir_separator_GCJ=
16331 hardcode_direct_GCJ=no
16332 hardcode_minus_L_GCJ=no
16333 hardcode_shlibpath_var_GCJ=unsupported
16334 link_all_deplibs_GCJ=unknown
16335 hardcode_automatic_GCJ=no
16336 module_cmds_GCJ=
16337 module_expsym_cmds_GCJ=
16338 always_export_symbols_GCJ=no
16339 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16340 # include_expsyms should be a list of space-separated symbols to be *always*
16341 # included in the symbol list
16342 include_expsyms_GCJ=
16343 # exclude_expsyms can be an extended regexp of symbols to exclude
16344 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16345 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16346 # as well as any symbol that contains `d'.
16347 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16348 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16349 # platforms (ab)use it in PIC code, but their linkers get confused if
16350 # the symbol is explicitly referenced. Since portable code cannot
16351 # rely on this symbol name, it's probably fine to never include it in
16352 # preloaded symbol tables.
16353 extract_expsyms_cmds=
16354 # Just being paranoid about ensuring that cc_basename is set.
16355 for cc_temp in $compiler""; do
16356 case $cc_temp in
16357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16359 \-*) ;;
16360 *) break;;
16361 esac
16362 done
16363 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16364
16365 case $host_os in
16366 cygwin* | mingw* | pw32*)
16367 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16368 # When not using gcc, we currently assume that we are using
16369 # Microsoft Visual C++.
16370 if test "$GCC" != yes; then
16371 with_gnu_ld=no
16372 fi
16373 ;;
16374 openbsd*)
16375 with_gnu_ld=no
16376 ;;
16377 esac
16378
16379 ld_shlibs_GCJ=yes
16380 if test "$with_gnu_ld" = yes; then
16381 # If archive_cmds runs LD, not CC, wlarc should be empty
16382 wlarc='${wl}'
16383
16384 # Set some defaults for GNU ld with shared library support. These
16385 # are reset later if shared libraries are not supported. Putting them
16386 # here allows them to be overridden if necessary.
16387 runpath_var=LD_RUN_PATH
16388 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16389 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16390 # ancient GNU ld didn't support --whole-archive et. al.
16391 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16392 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16393 else
16394 whole_archive_flag_spec_GCJ=
16395 fi
16396 supports_anon_versioning=no
16397 case `$LD -v 2>/dev/null` in
16398 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16399 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16400 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16401 *\ 2.11.*) ;; # other 2.11 versions
16402 *) supports_anon_versioning=yes ;;
16403 esac
16404
16405 # See if GNU ld supports shared libraries.
16406 case $host_os in
16407 aix3* | aix4* | aix5*)
16408 # On AIX/PPC, the GNU linker is very broken
16409 if test "$host_cpu" != ia64; then
16410 ld_shlibs_GCJ=no
16411 cat <<EOF 1>&2
16412
16413 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16414 *** to be unable to reliably create shared libraries on AIX.
16415 *** Therefore, libtool is disabling shared libraries support. If you
16416 *** really care for shared libraries, you may want to modify your PATH
16417 *** so that a non-GNU linker is found, and then restart.
16418
16419 EOF
16420 fi
16421 ;;
16422
16423 amigaos*)
16424 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)'
16425 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16426 hardcode_minus_L_GCJ=yes
16427
16428 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16429 # that the semantics of dynamic libraries on AmigaOS, at least up
16430 # to version 4, is to share data among multiple programs linked
16431 # with the same dynamic library. Since this doesn't match the
16432 # behavior of shared libraries on other platforms, we can't use
16433 # them.
16434 ld_shlibs_GCJ=no
16435 ;;
16436
16437 beos*)
16438 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16439 allow_undefined_flag_GCJ=unsupported
16440 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16441 # support --undefined. This deserves some investigation. FIXME
16442 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16443 else
16444 ld_shlibs_GCJ=no
16445 fi
16446 ;;
16447
16448 cygwin* | mingw* | pw32*)
16449 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16450 # as there is no search path for DLLs.
16451 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16452 allow_undefined_flag_GCJ=unsupported
16453 always_export_symbols_GCJ=no
16454 enable_shared_with_static_runtimes_GCJ=yes
16455 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16456
16457 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16458 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16459 # If the export-symbols file already is a .def file (1st line
16460 # is EXPORTS), use it as is; otherwise, prepend...
16461 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16462 cp $export_symbols $output_objdir/$soname.def;
16463 else
16464 echo EXPORTS > $output_objdir/$soname.def;
16465 cat $export_symbols >> $output_objdir/$soname.def;
16466 fi~
16467 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16468 else
16469 ld_shlibs_GCJ=no
16470 fi
16471 ;;
16472
16473 linux*)
16474 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16475 tmp_addflag=
16476 case $cc_basename,$host_cpu in
16477 pgcc*) # Portland Group C compiler
16478 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'
16479 tmp_addflag=' $pic_flag'
16480 ;;
16481 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16482 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'
16483 tmp_addflag=' $pic_flag -Mnomain' ;;
16484 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16485 tmp_addflag=' -i_dynamic' ;;
16486 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16487 tmp_addflag=' -i_dynamic -nofor_main' ;;
16488 ifc* | ifort*) # Intel Fortran compiler
16489 tmp_addflag=' -nofor_main' ;;
16490 esac
16491 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16492
16493 if test $supports_anon_versioning = yes; then
16494 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16495 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16496 $echo "local: *; };" >> $output_objdir/$libname.ver~
16497 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16498 fi
16499 else
16500 ld_shlibs_GCJ=no
16501 fi
16502 ;;
16503
16504 netbsd*)
16505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16506 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16507 wlarc=
16508 else
16509 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16510 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16511 fi
16512 ;;
16513
16514 solaris* | sysv5*)
16515 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16516 ld_shlibs_GCJ=no
16517 cat <<EOF 1>&2
16518
16519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16520 *** create shared libraries on Solaris systems. Therefore, libtool
16521 *** is disabling shared libraries support. We urge you to upgrade GNU
16522 *** binutils to release 2.9.1 or newer. Another option is to modify
16523 *** your PATH or compiler configuration so that the native linker is
16524 *** used, and then restart.
16525
16526 EOF
16527 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16529 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16530 else
16531 ld_shlibs_GCJ=no
16532 fi
16533 ;;
16534
16535 sunos4*)
16536 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16537 wlarc=
16538 hardcode_direct_GCJ=yes
16539 hardcode_shlibpath_var_GCJ=no
16540 ;;
16541
16542 *)
16543 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16544 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16545 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16546 else
16547 ld_shlibs_GCJ=no
16548 fi
16549 ;;
16550 esac
16551
16552 if test "$ld_shlibs_GCJ" = no; then
16553 runpath_var=
16554 hardcode_libdir_flag_spec_GCJ=
16555 export_dynamic_flag_spec_GCJ=
16556 whole_archive_flag_spec_GCJ=
16557 fi
16558 else
16559 # PORTME fill in a description of your system's linker (not GNU ld)
16560 case $host_os in
16561 aix3*)
16562 allow_undefined_flag_GCJ=unsupported
16563 always_export_symbols_GCJ=yes
16564 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'
16565 # Note: this linker hardcodes the directories in LIBPATH if there
16566 # are no directories specified by -L.
16567 hardcode_minus_L_GCJ=yes
16568 if test "$GCC" = yes && test -z "$link_static_flag"; then
16569 # Neither direct hardcoding nor static linking is supported with a
16570 # broken collect2.
16571 hardcode_direct_GCJ=unsupported
16572 fi
16573 ;;
16574
16575 aix4* | aix5*)
16576 if test "$host_cpu" = ia64; then
16577 # On IA64, the linker does run time linking by default, so we don't
16578 # have to do anything special.
16579 aix_use_runtimelinking=no
16580 exp_sym_flag='-Bexport'
16581 no_entry_flag=""
16582 else
16583 # If we're using GNU nm, then we don't want the "-C" option.
16584 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16585 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16586 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'
16587 else
16588 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'
16589 fi
16590 aix_use_runtimelinking=no
16591
16592 # Test if we are trying to use run time linking or normal
16593 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16594 # need to do runtime linking.
16595 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16596 for ld_flag in $LDFLAGS; do
16597 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16598 aix_use_runtimelinking=yes
16599 break
16600 fi
16601 done
16602 esac
16603
16604 exp_sym_flag='-bexport'
16605 no_entry_flag='-bnoentry'
16606 fi
16607
16608 # When large executables or shared objects are built, AIX ld can
16609 # have problems creating the table of contents. If linking a library
16610 # or program results in "error TOC overflow" add -mminimal-toc to
16611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16613
16614 archive_cmds_GCJ=''
16615 hardcode_direct_GCJ=yes
16616 hardcode_libdir_separator_GCJ=':'
16617 link_all_deplibs_GCJ=yes
16618
16619 if test "$GCC" = yes; then
16620 case $host_os in aix4.[012]|aix4.[012].*)
16621 # We only want to do this on AIX 4.2 and lower, the check
16622 # below for broken collect2 doesn't work under 4.3+
16623 collect2name=`${CC} -print-prog-name=collect2`
16624 if test -f "$collect2name" && \
16625 strings "$collect2name" | grep resolve_lib_name >/dev/null
16626 then
16627 # We have reworked collect2
16628 hardcode_direct_GCJ=yes
16629 else
16630 # We have old collect2
16631 hardcode_direct_GCJ=unsupported
16632 # It fails to find uninstalled libraries when the uninstalled
16633 # path is not listed in the libpath. Setting hardcode_minus_L
16634 # to unsupported forces relinking
16635 hardcode_minus_L_GCJ=yes
16636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16637 hardcode_libdir_separator_GCJ=
16638 fi
16639 esac
16640 shared_flag='-shared'
16641 if test "$aix_use_runtimelinking" = yes; then
16642 shared_flag="$shared_flag "'${wl}-G'
16643 fi
16644 else
16645 # not using gcc
16646 if test "$host_cpu" = ia64; then
16647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16648 # chokes on -Wl,-G. The following line is correct:
16649 shared_flag='-G'
16650 else
16651 if test "$aix_use_runtimelinking" = yes; then
16652 shared_flag='${wl}-G'
16653 else
16654 shared_flag='${wl}-bM:SRE'
16655 fi
16656 fi
16657 fi
16658
16659 # It seems that -bexpall does not export symbols beginning with
16660 # underscore (_), so it is better to generate a list of symbols to export.
16661 always_export_symbols_GCJ=yes
16662 if test "$aix_use_runtimelinking" = yes; then
16663 # Warning - without using the other runtime loading flags (-brtl),
16664 # -berok will link without error, but may produce a broken library.
16665 allow_undefined_flag_GCJ='-berok'
16666 # Determine the default libpath from the value encoded in an empty executable.
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h. */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673
16674 int
16675 main ()
16676 {
16677
16678 ;
16679 return 0;
16680 }
16681 _ACEOF
16682 rm -f conftest.$ac_objext conftest$ac_exeext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16684 (eval $ac_link) 2>conftest.er1
16685 ac_status=$?
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); } &&
16691 { ac_try='test -z "$ac_c_werror_flag"
16692 || test ! -s conftest.err'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; } &&
16698 { ac_try='test -s conftest$ac_exeext'
16699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
16704
16705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16706 }'`
16707 # Check for a 64-bit object if we didn't find anything.
16708 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; }
16709 }'`; fi
16710 else
16711 echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16713
16714 fi
16715 rm -f conftest.err conftest.$ac_objext \
16716 conftest$ac_exeext conftest.$ac_ext
16717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16718
16719 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16720 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16721 else
16722 if test "$host_cpu" = ia64; then
16723 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16724 allow_undefined_flag_GCJ="-z nodefs"
16725 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16726 else
16727 # Determine the default libpath from the value encoded in an empty executable.
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h. */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734
16735 int
16736 main ()
16737 {
16738
16739 ;
16740 return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest.$ac_objext conftest$ac_exeext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16745 (eval $ac_link) 2>conftest.er1
16746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag"
16753 || test ! -s conftest.err'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } &&
16759 { ac_try='test -s conftest$ac_exeext'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765
16766 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16767 }'`
16768 # Check for a 64-bit object if we didn't find anything.
16769 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; }
16770 }'`; fi
16771 else
16772 echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16774
16775 fi
16776 rm -f conftest.err conftest.$ac_objext \
16777 conftest$ac_exeext conftest.$ac_ext
16778 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16779
16780 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16781 # Warning - without using the other run time loading flags,
16782 # -berok will link without error, but may produce a broken library.
16783 no_undefined_flag_GCJ=' ${wl}-bernotok'
16784 allow_undefined_flag_GCJ=' ${wl}-berok'
16785 # -bexpall does not export symbols beginning with underscore (_)
16786 always_export_symbols_GCJ=yes
16787 # Exported symbols can be pulled into shared objects from archives
16788 whole_archive_flag_spec_GCJ=' '
16789 archive_cmds_need_lc_GCJ=yes
16790 # This is similar to how AIX traditionally builds its shared libraries.
16791 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16792 fi
16793 fi
16794 ;;
16795
16796 amigaos*)
16797 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)'
16798 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16799 hardcode_minus_L_GCJ=yes
16800 # see comment about different semantics on the GNU ld section
16801 ld_shlibs_GCJ=no
16802 ;;
16803
16804 bsdi[45]*)
16805 export_dynamic_flag_spec_GCJ=-rdynamic
16806 ;;
16807
16808 cygwin* | mingw* | pw32*)
16809 # When not using gcc, we currently assume that we are using
16810 # Microsoft Visual C++.
16811 # hardcode_libdir_flag_spec is actually meaningless, as there is
16812 # no search path for DLLs.
16813 hardcode_libdir_flag_spec_GCJ=' '
16814 allow_undefined_flag_GCJ=unsupported
16815 # Tell ltmain to make .lib files, not .a files.
16816 libext=lib
16817 # Tell ltmain to make .dll files, not .so files.
16818 shrext_cmds=".dll"
16819 # FIXME: Setting linknames here is a bad hack.
16820 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16821 # The linker will automatically build a .lib file if we build a DLL.
16822 old_archive_From_new_cmds_GCJ='true'
16823 # FIXME: Should let the user specify the lib program.
16824 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16825 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16826 enable_shared_with_static_runtimes_GCJ=yes
16827 ;;
16828
16829 darwin* | rhapsody*)
16830 case $host_os in
16831 rhapsody* | darwin1.[012])
16832 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16833 ;;
16834 *) # Darwin 1.3 on
16835 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16836 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16837 else
16838 case ${MACOSX_DEPLOYMENT_TARGET} in
16839 10.[012])
16840 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16841 ;;
16842 10.*)
16843 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16844 ;;
16845 esac
16846 fi
16847 ;;
16848 esac
16849 archive_cmds_need_lc_GCJ=no
16850 hardcode_direct_GCJ=no
16851 hardcode_automatic_GCJ=yes
16852 hardcode_shlibpath_var_GCJ=unsupported
16853 whole_archive_flag_spec_GCJ=''
16854 link_all_deplibs_GCJ=yes
16855 if test "$GCC" = yes ; then
16856 output_verbose_link_cmd='echo'
16857 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16858 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16859 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16860 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}'
16861 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}'
16862 else
16863 case $cc_basename in
16864 xlc*)
16865 output_verbose_link_cmd='echo'
16866 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16867 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16868 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16869 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}'
16870 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}'
16871 ;;
16872 *)
16873 ld_shlibs_GCJ=no
16874 ;;
16875 esac
16876 fi
16877 ;;
16878
16879 dgux*)
16880 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16881 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882 hardcode_shlibpath_var_GCJ=no
16883 ;;
16884
16885 freebsd1*)
16886 ld_shlibs_GCJ=no
16887 ;;
16888
16889 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16890 # support. Future versions do this automatically, but an explicit c++rt0.o
16891 # does not break anything, and helps significantly (at the cost of a little
16892 # extra space).
16893 freebsd2.2*)
16894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16895 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16896 hardcode_direct_GCJ=yes
16897 hardcode_shlibpath_var_GCJ=no
16898 ;;
16899
16900 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16901 freebsd2*)
16902 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16903 hardcode_direct_GCJ=yes
16904 hardcode_minus_L_GCJ=yes
16905 hardcode_shlibpath_var_GCJ=no
16906 ;;
16907
16908 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16909 freebsd* | kfreebsd*-gnu | dragonfly*)
16910 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16911 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16912 hardcode_direct_GCJ=yes
16913 hardcode_shlibpath_var_GCJ=no
16914 ;;
16915
16916 hpux9*)
16917 if test "$GCC" = yes; then
16918 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'
16919 else
16920 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'
16921 fi
16922 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16923 hardcode_libdir_separator_GCJ=:
16924 hardcode_direct_GCJ=yes
16925
16926 # hardcode_minus_L: Not really in the search PATH,
16927 # but as the default location of the library.
16928 hardcode_minus_L_GCJ=yes
16929 export_dynamic_flag_spec_GCJ='${wl}-E'
16930 ;;
16931
16932 hpux10* | hpux11*)
16933 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16934 case $host_cpu in
16935 hppa*64*|ia64*)
16936 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16937 ;;
16938 *)
16939 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16940 ;;
16941 esac
16942 else
16943 case $host_cpu in
16944 hppa*64*|ia64*)
16945 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16946 ;;
16947 *)
16948 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16949 ;;
16950 esac
16951 fi
16952 if test "$with_gnu_ld" = no; then
16953 case $host_cpu in
16954 hppa*64*)
16955 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16956 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16957 hardcode_libdir_separator_GCJ=:
16958 hardcode_direct_GCJ=no
16959 hardcode_shlibpath_var_GCJ=no
16960 ;;
16961 ia64*)
16962 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16963 hardcode_direct_GCJ=no
16964 hardcode_shlibpath_var_GCJ=no
16965
16966 # hardcode_minus_L: Not really in the search PATH,
16967 # but as the default location of the library.
16968 hardcode_minus_L_GCJ=yes
16969 ;;
16970 *)
16971 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16972 hardcode_libdir_separator_GCJ=:
16973 hardcode_direct_GCJ=yes
16974 export_dynamic_flag_spec_GCJ='${wl}-E'
16975
16976 # hardcode_minus_L: Not really in the search PATH,
16977 # but as the default location of the library.
16978 hardcode_minus_L_GCJ=yes
16979 ;;
16980 esac
16981 fi
16982 ;;
16983
16984 irix5* | irix6* | nonstopux*)
16985 if test "$GCC" = yes; then
16986 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'
16987 else
16988 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'
16989 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16990 fi
16991 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16992 hardcode_libdir_separator_GCJ=:
16993 link_all_deplibs_GCJ=yes
16994 ;;
16995
16996 netbsd*)
16997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16998 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16999 else
17000 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17001 fi
17002 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17003 hardcode_direct_GCJ=yes
17004 hardcode_shlibpath_var_GCJ=no
17005 ;;
17006
17007 newsos6)
17008 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17009 hardcode_direct_GCJ=yes
17010 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17011 hardcode_libdir_separator_GCJ=:
17012 hardcode_shlibpath_var_GCJ=no
17013 ;;
17014
17015 openbsd*)
17016 hardcode_direct_GCJ=yes
17017 hardcode_shlibpath_var_GCJ=no
17018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17019 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17020 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17022 export_dynamic_flag_spec_GCJ='${wl}-E'
17023 else
17024 case $host_os in
17025 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17026 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17027 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17028 ;;
17029 *)
17030 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17032 ;;
17033 esac
17034 fi
17035 ;;
17036
17037 os2*)
17038 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17039 hardcode_minus_L_GCJ=yes
17040 allow_undefined_flag_GCJ=unsupported
17041 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'
17042 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17043 ;;
17044
17045 osf3*)
17046 if test "$GCC" = yes; then
17047 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17048 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'
17049 else
17050 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17051 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'
17052 fi
17053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17054 hardcode_libdir_separator_GCJ=:
17055 ;;
17056
17057 osf4* | osf5*) # as osf3* with the addition of -msym flag
17058 if test "$GCC" = yes; then
17059 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17060 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'
17061 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17062 else
17063 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17064 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'
17065 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~
17066 $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'
17067
17068 # Both c and cxx compiler support -rpath directly
17069 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17070 fi
17071 hardcode_libdir_separator_GCJ=:
17072 ;;
17073
17074 sco3.2v5*)
17075 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17076 hardcode_shlibpath_var_GCJ=no
17077 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17078 runpath_var=LD_RUN_PATH
17079 hardcode_runpath_var=yes
17080 ;;
17081
17082 solaris*)
17083 no_undefined_flag_GCJ=' -z text'
17084 if test "$GCC" = yes; then
17085 wlarc='${wl}'
17086 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17087 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17088 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17089 else
17090 wlarc=''
17091 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17092 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17093 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17094 fi
17095 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17096 hardcode_shlibpath_var_GCJ=no
17097 case $host_os in
17098 solaris2.[0-5] | solaris2.[0-5].*) ;;
17099 *)
17100 # The compiler driver will combine linker options so we
17101 # cannot just pass the convience library names through
17102 # without $wl, iff we do not link with $LD.
17103 # Luckily, gcc supports the same syntax we need for Sun Studio.
17104 # Supported since Solaris 2.6 (maybe 2.5.1?)
17105 case $wlarc in
17106 '')
17107 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17108 *)
17109 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' ;;
17110 esac ;;
17111 esac
17112 link_all_deplibs_GCJ=yes
17113 ;;
17114
17115 sunos4*)
17116 if test "x$host_vendor" = xsequent; then
17117 # Use $CC to link under sequent, because it throws in some extra .o
17118 # files that make .init and .fini sections work.
17119 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17120 else
17121 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17122 fi
17123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17124 hardcode_direct_GCJ=yes
17125 hardcode_minus_L_GCJ=yes
17126 hardcode_shlibpath_var_GCJ=no
17127 ;;
17128
17129 sysv4)
17130 case $host_vendor in
17131 sni)
17132 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17133 hardcode_direct_GCJ=yes # is this really true???
17134 ;;
17135 siemens)
17136 ## LD is ld it makes a PLAMLIB
17137 ## CC just makes a GrossModule.
17138 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17139 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17140 hardcode_direct_GCJ=no
17141 ;;
17142 motorola)
17143 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17144 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17145 ;;
17146 esac
17147 runpath_var='LD_RUN_PATH'
17148 hardcode_shlibpath_var_GCJ=no
17149 ;;
17150
17151 sysv4.3*)
17152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17153 hardcode_shlibpath_var_GCJ=no
17154 export_dynamic_flag_spec_GCJ='-Bexport'
17155 ;;
17156
17157 sysv4*MP*)
17158 if test -d /usr/nec; then
17159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160 hardcode_shlibpath_var_GCJ=no
17161 runpath_var=LD_RUN_PATH
17162 hardcode_runpath_var=yes
17163 ld_shlibs_GCJ=yes
17164 fi
17165 ;;
17166
17167 sysv4.2uw2*)
17168 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17169 hardcode_direct_GCJ=yes
17170 hardcode_minus_L_GCJ=no
17171 hardcode_shlibpath_var_GCJ=no
17172 hardcode_runpath_var=yes
17173 runpath_var=LD_RUN_PATH
17174 ;;
17175
17176 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17177 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17178 if test "$GCC" = yes; then
17179 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17180 else
17181 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17182 fi
17183 runpath_var='LD_RUN_PATH'
17184 hardcode_shlibpath_var_GCJ=no
17185 ;;
17186
17187 sysv5*)
17188 no_undefined_flag_GCJ=' -z text'
17189 # $CC -shared without GNU ld will not create a library from C++
17190 # object files and a static libstdc++, better avoid it by now
17191 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17192 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17193 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17194 hardcode_libdir_flag_spec_GCJ=
17195 hardcode_shlibpath_var_GCJ=no
17196 runpath_var='LD_RUN_PATH'
17197 ;;
17198
17199 uts4*)
17200 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17201 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17202 hardcode_shlibpath_var_GCJ=no
17203 ;;
17204
17205 *)
17206 ld_shlibs_GCJ=no
17207 ;;
17208 esac
17209 fi
17210
17211 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17212 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17213 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17214
17215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17216 if test "$GCC" = yes; then
17217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17218 fi
17219
17220 #
17221 # Do we need to explicitly link libc?
17222 #
17223 case "x$archive_cmds_need_lc_GCJ" in
17224 x|xyes)
17225 # Assume -lc should be added
17226 archive_cmds_need_lc_GCJ=yes
17227
17228 if test "$enable_shared" = yes && test "$GCC" = yes; then
17229 case $archive_cmds_GCJ in
17230 *'~'*)
17231 # FIXME: we may have to deal with multi-command sequences.
17232 ;;
17233 '$CC '*)
17234 # Test whether the compiler implicitly links with -lc since on some
17235 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17236 # to ld, don't add -lc before -lgcc.
17237 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17238 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17239 $rm conftest*
17240 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17241
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } 2>conftest.err; then
17247 soname=conftest
17248 lib=conftest
17249 libobjs=conftest.$ac_objext
17250 deplibs=
17251 wl=$lt_prog_compiler_wl_GCJ
17252 compiler_flags=-v
17253 linker_flags=-v
17254 verstring=
17255 output_objdir=.
17256 libname=conftest
17257 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17258 allow_undefined_flag_GCJ=
17259 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17260 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }
17264 then
17265 archive_cmds_need_lc_GCJ=no
17266 else
17267 archive_cmds_need_lc_GCJ=yes
17268 fi
17269 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17270 else
17271 cat conftest.err 1>&5
17272 fi
17273 $rm conftest*
17274 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17275 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17276 ;;
17277 esac
17278 fi
17279 ;;
17280 esac
17281
17282 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17283 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17284 library_names_spec=
17285 libname_spec='lib$name'
17286 soname_spec=
17287 shrext_cmds=".so"
17288 postinstall_cmds=
17289 postuninstall_cmds=
17290 finish_cmds=
17291 finish_eval=
17292 shlibpath_var=
17293 shlibpath_overrides_runpath=unknown
17294 version_type=none
17295 dynamic_linker="$host_os ld.so"
17296 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17297 if test "$GCC" = yes; then
17298 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17299 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17300 # if the path contains ";" then we assume it to be the separator
17301 # otherwise default to the standard path separator (i.e. ":") - it is
17302 # assumed that no part of a normal pathname contains ";" but that should
17303 # okay in the real world where ";" in dirpaths is itself problematic.
17304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17305 else
17306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17307 fi
17308 else
17309 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17310 fi
17311 need_lib_prefix=unknown
17312 hardcode_into_libs=no
17313
17314 # when you set need_version to no, make sure it does not cause -set_version
17315 # flags to be left without arguments
17316 need_version=unknown
17317
17318 case $host_os in
17319 aix3*)
17320 version_type=linux
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17322 shlibpath_var=LIBPATH
17323
17324 # AIX 3 has no versioning support, so we append a major version to the name.
17325 soname_spec='${libname}${release}${shared_ext}$major'
17326 ;;
17327
17328 aix4* | aix5*)
17329 version_type=linux
17330 need_lib_prefix=no
17331 need_version=no
17332 hardcode_into_libs=yes
17333 if test "$host_cpu" = ia64; then
17334 # AIX 5 supports IA64
17335 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 else
17338 # With GCC up to 2.95.x, collect2 would create an import file
17339 # for dependence libraries. The import file would start with
17340 # the line `#! .'. This would cause the generated library to
17341 # depend on `.', always an invalid library. This was fixed in
17342 # development snapshots of GCC prior to 3.0.
17343 case $host_os in
17344 aix4 | aix4.[01] | aix4.[01].*)
17345 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17346 echo ' yes '
17347 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17348 :
17349 else
17350 can_build_shared=no
17351 fi
17352 ;;
17353 esac
17354 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17355 # soname into executable. Probably we can add versioning support to
17356 # collect2, so additional links can be useful in future.
17357 if test "$aix_use_runtimelinking" = yes; then
17358 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17359 # instead of lib<name>.a to let people know that these are not
17360 # typical AIX shared libraries.
17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362 else
17363 # We preserve .a as extension for shared libraries through AIX4.2
17364 # and later when we are not doing run time linking.
17365 library_names_spec='${libname}${release}.a $libname.a'
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 fi
17368 shlibpath_var=LIBPATH
17369 fi
17370 ;;
17371
17372 amigaos*)
17373 library_names_spec='$libname.ixlibrary $libname.a'
17374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17375 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'
17376 ;;
17377
17378 beos*)
17379 library_names_spec='${libname}${shared_ext}'
17380 dynamic_linker="$host_os ld.so"
17381 shlibpath_var=LIBRARY_PATH
17382 ;;
17383
17384 bsdi[45]*)
17385 version_type=linux
17386 need_version=no
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17390 shlibpath_var=LD_LIBRARY_PATH
17391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17393 # the default ld.so.conf also contains /usr/contrib/lib and
17394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17395 # libtool to hard-code these into programs
17396 ;;
17397
17398 cygwin* | mingw* | pw32*)
17399 version_type=windows
17400 shrext_cmds=".dll"
17401 need_version=no
17402 need_lib_prefix=no
17403
17404 case $GCC,$host_os in
17405 yes,cygwin* | yes,mingw* | yes,pw32*)
17406 library_names_spec='$libname.dll.a'
17407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17408 postinstall_cmds='base_file=`basename \${file}`~
17409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17410 dldir=$destdir/`dirname \$dlpath`~
17411 test -d \$dldir || mkdir -p \$dldir~
17412 $install_prog $dir/$dlname \$dldir/$dlname~
17413 chmod a+x \$dldir/$dlname'
17414 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17415 dlpath=$dir/\$dldll~
17416 $rm \$dlpath'
17417 shlibpath_overrides_runpath=yes
17418
17419 case $host_os in
17420 cygwin*)
17421 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17422 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17423 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17424 ;;
17425 mingw*)
17426 # MinGW DLLs use traditional 'lib' prefix
17427 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17428 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17429 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17430 # It is most probably a Windows format PATH printed by
17431 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17432 # path with ; separators, and with drive letters. We can handle the
17433 # drive letters (cygwin fileutils understands them), so leave them,
17434 # especially as we might pass files found there to a mingw objdump,
17435 # which wouldn't understand a cygwinified path. Ahh.
17436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17437 else
17438 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17439 fi
17440 ;;
17441 pw32*)
17442 # pw32 DLLs use 'pw' prefix rather than 'lib'
17443 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17444 ;;
17445 esac
17446 ;;
17447
17448 *)
17449 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17450 ;;
17451 esac
17452 dynamic_linker='Win32 ld.exe'
17453 # FIXME: first we should search . and the directory the executable is in
17454 shlibpath_var=PATH
17455 ;;
17456
17457 darwin* | rhapsody*)
17458 dynamic_linker="$host_os dyld"
17459 version_type=darwin
17460 need_lib_prefix=no
17461 need_version=no
17462 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17463 soname_spec='${libname}${release}${major}$shared_ext'
17464 shlibpath_overrides_runpath=yes
17465 shlibpath_var=DYLD_LIBRARY_PATH
17466 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17467 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17468 if test "$GCC" = yes; then
17469 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"`
17470 else
17471 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17472 fi
17473 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17474 ;;
17475
17476 dgux*)
17477 version_type=linux
17478 need_lib_prefix=no
17479 need_version=no
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17481 soname_spec='${libname}${release}${shared_ext}$major'
17482 shlibpath_var=LD_LIBRARY_PATH
17483 ;;
17484
17485 freebsd1*)
17486 dynamic_linker=no
17487 ;;
17488
17489 kfreebsd*-gnu)
17490 version_type=linux
17491 need_lib_prefix=no
17492 need_version=no
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17494 soname_spec='${libname}${release}${shared_ext}$major'
17495 shlibpath_var=LD_LIBRARY_PATH
17496 shlibpath_overrides_runpath=no
17497 hardcode_into_libs=yes
17498 dynamic_linker='GNU ld.so'
17499 ;;
17500
17501 freebsd* | dragonfly*)
17502 # DragonFly does not have aout. When/if they implement a new
17503 # versioning mechanism, adjust this.
17504 if test -x /usr/bin/objformat; then
17505 objformat=`/usr/bin/objformat`
17506 else
17507 case $host_os in
17508 freebsd[123]*) objformat=aout ;;
17509 *) objformat=elf ;;
17510 esac
17511 fi
17512 version_type=freebsd-$objformat
17513 case $version_type in
17514 freebsd-elf*)
17515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17516 need_version=no
17517 need_lib_prefix=no
17518 ;;
17519 freebsd-*)
17520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17521 need_version=yes
17522 ;;
17523 esac
17524 shlibpath_var=LD_LIBRARY_PATH
17525 case $host_os in
17526 freebsd2*)
17527 shlibpath_overrides_runpath=yes
17528 ;;
17529 freebsd3.[01]* | freebsdelf3.[01]*)
17530 shlibpath_overrides_runpath=yes
17531 hardcode_into_libs=yes
17532 ;;
17533 *) # from 3.2 on
17534 shlibpath_overrides_runpath=no
17535 hardcode_into_libs=yes
17536 ;;
17537 esac
17538 ;;
17539
17540 gnu*)
17541 version_type=linux
17542 need_lib_prefix=no
17543 need_version=no
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17545 soname_spec='${libname}${release}${shared_ext}$major'
17546 shlibpath_var=LD_LIBRARY_PATH
17547 hardcode_into_libs=yes
17548 ;;
17549
17550 hpux9* | hpux10* | hpux11*)
17551 # Give a soname corresponding to the major version so that dld.sl refuses to
17552 # link against other versions.
17553 version_type=sunos
17554 need_lib_prefix=no
17555 need_version=no
17556 case $host_cpu in
17557 ia64*)
17558 shrext_cmds='.so'
17559 hardcode_into_libs=yes
17560 dynamic_linker="$host_os dld.so"
17561 shlibpath_var=LD_LIBRARY_PATH
17562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17564 soname_spec='${libname}${release}${shared_ext}$major'
17565 if test "X$HPUX_IA64_MODE" = X32; then
17566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17567 else
17568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17569 fi
17570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17571 ;;
17572 hppa*64*)
17573 shrext_cmds='.sl'
17574 hardcode_into_libs=yes
17575 dynamic_linker="$host_os dld.sl"
17576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17579 soname_spec='${libname}${release}${shared_ext}$major'
17580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17582 ;;
17583 *)
17584 shrext_cmds='.sl'
17585 dynamic_linker="$host_os dld.sl"
17586 shlibpath_var=SHLIB_PATH
17587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17589 soname_spec='${libname}${release}${shared_ext}$major'
17590 ;;
17591 esac
17592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17593 postinstall_cmds='chmod 555 $lib'
17594 ;;
17595
17596 irix5* | irix6* | nonstopux*)
17597 case $host_os in
17598 nonstopux*) version_type=nonstopux ;;
17599 *)
17600 if test "$lt_cv_prog_gnu_ld" = yes; then
17601 version_type=linux
17602 else
17603 version_type=irix
17604 fi ;;
17605 esac
17606 need_lib_prefix=no
17607 need_version=no
17608 soname_spec='${libname}${release}${shared_ext}$major'
17609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17610 case $host_os in
17611 irix5* | nonstopux*)
17612 libsuff= shlibsuff=
17613 ;;
17614 *)
17615 case $LD in # libtool.m4 will add one of these switches to LD
17616 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17617 libsuff= shlibsuff= libmagic=32-bit;;
17618 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17619 libsuff=32 shlibsuff=N32 libmagic=N32;;
17620 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17621 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17622 *) libsuff= shlibsuff= libmagic=never-match;;
17623 esac
17624 ;;
17625 esac
17626 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17627 shlibpath_overrides_runpath=no
17628 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17629 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17630 hardcode_into_libs=yes
17631 ;;
17632
17633 # No shared lib support for Linux oldld, aout, or coff.
17634 linux*oldld* | linux*aout* | linux*coff*)
17635 dynamic_linker=no
17636 ;;
17637
17638 # This must be Linux ELF.
17639 linux*)
17640 version_type=linux
17641 need_lib_prefix=no
17642 need_version=no
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17644 soname_spec='${libname}${release}${shared_ext}$major'
17645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 shlibpath_overrides_runpath=no
17648 # This implies no fast_install, which is unacceptable.
17649 # Some rework will be needed to allow for fast_install
17650 # before this can be enabled.
17651 hardcode_into_libs=yes
17652
17653 # Append ld.so.conf contents to the search path
17654 if test -f /etc/ld.so.conf; then
17655 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' ' '`
17656 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17657 fi
17658
17659 # We used to test for /lib/ld.so.1 and disable shared libraries on
17660 # powerpc, because MkLinux only supported shared libraries with the
17661 # GNU dynamic linker. Since this was broken with cross compilers,
17662 # most powerpc-linux boxes support dynamic linking these days and
17663 # people can always --disable-shared, the test was removed, and we
17664 # assume the GNU/Linux dynamic linker is in use.
17665 dynamic_linker='GNU/Linux ld.so'
17666 ;;
17667
17668 knetbsd*-gnu)
17669 version_type=linux
17670 need_lib_prefix=no
17671 need_version=no
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17673 soname_spec='${libname}${release}${shared_ext}$major'
17674 shlibpath_var=LD_LIBRARY_PATH
17675 shlibpath_overrides_runpath=no
17676 hardcode_into_libs=yes
17677 dynamic_linker='GNU ld.so'
17678 ;;
17679
17680 netbsd*)
17681 version_type=sunos
17682 need_lib_prefix=no
17683 need_version=no
17684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17687 dynamic_linker='NetBSD (a.out) ld.so'
17688 else
17689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17690 soname_spec='${libname}${release}${shared_ext}$major'
17691 dynamic_linker='NetBSD ld.elf_so'
17692 fi
17693 shlibpath_var=LD_LIBRARY_PATH
17694 shlibpath_overrides_runpath=yes
17695 hardcode_into_libs=yes
17696 ;;
17697
17698 newsos6)
17699 version_type=linux
17700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701 shlibpath_var=LD_LIBRARY_PATH
17702 shlibpath_overrides_runpath=yes
17703 ;;
17704
17705 nto-qnx*)
17706 version_type=linux
17707 need_lib_prefix=no
17708 need_version=no
17709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17710 soname_spec='${libname}${release}${shared_ext}$major'
17711 shlibpath_var=LD_LIBRARY_PATH
17712 shlibpath_overrides_runpath=yes
17713 ;;
17714
17715 openbsd*)
17716 version_type=sunos
17717 need_lib_prefix=no
17718 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17719 case $host_os in
17720 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17721 *) need_version=no ;;
17722 esac
17723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17725 shlibpath_var=LD_LIBRARY_PATH
17726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17727 case $host_os in
17728 openbsd2.[89] | openbsd2.[89].*)
17729 shlibpath_overrides_runpath=no
17730 ;;
17731 *)
17732 shlibpath_overrides_runpath=yes
17733 ;;
17734 esac
17735 else
17736 shlibpath_overrides_runpath=yes
17737 fi
17738 ;;
17739
17740 os2*)
17741 libname_spec='$name'
17742 shrext_cmds=".dll"
17743 need_lib_prefix=no
17744 library_names_spec='$libname${shared_ext} $libname.a'
17745 dynamic_linker='OS/2 ld.exe'
17746 shlibpath_var=LIBPATH
17747 ;;
17748
17749 osf3* | osf4* | osf5*)
17750 version_type=osf
17751 need_lib_prefix=no
17752 need_version=no
17753 soname_spec='${libname}${release}${shared_ext}$major'
17754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17755 shlibpath_var=LD_LIBRARY_PATH
17756 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17757 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17758 ;;
17759
17760 sco3.2v5*)
17761 version_type=osf
17762 soname_spec='${libname}${release}${shared_ext}$major'
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17764 shlibpath_var=LD_LIBRARY_PATH
17765 ;;
17766
17767 solaris*)
17768 version_type=linux
17769 need_lib_prefix=no
17770 need_version=no
17771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17772 soname_spec='${libname}${release}${shared_ext}$major'
17773 shlibpath_var=LD_LIBRARY_PATH
17774 shlibpath_overrides_runpath=yes
17775 hardcode_into_libs=yes
17776 # ldd complains unless libraries are executable
17777 postinstall_cmds='chmod +x $lib'
17778 ;;
17779
17780 sunos4*)
17781 version_type=sunos
17782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17783 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17784 shlibpath_var=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath=yes
17786 if test "$with_gnu_ld" = yes; then
17787 need_lib_prefix=no
17788 fi
17789 need_version=yes
17790 ;;
17791
17792 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17793 version_type=linux
17794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795 soname_spec='${libname}${release}${shared_ext}$major'
17796 shlibpath_var=LD_LIBRARY_PATH
17797 case $host_vendor in
17798 sni)
17799 shlibpath_overrides_runpath=no
17800 need_lib_prefix=no
17801 export_dynamic_flag_spec='${wl}-Blargedynsym'
17802 runpath_var=LD_RUN_PATH
17803 ;;
17804 siemens)
17805 need_lib_prefix=no
17806 ;;
17807 motorola)
17808 need_lib_prefix=no
17809 need_version=no
17810 shlibpath_overrides_runpath=no
17811 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17812 ;;
17813 esac
17814 ;;
17815
17816 sysv4*MP*)
17817 if test -d /usr/nec ;then
17818 version_type=linux
17819 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17820 soname_spec='$libname${shared_ext}.$major'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 fi
17823 ;;
17824
17825 uts4*)
17826 version_type=linux
17827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17828 soname_spec='${libname}${release}${shared_ext}$major'
17829 shlibpath_var=LD_LIBRARY_PATH
17830 ;;
17831
17832 *)
17833 dynamic_linker=no
17834 ;;
17835 esac
17836 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17837 echo "${ECHO_T}$dynamic_linker" >&6
17838 test "$dynamic_linker" = no && can_build_shared=no
17839
17840 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17841 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17842 hardcode_action_GCJ=
17843 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17844 test -n "$runpath_var_GCJ" || \
17845 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17846
17847 # We can hardcode non-existant directories.
17848 if test "$hardcode_direct_GCJ" != no &&
17849 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17850 # have to relink, otherwise we might link with an installed library
17851 # when we should be linking with a yet-to-be-installed one
17852 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17853 test "$hardcode_minus_L_GCJ" != no; then
17854 # Linking always hardcodes the temporary library directory.
17855 hardcode_action_GCJ=relink
17856 else
17857 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17858 hardcode_action_GCJ=immediate
17859 fi
17860 else
17861 # We cannot hardcode anything, or else we can only hardcode existing
17862 # directories.
17863 hardcode_action_GCJ=unsupported
17864 fi
17865 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17866 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17867
17868 if test "$hardcode_action_GCJ" = relink; then
17869 # Fast installation is not supported
17870 enable_fast_install=no
17871 elif test "$shlibpath_overrides_runpath" = yes ||
17872 test "$enable_shared" = no; then
17873 # Fast installation is not necessary
17874 enable_fast_install=needless
17875 fi
17876
17877 striplib=
17878 old_striplib=
17879 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17880 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17881 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17882 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17883 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17884 echo "$as_me:$LINENO: result: yes" >&5
17885 echo "${ECHO_T}yes" >&6
17886 else
17887 # FIXME - insert some real tests, host_os isn't really good enough
17888 case $host_os in
17889 darwin*)
17890 if test -n "$STRIP" ; then
17891 striplib="$STRIP -x"
17892 echo "$as_me:$LINENO: result: yes" >&5
17893 echo "${ECHO_T}yes" >&6
17894 else
17895 echo "$as_me:$LINENO: result: no" >&5
17896 echo "${ECHO_T}no" >&6
17897 fi
17898 ;;
17899 *)
17900 echo "$as_me:$LINENO: result: no" >&5
17901 echo "${ECHO_T}no" >&6
17902 ;;
17903 esac
17904 fi
17905
17906 if test "x$enable_dlopen" != xyes; then
17907 enable_dlopen=unknown
17908 enable_dlopen_self=unknown
17909 enable_dlopen_self_static=unknown
17910 else
17911 lt_cv_dlopen=no
17912 lt_cv_dlopen_libs=
17913
17914 case $host_os in
17915 beos*)
17916 lt_cv_dlopen="load_add_on"
17917 lt_cv_dlopen_libs=
17918 lt_cv_dlopen_self=yes
17919 ;;
17920
17921 mingw* | pw32*)
17922 lt_cv_dlopen="LoadLibrary"
17923 lt_cv_dlopen_libs=
17924 ;;
17925
17926 cygwin*)
17927 lt_cv_dlopen="dlopen"
17928 lt_cv_dlopen_libs=
17929 ;;
17930
17931 darwin*)
17932 # if libdl is installed we need to link against it
17933 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17934 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 else
17938 ac_check_lib_save_LIBS=$LIBS
17939 LIBS="-ldl $LIBS"
17940 cat >conftest.$ac_ext <<_ACEOF
17941 /* confdefs.h. */
17942 _ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h. */
17946
17947 /* Override any gcc2 internal prototype to avoid an error. */
17948 #ifdef __cplusplus
17949 extern "C"
17950 #endif
17951 /* We use char because int might match the return type of a gcc2
17952 builtin and then its argument prototype would still apply. */
17953 char dlopen ();
17954 int
17955 main ()
17956 {
17957 dlopen ();
17958 ;
17959 return 0;
17960 }
17961 _ACEOF
17962 rm -f conftest.$ac_objext conftest$ac_exeext
17963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964 (eval $ac_link) 2>conftest.er1
17965 ac_status=$?
17966 grep -v '^ *+' conftest.er1 >conftest.err
17967 rm -f conftest.er1
17968 cat conftest.err >&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } &&
17971 { ac_try='test -z "$ac_c_werror_flag"
17972 || test ! -s conftest.err'
17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; } &&
17978 { ac_try='test -s conftest$ac_exeext'
17979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17980 (eval $ac_try) 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
17984 ac_cv_lib_dl_dlopen=yes
17985 else
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17988
17989 ac_cv_lib_dl_dlopen=no
17990 fi
17991 rm -f conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
17993 LIBS=$ac_check_lib_save_LIBS
17994 fi
17995 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17996 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17997 if test $ac_cv_lib_dl_dlopen = yes; then
17998 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17999 else
18000
18001 lt_cv_dlopen="dyld"
18002 lt_cv_dlopen_libs=
18003 lt_cv_dlopen_self=yes
18004
18005 fi
18006
18007 ;;
18008
18009 *)
18010 echo "$as_me:$LINENO: checking for shl_load" >&5
18011 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18012 if test "${ac_cv_func_shl_load+set}" = set; then
18013 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 else
18015 cat >conftest.$ac_ext <<_ACEOF
18016 /* confdefs.h. */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18023 #define shl_load innocuous_shl_load
18024
18025 /* System header to define __stub macros and hopefully few prototypes,
18026 which can conflict with char shl_load (); below.
18027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18028 <limits.h> exists even on freestanding compilers. */
18029
18030 #ifdef __STDC__
18031 # include <limits.h>
18032 #else
18033 # include <assert.h>
18034 #endif
18035
18036 #undef shl_load
18037
18038 /* Override any gcc2 internal prototype to avoid an error. */
18039 #ifdef __cplusplus
18040 extern "C"
18041 {
18042 #endif
18043 /* We use char because int might match the return type of a gcc2
18044 builtin and then its argument prototype would still apply. */
18045 char shl_load ();
18046 /* The GNU C library defines this for functions which it implements
18047 to always fail with ENOSYS. Some functions are actually named
18048 something starting with __ and the normal name is an alias. */
18049 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18050 choke me
18051 #else
18052 char (*f) () = shl_load;
18053 #endif
18054 #ifdef __cplusplus
18055 }
18056 #endif
18057
18058 int
18059 main ()
18060 {
18061 return f != shl_load;
18062 ;
18063 return 0;
18064 }
18065 _ACEOF
18066 rm -f conftest.$ac_objext conftest$ac_exeext
18067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18068 (eval $ac_link) 2>conftest.er1
18069 ac_status=$?
18070 grep -v '^ *+' conftest.er1 >conftest.err
18071 rm -f conftest.er1
18072 cat conftest.err >&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } &&
18075 { ac_try='test -z "$ac_c_werror_flag"
18076 || test ! -s conftest.err'
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; } &&
18082 { ac_try='test -s conftest$ac_exeext'
18083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18084 (eval $ac_try) 2>&5
18085 ac_status=$?
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); }; }; then
18088 ac_cv_func_shl_load=yes
18089 else
18090 echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18092
18093 ac_cv_func_shl_load=no
18094 fi
18095 rm -f conftest.err conftest.$ac_objext \
18096 conftest$ac_exeext conftest.$ac_ext
18097 fi
18098 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18099 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18100 if test $ac_cv_func_shl_load = yes; then
18101 lt_cv_dlopen="shl_load"
18102 else
18103 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18104 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18105 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 ac_check_lib_save_LIBS=$LIBS
18109 LIBS="-ldld $LIBS"
18110 cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h. */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h. */
18116
18117 /* Override any gcc2 internal prototype to avoid an error. */
18118 #ifdef __cplusplus
18119 extern "C"
18120 #endif
18121 /* We use char because int might match the return type of a gcc2
18122 builtin and then its argument prototype would still apply. */
18123 char shl_load ();
18124 int
18125 main ()
18126 {
18127 shl_load ();
18128 ;
18129 return 0;
18130 }
18131 _ACEOF
18132 rm -f conftest.$ac_objext conftest$ac_exeext
18133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18134 (eval $ac_link) 2>conftest.er1
18135 ac_status=$?
18136 grep -v '^ *+' conftest.er1 >conftest.err
18137 rm -f conftest.er1
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } &&
18141 { ac_try='test -z "$ac_c_werror_flag"
18142 || test ! -s conftest.err'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; } &&
18148 { ac_try='test -s conftest$ac_exeext'
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; }; then
18154 ac_cv_lib_dld_shl_load=yes
18155 else
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159 ac_cv_lib_dld_shl_load=no
18160 fi
18161 rm -f conftest.err conftest.$ac_objext \
18162 conftest$ac_exeext conftest.$ac_ext
18163 LIBS=$ac_check_lib_save_LIBS
18164 fi
18165 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18166 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18167 if test $ac_cv_lib_dld_shl_load = yes; then
18168 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18169 else
18170 echo "$as_me:$LINENO: checking for dlopen" >&5
18171 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18172 if test "${ac_cv_func_dlopen+set}" = set; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 else
18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h. */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18183 #define dlopen innocuous_dlopen
18184
18185 /* System header to define __stub macros and hopefully few prototypes,
18186 which can conflict with char dlopen (); below.
18187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18188 <limits.h> exists even on freestanding compilers. */
18189
18190 #ifdef __STDC__
18191 # include <limits.h>
18192 #else
18193 # include <assert.h>
18194 #endif
18195
18196 #undef dlopen
18197
18198 /* Override any gcc2 internal prototype to avoid an error. */
18199 #ifdef __cplusplus
18200 extern "C"
18201 {
18202 #endif
18203 /* We use char because int might match the return type of a gcc2
18204 builtin and then its argument prototype would still apply. */
18205 char dlopen ();
18206 /* The GNU C library defines this for functions which it implements
18207 to always fail with ENOSYS. Some functions are actually named
18208 something starting with __ and the normal name is an alias. */
18209 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18210 choke me
18211 #else
18212 char (*f) () = dlopen;
18213 #endif
18214 #ifdef __cplusplus
18215 }
18216 #endif
18217
18218 int
18219 main ()
18220 {
18221 return f != dlopen;
18222 ;
18223 return 0;
18224 }
18225 _ACEOF
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18228 (eval $ac_link) 2>conftest.er1
18229 ac_status=$?
18230 grep -v '^ *+' conftest.er1 >conftest.err
18231 rm -f conftest.er1
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag"
18236 || test ! -s conftest.err'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18239 ac_status=$?
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try='test -s conftest$ac_exeext'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 ac_cv_func_dlopen=yes
18249 else
18250 echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253 ac_cv_func_dlopen=no
18254 fi
18255 rm -f conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18257 fi
18258 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18259 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18260 if test $ac_cv_func_dlopen = yes; then
18261 lt_cv_dlopen="dlopen"
18262 else
18263 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18264 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268 ac_check_lib_save_LIBS=$LIBS
18269 LIBS="-ldl $LIBS"
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h. */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18276
18277 /* Override any gcc2 internal prototype to avoid an error. */
18278 #ifdef __cplusplus
18279 extern "C"
18280 #endif
18281 /* We use char because int might match the return type of a gcc2
18282 builtin and then its argument prototype would still apply. */
18283 char dlopen ();
18284 int
18285 main ()
18286 {
18287 dlopen ();
18288 ;
18289 return 0;
18290 }
18291 _ACEOF
18292 rm -f conftest.$ac_objext conftest$ac_exeext
18293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18294 (eval $ac_link) 2>conftest.er1
18295 ac_status=$?
18296 grep -v '^ *+' conftest.er1 >conftest.err
18297 rm -f conftest.er1
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -z "$ac_c_werror_flag"
18302 || test ! -s conftest.err'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest$ac_exeext'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18314 ac_cv_lib_dl_dlopen=yes
18315 else
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18318
18319 ac_cv_lib_dl_dlopen=no
18320 fi
18321 rm -f conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18324 fi
18325 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18326 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18327 if test $ac_cv_lib_dl_dlopen = yes; then
18328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18329 else
18330 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18331 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18332 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 else
18335 ac_check_lib_save_LIBS=$LIBS
18336 LIBS="-lsvld $LIBS"
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h. */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343
18344 /* Override any gcc2 internal prototype to avoid an error. */
18345 #ifdef __cplusplus
18346 extern "C"
18347 #endif
18348 /* We use char because int might match the return type of a gcc2
18349 builtin and then its argument prototype would still apply. */
18350 char dlopen ();
18351 int
18352 main ()
18353 {
18354 dlopen ();
18355 ;
18356 return 0;
18357 }
18358 _ACEOF
18359 rm -f conftest.$ac_objext conftest$ac_exeext
18360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18361 (eval $ac_link) 2>conftest.er1
18362 ac_status=$?
18363 grep -v '^ *+' conftest.er1 >conftest.err
18364 rm -f conftest.er1
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
18368 { ac_try='test -z "$ac_c_werror_flag"
18369 || test ! -s conftest.err'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } &&
18375 { ac_try='test -s conftest$ac_exeext'
18376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377 (eval $ac_try) 2>&5
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); }; }; then
18381 ac_cv_lib_svld_dlopen=yes
18382 else
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386 ac_cv_lib_svld_dlopen=no
18387 fi
18388 rm -f conftest.err conftest.$ac_objext \
18389 conftest$ac_exeext conftest.$ac_ext
18390 LIBS=$ac_check_lib_save_LIBS
18391 fi
18392 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18393 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18394 if test $ac_cv_lib_svld_dlopen = yes; then
18395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18396 else
18397 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18398 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18399 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 else
18402 ac_check_lib_save_LIBS=$LIBS
18403 LIBS="-ldld $LIBS"
18404 cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h. */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410
18411 /* Override any gcc2 internal prototype to avoid an error. */
18412 #ifdef __cplusplus
18413 extern "C"
18414 #endif
18415 /* We use char because int might match the return type of a gcc2
18416 builtin and then its argument prototype would still apply. */
18417 char dld_link ();
18418 int
18419 main ()
18420 {
18421 dld_link ();
18422 ;
18423 return 0;
18424 }
18425 _ACEOF
18426 rm -f conftest.$ac_objext conftest$ac_exeext
18427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18428 (eval $ac_link) 2>conftest.er1
18429 ac_status=$?
18430 grep -v '^ *+' conftest.er1 >conftest.err
18431 rm -f conftest.er1
18432 cat conftest.err >&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } &&
18435 { ac_try='test -z "$ac_c_werror_flag"
18436 || test ! -s conftest.err'
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; } &&
18442 { ac_try='test -s conftest$ac_exeext'
18443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444 (eval $ac_try) 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; }; then
18448 ac_cv_lib_dld_dld_link=yes
18449 else
18450 echo "$as_me: failed program was:" >&5
18451 sed 's/^/| /' conftest.$ac_ext >&5
18452
18453 ac_cv_lib_dld_dld_link=no
18454 fi
18455 rm -f conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457 LIBS=$ac_check_lib_save_LIBS
18458 fi
18459 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18460 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18461 if test $ac_cv_lib_dld_dld_link = yes; then
18462 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18463 fi
18464
18465
18466 fi
18467
18468
18469 fi
18470
18471
18472 fi
18473
18474
18475 fi
18476
18477
18478 fi
18479
18480 ;;
18481 esac
18482
18483 if test "x$lt_cv_dlopen" != xno; then
18484 enable_dlopen=yes
18485 else
18486 enable_dlopen=no
18487 fi
18488
18489 case $lt_cv_dlopen in
18490 dlopen)
18491 save_CPPFLAGS="$CPPFLAGS"
18492 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18493
18494 save_LDFLAGS="$LDFLAGS"
18495 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18496
18497 save_LIBS="$LIBS"
18498 LIBS="$lt_cv_dlopen_libs $LIBS"
18499
18500 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18501 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18502 if test "${lt_cv_dlopen_self+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505 if test "$cross_compiling" = yes; then :
18506 lt_cv_dlopen_self=cross
18507 else
18508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18509 lt_status=$lt_dlunknown
18510 cat > conftest.$ac_ext <<EOF
18511 #line 18511 "configure"
18512 #include "confdefs.h"
18513
18514 #if HAVE_DLFCN_H
18515 #include <dlfcn.h>
18516 #endif
18517
18518 #include <stdio.h>
18519
18520 #ifdef RTLD_GLOBAL
18521 # define LT_DLGLOBAL RTLD_GLOBAL
18522 #else
18523 # ifdef DL_GLOBAL
18524 # define LT_DLGLOBAL DL_GLOBAL
18525 # else
18526 # define LT_DLGLOBAL 0
18527 # endif
18528 #endif
18529
18530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18531 find out it does not work in some platform. */
18532 #ifndef LT_DLLAZY_OR_NOW
18533 # ifdef RTLD_LAZY
18534 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18535 # else
18536 # ifdef DL_LAZY
18537 # define LT_DLLAZY_OR_NOW DL_LAZY
18538 # else
18539 # ifdef RTLD_NOW
18540 # define LT_DLLAZY_OR_NOW RTLD_NOW
18541 # else
18542 # ifdef DL_NOW
18543 # define LT_DLLAZY_OR_NOW DL_NOW
18544 # else
18545 # define LT_DLLAZY_OR_NOW 0
18546 # endif
18547 # endif
18548 # endif
18549 # endif
18550 #endif
18551
18552 #ifdef __cplusplus
18553 extern "C" void exit (int);
18554 #endif
18555
18556 void fnord() { int i=42;}
18557 int main ()
18558 {
18559 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18560 int status = $lt_dlunknown;
18561
18562 if (self)
18563 {
18564 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18565 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18566 /* dlclose (self); */
18567 }
18568
18569 exit (status);
18570 }
18571 EOF
18572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18573 (eval $ac_link) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18577 (./conftest; exit; ) >&5 2>/dev/null
18578 lt_status=$?
18579 case x$lt_status in
18580 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18581 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18582 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18583 esac
18584 else :
18585 # compilation failed
18586 lt_cv_dlopen_self=no
18587 fi
18588 fi
18589 rm -fr conftest*
18590
18591
18592 fi
18593 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18594 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18595
18596 if test "x$lt_cv_dlopen_self" = xyes; then
18597 LDFLAGS="$LDFLAGS $link_static_flag"
18598 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18599 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18600 if test "${lt_cv_dlopen_self_static+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
18603 if test "$cross_compiling" = yes; then :
18604 lt_cv_dlopen_self_static=cross
18605 else
18606 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18607 lt_status=$lt_dlunknown
18608 cat > conftest.$ac_ext <<EOF
18609 #line 18609 "configure"
18610 #include "confdefs.h"
18611
18612 #if HAVE_DLFCN_H
18613 #include <dlfcn.h>
18614 #endif
18615
18616 #include <stdio.h>
18617
18618 #ifdef RTLD_GLOBAL
18619 # define LT_DLGLOBAL RTLD_GLOBAL
18620 #else
18621 # ifdef DL_GLOBAL
18622 # define LT_DLGLOBAL DL_GLOBAL
18623 # else
18624 # define LT_DLGLOBAL 0
18625 # endif
18626 #endif
18627
18628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18629 find out it does not work in some platform. */
18630 #ifndef LT_DLLAZY_OR_NOW
18631 # ifdef RTLD_LAZY
18632 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18633 # else
18634 # ifdef DL_LAZY
18635 # define LT_DLLAZY_OR_NOW DL_LAZY
18636 # else
18637 # ifdef RTLD_NOW
18638 # define LT_DLLAZY_OR_NOW RTLD_NOW
18639 # else
18640 # ifdef DL_NOW
18641 # define LT_DLLAZY_OR_NOW DL_NOW
18642 # else
18643 # define LT_DLLAZY_OR_NOW 0
18644 # endif
18645 # endif
18646 # endif
18647 # endif
18648 #endif
18649
18650 #ifdef __cplusplus
18651 extern "C" void exit (int);
18652 #endif
18653
18654 void fnord() { int i=42;}
18655 int main ()
18656 {
18657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18658 int status = $lt_dlunknown;
18659
18660 if (self)
18661 {
18662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18663 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18664 /* dlclose (self); */
18665 }
18666
18667 exit (status);
18668 }
18669 EOF
18670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18671 (eval $ac_link) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18675 (./conftest; exit; ) >&5 2>/dev/null
18676 lt_status=$?
18677 case x$lt_status in
18678 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18679 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18680 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18681 esac
18682 else :
18683 # compilation failed
18684 lt_cv_dlopen_self_static=no
18685 fi
18686 fi
18687 rm -fr conftest*
18688
18689
18690 fi
18691 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18692 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18693 fi
18694
18695 CPPFLAGS="$save_CPPFLAGS"
18696 LDFLAGS="$save_LDFLAGS"
18697 LIBS="$save_LIBS"
18698 ;;
18699 esac
18700
18701 case $lt_cv_dlopen_self in
18702 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18703 *) enable_dlopen_self=unknown ;;
18704 esac
18705
18706 case $lt_cv_dlopen_self_static in
18707 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18708 *) enable_dlopen_self_static=unknown ;;
18709 esac
18710 fi
18711
18712
18713 # The else clause should only fire when bootstrapping the
18714 # libtool distribution, otherwise you forgot to ship ltmain.sh
18715 # with your package, and you will get complaints that there are
18716 # no rules to generate ltmain.sh.
18717 if test -f "$ltmain"; then
18718 # See if we are running on zsh, and set the options which allow our commands through
18719 # without removal of \ escapes.
18720 if test -n "${ZSH_VERSION+set}" ; then
18721 setopt NO_GLOB_SUBST
18722 fi
18723 # Now quote all the things that may contain metacharacters while being
18724 # careful not to overquote the AC_SUBSTed values. We take copies of the
18725 # variables and quote the copies for generation of the libtool script.
18726 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18727 SED SHELL STRIP \
18728 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18729 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18730 deplibs_check_method reload_flag reload_cmds need_locks \
18731 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18732 lt_cv_sys_global_symbol_to_c_name_address \
18733 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18734 old_postinstall_cmds old_postuninstall_cmds \
18735 compiler_GCJ \
18736 CC_GCJ \
18737 LD_GCJ \
18738 lt_prog_compiler_wl_GCJ \
18739 lt_prog_compiler_pic_GCJ \
18740 lt_prog_compiler_static_GCJ \
18741 lt_prog_compiler_no_builtin_flag_GCJ \
18742 export_dynamic_flag_spec_GCJ \
18743 thread_safe_flag_spec_GCJ \
18744 whole_archive_flag_spec_GCJ \
18745 enable_shared_with_static_runtimes_GCJ \
18746 old_archive_cmds_GCJ \
18747 old_archive_from_new_cmds_GCJ \
18748 predep_objects_GCJ \
18749 postdep_objects_GCJ \
18750 predeps_GCJ \
18751 postdeps_GCJ \
18752 compiler_lib_search_path_GCJ \
18753 archive_cmds_GCJ \
18754 archive_expsym_cmds_GCJ \
18755 postinstall_cmds_GCJ \
18756 postuninstall_cmds_GCJ \
18757 old_archive_from_expsyms_cmds_GCJ \
18758 allow_undefined_flag_GCJ \
18759 no_undefined_flag_GCJ \
18760 export_symbols_cmds_GCJ \
18761 hardcode_libdir_flag_spec_GCJ \
18762 hardcode_libdir_flag_spec_ld_GCJ \
18763 hardcode_libdir_separator_GCJ \
18764 hardcode_automatic_GCJ \
18765 module_cmds_GCJ \
18766 module_expsym_cmds_GCJ \
18767 lt_cv_prog_compiler_c_o_GCJ \
18768 exclude_expsyms_GCJ \
18769 include_expsyms_GCJ; do
18770
18771 case $var in
18772 old_archive_cmds_GCJ | \
18773 old_archive_from_new_cmds_GCJ | \
18774 archive_cmds_GCJ | \
18775 archive_expsym_cmds_GCJ | \
18776 module_cmds_GCJ | \
18777 module_expsym_cmds_GCJ | \
18778 old_archive_from_expsyms_cmds_GCJ | \
18779 export_symbols_cmds_GCJ | \
18780 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18781 postinstall_cmds | postuninstall_cmds | \
18782 old_postinstall_cmds | old_postuninstall_cmds | \
18783 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18784 # Double-quote double-evaled strings.
18785 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18786 ;;
18787 *)
18788 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18789 ;;
18790 esac
18791 done
18792
18793 case $lt_echo in
18794 *'\$0 --fallback-echo"')
18795 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18796 ;;
18797 esac
18798
18799 cfgfile="$ofile"
18800
18801 cat <<__EOF__ >> "$cfgfile"
18802 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18803
18804 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18805
18806 # Shell to use when invoking shell scripts.
18807 SHELL=$lt_SHELL
18808
18809 # Whether or not to build shared libraries.
18810 build_libtool_libs=$enable_shared
18811
18812 # Whether or not to build static libraries.
18813 build_old_libs=$enable_static
18814
18815 # Whether or not to add -lc for building shared libraries.
18816 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18817
18818 # Whether or not to disallow shared libs when runtime libs are static
18819 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18820
18821 # Whether or not to optimize for fast installation.
18822 fast_install=$enable_fast_install
18823
18824 # The host system.
18825 host_alias=$host_alias
18826 host=$host
18827 host_os=$host_os
18828
18829 # The build system.
18830 build_alias=$build_alias
18831 build=$build
18832 build_os=$build_os
18833
18834 # An echo program that does not interpret backslashes.
18835 echo=$lt_echo
18836
18837 # The archiver.
18838 AR=$lt_AR
18839 AR_FLAGS=$lt_AR_FLAGS
18840
18841 # A C compiler.
18842 LTCC=$lt_LTCC
18843
18844 # A language-specific compiler.
18845 CC=$lt_compiler_GCJ
18846
18847 # Is the compiler the GNU C compiler?
18848 with_gcc=$GCC_GCJ
18849
18850 # An ERE matcher.
18851 EGREP=$lt_EGREP
18852
18853 # The linker used to build libraries.
18854 LD=$lt_LD_GCJ
18855
18856 # Whether we need hard or soft links.
18857 LN_S=$lt_LN_S
18858
18859 # A BSD-compatible nm program.
18860 NM=$lt_NM
18861
18862 # A symbol stripping program
18863 STRIP=$lt_STRIP
18864
18865 # Used to examine libraries when file_magic_cmd begins "file"
18866 MAGIC_CMD=$MAGIC_CMD
18867
18868 # Used on cygwin: DLL creation program.
18869 DLLTOOL="$DLLTOOL"
18870
18871 # Used on cygwin: object dumper.
18872 OBJDUMP="$OBJDUMP"
18873
18874 # Used on cygwin: assembler.
18875 AS="$AS"
18876
18877 # The name of the directory that contains temporary libtool files.
18878 objdir=$objdir
18879
18880 # How to create reloadable object files.
18881 reload_flag=$lt_reload_flag
18882 reload_cmds=$lt_reload_cmds
18883
18884 # How to pass a linker flag through the compiler.
18885 wl=$lt_lt_prog_compiler_wl_GCJ
18886
18887 # Object file suffix (normally "o").
18888 objext="$ac_objext"
18889
18890 # Old archive suffix (normally "a").
18891 libext="$libext"
18892
18893 # Shared library suffix (normally ".so").
18894 shrext_cmds='$shrext_cmds'
18895
18896 # Executable file suffix (normally "").
18897 exeext="$exeext"
18898
18899 # Additional compiler flags for building library objects.
18900 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18901 pic_mode=$pic_mode
18902
18903 # What is the maximum length of a command?
18904 max_cmd_len=$lt_cv_sys_max_cmd_len
18905
18906 # Does compiler simultaneously support -c and -o options?
18907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18908
18909 # Must we lock files when doing compilation?
18910 need_locks=$lt_need_locks
18911
18912 # Do we need the lib prefix for modules?
18913 need_lib_prefix=$need_lib_prefix
18914
18915 # Do we need a version for libraries?
18916 need_version=$need_version
18917
18918 # Whether dlopen is supported.
18919 dlopen_support=$enable_dlopen
18920
18921 # Whether dlopen of programs is supported.
18922 dlopen_self=$enable_dlopen_self
18923
18924 # Whether dlopen of statically linked programs is supported.
18925 dlopen_self_static=$enable_dlopen_self_static
18926
18927 # Compiler flag to prevent dynamic linking.
18928 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18929
18930 # Compiler flag to turn off builtin functions.
18931 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18932
18933 # Compiler flag to allow reflexive dlopens.
18934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18935
18936 # Compiler flag to generate shared objects directly from archives.
18937 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18938
18939 # Compiler flag to generate thread-safe objects.
18940 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18941
18942 # Library versioning type.
18943 version_type=$version_type
18944
18945 # Format of library name prefix.
18946 libname_spec=$lt_libname_spec
18947
18948 # List of archive names. First name is the real one, the rest are links.
18949 # The last name is the one that the linker finds with -lNAME.
18950 library_names_spec=$lt_library_names_spec
18951
18952 # The coded name of the library, if different from the real name.
18953 soname_spec=$lt_soname_spec
18954
18955 # Commands used to build and install an old-style archive.
18956 RANLIB=$lt_RANLIB
18957 old_archive_cmds=$lt_old_archive_cmds_GCJ
18958 old_postinstall_cmds=$lt_old_postinstall_cmds
18959 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18960
18961 # Create an old-style archive from a shared archive.
18962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18963
18964 # Create a temporary old-style archive to link instead of a shared archive.
18965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18966
18967 # Commands used to build and install a shared archive.
18968 archive_cmds=$lt_archive_cmds_GCJ
18969 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18970 postinstall_cmds=$lt_postinstall_cmds
18971 postuninstall_cmds=$lt_postuninstall_cmds
18972
18973 # Commands used to build a loadable module (assumed same as above if empty)
18974 module_cmds=$lt_module_cmds_GCJ
18975 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18976
18977 # Commands to strip libraries.
18978 old_striplib=$lt_old_striplib
18979 striplib=$lt_striplib
18980
18981 # Dependencies to place before the objects being linked to create a
18982 # shared library.
18983 predep_objects=$lt_predep_objects_GCJ
18984
18985 # Dependencies to place after the objects being linked to create a
18986 # shared library.
18987 postdep_objects=$lt_postdep_objects_GCJ
18988
18989 # Dependencies to place before the objects being linked to create a
18990 # shared library.
18991 predeps=$lt_predeps_GCJ
18992
18993 # Dependencies to place after the objects being linked to create a
18994 # shared library.
18995 postdeps=$lt_postdeps_GCJ
18996
18997 # The library search path used internally by the compiler when linking
18998 # a shared library.
18999 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19000
19001 # Method to check whether dependent libraries are shared objects.
19002 deplibs_check_method=$lt_deplibs_check_method
19003
19004 # Command to use when deplibs_check_method == file_magic.
19005 file_magic_cmd=$lt_file_magic_cmd
19006
19007 # Flag that allows shared libraries with undefined symbols to be built.
19008 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19009
19010 # Flag that forces no undefined symbols.
19011 no_undefined_flag=$lt_no_undefined_flag_GCJ
19012
19013 # Commands used to finish a libtool library installation in a directory.
19014 finish_cmds=$lt_finish_cmds
19015
19016 # Same as above, but a single script fragment to be evaled but not shown.
19017 finish_eval=$lt_finish_eval
19018
19019 # Take the output of nm and produce a listing of raw symbols and C names.
19020 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19021
19022 # Transform the output of nm in a proper C declaration
19023 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19024
19025 # Transform the output of nm in a C name address pair
19026 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19027
19028 # This is the shared library runtime path variable.
19029 runpath_var=$runpath_var
19030
19031 # This is the shared library path variable.
19032 shlibpath_var=$shlibpath_var
19033
19034 # Is shlibpath searched before the hard-coded library search path?
19035 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19036
19037 # How to hardcode a shared library path into an executable.
19038 hardcode_action=$hardcode_action_GCJ
19039
19040 # Whether we should hardcode library paths into libraries.
19041 hardcode_into_libs=$hardcode_into_libs
19042
19043 # Flag to hardcode \$libdir into a binary during linking.
19044 # This must work even if \$libdir does not exist.
19045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19046
19047 # If ld is used when linking, flag to hardcode \$libdir into
19048 # a binary during linking. This must work even if \$libdir does
19049 # not exist.
19050 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19051
19052 # Whether we need a single -rpath flag with a separated argument.
19053 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19054
19055 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19056 # resulting binary.
19057 hardcode_direct=$hardcode_direct_GCJ
19058
19059 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19060 # resulting binary.
19061 hardcode_minus_L=$hardcode_minus_L_GCJ
19062
19063 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19064 # the resulting binary.
19065 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19066
19067 # Set to yes if building a shared library automatically hardcodes DIR into the library
19068 # and all subsequent libraries and executables linked against it.
19069 hardcode_automatic=$hardcode_automatic_GCJ
19070
19071 # Variables whose values should be saved in libtool wrapper scripts and
19072 # restored at relink time.
19073 variables_saved_for_relink="$variables_saved_for_relink"
19074
19075 # Whether libtool must link a program against all its dependency libraries.
19076 link_all_deplibs=$link_all_deplibs_GCJ
19077
19078 # Compile-time system search path for libraries
19079 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19080
19081 # Run-time system search path for libraries
19082 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19083
19084 # Fix the shell variable \$srcfile for the compiler.
19085 fix_srcfile_path="$fix_srcfile_path_GCJ"
19086
19087 # Set to yes if exported symbols are required.
19088 always_export_symbols=$always_export_symbols_GCJ
19089
19090 # The commands to list exported symbols.
19091 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19092
19093 # The commands to extract the exported symbol list from a shared archive.
19094 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19095
19096 # Symbols that should not be listed in the preloaded symbols.
19097 exclude_expsyms=$lt_exclude_expsyms_GCJ
19098
19099 # Symbols that must always be exported.
19100 include_expsyms=$lt_include_expsyms_GCJ
19101
19102 # ### END LIBTOOL TAG CONFIG: $tagname
19103
19104 __EOF__
19105
19106
19107 else
19108 # If there is no Makefile yet, we rely on a make rule to execute
19109 # `config.status --recheck' to rerun these tests and create the
19110 # libtool script then.
19111 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19112 if test -f "$ltmain_in"; then
19113 test -f Makefile && make "$ltmain"
19114 fi
19115 fi
19116
19117
19118 ac_ext=c
19119 ac_cpp='$CPP $CPPFLAGS'
19120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19123
19124 CC="$lt_save_CC"
19125
19126 else
19127 tagname=""
19128 fi
19129 ;;
19130
19131 RC)
19132
19133
19134
19135 # Source file extension for RC test sources.
19136 ac_ext=rc
19137
19138 # Object file extension for compiled RC test sources.
19139 objext=o
19140 objext_RC=$objext
19141
19142 # Code to be used in simple compile tests
19143 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19144
19145 # Code to be used in simple link tests
19146 lt_simple_link_test_code="$lt_simple_compile_test_code"
19147
19148 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19149
19150 # If no C compiler was specified, use CC.
19151 LTCC=${LTCC-"$CC"}
19152
19153 # Allow CC to be a program name with arguments.
19154 compiler=$CC
19155
19156
19157 # save warnings/boilerplate of simple test code
19158 ac_outfile=conftest.$ac_objext
19159 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19161 _lt_compiler_boilerplate=`cat conftest.err`
19162 $rm conftest*
19163
19164 ac_outfile=conftest.$ac_objext
19165 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19167 _lt_linker_boilerplate=`cat conftest.err`
19168 $rm conftest*
19169
19170
19171 # Allow CC to be a program name with arguments.
19172 lt_save_CC="$CC"
19173 CC=${RC-"windres"}
19174 compiler=$CC
19175 compiler_RC=$CC
19176 for cc_temp in $compiler""; do
19177 case $cc_temp in
19178 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19179 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19180 \-*) ;;
19181 *) break;;
19182 esac
19183 done
19184 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19185
19186 lt_cv_prog_compiler_c_o_RC=yes
19187
19188 # The else clause should only fire when bootstrapping the
19189 # libtool distribution, otherwise you forgot to ship ltmain.sh
19190 # with your package, and you will get complaints that there are
19191 # no rules to generate ltmain.sh.
19192 if test -f "$ltmain"; then
19193 # See if we are running on zsh, and set the options which allow our commands through
19194 # without removal of \ escapes.
19195 if test -n "${ZSH_VERSION+set}" ; then
19196 setopt NO_GLOB_SUBST
19197 fi
19198 # Now quote all the things that may contain metacharacters while being
19199 # careful not to overquote the AC_SUBSTed values. We take copies of the
19200 # variables and quote the copies for generation of the libtool script.
19201 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19202 SED SHELL STRIP \
19203 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19204 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19205 deplibs_check_method reload_flag reload_cmds need_locks \
19206 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19207 lt_cv_sys_global_symbol_to_c_name_address \
19208 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19209 old_postinstall_cmds old_postuninstall_cmds \
19210 compiler_RC \
19211 CC_RC \
19212 LD_RC \
19213 lt_prog_compiler_wl_RC \
19214 lt_prog_compiler_pic_RC \
19215 lt_prog_compiler_static_RC \
19216 lt_prog_compiler_no_builtin_flag_RC \
19217 export_dynamic_flag_spec_RC \
19218 thread_safe_flag_spec_RC \
19219 whole_archive_flag_spec_RC \
19220 enable_shared_with_static_runtimes_RC \
19221 old_archive_cmds_RC \
19222 old_archive_from_new_cmds_RC \
19223 predep_objects_RC \
19224 postdep_objects_RC \
19225 predeps_RC \
19226 postdeps_RC \
19227 compiler_lib_search_path_RC \
19228 archive_cmds_RC \
19229 archive_expsym_cmds_RC \
19230 postinstall_cmds_RC \
19231 postuninstall_cmds_RC \
19232 old_archive_from_expsyms_cmds_RC \
19233 allow_undefined_flag_RC \
19234 no_undefined_flag_RC \
19235 export_symbols_cmds_RC \
19236 hardcode_libdir_flag_spec_RC \
19237 hardcode_libdir_flag_spec_ld_RC \
19238 hardcode_libdir_separator_RC \
19239 hardcode_automatic_RC \
19240 module_cmds_RC \
19241 module_expsym_cmds_RC \
19242 lt_cv_prog_compiler_c_o_RC \
19243 exclude_expsyms_RC \
19244 include_expsyms_RC; do
19245
19246 case $var in
19247 old_archive_cmds_RC | \
19248 old_archive_from_new_cmds_RC | \
19249 archive_cmds_RC | \
19250 archive_expsym_cmds_RC | \
19251 module_cmds_RC | \
19252 module_expsym_cmds_RC | \
19253 old_archive_from_expsyms_cmds_RC | \
19254 export_symbols_cmds_RC | \
19255 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19256 postinstall_cmds | postuninstall_cmds | \
19257 old_postinstall_cmds | old_postuninstall_cmds | \
19258 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19259 # Double-quote double-evaled strings.
19260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19261 ;;
19262 *)
19263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19264 ;;
19265 esac
19266 done
19267
19268 case $lt_echo in
19269 *'\$0 --fallback-echo"')
19270 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19271 ;;
19272 esac
19273
19274 cfgfile="$ofile"
19275
19276 cat <<__EOF__ >> "$cfgfile"
19277 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19278
19279 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19280
19281 # Shell to use when invoking shell scripts.
19282 SHELL=$lt_SHELL
19283
19284 # Whether or not to build shared libraries.
19285 build_libtool_libs=$enable_shared
19286
19287 # Whether or not to build static libraries.
19288 build_old_libs=$enable_static
19289
19290 # Whether or not to add -lc for building shared libraries.
19291 build_libtool_need_lc=$archive_cmds_need_lc_RC
19292
19293 # Whether or not to disallow shared libs when runtime libs are static
19294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19295
19296 # Whether or not to optimize for fast installation.
19297 fast_install=$enable_fast_install
19298
19299 # The host system.
19300 host_alias=$host_alias
19301 host=$host
19302 host_os=$host_os
19303
19304 # The build system.
19305 build_alias=$build_alias
19306 build=$build
19307 build_os=$build_os
19308
19309 # An echo program that does not interpret backslashes.
19310 echo=$lt_echo
19311
19312 # The archiver.
19313 AR=$lt_AR
19314 AR_FLAGS=$lt_AR_FLAGS
19315
19316 # A C compiler.
19317 LTCC=$lt_LTCC
19318
19319 # A language-specific compiler.
19320 CC=$lt_compiler_RC
19321
19322 # Is the compiler the GNU C compiler?
19323 with_gcc=$GCC_RC
19324
19325 # An ERE matcher.
19326 EGREP=$lt_EGREP
19327
19328 # The linker used to build libraries.
19329 LD=$lt_LD_RC
19330
19331 # Whether we need hard or soft links.
19332 LN_S=$lt_LN_S
19333
19334 # A BSD-compatible nm program.
19335 NM=$lt_NM
19336
19337 # A symbol stripping program
19338 STRIP=$lt_STRIP
19339
19340 # Used to examine libraries when file_magic_cmd begins "file"
19341 MAGIC_CMD=$MAGIC_CMD
19342
19343 # Used on cygwin: DLL creation program.
19344 DLLTOOL="$DLLTOOL"
19345
19346 # Used on cygwin: object dumper.
19347 OBJDUMP="$OBJDUMP"
19348
19349 # Used on cygwin: assembler.
19350 AS="$AS"
19351
19352 # The name of the directory that contains temporary libtool files.
19353 objdir=$objdir
19354
19355 # How to create reloadable object files.
19356 reload_flag=$lt_reload_flag
19357 reload_cmds=$lt_reload_cmds
19358
19359 # How to pass a linker flag through the compiler.
19360 wl=$lt_lt_prog_compiler_wl_RC
19361
19362 # Object file suffix (normally "o").
19363 objext="$ac_objext"
19364
19365 # Old archive suffix (normally "a").
19366 libext="$libext"
19367
19368 # Shared library suffix (normally ".so").
19369 shrext_cmds='$shrext_cmds'
19370
19371 # Executable file suffix (normally "").
19372 exeext="$exeext"
19373
19374 # Additional compiler flags for building library objects.
19375 pic_flag=$lt_lt_prog_compiler_pic_RC
19376 pic_mode=$pic_mode
19377
19378 # What is the maximum length of a command?
19379 max_cmd_len=$lt_cv_sys_max_cmd_len
19380
19381 # Does compiler simultaneously support -c and -o options?
19382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19383
19384 # Must we lock files when doing compilation?
19385 need_locks=$lt_need_locks
19386
19387 # Do we need the lib prefix for modules?
19388 need_lib_prefix=$need_lib_prefix
19389
19390 # Do we need a version for libraries?
19391 need_version=$need_version
19392
19393 # Whether dlopen is supported.
19394 dlopen_support=$enable_dlopen
19395
19396 # Whether dlopen of programs is supported.
19397 dlopen_self=$enable_dlopen_self
19398
19399 # Whether dlopen of statically linked programs is supported.
19400 dlopen_self_static=$enable_dlopen_self_static
19401
19402 # Compiler flag to prevent dynamic linking.
19403 link_static_flag=$lt_lt_prog_compiler_static_RC
19404
19405 # Compiler flag to turn off builtin functions.
19406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19407
19408 # Compiler flag to allow reflexive dlopens.
19409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19410
19411 # Compiler flag to generate shared objects directly from archives.
19412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19413
19414 # Compiler flag to generate thread-safe objects.
19415 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19416
19417 # Library versioning type.
19418 version_type=$version_type
19419
19420 # Format of library name prefix.
19421 libname_spec=$lt_libname_spec
19422
19423 # List of archive names. First name is the real one, the rest are links.
19424 # The last name is the one that the linker finds with -lNAME.
19425 library_names_spec=$lt_library_names_spec
19426
19427 # The coded name of the library, if different from the real name.
19428 soname_spec=$lt_soname_spec
19429
19430 # Commands used to build and install an old-style archive.
19431 RANLIB=$lt_RANLIB
19432 old_archive_cmds=$lt_old_archive_cmds_RC
19433 old_postinstall_cmds=$lt_old_postinstall_cmds
19434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19435
19436 # Create an old-style archive from a shared archive.
19437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19438
19439 # Create a temporary old-style archive to link instead of a shared archive.
19440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19441
19442 # Commands used to build and install a shared archive.
19443 archive_cmds=$lt_archive_cmds_RC
19444 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19445 postinstall_cmds=$lt_postinstall_cmds
19446 postuninstall_cmds=$lt_postuninstall_cmds
19447
19448 # Commands used to build a loadable module (assumed same as above if empty)
19449 module_cmds=$lt_module_cmds_RC
19450 module_expsym_cmds=$lt_module_expsym_cmds_RC
19451
19452 # Commands to strip libraries.
19453 old_striplib=$lt_old_striplib
19454 striplib=$lt_striplib
19455
19456 # Dependencies to place before the objects being linked to create a
19457 # shared library.
19458 predep_objects=$lt_predep_objects_RC
19459
19460 # Dependencies to place after the objects being linked to create a
19461 # shared library.
19462 postdep_objects=$lt_postdep_objects_RC
19463
19464 # Dependencies to place before the objects being linked to create a
19465 # shared library.
19466 predeps=$lt_predeps_RC
19467
19468 # Dependencies to place after the objects being linked to create a
19469 # shared library.
19470 postdeps=$lt_postdeps_RC
19471
19472 # The library search path used internally by the compiler when linking
19473 # a shared library.
19474 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19475
19476 # Method to check whether dependent libraries are shared objects.
19477 deplibs_check_method=$lt_deplibs_check_method
19478
19479 # Command to use when deplibs_check_method == file_magic.
19480 file_magic_cmd=$lt_file_magic_cmd
19481
19482 # Flag that allows shared libraries with undefined symbols to be built.
19483 allow_undefined_flag=$lt_allow_undefined_flag_RC
19484
19485 # Flag that forces no undefined symbols.
19486 no_undefined_flag=$lt_no_undefined_flag_RC
19487
19488 # Commands used to finish a libtool library installation in a directory.
19489 finish_cmds=$lt_finish_cmds
19490
19491 # Same as above, but a single script fragment to be evaled but not shown.
19492 finish_eval=$lt_finish_eval
19493
19494 # Take the output of nm and produce a listing of raw symbols and C names.
19495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19496
19497 # Transform the output of nm in a proper C declaration
19498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19499
19500 # Transform the output of nm in a C name address pair
19501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19502
19503 # This is the shared library runtime path variable.
19504 runpath_var=$runpath_var
19505
19506 # This is the shared library path variable.
19507 shlibpath_var=$shlibpath_var
19508
19509 # Is shlibpath searched before the hard-coded library search path?
19510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19511
19512 # How to hardcode a shared library path into an executable.
19513 hardcode_action=$hardcode_action_RC
19514
19515 # Whether we should hardcode library paths into libraries.
19516 hardcode_into_libs=$hardcode_into_libs
19517
19518 # Flag to hardcode \$libdir into a binary during linking.
19519 # This must work even if \$libdir does not exist.
19520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19521
19522 # If ld is used when linking, flag to hardcode \$libdir into
19523 # a binary during linking. This must work even if \$libdir does
19524 # not exist.
19525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19526
19527 # Whether we need a single -rpath flag with a separated argument.
19528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19529
19530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19531 # resulting binary.
19532 hardcode_direct=$hardcode_direct_RC
19533
19534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19535 # resulting binary.
19536 hardcode_minus_L=$hardcode_minus_L_RC
19537
19538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19539 # the resulting binary.
19540 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19541
19542 # Set to yes if building a shared library automatically hardcodes DIR into the library
19543 # and all subsequent libraries and executables linked against it.
19544 hardcode_automatic=$hardcode_automatic_RC
19545
19546 # Variables whose values should be saved in libtool wrapper scripts and
19547 # restored at relink time.
19548 variables_saved_for_relink="$variables_saved_for_relink"
19549
19550 # Whether libtool must link a program against all its dependency libraries.
19551 link_all_deplibs=$link_all_deplibs_RC
19552
19553 # Compile-time system search path for libraries
19554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19555
19556 # Run-time system search path for libraries
19557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19558
19559 # Fix the shell variable \$srcfile for the compiler.
19560 fix_srcfile_path="$fix_srcfile_path_RC"
19561
19562 # Set to yes if exported symbols are required.
19563 always_export_symbols=$always_export_symbols_RC
19564
19565 # The commands to list exported symbols.
19566 export_symbols_cmds=$lt_export_symbols_cmds_RC
19567
19568 # The commands to extract the exported symbol list from a shared archive.
19569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19570
19571 # Symbols that should not be listed in the preloaded symbols.
19572 exclude_expsyms=$lt_exclude_expsyms_RC
19573
19574 # Symbols that must always be exported.
19575 include_expsyms=$lt_include_expsyms_RC
19576
19577 # ### END LIBTOOL TAG CONFIG: $tagname
19578
19579 __EOF__
19580
19581
19582 else
19583 # If there is no Makefile yet, we rely on a make rule to execute
19584 # `config.status --recheck' to rerun these tests and create the
19585 # libtool script then.
19586 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19587 if test -f "$ltmain_in"; then
19588 test -f Makefile && make "$ltmain"
19589 fi
19590 fi
19591
19592
19593 ac_ext=c
19594 ac_cpp='$CPP $CPPFLAGS'
19595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19598
19599 CC="$lt_save_CC"
19600
19601 ;;
19602
19603 *)
19604 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19605 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19606 { (exit 1); exit 1; }; }
19607 ;;
19608 esac
19609
19610 # Append the new tag name to the list of available tags.
19611 if test -n "$tagname" ; then
19612 available_tags="$available_tags $tagname"
19613 fi
19614 fi
19615 done
19616 IFS="$lt_save_ifs"
19617
19618 # Now substitute the updated list of available tags.
19619 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19620 mv "${ofile}T" "$ofile"
19621 chmod +x "$ofile"
19622 else
19623 rm -f "${ofile}T"
19624 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19625 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19626 { (exit 1); exit 1; }; }
19627 fi
19628 fi
19629
19630
19631
19632 # This can be used to rebuild libtool when needed
19633 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19634
19635 # Always use our own libtool.
19636 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19637
19638 # Prevent multiple expansion
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660 # Check for X
19661
19662
19663 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19664 if test -n "$ac_tool_prefix"; then
19665 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19666 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19667 echo "$as_me:$LINENO: checking for $ac_word" >&5
19668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19669 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 else
19672 case $PKG_CONFIG in
19673 [\\/]* | ?:[\\/]*)
19674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19675 ;;
19676 *)
19677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19678 for as_dir in $PATH
19679 do
19680 IFS=$as_save_IFS
19681 test -z "$as_dir" && as_dir=.
19682 for ac_exec_ext in '' $ac_executable_extensions; do
19683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19684 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19686 break 2
19687 fi
19688 done
19689 done
19690
19691 ;;
19692 esac
19693 fi
19694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19695
19696 if test -n "$PKG_CONFIG"; then
19697 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19698 echo "${ECHO_T}$PKG_CONFIG" >&6
19699 else
19700 echo "$as_me:$LINENO: result: no" >&5
19701 echo "${ECHO_T}no" >&6
19702 fi
19703
19704 fi
19705 if test -z "$ac_cv_path_PKG_CONFIG"; then
19706 ac_pt_PKG_CONFIG=$PKG_CONFIG
19707 # Extract the first word of "pkg-config", so it can be a program name with args.
19708 set dummy pkg-config; ac_word=$2
19709 echo "$as_me:$LINENO: checking for $ac_word" >&5
19710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19711 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714 case $ac_pt_PKG_CONFIG in
19715 [\\/]* | ?:[\\/]*)
19716 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19717 ;;
19718 *)
19719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19720 for as_dir in $PATH
19721 do
19722 IFS=$as_save_IFS
19723 test -z "$as_dir" && as_dir=.
19724 for ac_exec_ext in '' $ac_executable_extensions; do
19725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19726 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19728 break 2
19729 fi
19730 done
19731 done
19732
19733 ;;
19734 esac
19735 fi
19736 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19737
19738 if test -n "$ac_pt_PKG_CONFIG"; then
19739 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19740 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19741 else
19742 echo "$as_me:$LINENO: result: no" >&5
19743 echo "${ECHO_T}no" >&6
19744 fi
19745
19746 PKG_CONFIG=$ac_pt_PKG_CONFIG
19747 else
19748 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19749 fi
19750
19751 fi
19752 if test -n "$PKG_CONFIG"; then
19753 _pkg_min_version=0.9.0
19754 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19755 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19756 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19757 echo "$as_me:$LINENO: result: yes" >&5
19758 echo "${ECHO_T}yes" >&6
19759 else
19760 echo "$as_me:$LINENO: result: no" >&5
19761 echo "${ECHO_T}no" >&6
19762 PKG_CONFIG=""
19763 fi
19764
19765 fi
19766
19767 pkg_failed=no
19768 echo "$as_me:$LINENO: checking for X" >&5
19769 echo $ECHO_N "checking for X... $ECHO_C" >&6
19770
19771 if test -n "$PKG_CONFIG"; then
19772 if test -n "$X_CFLAGS"; then
19773 pkg_cv_X_CFLAGS="$X_CFLAGS"
19774 else
19775 if test -n "$PKG_CONFIG" && \
19776 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
19777 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
19778 ac_status=$?
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; then
19781 pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
19782 else
19783 pkg_failed=yes
19784 fi
19785 fi
19786 else
19787 pkg_failed=untried
19788 fi
19789 if test -n "$PKG_CONFIG"; then
19790 if test -n "$X_LIBS"; then
19791 pkg_cv_X_LIBS="$X_LIBS"
19792 else
19793 if test -n "$PKG_CONFIG" && \
19794 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
19795 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; then
19799 pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
19800 else
19801 pkg_failed=yes
19802 fi
19803 fi
19804 else
19805 pkg_failed=untried
19806 fi
19807
19808
19809
19810 if test $pkg_failed = yes; then
19811
19812 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19813 _pkg_short_errors_supported=yes
19814 else
19815 _pkg_short_errors_supported=no
19816 fi
19817 if test $_pkg_short_errors_supported = yes; then
19818 X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"`
19819 else
19820 X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
19821 fi
19822 # Put the nasty error message in config.log where it belongs
19823 echo "$X_PKG_ERRORS" >&5
19824
19825 echo "$as_me:$LINENO: result: no" >&5
19826 echo "${ECHO_T}no" >&6
19827 x_found_with_pkgconfig=no
19828 elif test $pkg_failed = untried; then
19829 x_found_with_pkgconfig=no
19830 else
19831 X_CFLAGS=$pkg_cv_X_CFLAGS
19832 X_LIBS=$pkg_cv_X_LIBS
19833 echo "$as_me:$LINENO: result: yes" >&5
19834 echo "${ECHO_T}yes" >&6
19835 x_found_with_pkgconfig=yes
19836 fi
19837
19838 if test "$x_found_with_pkgconfig" = "no"
19839 then
19840 echo "$as_me:$LINENO: checking for X" >&5
19841 echo $ECHO_N "checking for X... $ECHO_C" >&6
19842
19843
19844 # Check whether --with-x or --without-x was given.
19845 if test "${with_x+set}" = set; then
19846 withval="$with_x"
19847
19848 fi;
19849 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19850 if test "x$with_x" = xno; then
19851 # The user explicitly disabled X.
19852 have_x=disabled
19853 else
19854 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19855 # Both variables are already set.
19856 have_x=yes
19857 else
19858 if test "${ac_cv_have_x+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 else
19861 # One or both of the vars are not set, and there is no cached value.
19862 ac_x_includes=no ac_x_libraries=no
19863 rm -fr conftest.dir
19864 if mkdir conftest.dir; then
19865 cd conftest.dir
19866 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19867 cat >Imakefile <<'_ACEOF'
19868 acfindx:
19869 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19870 _ACEOF
19871 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19873 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19874 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19875 for ac_extension in a so sl; do
19876 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19877 test -f $ac_im_libdir/libX11.$ac_extension; then
19878 ac_im_usrlibdir=$ac_im_libdir; break
19879 fi
19880 done
19881 # Screen out bogus values from the imake configuration. They are
19882 # bogus both because they are the default anyway, and because
19883 # using them would break gcc on systems where it needs fixed includes.
19884 case $ac_im_incroot in
19885 /usr/include) ;;
19886 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19887 esac
19888 case $ac_im_usrlibdir in
19889 /usr/lib | /lib) ;;
19890 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19891 esac
19892 fi
19893 cd ..
19894 rm -fr conftest.dir
19895 fi
19896
19897 # Standard set of common directories for X headers.
19898 # Check X11 before X11Rn because it is often a symlink to the current release.
19899 ac_x_header_dirs='
19900 /usr/X11/include
19901 /usr/X11R6/include
19902 /usr/X11R5/include
19903 /usr/X11R4/include
19904
19905 /usr/include/X11
19906 /usr/include/X11R6
19907 /usr/include/X11R5
19908 /usr/include/X11R4
19909
19910 /usr/local/X11/include
19911 /usr/local/X11R6/include
19912 /usr/local/X11R5/include
19913 /usr/local/X11R4/include
19914
19915 /usr/local/include/X11
19916 /usr/local/include/X11R6
19917 /usr/local/include/X11R5
19918 /usr/local/include/X11R4
19919
19920 /usr/X386/include
19921 /usr/x386/include
19922 /usr/XFree86/include/X11
19923
19924 /usr/include
19925 /usr/local/include
19926 /usr/unsupported/include
19927 /usr/athena/include
19928 /usr/local/x11r5/include
19929 /usr/lpp/Xamples/include
19930
19931 /usr/openwin/include
19932 /usr/openwin/share/include'
19933
19934 if test "$ac_x_includes" = no; then
19935 # Guess where to find include files, by looking for Intrinsic.h.
19936 # First, try using that file with no special directory specified.
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h. */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 #include <X11/Intrinsic.h>
19944 _ACEOF
19945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19947 ac_status=$?
19948 grep -v '^ *+' conftest.er1 >conftest.err
19949 rm -f conftest.er1
19950 cat conftest.err >&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); } >/dev/null; then
19953 if test -s conftest.err; then
19954 ac_cpp_err=$ac_c_preproc_warn_flag
19955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19956 else
19957 ac_cpp_err=
19958 fi
19959 else
19960 ac_cpp_err=yes
19961 fi
19962 if test -z "$ac_cpp_err"; then
19963 # We can compile using X headers with no special include directory.
19964 ac_x_includes=
19965 else
19966 echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969 for ac_dir in $ac_x_header_dirs; do
19970 if test -r "$ac_dir/X11/Intrinsic.h"; then
19971 ac_x_includes=$ac_dir
19972 break
19973 fi
19974 done
19975 fi
19976 rm -f conftest.err conftest.$ac_ext
19977 fi # $ac_x_includes = no
19978
19979 if test "$ac_x_libraries" = no; then
19980 # Check for the libraries.
19981 # See if we find them without any special options.
19982 # Don't add to $LIBS permanently.
19983 ac_save_LIBS=$LIBS
19984 LIBS="-lXt $LIBS"
19985 cat >conftest.$ac_ext <<_ACEOF
19986 /* confdefs.h. */
19987 _ACEOF
19988 cat confdefs.h >>conftest.$ac_ext
19989 cat >>conftest.$ac_ext <<_ACEOF
19990 /* end confdefs.h. */
19991 #include <X11/Intrinsic.h>
19992 int
19993 main ()
19994 {
19995 XtMalloc (0)
19996 ;
19997 return 0;
19998 }
19999 _ACEOF
20000 rm -f conftest.$ac_objext conftest$ac_exeext
20001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20002 (eval $ac_link) 2>conftest.er1
20003 ac_status=$?
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } &&
20009 { ac_try='test -z "$ac_c_werror_flag"
20010 || test ! -s conftest.err'
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; } &&
20016 { ac_try='test -s conftest$ac_exeext'
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; }; then
20022 LIBS=$ac_save_LIBS
20023 # We can link X programs with no special library path.
20024 ac_x_libraries=
20025 else
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20028
20029 LIBS=$ac_save_LIBS
20030 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20031 do
20032 # Don't even attempt the hair of trying to link an X program!
20033 for ac_extension in a so sl; do
20034 if test -r $ac_dir/libXt.$ac_extension; then
20035 ac_x_libraries=$ac_dir
20036 break 2
20037 fi
20038 done
20039 done
20040 fi
20041 rm -f conftest.err conftest.$ac_objext \
20042 conftest$ac_exeext conftest.$ac_ext
20043 fi # $ac_x_libraries = no
20044
20045 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20046 # Didn't find X anywhere. Cache the known absence of X.
20047 ac_cv_have_x="have_x=no"
20048 else
20049 # Record where we found X for the cache.
20050 ac_cv_have_x="have_x=yes \
20051 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20052 fi
20053 fi
20054
20055 fi
20056 eval "$ac_cv_have_x"
20057 fi # $with_x != no
20058
20059 if test "$have_x" != yes; then
20060 echo "$as_me:$LINENO: result: $have_x" >&5
20061 echo "${ECHO_T}$have_x" >&6
20062 no_x=yes
20063 else
20064 # If each of the values was on the command line, it overrides each guess.
20065 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20066 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20067 # Update the cache value to reflect the command line values.
20068 ac_cv_have_x="have_x=yes \
20069 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20070 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20071 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20072 fi
20073
20074 if test "$no_x" = yes; then
20075 # Not all programs may use this symbol, but it does not hurt to define it.
20076
20077 cat >>confdefs.h <<\_ACEOF
20078 #define X_DISPLAY_MISSING 1
20079 _ACEOF
20080
20081 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20082 else
20083 if test -n "$x_includes"; then
20084 X_CFLAGS="$X_CFLAGS -I$x_includes"
20085 fi
20086
20087 # It would also be nice to do this for all -L options, not just this one.
20088 if test -n "$x_libraries"; then
20089 X_LIBS="$X_LIBS -L$x_libraries"
20090 # For Solaris; some versions of Sun CC require a space after -R and
20091 # others require no space. Words are not sufficient . . . .
20092 case `(uname -sr) 2>/dev/null` in
20093 "SunOS 5"*)
20094 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20095 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
20096 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20097 cat >conftest.$ac_ext <<_ACEOF
20098 /* confdefs.h. */
20099 _ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103
20104 int
20105 main ()
20106 {
20107
20108 ;
20109 return 0;
20110 }
20111 _ACEOF
20112 rm -f conftest.$ac_objext conftest$ac_exeext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20114 (eval $ac_link) 2>conftest.er1
20115 ac_status=$?
20116 grep -v '^ *+' conftest.er1 >conftest.err
20117 rm -f conftest.er1
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } &&
20121 { ac_try='test -z "$ac_c_werror_flag"
20122 || test ! -s conftest.err'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try='test -s conftest$ac_exeext'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 ac_R_nospace=yes
20135 else
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20138
20139 ac_R_nospace=no
20140 fi
20141 rm -f conftest.err conftest.$ac_objext \
20142 conftest$ac_exeext conftest.$ac_ext
20143 if test $ac_R_nospace = yes; then
20144 echo "$as_me:$LINENO: result: no" >&5
20145 echo "${ECHO_T}no" >&6
20146 X_LIBS="$X_LIBS -R$x_libraries"
20147 else
20148 LIBS="$ac_xsave_LIBS -R $x_libraries"
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155
20156 int
20157 main ()
20158 {
20159
20160 ;
20161 return 0;
20162 }
20163 _ACEOF
20164 rm -f conftest.$ac_objext conftest$ac_exeext
20165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20166 (eval $ac_link) 2>conftest.er1
20167 ac_status=$?
20168 grep -v '^ *+' conftest.er1 >conftest.err
20169 rm -f conftest.er1
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } &&
20173 { ac_try='test -z "$ac_c_werror_flag"
20174 || test ! -s conftest.err'
20175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176 (eval $ac_try) 2>&5
20177 ac_status=$?
20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179 (exit $ac_status); }; } &&
20180 { ac_try='test -s conftest$ac_exeext'
20181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182 (eval $ac_try) 2>&5
20183 ac_status=$?
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; }; then
20186 ac_R_space=yes
20187 else
20188 echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20190
20191 ac_R_space=no
20192 fi
20193 rm -f conftest.err conftest.$ac_objext \
20194 conftest$ac_exeext conftest.$ac_ext
20195 if test $ac_R_space = yes; then
20196 echo "$as_me:$LINENO: result: yes" >&5
20197 echo "${ECHO_T}yes" >&6
20198 X_LIBS="$X_LIBS -R $x_libraries"
20199 else
20200 echo "$as_me:$LINENO: result: neither works" >&5
20201 echo "${ECHO_T}neither works" >&6
20202 fi
20203 fi
20204 LIBS=$ac_xsave_LIBS
20205 esac
20206 fi
20207
20208 # Check for system-dependent libraries X programs must link with.
20209 # Do this before checking for the system-independent R6 libraries
20210 # (-lICE), since we may need -lsocket or whatever for X linking.
20211
20212 if test "$ISC" = yes; then
20213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20214 else
20215 # Martyn Johnson says this is needed for Ultrix, if the X
20216 # libraries were built with DECnet support. And Karl Berry says
20217 # the Alpha needs dnet_stub (dnet does not exist).
20218 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20219 cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h. */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225
20226 /* Override any gcc2 internal prototype to avoid an error. */
20227 #ifdef __cplusplus
20228 extern "C"
20229 #endif
20230 /* We use char because int might match the return type of a gcc2
20231 builtin and then its argument prototype would still apply. */
20232 char XOpenDisplay ();
20233 int
20234 main ()
20235 {
20236 XOpenDisplay ();
20237 ;
20238 return 0;
20239 }
20240 _ACEOF
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20243 (eval $ac_link) 2>conftest.er1
20244 ac_status=$?
20245 grep -v '^ *+' conftest.er1 >conftest.err
20246 rm -f conftest.er1
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); } &&
20250 { ac_try='test -z "$ac_c_werror_flag"
20251 || test ! -s conftest.err'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; } &&
20257 { ac_try='test -s conftest$ac_exeext'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
20263 :
20264 else
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20269 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
20270 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 else
20273 ac_check_lib_save_LIBS=$LIBS
20274 LIBS="-ldnet $LIBS"
20275 cat >conftest.$ac_ext <<_ACEOF
20276 /* confdefs.h. */
20277 _ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20281
20282 /* Override any gcc2 internal prototype to avoid an error. */
20283 #ifdef __cplusplus
20284 extern "C"
20285 #endif
20286 /* We use char because int might match the return type of a gcc2
20287 builtin and then its argument prototype would still apply. */
20288 char dnet_ntoa ();
20289 int
20290 main ()
20291 {
20292 dnet_ntoa ();
20293 ;
20294 return 0;
20295 }
20296 _ACEOF
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20299 (eval $ac_link) 2>conftest.er1
20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } &&
20306 { ac_try='test -z "$ac_c_werror_flag"
20307 || test ! -s conftest.err'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest$ac_exeext'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20319 ac_cv_lib_dnet_dnet_ntoa=yes
20320 else
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20323
20324 ac_cv_lib_dnet_dnet_ntoa=no
20325 fi
20326 rm -f conftest.err conftest.$ac_objext \
20327 conftest$ac_exeext conftest.$ac_ext
20328 LIBS=$ac_check_lib_save_LIBS
20329 fi
20330 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20331 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
20332 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20334 fi
20335
20336 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20337 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20338 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
20339 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20340 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 else
20342 ac_check_lib_save_LIBS=$LIBS
20343 LIBS="-ldnet_stub $LIBS"
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h. */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350
20351 /* Override any gcc2 internal prototype to avoid an error. */
20352 #ifdef __cplusplus
20353 extern "C"
20354 #endif
20355 /* We use char because int might match the return type of a gcc2
20356 builtin and then its argument prototype would still apply. */
20357 char dnet_ntoa ();
20358 int
20359 main ()
20360 {
20361 dnet_ntoa ();
20362 ;
20363 return 0;
20364 }
20365 _ACEOF
20366 rm -f conftest.$ac_objext conftest$ac_exeext
20367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20368 (eval $ac_link) 2>conftest.er1
20369 ac_status=$?
20370 grep -v '^ *+' conftest.er1 >conftest.err
20371 rm -f conftest.er1
20372 cat conftest.err >&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } &&
20375 { ac_try='test -z "$ac_c_werror_flag"
20376 || test ! -s conftest.err'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } &&
20382 { ac_try='test -s conftest$ac_exeext'
20383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20388 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20389 else
20390 echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 ac_cv_lib_dnet_stub_dnet_ntoa=no
20394 fi
20395 rm -f conftest.err conftest.$ac_objext \
20396 conftest$ac_exeext conftest.$ac_ext
20397 LIBS=$ac_check_lib_save_LIBS
20398 fi
20399 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20400 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
20401 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20402 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20403 fi
20404
20405 fi
20406 fi
20407 rm -f conftest.err conftest.$ac_objext \
20408 conftest$ac_exeext conftest.$ac_ext
20409 LIBS="$ac_xsave_LIBS"
20410
20411 # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20412 # to get the SysV transport functions.
20413 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20414 # needs -lnsl.
20415 # The nsl library prevents programs from opening the X display
20416 # on Irix 5.2, according to T.E. Dickey.
20417 # The functions gethostbyname, getservbyname, and inet_addr are
20418 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20419 echo "$as_me:$LINENO: checking for gethostbyname" >&5
20420 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20421 if test "${ac_cv_func_gethostbyname+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424 cat >conftest.$ac_ext <<_ACEOF
20425 /* confdefs.h. */
20426 _ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20430 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20432 #define gethostbyname innocuous_gethostbyname
20433
20434 /* System header to define __stub macros and hopefully few prototypes,
20435 which can conflict with char gethostbyname (); below.
20436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20437 <limits.h> exists even on freestanding compilers. */
20438
20439 #ifdef __STDC__
20440 # include <limits.h>
20441 #else
20442 # include <assert.h>
20443 #endif
20444
20445 #undef gethostbyname
20446
20447 /* Override any gcc2 internal prototype to avoid an error. */
20448 #ifdef __cplusplus
20449 extern "C"
20450 {
20451 #endif
20452 /* We use char because int might match the return type of a gcc2
20453 builtin and then its argument prototype would still apply. */
20454 char gethostbyname ();
20455 /* The GNU C library defines this for functions which it implements
20456 to always fail with ENOSYS. Some functions are actually named
20457 something starting with __ and the normal name is an alias. */
20458 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
20459 choke me
20460 #else
20461 char (*f) () = gethostbyname;
20462 #endif
20463 #ifdef __cplusplus
20464 }
20465 #endif
20466
20467 int
20468 main ()
20469 {
20470 return f != gethostbyname;
20471 ;
20472 return 0;
20473 }
20474 _ACEOF
20475 rm -f conftest.$ac_objext conftest$ac_exeext
20476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20477 (eval $ac_link) 2>conftest.er1
20478 ac_status=$?
20479 grep -v '^ *+' conftest.er1 >conftest.err
20480 rm -f conftest.er1
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } &&
20484 { ac_try='test -z "$ac_c_werror_flag"
20485 || test ! -s conftest.err'
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; } &&
20491 { ac_try='test -s conftest$ac_exeext'
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; }; then
20497 ac_cv_func_gethostbyname=yes
20498 else
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502 ac_cv_func_gethostbyname=no
20503 fi
20504 rm -f conftest.err conftest.$ac_objext \
20505 conftest$ac_exeext conftest.$ac_ext
20506 fi
20507 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20508 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
20509
20510 if test $ac_cv_func_gethostbyname = no; then
20511 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20512 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
20513 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516 ac_check_lib_save_LIBS=$LIBS
20517 LIBS="-lnsl $LIBS"
20518 cat >conftest.$ac_ext <<_ACEOF
20519 /* confdefs.h. */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20524
20525 /* Override any gcc2 internal prototype to avoid an error. */
20526 #ifdef __cplusplus
20527 extern "C"
20528 #endif
20529 /* We use char because int might match the return type of a gcc2
20530 builtin and then its argument prototype would still apply. */
20531 char gethostbyname ();
20532 int
20533 main ()
20534 {
20535 gethostbyname ();
20536 ;
20537 return 0;
20538 }
20539 _ACEOF
20540 rm -f conftest.$ac_objext conftest$ac_exeext
20541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20542 (eval $ac_link) 2>conftest.er1
20543 ac_status=$?
20544 grep -v '^ *+' conftest.er1 >conftest.err
20545 rm -f conftest.er1
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
20549 { ac_try='test -z "$ac_c_werror_flag"
20550 || test ! -s conftest.err'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; } &&
20556 { ac_try='test -s conftest$ac_exeext'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; }; then
20562 ac_cv_lib_nsl_gethostbyname=yes
20563 else
20564 echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20566
20567 ac_cv_lib_nsl_gethostbyname=no
20568 fi
20569 rm -f conftest.err conftest.$ac_objext \
20570 conftest$ac_exeext conftest.$ac_ext
20571 LIBS=$ac_check_lib_save_LIBS
20572 fi
20573 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20574 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20575 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20577 fi
20578
20579 if test $ac_cv_lib_nsl_gethostbyname = no; then
20580 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20581 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
20582 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20583 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 else
20585 ac_check_lib_save_LIBS=$LIBS
20586 LIBS="-lbsd $LIBS"
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593
20594 /* Override any gcc2 internal prototype to avoid an error. */
20595 #ifdef __cplusplus
20596 extern "C"
20597 #endif
20598 /* We use char because int might match the return type of a gcc2
20599 builtin and then its argument prototype would still apply. */
20600 char gethostbyname ();
20601 int
20602 main ()
20603 {
20604 gethostbyname ();
20605 ;
20606 return 0;
20607 }
20608 _ACEOF
20609 rm -f conftest.$ac_objext conftest$ac_exeext
20610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20611 (eval $ac_link) 2>conftest.er1
20612 ac_status=$?
20613 grep -v '^ *+' conftest.er1 >conftest.err
20614 rm -f conftest.er1
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); } &&
20618 { ac_try='test -z "$ac_c_werror_flag"
20619 || test ! -s conftest.err'
20620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621 (eval $ac_try) 2>&5
20622 ac_status=$?
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; } &&
20625 { ac_try='test -s conftest$ac_exeext'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 ac_cv_lib_bsd_gethostbyname=yes
20632 else
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636 ac_cv_lib_bsd_gethostbyname=no
20637 fi
20638 rm -f conftest.err conftest.$ac_objext \
20639 conftest$ac_exeext conftest.$ac_ext
20640 LIBS=$ac_check_lib_save_LIBS
20641 fi
20642 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20643 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20644 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20645 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20646 fi
20647
20648 fi
20649 fi
20650
20651 # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
20652 # socket/setsockopt and other routines are undefined under SCO ODT
20653 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20654 # on later versions), says Simon Leinen: it contains gethostby*
20655 # variants that don't use the name server (or something). -lsocket
20656 # must be given before -lnsl if both are needed. We assume that
20657 # if connect needs -lnsl, so does gethostbyname.
20658 echo "$as_me:$LINENO: checking for connect" >&5
20659 echo $ECHO_N "checking for connect... $ECHO_C" >&6
20660 if test "${ac_cv_func_connect+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663 cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h. */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20671 #define connect innocuous_connect
20672
20673 /* System header to define __stub macros and hopefully few prototypes,
20674 which can conflict with char connect (); below.
20675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20676 <limits.h> exists even on freestanding compilers. */
20677
20678 #ifdef __STDC__
20679 # include <limits.h>
20680 #else
20681 # include <assert.h>
20682 #endif
20683
20684 #undef connect
20685
20686 /* Override any gcc2 internal prototype to avoid an error. */
20687 #ifdef __cplusplus
20688 extern "C"
20689 {
20690 #endif
20691 /* We use char because int might match the return type of a gcc2
20692 builtin and then its argument prototype would still apply. */
20693 char connect ();
20694 /* The GNU C library defines this for functions which it implements
20695 to always fail with ENOSYS. Some functions are actually named
20696 something starting with __ and the normal name is an alias. */
20697 #if defined (__stub_connect) || defined (__stub___connect)
20698 choke me
20699 #else
20700 char (*f) () = connect;
20701 #endif
20702 #ifdef __cplusplus
20703 }
20704 #endif
20705
20706 int
20707 main ()
20708 {
20709 return f != connect;
20710 ;
20711 return 0;
20712 }
20713 _ACEOF
20714 rm -f conftest.$ac_objext conftest$ac_exeext
20715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20716 (eval $ac_link) 2>conftest.er1
20717 ac_status=$?
20718 grep -v '^ *+' conftest.er1 >conftest.err
20719 rm -f conftest.er1
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); } &&
20723 { ac_try='test -z "$ac_c_werror_flag"
20724 || test ! -s conftest.err'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20727 ac_status=$?
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; } &&
20730 { ac_try='test -s conftest$ac_exeext'
20731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20733 ac_status=$?
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 ac_cv_func_connect=yes
20737 else
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20740
20741 ac_cv_func_connect=no
20742 fi
20743 rm -f conftest.err conftest.$ac_objext \
20744 conftest$ac_exeext conftest.$ac_ext
20745 fi
20746 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20747 echo "${ECHO_T}$ac_cv_func_connect" >&6
20748
20749 if test $ac_cv_func_connect = no; then
20750 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20751 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20752 if test "${ac_cv_lib_socket_connect+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755 ac_check_lib_save_LIBS=$LIBS
20756 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20757 cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h. */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763
20764 /* Override any gcc2 internal prototype to avoid an error. */
20765 #ifdef __cplusplus
20766 extern "C"
20767 #endif
20768 /* We use char because int might match the return type of a gcc2
20769 builtin and then its argument prototype would still apply. */
20770 char connect ();
20771 int
20772 main ()
20773 {
20774 connect ();
20775 ;
20776 return 0;
20777 }
20778 _ACEOF
20779 rm -f conftest.$ac_objext conftest$ac_exeext
20780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20781 (eval $ac_link) 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } &&
20788 { ac_try='test -z "$ac_c_werror_flag"
20789 || test ! -s conftest.err'
20790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20791 (eval $ac_try) 2>&5
20792 ac_status=$?
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; } &&
20795 { ac_try='test -s conftest$ac_exeext'
20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797 (eval $ac_try) 2>&5
20798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; }; then
20801 ac_cv_lib_socket_connect=yes
20802 else
20803 echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20805
20806 ac_cv_lib_socket_connect=no
20807 fi
20808 rm -f conftest.err conftest.$ac_objext \
20809 conftest$ac_exeext conftest.$ac_ext
20810 LIBS=$ac_check_lib_save_LIBS
20811 fi
20812 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20813 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20814 if test $ac_cv_lib_socket_connect = yes; then
20815 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20816 fi
20817
20818 fi
20819
20820 # Guillermo Gomez says -lposix is necessary on A/UX.
20821 echo "$as_me:$LINENO: checking for remove" >&5
20822 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20823 if test "${ac_cv_func_remove+set}" = set; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 else
20826 cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h. */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20834 #define remove innocuous_remove
20835
20836 /* System header to define __stub macros and hopefully few prototypes,
20837 which can conflict with char remove (); below.
20838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20839 <limits.h> exists even on freestanding compilers. */
20840
20841 #ifdef __STDC__
20842 # include <limits.h>
20843 #else
20844 # include <assert.h>
20845 #endif
20846
20847 #undef remove
20848
20849 /* Override any gcc2 internal prototype to avoid an error. */
20850 #ifdef __cplusplus
20851 extern "C"
20852 {
20853 #endif
20854 /* We use char because int might match the return type of a gcc2
20855 builtin and then its argument prototype would still apply. */
20856 char remove ();
20857 /* The GNU C library defines this for functions which it implements
20858 to always fail with ENOSYS. Some functions are actually named
20859 something starting with __ and the normal name is an alias. */
20860 #if defined (__stub_remove) || defined (__stub___remove)
20861 choke me
20862 #else
20863 char (*f) () = remove;
20864 #endif
20865 #ifdef __cplusplus
20866 }
20867 #endif
20868
20869 int
20870 main ()
20871 {
20872 return f != remove;
20873 ;
20874 return 0;
20875 }
20876 _ACEOF
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20879 (eval $ac_link) 2>conftest.er1
20880 ac_status=$?
20881 grep -v '^ *+' conftest.er1 >conftest.err
20882 rm -f conftest.er1
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest$ac_exeext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ac_cv_func_remove=yes
20900 else
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903
20904 ac_cv_func_remove=no
20905 fi
20906 rm -f conftest.err conftest.$ac_objext \
20907 conftest$ac_exeext conftest.$ac_ext
20908 fi
20909 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20910 echo "${ECHO_T}$ac_cv_func_remove" >&6
20911
20912 if test $ac_cv_func_remove = no; then
20913 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20914 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20915 if test "${ac_cv_lib_posix_remove+set}" = set; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20917 else
20918 ac_check_lib_save_LIBS=$LIBS
20919 LIBS="-lposix $LIBS"
20920 cat >conftest.$ac_ext <<_ACEOF
20921 /* confdefs.h. */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926
20927 /* Override any gcc2 internal prototype to avoid an error. */
20928 #ifdef __cplusplus
20929 extern "C"
20930 #endif
20931 /* We use char because int might match the return type of a gcc2
20932 builtin and then its argument prototype would still apply. */
20933 char remove ();
20934 int
20935 main ()
20936 {
20937 remove ();
20938 ;
20939 return 0;
20940 }
20941 _ACEOF
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20944 (eval $ac_link) 2>conftest.er1
20945 ac_status=$?
20946 grep -v '^ *+' conftest.er1 >conftest.err
20947 rm -f conftest.er1
20948 cat conftest.err >&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } &&
20951 { ac_try='test -z "$ac_c_werror_flag"
20952 || test ! -s conftest.err'
20953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954 (eval $ac_try) 2>&5
20955 ac_status=$?
20956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); }; } &&
20958 { ac_try='test -s conftest$ac_exeext'
20959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960 (eval $ac_try) 2>&5
20961 ac_status=$?
20962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963 (exit $ac_status); }; }; then
20964 ac_cv_lib_posix_remove=yes
20965 else
20966 echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20968
20969 ac_cv_lib_posix_remove=no
20970 fi
20971 rm -f conftest.err conftest.$ac_objext \
20972 conftest$ac_exeext conftest.$ac_ext
20973 LIBS=$ac_check_lib_save_LIBS
20974 fi
20975 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20976 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20977 if test $ac_cv_lib_posix_remove = yes; then
20978 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20979 fi
20980
20981 fi
20982
20983 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20984 echo "$as_me:$LINENO: checking for shmat" >&5
20985 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20986 if test "${ac_cv_func_shmat+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20988 else
20989 cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h. */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20997 #define shmat innocuous_shmat
20998
20999 /* System header to define __stub macros and hopefully few prototypes,
21000 which can conflict with char shmat (); below.
21001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21002 <limits.h> exists even on freestanding compilers. */
21003
21004 #ifdef __STDC__
21005 # include <limits.h>
21006 #else
21007 # include <assert.h>
21008 #endif
21009
21010 #undef shmat
21011
21012 /* Override any gcc2 internal prototype to avoid an error. */
21013 #ifdef __cplusplus
21014 extern "C"
21015 {
21016 #endif
21017 /* We use char because int might match the return type of a gcc2
21018 builtin and then its argument prototype would still apply. */
21019 char shmat ();
21020 /* The GNU C library defines this for functions which it implements
21021 to always fail with ENOSYS. Some functions are actually named
21022 something starting with __ and the normal name is an alias. */
21023 #if defined (__stub_shmat) || defined (__stub___shmat)
21024 choke me
21025 #else
21026 char (*f) () = shmat;
21027 #endif
21028 #ifdef __cplusplus
21029 }
21030 #endif
21031
21032 int
21033 main ()
21034 {
21035 return f != shmat;
21036 ;
21037 return 0;
21038 }
21039 _ACEOF
21040 rm -f conftest.$ac_objext conftest$ac_exeext
21041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21042 (eval $ac_link) 2>conftest.er1
21043 ac_status=$?
21044 grep -v '^ *+' conftest.er1 >conftest.err
21045 rm -f conftest.er1
21046 cat conftest.err >&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); } &&
21049 { ac_try='test -z "$ac_c_werror_flag"
21050 || test ! -s conftest.err'
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052 (eval $ac_try) 2>&5
21053 ac_status=$?
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; } &&
21056 { ac_try='test -s conftest$ac_exeext'
21057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21058 (eval $ac_try) 2>&5
21059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_func_shmat=yes
21063 else
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067 ac_cv_func_shmat=no
21068 fi
21069 rm -f conftest.err conftest.$ac_objext \
21070 conftest$ac_exeext conftest.$ac_ext
21071 fi
21072 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21073 echo "${ECHO_T}$ac_cv_func_shmat" >&6
21074
21075 if test $ac_cv_func_shmat = no; then
21076 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21077 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21078 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21080 else
21081 ac_check_lib_save_LIBS=$LIBS
21082 LIBS="-lipc $LIBS"
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h. */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089
21090 /* Override any gcc2 internal prototype to avoid an error. */
21091 #ifdef __cplusplus
21092 extern "C"
21093 #endif
21094 /* We use char because int might match the return type of a gcc2
21095 builtin and then its argument prototype would still apply. */
21096 char shmat ();
21097 int
21098 main ()
21099 {
21100 shmat ();
21101 ;
21102 return 0;
21103 }
21104 _ACEOF
21105 rm -f conftest.$ac_objext conftest$ac_exeext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21107 (eval $ac_link) 2>conftest.er1
21108 ac_status=$?
21109 grep -v '^ *+' conftest.er1 >conftest.err
21110 rm -f conftest.er1
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
21114 { ac_try='test -z "$ac_c_werror_flag"
21115 || test ! -s conftest.err'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21118 ac_status=$?
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; } &&
21121 { ac_try='test -s conftest$ac_exeext'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21124 ac_status=$?
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127 ac_cv_lib_ipc_shmat=yes
21128 else
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132 ac_cv_lib_ipc_shmat=no
21133 fi
21134 rm -f conftest.err conftest.$ac_objext \
21135 conftest$ac_exeext conftest.$ac_ext
21136 LIBS=$ac_check_lib_save_LIBS
21137 fi
21138 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21139 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21140 if test $ac_cv_lib_ipc_shmat = yes; then
21141 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21142 fi
21143
21144 fi
21145 fi
21146
21147 # Check for libraries that X11R6 Xt/Xaw programs need.
21148 ac_save_LDFLAGS=$LDFLAGS
21149 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21150 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21151 # check for ICE first), but we must link in the order -lSM -lICE or
21152 # we get undefined symbols. So assume we have SM if we have ICE.
21153 # These have to be linked with before -lX11, unlike the other
21154 # libraries we check for below, so use a different variable.
21155 # John Interrante, Karl Berry
21156 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21157 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21158 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161 ac_check_lib_save_LIBS=$LIBS
21162 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21163 cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h. */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h. */
21169
21170 /* Override any gcc2 internal prototype to avoid an error. */
21171 #ifdef __cplusplus
21172 extern "C"
21173 #endif
21174 /* We use char because int might match the return type of a gcc2
21175 builtin and then its argument prototype would still apply. */
21176 char IceConnectionNumber ();
21177 int
21178 main ()
21179 {
21180 IceConnectionNumber ();
21181 ;
21182 return 0;
21183 }
21184 _ACEOF
21185 rm -f conftest.$ac_objext conftest$ac_exeext
21186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21187 (eval $ac_link) 2>conftest.er1
21188 ac_status=$?
21189 grep -v '^ *+' conftest.er1 >conftest.err
21190 rm -f conftest.er1
21191 cat conftest.err >&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } &&
21194 { ac_try='test -z "$ac_c_werror_flag"
21195 || test ! -s conftest.err'
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; } &&
21201 { ac_try='test -s conftest$ac_exeext'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21204 ac_status=$?
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 ac_cv_lib_ICE_IceConnectionNumber=yes
21208 else
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 ac_cv_lib_ICE_IceConnectionNumber=no
21213 fi
21214 rm -f conftest.err conftest.$ac_objext \
21215 conftest$ac_exeext conftest.$ac_ext
21216 LIBS=$ac_check_lib_save_LIBS
21217 fi
21218 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21219 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21220 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21221 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21222 fi
21223
21224 LDFLAGS=$ac_save_LDFLAGS
21225
21226 fi
21227
21228 X_LIBS="$X_LIBS -lX11"
21229
21230 if test "x$no_x" = "xyes"
21231 then
21232 { { echo "$as_me:$LINENO: error: X is required, but it was either disabled or not found." >&5
21233 echo "$as_me: error: X is required, but it was either disabled or not found." >&2;}
21234 { (exit 1); exit 1; }; }
21235 fi
21236
21237 save_LIBS="$LIBS"
21238 save_CFLAGS="$CFLAGS"
21239 CFLAGS="$CFLAGS $X_CFLAGS"
21240 LIBS="$LIBS $X_LIBS"
21241
21242 echo "$as_me:$LINENO: checking for XTHREADS in Xlib" >&5
21243 echo $ECHO_N "checking for XTHREADS in Xlib... $ECHO_C" >&6
21244 if test "$cross_compiling" = yes; then
21245 xthreads=yes
21246 else
21247 cat >conftest.$ac_ext <<_ACEOF
21248 /* confdefs.h. */
21249 _ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 #include <X11/Xlib.h>
21254 int
21255 main ()
21256 {
21257 return XInitThreads() == 0 ? 0 : 1;
21258 ;
21259 return 0;
21260 }
21261 _ACEOF
21262 rm -f conftest$ac_exeext
21263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21264 (eval $ac_link) 2>&5
21265 ac_status=$?
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; }; then
21273 xthreads=no
21274 else
21275 echo "$as_me: program exited with status $ac_status" >&5
21276 echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21278
21279 ( exit $ac_status )
21280 xthreads=yes
21281 fi
21282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21283 fi
21284
21285 echo "$as_me:$LINENO: result: $xthreads" >&5
21286 echo "${ECHO_T}$xthreads" >&6
21287
21288 LIBS="$save_LIBS"
21289 CFLAGS="$save_CFLAGS"
21290
21291 if test "x$xthreads" = "xyes"
21292 then
21293 X_CFLAGS="$X_CFLAGS -DXTHREADS"
21294 fi
21295 fi
21296
21297 # Check damageext configuration, strip extra digits from package version to
21298 # find the required protocol version
21299
21300 DAMAGEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
21301
21302
21303 pkg_failed=no
21304 echo "$as_me:$LINENO: checking for XDAMAGE" >&5
21305 echo $ECHO_N "checking for XDAMAGE... $ECHO_C" >&6
21306
21307 if test -n "$PKG_CONFIG"; then
21308 if test -n "$XDAMAGE_CFLAGS"; then
21309 pkg_cv_XDAMAGE_CFLAGS="$XDAMAGE_CFLAGS"
21310 else
21311 if test -n "$PKG_CONFIG" && \
21312 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto\"") >&5
21313 ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto") 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; then
21317 pkg_cv_XDAMAGE_CFLAGS=`$PKG_CONFIG --cflags "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto" 2>/dev/null`
21318 else
21319 pkg_failed=yes
21320 fi
21321 fi
21322 else
21323 pkg_failed=untried
21324 fi
21325 if test -n "$PKG_CONFIG"; then
21326 if test -n "$XDAMAGE_LIBS"; then
21327 pkg_cv_XDAMAGE_LIBS="$XDAMAGE_LIBS"
21328 else
21329 if test -n "$PKG_CONFIG" && \
21330 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"damageproto >= \$DAMAGEEXT_VERSION xfixes fixesproto xextproto\"") >&5
21331 ($PKG_CONFIG --exists --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto") 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; then
21335 pkg_cv_XDAMAGE_LIBS=`$PKG_CONFIG --libs "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto" 2>/dev/null`
21336 else
21337 pkg_failed=yes
21338 fi
21339 fi
21340 else
21341 pkg_failed=untried
21342 fi
21343
21344
21345
21346 if test $pkg_failed = yes; then
21347
21348 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21349 _pkg_short_errors_supported=yes
21350 else
21351 _pkg_short_errors_supported=no
21352 fi
21353 if test $_pkg_short_errors_supported = yes; then
21354 XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto"`
21355 else
21356 XDAMAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto"`
21357 fi
21358 # Put the nasty error message in config.log where it belongs
21359 echo "$XDAMAGE_PKG_ERRORS" >&5
21360
21361 { { echo "$as_me:$LINENO: error: Package requirements (damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto) were not met:
21362
21363 $XDAMAGE_PKG_ERRORS
21364
21365 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21366 installed software in a non-standard prefix.
21367
21368 Alternatively, you may set the environment variables XDAMAGE_CFLAGS
21369 and XDAMAGE_LIBS to avoid the need to call pkg-config.
21370 See the pkg-config man page for more details.
21371 " >&5
21372 echo "$as_me: error: Package requirements (damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto) were not met:
21373
21374 $XDAMAGE_PKG_ERRORS
21375
21376 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21377 installed software in a non-standard prefix.
21378
21379 Alternatively, you may set the environment variables XDAMAGE_CFLAGS
21380 and XDAMAGE_LIBS to avoid the need to call pkg-config.
21381 See the pkg-config man page for more details.
21382 " >&2;}
21383 { (exit 1); exit 1; }; }
21384 elif test $pkg_failed = untried; then
21385 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21386 is in your PATH or set the PKG_CONFIG environment variable to the full
21387 path to pkg-config.
21388
21389 Alternatively, you may set the environment variables XDAMAGE_CFLAGS
21390 and XDAMAGE_LIBS to avoid the need to call pkg-config.
21391 See the pkg-config man page for more details.
21392
21393 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21394 See \`config.log' for more details." >&5
21395 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21396 is in your PATH or set the PKG_CONFIG environment variable to the full
21397 path to pkg-config.
21398
21399 Alternatively, you may set the environment variables XDAMAGE_CFLAGS
21400 and XDAMAGE_LIBS to avoid the need to call pkg-config.
21401 See the pkg-config man page for more details.
21402
21403 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
21404 See \`config.log' for more details." >&2;}
21405 { (exit 1); exit 1; }; }
21406 else
21407 XDAMAGE_CFLAGS=$pkg_cv_XDAMAGE_CFLAGS
21408 XDAMAGE_LIBS=$pkg_cv_XDAMAGE_LIBS
21409 echo "$as_me:$LINENO: result: yes" >&5
21410 echo "${ECHO_T}yes" >&6
21411 :
21412 fi
21413
21414
21415
21416
21417 # Check whether --with-release-version or --without-release-version was given.
21418 if test "${with_release_version+set}" = set; then
21419 withval="$with_release_version"
21420 RELEASE_VERSION="$withval"
21421 else
21422 RELEASE_VERSION=""
21423 fi;
21424 if test "x$RELEASE_VERSION" != "x"; then
21425 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21426 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21427 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21428 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21429 fi
21430
21431 cat >>confdefs.h <<_ACEOF
21432 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21433 _ACEOF
21434
21435 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
21436 if test "x$PVM" = "x"; then
21437 PVM="0"
21438 fi
21439
21440 cat >>confdefs.h <<_ACEOF
21441 #define PACKAGE_VERSION_MINOR $PVM
21442 _ACEOF
21443
21444 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
21445 if test "x$PVP" = "x"; then
21446 PVP="0"
21447 fi
21448
21449 cat >>confdefs.h <<_ACEOF
21450 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21451 _ACEOF
21452
21453
21454
21455 ac_config_files="$ac_config_files Makefile src/Makefile xdamage.pc"
21456 cat >confcache <<\_ACEOF
21457 # This file is a shell script that caches the results of configure
21458 # tests run on this system so they can be shared between configure
21459 # scripts and configure runs, see configure's option --config-cache.
21460 # It is not useful on other systems. If it contains results you don't
21461 # want to keep, you may remove or edit it.
21462 #
21463 # config.status only pays attention to the cache file if you give it
21464 # the --recheck option to rerun configure.
21465 #
21466 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21467 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21468 # following values.
21469
21470 _ACEOF
21471
21472 # The following way of writing the cache mishandles newlines in values,
21473 # but we know of no workaround that is simple, portable, and efficient.
21474 # So, don't put newlines in cache variables' values.
21475 # Ultrix sh set writes to stderr and can't be redirected directly,
21476 # and sets the high bit in the cache file unless we assign to the vars.
21477 {
21478 (set) 2>&1 |
21479 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21480 *ac_space=\ *)
21481 # `set' does not quote correctly, so add quotes (double-quote
21482 # substitution turns \\\\ into \\, and sed turns \\ into \).
21483 sed -n \
21484 "s/'/'\\\\''/g;
21485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21486 ;;
21487 *)
21488 # `set' quotes correctly as required by POSIX, so do not add quotes.
21489 sed -n \
21490 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21491 ;;
21492 esac;
21493 } |
21494 sed '
21495 t clear
21496 : clear
21497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21498 t end
21499 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21500 : end' >>confcache
21501 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21502 if test -w $cache_file; then
21503 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21504 cat confcache >$cache_file
21505 else
21506 echo "not updating unwritable cache $cache_file"
21507 fi
21508 fi
21509 rm -f confcache
21510
21511 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21512 # Let make expand exec_prefix.
21513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21514
21515 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21516 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21517 # trailing colons and then remove the whole line if VPATH becomes empty
21518 # (actually we leave an empty line to preserve line numbers).
21519 if test "x$srcdir" = x.; then
21520 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21521 s/:*\$(srcdir):*/:/;
21522 s/:*\${srcdir}:*/:/;
21523 s/:*@srcdir@:*/:/;
21524 s/^\([^=]*=[ ]*\):*/\1/;
21525 s/:*$//;
21526 s/^[^=]*=[ ]*$//;
21527 }'
21528 fi
21529
21530 DEFS=-DHAVE_CONFIG_H
21531
21532 ac_libobjs=
21533 ac_ltlibobjs=
21534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21535 # 1. Remove the extension, and $U if already installed.
21536 ac_i=`echo "$ac_i" |
21537 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21538 # 2. Add them.
21539 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21540 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21541 done
21542 LIBOBJS=$ac_libobjs
21543
21544 LTLIBOBJS=$ac_ltlibobjs
21545
21546
21547 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21548 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21549 Usually this means the macro was only invoked conditionally." >&5
21550 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21551 Usually this means the macro was only invoked conditionally." >&2;}
21552 { (exit 1); exit 1; }; }
21553 fi
21554 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21555 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21556 Usually this means the macro was only invoked conditionally." >&5
21557 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21558 Usually this means the macro was only invoked conditionally." >&2;}
21559 { (exit 1); exit 1; }; }
21560 fi
21561 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21562 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21563 Usually this means the macro was only invoked conditionally." >&5
21564 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21565 Usually this means the macro was only invoked conditionally." >&2;}
21566 { (exit 1); exit 1; }; }
21567 fi
21568 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21569 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21570 Usually this means the macro was only invoked conditionally." >&5
21571 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21572 Usually this means the macro was only invoked conditionally." >&2;}
21573 { (exit 1); exit 1; }; }
21574 fi
21575
21576 : ${CONFIG_STATUS=./config.status}
21577 ac_clean_files_save=$ac_clean_files
21578 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21579 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21580 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21581 cat >$CONFIG_STATUS <<_ACEOF
21582 #! $SHELL
21583 # Generated by $as_me.
21584 # Run this file to recreate the current configuration.
21585 # Compiler output produced by configure, useful for debugging
21586 # configure, is in config.log if it exists.
21587
21588 debug=false
21589 ac_cs_recheck=false
21590 ac_cs_silent=false
21591 SHELL=\${CONFIG_SHELL-$SHELL}
21592 _ACEOF
21593
21594 cat >>$CONFIG_STATUS <<\_ACEOF
21595 ## --------------------- ##
21596 ## M4sh Initialization. ##
21597 ## --------------------- ##
21598
21599 # Be Bourne compatible
21600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21601 emulate sh
21602 NULLCMD=:
21603 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21604 # is contrary to our usage. Disable this feature.
21605 alias -g '${1+"$@"}'='"$@"'
21606 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21607 set -o posix
21608 fi
21609 DUALCASE=1; export DUALCASE # for MKS sh
21610
21611 # Support unset when possible.
21612 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21613 as_unset=unset
21614 else
21615 as_unset=false
21616 fi
21617
21618
21619 # Work around bugs in pre-3.0 UWIN ksh.
21620 $as_unset ENV MAIL MAILPATH
21621 PS1='$ '
21622 PS2='> '
21623 PS4='+ '
21624
21625 # NLS nuisances.
21626 for as_var in \
21627 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21628 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21629 LC_TELEPHONE LC_TIME
21630 do
21631 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21632 eval $as_var=C; export $as_var
21633 else
21634 $as_unset $as_var
21635 fi
21636 done
21637
21638 # Required to use basename.
21639 if expr a : '\(a\)' >/dev/null 2>&1; then
21640 as_expr=expr
21641 else
21642 as_expr=false
21643 fi
21644
21645 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21646 as_basename=basename
21647 else
21648 as_basename=false
21649 fi
21650
21651
21652 # Name of the executable.
21653 as_me=`$as_basename "$0" ||
21654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21655 X"$0" : 'X\(//\)$' \| \
21656 X"$0" : 'X\(/\)$' \| \
21657 . : '\(.\)' 2>/dev/null ||
21658 echo X/"$0" |
21659 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21660 /^X\/\(\/\/\)$/{ s//\1/; q; }
21661 /^X\/\(\/\).*/{ s//\1/; q; }
21662 s/.*/./; q'`
21663
21664
21665 # PATH needs CR, and LINENO needs CR and PATH.
21666 # Avoid depending upon Character Ranges.
21667 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21668 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21669 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21670 as_cr_digits='0123456789'
21671 as_cr_alnum=$as_cr_Letters$as_cr_digits
21672
21673 # The user is always right.
21674 if test "${PATH_SEPARATOR+set}" != set; then
21675 echo "#! /bin/sh" >conf$$.sh
21676 echo "exit 0" >>conf$$.sh
21677 chmod +x conf$$.sh
21678 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21679 PATH_SEPARATOR=';'
21680 else
21681 PATH_SEPARATOR=:
21682 fi
21683 rm -f conf$$.sh
21684 fi
21685
21686
21687 as_lineno_1=$LINENO
21688 as_lineno_2=$LINENO
21689 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21690 test "x$as_lineno_1" != "x$as_lineno_2" &&
21691 test "x$as_lineno_3" = "x$as_lineno_2" || {
21692 # Find who we are. Look in the path if we contain no path at all
21693 # relative or not.
21694 case $0 in
21695 *[\\/]* ) as_myself=$0 ;;
21696 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21697 for as_dir in $PATH
21698 do
21699 IFS=$as_save_IFS
21700 test -z "$as_dir" && as_dir=.
21701 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21702 done
21703
21704 ;;
21705 esac
21706 # We did not find ourselves, most probably we were run as `sh COMMAND'
21707 # in which case we are not to be found in the path.
21708 if test "x$as_myself" = x; then
21709 as_myself=$0
21710 fi
21711 if test ! -f "$as_myself"; then
21712 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21713 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21714 { (exit 1); exit 1; }; }
21715 fi
21716 case $CONFIG_SHELL in
21717 '')
21718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21719 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21720 do
21721 IFS=$as_save_IFS
21722 test -z "$as_dir" && as_dir=.
21723 for as_base in sh bash ksh sh5; do
21724 case $as_dir in
21725 /*)
21726 if ("$as_dir/$as_base" -c '
21727 as_lineno_1=$LINENO
21728 as_lineno_2=$LINENO
21729 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21730 test "x$as_lineno_1" != "x$as_lineno_2" &&
21731 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21732 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21733 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21734 CONFIG_SHELL=$as_dir/$as_base
21735 export CONFIG_SHELL
21736 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21737 fi;;
21738 esac
21739 done
21740 done
21741 ;;
21742 esac
21743
21744 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21745 # uniformly replaced by the line number. The first 'sed' inserts a
21746 # line-number line before each line; the second 'sed' does the real
21747 # work. The second script uses 'N' to pair each line-number line
21748 # with the numbered line, and appends trailing '-' during
21749 # substitution so that $LINENO is not a special case at line end.
21750 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21751 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21752 sed '=' <$as_myself |
21753 sed '
21754 N
21755 s,$,-,
21756 : loop
21757 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21758 t loop
21759 s,-$,,
21760 s,^['$as_cr_digits']*\n,,
21761 ' >$as_me.lineno &&
21762 chmod +x $as_me.lineno ||
21763 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21764 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21765 { (exit 1); exit 1; }; }
21766
21767 # Don't try to exec as it changes $[0], causing all sort of problems
21768 # (the dirname of $[0] is not the place where we might find the
21769 # original and so on. Autoconf is especially sensible to this).
21770 . ./$as_me.lineno
21771 # Exit status is that of the last command.
21772 exit
21773 }
21774
21775
21776 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21777 *c*,-n*) ECHO_N= ECHO_C='
21778 ' ECHO_T=' ' ;;
21779 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21780 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21781 esac
21782
21783 if expr a : '\(a\)' >/dev/null 2>&1; then
21784 as_expr=expr
21785 else
21786 as_expr=false
21787 fi
21788
21789 rm -f conf$$ conf$$.exe conf$$.file
21790 echo >conf$$.file
21791 if ln -s conf$$.file conf$$ 2>/dev/null; then
21792 # We could just check for DJGPP; but this test a) works b) is more generic
21793 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21794 if test -f conf$$.exe; then
21795 # Don't use ln at all; we don't have any links
21796 as_ln_s='cp -p'
21797 else
21798 as_ln_s='ln -s'
21799 fi
21800 elif ln conf$$.file conf$$ 2>/dev/null; then
21801 as_ln_s=ln
21802 else
21803 as_ln_s='cp -p'
21804 fi
21805 rm -f conf$$ conf$$.exe conf$$.file
21806
21807 if mkdir -p . 2>/dev/null; then
21808 as_mkdir_p=:
21809 else
21810 test -d ./-p && rmdir ./-p
21811 as_mkdir_p=false
21812 fi
21813
21814 as_executable_p="test -f"
21815
21816 # Sed expression to map a string onto a valid CPP name.
21817 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21818
21819 # Sed expression to map a string onto a valid variable name.
21820 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21821
21822
21823 # IFS
21824 # We need space, tab and new line, in precisely that order.
21825 as_nl='
21826 '
21827 IFS=" $as_nl"
21828
21829 # CDPATH.
21830 $as_unset CDPATH
21831
21832 exec 6>&1
21833
21834 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21835 # report actual input values of CONFIG_FILES etc. instead of their
21836 # values after options handling. Logging --version etc. is OK.
21837 exec 5>>config.log
21838 {
21839 echo
21840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21841 ## Running $as_me. ##
21842 _ASBOX
21843 } >&5
21844 cat >&5 <<_CSEOF
21845
21846 This file was extended by libXdamage $as_me 1.1.1, which was
21847 generated by GNU Autoconf 2.59. Invocation command line was
21848
21849 CONFIG_FILES = $CONFIG_FILES
21850 CONFIG_HEADERS = $CONFIG_HEADERS
21851 CONFIG_LINKS = $CONFIG_LINKS
21852 CONFIG_COMMANDS = $CONFIG_COMMANDS
21853 $ $0 $@
21854
21855 _CSEOF
21856 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21857 echo >&5
21858 _ACEOF
21859
21860 # Files that config.status was made for.
21861 if test -n "$ac_config_files"; then
21862 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21863 fi
21864
21865 if test -n "$ac_config_headers"; then
21866 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21867 fi
21868
21869 if test -n "$ac_config_links"; then
21870 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21871 fi
21872
21873 if test -n "$ac_config_commands"; then
21874 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21875 fi
21876
21877 cat >>$CONFIG_STATUS <<\_ACEOF
21878
21879 ac_cs_usage="\
21880 \`$as_me' instantiates files from templates according to the
21881 current configuration.
21882
21883 Usage: $0 [OPTIONS] [FILE]...
21884
21885 -h, --help print this help, then exit
21886 -V, --version print version number, then exit
21887 -q, --quiet do not print progress messages
21888 -d, --debug don't remove temporary files
21889 --recheck update $as_me by reconfiguring in the same conditions
21890 --file=FILE[:TEMPLATE]
21891 instantiate the configuration file FILE
21892 --header=FILE[:TEMPLATE]
21893 instantiate the configuration header FILE
21894
21895 Configuration files:
21896 $config_files
21897
21898 Configuration headers:
21899 $config_headers
21900
21901 Configuration commands:
21902 $config_commands
21903
21904 Report bugs to <bug-autoconf@gnu.org>."
21905 _ACEOF
21906
21907 cat >>$CONFIG_STATUS <<_ACEOF
21908 ac_cs_version="\\
21909 libXdamage config.status 1.1.1
21910 configured by $0, generated by GNU Autoconf 2.59,
21911 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21912
21913 Copyright (C) 2003 Free Software Foundation, Inc.
21914 This config.status script is free software; the Free Software Foundation
21915 gives unlimited permission to copy, distribute and modify it."
21916 srcdir=$srcdir
21917 INSTALL="$INSTALL"
21918 _ACEOF
21919
21920 cat >>$CONFIG_STATUS <<\_ACEOF
21921 # If no file are specified by the user, then we need to provide default
21922 # value. By we need to know if files were specified by the user.
21923 ac_need_defaults=:
21924 while test $# != 0
21925 do
21926 case $1 in
21927 --*=*)
21928 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21929 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21930 ac_shift=:
21931 ;;
21932 -*)
21933 ac_option=$1
21934 ac_optarg=$2
21935 ac_shift=shift
21936 ;;
21937 *) # This is not an option, so the user has probably given explicit
21938 # arguments.
21939 ac_option=$1
21940 ac_need_defaults=false;;
21941 esac
21942
21943 case $ac_option in
21944 # Handling of the options.
21945 _ACEOF
21946 cat >>$CONFIG_STATUS <<\_ACEOF
21947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21948 ac_cs_recheck=: ;;
21949 --version | --vers* | -V )
21950 echo "$ac_cs_version"; exit 0 ;;
21951 --he | --h)
21952 # Conflict between --help and --header
21953 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21954 Try \`$0 --help' for more information." >&5
21955 echo "$as_me: error: ambiguous option: $1
21956 Try \`$0 --help' for more information." >&2;}
21957 { (exit 1); exit 1; }; };;
21958 --help | --hel | -h )
21959 echo "$ac_cs_usage"; exit 0 ;;
21960 --debug | --d* | -d )
21961 debug=: ;;
21962 --file | --fil | --fi | --f )
21963 $ac_shift
21964 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21965 ac_need_defaults=false;;
21966 --header | --heade | --head | --hea )
21967 $ac_shift
21968 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21969 ac_need_defaults=false;;
21970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21972 ac_cs_silent=: ;;
21973
21974 # This is an error.
21975 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21976 Try \`$0 --help' for more information." >&5
21977 echo "$as_me: error: unrecognized option: $1
21978 Try \`$0 --help' for more information." >&2;}
21979 { (exit 1); exit 1; }; } ;;
21980
21981 *) ac_config_targets="$ac_config_targets $1" ;;
21982
21983 esac
21984 shift
21985 done
21986
21987 ac_configure_extra_args=
21988
21989 if $ac_cs_silent; then
21990 exec 6>/dev/null
21991 ac_configure_extra_args="$ac_configure_extra_args --silent"
21992 fi
21993
21994 _ACEOF
21995 cat >>$CONFIG_STATUS <<_ACEOF
21996 if \$ac_cs_recheck; then
21997 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21998 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21999 fi
22000
22001 _ACEOF
22002
22003 cat >>$CONFIG_STATUS <<_ACEOF
22004 #
22005 # INIT-COMMANDS section.
22006 #
22007
22008 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22009
22010 _ACEOF
22011
22012
22013
22014 cat >>$CONFIG_STATUS <<\_ACEOF
22015 for ac_config_target in $ac_config_targets
22016 do
22017 case "$ac_config_target" in
22018 # Handling of arguments.
22019 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22020 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22021 "xdamage.pc" ) CONFIG_FILES="$CONFIG_FILES xdamage.pc" ;;
22022 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22023 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22024 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22025 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22026 { (exit 1); exit 1; }; };;
22027 esac
22028 done
22029
22030 # If the user did not use the arguments to specify the items to instantiate,
22031 # then the envvar interface is used. Set only those that are not.
22032 # We use the long form for the default assignment because of an extremely
22033 # bizarre bug on SunOS 4.1.3.
22034 if $ac_need_defaults; then
22035 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22036 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22037 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22038 fi
22039
22040 # Have a temporary directory for convenience. Make it in the build tree
22041 # simply because there is no reason to put it here, and in addition,
22042 # creating and moving files from /tmp can sometimes cause problems.
22043 # Create a temporary directory, and hook for its removal unless debugging.
22044 $debug ||
22045 {
22046 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22047 trap '{ (exit 1); exit 1; }' 1 2 13 15
22048 }
22049
22050 # Create a (secure) tmp directory for tmp files.
22051
22052 {
22053 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22054 test -n "$tmp" && test -d "$tmp"
22055 } ||
22056 {
22057 tmp=./confstat$$-$RANDOM
22058 (umask 077 && mkdir $tmp)
22059 } ||
22060 {
22061 echo "$me: cannot create a temporary directory in ." >&2
22062 { (exit 1); exit 1; }
22063 }
22064
22065 _ACEOF
22066
22067 cat >>$CONFIG_STATUS <<_ACEOF
22068
22069 #
22070 # CONFIG_FILES section.
22071 #
22072
22073 # No need to generate the scripts if there are no CONFIG_FILES.
22074 # This happens for instance when ./config.status config.h
22075 if test -n "\$CONFIG_FILES"; then
22076 # Protect against being on the right side of a sed subst in config.status.
22077 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22078 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22079 s,@SHELL@,$SHELL,;t t
22080 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22081 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22082 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22083 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22084 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22085 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22086 s,@exec_prefix@,$exec_prefix,;t t
22087 s,@prefix@,$prefix,;t t
22088 s,@program_transform_name@,$program_transform_name,;t t
22089 s,@bindir@,$bindir,;t t
22090 s,@sbindir@,$sbindir,;t t
22091 s,@libexecdir@,$libexecdir,;t t
22092 s,@datadir@,$datadir,;t t
22093 s,@sysconfdir@,$sysconfdir,;t t
22094 s,@sharedstatedir@,$sharedstatedir,;t t
22095 s,@localstatedir@,$localstatedir,;t t
22096 s,@libdir@,$libdir,;t t
22097 s,@includedir@,$includedir,;t t
22098 s,@oldincludedir@,$oldincludedir,;t t
22099 s,@infodir@,$infodir,;t t
22100 s,@mandir@,$mandir,;t t
22101 s,@build_alias@,$build_alias,;t t
22102 s,@host_alias@,$host_alias,;t t
22103 s,@target_alias@,$target_alias,;t t
22104 s,@DEFS@,$DEFS,;t t
22105 s,@ECHO_C@,$ECHO_C,;t t
22106 s,@ECHO_N@,$ECHO_N,;t t
22107 s,@ECHO_T@,$ECHO_T,;t t
22108 s,@LIBS@,$LIBS,;t t
22109 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22110 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22111 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22112 s,@CYGPATH_W@,$CYGPATH_W,;t t
22113 s,@PACKAGE@,$PACKAGE,;t t
22114 s,@VERSION@,$VERSION,;t t
22115 s,@ACLOCAL@,$ACLOCAL,;t t
22116 s,@AUTOCONF@,$AUTOCONF,;t t
22117 s,@AUTOMAKE@,$AUTOMAKE,;t t
22118 s,@AUTOHEADER@,$AUTOHEADER,;t t
22119 s,@MAKEINFO@,$MAKEINFO,;t t
22120 s,@install_sh@,$install_sh,;t t
22121 s,@STRIP@,$STRIP,;t t
22122 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22123 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22124 s,@mkdir_p@,$mkdir_p,;t t
22125 s,@AWK@,$AWK,;t t
22126 s,@SET_MAKE@,$SET_MAKE,;t t
22127 s,@am__leading_dot@,$am__leading_dot,;t t
22128 s,@AMTAR@,$AMTAR,;t t
22129 s,@am__tar@,$am__tar,;t t
22130 s,@am__untar@,$am__untar,;t t
22131 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22132 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22133 s,@MAINT@,$MAINT,;t t
22134 s,@CC@,$CC,;t t
22135 s,@CFLAGS@,$CFLAGS,;t t
22136 s,@LDFLAGS@,$LDFLAGS,;t t
22137 s,@CPPFLAGS@,$CPPFLAGS,;t t
22138 s,@ac_ct_CC@,$ac_ct_CC,;t t
22139 s,@EXEEXT@,$EXEEXT,;t t
22140 s,@OBJEXT@,$OBJEXT,;t t
22141 s,@DEPDIR@,$DEPDIR,;t t
22142 s,@am__include@,$am__include,;t t
22143 s,@am__quote@,$am__quote,;t t
22144 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22145 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22146 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22147 s,@CCDEPMODE@,$CCDEPMODE,;t t
22148 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22149 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22150 s,@build@,$build,;t t
22151 s,@build_cpu@,$build_cpu,;t t
22152 s,@build_vendor@,$build_vendor,;t t
22153 s,@build_os@,$build_os,;t t
22154 s,@host@,$host,;t t
22155 s,@host_cpu@,$host_cpu,;t t
22156 s,@host_vendor@,$host_vendor,;t t
22157 s,@host_os@,$host_os,;t t
22158 s,@EGREP@,$EGREP,;t t
22159 s,@LN_S@,$LN_S,;t t
22160 s,@ECHO@,$ECHO,;t t
22161 s,@AR@,$AR,;t t
22162 s,@ac_ct_AR@,$ac_ct_AR,;t t
22163 s,@RANLIB@,$RANLIB,;t t
22164 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22165 s,@CPP@,$CPP,;t t
22166 s,@CXX@,$CXX,;t t
22167 s,@CXXFLAGS@,$CXXFLAGS,;t t
22168 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22169 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22170 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22171 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22172 s,@CXXCPP@,$CXXCPP,;t t
22173 s,@F77@,$F77,;t t
22174 s,@FFLAGS@,$FFLAGS,;t t
22175 s,@ac_ct_F77@,$ac_ct_F77,;t t
22176 s,@LIBTOOL@,$LIBTOOL,;t t
22177 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22178 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
22179 s,@X_CFLAGS@,$X_CFLAGS,;t t
22180 s,@X_LIBS@,$X_LIBS,;t t
22181 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22182 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22183 s,@DAMAGEEXT_VERSION@,$DAMAGEEXT_VERSION,;t t
22184 s,@XDAMAGE_CFLAGS@,$XDAMAGE_CFLAGS,;t t
22185 s,@XDAMAGE_LIBS@,$XDAMAGE_LIBS,;t t
22186 s,@LIBOBJS@,$LIBOBJS,;t t
22187 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22188 CEOF
22189
22190 _ACEOF
22191
22192 cat >>$CONFIG_STATUS <<\_ACEOF
22193 # Split the substitutions into bite-sized pieces for seds with
22194 # small command number limits, like on Digital OSF/1 and HP-UX.
22195 ac_max_sed_lines=48
22196 ac_sed_frag=1 # Number of current file.
22197 ac_beg=1 # First line for current file.
22198 ac_end=$ac_max_sed_lines # Line after last line for current file.
22199 ac_more_lines=:
22200 ac_sed_cmds=
22201 while $ac_more_lines; do
22202 if test $ac_beg -gt 1; then
22203 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22204 else
22205 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22206 fi
22207 if test ! -s $tmp/subs.frag; then
22208 ac_more_lines=false
22209 else
22210 # The purpose of the label and of the branching condition is to
22211 # speed up the sed processing (if there are no `@' at all, there
22212 # is no need to browse any of the substitutions).
22213 # These are the two extra sed commands mentioned above.
22214 (echo ':t
22215 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22216 if test -z "$ac_sed_cmds"; then
22217 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22218 else
22219 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22220 fi
22221 ac_sed_frag=`expr $ac_sed_frag + 1`
22222 ac_beg=$ac_end
22223 ac_end=`expr $ac_end + $ac_max_sed_lines`
22224 fi
22225 done
22226 if test -z "$ac_sed_cmds"; then
22227 ac_sed_cmds=cat
22228 fi
22229 fi # test -n "$CONFIG_FILES"
22230
22231 _ACEOF
22232 cat >>$CONFIG_STATUS <<\_ACEOF
22233 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22234 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22235 case $ac_file in
22236 - | *:- | *:-:* ) # input from stdin
22237 cat >$tmp/stdin
22238 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22239 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22240 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22241 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22242 * ) ac_file_in=$ac_file.in ;;
22243 esac
22244
22245 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22246 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22247 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22248 X"$ac_file" : 'X\(//\)[^/]' \| \
22249 X"$ac_file" : 'X\(//\)$' \| \
22250 X"$ac_file" : 'X\(/\)' \| \
22251 . : '\(.\)' 2>/dev/null ||
22252 echo X"$ac_file" |
22253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22254 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22255 /^X\(\/\/\)$/{ s//\1/; q; }
22256 /^X\(\/\).*/{ s//\1/; q; }
22257 s/.*/./; q'`
22258 { if $as_mkdir_p; then
22259 mkdir -p "$ac_dir"
22260 else
22261 as_dir="$ac_dir"
22262 as_dirs=
22263 while test ! -d "$as_dir"; do
22264 as_dirs="$as_dir $as_dirs"
22265 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22267 X"$as_dir" : 'X\(//\)[^/]' \| \
22268 X"$as_dir" : 'X\(//\)$' \| \
22269 X"$as_dir" : 'X\(/\)' \| \
22270 . : '\(.\)' 2>/dev/null ||
22271 echo X"$as_dir" |
22272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22273 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22274 /^X\(\/\/\)$/{ s//\1/; q; }
22275 /^X\(\/\).*/{ s//\1/; q; }
22276 s/.*/./; q'`
22277 done
22278 test ! -n "$as_dirs" || mkdir $as_dirs
22279 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22280 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22281 { (exit 1); exit 1; }; }; }
22282
22283 ac_builddir=.
22284
22285 if test "$ac_dir" != .; then
22286 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22287 # A "../" for each directory in $ac_dir_suffix.
22288 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22289 else
22290 ac_dir_suffix= ac_top_builddir=
22291 fi
22292
22293 case $srcdir in
22294 .) # No --srcdir option. We are building in place.
22295 ac_srcdir=.
22296 if test -z "$ac_top_builddir"; then
22297 ac_top_srcdir=.
22298 else
22299 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22300 fi ;;
22301 [\\/]* | ?:[\\/]* ) # Absolute path.
22302 ac_srcdir=$srcdir$ac_dir_suffix;
22303 ac_top_srcdir=$srcdir ;;
22304 *) # Relative path.
22305 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22306 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22307 esac
22308
22309 # Do not use `cd foo && pwd` to compute absolute paths, because
22310 # the directories may not exist.
22311 case `pwd` in
22312 .) ac_abs_builddir="$ac_dir";;
22313 *)
22314 case "$ac_dir" in
22315 .) ac_abs_builddir=`pwd`;;
22316 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22317 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22318 esac;;
22319 esac
22320 case $ac_abs_builddir in
22321 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22322 *)
22323 case ${ac_top_builddir}. in
22324 .) ac_abs_top_builddir=$ac_abs_builddir;;
22325 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22326 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22327 esac;;
22328 esac
22329 case $ac_abs_builddir in
22330 .) ac_abs_srcdir=$ac_srcdir;;
22331 *)
22332 case $ac_srcdir in
22333 .) ac_abs_srcdir=$ac_abs_builddir;;
22334 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22335 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22336 esac;;
22337 esac
22338 case $ac_abs_builddir in
22339 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22340 *)
22341 case $ac_top_srcdir in
22342 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22343 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22344 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22345 esac;;
22346 esac
22347
22348
22349 case $INSTALL in
22350 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22351 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22352 esac
22353
22354 if test x"$ac_file" != x-; then
22355 { echo "$as_me:$LINENO: creating $ac_file" >&5
22356 echo "$as_me: creating $ac_file" >&6;}
22357 rm -f "$ac_file"
22358 fi
22359 # Let's still pretend it is `configure' which instantiates (i.e., don't
22360 # use $as_me), people would be surprised to read:
22361 # /* config.h. Generated by config.status. */
22362 if test x"$ac_file" = x-; then
22363 configure_input=
22364 else
22365 configure_input="$ac_file. "
22366 fi
22367 configure_input=$configure_input"Generated from `echo $ac_file_in |
22368 sed 's,.*/,,'` by configure."
22369
22370 # First look for the input files in the build tree, otherwise in the
22371 # src tree.
22372 ac_file_inputs=`IFS=:
22373 for f in $ac_file_in; do
22374 case $f in
22375 -) echo $tmp/stdin ;;
22376 [\\/$]*)
22377 # Absolute (can't be DOS-style, as IFS=:)
22378 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22379 echo "$as_me: error: cannot find input file: $f" >&2;}
22380 { (exit 1); exit 1; }; }
22381 echo "$f";;
22382 *) # Relative
22383 if test -f "$f"; then
22384 # Build tree
22385 echo "$f"
22386 elif test -f "$srcdir/$f"; then
22387 # Source tree
22388 echo "$srcdir/$f"
22389 else
22390 # /dev/null tree
22391 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22392 echo "$as_me: error: cannot find input file: $f" >&2;}
22393 { (exit 1); exit 1; }; }
22394 fi;;
22395 esac
22396 done` || { (exit 1); exit 1; }
22397 _ACEOF
22398 cat >>$CONFIG_STATUS <<_ACEOF
22399 sed "$ac_vpsub
22400 $extrasub
22401 _ACEOF
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22403 :t
22404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22405 s,@configure_input@,$configure_input,;t t
22406 s,@srcdir@,$ac_srcdir,;t t
22407 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22408 s,@top_srcdir@,$ac_top_srcdir,;t t
22409 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22410 s,@builddir@,$ac_builddir,;t t
22411 s,@abs_builddir@,$ac_abs_builddir,;t t
22412 s,@top_builddir@,$ac_top_builddir,;t t
22413 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22414 s,@INSTALL@,$ac_INSTALL,;t t
22415 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22416 rm -f $tmp/stdin
22417 if test x"$ac_file" != x-; then
22418 mv $tmp/out $ac_file
22419 else
22420 cat $tmp/out
22421 rm -f $tmp/out
22422 fi
22423
22424 done
22425 _ACEOF
22426 cat >>$CONFIG_STATUS <<\_ACEOF
22427
22428 #
22429 # CONFIG_HEADER section.
22430 #
22431
22432 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22433 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22434 #
22435 # ac_d sets the value in "#define NAME VALUE" lines.
22436 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22437 ac_dB='[ ].*$,\1#\2'
22438 ac_dC=' '
22439 ac_dD=',;t'
22440 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22441 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22442 ac_uB='$,\1#\2define\3'
22443 ac_uC=' '
22444 ac_uD=',;t'
22445
22446 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22447 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22448 case $ac_file in
22449 - | *:- | *:-:* ) # input from stdin
22450 cat >$tmp/stdin
22451 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22453 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22455 * ) ac_file_in=$ac_file.in ;;
22456 esac
22457
22458 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22459 echo "$as_me: creating $ac_file" >&6;}
22460
22461 # First look for the input files in the build tree, otherwise in the
22462 # src tree.
22463 ac_file_inputs=`IFS=:
22464 for f in $ac_file_in; do
22465 case $f in
22466 -) echo $tmp/stdin ;;
22467 [\\/$]*)
22468 # Absolute (can't be DOS-style, as IFS=:)
22469 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22470 echo "$as_me: error: cannot find input file: $f" >&2;}
22471 { (exit 1); exit 1; }; }
22472 # Do quote $f, to prevent DOS paths from being IFS'd.
22473 echo "$f";;
22474 *) # Relative
22475 if test -f "$f"; then
22476 # Build tree
22477 echo "$f"
22478 elif test -f "$srcdir/$f"; then
22479 # Source tree
22480 echo "$srcdir/$f"
22481 else
22482 # /dev/null tree
22483 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22484 echo "$as_me: error: cannot find input file: $f" >&2;}
22485 { (exit 1); exit 1; }; }
22486 fi;;
22487 esac
22488 done` || { (exit 1); exit 1; }
22489 # Remove the trailing spaces.
22490 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22491
22492 _ACEOF
22493
22494 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22495 # `conftest.undefs', that substitutes the proper values into
22496 # config.h.in to produce config.h. The first handles `#define'
22497 # templates, and the second `#undef' templates.
22498 # And first: Protect against being on the right side of a sed subst in
22499 # config.status. Protect against being in an unquoted here document
22500 # in config.status.
22501 rm -f conftest.defines conftest.undefs
22502 # Using a here document instead of a string reduces the quoting nightmare.
22503 # Putting comments in sed scripts is not portable.
22504 #
22505 # `end' is used to avoid that the second main sed command (meant for
22506 # 0-ary CPP macros) applies to n-ary macro definitions.
22507 # See the Autoconf documentation for `clear'.
22508 cat >confdef2sed.sed <<\_ACEOF
22509 s/[\\&,]/\\&/g
22510 s,[\\$`],\\&,g
22511 t clear
22512 : clear
22513 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22514 t end
22515 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22516 : end
22517 _ACEOF
22518 # If some macros were called several times there might be several times
22519 # the same #defines, which is useless. Nevertheless, we may not want to
22520 # sort them, since we want the *last* AC-DEFINE to be honored.
22521 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22522 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22523 rm -f confdef2sed.sed
22524
22525 # This sed command replaces #undef with comments. This is necessary, for
22526 # example, in the case of _POSIX_SOURCE, which is predefined and required
22527 # on some systems where configure will not decide to define it.
22528 cat >>conftest.undefs <<\_ACEOF
22529 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22530 _ACEOF
22531
22532 # Break up conftest.defines because some shells have a limit on the size
22533 # of here documents, and old seds have small limits too (100 cmds).
22534 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22535 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22536 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22537 echo ' :' >>$CONFIG_STATUS
22538 rm -f conftest.tail
22539 while grep . conftest.defines >/dev/null
22540 do
22541 # Write a limited-size here document to $tmp/defines.sed.
22542 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22543 # Speed up: don't consider the non `#define' lines.
22544 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22545 # Work around the forget-to-reset-the-flag bug.
22546 echo 't clr' >>$CONFIG_STATUS
22547 echo ': clr' >>$CONFIG_STATUS
22548 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22549 echo 'CEOF
22550 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22551 rm -f $tmp/in
22552 mv $tmp/out $tmp/in
22553 ' >>$CONFIG_STATUS
22554 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22555 rm -f conftest.defines
22556 mv conftest.tail conftest.defines
22557 done
22558 rm -f conftest.defines
22559 echo ' fi # grep' >>$CONFIG_STATUS
22560 echo >>$CONFIG_STATUS
22561
22562 # Break up conftest.undefs because some shells have a limit on the size
22563 # of here documents, and old seds have small limits too (100 cmds).
22564 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22565 rm -f conftest.tail
22566 while grep . conftest.undefs >/dev/null
22567 do
22568 # Write a limited-size here document to $tmp/undefs.sed.
22569 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22570 # Speed up: don't consider the non `#undef'
22571 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22572 # Work around the forget-to-reset-the-flag bug.
22573 echo 't clr' >>$CONFIG_STATUS
22574 echo ': clr' >>$CONFIG_STATUS
22575 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22576 echo 'CEOF
22577 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22578 rm -f $tmp/in
22579 mv $tmp/out $tmp/in
22580 ' >>$CONFIG_STATUS
22581 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22582 rm -f conftest.undefs
22583 mv conftest.tail conftest.undefs
22584 done
22585 rm -f conftest.undefs
22586
22587 cat >>$CONFIG_STATUS <<\_ACEOF
22588 # Let's still pretend it is `configure' which instantiates (i.e., don't
22589 # use $as_me), people would be surprised to read:
22590 # /* config.h. Generated by config.status. */
22591 if test x"$ac_file" = x-; then
22592 echo "/* Generated by configure. */" >$tmp/config.h
22593 else
22594 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22595 fi
22596 cat $tmp/in >>$tmp/config.h
22597 rm -f $tmp/in
22598 if test x"$ac_file" != x-; then
22599 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22600 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22601 echo "$as_me: $ac_file is unchanged" >&6;}
22602 else
22603 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22605 X"$ac_file" : 'X\(//\)[^/]' \| \
22606 X"$ac_file" : 'X\(//\)$' \| \
22607 X"$ac_file" : 'X\(/\)' \| \
22608 . : '\(.\)' 2>/dev/null ||
22609 echo X"$ac_file" |
22610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22612 /^X\(\/\/\)$/{ s//\1/; q; }
22613 /^X\(\/\).*/{ s//\1/; q; }
22614 s/.*/./; q'`
22615 { if $as_mkdir_p; then
22616 mkdir -p "$ac_dir"
22617 else
22618 as_dir="$ac_dir"
22619 as_dirs=
22620 while test ! -d "$as_dir"; do
22621 as_dirs="$as_dir $as_dirs"
22622 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22624 X"$as_dir" : 'X\(//\)[^/]' \| \
22625 X"$as_dir" : 'X\(//\)$' \| \
22626 X"$as_dir" : 'X\(/\)' \| \
22627 . : '\(.\)' 2>/dev/null ||
22628 echo X"$as_dir" |
22629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22631 /^X\(\/\/\)$/{ s//\1/; q; }
22632 /^X\(\/\).*/{ s//\1/; q; }
22633 s/.*/./; q'`
22634 done
22635 test ! -n "$as_dirs" || mkdir $as_dirs
22636 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22637 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22638 { (exit 1); exit 1; }; }; }
22639
22640 rm -f $ac_file
22641 mv $tmp/config.h $ac_file
22642 fi
22643 else
22644 cat $tmp/config.h
22645 rm -f $tmp/config.h
22646 fi
22647 # Compute $ac_file's index in $config_headers.
22648 _am_stamp_count=1
22649 for _am_header in $config_headers :; do
22650 case $_am_header in
22651 $ac_file | $ac_file:* )
22652 break ;;
22653 * )
22654 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22655 esac
22656 done
22657 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22658 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22659 X$ac_file : 'X\(//\)[^/]' \| \
22660 X$ac_file : 'X\(//\)$' \| \
22661 X$ac_file : 'X\(/\)' \| \
22662 . : '\(.\)' 2>/dev/null ||
22663 echo X$ac_file |
22664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22665 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22666 /^X\(\/\/\)$/{ s//\1/; q; }
22667 /^X\(\/\).*/{ s//\1/; q; }
22668 s/.*/./; q'`/stamp-h$_am_stamp_count
22669 done
22670 _ACEOF
22671 cat >>$CONFIG_STATUS <<\_ACEOF
22672
22673 #
22674 # CONFIG_COMMANDS section.
22675 #
22676 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22677 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22678 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22679 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22680 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22681 X"$ac_dest" : 'X\(//\)[^/]' \| \
22682 X"$ac_dest" : 'X\(//\)$' \| \
22683 X"$ac_dest" : 'X\(/\)' \| \
22684 . : '\(.\)' 2>/dev/null ||
22685 echo X"$ac_dest" |
22686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22688 /^X\(\/\/\)$/{ s//\1/; q; }
22689 /^X\(\/\).*/{ s//\1/; q; }
22690 s/.*/./; q'`
22691 { if $as_mkdir_p; then
22692 mkdir -p "$ac_dir"
22693 else
22694 as_dir="$ac_dir"
22695 as_dirs=
22696 while test ! -d "$as_dir"; do
22697 as_dirs="$as_dir $as_dirs"
22698 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22700 X"$as_dir" : 'X\(//\)[^/]' \| \
22701 X"$as_dir" : 'X\(//\)$' \| \
22702 X"$as_dir" : 'X\(/\)' \| \
22703 . : '\(.\)' 2>/dev/null ||
22704 echo X"$as_dir" |
22705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22707 /^X\(\/\/\)$/{ s//\1/; q; }
22708 /^X\(\/\).*/{ s//\1/; q; }
22709 s/.*/./; q'`
22710 done
22711 test ! -n "$as_dirs" || mkdir $as_dirs
22712 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22713 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22714 { (exit 1); exit 1; }; }; }
22715
22716 ac_builddir=.
22717
22718 if test "$ac_dir" != .; then
22719 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22720 # A "../" for each directory in $ac_dir_suffix.
22721 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22722 else
22723 ac_dir_suffix= ac_top_builddir=
22724 fi
22725
22726 case $srcdir in
22727 .) # No --srcdir option. We are building in place.
22728 ac_srcdir=.
22729 if test -z "$ac_top_builddir"; then
22730 ac_top_srcdir=.
22731 else
22732 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22733 fi ;;
22734 [\\/]* | ?:[\\/]* ) # Absolute path.
22735 ac_srcdir=$srcdir$ac_dir_suffix;
22736 ac_top_srcdir=$srcdir ;;
22737 *) # Relative path.
22738 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22739 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22740 esac
22741
22742 # Do not use `cd foo && pwd` to compute absolute paths, because
22743 # the directories may not exist.
22744 case `pwd` in
22745 .) ac_abs_builddir="$ac_dir";;
22746 *)
22747 case "$ac_dir" in
22748 .) ac_abs_builddir=`pwd`;;
22749 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22750 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22751 esac;;
22752 esac
22753 case $ac_abs_builddir in
22754 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22755 *)
22756 case ${ac_top_builddir}. in
22757 .) ac_abs_top_builddir=$ac_abs_builddir;;
22758 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22759 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22760 esac;;
22761 esac
22762 case $ac_abs_builddir in
22763 .) ac_abs_srcdir=$ac_srcdir;;
22764 *)
22765 case $ac_srcdir in
22766 .) ac_abs_srcdir=$ac_abs_builddir;;
22767 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22768 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22769 esac;;
22770 esac
22771 case $ac_abs_builddir in
22772 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22773 *)
22774 case $ac_top_srcdir in
22775 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22776 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22777 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22778 esac;;
22779 esac
22780
22781
22782 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22783 echo "$as_me: executing $ac_dest commands" >&6;}
22784 case $ac_dest in
22785 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22786 # Strip MF so we end up with the name of the file.
22787 mf=`echo "$mf" | sed -e 's/:.*$//'`
22788 # Check whether this is an Automake generated Makefile or not.
22789 # We used to match only the files named `Makefile.in', but
22790 # some people rename them; so instead we look at the file content.
22791 # Grep'ing the first line is not enough: some people post-process
22792 # each Makefile.in and add a new line on top of each file to say so.
22793 # So let's grep whole file.
22794 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22795 dirpart=`(dirname "$mf") 2>/dev/null ||
22796 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22797 X"$mf" : 'X\(//\)[^/]' \| \
22798 X"$mf" : 'X\(//\)$' \| \
22799 X"$mf" : 'X\(/\)' \| \
22800 . : '\(.\)' 2>/dev/null ||
22801 echo X"$mf" |
22802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22804 /^X\(\/\/\)$/{ s//\1/; q; }
22805 /^X\(\/\).*/{ s//\1/; q; }
22806 s/.*/./; q'`
22807 else
22808 continue
22809 fi
22810 # Extract the definition of DEPDIR, am__include, and am__quote
22811 # from the Makefile without running `make'.
22812 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22813 test -z "$DEPDIR" && continue
22814 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22815 test -z "am__include" && continue
22816 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22817 # When using ansi2knr, U may be empty or an underscore; expand it
22818 U=`sed -n 's/^U = //p' < "$mf"`
22819 # Find all dependency output files, they are included files with
22820 # $(DEPDIR) in their names. We invoke sed twice because it is the
22821 # simplest approach to changing $(DEPDIR) to its actual value in the
22822 # expansion.
22823 for file in `sed -n "
22824 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22825 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22826 # Make sure the directory exists.
22827 test -f "$dirpart/$file" && continue
22828 fdir=`(dirname "$file") 2>/dev/null ||
22829 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22830 X"$file" : 'X\(//\)[^/]' \| \
22831 X"$file" : 'X\(//\)$' \| \
22832 X"$file" : 'X\(/\)' \| \
22833 . : '\(.\)' 2>/dev/null ||
22834 echo X"$file" |
22835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22837 /^X\(\/\/\)$/{ s//\1/; q; }
22838 /^X\(\/\).*/{ s//\1/; q; }
22839 s/.*/./; q'`
22840 { if $as_mkdir_p; then
22841 mkdir -p $dirpart/$fdir
22842 else
22843 as_dir=$dirpart/$fdir
22844 as_dirs=
22845 while test ! -d "$as_dir"; do
22846 as_dirs="$as_dir $as_dirs"
22847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22849 X"$as_dir" : 'X\(//\)[^/]' \| \
22850 X"$as_dir" : 'X\(//\)$' \| \
22851 X"$as_dir" : 'X\(/\)' \| \
22852 . : '\(.\)' 2>/dev/null ||
22853 echo X"$as_dir" |
22854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22856 /^X\(\/\/\)$/{ s//\1/; q; }
22857 /^X\(\/\).*/{ s//\1/; q; }
22858 s/.*/./; q'`
22859 done
22860 test ! -n "$as_dirs" || mkdir $as_dirs
22861 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22862 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22863 { (exit 1); exit 1; }; }; }
22864
22865 # echo "creating $dirpart/$file"
22866 echo '# dummy' > "$dirpart/$file"
22867 done
22868 done
22869 ;;
22870 esac
22871 done
22872 _ACEOF
22873
22874 cat >>$CONFIG_STATUS <<\_ACEOF
22875
22876 { (exit 0); exit 0; }
22877 _ACEOF
22878 chmod +x $CONFIG_STATUS
22879 ac_clean_files=$ac_clean_files_save
22880
22881
22882 # configure is writing to config.log, and then calls config.status.
22883 # config.status does its own redirection, appending to config.log.
22884 # Unfortunately, on DOS this fails, as config.log is still kept open
22885 # by configure, so config.status won't be able to write to it; its
22886 # output is simply discarded. So we exec the FD to /dev/null,
22887 # effectively closing config.log, so it can be properly (re)opened and
22888 # appended to by config.status. When coming back to configure, we
22889 # need to make the FD available again.
22890 if test "$no_create" != yes; then
22891 ac_cs_success=:
22892 ac_config_status_args=
22893 test "$silent" = yes &&
22894 ac_config_status_args="$ac_config_status_args --quiet"
22895 exec 5>/dev/null
22896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22897 exec 5>>config.log
22898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22899 # would make configure fail if this is the last instruction.
22900 $ac_cs_success || { (exit 1); exit 1; }
22901 fi
22902
22903
22904